Re: Need Help Programmatically Loading Servlets in StandardContext subclass

2005-08-23 Thread Philip Weaver


I give up. MVC baby!

On Aug 21, 2005, at 7:24 PM, Philip Weaver wrote:



How can I programmatically load servlets and servlet mappings in 
Tomcat? I'm using Tomcat 5.0.28.


I'm trying to extend StandardContext to automatically map/assign a 
batch of servlets from a specified jar at startup. I'm having trouble. 
As I try to add these servlets programmatically as the StandardContext 
is starting up, I can't get them to register/load. The servlets loaded 
from the web.xml work fine, but the ones I'm trying to add 
programmatically return null ObjectNames when I query 
context.getServlets(). They are also ignored or not found when I get 
the URL.


Here's the code I'm trying... The most relevant code is in 
addServlet() below - which I'm calling after super.start().


package com.luminera.www;

import java.io.*;
import java.util.*;
import javax.management.*;
import javax.naming.*;
import javax.servlet.*;
import org.apache.catalina.*;
import org.apache.catalina.deploy.*;
import org.apache.catalina.loader.*;
import org.apache.catalina.mbeans.*;
import org.apache.catalina.startup.*;
import org.apache.catalina.util.*;
import org.apache.commons.logging.*;
import org.apache.commons.modeler.*;
import org.apache.naming.*;
import org.apache.naming.resources.*;
import org.apache.tomcat.util.compat.*;

public class StandardContext extends 
org.apache.catalina.core.StandardContext {


public StandardContext() {

super();
}

public synchronized void start() throws LifecycleException {

super.start();

this.loadServlets();

String[] asServlets = this.getServlets();
for (int i = 0; i  asServlets.length; i++) {
System.out.println(known servlet:  + asServlets[i]);
}
}

private void loadServlets() {

String sParameter = this.findParameter(servlets-jar);
String sBasePath = this.getBasePath();
System.out.println(sParameter:  + sParameter);
System.out.println(sBasePath:  + sBasePath);
if ((sParameter != null)  (sBasePath != null)) {
String sJarPath = sBasePath + sParameter;
System.out.println(servlet jar path:  + sJarPath);
ClassLoader classLoader = 
this.getLoader().getClassLoader();
			//HashMap hashMap = ServletUtility.buildServletMap(sJarPath, 
classLoader); // external lib

HashMap hashMap = new HashMap();
			for (Iterator iterator = hashMap.keySet().iterator(); 
iterator.hasNext();) {

String sPattern = (String)iterator.next();
String sClass = (String)hashMap.get(sPattern);
this.addServlet(sPattern, sClass);
}
}
}

private void addServlet(String sPattern, String sClass) {

		System.out.println(Trying to load servlet for url pattern:  + 
sPattern);


Wrapper wrapper = null;
try {
String sName = sClass;
wrapper = this.createWrapper();
wrapper.setName(sName);
wrapper.setServletClass(sClass);
this.addChild(wrapper);
this.addServletMapping(sPattern, sName);
if (wrapper instanceof Lifecycle) {
((Lifecycle)wrapper).start();
}
System.out.println(succeeded);
System.out.println(sPattern:  + sPattern);
System.out.println(sName:  + sName);
} catch (Throwable throwable) {
System.out.println(failed);
Log log = LogFactory.getLog(StandardContext.class);
log.error(Failed to load servlet:  + sClass, 
throwable);
this.removeServletMapping(sPattern);
this.removeChild(wrapper);
}
}

private String getBasePath() {

String docBase = null;
Container container = this;
while (container != null) {
if (container instanceof Host) {
break;
}
container = container.getParent();
}
File file = new File(getDocBase());
if (!file.isAbsolute()) {
if (container == null) {
docBase = (new File(engineBase(), 
getDocBase())).getPath();
} else {
 

Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Mohd. Jeffry
I'm not using the war. This is an Unpacked deployment. 

On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
 Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the
 tomcat manager, usually it's located at
 http://localhost:8080/manager/html, U can deploy your .war
 files from that tools.
  
  
 
 
 On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  
  I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
  usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work.
  Now It doesn't work with the newly installed tomcat 5. Tomcat gives me
  404 error. The example that came with the package works fine. Any 
  thing that I miss?
  
  
  
  
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
 -- 
 ---
 http://www.psychotazkia.or.id 


-- 
Malaysian Java Online Community ( www.kampungjawa.cjb.net )

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



Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Lintang JP
any log file ?

On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 I'm not using the war. This is an Unpacked deployment.
 
 On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
  Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the
  tomcat manager, usually it's located at
  http://localhost:8080/manager/html, U can deploy your .war
  files from that tools.
 
 
 
 
  On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  
   I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
   usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work.
   Now It doesn't work with the newly installed tomcat 5. Tomcat gives me
   404 error. The example that came with the package works fine. Any
   thing that I miss?
  
  
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
  --
  ---
  http://www.psychotazkia.or.id
 
 
 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
---
http://www.psychotazkia.or.id


Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Mohd. Jeffry
my application name is sd. This is my catalina.out

.
.
.
INFO: Processing Context configuration file URL
file:/etc/tomcat5/Catalina/localhost/balancer.xml
Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /sd from URL
file:/opt/tomcat5/webapps/sd
Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at 
org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:505)
.
.
.
.Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig
applicationConfig
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: Servlet mapping specifies an
unknown servlet name invoker
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
.
.
.
.



On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
 any log file ?
 
 On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  I'm not using the war. This is an Unpacked deployment.
  
  On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
   Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the
   tomcat manager, usually it's located at
   http://localhost:8080/manager/html, U can deploy your
 .war
   files from that tools.
  
  
  
  
   On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
   
I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work.
Now It doesn't work with the newly installed tomcat 5. Tomcat gives me
404 error. The example that came with the package works fine. Any
thing that I miss?
   

   
   
--
Malaysian Java Online Community ( www.kampungjawa.cjb.net )
   
   
  
 -
To unsubscribe, e-mail:
   [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
  
   --
  
 ---
   http://www.psychotazkia.or.id
  
  
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
 -- 
 ---
 http://www.psychotazkia.or.id 


-- 
Malaysian Java Online Community ( www.kampungjawa.cjb.net )

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



Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Lintang JP
Servlet mapping specifies an
unknown servlet name invoker

Maybe you try to map a servlet name that's not declared yet on web.xml ?
How about your web.xml file ?

On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 my application name is sd. This is my catalina.out
 
 .
 .
 .
 INFO: Processing Context configuration file URL
 file:/etc/tomcat5/Catalina/localhost/balancer.xml
 Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployerinstall
 INFO: Installing web application at context path /sd from URL
 file:/opt/tomcat5/webapps/sd
 Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement
 SEVERE: End event threw exception
 java.lang.reflect.InvocationTargetException
 at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
 :252)
 at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:505)
 .
 .
 .
 .Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig
 applicationConfig
 SEVERE: Parse error in application web.xml
 java.lang.IllegalArgumentException: Servlet mapping specifies an
 unknown servlet name invoker
 at org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2540)
 at org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2566)
 at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
 at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
 (Unknown
 Source)
 at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
 (Unknown
 Source)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (Unknown
 Source)
 .
 .
 .
 .
 
 
 
 On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
  any log file ?
 
  On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
   I'm not using the war. This is an Unpacked deployment.
  
   On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
Hi Jeffry, are you trying to deploy a .war file ? maybe U should use 
 the
tomcat manager, usually it's located at
http://localhost:8080/manager/html, U can deploy your
  .war
files from that tools.
   
   
   
   
On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:

 I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
 usually put my unpacked apps at /opt/tomcat/webapps/myapp and it 
 work.
 Now It doesn't work with the newly installed tomcat 5. Tomcat 
 gives me
 404 error. The example that came with the package works fine. Any
 thing that I miss?




 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)


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


   
   
   
--
   
  ---
http://www.psychotazkia.or.id
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
  --
  ---
  http://www.psychotazkia.or.id
 
 
 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
---
http://www.psychotazkia.or.id


Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Mohd. Jeffry
which one?  tomcat or my application web.xml ?

On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
 Servlet mapping specifies an
  unknown servlet name invoker
  
  Maybe you try to map a servlet name that's not declared yet on web.xml ?
  How about your web.xml file ?
 
 
 On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  
  my application name is sd. This is my catalina.out
  
  .
  .
  .
  INFO: Processing Context configuration file URL
  file:/etc/tomcat5/Catalina/localhost/balancer.xml
  Aug 1, 2005 11:21:31 PM
 org.apache.catalina.core.StandardHostDeployer install
  INFO: Installing web application at context path /sd from URL
  file:/opt/tomcat5/webapps/sd
  Aug 1, 2005 11:21:33 PM
 org.apache.commons.digester.Digester endElement
  SEVERE: End event threw exception
  java.lang.reflect.InvocationTargetException
  at
 sun.reflect.GeneratedMethodAccessor46.invoke(Unknown
 Source)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
  at
 org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java
 :505)
  .
  .
  .
  .Aug 1, 2005 11:21:33 PM
 org.apache.catalina.startup.ContextConfig
  applicationConfig
  SEVERE: Parse error in application web.xml
  java.lang.IllegalArgumentException: Servlet mapping
 specifies an 
  unknown servlet name invoker
  at
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
  at
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
  at
 org.apache.commons.digester.Digester.endElement(Digester.java:1061)
  at
 org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
  Source)
  at
 org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope
 (Unknown
  Source)
  at
 org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
  Source)
  at
 org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
 (Unknown
  Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
  Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (Unknown
  Source)
  .
  .
  .
  .
  
  
  
  On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
   any log file ?
  
   On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
I'm not using the war. This is an Unpacked deployment.
   
On 8/1/05, Lintang JP  [EMAIL PROTECTED] wrote:
 Hi Jeffry, are you trying to deploy a .war file ? maybe U should use
 the
 tomcat manager, usually it's located at
 http://localhost:8080/manager/html, U can deploy
 your
   .war
 files from that tools.




 On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
 
  I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
  usually put my unpacked apps at /opt/tomcat/webapps/myapp and it
 work. 
  Now It doesn't work with the newly installed tomcat 5. Tomcat
 gives me
  404 error. The example that came with the package works fine. Any
  thing that I miss? 
 
 
 
 
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
 
 

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



 --

  
 ---
 http://www.psychotazkia.or.id
   
   
--
Malaysian Java Online Community ( www.kampungjawa.cjb.net )
   
   
  
 -
To unsubscribe, e-mail:
   [EMAIL PROTECTED] 
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
  
   --
  
 ---
   http://www.psychotazkia.or.id
  
  
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
 -- 
 ---
 http://www.psychotazkia.or.id 


-- 
Malaysian Java Online Community ( www.kampungjawa.cjb.net )

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



Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Lintang JP
you app.specific web.xml, at WEB-INF

On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 which one? tomcat or my application web.xml ?
 
 On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
  Servlet mapping specifies an
  unknown servlet name invoker
 
  Maybe you try to map a servlet name that's not declared yet on web.xml ?
  How about your web.xml file ?
 
 
  On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  
   my application name is sd. This is my catalina.out
  
   .
   .
   .
   INFO: Processing Context configuration file URL
   file:/etc/tomcat5/Catalina/localhost/balancer.xml
   Aug 1, 2005 11:21:31 PM
  org.apache.catalina.core.StandardHostDeployer install
   INFO: Installing web application at context path /sd from URL
   file:/opt/tomcat5/webapps/sd
   Aug 1, 2005 11:21:33 PM
  org.apache.commons.digester.Digester endElement
   SEVERE: End event threw exception
   java.lang.reflect.InvocationTargetException
   at
  sun.reflect.GeneratedMethodAccessor46.invoke(Unknown
  Source)
   at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
  org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
 :252)
   at
  org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java
  :505)
   .
   .
   .
   .Aug 1, 2005 11:21:33 PM
  org.apache.catalina.startup.ContextConfig
   applicationConfig
   SEVERE: Parse error in application web.xml
   java.lang.IllegalArgumentException: Servlet mapping
  specifies an
   unknown servlet name invoker
   at
  org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2540)
   at
  org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2566)
   at
  org.apache.commons.digester.Digester.endElement(Digester.java:1061)
   at
  org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
   Source)
   at
  org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope
  (Unknown
   Source)
   at
  org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
   Source)
   at
  org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
  Source)
   at
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
  (Unknown
   Source)
   at
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
 (Unknown
   Source)
   at
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
  (Unknown
   Source)
   .
   .
   .
   .
  
  
  
   On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
any log file ?
   
On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
 I'm not using the war. This is an Unpacked deployment.

 On 8/1/05, Lintang JP  [EMAIL PROTECTED] wrote:
  Hi Jeffry, are you trying to deploy a .war file ? maybe U should 
 use
  the
  tomcat manager, usually it's located at
  http://localhost:8080/manager/html, U can deploy
  your
.war
  files from that tools.
 
 
 
 
  On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
  
   I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2I
   usually put my unpacked apps at /opt/tomcat/webapps/myapp and 
 it
  work.
   Now It doesn't work with the newly installed tomcat 5. Tomcat
  gives me
   404 error. The example that came with the package works fine. 
 Any
   thing that I miss?
  
  
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
 
   
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
  --
 
   
  ---
  http://www.psychotazkia.or.id


 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)


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


   
   
   
--
   
  ---
http://www.psychotazkia.or.id
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
  --
  ---
  http://www.psychotazkia.or.id
 
 
 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
 



-- 
---
http://www.psychotazkia.or.id


Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Mohd. Jeffry
I don't think its a good idea to post it here. The files got thousands
of lines.. perhaps there are specific parts that I should be look in
to?

On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
 you app.specific web.xml, at WEB-INF
 
 
 On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
  which one?  tomcat or my application web.xml ?
  
  On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
   Servlet mapping specifies an
unknown servlet name invoker 
  
Maybe you try to map a servlet name that's not declared yet on web.xml
 ?
How about your web.xml file ?
  
  
   On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED]  wrote:
   
my application name is sd. This is my catalina.out
   
.
.
.
INFO: Processing Context configuration file URL
file:/etc/tomcat5/Catalina/localhost/balancer.xml 
Aug 1, 2005 11:21:31 PM
   org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /sd from URL
file:/opt/tomcat5/webapps/sd
Aug 1, 2005 11:21:33 PM 
   org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at
   sun.reflect.GeneratedMethodAccessor46.invoke (Unknown
   Source)
at
  
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
  
 org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at
  
 org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java
   :505)
.
. 
.
.Aug 1, 2005 11:21:33 PM
   org.apache.catalina.startup.ContextConfig
applicationConfig
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException : Servlet mapping
   specifies an
unknown servlet name invoker
at
  
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at
  
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at
  
 org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at
   org.apache.xerces.parsers.AbstractSAXParser.endElement
 (Unknown
Source)
at
  
 org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope
   (Unknown
Source)
at
  
 org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement
 (Unknown
Source)
at
  
 org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
   Source)
at
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
   (Unknown
Source)
at
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
   (Unknown
Source)
.
.
.
.
   
   
   
On 8/1/05, Lintang JP  [EMAIL PROTECTED] wrote:
 any log file ?

 On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED]  wrote:
  I'm not using the war. This is an Unpacked deployment.
 
  On 8/1/05, Lintang JP  [EMAIL PROTECTED]  wrote:
   Hi Jeffry, are you trying to deploy a .war file ? maybe U should
 use
   the
   tomcat manager, usually it's located at
   http://localhost:8080/manager/html, U can
 deploy
   your
 .war
   files from that tools.
  
   
  
  
   On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:
   
I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2
 I
usually put my unpacked apps at /opt/tomcat/webapps/myapp and
 it
   work.
Now It doesn't work with the newly installed tomcat 5. Tomcat 
   gives me
404 error. The example that came with the package works fine.
 Any
thing that I miss?
   

   
   
--
Malaysian Java Online Community ( www.kampungjawa.cjb.net )
   
   
  

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

  
 ---
   http://www.psychotazkia.or.id
 
 
  --
  Malaysian Java Online Community ( www.kampungjawa.cjb.net )
 
 

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



 --

  
 ---
 http://www.psychotazkia.or.id
   
   
--
Malaysian Java Online Community ( www.kampungjawa.cjb.net )
   
   
  
 -
To unsubscribe, e-mail:
   

Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-08-01 Thread Lintang JP
1. try to match the servlet-name part with the servlet-mapping, maybe 
there's some unmatch item there
2. If U just migrate to tomcat 5, U shd also look the DTD item at the top of 
your web.xml file, which dtd is used by web.xml in tomcat 5

I guess that's all ?

On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 I don't think its a good idea to post it here. The files got thousands
 of lines.. perhaps there are specific parts that I should be look in
 to?
 
 On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
  you app.specific web.xml, at WEB-INF
 
 
  On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
   which one? tomcat or my application web.xml ?
  
   On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote:
Servlet mapping specifies an
unknown servlet name invoker
   
Maybe you try to map a servlet name that's not declared yet on 
 web.xml
  ?
How about your web.xml file ?
   
   
On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED]  wrote:

 my application name is sd. This is my catalina.out

 .
 .
 .
 INFO: Processing Context configuration file URL
 file:/etc/tomcat5/Catalina/localhost/balancer.xml
 Aug 1, 2005 11:21:31 PM
org.apache.catalina.core.StandardHostDeployer install
 INFO: Installing web application at context path /sd from URL
 file:/opt/tomcat5/webapps/sd
 Aug 1, 2005 11:21:33 PM
org.apache.commons.digester.Digester endElement
 SEVERE: End event threw exception
 java.lang.reflect.InvocationTargetException
 at
sun.reflect.GeneratedMethodAccessor46.invoke (Unknown
Source)
 at
   
  sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
   
  org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
 :252)
 at
   
  org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java
:505)
 .
 .
 .
 .Aug 1, 2005 11:21:33 PM
org.apache.catalina.startup.ContextConfig
 applicationConfig
 SEVERE: Parse error in application web.xml
 java.lang.IllegalArgumentException : Servlet mapping
specifies an
 unknown servlet name invoker
 at
   
  org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2540)
 at
   
  org.apache.commons.digester.Digester.createSAXException(Digester.java
 :2566)
 at
   
  org.apache.commons.digester.Digester.endElement(Digester.java:1061)
 at
org.apache.xerces.parsers.AbstractSAXParser.endElement
  (Unknown
 Source)
 at
   
  org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope
(Unknown
 Source)
 at
   
  org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement
  (Unknown
 Source)
 at
   
  org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
 at
   
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
(Unknown
 Source)
 at
   
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
 (Unknown
 Source)
 at
   
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown
 Source)
 .
 .
 .
 .



 On 8/1/05, Lintang JP  [EMAIL PROTECTED] wrote:
  any log file ?
 
  On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED]  wrote:
   I'm not using the war. This is an Unpacked deployment.
  
   On 8/1/05, Lintang JP  [EMAIL PROTECTED]  wrote:
Hi Jeffry, are you trying to deploy a .war file ? maybe U 
 should
  use
the
tomcat manager, usually it's located at
http://localhost:8080/manager/html, U can
  deploy
your
  .war
files from that tools.
   
   
   
   
On 8/1/05, Mohd. Jeffry  [EMAIL PROTECTED] wrote:

 I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 
 4.1.2
  I
 usually put my unpacked apps at /opt/tomcat/webapps/myapp 
 and
  it
work.
 Now It doesn't work with the newly installed tomcat 5. 
 Tomcat
gives me
 404 error. The example that came with the package works 
 fine.
  Any
 thing that I miss?




 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)


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


   
   
   
--
   
 
   
  ---
http://www.psychotazkia.or.id
  
  
   --
   Malaysian Java Online Community ( 
   www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
  
  
 
   
  -
   

Re: need help for deployment of unpack apps at Linux Tomcat 5.0

2005-07-31 Thread Lintang JP
Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the 
tomcat manager, usually it's located at http://localhost:8080/manager/html, 
U can deploy your .war files from that tools.



On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 
 I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I
 usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work.
 Now It doesn't work with the newly installed tomcat 5. Tomcat gives me
 404 error. The example that came with the package works fine. Any
 thing that I miss?
 
 
 
 
 --
 Malaysian Java Online Community ( 
 www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
---
http://www.psychotazkia.or.id


Re: need help

2005-04-25 Thread Nikola Milutinovic
Robert U. Chan wrote:
Good day!
Hope somebody can help me with my current problem in tomcat.  I have been
seeing an 'error in getDescSql in StaticMethod' in the console of tomcat.
Can somebody help me know the cause and solution to this problem.
 

This could be some SQL code in your web app. For instance, it could be a 
JSTL SQL tag or something like that. Something that is using logging 
facilities to print it's error messages.

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


RE: Need help exporting contexts not under webapps/

2005-04-19 Thread Raghupathy,Gurumoorthy
Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:

Context path=/DOCS docBase=/mnt/CMFiles/DOCS
 debug=0
/Context

So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


-
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: Need help exporting contexts not under webapps/

2005-04-19 Thread Fritz Schneider
Guru,

Earl isn't the only one trying to do this. Here are the details for my
attempts which may or may not be similar to his:

 - Running TC 5.5.8, JVM 1.5.0_02-b09 under Win XP Pro SP2
 - I have a set of static pages (starting with index.htm) stored at
C:\www\aegean
 - C:\www\agean\WEB-INF\web.xml contains web-app/
 - I wish to access them as http://www.peacham.com/aegean
 - aegean is just one of many such directories.
 - It works if I copy it to {TOMCAT_BASE}\webapps\aegean but that creates
maintenance headaches by coupling the TC directory structure to the web site
directory structure.
 - I have tried building a webapps/aegean directory with just WEB-INF and
adding aegean.xml to {TOMCAT-BASE}\conf\Catalina\localhost containing:

?xml version=1.0 encoding=UTF-8?
Context
path=/aegean docbase=c:/www/aegean
reloadable=true
  WatchedResourceWEB-INF/web.xml/WatchedResource
/Context

but all I get is 404 errors and no hint of other errors in the logs. I have
tried a couple of variations with equally poor results.

Thanks for any help you can give

Fritz

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, April 19, 2005 1:10 AM
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/

Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:

Context path=/DOCS docBase=/mnt/CMFiles/DOCS
 debug=0
/Context

So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


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

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


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



RE: Need help exporting contexts not under webapps/

2005-04-19 Thread Raghupathy,Gurumoorthy
Hello,

In your aegean.xml  try 

?xml version=1.0 encoding=UTF-8?
Context
path=/aegean docbase=c:\www\aegean
reloadable=true
  WatchedResourceWEB-INF/web.xml/WatchedResource

/Context

and then stop and start tocmat. 
Go to the manager application and see if you can see the application
started ? 
if not try to start it. If yes then try the link
http://www.peacham.com/aegean
If it does not look into the logs 


Regards
Guru 

-Original Message-
From: Fritz Schneider [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 13:25
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/


Guru,

Earl isn't the only one trying to do this. Here are the details for my
attempts which may or may not be similar to his:

 - Running TC 5.5.8, JVM 1.5.0_02-b09 under Win XP Pro SP2
 - I have a set of static pages (starting with index.htm) stored at
C:\www\aegean
 - C:\www\agean\WEB-INF\web.xml contains web-app/
 - I wish to access them as http://www.peacham.com/aegean
 - aegean is just one of many such directories.
 - It works if I copy it to {TOMCAT_BASE}\webapps\aegean but that creates
maintenance headaches by coupling the TC directory structure to the web site
directory structure.
 - I have tried building a webapps/aegean directory with just WEB-INF and
adding aegean.xml to {TOMCAT-BASE}\conf\Catalina\localhost containing:

?xml version=1.0 encoding=UTF-8?
Context
path=/aegean docbase=c:/www/aegean
reloadable=true
  WatchedResourceWEB-INF/web.xml/WatchedResource
/Context

but all I get is 404 errors and no hint of other errors in the logs. I have
tried a couple of variations with equally poor results.

Thanks for any help you can give

Fritz

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, April 19, 2005 1:10 AM
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/

Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:

Context path=/DOCS docBase=/mnt/CMFiles/DOCS
 debug=0
/Context

So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


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

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


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

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



RE: Need help exporting contexts not under webapps/

2005-04-19 Thread Fritz Schneider
Guru,

I got it! Forget about aegean.xml! The key us server.xml! I was able to move
my ROOT directory by adding the following to my Host container in
server.xml:

 Context path= docBase=c:/www reloadable=true
  WatchedResourceWEB-INF/web.xml/WatchedResource 
 /Context

Then all of my subdirectories under c:\www showed up on the server,
including aegean. Other contexts continue to be recognized as deployed apps.

Fritz
-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, April 19, 2005 5:45 AM
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/

Hello,

In your aegean.xml  try 

?xml version=1.0 encoding=UTF-8?
Context
path=/aegean docbase=c:\www\aegean
reloadable=true
  WatchedResourceWEB-INF/web.xml/WatchedResource

/Context

and then stop and start tocmat. 
Go to the manager application and see if you can see the application
started ? 
if not try to start it. If yes then try the link
http://www.peacham.com/aegean
If it does not look into the logs 


Regards
Guru 

-Original Message-
From: Fritz Schneider [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 13:25
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/


Guru,

Earl isn't the only one trying to do this. Here are the details for my
attempts which may or may not be similar to his:

 - Running TC 5.5.8, JVM 1.5.0_02-b09 under Win XP Pro SP2
 - I have a set of static pages (starting with index.htm) stored at
C:\www\aegean
 - C:\www\agean\WEB-INF\web.xml contains web-app/
 - I wish to access them as http://www.peacham.com/aegean
 - aegean is just one of many such directories.
 - It works if I copy it to {TOMCAT_BASE}\webapps\aegean but that creates
maintenance headaches by coupling the TC directory structure to the web site
directory structure.
 - I have tried building a webapps/aegean directory with just WEB-INF and
adding aegean.xml to {TOMCAT-BASE}\conf\Catalina\localhost containing:

?xml version=1.0 encoding=UTF-8?
Context
path=/aegean docbase=c:/www/aegean
reloadable=true
  WatchedResourceWEB-INF/web.xml/WatchedResource
/Context

but all I get is 404 errors and no hint of other errors in the logs. I have
tried a couple of variations with equally poor results.

Thanks for any help you can give

Fritz

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, April 19, 2005 1:10 AM
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/

Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:

Context path=/DOCS docBase=/mnt/CMFiles/DOCS
 debug=0
/Context

So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


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

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


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

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


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



RE: Need help exporting contexts not under webapps/

2005-04-19 Thread J. Ryan Earl
Thanks for the reply, I actually figured it a few hours later.  I was trying
to do 2/ in your list.  I added a PICS.xml and a DOCS.xml under the
${CATALINA_HOME}/conf/Catalina/localhost/ directory which gave me the PICS
and DOCS contexts.  ie:

[EMAIL PROTECTED] localhost]$ pwd
/home/tomcat/jakarta-tomcat-5.5.9/conf/Catalina/localhost
[EMAIL PROTECTED] localhost]$ ls
DOCS.xml  host-manager.xml  manager.xml  PICS.xml
[EMAIL PROTECTED] localhost]$ cat PICS.xml
Context docBase=/mnt/CMFiles/PICS
 privileged=true antiResourceLocking=false
antiJARLocking=false
/Context
[EMAIL PROTECTED] localhost]$ cat PICS.xml
Context docBase=/mnt/CMFiles/PICS
 privileged=true antiResourceLocking=false
antiJARLocking=false
/Context
[EMAIL PROTECTED] localhost]$ cat PICS.xml DOCS.xml
Context docBase=/mnt/CMFiles/PICS
 privileged=true antiResourceLocking=false
antiJARLocking=false
/Context
Context docBase=/mnt/CMFiles/DOCS
 privileged=true antiResourceLocking=false
antiJARLocking=false
/Context



-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005 8:30 PM
To: Tomcat Users List
Subject: Re: Need help exporting contexts not under webapps/


On Mon, Apr 18, 2005 at 01:16:04PM -0500, J. Ryan Earl wrote:
: So my question is, in short, given a directory structure of static files,
: how do you get Tomcat to serve said static content off of an arbitrary
URI?

So, are you trying to
1/ have a Tomcat-run webapp serve content that exists outside of the
context path?

2/ setup the static content as its own webapp (context)?


For #1, the (portable, spec-friendly) way is to write a servlet or
filter to intercept requests for a given URI, open the matching file as
an InputStream, and push the data to the client via the Response
OutputStream.

For #2, I don't remember the exact syntax off the top of my head so I
won't waste your time with something that may not work. =) But it's
definitely possible for a webapp to not exist under the webapps/
directory.

Just make sure said webapp has a WEB-INF directory and a web.xml.  Even
a web.xml of just
web-app/
should do.

-QM

--

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

-
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: Need help exporting contexts not under webapps/

2005-04-19 Thread Gurumoorthy
Did you manage to get it right ?
I would recommend that you use lower case context path name

Regards
Guru
- Original Message -
From: J. Ryan Earl [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 19, 2005 6:56 PM
Subject: RE: Need help exporting contexts not under webapps/


 Thanks for the reply, I actually figured it a few hours later.  I was
trying
 to do 2/ in your list.  I added a PICS.xml and a DOCS.xml under the
 ${CATALINA_HOME}/conf/Catalina/localhost/ directory which gave me the PICS
 and DOCS contexts.  ie:

 [EMAIL PROTECTED] localhost]$ pwd
 /home/tomcat/jakarta-tomcat-5.5.9/conf/Catalina/localhost
 [EMAIL PROTECTED] localhost]$ ls
 DOCS.xml  host-manager.xml  manager.xml  PICS.xml
 [EMAIL PROTECTED] localhost]$ cat PICS.xml
 Context docBase=/mnt/CMFiles/PICS
  privileged=true antiResourceLocking=false
 antiJARLocking=false
 /Context
 [EMAIL PROTECTED] localhost]$ cat PICS.xml
 Context docBase=/mnt/CMFiles/PICS
  privileged=true antiResourceLocking=false
 antiJARLocking=false
 /Context
 [EMAIL PROTECTED] localhost]$ cat PICS.xml DOCS.xml
 Context docBase=/mnt/CMFiles/PICS
  privileged=true antiResourceLocking=false
 antiJARLocking=false
 /Context
 Context docBase=/mnt/CMFiles/DOCS
  privileged=true antiResourceLocking=false
 antiJARLocking=false
 /Context



 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 18, 2005 8:30 PM
 To: Tomcat Users List
 Subject: Re: Need help exporting contexts not under webapps/


 On Mon, Apr 18, 2005 at 01:16:04PM -0500, J. Ryan Earl wrote:
 : So my question is, in short, given a directory structure of static
files,
 : how do you get Tomcat to serve said static content off of an arbitrary
 URI?

 So, are you trying to
 1/ have a Tomcat-run webapp serve content that exists outside of the
 context path?

 2/ setup the static content as its own webapp (context)?


 For #1, the (portable, spec-friendly) way is to write a servlet or
 filter to intercept requests for a given URI, open the matching file as
 an InputStream, and push the data to the client via the Response
 OutputStream.

 For #2, I don't remember the exact syntax off the top of my head so I
 won't waste your time with something that may not work. =) But it's
 definitely possible for a webapp to not exist under the webapps/
 directory.

 Just make sure said webapp has a WEB-INF directory and a web.xml.  Even
 a web.xml of just
 web-app/
 should do.

 -QM

 --

 software   -- http://www.brandxdev.net/
 tech news  -- http://www.RoarNetworX.com/
 code scan  -- http://www.JxRef.org/

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


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



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



RE: Need help exporting contexts not under webapps/

2005-04-19 Thread J. Ryan Earl
Yea, I accidently hit the send button on the last email before I was done
writing it, but it's working.  I just had to create two context files under
conf/Catalina/localhost/

-ryan

-Original Message-
From: Gurumoorthy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 1:33 PM
To: Tomcat Users List
Subject: Re: Need help exporting contexts not under webapps/


Did you manage to get it right ?
I would recommend that you use lower case context path name

Regards
Guru
- Original Message -
From: J. Ryan Earl [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 19, 2005 6:56 PM
Subject: RE: Need help exporting contexts not under webapps/


 Thanks for the reply, I actually figured it a few hours later.  I was
trying
 to do 2/ in your list.  I added a PICS.xml and a DOCS.xml under the
 ${CATALINA_HOME}/conf/Catalina/localhost/ directory which gave me the PICS
 and DOCS contexts.  ie:

 [EMAIL PROTECTED] localhost]$ pwd
 /home/tomcat/jakarta-tomcat-5.5.9/conf/Catalina/localhost
 [EMAIL PROTECTED] localhost]$ ls
 DOCS.xml  host-manager.xml  manager.xml  PICS.xml
 [EMAIL PROTECTED] localhost]$ cat PICS.xml
 Context docBase=/mnt/CMFiles/PICS
  privileged=true antiResourceLocking=false
 antiJARLocking=false
 /Context
 [EMAIL PROTECTED] localhost]$ cat PICS.xml
 Context docBase=/mnt/CMFiles/PICS
  privileged=true antiResourceLocking=false
 antiJARLocking=false
 /Context
 [EMAIL PROTECTED] localhost]$ cat PICS.xml DOCS.xml
 Context docBase=/mnt/CMFiles/PICS
  privileged=true antiResourceLocking=false
 antiJARLocking=false
 /Context
 Context docBase=/mnt/CMFiles/DOCS
  privileged=true antiResourceLocking=false
 antiJARLocking=false
 /Context



 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 18, 2005 8:30 PM
 To: Tomcat Users List
 Subject: Re: Need help exporting contexts not under webapps/


 On Mon, Apr 18, 2005 at 01:16:04PM -0500, J. Ryan Earl wrote:
 : So my question is, in short, given a directory structure of static
files,
 : how do you get Tomcat to serve said static content off of an arbitrary
 URI?

 So, are you trying to
 1/ have a Tomcat-run webapp serve content that exists outside of the
 context path?

 2/ setup the static content as its own webapp (context)?


 For #1, the (portable, spec-friendly) way is to write a servlet or
 filter to intercept requests for a given URI, open the matching file as
 an InputStream, and push the data to the client via the Response
 OutputStream.

 For #2, I don't remember the exact syntax off the top of my head so I
 won't waste your time with something that may not work. =) But it's
 definitely possible for a webapp to not exist under the webapps/
 directory.

 Just make sure said webapp has a WEB-INF directory and a web.xml.  Even
 a web.xml of just
 web-app/
 should do.

 -QM

 --

 software   -- http://www.brandxdev.net/
 tech news  -- http://www.RoarNetworX.com/
 code scan  -- http://www.JxRef.org/

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


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



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


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



Re: Need help exporting contexts not under webapps/

2005-04-18 Thread QM
On Mon, Apr 18, 2005 at 01:16:04PM -0500, J. Ryan Earl wrote:
: So my question is, in short, given a directory structure of static files,
: how do you get Tomcat to serve said static content off of an arbitrary URI?

So, are you trying to
1/ have a Tomcat-run webapp serve content that exists outside of the
context path?

2/ setup the static content as its own webapp (context)?


For #1, the (portable, spec-friendly) way is to write a servlet or
filter to intercept requests for a given URI, open the matching file as
an InputStream, and push the data to the client via the Response
OutputStream.

For #2, I don't remember the exact syntax off the top of my head so I
won't waste your time with something that may not work. =) But it's
definitely possible for a webapp to not exist under the webapps/
directory.

Just make sure said webapp has a WEB-INF directory and a web.xml.  Even
a web.xml of just
web-app/
should do.

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Re: Need Help w. Servlet Images.

2005-03-31 Thread QM
On Thu, Mar 31, 2005 at 02:42:10PM -0500, Steve R. Burrus wrote:
: Can someone/somebody please tell me just how exactly I go about viewing an 
image using both of the FileInputStream and the FileOutputStream classes in 
connection with the method getRealPath()??

Share your code, and we can help point out bugs.

Better yet: what does the stack trace indicate is the source of the
error?


: I have been failing to view the images due to always getting a 
java.lang.NullPointerException every time that I try to see the images in my 
browser. 

I recall getRealPath() doesn't work quite well inside packed WAR files,
if that's how you're running.  

If you're streaming images, why not place them outside of the webapp?
That lets the images and the webapp vary independently.

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



RE: Need help for case insensitive deployment

2004-09-29 Thread Willy Lin
Hi Wendy:

Thanks for your tip.  That was it.  I had to use Resources ...
instead of Resource   I also had to play with the directory structure
somewhat to get everything to work.  Here is the final context that I had
for my application.

Context path=/BBS docBase=BBS debug=0 privileged=true
Resources name =
type=org.apache.naming.resources.FileDirContext 
caseSensitive=false cached=true /
/Context  

Here is a few things that I learned.

1.  I can't have a docBase in Resources...  Tomcat is using the
docBase from Context.. not matter what I do.

2.  The docBase in Context... is using the appBase in Host.. as
its root directory.  In my case, it is ~tomcat/webapps/.  When the same
docBase is used by the Resources.., the root path is switched to
~tomcat/.  This caused some problem.  I had to create an empty directory
of ~tomcat/BBS in order for my application to deploy.  The actual files
for the application is still in ~tomcat/webapps/BBS.

3.  No longer able to use file resources from remote server.  In the
past I was able to set docBase to //host1/dir1.

It is quirky, but it is working now.  May be things are better in
Tomcat 5.0.  Thank you for your help.


Willy


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 5:58 PM
To: Tomcat Users List
Subject: Re: Need help for case insensitive deployment


From: Willy Lin [EMAIL PROTECTED]
 Thank you.  Now, I know I am not talking to myself.  You are right that
 there is no mention of case sensitivity at the context level in Tomcat
4.0,
 but it is mentioned at the resource level.
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/resources.html

Okay... the only thing I see is an extra 's'.  The docs say:

A Resources element MAY be nested inside a Context component.:

And you have:
 Context path=/Live docBase=\\host1\dir1 debug=0 privileged=true
 Resource name = type=org.apache.naming.resources.FileDirContext
 ...

Resource vs. Resource_s_?

-- 
Wendy Smoak


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


RE: Need help for case insensitive deployment

2004-09-28 Thread Willy Lin
Hi:

Can someone tell me whether my question is posted or not?  Am I
having problem with my mail server?
Thanks.


Willy

-Original Message-
From: Willy Lin 
Sent: Tuesday, September 28, 2004 10:39 AM
To: 'Tomcat Users List'
Subject: Need help for case insensitive deployment



Hi:

I need to server up some pages through Tomcat4 that are case
insensitive.  I have found an attribute in resources for case sensitivity,
but I could not get it to work.  Here is my context definition.

Context path=/Live docBase=\\host1\dir1 debug=0 privileged=true
Resource name = type=org.apache.naming.resources.FileDirContext
docBase=\\host1\dir1 
caseSensitive=false cached=true /
/Context

Can someone tell me what is wrong or point me to a sample
configuration for case insensitive deployment.  Thanks a lot.



Crazy Monkey


Re: Need help for case insensitive deployment

2004-09-28 Thread Wendy Smoak
From: Willy Lin [EMAIL PROTECTED]
 Can someone tell me whether my question is posted or not?  Am I
 having problem with my mail server?

We got it the first time.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

I don't see any reference to 'caseSensitive' there, do you?  It's on the
Tomcat 5.0 version of that page, however...

-- 
Wendy Smoak


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



Re: Need help for case insensitive deployment

2004-09-28 Thread QM
On Tue, Sep 28, 2004 at 10:39:19AM -0700, Willy Lin wrote:
:   I need to server up some pages through Tomcat4 that are case
: insensitive.

Time for some creative Filter action, then?
-or even not-so-creative Filter action...?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Need help for case insensitive deployment

2004-09-28 Thread Willy Lin
Thank you.  Now, I know I am not talking to myself.  You are right that
there is no mention of case sensitivity at the context level in Tomcat 4.0,
but it is mentioned at the resource level.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/resources.html


Willy

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 5:18 PM
To: Tomcat Users List
Subject: Re: Need help for case insensitive deployment


From: Willy Lin [EMAIL PROTECTED]
 Can someone tell me whether my question is posted or not?  Am I
 having problem with my mail server?

We got it the first time.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

I don't see any reference to 'caseSensitive' there, do you?  It's on the
Tomcat 5.0 version of that page, however...

-- 
Wendy Smoak


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


Re: Need help for case insensitive deployment

2004-09-28 Thread Wendy Smoak
From: Willy Lin [EMAIL PROTECTED]
 Thank you.  Now, I know I am not talking to myself.  You are right that
 there is no mention of case sensitivity at the context level in Tomcat
4.0,
 but it is mentioned at the resource level.
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/resources.html

Okay... the only thing I see is an extra 's'.  The docs say:

A Resources element MAY be nested inside a Context component.:

And you have:
 Context path=/Live docBase=\\host1\dir1 debug=0 privileged=true
 Resource name = type=org.apache.naming.resources.FileDirContext
 ...

Resource vs. Resource_s_?

-- 
Wendy Smoak


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



Re: Need Help

2004-09-03 Thread QM
On Fri, Sep 03, 2004 at 02:16:26PM +0800, Venu wrote:
: I am trying to execute my jsp's  servlets from my remote server
: from /home/httpd/vhosts/domainname.com dir
: 
: It works fine for the Html's but when try to execute my jsp's  servlets
:  it is not able to execute and even doesnt displays an error page just
: displays
: only the html tags.

Check out the Tomcat docs on this one.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Need help with Log4j and Tomcat5

2004-07-23 Thread Shapira, Yoav

Hi,
Just what's mentioned in the log4j manual:
- Place log4j.jar in WEB-INF/lib
- Place log4j code in your JSPs as you wish
- Place log4j.properties in WEB-INF/classes or configure log4j
programmatically.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 5:27 PM
To: [EMAIL PROTECTED]
Subject: Need help with Log4j and Tomcat5

Hello,

What do I have to do to use Log4j in my jsp application which running
on
Tomcat5?

Thanks!

tp


  http://www.imc2.com/imc2Logo.gif
tonte pouncil
software developer

214.224.1105
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns =
urn:schemas-microsoft-com:office:office /


7505 john carpenter frwy
dallas, texas 75247
214.224.1000
fax/214.224.1100





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


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



RE: Need help with Log4j and Tomcat5

2004-07-23 Thread Tonte Pouncil
Thanks I will try this... I had my log4j.properties in web-inf/config/ instead of 
web-inf/classes


Thanks again.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 7:50 AM
To: Tomcat Users List
Subject: RE: Need help with Log4j and Tomcat5



Hi,
Just what's mentioned in the log4j manual:
- Place log4j.jar in WEB-INF/lib
- Place log4j code in your JSPs as you wish
- Place log4j.properties in WEB-INF/classes or configure log4j
programmatically.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 5:27 PM
To: [EMAIL PROTECTED]
Subject: Need help with Log4j and Tomcat5

Hello,

What do I have to do to use Log4j in my jsp application which running
on
Tomcat5?

Thanks!

tp


  http://www.imc2.com/imc2Logo.gif
tonte pouncil
software developer

214.224.1105
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns =
urn:schemas-microsoft-com:office:office /


7505 john carpenter frwy
dallas, texas 75247
214.224.1000
fax/214.224.1100





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


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


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



RE: Need help with Log4j and Tomcat5

2004-07-23 Thread Tonte Pouncil
Thanks a lot.  I was successful at logging my debug statements.  Thanks a bunch!

tp

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 7:50 AM
To: Tomcat Users List
Subject: RE: Need help with Log4j and Tomcat5



Hi,
Just what's mentioned in the log4j manual:
- Place log4j.jar in WEB-INF/lib
- Place log4j code in your JSPs as you wish
- Place log4j.properties in WEB-INF/classes or configure log4j
programmatically.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 5:27 PM
To: [EMAIL PROTECTED]
Subject: Need help with Log4j and Tomcat5

Hello,

What do I have to do to use Log4j in my jsp application which running
on
Tomcat5?

Thanks!

tp


  http://www.imc2.com/imc2Logo.gif
tonte pouncil
software developer

214.224.1105
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns =
urn:schemas-microsoft-com:office:office /


7505 john carpenter frwy
dallas, texas 75247
214.224.1000
fax/214.224.1100





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


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


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



RE: Need help with Log4j and Tomcat5

2004-07-23 Thread Bill Harrelson
This works fine for me under Tomcat, and works well for multiple 
applications (jars in each WEB-INF/lib, props files in each /class).  
However, when I try to do the same under Eclipse, I get 
classNotFound for log4j.jar unless I put the jars (in each WEB-
INF/lib) explicitly into the Eclipse run/debug classpath, in which case 
it only picks up the first jar and I only get one logger.

Has anybody else run into this?  Anybody have any idea what to do 
next?

TIA,

Bill


Send reply to:  Tomcat Users List [EMAIL PROTECTED]
Subject:RE: Need help with Log4j and Tomcat5
Date sent:  Fri, 23 Jul 2004 09:14:59 -0500
From:   Tonte Pouncil [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]

 Thanks a lot.  I was successful at logging my debug statements.  Thanks a bunch!
 
 tp
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 23, 2004 7:50 AM
 To: Tomcat Users List
 Subject: RE: Need help with Log4j and Tomcat5
 
 
 
 Hi,
 Just what's mentioned in the log4j manual:
 - Place log4j.jar in WEB-INF/lib
 - Place log4j code in your JSPs as you wish
 - Place log4j.properties in WEB-INF/classes or configure log4j
 programmatically.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 22, 2004 5:27 PM
 To: [EMAIL PROTECTED]
 Subject: Need help with Log4j and Tomcat5
 
 Hello,
 
 What do I have to do to use Log4j in my jsp application which running
 on
 Tomcat5?
 
 Thanks!
 
 tp
 
 
   http://www.imc2.com/imc2Logo.gif
 tonte pouncil
 software developer
 
 214.224.1105
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
 
 www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns =
 urn:schemas-microsoft-com:office:office /
 
 
 7505 john carpenter frwy
 dallas, texas 75247
 214.224.1000
 fax/214.224.1100
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



RE: Need help with Log4j and Tomcat5

2004-07-23 Thread Tonte Pouncil
So you have different log4j jar files?  If so why, why not just use one?

-Original Message-
From: Bill Harrelson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 9:37 AM
To: Tomcat Users List
Subject: RE: Need help with Log4j and Tomcat5


This works fine for me under Tomcat, and works well for multiple 
applications (jars in each WEB-INF/lib, props files in each /class).  
However, when I try to do the same under Eclipse, I get 
classNotFound for log4j.jar unless I put the jars (in each WEB-
INF/lib) explicitly into the Eclipse run/debug classpath, in which case 
it only picks up the first jar and I only get one logger.

Has anybody else run into this?  Anybody have any idea what to do 
next?

TIA,

Bill


Send reply to:  Tomcat Users List [EMAIL PROTECTED]
Subject:RE: Need help with Log4j and Tomcat5
Date sent:  Fri, 23 Jul 2004 09:14:59 -0500
From:   Tonte Pouncil [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]

 Thanks a lot.  I was successful at logging my debug statements.  Thanks a bunch!
 
 tp
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 23, 2004 7:50 AM
 To: Tomcat Users List
 Subject: RE: Need help with Log4j and Tomcat5
 
 
 
 Hi,
 Just what's mentioned in the log4j manual:
 - Place log4j.jar in WEB-INF/lib
 - Place log4j code in your JSPs as you wish
 - Place log4j.properties in WEB-INF/classes or configure log4j
 programmatically.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 22, 2004 5:27 PM
 To: [EMAIL PROTECTED]
 Subject: Need help with Log4j and Tomcat5
 
 Hello,
 
 What do I have to do to use Log4j in my jsp application which running
 on
 Tomcat5?
 
 Thanks!
 
 tp
 
 
   http://www.imc2.com/imc2Logo.gif
 tonte pouncil
 software developer
 
 214.224.1105
  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
 
 www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns =
 urn:schemas-microsoft-com:office:office /
 
 
 7505 john carpenter frwy
 dallas, texas 75247
 214.224.1000
 fax/214.224.1100
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



-
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: Need help with Log4j and Tomcat5

2004-07-23 Thread Bill Harrelson
I have multiple applications, say app1 and app2.  I want separate 
logging for each application.  log4j creates a static repository 
associated with each classloader.  They suggest having separate 
jars in each appx/WEB-INF/lib directory so that log4j's static classes 
create separate repositories because each application uses a 
separate classloader.

This works great.  However, Eclipse doesn't seem to create 
separate classloaders, or something, as only one of my loggers 
works, and then only if I explicitly put /lib/log4j.jar in the classpath.  
There was a thread about this on a WebSphere list that said that 
one had to change WS's classloader default to Parent-last but I 
don't know whether this applies to Eclipse.

I'm hoping someone on this list has some experience with multiple 
applications in Tomcat, log4j and Eclipse.  I've been wrestling with 
this for a while and can't find anyone that has been able to help.

TIA

Bill


Send reply to:  Tomcat Users List [EMAIL PROTECTED]
Subject:RE: Need help with Log4j and Tomcat5
Date sent:  Fri, 23 Jul 2004 09:50:28 -0500
From:   Tonte Pouncil [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]

 So you have different log4j jar files?  If so why, why not just use one?
 
 -Original Message-
 From: Bill Harrelson [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 23, 2004 9:37 AM
 To: Tomcat Users List
 Subject: RE: Need help with Log4j and Tomcat5
 
 
 This works fine for me under Tomcat, and works well for multiple 
 applications (jars in each WEB-INF/lib, props files in each /class).  
 However, when I try to do the same under Eclipse, I get 
 classNotFound for log4j.jar unless I put the jars (in each WEB-
 INF/lib) explicitly into the Eclipse run/debug classpath, in which case 
 it only picks up the first jar and I only get one logger.
 
 Has anybody else run into this?  Anybody have any idea what to do 
 next?
 
 TIA,
 
 Bill
 
 
 Send reply to:  Tomcat Users List [EMAIL PROTECTED]
 Subject:RE: Need help with Log4j and Tomcat5
 Date sent:  Fri, 23 Jul 2004 09:14:59 -0500
 From:   Tonte Pouncil [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 
  Thanks a lot.  I was successful at logging my debug statements.  Thanks a bunch!
  
  tp
  
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 23, 2004 7:50 AM
  To: Tomcat Users List
  Subject: RE: Need help with Log4j and Tomcat5
  
  
  
  Hi,
  Just what's mentioned in the log4j manual:
  - Place log4j.jar in WEB-INF/lib
  - Place log4j code in your JSPs as you wish
  - Place log4j.properties in WEB-INF/classes or configure log4j
  programmatically.
  
  Yoav Shapira
  Millennium Research Informatics
  
  
  -Original Message-
  From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
  Sent: Thursday, July 22, 2004 5:27 PM
  To: [EMAIL PROTECTED]
  Subject: Need help with Log4j and Tomcat5
  
  Hello,
  
  What do I have to do to use Log4j in my jsp application which running
  on
  Tomcat5?
  
  Thanks!
  
  tp
  
  
http://www.imc2.com/imc2Logo.gif
  tonte pouncil
  software developer
  
  214.224.1105
   mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
  
  www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns =
  urn:schemas-microsoft-com:office:office /
  
  
  7505 john carpenter frwy
  dallas, texas 75247
  214.224.1000
  fax/214.224.1100
  
  
  
  
  
  This e-mail, including any attachments, is a confidential business communication, 
  and may contain information that is confidential, proprietary and/or privileged.  
  This e-mail is intended only for the individual(s) to whom it is addressed, and 
  may not be saved, copied, printed, disclosed or used by anyone else.  If you are 
  not the(an) intended recipient, please immediately delete this e-mail from your 
  computer system and notify the sender.  Thank you.
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



RE: Need help with Log4j and Tomcat5

2004-07-23 Thread Shapira, Yoav

Hi,
Eclipse has a unified flat classloader at runtime.  That means one
log4j.jar.  Although Eclipse offers some nice versioning and reloading
features in this classloader, those don't help in your scenario.  Try
the eclipse user mailing lists or forums.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Bill Harrelson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 11:20 AM
To: Tomcat Users List
Subject: RE: Need help with Log4j and Tomcat5

I have multiple applications, say app1 and app2.  I want separate
logging for each application.  log4j creates a static repository
associated with each classloader.  They suggest having separate
jars in each appx/WEB-INF/lib directory so that log4j's static classes
create separate repositories because each application uses a
separate classloader.

This works great.  However, Eclipse doesn't seem to create
separate classloaders, or something, as only one of my loggers
works, and then only if I explicitly put /lib/log4j.jar in the
classpath.
There was a thread about this on a WebSphere list that said that
one had to change WS's classloader default to Parent-last but I
don't know whether this applies to Eclipse.

I'm hoping someone on this list has some experience with multiple
applications in Tomcat, log4j and Eclipse.  I've been wrestling with
this for a while and can't find anyone that has been able to help.

TIA

Bill


Send reply to:  Tomcat Users List
[EMAIL PROTECTED]
Subject:RE: Need help with Log4j and Tomcat5
Date sent:  Fri, 23 Jul 2004 09:50:28 -0500
From:   Tonte Pouncil [EMAIL PROTECTED]
To: Tomcat Users List
[EMAIL PROTECTED]

 So you have different log4j jar files?  If so why, why not just use
one?

 -Original Message-
 From: Bill Harrelson [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 23, 2004 9:37 AM
 To: Tomcat Users List
 Subject: RE: Need help with Log4j and Tomcat5


 This works fine for me under Tomcat, and works well for multiple
 applications (jars in each WEB-INF/lib, props files in each /class).
 However, when I try to do the same under Eclipse, I get
 classNotFound for log4j.jar unless I put the jars (in each WEB-
 INF/lib) explicitly into the Eclipse run/debug classpath, in which
case
 it only picks up the first jar and I only get one logger.

 Has anybody else run into this?  Anybody have any idea what to do
 next?

 TIA,

 Bill


 Send reply to:  Tomcat Users List
[EMAIL PROTECTED]
 Subject:RE: Need help with Log4j and Tomcat5
 Date sent:  Fri, 23 Jul 2004 09:14:59 -0500
 From:   Tonte Pouncil [EMAIL PROTECTED]
 To: Tomcat Users List
[EMAIL PROTECTED]

  Thanks a lot.  I was successful at logging my debug statements.
Thanks
a bunch!
 
  tp
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 23, 2004 7:50 AM
  To: Tomcat Users List
  Subject: RE: Need help with Log4j and Tomcat5
 
 
 
  Hi,
  Just what's mentioned in the log4j manual:
  - Place log4j.jar in WEB-INF/lib
  - Place log4j code in your JSPs as you wish
  - Place log4j.properties in WEB-INF/classes or configure log4j
  programmatically.
 
  Yoav Shapira
  Millennium Research Informatics
 
 
  -Original Message-
  From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
  Sent: Thursday, July 22, 2004 5:27 PM
  To: [EMAIL PROTECTED]
  Subject: Need help with Log4j and Tomcat5
  
  Hello,
  
  What do I have to do to use Log4j in my jsp application which
running
  on
  Tomcat5?
  
  Thanks!
  
  tp
  
  
http://www.imc2.com/imc2Logo.gif
  tonte pouncil
  software developer
  
  214.224.1105
   mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
  
  www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns
=
  urn:schemas-microsoft-com:office:office /
  
  
  7505 john carpenter frwy
  dallas, texas 75247
  214.224.1000
  fax/214.224.1100
  
  
 
 
 
  This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 



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

RE: Need help building JK/JK2 for Netscape (Sun ONE) on Solaris

2004-04-19 Thread Benjamin Armintor
AFAIK, you won't be able to get an NSAPI connector for JK2.  We're using
JK 1.2.5 and Netscape, but I built it with good ol' make.

What were the actual error messages you got?

Benjamin J. Armintor
Systems Analyst
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
 


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Rob Cash
Sent: Monday, April 19, 2004 11:10 AM
To: [EMAIL PROTECTED]
Subject: Need help building JK/JK2 for Netscape (Sun ONE) on Solaris


I'm having trouble building JK/JK2 for Netscape on Solaris. Has anyone
had any luck with this? I got the sources via CVS (using JK_1_2_5 tag),
made build.properties file, then ran 'ant native'. Ant fails on the 'so'
task because it tried to call libtool, which wants to invoke 'cc'. I
have gcc on my system, not cc, and I don't know how to tell and to tell
libtool that. I've tried all sorts of properties, but without any luck.

Any help would be greatly appreciated.


Cheers,
Rob




-
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: Need help - Data Source problem

2004-03-03 Thread Philipp Taprogge
Hi!

Mathew wrote:
For me it looks like my program is not able to
read tags in server.xml to get driver class info. Any help is really
appreciated.
If sure looks that way, but without further information one can't be sure.
It would really help matters if you could post the relevant parts of 
your server.xml. Perhaps there's just a typo or something.

	Phil

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


RE: Need help - Data Source problem

2004-03-03 Thread Mike Curwen
Supply more information.
What does your server.xml and web.xml look like? (don't post the whole
file, just relevant parts).
Where is your driver jar located? (it should be common/lib)
 
That class of error (class '' for URL 'null') is fairly common, and
normally it's mis-configuration.

 -Original Message-
 From: Mathew [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 03, 2004 9:42 AM
 To: [EMAIL PROTECTED]
 Subject: Need help - Data Source problem
 
 
 
 I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my 
 server.xml and web.xml to use data source. When ever I 
 excecute a servlet from browser I get the folloeing message.  
 For me it looks like my program is not able to
 read tags in server.xml to get driver class info.   Any help is really
 appreciated .
 
 org.apache.commons.dbcp.SQLNestedException: Cannot create 
 JDBC driver of class '' for connect URL 'null', cause: null
 
 
 -
 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: Need help - Data Source problem

2004-03-03 Thread Mathew
Thak you for your response..  I appreciate your time ..

This is my server.xml
---

  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
 Context path=sunil docBase=sunil
  debug=0 crossContext=true  reloadable=true
   Resource name=jdbc/myoracle auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/myoracle
  parameter
 namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
 nameurl/name
 valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value
  /parameter
  parameter
 nameusername/name
 valuewebuser/value
  /parameter
  parameter
 namepassword/name
 valueoralin/value
  /parameter
  parameter
 namemaxActive/name
 value20/value
  /parameter
  parameter
 namemaxIdle/name
 value10/value
  /parameter
  parameter
 namemaxWait/name
 value-1/value
  /parameter
   /ResourceParams
 /Context

My Web.xml is
--

web-app
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/servlet/MyServlet/url-pattern
/servlet-mapping
resource-ref
descriptionOracle Datasource example/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
/web-app



 Supply more information.
 What does your server.xml and web.xml look like? (don't post the whole
 file, just relevant parts).
 Where is your driver jar located? (it should be common/lib)

 That class of error (class '' for URL 'null') is fairly common, and
 normally it's mis-configuration.

 -Original Message-
 From: Mathew [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 03, 2004 9:42 AM
 To: [EMAIL PROTECTED]
 Subject: Need help - Data Source problem



 I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my
 server.xml and web.xml to use data source. When ever I
 excecute a servlet from browser I get the folloeing message.
 For me it looks like my program is not able to
 read tags in server.xml to get driver class info.   Any help is really
 appreciated .

 org.apache.commons.dbcp.SQLNestedException: Cannot create
 JDBC driver of class '' for connect URL 'null', cause: null


 -
 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: Need help - Data Source problem

2004-03-03 Thread Mathew

 I am still trying to fix this problem. I looked at
TOMCAT_HOME/commons/lib dircory and found out that I have
commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to remane to
commons-dbcp.jar. Same thing for commons-pool-1.1.jar too.


 I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my
 server.xml and web.xml to use data source. When ever I
 excecute a servlet from browser I get the folloeing message.
 For me it looks like my program is not able to
 read tags in server.xml to get driver class info.   Any help is really
 appreciated .

my set up is like this :-


This is my server.xml
---

  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
 Context path=sunil docBase=sunil
  debug=0 crossContext=true  reloadable=true
   Resource name=jdbc/myoracle auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/myoracle
  parameter
 namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
 nameurl/name
 valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value
  /parameter
  parameter
 nameusername/name
 valuewebuser/value
  /parameter
  parameter
 namepassword/name
 valueoralin/value
  /parameter
  parameter
 namemaxActive/name
 value20/value
  /parameter
  parameter
 namemaxIdle/name
 value10/value
  /parameter
  parameter
 namemaxWait/name
 value-1/value
  /parameter
   /ResourceParams
 /Context

My Web.xml is
--

web-app
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/servlet/MyServlet/url-pattern
/servlet-mapping
resource-ref
descriptionOracle Datasource example/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
/web-app





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



RE: Need help - Data Source problem

2004-03-03 Thread Mike Curwen
where is the oracle connection driver jar file ? 
It needs to be in common/lib as well

 -Original Message-
 From: Mathew [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 03, 2004 2:18 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Need help - Data Source problem
 
 
 
  I am still trying to fix this problem. I looked at 
 TOMCAT_HOME/commons/lib dircory and found out that I have 
 commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to 
 remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too.
 
 
  I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my  
 server.xml and web.xml to use data source. When ever I  
 excecute a servlet from browser I get the folloeing message.  
 For me it looks like my program is not able to
  read tags in server.xml to get driver class info.   Any help 
 is really
  appreciated .
 
 my set up is like this :-
 
 
 This is my server.xml
 ---
 
   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
  Context path=sunil docBase=sunil
   debug=0 crossContext=true  reloadable=true
Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/myoracle
   parameter
  namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
   /parameter
   parameter
  nameurl/name
  
 valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value
   /parameter
   parameter
  nameusername/name
  valuewebuser/value
   /parameter
   parameter
  namepassword/name
  valueoralin/value
   /parameter
   parameter
  namemaxActive/name
  value20/value
   /parameter
   parameter
  namemaxIdle/name
  value10/value
   /parameter
   parameter
  namemaxWait/name
  value-1/value
   /parameter
/ResourceParams
  /Context
 
 My Web.xml is
 --
 
 web-app
 servlet-mapping
 servlet-nameMyServlet/servlet-name
 url-pattern/servlet/MyServlet/url-pattern
 /servlet-mapping
 resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/myoracle/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 /web-app
 
 
 
 
 
 -
 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: Need help - Data Source problem

2004-03-03 Thread Mike Curwen
As for naming,  you could name that jar file dirty_laundry.jar and it
wouldn't matter. It's the classes that are found inside of it that
matter.  the -1.1 is merely a help for you to know what version of
commons-dbcp you are using, which is, I understand, a matter of some
religious debate around here. ;)


 -Original Message-
 From: Mathew [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 03, 2004 2:18 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Need help - Data Source problem
 
 
 
  I am still trying to fix this problem. I looked at 
 TOMCAT_HOME/commons/lib dircory and found out that I have 
 commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to 
 remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too.
 


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



RE: Need help - Data Source problem

2004-03-03 Thread Mathur, Arun

Hi guys,

I'm pretty much a newbie when it comes to configuring Tomcat, and also with
building JSPs, although thanks to the useful examples and documentation,
I've been able to pick it up pretty quickly.

Anyways, I am interested in using the utilties provided in the
commons-fileupload-1.0.jar file. I downloaded it to the
$CATALINA_HOME/common/lib folder. When I tried to import
org.apache.commons.fileupload.*, I get an error stating that the package
doesn't exist. For the hell of it, I made a standalone java program with the
same import statement, and it worked fine.  Does anyone have any thoughts as
to what else I can do to troubleshoot this problem further?  I am running
Tomcat-4.1.27.

Thanks,
Arun



-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 03, 2004 3:31 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Need help - Data Source problem


As for naming,  you could name that jar file dirty_laundry.jar and it
wouldn't matter. It's the classes that are found inside of it that matter.
the -1.1 is merely a help for you to know what version of commons-dbcp you
are using, which is, I understand, a matter of some religious debate around
here. ;)


 -Original Message-
 From: Mathew [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 03, 2004 2:18 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Need help - Data Source problem
 
 
 
  I am still trying to fix this problem. I looked at
 TOMCAT_HOME/commons/lib dircory and found out that I have 
 commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to 
 remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too.
 


-
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: Need help - Data Source problem

2004-03-03 Thread Shapira, Yoav

Hi,

same import statement, and it worked fine.  Does anyone have any
thoughts
as
to what else I can do to troubleshoot this problem further?  I am
running
Tomcat-4.1.27.

I have a thought: start your own thread for your question and don't
hijack other peoples' ;)

Yoav Shapira



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


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



RE: Need help - Data Source problem

2004-03-03 Thread Mathur, Arun

My apologies. I forgot to change the subject before posting. 



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 03, 2004 4:04 PM
To: Tomcat Users List
Subject: RE: Need help - Data Source problem



Hi,

same import statement, and it worked fine.  Does anyone have any
thoughts
as
to what else I can do to troubleshoot this problem further?  I am
running
Tomcat-4.1.27.

I have a thought: start your own thread for your question and don't hijack
other peoples' ;)

Yoav Shapira



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


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

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



RE: Need help - Data Source problem

2004-03-03 Thread Mathew
I have a classes111.jar file common/lib . Any other suggestion



 where is the oracle connection driver jar file ?
 It needs to be in common/lib as well

 -Original Message-
 From: Mathew [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 03, 2004 2:18 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Need help - Data Source problem



  I am still trying to fix this problem. I looked at
 TOMCAT_HOME/commons/lib dircory and found out that I have
 commons-dbcp-1.1.jar instead of commons-dbcp.jar. Do Ihave to
 remane to commons-dbcp.jar. Same thing for commons-pool-1.1.jar too.


  I am using TOMCAT 5.0.19 and Apache 1.3.x. I configured my
 server.xml and web.xml to use data source. When ever I
 excecute a servlet from browser I get the folloeing message.
 For me it looks like my program is not able to
  read tags in server.xml to get driver class info.   Any help
 is really
  appreciated .

 my set up is like this :-


 This is my server.xml
 ---

   Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
  Context path=sunil docBase=sunil
   debug=0 crossContext=true  reloadable=true
Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/myoracle
   parameter
  namefactory/name

 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
   /parameter
   parameter
  nameurl/name

 valuejdbc:oracle:thin:@192.168.2.101:1521:oralin/value
   /parameter
   parameter
  nameusername/name
  valuewebuser/value
   /parameter
   parameter
  namepassword/name
  valueoralin/value
   /parameter
   parameter
  namemaxActive/name
  value20/value
   /parameter
   parameter
  namemaxIdle/name
  value10/value
   /parameter
   parameter
  namemaxWait/name
  value-1/value
   /parameter
/ResourceParams
  /Context

 My Web.xml is
 --

 web-app
 servlet-mapping
 servlet-nameMyServlet/servlet-name
 url-pattern/servlet/MyServlet/url-pattern
 /servlet-mapping
 resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/myoracle/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 /web-app





 -
 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: Need Help in Session Management !!!

2004-02-29 Thread shanmugampl
I think you can get the user name by getting the Principal object from 
request and then getting the name from it like

String userName = request.getUserPrincipal().getName();

-Shanmugam-

amit varshney wrote:

I want to use  tomcat user authentication in my application. for that i am using 
JDBCRealm.I have set the security constraint in the web.xml. So when  a request for 
the restricted page comes a login page comes.
But the problem is that it is submitting to the j_security_check and the textboxes are 
named j_username and j_password respectivley.I want session mangemant in my 
application. For that I need the login name of the person on my each page. How can I 
pass the username from login page to my page. is it possible to maintain session using 
tomcat user authentication or should i go for my own authentication and session 
management.
Plz help me 
Thanks in advance 
Amit Varshney

-
Still single? Click here to find the perfect match.
   
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141

 



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


RE: need help adding classpath to Tomcat 5.0.18 NT Service

2004-02-06 Thread Robert Ensinger
Hi folks.

I'm still unsuccessful at adding an explicit classpath to Tomcat when
running as a service via the -Djava.class.path= switch detailed below.

Can someone confirm or deny that this is the proper way to add an explicit
classpath to the service? If so, I'll log the bug.

Thanks,
-R

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 03, 2004 11:40 PM
To: [EMAIL PROTECTED]
Subject: need help adding classpath to Tomcat 5.0.18 NT Service

Hi Folks,

I'm working with an app that needs a classpath kickstart to
run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\.

 

When starting the server via the startup.bat, the app works properly when
the set classpath variable in the setclasspath.bat is defined as:

set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar

 

Now I wish to see this app run when Tomcat is started as a service.

 

Under Java VM in the configuration utility I have added:

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

 

My Java Options box reads as follows:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0

-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

-Xrs 

 

This isn't working.

I've read the docs and How Tos, spelunked this list, googled, added this
classpath to the systems environmental variables, to the catalina.xml, and
even the catalina.proprties. None of this seems to work.

 

Where is the proper spot to add a classpath to Tomcat running as a service?
What is the proper syntax? (examples?)

 

My java version is 1.4.2. I have successfully setup this app in JRun4 
Weblogic 8.1 running as services. Need a little help with the Tomcat.

 

Thanks!

 

Robert Ensinger



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



RE: need help adding classpath to Tomcat 5.0.18 NT Service

2004-02-06 Thread Bodycombe, Andrew
If you moved engine.jar from the shared/lib folder to the common/lib folder,
would that remove the need to explicitly set the classpath?

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: 06 February 2004 16:49
To: 'Tomcat Users List'
Subject: RE: need help adding classpath to Tomcat 5.0.18 NT Service


Hi folks.

I'm still unsuccessful at adding an explicit classpath to Tomcat when
running as a service via the -Djava.class.path= switch detailed below.

Can someone confirm or deny that this is the proper way to add an explicit
classpath to the service? If so, I'll log the bug.

Thanks,
-R

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 03, 2004 11:40 PM
To: [EMAIL PROTECTED]
Subject: need help adding classpath to Tomcat 5.0.18 NT Service

Hi Folks,

I'm working with an app that needs a classpath kickstart to
run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\.

 

When starting the server via the startup.bat, the app works properly when
the set classpath variable in the setclasspath.bat is defined as:

set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar

 

Now I wish to see this app run when Tomcat is started as a service.

 

Under Java VM in the configuration utility I have added:

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

 

My Java Options box reads as follows:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0

-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

-Xrs 

 

This isn't working.

I've read the docs and How Tos, spelunked this list, googled, added this
classpath to the systems environmental variables, to the catalina.xml, and
even the catalina.proprties. None of this seems to work.

 

Where is the proper spot to add a classpath to Tomcat running as a service?
What is the proper syntax? (examples?)

 

My java version is 1.4.2. I have successfully setup this app in JRun4 
Weblogic 8.1 running as services. Need a little help with the Tomcat.

 

Thanks!

 

Robert Ensinger



-
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: need help adding classpath to Tomcat 5.0.18 NT Service

2004-02-06 Thread Robert Ensinger
I gave moving the jar a shot yesterday just to be sure but no dice. 

I'm not the developer of this app so I can't speak to why its necessary, but
the only way to get full functionality from this app is to explicitly add
the classpath to the server startup. 
This works successfully on Weblogic 8.1, SunOne,  JRun4. 

I can get the full app to work properly in Tomcat when started via the
startup.bat (classpath added to the setclasspath.bat); now the problem I
need to solve is how I duplicate this success when running Tomcat as an NT
Service.

I haven't found any documentation that specifically addresses adding the
classpath to the nt service startup, so I've tried the approaches listed
below.

Until I can confirm or deny I'm adding the classpath properly I don't know
if I have a bug here. 

I will check if anyone has added an enhancement request for better
documentation on the configure tomcat utility.

-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 06, 2004 12:00 PM
To: 'Tomcat Users List'
Subject: RE: need help adding classpath to Tomcat 5.0.18 NT Service

If you moved engine.jar from the shared/lib folder to the common/lib folder,
would that remove the need to explicitly set the classpath?

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: 06 February 2004 16:49
To: 'Tomcat Users List'
Subject: RE: need help adding classpath to Tomcat 5.0.18 NT Service


Hi folks.

I'm still unsuccessful at adding an explicit classpath to Tomcat when
running as a service via the -Djava.class.path= switch detailed below.

Can someone confirm or deny that this is the proper way to add an explicit
classpath to the service? If so, I'll log the bug.

Thanks,
-R

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 03, 2004 11:40 PM
To: [EMAIL PROTECTED]
Subject: need help adding classpath to Tomcat 5.0.18 NT Service

Hi Folks,

I'm working with an app that needs a classpath kickstart to
run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\.

 

When starting the server via the startup.bat, the app works properly when
the set classpath variable in the setclasspath.bat is defined as:

set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar

 

Now I wish to see this app run when Tomcat is started as a service.

 

Under Java VM in the configuration utility I have added:

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

 

My Java Options box reads as follows:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0

-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

-Xrs 

 

This isn't working.

I've read the docs and How Tos, spelunked this list, googled, added this
classpath to the systems environmental variables, to the catalina.xml, and
even the catalina.proprties. None of this seems to work.

 

Where is the proper spot to add a classpath to Tomcat running as a service?
What is the proper syntax? (examples?)

 

My java version is 1.4.2. I have successfully setup this app in JRun4 
Weblogic 8.1 running as services. Need a little help with the Tomcat.

 

Thanks!

 

Robert Ensinger



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

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



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



RE: need help adding classpath to Tomcat 5.0.18 NT Service

2004-02-03 Thread Filip Hanik \(lists\)
why don't you just add the files to /common/endorsed/ that way they will get
automatically added to the tomcat classpath without you setting any
variables.

also, setting up tomcat in a file system with spaces in the paths, can be a
debug pain in the butt,
I would try to avoid doing that

Filip

-Original Message-
From: Robert Ensinger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 8:40 PM
To: [EMAIL PROTECTED]
Subject: need help adding classpath to Tomcat 5.0.18 NT Service


Hi Folks,

I'm working with an app that needs a classpath kickstart to
run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\.



When starting the server via the startup.bat, the app works properly when
the set classpath variable in the setclasspath.bat is defined as:

set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar



Now I wish to see this app run when Tomcat is started as a service.



Under Java VM in the configuration utility I have added:

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar



My Java Options box reads as follows:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0

-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed

-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi
ne.jar

-Xrs



This isn't working.

I've read the docs and How Tos, spelunked this list, googled, added this
classpath to the systems environmental variables, to the catalina.xml, and
even the catalina.proprties. None of this seems to work.



Where is the proper spot to add a classpath to Tomcat running as a service?
What is the proper syntax? (examples?)



My java version is 1.4.2. I have successfully setup this app in JRun4 
Weblogic 8.1 running as services. Need a little help with the Tomcat.



Thanks!



Robert Ensinger


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004


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



Re: Need Help - Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2 + Windows 2000 Server ( No IIS)

2003-12-26 Thread Mark Eggers
Check 

http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

and see if that information helps.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



RE: Need help with Virtual Host Directive

2003-12-19 Thread Shapira, Yoav

Howdy,
So you want to disallow access based on local, rather than remote (the request's), IP 
address?

Remote address filtering is easy: see the Valve How-To page section on 
RemoteAddressValve.

Local address filtering is also not very difficult, but requires you to write some 
code.  Namely, you will need to write a filter that looks at the request's local 
address (HttpServletRequest#getLocalAddr, a new method in the Servlet Specification 
v2.4, so you need tomcat 5 for this) and rejects requests based on your rules.

Alternatively, you can simply not define webapps inside those virtual hosts where you 
don't want them available.  Turn autoDeploy off for the host, explicitly define 
webapps where you want them.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Wehner, Terry [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 2:33 PM
To: '[EMAIL PROTECTED]'
Subject: Need help with Virtual Host Directive

I have several Virtual Hosts (IP addresses) running on one Unix Server serviced by 
Apache 2.0.48
I have defined all of them in both my apache httpd.conf file as well as Tomcats 
server.xml file.
This works fine.
What I am trying to do now is disallow access from certain virtual hosts to 
applications under the webapps directory
While still allowing it for others?
Can someone please assist me in the correct syntax to put in the server.xml file to 
make this happen?
Example
Server Name:     myserver
Virtual Hosts are:   your-server, our-server, their-server
Under the webapps directory there are 3 applications:   app-1, app-2, app-3
I want your-server and our-server to see app-1 and app-3 but not app-2
I want their-server to only see app-2
Any insight would be great.
Thanks
-Terry



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


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



RE: Need help with Virtual Host Directive

2003-12-19 Thread Wehner, Terry
Yoav,

Moving to Tomcat 5 is not an option right now.

Your alternative suggestion sounds interesting.
How does the autodeploy feature work?
If I turn it off, how do I specifically name directories (apps)?

Terry


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 19, 2003 2:38 PM
To: Tomcat Users List
Subject: RE: Need help with Virtual Host Directive



Howdy,
So you want to disallow access based on local, rather than remote (the
request's), IP address?  

Remote address filtering is easy: see the Valve How-To page section on
RemoteAddressValve.

Local address filtering is also not very difficult, but requires you to
write some code.  Namely, you will need to write a filter that looks at the
request's local address (HttpServletRequest#getLocalAddr, a new method in
the Servlet Specification v2.4, so you need tomcat 5 for this) and rejects
requests based on your rules.

Alternatively, you can simply not define webapps inside those virtual hosts
where you don't want them available.  Turn autoDeploy off for the host,
explicitly define webapps where you want them.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Wehner, Terry [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 19, 2003 2:33 PM
To: '[EMAIL PROTECTED]'
Subject: Need help with Virtual Host Directive

I have several Virtual Hosts (IP addresses) running on one Unix Server
serviced by Apache 2.0.48 
I have defined all of them in both my apache httpd.conf file as well as
Tomcats server.xml file. 
This works fine. 
What I am trying to do now is disallow access from certain virtual hosts to
applications under the webapps directory 
While still allowing it for others? 
Can someone please assist me in the correct syntax to put in the server.xml
file to make this happen? 
Example 
Server Name:     myserver 
Virtual Hosts are:   your-server, our-server, their-server 
Under the webapps directory there are 3 applications:   app-1, app-2, app-3 
I want your-server and our-server to see app-1 and app-3 but not app-2 
I want their-server to only see app-2 
Any insight would be great. 
Thanks 
-Terry 



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


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

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



RE: Need help with Virtual Host Directive

2003-12-19 Thread Shapira, Yoav

Howdy,

Your alternative suggestion sounds interesting.
How does the autodeploy feature work?
If I turn it off, how do I specifically name directories (apps)?

If you're playing with a multiple virtual hosts configuration, you really want to 
thoroughly understand this page: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html as well as the 
Automatic Application Deployment page linked from the above page.

Basically, you add autoDeploy=false to your Host definition.  You then have a 
Context element for each of your web applications under each host where you want 
them accessible.

Yoav Shapira


Terry


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 2:38 PM
To: Tomcat Users List
Subject: RE: Need help with Virtual Host Directive



Howdy,
So you want to disallow access based on local, rather than remote (the
request's), IP address?

Remote address filtering is easy: see the Valve How-To page section on
RemoteAddressValve.

Local address filtering is also not very difficult, but requires you to
write some code.  Namely, you will need to write a filter that looks at the
request's local address (HttpServletRequest#getLocalAddr, a new method in
the Servlet Specification v2.4, so you need tomcat 5 for this) and rejects
requests based on your rules.

Alternatively, you can simply not define webapps inside those virtual hosts
where you don't want them available.  Turn autoDeploy off for the host,
explicitly define webapps where you want them.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Wehner, Terry [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 2:33 PM
To: '[EMAIL PROTECTED]'
Subject: Need help with Virtual Host Directive

I have several Virtual Hosts (IP addresses) running on one Unix Server
serviced by Apache 2.0.48
I have defined all of them in both my apache httpd.conf file as well as
Tomcats server.xml file.
This works fine.
What I am trying to do now is disallow access from certain virtual hosts to
applications under the webapps directory
While still allowing it for others?
Can someone please assist me in the correct syntax to put in the server.xml
file to make this happen?
Example
Server Name:     myserver
Virtual Hosts are:   your-server, our-server, their-server
Under the webapps directory there are 3 applications:   app-1, app-2, app-3
I want your-server and our-server to see app-1 and app-3 but not app-2
I want their-server to only see app-2
Any insight would be great.
Thanks
-Terry



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


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

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




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


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



RE: Need help with Virtual Host Directive

2003-12-19 Thread Wehner, Terry
Thanks,

In the interim I got it to work  :-)

-Terry


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 19, 2003 3:04 PM
To: Tomcat Users List
Subject: RE: Need help with Virtual Host Directive



Howdy,

Your alternative suggestion sounds interesting.
How does the autodeploy feature work?
If I turn it off, how do I specifically name directories (apps)?

If you're playing with a multiple virtual hosts configuration, you really
want to thoroughly understand this page:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html as well as
the Automatic Application Deployment page linked from the above page.

Basically, you add autoDeploy=false to your Host definition.  You then
have a Context element for each of your web applications under each host
where you want them accessible.

Yoav Shapira


Terry


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 2:38 PM
To: Tomcat Users List
Subject: RE: Need help with Virtual Host Directive



Howdy,
So you want to disallow access based on local, rather than remote (the
request's), IP address?

Remote address filtering is easy: see the Valve How-To page section on
RemoteAddressValve.

Local address filtering is also not very difficult, but requires you to
write some code.  Namely, you will need to write a filter that looks at the
request's local address (HttpServletRequest#getLocalAddr, a new method in
the Servlet Specification v2.4, so you need tomcat 5 for this) and rejects
requests based on your rules.

Alternatively, you can simply not define webapps inside those virtual hosts
where you don't want them available.  Turn autoDeploy off for the host,
explicitly define webapps where you want them.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Wehner, Terry [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 2:33 PM
To: '[EMAIL PROTECTED]'
Subject: Need help with Virtual Host Directive

I have several Virtual Hosts (IP addresses) running on one Unix Server
serviced by Apache 2.0.48
I have defined all of them in both my apache httpd.conf file as well as
Tomcats server.xml file.
This works fine.
What I am trying to do now is disallow access from certain virtual hosts to
applications under the webapps directory
While still allowing it for others?
Can someone please assist me in the correct syntax to put in the server.xml
file to make this happen?
Example
Server Name:     myserver
Virtual Hosts are:   your-server, our-server, their-server
Under the webapps directory there are 3 applications:   app-1, app-2, app-3
I want your-server and our-server to see app-1 and app-3 but not app-2
I want their-server to only see app-2
Any insight would be great.
Thanks
-Terry



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


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

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




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


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

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



RE: Need help to study thread dump

2003-12-15 Thread Shapira, Yoav

Howdy,
It's a classic thread safety issue.  Dump your homebrew connection
pooling implementation in favor of a 3rd party one like DBCP that is
better tested against these race conditions.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vikas [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 7:56 PM
To: [EMAIL PROTECTED]
Subject: Need help to study thread dump


Hi,

My app is running on bes 5.1

App sometime stops responsding and i have to restart my server. Below
is
some portion of thread dump which i got for the app

VBJ ThreadPool Worker daemon prio=5 tid=0x14f1148 nid=0xad70 waiting
for
monitor entry [e767d000..e767fc24]
 at
com.vks.group.pkg.util.DBConnectionPool.getConnection(DBConnectionPool.
java
:166)
 - waiting to lock efdc0158 (a
com.vks.group.pkg.util.DBConnectionPool)
 at
com.vks.group.pkg.util.DBConnectionPool.isDBPoolOK(DBConnectionPool.jav
a:34
9)
 at
com.vks.group.pkg.util.DBConnectionPoolManager.isDBPoolOK(DBConnectionP
oolM
anager.java:219)
 at com.vks.group.pkg.util.DBUtil.isDBPoolOK(DBUtil.java:681)
 at com.vks.group.pkg.util.DBUtil.isDBPoolOK(DBUtil.java:677)
 at MyServResponse.processRequest(MyServResponse.java:39)

From the dump all i could make out is there lock wait on one object to
get
database connection. Is it problem with the java code or like problem
with
the database unavailabilty.

We dont get this problem quiet frequently , this come only once in a
month
, ie we need to start our server once every month.  Has anybody come
across
such problem in past , pls help me how to go about solving it.





**
Viks
**
Yahoo! India Matrimony: Find your partner online.Post your profile.



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


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



RE: Need help with connectors

2003-12-12 Thread Yansheng Lin
I am assuming you downloaded apache, tomcat, and mod_jk_2.X.X.dll

Try:
1) rename mod_jk_2.X.X.dll to mod_jk2.dll, and place it under 
$APACHE_HOME/modules/
2) In apache httpd.conf
# Using mod_jk2.dll to redirect dynamic calls to Tomcat
LoadModule jk2_module modules/mod_jk2.dll

Does it work?

-Original Message-
From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 11:28 AM
To: Tomcat Users List
Subject: Need help with connectors


Hi,


I'm beginning to think that I need to be a system
administrator to connect Apache 2.0 with Tomcat 5.0!
I've already spent 2 full days trying to get it to
work. I remember that for Tomcat 3.4 it took me about
5 minutes.

(I can't even tell whether there is too much
documentation or not enough. Under
/tomcat-4.1-doc/jk2/jk2/configtcex.html there are many
links and I don't know whether I need some of them or
all of them. I don't know whether 4.1 instruction
apply to 5.0. It is not clear how to modify Unix
instruction for Windows intructions. Ordinarily I'm a
Unix guy (I helped write the Gimp), but this is a
Windows project. How am I supposed to interpret the
sentence There is no need to use the jkjni logic to
use normal socket, so that just for Fun. What's just
for Fun? jkjni or normal socket? Also, on the menu,
the headers are instiguishable from live links so the
whole structure of the document is unclear.)

Anyway, I think you guys produce amazing products,
I've always used them and will stick by them in the
future. I'm just a little frustrated and a little bit
jealous of my time so I'm hoping that someone will
provide instructions for Apache2 + Tomcat5 + Win32.

Thanks.

Dola

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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


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



RE: Need help with connectors

2003-12-12 Thread Asif Chowdhary
This should solve your problem

httpd.conf: just one single row like this:
LoadModule jk2_module modules/mod_jk2-2.0.43.dll

Then I added a worker2.properties in Apache/conf/ like this:

[logger]
level=DEBUG
file=c:/programme/apache group/apache2/logs/jk2.log

[config]
file=c:/programme/apache group/apache2/conf/workers2.properties
debug=0
debugEnv=0

# Shared memory handling. Needs to be set.
[shm]
file=c:/programme/apache group/apache2/logs/shm.file
size=1048576
debug=0
#disabled=0


# Example socket channel, explicitly set port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
tomcatId=localhost:8009
debug=0

[status:]
info=Status worker,displays run time informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/examples/*]
info=tomcat examples
context=/examples
worker=ajp13:localhost:8009
debug=0
# end of workers2.properties

Finally, I configured this Connector in the Tomcat server.xml:
---
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8010
minProcessors=5 maxProcessors=250
acceptCount=10 debug=0
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler /


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 5:33 PM
To: 'Tomcat Users List'
Subject: RE: Need help with connectors


I am assuming you downloaded apache, tomcat, and mod_jk_2.X.X.dll

Try:
1) rename mod_jk_2.X.X.dll to mod_jk2.dll, and place it under 
$APACHE_HOME/modules/
2) In apache httpd.conf
# Using mod_jk2.dll to redirect dynamic calls to Tomcat
LoadModule jk2_module modules/mod_jk2.dll

Does it work?

-Original Message-
From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 11:28 AM
To: Tomcat Users List
Subject: Need help with connectors


Hi,


I'm beginning to think that I need to be a system
administrator to connect Apache 2.0 with Tomcat 5.0!
I've already spent 2 full days trying to get it to
work. I remember that for Tomcat 3.4 it took me about
5 minutes.

(I can't even tell whether there is too much
documentation or not enough. Under
/tomcat-4.1-doc/jk2/jk2/configtcex.html there are many
links and I don't know whether I need some of them or
all of them. I don't know whether 4.1 instruction
apply to 5.0. It is not clear how to modify Unix
instruction for Windows intructions. Ordinarily I'm a
Unix guy (I helped write the Gimp), but this is a
Windows project. How am I supposed to interpret the
sentence There is no need to use the jkjni logic to
use normal socket, so that just for Fun. What's just
for Fun? jkjni or normal socket? Also, on the menu,
the headers are instiguishable from live links so the
whole structure of the document is unclear.)

Anyway, I think you guys produce amazing products,
I've always used them and will stick by them in the
future. I'm just a little frustrated and a little bit
jealous of my time so I'm hoping that someone will
provide instructions for Apache2 + Tomcat5 + Win32.

Thanks.

Dola

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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


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


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



RE: Need help with connectors

2003-12-12 Thread Yansheng Lin
Just one quick question(I am just playing with this right now).  Don't pay me
too much attention if the answer is RTFM.

Shouldn't the port for jk2 connector be 8009 instead of 8010?  


-Original Message-
From: Asif Chowdhary [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 3:56 PM
To: Tomcat Users List
Subject: RE: Need help with connectors


This should solve your problem

httpd.conf: just one single row like this:
LoadModule jk2_module modules/mod_jk2-2.0.43.dll

Then I added a worker2.properties in Apache/conf/ like this:

[logger]
level=DEBUG
file=c:/programme/apache group/apache2/logs/jk2.log

[config]
file=c:/programme/apache group/apache2/conf/workers2.properties
debug=0
debugEnv=0

# Shared memory handling. Needs to be set.
[shm]
file=c:/programme/apache group/apache2/logs/shm.file
size=1048576
debug=0
#disabled=0


# Example socket channel, explicitly set port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
tomcatId=localhost:8009
debug=0

[status:]
info=Status worker,displays run time informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/examples/*]
info=tomcat examples
context=/examples
worker=ajp13:localhost:8009
debug=0
# end of workers2.properties

Finally, I configured this Connector in the Tomcat server.xml:
---
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8010
minProcessors=5 maxProcessors=250
acceptCount=10 debug=0
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler /


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 5:33 PM
To: 'Tomcat Users List'
Subject: RE: Need help with connectors


I am assuming you downloaded apache, tomcat, and mod_jk_2.X.X.dll

Try:
1) rename mod_jk_2.X.X.dll to mod_jk2.dll, and place it under 
$APACHE_HOME/modules/
2) In apache httpd.conf
# Using mod_jk2.dll to redirect dynamic calls to Tomcat
LoadModule jk2_module modules/mod_jk2.dll

Does it work?

-Original Message-
From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 11:28 AM
To: Tomcat Users List
Subject: Need help with connectors


Hi,


I'm beginning to think that I need to be a system
administrator to connect Apache 2.0 with Tomcat 5.0!
I've already spent 2 full days trying to get it to
work. I remember that for Tomcat 3.4 it took me about
5 minutes.

(I can't even tell whether there is too much
documentation or not enough. Under
/tomcat-4.1-doc/jk2/jk2/configtcex.html there are many
links and I don't know whether I need some of them or
all of them. I don't know whether 4.1 instruction
apply to 5.0. It is not clear how to modify Unix
instruction for Windows intructions. Ordinarily I'm a
Unix guy (I helped write the Gimp), but this is a
Windows project. How am I supposed to interpret the
sentence There is no need to use the jkjni logic to
use normal socket, so that just for Fun. What's just
for Fun? jkjni or normal socket? Also, on the menu,
the headers are instiguishable from live links so the
whole structure of the document is unclear.)

Anyway, I think you guys produce amazing products,
I've always used them and will stick by them in the
future. I'm just a little frustrated and a little bit
jealous of my time so I'm hoping that someone will
provide instructions for Apache2 + Tomcat5 + Win32.

Thanks.

Dola

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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


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


-
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: Need help with connectors

2003-12-12 Thread Asif Chowdhary
YES the default port is 8009. It should be 8009 in server.xml file as well

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 6:02 PM
To: 'Tomcat Users List'
Subject: RE: Need help with connectors


Just one quick question(I am just playing with this right now).  Don't pay me
too much attention if the answer is RTFM.

Shouldn't the port for jk2 connector be 8009 instead of 8010?  


-Original Message-
From: Asif Chowdhary [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 3:56 PM
To: Tomcat Users List
Subject: RE: Need help with connectors


This should solve your problem

httpd.conf: just one single row like this:
LoadModule jk2_module modules/mod_jk2-2.0.43.dll

Then I added a worker2.properties in Apache/conf/ like this:

[logger]
level=DEBUG
file=c:/programme/apache group/apache2/logs/jk2.log

[config]
file=c:/programme/apache group/apache2/conf/workers2.properties
debug=0
debugEnv=0

# Shared memory handling. Needs to be set.
[shm]
file=c:/programme/apache group/apache2/logs/shm.file
size=1048576
debug=0
#disabled=0


# Example socket channel, explicitly set port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
tomcatId=localhost:8009
debug=0

[status:]
info=Status worker,displays run time informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/examples/*]
info=tomcat examples
context=/examples
worker=ajp13:localhost:8009
debug=0
# end of workers2.properties

Finally, I configured this Connector in the Tomcat server.xml:
---
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8010
minProcessors=5 maxProcessors=250
acceptCount=10 debug=0
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler /


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 5:33 PM
To: 'Tomcat Users List'
Subject: RE: Need help with connectors


I am assuming you downloaded apache, tomcat, and mod_jk_2.X.X.dll

Try:
1) rename mod_jk_2.X.X.dll to mod_jk2.dll, and place it under 
$APACHE_HOME/modules/
2) In apache httpd.conf
# Using mod_jk2.dll to redirect dynamic calls to Tomcat
LoadModule jk2_module modules/mod_jk2.dll

Does it work?

-Original Message-
From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 11:28 AM
To: Tomcat Users List
Subject: Need help with connectors


Hi,


I'm beginning to think that I need to be a system
administrator to connect Apache 2.0 with Tomcat 5.0!
I've already spent 2 full days trying to get it to
work. I remember that for Tomcat 3.4 it took me about
5 minutes.

(I can't even tell whether there is too much
documentation or not enough. Under
/tomcat-4.1-doc/jk2/jk2/configtcex.html there are many
links and I don't know whether I need some of them or
all of them. I don't know whether 4.1 instruction
apply to 5.0. It is not clear how to modify Unix
instruction for Windows intructions. Ordinarily I'm a
Unix guy (I helped write the Gimp), but this is a
Windows project. How am I supposed to interpret the
sentence There is no need to use the jkjni logic to
use normal socket, so that just for Fun. What's just
for Fun? jkjni or normal socket? Also, on the menu,
the headers are instiguishable from live links so the
whole structure of the document is unclear.)

Anyway, I think you guys produce amazing products,
I've always used them and will stick by them in the
future. I'm just a little frustrated and a little bit
jealous of my time so I'm hoping that someone will
provide instructions for Apache2 + Tomcat5 + Win32.

Thanks.

Dola

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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


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


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


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


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



Re: Need Help getting SSL to work with HttpsURLConnections

2003-12-04 Thread Mike Kellstrand
John,

I found a solution.
Add the line below to force it to use the correct libraries:
System.setProperty(java.protocol.handler.pkgs,javax.net.ssl);

This one falls into the inexplicable category of problems that lots
of people must have dealt with, yet Google shows up almost nothing,
and you never get a reply about it in the mail-group.

cranky this morning,
Mike

- Original Message - 
From: Mike Kellstrand [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 4:40 PM
Subject: Re: Need Help getting SSL to work with HttpsURLConnections


 I just came across a similar problem today.

 I have working code in a Swing app that uses  import javax.net.ssl.*;

 I copied the ssl connection code over to another app
 that happens to be a servlet, and I get the ClassCastException as seen
 below,
 at the line of code:
 connection = (HttpsURLConnection) url.openConnection();

 Anybody know what is going on?

 Thanks,  Mike


 - Original Message - 
 From: John Kammer [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, December 03, 2003 4:02 PM
 Subject: Re: Need Help getting SSL to work with HttpsURLConnections


  An update and a correction...
 
  I was able to get the HttpsURLConnection to work by replacing:
 
 import javax.net.ssl.*;
 
  with:
 
 import com.sun.net.ssl.*;
 
  Contrary to what I had said below there is an
java.lang.ClassCastException
 being thrown when making the call :
 HttpsURLConnection conn = (HttpsURLConnection)
myurl.openConnection();
 
  Now the compiler warns me that I'm using deprecated code, but it does
 work.
  Still, why would javax.net.ssl.* be having this problem ?
 
  Thanks again!
 
 
  ---
   Forgive me, I'm new at this...
  
   I am using: Java v 1.4.2_02-b03
 : Tomcat v 4.1.29
  
   I'm having trouble getting an HttpsURLConnection to work as expected.
I
 suspect I am missing something (possibly a great many things) and would
 appreciate any insight anyone could provide. I've not been able to find a
 single source that addresses this problem although I've found bits and
 pieces in several places.
  
   I have a simple servlet running in Tomcat that does nothing more than
 report back that it is alive. Posting to it at
 http://myserver:8080/simpleServlet/simpleServlet returns a response of:
  
 simpleServletResponseI am alive!/simpleServletResponse.
  
   Additionally I have a simple client app that calls the servlet with a
 POST. The client can run on either the same machine as the server or a
 different machine.
  
   1. Using an HttpURLConnection in the client app works fine. I can call
 the servlet on either port 8080 (http) or 8443 (https).  This works from
 either machine.
  
   2. If I do nothing other than change the HttpURLConnection to an
 HttpsURLConnection then everything falls apart immediately and I don't
 understand why (I do believe I have the proper imports included and it all
 compiles fine). From everything I can tell I should be able to replace the
 one with the other.
  
   3. Keystores  certificates:  I have generated certificates for both
 machines using keytool and have imported the client machine certificate
into
 the trustedcerts file on the server machine. I have NOT had any of these
 certificates signed by a certificate authority (and due to complexities I
 won't go into here that isn't likely to happen).  Do the certificates need
 to be signed by a CA in order for HttpsURLConnection to work?
  
   4. The result of calling the method url.openConnection() is that
null
 is printed to the screen then program execution simply stops. No Exception
 seems to be thrown - everything just stops. Why?
  
   HttpsURLConnection conn = (HttpsURLConnection) myurl.openConnection();
  
   Ultimately I would like to get Client-Certification working but
haven't
 been able to find a good guide out there for doing so. At the moment I am
 taking small steps in the hope of gaining a better understanding. Any help
 would be greatly appreciated.
  
   Thanks in advance !
   -- John Kammer
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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



Re: Need Help getting SSL to work with HttpsURLConnections

2003-12-04 Thread John Kammer
Mike,
  Thanks, that seems to have solved the problem. In a cascasde effect most of the 
other problems I was having also went away. I agree that finding the solution to this 
one was like finding the proverbial needle in the haystack. 

-- Thanks!


 John,
 
 I found a solution.
 Add the line below to force it to use the correct libraries:
 System.setProperty(java.protocol.handler.pkgs,javax.net.ssl);
 
 This one falls into the inexplicable category of problems that lots
 of people must have dealt with, yet Google shows up almost nothing,
 and you never get a reply about it in the mail-group.
 
 cranky this morning,
 Mike
 
 - Original Message - 
 From: Mike Kellstrand [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, December 03, 2003 4:40 PM
 Subject: Re: Need Help getting SSL to work with HttpsURLConnections
 
 
  I just came across a similar problem today.
 
  I have working code in a Swing app that uses  import javax.net.ssl.*;
 
  I copied the ssl connection code over to another app
  that happens to be a servlet, and I get the ClassCastException as seen
  below,
  at the line of code:
  connection = (HttpsURLConnection) url.openConnection();
 
  Anybody know what is going on?
 
  Thanks,  Mike
 
 
  - Original Message - 
  From: John Kammer [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, December 03, 2003 4:02 PM
  Subject: Re: Need Help getting SSL to work with HttpsURLConnections
 
 
   An update and a correction...
  
   I was able to get the HttpsURLConnection to work by replacing:
  
  import javax.net.ssl.*;
  
   with:
  
  import com.sun.net.ssl.*;
  
   Contrary to what I had said below there is an
 java.lang.ClassCastException
  being thrown when making the call :
  HttpsURLConnection conn = (HttpsURLConnection)
 myurl.openConnection();
  
   Now the compiler warns me that I'm using deprecated code, but it does
  work.
   Still, why would javax.net.ssl.* be having this problem ?
  
   Thanks again!
  
  
   ---
Forgive me, I'm new at this...
   
I am using: Java v 1.4.2_02-b03
  : Tomcat v 4.1.29
   
I'm having trouble getting an HttpsURLConnection to work as expected.
 I
  suspect I am missing something (possibly a great many things) and would
  appreciate any insight anyone could provide. I've not been able to find a
  single source that addresses this problem although I've found bits and
  pieces in several places.
   
I have a simple servlet running in Tomcat that does nothing more than
  report back that it is alive. Posting to it at
  http://myserver:8080/simpleServlet/simpleServlet returns a response of:
   
  simpleServletResponseI am alive!/simpleServletResponse.
   
Additionally I have a simple client app that calls the servlet with a
  POST. The client can run on either the same machine as the server or a
  different machine.
   
1. Using an HttpURLConnection in the client app works fine. I can call
  the servlet on either port 8080 (http) or 8443 (https).  This works from
  either machine.
   
2. If I do nothing other than change the HttpURLConnection to an
  HttpsURLConnection then everything falls apart immediately and I don't
  understand why (I do believe I have the proper imports included and it all
  compiles fine). From everything I can tell I should be able to replace the
  one with the other.
   
3. Keystores  certificates:  I have generated certificates for both
  machines using keytool and have imported the client machine certificate
 into
  the trustedcerts file on the server machine. I have NOT had any of these
  certificates signed by a certificate authority (and due to complexities I
  won't go into here that isn't likely to happen).  Do the certificates need
  to be signed by a CA in order for HttpsURLConnection to work?
   
4. The result of calling the method url.openConnection() is that
 null
  is printed to the screen then program execution simply stops. No Exception
  seems to be thrown - everything just stops. Why?
   
HttpsURLConnection conn = (HttpsURLConnection) myurl.openConnection();
   
Ultimately I would like to get Client-Certification working but
 haven't
  been able to find a good guide out there for doing so. At the moment I am
  taking small steps in the hope of gaining a better understanding. Any help
  would be greatly appreciated.
   
Thanks in advance !
-- John Kammer
   
-
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

Re: Need Help getting SSL to work with HttpsURLConnections

2003-12-03 Thread John Kammer
An update and a correction...

I was able to get the HttpsURLConnection to work by replacing:

   import javax.net.ssl.*;

with:
   
   import com.sun.net.ssl.*;

Contrary to what I had said below there is an java.lang.ClassCastException being 
thrown when making the call :
   HttpsURLConnection conn = (HttpsURLConnection) myurl.openConnection();

Now the compiler warns me that I'm using deprecated code, but it does work. 
Still, why would javax.net.ssl.* be having this problem ? 

Thanks again!


---
 Forgive me, I'm new at this...
 
 I am using: Java v 1.4.2_02-b03
   : Tomcat v 4.1.29
 
 IÂ’m having trouble getting an HttpsURLConnection to work as expected. I suspect I am 
 missing something (possibly a great many things) and would appreciate any insight 
 anyone could provide. I've not been able to find a single source that addresses this 
 problem although I've found bits and pieces in several places. 
 
 I have a simple servlet running in Tomcat that does nothing more than report back 
 that it is alive. Posting to it at http://myserver:8080/simpleServlet/simpleServlet 
 returns a response of:
 
   simpleServletResponseI am alive!/simpleServletResponse. 
 
 Additionally I have a simple client app that calls the servlet with a POST. The 
 client can run on either the same machine as the server or a different machine. 
 
 1.Using an HttpURLConnection in the client app works fine. I can call the 
 servlet on either port 8080 (http) or 8443 (https).  This works from either machine.
 
 2.If I do nothing other than change the HttpURLConnection to an 
 HttpsURLConnection then everything falls apart immediately and I donÂ’t understand 
 why (I do believe I have the proper imports included and it all compiles fine). From 
 everything I can tell I should be able to replace the one with the other. 
 
 3.Keystores  certificates:  I have generated certificates for both machines 
 using keytool and have imported the client machine certificate into the trustedcerts 
 file on the server machine. I have NOT had any of these certificates signed by a 
 certificate authority (and due to complexities I wonÂ’t go into here that isnÂ’t 
 likely to happen).  Do the certificates need to be signed by a CA in order for 
 HttpsURLConnection to work?
 
 4.The result of calling the method url.openConnection() is that “null” is 
 printed to the screen then program execution simply stops. No Exception seems to be 
 thrown – everything just stops… Why? 
 
 HttpsURLConnection conn = (HttpsURLConnection) myurl.openConnection();
 
 Ultimately I would like to get Client-Certification working but havenÂ’t been able to 
 find a good guide out there for doing so. At the moment I am taking small steps in 
 the hope of gaining a better understanding. Any help would be greatly appreciated. 
 
 Thanks in advance !
 -- John Kammer
 
 -
 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: Need Help getting SSL to work with HttpsURLConnections

2003-12-03 Thread Mike Kellstrand
I just came across a similar problem today.

I have working code in a Swing app that uses  import javax.net.ssl.*;

I copied the ssl connection code over to another app
that happens to be a servlet, and I get the ClassCastException as seen
below,
at the line of code:
connection = (HttpsURLConnection) url.openConnection();

Anybody know what is going on?

Thanks,  Mike


- Original Message - 
From: John Kammer [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 4:02 PM
Subject: Re: Need Help getting SSL to work with HttpsURLConnections


 An update and a correction...

 I was able to get the HttpsURLConnection to work by replacing:

import javax.net.ssl.*;

 with:

import com.sun.net.ssl.*;

 Contrary to what I had said below there is an java.lang.ClassCastException
being thrown when making the call :
HttpsURLConnection conn = (HttpsURLConnection) myurl.openConnection();

 Now the compiler warns me that I'm using deprecated code, but it does
work.
 Still, why would javax.net.ssl.* be having this problem ?

 Thanks again!


 ---
  Forgive me, I'm new at this...
 
  I am using: Java v 1.4.2_02-b03
: Tomcat v 4.1.29
 
  I'm having trouble getting an HttpsURLConnection to work as expected. I
suspect I am missing something (possibly a great many things) and would
appreciate any insight anyone could provide. I've not been able to find a
single source that addresses this problem although I've found bits and
pieces in several places.
 
  I have a simple servlet running in Tomcat that does nothing more than
report back that it is alive. Posting to it at
http://myserver:8080/simpleServlet/simpleServlet returns a response of:
 
simpleServletResponseI am alive!/simpleServletResponse.
 
  Additionally I have a simple client app that calls the servlet with a
POST. The client can run on either the same machine as the server or a
different machine.
 
  1. Using an HttpURLConnection in the client app works fine. I can call
the servlet on either port 8080 (http) or 8443 (https).  This works from
either machine.
 
  2. If I do nothing other than change the HttpURLConnection to an
HttpsURLConnection then everything falls apart immediately and I don't
understand why (I do believe I have the proper imports included and it all
compiles fine). From everything I can tell I should be able to replace the
one with the other.
 
  3. Keystores  certificates:  I have generated certificates for both
machines using keytool and have imported the client machine certificate into
the trustedcerts file on the server machine. I have NOT had any of these
certificates signed by a certificate authority (and due to complexities I
won't go into here that isn't likely to happen).  Do the certificates need
to be signed by a CA in order for HttpsURLConnection to work?
 
  4. The result of calling the method url.openConnection() is that null
is printed to the screen then program execution simply stops. No Exception
seems to be thrown - everything just stops. Why?
 
  HttpsURLConnection conn = (HttpsURLConnection) myurl.openConnection();
 
  Ultimately I would like to get Client-Certification working but haven't
been able to find a good guide out there for doing so. At the moment I am
taking small steps in the hope of gaining a better understanding. Any help
would be greatly appreciated.
 
  Thanks in advance !
  -- John Kammer
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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



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



RE: Need Help getting SSL to work with HttpsURLConnections

2003-12-03 Thread Trenton D. Adams
I don't think this subject is really on topic for the tomcat list...


import javax.net.ssl.*;
import java.net.*;


public class HTTPTest
{
  public static void main (String args[])
  {
try
{
  URLConnection myConnection = 
(new URL(https://somesite.somedomain.com/;)).openConnection ();
  System.out.println (myConnection.getInputStream().available());
}
catch (Exception exception)
{
  System.out.println (exception.getMessage());
}
  }
} 

Try the following guys, and tell us what happens.

Maybe you might want to email me direct since this is a tomcat list, not a
java list.

 -Original Message-
 From: John Kammer [mailto:[EMAIL PROTECTED] 
 Sent: December 3, 2003 1:26 PM
 To: Tomcat-User
 Subject: Need Help getting SSL to work with HttpsURLConnections
 
 Forgive me, I'm new at this...
 
 I am using: Java v 1.4.2_02-b03
   : Tomcat v 4.1.29
 
 Im having trouble getting an HttpsURLConnection to work as 
 expected. I suspect I am missing something (possibly a great 
 many things) and would appreciate any insight anyone could 
 provide. I've not been able to find a single source that 
 addresses this problem although I've found bits and pieces in 
 several places. 
 
 I have a simple servlet running in Tomcat that does nothing 
 more than report back that it is alive. Posting to it at 
 http://myserver:8080/simpleServlet/simpleServlet returns a 
 response of:
 
   simpleServletResponseI am alive!/simpleServletResponse. 
 
 Additionally I have a simple client app that calls the 
 servlet with a POST. The client can run on either the same 
 machine as the server or a different machine. 
 
 1.Using an HttpURLConnection in the client app works 
 fine. I can call the servlet on either port 8080 (http) or 
 8443 (https).  This works from either machine.
 
 2.If I do nothing other than change the HttpURLConnection 
 to an HttpsURLConnection then everything falls apart 
 immediately and I dont understand why (I do believe I have 
 the proper imports included and it all compiles fine). From 
 everything I can tell I should be able to replace the one 
 with the other. 
 
 3.Keystores  certificates:  I have generated 
 certificates for both machines using keytool and have 
 imported the client machine certificate into the trustedcerts 
 file on the server machine. I have NOT had any of these 
 certificates signed by a certificate authority (and due to 
 complexities I wont go into here that isnt likely to 
 happen).  Do the certificates need to be signed by a CA in 
 order for HttpsURLConnection to work?
 
 4.The result of calling the method url.openConnection() 
 is that null is printed to the screen then program 
 execution simply stops. No Exception seems to be thrown  
 everything just stops Why? 
 
 HttpsURLConnection conn = (HttpsURLConnection) myurl.openConnection();
 
 Ultimately I would like to get Client-Certification working 
 but havent been able to find a good guide out there for 
 doing so. At the moment I am taking small steps in the hope 
 of gaining a better understanding. Any help would be greatly 
 appreciated. 
 
 Thanks in advance !
 -- John Kammer
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__ 
This communication is intended for the use of the recipient to whom it
is addressed, and may contain confidential, personal, and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take
action relying on it. Any communications received in error, or
subsequent reply, should be deleted or destroyed.
---

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



Re: need help

2003-11-03 Thread Kwok Peng Tuck
Make sure you have a JDK in your machine and that JAVA_HOME env variable 
points to it.
Then click on the startup script to run tomcat. Should be able to run.

S.Gokul wrote:

Hi,

I have installed tomcat 5 in my machine running windows 98. Is it compatible with 98 or do I have to do anything else to run it.

Regards,

S.Gokul

 



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


Re: need help

2003-11-03 Thread S.Gokul
Hi,

I do have jdk1.3 installed and I have made the changes in the startup.bat
file in the tomcat bin folder. But still I am not able to run it.

It starts up and then after a few seconds it closes the tomcat window. I
think its throwing some java exception. Can u help me out.

Regards,

S.Gokul

- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 1:46 PM
Subject: Re: need help


 Make sure you have a JDK in your machine and that JAVA_HOME env variable
 points to it.
 Then click on the startup script to run tomcat. Should be able to run.

 S.Gokul wrote:

 Hi,
 
 I have installed tomcat 5 in my machine running windows 98. Is it
compatible with 98 or do I have to do anything else to run it.
 
 Regards,
 
 S.Gokul
 
 
 


 -
 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: need help

2003-11-03 Thread Kwok Peng Tuck
Hello Gokul,
  It's helpful if we can see the exception, so you might want to 
run the script file catalina.bat located in
 the bin directory.

Run it with:catalina run
This makes tomcat run in the current window and you will be able to see 
the exceptions. I'm not really sure if jdk1.3 works
with Tomcat 5 (some one correct me quick) , so keep that in mind as 
well. Cut the exceptions and send it back to the list
to have a look. 

S.Gokul wrote:

Hi,

I do have jdk1.3 installed and I have made the changes in the startup.bat
file in the tomcat bin folder. But still I am not able to run it.
It starts up and then after a few seconds it closes the tomcat window. I
think its throwing some java exception. Can u help me out.
Regards,

S.Gokul

- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 1:46 PM
Subject: Re: need help
 

Make sure you have a JDK in your machine and that JAVA_HOME env variable
points to it.
Then click on the startup script to run tomcat. Should be able to run.
S.Gokul wrote:

   

Hi,

I have installed tomcat 5 in my machine running windows 98. Is it
 

compatible with 98 or do I have to do anything else to run it.
 

Regards,

S.Gokul



 

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



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


 



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


Re: need help

2003-11-03 Thread Basavaraju P. Banakar
correct me if I'm wrong
Tomcat 5 requires JDK 1.4 I remember reading that java.nio packages are
used from JDK1.4

-
Basu..


- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 2:20 PM
Subject: Re: need help


 Hello Gokul,
It's helpful if we can see the exception, so you might want to
 run the script file catalina.bat located in
   the bin directory.

 Run it with:catalina run
 This makes tomcat run in the current window and you will be able to see
 the exceptions. I'm not really sure if jdk1.3 works
 with Tomcat 5 (some one correct me quick) , so keep that in mind as
 well. Cut the exceptions and send it back to the list
 to have a look.

 S.Gokul wrote:

 Hi,
 
 I do have jdk1.3 installed and I have made the changes in the startup.bat
 file in the tomcat bin folder. But still I am not able to run it.
 
 It starts up and then after a few seconds it closes the tomcat window. I
 think its throwing some java exception. Can u help me out.
 
 Regards,
 
 S.Gokul
 
 - Original Message -
 From: Kwok Peng Tuck [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 1:46 PM
 Subject: Re: need help
 
 
 
 
 Make sure you have a JDK in your machine and that JAVA_HOME env variable
 points to it.
 Then click on the startup script to run tomcat. Should be able to run.
 
 S.Gokul wrote:
 
 
 
 Hi,
 
 I have installed tomcat 5 in my machine running windows 98. Is it
 
 
 compatible with 98 or do I have to do anything else to run it.
 
 
 Regards,
 
 S.Gokul
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 


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



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



Re: need help

2003-11-03 Thread Kwok Peng Tuck
Heh, you are quick dude.
So maybe he does need JDK 1.4  :D
Basavaraju P. Banakar wrote:

correct me if I'm wrong
Tomcat 5 requires JDK 1.4 I remember reading that java.nio packages are
used from JDK1.4
-
Basu..
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 2:20 PM
Subject: Re: need help
 

Hello Gokul,
  It's helpful if we can see the exception, so you might want to
run the script file catalina.bat located in
 the bin directory.
Run it with:catalina run
This makes tomcat run in the current window and you will be able to see
the exceptions. I'm not really sure if jdk1.3 works
with Tomcat 5 (some one correct me quick) , so keep that in mind as
well. Cut the exceptions and send it back to the list
to have a look.
S.Gokul wrote:

   

Hi,

I do have jdk1.3 installed and I have made the changes in the startup.bat
file in the tomcat bin folder. But still I am not able to run it.
It starts up and then after a few seconds it closes the tomcat window. I
think its throwing some java exception. Can u help me out.
Regards,

S.Gokul

- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 1:46 PM
Subject: Re: need help


 

Make sure you have a JDK in your machine and that JAVA_HOME env variable
points to it.
Then click on the startup script to run tomcat. Should be able to run.
S.Gokul wrote:



   

Hi,

I have installed tomcat 5 in my machine running windows 98. Is it

 

compatible with 98 or do I have to do anything else to run it.

 

Regards,

S.Gokul





 

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


   

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




 

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



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


 



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


Re: need help

2003-11-03 Thread Peter Harrison
On Mon, 03 Nov 2003 21:42, S.Gokul wrote:
 Hi,

 I do have jdk1.3 installed and I have made the changes in the startup.bat
 file in the tomcat bin folder. But still I am not able to run it.

 It starts up and then after a few seconds it closes the tomcat window. I
 think its throwing some java exception. Can u help me out.

If you are running under Windows98, and you are trying to use a PIF - (like a 
shortcut), you must make sure the memory allocation is set to 4096 bytes. If 
you keep it set to auto the startup fails. Or at least it did years ago 
when I last tried using it under 98.

The problem is that the classpath and system variables set up by the startup 
scripts run out of space.

Hope this helps.

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



Re: need help

2003-11-03 Thread Jean-Francois Arcand
No that's not true. you *don't* need 1.4. Should work with 1.3.x

Open your catalina.bat file and add a line at the end of the script:

pause

Then start your script and post the exception you are seeing here.

-- Jeanfrancois

Basavaraju P. Banakar wrote:

correct me if I'm wrong
Tomcat 5 requires JDK 1.4 I remember reading that java.nio packages are
used from JDK1.4
-
Basu..
- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 2:20 PM
Subject: Re: need help
 

Hello Gokul,
  It's helpful if we can see the exception, so you might want to
run the script file catalina.bat located in
 the bin directory.
Run it with:catalina run
This makes tomcat run in the current window and you will be able to see
the exceptions. I'm not really sure if jdk1.3 works
with Tomcat 5 (some one correct me quick) , so keep that in mind as
well. Cut the exceptions and send it back to the list
to have a look.
S.Gokul wrote:

   

Hi,

I do have jdk1.3 installed and I have made the changes in the startup.bat
file in the tomcat bin folder. But still I am not able to run it.
It starts up and then after a few seconds it closes the tomcat window. I
think its throwing some java exception. Can u help me out.
Regards,

S.Gokul

- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 03, 2003 1:46 PM
Subject: Re: need help


 

Make sure you have a JDK in your machine and that JAVA_HOME env variable
points to it.
Then click on the startup script to run tomcat. Should be able to run.
S.Gokul wrote:



   

Hi,

I have installed tomcat 5 in my machine running windows 98. Is it

 

compatible with 98 or do I have to do anything else to run it.

 

Regards,

S.Gokul





 

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


   

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




 

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



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



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


Re: need help in apache tomcat 4.0

2003-08-29 Thread John Turner
This describes exactly where you should put files:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html

And you also might find the ClassLoader HOWTO helpful:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

John

sheba Tasaduque wrote:

hi
ERROR
v:http://localhost:8080/examples/servlet/UploadServlet (fetch post)
E: Event error.badfetch:line13:java.io.FileNotFoundException: http://localhost:8080/examples/servlet/UploadServlet
==
I want to ask about correct path for addition in apache tomcat 4.0.Actaully i want to get sound file through servlet and for this i have downloaded the class, MultipartRequest, written by Jason Hunter which is available for download at http://www.servlets.com/cos/index.html.you can read Complete documentation for the class at http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html.
After downloading now i am facing problem of placing the classes and etc.I have downloaded cos-05Nov2002.zip and in this zip i got classes folder+doc folder+src folder+upload.war+cos.jar.
now i dont understand where i put these things in apache tomact 4.0 and jdk1.3.0_02.IN jdk1.3 i have putted servlet.jar+cos.jar in jre\lib\ext\.through this i have successfully compiled my servlet but now after putting the class files of servlets in apache tomcat\webapps\examples\web-inf\classes whenever i submit record file from recordmessege  to Uploadmessege then i m getting error of file not found as given above.
=recordmessege.java===
initial code 
---
---
submit next=\http://localhost:8080/examples/servlet/UploadServlet\; enctype=\multipart/form-data\  namelist=\messege\ method=\post\ /
---
---
and from net i got following submit but i dont know about that upload.cgi thats why i have putted 
http://localhost:8080/examples/servlet/UploadServlet.
   submit src=upload.cgi namelist=recording
 method=post enctype=multipart/form-data/
  
UploadServlet.java===
import javax.servlet.*; 
import javax.servlet.http.*; 
import java.io.*; 
import com.oreilly.servlet.MultipartRequest;
public class UploadServlet extends HttpServlet { 
 public void doPost(HttpServletRequest req, HttpServletResponse res) 
  throws ServletException, IOException 
 { 
  // Get output stream. 
  ServletOutputStream out = res.getOutputStream(); 
  // establish directory in which to save recordings and 
   5MB upload limit 
  MultipartRequest multi = new MultipartRequest(req,/recordings/, 5242880); 
  // Send a response back to VXML client. 
  res.setContentType(text/xml); 
  out.println(?xml version=\1.0\?); 
  out.println(vxml version=\1.0\formblock);
  out.println(promptYour greeting was saved./promptexit//block/form/vxml); 
  out.flush(); 
  out.close(); 
 }
}
=
Regard
SHEBA TASADUQUE
n

-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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


Re: Need Help

2003-08-14 Thread John Turner
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

http://jakarta.apache.org/tomcat/faq/

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

Yogesh wrote:

Hello,
I was using Tomcat 3.1 on old server and we have shifted to new server now.
we were using URL http://domain.com:8080/test/servlet/ServletName
to access the user developed servlet files.
We are having Tomcat 4.1 on our new server. So plz send me the 
instructions to configure the above context directly to tomcat confi. 
files for which the docbase is /webapps/examples/WEB-INF/classes/.
Regards
Yogesh

___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp


-
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: Need help : how to shutdown restart Tomcat, how to reload servlet

2003-08-14 Thread Aurele Venet
Hello Vincent,

fro problem 1:
you are using the correct procedure, but it looks like your server was 
never started in the first place.  The connection refused is due to the 
fact that it tries to connect to a port (for shutdown procedure) which 
is not open.  Alternatively, tomcat can some time get stuck and I notice 
that I cannot shut it but it is still running.  In this case you need to 
kill the java process associated with the tomcat server.

Normal procdure of start and stop should work fine.  Look at the end of 
the catalina.out file to see normal starting and shutting down procedure 
logging.

for problem 2:

I have recently installed tomcat 4.1.24 which has a good manager 
interface that allows to start/stop/remove/deploy applications without 
shutting down the server.  A remove/(re)deploy process running from an 
ants script takes me 4 secs to execute (I am on solaris sunblade ws). 

Vincent SEPM MIS wrote:

Dear Tomcat user,
I have two problem here, hope anyone who know can help to teach me.
Problem 1:
How to shutdown and restart tomcat server?
Description:
I try to shutdown and restart Tomcat using shutdown and startup batch file.
I notice some error prompt out when I running shutdown.bat and startup.bat in command 
prompt.
The message I capture during run shutdown.bat in command prompt in Windows XP is as below

: Using Catalina_Base: C:\Program Files\Apache Group\Tomcat 4.1
 Using Catalina_Home: C:\Program Files\Apache Group\Tomcat 4.1
 Using Catalina_Tmpdir: C:\Program Files\Apache Group\Tomcat 4.1\temp
 Using Java_Home: C:\J2sdk1.4.0
 Catalina.stop: Java.net.ConnectException:Connection refused:connect
java.net.ConnectException:Connection
 refuse: connect at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
 at java.net.PlainSocketImpl.connecToAddress(PlainSocketImpl.java:161)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
 at java.net.Socket.connect(Socket.java:425)
 at java.net.Socket.connect(Socket.java:375)
 at java.net.Socket.(init)(Socket.java:290)
 at java.net.Socket.(init)(Socket.java:110)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:579)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccesorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 

Remark : Currently I m using Apache Tomcat/4.1.12-LE-jdk14

Problem 2:
How to reload the servlet program after modified?
Description : 
Everytime I change the servlet program I need to restart my pc.
Anyone know how to reload my servlet program without restart the pc.

Thanks in advance

Vincent.

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


 



--
V
. . . . . . . . . 
tel:+34.918.131.331



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


Re: Need Help For Iplanet Tomcat Configuration

2003-07-25 Thread Eric J. Pinnell
Hi,

I'm not sure if cross posting like that was such a good idea...  But since
I just had to figure this out last week I will share what I learned.

I had to play with this a bit befor I was able to get it to work. I was
using Solaris so I can't help you with the correct version of the
redirector DLL.  I hope this will help.

 Object name=servlet
 ObjectType fn=force-type type=text/plain
 Service fn=jk_service worker=ajp13
 /Object

The documentation isn't entirely correct here.  Put servlet in quotes.
Otherwise iPlanet doesn't see the object name and the assigment you made
in the default object section won't work (you will get that error once you
fix the stuff below). It also wouldn't hurt to put text/plain in quotes.


 workers.worker file
 workers.tomcat_home=C:\Tomcat
 workers.java_home=C:\jdk1.3
 ps=\
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13


I just used to last four lines of what you have here.  But that shouldn't
matter.



 I tried this url
 http://localhost:81/examples/servlet/HelloWorldExample

 [25/Jul/2003:12:59:08] warning ( 212):  for host
 127.0.0.1 trying to GET
 /examples/servlet/HelloWorldExample, send-file
 reports: can't find
 C:/iPlanet/Servers/docs/examples/servlet/HelloWorldExample
 (File not found)

That's exactly what it is doing.  So you have to fool it.  In your iPlanet
docroot create the directory examples.  iPlanet will see it and think it's
there.  Then when it tries to serve it the changes in obj.conf will kick
in and send the request to tomcat.

In some cases you will find that you have to touch (create 0 length
files) in some cases to fool netsacpe into thinking it's there.  Usually
it's just index.jsp.

I also connect to the Coyote/JK2 AJP1.3 connector on the tomcat side and
not the older AJP 1.3 connector.

-e



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



Re: Need help with performance issue - Tomcat 4.1.X

2003-07-13 Thread Tom Parker
On Sat, 2003-07-12 at 08:08, [EMAIL PROTECTED] wrote:
 We are currently starting up with -Xmx256M.  Java is currently using about 
 327MB and has been that way for hours.  I haven't really seen any fluxuations 
 at all, which leans me away from the garbage collection issue.

Constant memory usage as viewed by top or other host operating system
commands is normal. The sun 1.4.1 JVM doesn't seem to shrink it's memory
usage. If you've ever used that much memory, it won't be freed just
because you no longer use it all. 

I believe the memory limits are limits that apply to java objects, not
to the overhead of the VM, so the actual memory allocated from the
operating system is always more than what is available to your program
and can be more than the memory limit. I'm only guessing here though.

I would use a network packet sniffer and see if you can isloate what is
going on at the network level. Ethereal is my favourite.


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



Re: Need help with performance issue - Tomcat 4.1.X

2003-07-12 Thread Eric J. Pinnell
ditto.

There is no sure fire way from the system aspect (CPU, run queue, etc)
that will tell you what's going on.  You need to peek inside the VM and
see what it's doing.

-e

On Fri, 11 Jul 2003, John Turner wrote:


 Like I said, I'm no guru.  Sounds like you need to bust out a profiler.

 John

 On Fri, 11 Jul 2003 20:34:40 +, [EMAIL PROTECTED] wrote:

  But again, the mx is only setting the heap size, not the whole JVM.  The
  thread stack is controlled with an entirely different parameter for
  example.
 
  I found this with a quick search:
 
  The -Xmx setting controls the maximum size of the Java heap.
 
  However, the Java heap represents only part of the memory taken up by a
  running Java application. There is space required for code, data space
  used
  by the JIT, plus any memory malloced by native code drivers associated
  with
  the application running in the JVM.  So the overall memory picture for
  Java
  applications turns out to be more complex than just the -Xmx value.
 
  -- Dave
 
  I have no idea, but based on past experience, if you are using more RAM
  than you've allocated, then you have a swap situation.  If the max
  setting wasn't an actual max, and you could blow past it whenever you
  needed it, why on earth would you need it in the first place?
 
  John
 
  On Fri, 11 Jul 2003 20:24:48 +, [EMAIL PROTECTED] wrote:
 
   I definitely don't know enough about how the memory settings in java
  to  be of much use on this part.  I do not know if we've tried 512.  We
   probably should.
  
   As for the 327, is that actually unreasonable?  The mx setting
  specfies  the maximum heap size.  Can the thread stack (specified using
  -Xss, which  we're not using) be taking up the remaining 75MB?  We have
  about 40  threads started right now.
  
   Like I said, I don't know enough about java's memory allocation, but I
   didn't think that the -Xmx set the maximum allowable total memory for
  the  JVM.  Am I mistaken?
  
   Even if memory were a problem, which it may be, would that account for
  a  20 second delay between serving a page and closing the connection?
   Remember that we currently have no load and only a couple users on the
   system.
  
   -- Dave
  
   I'm certainly no guru, but if you are setting a max of 256 and then
  your  app is soaking up 327 with no load whatsoever, I'd say you have
  a  problem.  Have you tried a max of 512?
  
   John
  
   On Fri, 11 Jul 2003 20:08:10 +, [EMAIL PROTECTED]
  wrote:
  
We are currently starting up with -Xmx256M.  Java is currently
  using   about 327MB and has been that way for hours.  I haven't
  really seen any   fluxuations at all, which leans me away from the
  garbage collection   issue.
   
I created a hello.jsp, which is completely separate from our 
  application.  Same results.  It takes about 30 seconds to return.
   
In the hello.jsp, the results of the page return instantly to the 
   browser, but then it's as if tomcat just won't close the connection
  to   the browser.  The page is there, fully rendered, but just sits
  there   waiting for the server to tell it it is done.  Is there some
  way that  the  tomcat connections could be failing to terminate
  properly?
   
   
Our current maxProcessors = 75
acceptCount = 10 (which is probably low but right now we have only
  a   couple users on the system).
   
We're not using 1.4 so those options are out.
   
-- Dave
Could be a Memory Leak/Garbage Collection issue (we had a similar
problem with a memory intensive app),
maybe your heap is too small and java is running many Full GC's.
Start java with -verbose:gc and look in tomcat/logs/catalina.out
  for   Garbage Collections.
(set Environment Variables JAVA_OPTS or CATALINA_OPTS in 
  bin/catalina.sh  to do this in Tomcat)
   

   
Try using a bigger Heapsize (though if you've got a Memory Leak
  that   will only delay your problem)
or set initial Heapsize to same as maximum, for example 128MB:
-Xmx128m -Xms128m
   

   
Modify the Connector you are using to access Tomcat (in  
  tomcat/conf/server.xml) and
try using more Tomcat Processors (maxProcessors=XX) or a bigger 
  accept  queue length (acceptCount=XX)
(test value for acceptCount: at least  concurrent users x 3)
   

   
Try using another method of garbage collection,
if you're using JDK 1.4.1 i'd try either
   
   
ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC
   
or ParallelGC with AdaptiveSizePolicy (saves you the work of Java
   Heap  usage analyzing :-) :
-XX:UseParallelGC -XX:+UseAdaptiveSizePolicy
   
A good article on GC can be found here:  
  http://wireless.java.sun.com/midp/articles/garbagecollection2/
   

   
   
At 18:04 11.07.2003 +, you 

Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread Matt Swensson
Are these results occurring when tested on a local
area network as well?

I have had an issue like that, but it turned out to be
a networking issue..not tomcat.


--- [EMAIL PROTECTED] wrote:
 With Tomcat 4.1.x
 
 We've recently run into an issue where some of our
 pages either
 a) take a really long time to come up (20+ seconds) 
  or
 b) come up, but never really finish loading (the
 status bar in IE shows the the 
 response hasn't finished).
 
 These are very simple pages (for example, a login
 page) and our server load is 
 minimal (maybe 10 concurrent users).  Then,
 mysteriously, the problem will go 
 away by itself.  It will also return.
 
 Given the information above, I'm not expecting any
 solutions, but I could use 
 some help steering me in the right direction with
 things to check.  We're 
 hooking up monitoring on the systems (Linux) to
 examine memory and CPU 
 utilization during the slowdowns.
 
 Any things in particular we should be examining to
 try to find the problem?  
 Any idea why the pages would never fully return from
 the server?
 
 TIA
 
 -- Dave
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread tomcat-question
Yes, these occur internally and externally.  There does not appear to be any 
network traffic that is causing this (according to the network people...).  
We're also seeing this on two different environments on two distinct networks.

After some more digging, there is just NOTHING happening on the machine.  Dual 
CPU, with both cpu's sitting at about 99% idle.  1 GB of RAM, and it's not even 
being all used.  Tomcat is using about 327MB of RAM with maybe 40(?) threads 
running.

When I submit my request to get the login page (not to process the login, just 
to serve the login page), I couple of the java threads will spin up and take 
maybe 3% of the cpu, but it still takes over 30 seconds to get the page.

Still stuggling for ideas.

-- Dave
 Are these results occurring when tested on a local
 area network as well?
 
 I have had an issue like that, but it turned out to be
 a networking issue..not tomcat.
 
 
 --- [EMAIL PROTECTED] wrote:
  With Tomcat 4.1.x
  
  We've recently run into an issue where some of our
  pages either
  a) take a really long time to come up (20+ seconds) 
   or
  b) come up, but never really finish loading (the
  status bar in IE shows the the 
  response hasn't finished).
  
  These are very simple pages (for example, a login
  page) and our server load is 
  minimal (maybe 10 concurrent users).  Then,
  mysteriously, the problem will go 
  away by itself.  It will also return.
  
  Given the information above, I'm not expecting any
  solutions, but I could use 
  some help steering me in the right direction with
  things to check.  We're 
  hooking up monitoring on the systems (Linux) to
  examine memory and CPU 
  utilization during the slowdowns.
  
  Any things in particular we should be examining to
  try to find the problem?  
  Any idea why the pages would never fully return from
  the server?
  
  TIA
  
  -- Dave
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread John Turner
In a situation like that, the two things I check first are:

1) DNS lookup failing, especially a reverse lookup..do you have Tomcat 
trying to look up a hostname for access logging, perhaps?

2) database connection timing out

Also, I would look at garbage collection, but I doubt that's it.

John

On Fri, 11 Jul 2003 19:22:41 +, [EMAIL PROTECTED] wrote:

Yes, these occur internally and externally.  There does not appear to be 
any network traffic that is causing this (according to the network 
people...).  We're also seeing this on two different environments on two 
distinct networks.

After some more digging, there is just NOTHING happening on the machine.  
Dual CPU, with both cpu's sitting at about 99% idle.  1 GB of RAM, and 
it's not even being all used.  Tomcat is using about 327MB of RAM with 
maybe 40(?) threads running.

When I submit my request to get the login page (not to process the login, 
just to serve the login page), I couple of the java threads will spin up 
and take maybe 3% of the cpu, but it still takes over 30 seconds to get 
the page.

Still stuggling for ideas.

-- Dave
Are these results occurring when tested on a local
area network as well?
I have had an issue like that, but it turned out to be
a networking issue..not tomcat.
--- [EMAIL PROTECTED] wrote:
 With Tomcat 4.1.x
  We've recently run into an issue where some of our
 pages either
 a) take a really long time to come up (20+ seconds)   or
 b) come up, but never really finish loading (the
 status bar in IE shows the the  response hasn't finished).
  These are very simple pages (for example, a login
 page) and our server load is  minimal (maybe 10 concurrent users).  
Then,
 mysteriously, the problem will go  away by itself.  It will also 
return.
  Given the information above, I'm not expecting any
 solutions, but I could use  some help steering me in the right 
direction with
 things to check.  We're  hooking up monitoring on the systems (Linux) 
to
 examine memory and CPU  utilization during the slowdowns.
  Any things in particular we should be examining to
 try to find the problem?   Any idea why the pages would never fully 
return from
 the server?
  TIA
  -- Dave
 
-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread Simon Pabst
Could be a Memory Leak/Garbage Collection issue (we had a similar problem 
with a memory intensive app),
maybe your heap is too small and java is running many Full GC's.
Start java with -verbose:gc and look in tomcat/logs/catalina.out for 
Garbage Collections.
(set Environment Variables JAVA_OPTS or CATALINA_OPTS in bin/catalina.sh to 
do this in Tomcat)



Try using a bigger Heapsize (though if you've got a Memory Leak that will 
only delay your problem)
or set initial Heapsize to same as maximum, for example 128MB:
-Xmx128m -Xms128m



Modify the Connector you are using to access Tomcat (in 
tomcat/conf/server.xml) and
try using more Tomcat Processors (maxProcessors=XX) or a bigger accept 
queue length (acceptCount=XX)
(test value for acceptCount: at least  concurrent users x 3)



Try using another method of garbage collection,
if you're using JDK 1.4.1 i'd try either
ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC
or ParallelGC with AdaptiveSizePolicy (saves you the work of Java Heap 
usage analyzing :-) :
-XX:UseParallelGC -XX:+UseAdaptiveSizePolicy

A good article on GC can be found here: 
http://wireless.java.sun.com/midp/articles/garbagecollection2/



At 18:04 11.07.2003 +, you wrote:
With Tomcat 4.1.x

We've recently run into an issue where some of our pages either
a) take a really long time to come up (20+ seconds)   or
b) come up, but never really finish loading (the status bar in IE shows 
the the
response hasn't finished).

These are very simple pages (for example, a login page) and our server 
load is
minimal (maybe 10 concurrent users).  Then, mysteriously, the problem will go
away by itself.  It will also return.

Given the information above, I'm not expecting any solutions, but I could use
some help steering me in the right direction with things to check.  We're
hooking up monitoring on the systems (Linux) to examine memory and CPU
utilization during the slowdowns.
Any things in particular we should be examining to try to find the problem?
Any idea why the pages would never fully return from the server?
TIA

-- Dave

-
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: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread tomcat-question
I don't believe that the host lookup or db connection is the issue.  The page 
we are serving up is the login page.  I will create a test hello world jsp to 
see if the problem still occurs with that page.

-- Dave
 
 In a situation like that, the two things I check first are:
 
 1) DNS lookup failing, especially a reverse lookup..do you have Tomcat 
 trying to look up a hostname for access logging, perhaps?
 
 2) database connection timing out
 
 Also, I would look at garbage collection, but I doubt that's it.
 
 John
 
 On Fri, 11 Jul 2003 19:22:41 +, [EMAIL PROTECTED] wrote:
 
  Yes, these occur internally and externally.  There does not appear to be 
  any network traffic that is causing this (according to the network 
  people...).  We're also seeing this on two different environments on two 
  distinct networks.
 
  After some more digging, there is just NOTHING happening on the machine.  
  Dual CPU, with both cpu's sitting at about 99% idle.  1 GB of RAM, and 
  it's not even being all used.  Tomcat is using about 327MB of RAM with 
  maybe 40(?) threads running.
 
  When I submit my request to get the login page (not to process the login, 
  just to serve the login page), I couple of the java threads will spin up 
  and take maybe 3% of the cpu, but it still takes over 30 seconds to get 
  the page.
 
  Still stuggling for ideas.
 
  -- Dave
  Are these results occurring when tested on a local
  area network as well?
 
  I have had an issue like that, but it turned out to be
  a networking issue..not tomcat.
 
 
  --- [EMAIL PROTECTED] wrote:
   With Tomcat 4.1.x
We've recently run into an issue where some of our
   pages either
   a) take a really long time to come up (20+ seconds)   or
   b) come up, but never really finish loading (the
   status bar in IE shows the the  response hasn't finished).
These are very simple pages (for example, a login
   page) and our server load is  minimal (maybe 10 concurrent users).  
  Then,
   mysteriously, the problem will go  away by itself.  It will also 
  return.
Given the information above, I'm not expecting any
   solutions, but I could use  some help steering me in the right 
  direction with
   things to check.  We're  hooking up monitoring on the systems (Linux) 
  to
   examine memory and CPU  utilization during the slowdowns.
Any things in particular we should be examining to
   try to find the problem?   Any idea why the pages would never fully 
  return from
   the server?
TIA
-- Dave
   
  -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
 
 
  __
  Do you Yahoo!?
  SBC Yahoo! DSL - Now only $29.95 per month!
  http://sbc.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -- 
 Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
 
 -
 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: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread tomcat-question
We are currently starting up with -Xmx256M.  Java is currently using about 
327MB and has been that way for hours.  I haven't really seen any fluxuations 
at all, which leans me away from the garbage collection issue.

I created a hello.jsp, which is completely separate from our application.  Same 
results.  It takes about 30 seconds to return.

In the hello.jsp, the results of the page return instantly to the browser, but 
then it's as if tomcat just won't close the connection to the browser.  The 
page is there, fully rendered, but just sits there waiting for the server to 
tell it it is done.  Is there some way that the tomcat connections could be 
failing to terminate properly?


Our current maxProcessors = 75
acceptCount = 10 (which is probably low but right now we have only a couple 
users on the system).

We're not using 1.4 so those options are out.

-- Dave
 Could be a Memory Leak/Garbage Collection issue (we had a similar problem 
 with a memory intensive app),
 maybe your heap is too small and java is running many Full GC's.
 Start java with -verbose:gc and look in tomcat/logs/catalina.out for 
 Garbage Collections.
 (set Environment Variables JAVA_OPTS or CATALINA_OPTS in bin/catalina.sh to 
 do this in Tomcat)
 
 
 
 Try using a bigger Heapsize (though if you've got a Memory Leak that will 
 only delay your problem)
 or set initial Heapsize to same as maximum, for example 128MB:
 -Xmx128m -Xms128m
 
 
 
 Modify the Connector you are using to access Tomcat (in 
 tomcat/conf/server.xml) and
 try using more Tomcat Processors (maxProcessors=XX) or a bigger accept 
 queue length (acceptCount=XX)
 (test value for acceptCount: at least  concurrent users x 3)
 
 
 
 Try using another method of garbage collection,
 if you're using JDK 1.4.1 i'd try either
 

 ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
 
 or ParallelGC with AdaptiveSizePolicy (saves you the work of Java Heap 
 usage analyzing :-) :
 -XX:UseParallelGC -XX:+UseAdaptiveSizePolicy
 
 A good article on GC can be found here: 
 http://wireless.java.sun.com/midp/articles/garbagecollection2/
 
 
 
 
 At 18:04 11.07.2003 +, you wrote:
 With Tomcat 4.1.x
 
 We've recently run into an issue where some of our pages either
 a) take a really long time to come up (20+ seconds)   or
 b) come up, but never really finish loading (the status bar in IE shows 
 the the
 response hasn't finished).
 
 These are very simple pages (for example, a login page) and our server 
 load is
 minimal (maybe 10 concurrent users).  Then, mysteriously, the problem will go
 away by itself.  It will also return.
 
 Given the information above, I'm not expecting any solutions, but I could use

 some help steering me in the right direction with things to check.  We're
 hooking up monitoring on the systems (Linux) to examine memory and CPU
 utilization during the slowdowns.
 
 Any things in particular we should be examining to try to find the problem?
 Any idea why the pages would never fully return from the server?
 
 TIA
 
 -- Dave
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread tomcat-question
Another followup.  If we try to access the root context of the server, which is 
not available, the same thing happens.  I get back a 500 error immediately, but 
then the page doesn't finish loading (i.e. get all the response back from the 
server) for another 20 seconds or so.

This seems like a connection problem rather than a memory problem.  Thoughts?

-- Dave
 We are currently starting up with -Xmx256M.  Java is currently using about 
 327MB and has been that way for hours.  I haven't really seen any fluxuations 
 at all, which leans me away from the garbage collection issue.
 
 I created a hello.jsp, which is completely separate from our application.  Same 
 results.  It takes about 30 seconds to return.
 
 In the hello.jsp, the results of the page return instantly to the browser, but 
 then it's as if tomcat just won't close the connection to the browser.  The 
 page is there, fully rendered, but just sits there waiting for the server to 
 tell it it is done.  Is there some way that the tomcat connections could be 
 failing to terminate properly?
 
 
 Our current maxProcessors = 75
 acceptCount = 10 (which is probably low but right now we have only a couple 
 users on the system).
 
 We're not using 1.4 so those options are out.
 
 -- Dave
  Could be a Memory Leak/Garbage Collection issue (we had a similar problem 
  with a memory intensive app),
  maybe your heap is too small and java is running many Full GC's.
  Start java with -verbose:gc and look in tomcat/logs/catalina.out for 
  Garbage Collections.
  (set Environment Variables JAVA_OPTS or CATALINA_OPTS in bin/catalina.sh to 
  do this in Tomcat)
  
  
  
  Try using a bigger Heapsize (though if you've got a Memory Leak that will 
  only delay your problem)
  or set initial Heapsize to same as maximum, for example 128MB:
  -Xmx128m -Xms128m
  
  
  
  Modify the Connector you are using to access Tomcat (in 
  tomcat/conf/server.xml) and
  try using more Tomcat Processors (maxProcessors=XX) or a bigger accept 
  queue length (acceptCount=XX)
  (test value for acceptCount: at least  concurrent users x 3)
  
  
  
  Try using another method of garbage collection,
  if you're using JDK 1.4.1 i'd try either
  
 
  ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
  -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
  
  or ParallelGC with AdaptiveSizePolicy (saves you the work of Java Heap 
  usage analyzing :-) :
  -XX:UseParallelGC -XX:+UseAdaptiveSizePolicy
  
  A good article on GC can be found here: 
  http://wireless.java.sun.com/midp/articles/garbagecollection2/
  
  
  
  
  At 18:04 11.07.2003 +, you wrote:
  With Tomcat 4.1.x
  
  We've recently run into an issue where some of our pages either
  a) take a really long time to come up (20+ seconds)   or
  b) come up, but never really finish loading (the status bar in IE shows 
  the the
  response hasn't finished).
  
  These are very simple pages (for example, a login page) and our server 
  load is
  minimal (maybe 10 concurrent users).  Then, mysteriously, the problem will go
  away by itself.  It will also return.
  
  Given the information above, I'm not expecting any solutions, but I could use
 
  some help steering me in the right direction with things to check.  We're
  hooking up monitoring on the systems (Linux) to examine memory and CPU
  utilization during the slowdowns.
  
  Any things in particular we should be examining to try to find the problem?
  Any idea why the pages would never fully return from the server?
  
  TIA
  
  -- Dave
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread John Turner
I'm certainly no guru, but if you are setting a max of 256 and then your 
app is soaking up 327 with no load whatsoever, I'd say you have a problem.  
Have you tried a max of 512?

John

On Fri, 11 Jul 2003 20:08:10 +, [EMAIL PROTECTED] wrote:

We are currently starting up with -Xmx256M.  Java is currently using 
about 327MB and has been that way for hours.  I haven't really seen any 
fluxuations at all, which leans me away from the garbage collection 
issue.

I created a hello.jsp, which is completely separate from our application. 
Same results.  It takes about 30 seconds to return.

In the hello.jsp, the results of the page return instantly to the 
browser, but then it's as if tomcat just won't close the connection to 
the browser.  The page is there, fully rendered, but just sits there 
waiting for the server to tell it it is done.  Is there some way that the 
tomcat connections could be failing to terminate properly?

Our current maxProcessors = 75
acceptCount = 10 (which is probably low but right now we have only a 
couple users on the system).

We're not using 1.4 so those options are out.

-- Dave
Could be a Memory Leak/Garbage Collection issue (we had a similar 
problem with a memory intensive app),
maybe your heap is too small and java is running many Full GC's.
Start java with -verbose:gc and look in tomcat/logs/catalina.out for 
Garbage Collections.
(set Environment Variables JAVA_OPTS or CATALINA_OPTS in bin/catalina.sh 
to do this in Tomcat)



Try using a bigger Heapsize (though if you've got a Memory Leak that 
will only delay your problem)
or set initial Heapsize to same as maximum, for example 128MB:
-Xmx128m -Xms128m



Modify the Connector you are using to access Tomcat (in 
tomcat/conf/server.xml) and
try using more Tomcat Processors (maxProcessors=XX) or a bigger accept 
queue length (acceptCount=XX)
(test value for acceptCount: at least  concurrent users x 3)



Try using another method of garbage collection,
if you're using JDK 1.4.1 i'd try either

ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC
or ParallelGC with AdaptiveSizePolicy (saves you the work of Java Heap 
usage analyzing :-) :
-XX:UseParallelGC -XX:+UseAdaptiveSizePolicy

A good article on GC can be found here: 
http://wireless.java.sun.com/midp/articles/garbagecollection2/



At 18:04 11.07.2003 +, you wrote:
With Tomcat 4.1.x

We've recently run into an issue where some of our pages either
a) take a really long time to come up (20+ seconds)   or
b) come up, but never really finish loading (the status bar in IE shows 
the the
response hasn't finished).

These are very simple pages (for example, a login page) and our server 
load is
minimal (maybe 10 concurrent users).  Then, mysteriously, the problem 
will go
away by itself.  It will also return.

Given the information above, I'm not expecting any solutions, but I 
could use

some help steering me in the right direction with things to check.  
We're
hooking up monitoring on the systems (Linux) to examine memory and CPU
utilization during the slowdowns.

Any things in particular we should be examining to try to find the 
problem?
Any idea why the pages would never fully return from the server?

TIA

-- Dave

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread tomcat-question
I definitely don't know enough about how the memory settings in java to be of 
much use on this part.  I do not know if we've tried 512.  We probably should. 

As for the 327, is that actually unreasonable?  The mx setting specfies the 
maximum heap size.  Can the thread stack (specified using -Xss, which we're not 
using) be taking up the remaining 75MB?  We have about 40 threads started right 
now.

Like I said, I don't know enough about java's memory allocation, but I didn't 
think that the -Xmx set the maximum allowable total memory for the JVM.  Am I 
mistaken?

Even if memory were a problem, which it may be, would that account for a 20 
second delay between serving a page and closing the connection?  Remember that 
we currently have no load and only a couple users on the system.

-- Dave
 
 I'm certainly no guru, but if you are setting a max of 256 and then your 
 app is soaking up 327 with no load whatsoever, I'd say you have a problem.  
 Have you tried a max of 512?
 
 John
 
 On Fri, 11 Jul 2003 20:08:10 +, [EMAIL PROTECTED] wrote:
 
  We are currently starting up with -Xmx256M.  Java is currently using 
  about 327MB and has been that way for hours.  I haven't really seen any 
  fluxuations at all, which leans me away from the garbage collection 
  issue.
 
  I created a hello.jsp, which is completely separate from our application. 
  Same results.  It takes about 30 seconds to return.
 
  In the hello.jsp, the results of the page return instantly to the 
  browser, but then it's as if tomcat just won't close the connection to 
  the browser.  The page is there, fully rendered, but just sits there 
  waiting for the server to tell it it is done.  Is there some way that the 
  tomcat connections could be failing to terminate properly?
 
 
  Our current maxProcessors = 75
  acceptCount = 10 (which is probably low but right now we have only a 
  couple users on the system).
 
  We're not using 1.4 so those options are out.
 
  -- Dave
  Could be a Memory Leak/Garbage Collection issue (we had a similar 
  problem with a memory intensive app),
  maybe your heap is too small and java is running many Full GC's.
  Start java with -verbose:gc and look in tomcat/logs/catalina.out for 
  Garbage Collections.
  (set Environment Variables JAVA_OPTS or CATALINA_OPTS in bin/catalina.sh 
  to do this in Tomcat)
 
  
 
  Try using a bigger Heapsize (though if you've got a Memory Leak that 
  will only delay your problem)
  or set initial Heapsize to same as maximum, for example 128MB:
  -Xmx128m -Xms128m
 
  
 
  Modify the Connector you are using to access Tomcat (in 
  tomcat/conf/server.xml) and
  try using more Tomcat Processors (maxProcessors=XX) or a bigger accept 
  queue length (acceptCount=XX)
  (test value for acceptCount: at least  concurrent users x 3)
 
  
 
  Try using another method of garbage collection,
  if you're using JDK 1.4.1 i'd try either
 
 
  ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
  -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
 
  or ParallelGC with AdaptiveSizePolicy (saves you the work of Java Heap 
  usage analyzing :-) :
  -XX:UseParallelGC -XX:+UseAdaptiveSizePolicy
 
  A good article on GC can be found here: 
  http://wireless.java.sun.com/midp/articles/garbagecollection2/
 
  
 
 
  At 18:04 11.07.2003 +, you wrote:
  With Tomcat 4.1.x
  
  We've recently run into an issue where some of our pages either
  a) take a really long time to come up (20+ seconds)   or
  b) come up, but never really finish loading (the status bar in IE shows 
  the the
  response hasn't finished).
  
  These are very simple pages (for example, a login page) and our server 
  load is
  minimal (maybe 10 concurrent users).  Then, mysteriously, the problem 
  will go
  away by itself.  It will also return.
  
  Given the information above, I'm not expecting any solutions, but I 
  could use
 
  some help steering me in the right direction with things to check.  
  We're
  hooking up monitoring on the systems (Linux) to examine memory and CPU
  utilization during the slowdowns.
  
  Any things in particular we should be examining to try to find the 
  problem?
  Any idea why the pages would never fully return from the server?
  
  TIA
  
  -- Dave
  
  -
  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]
 
 
 
 
 
 -- 
 Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
 
 

Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread John Turner
I have no idea, but based on past experience, if you are using more RAM 
than you've allocated, then you have a swap situation.  If the max setting 
wasn't an actual max, and you could blow past it whenever you needed it, 
why on earth would you need it in the first place?

John

On Fri, 11 Jul 2003 20:24:48 +, [EMAIL PROTECTED] wrote:

I definitely don't know enough about how the memory settings in java to 
be of much use on this part.  I do not know if we've tried 512.  We 
probably should.

As for the 327, is that actually unreasonable?  The mx setting specfies 
the maximum heap size.  Can the thread stack (specified using -Xss, which 
we're not using) be taking up the remaining 75MB?  We have about 40 
threads started right now.

Like I said, I don't know enough about java's memory allocation, but I 
didn't think that the -Xmx set the maximum allowable total memory for the 
JVM.  Am I mistaken?

Even if memory were a problem, which it may be, would that account for a 
20 second delay between serving a page and closing the connection?  
Remember that we currently have no load and only a couple users on the 
system.

-- Dave
I'm certainly no guru, but if you are setting a max of 256 and then your 
app is soaking up 327 with no load whatsoever, I'd say you have a 
problem.  Have you tried a max of 512?

John

On Fri, 11 Jul 2003 20:08:10 +, [EMAIL PROTECTED] wrote:

 We are currently starting up with -Xmx256M.  Java is currently using  
about 327MB and has been that way for hours.  I haven't really seen any 
 fluxuations at all, which leans me away from the garbage collection  
issue.

 I created a hello.jsp, which is completely separate from our 
application.  Same results.  It takes about 30 seconds to return.

 In the hello.jsp, the results of the page return instantly to the  
browser, but then it's as if tomcat just won't close the connection to  
the browser.  The page is there, fully rendered, but just sits there  
waiting for the server to tell it it is done.  Is there some way that 
the  tomcat connections could be failing to terminate properly?


 Our current maxProcessors = 75
 acceptCount = 10 (which is probably low but right now we have only a  
couple users on the system).

 We're not using 1.4 so those options are out.

 -- Dave
 Could be a Memory Leak/Garbage Collection issue (we had a similar  
problem with a memory intensive app),
 maybe your heap is too small and java is running many Full GC's.
 Start java with -verbose:gc and look in tomcat/logs/catalina.out for 
 Garbage Collections.
 (set Environment Variables JAVA_OPTS or CATALINA_OPTS in 
bin/catalina.sh  to do this in Tomcat)

 

 Try using a bigger Heapsize (though if you've got a Memory Leak that 
 will only delay your problem)
 or set initial Heapsize to same as maximum, for example 128MB:
 -Xmx128m -Xms128m

 

 Modify the Connector you are using to access Tomcat (in  
tomcat/conf/server.xml) and
 try using more Tomcat Processors (maxProcessors=XX) or a bigger 
accept  queue length (acceptCount=XX)
 (test value for acceptCount: at least  concurrent users x 3)

 

 Try using another method of garbage collection,
 if you're using JDK 1.4.1 i'd try either


 ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC

 or ParallelGC with AdaptiveSizePolicy (saves you the work of Java 
Heap  usage analyzing :-) :
 -XX:UseParallelGC -XX:+UseAdaptiveSizePolicy

 A good article on GC can be found here:  
http://wireless.java.sun.com/midp/articles/garbagecollection2/

 


 At 18:04 11.07.2003 +, you wrote:
 With Tomcat 4.1.x
 
 We've recently run into an issue where some of our pages either
 a) take a really long time to come up (20+ seconds)   or
 b) come up, but never really finish loading (the status bar in IE 
shows  the the
 response hasn't finished).
 
 These are very simple pages (for example, a login page) and our 
server  load is
 minimal (maybe 10 concurrent users).  Then, mysteriously, the 
problem  will go
 away by itself.  It will also return.
 
 Given the information above, I'm not expecting any solutions, but I 
 could use

 some help steering me in the right direction with things to check.  
 We're
 hooking up monitoring on the systems (Linux) to examine memory and 
CPU
 utilization during the slowdowns.
 
 Any things in particular we should be examining to try to find the 
 problem?
 Any idea why the pages would never fully return from the server?
 
 TIA
 
 -- Dave
 
 -
 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: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread tomcat-question
But again, the mx is only setting the heap size, not the whole JVM.  The thread 
stack is controlled with an entirely different parameter for example.

I found this with a quick search:

The -Xmx setting controls the maximum size of the Java heap.

However, the Java heap represents only part of the memory taken up by a
running Java application. There is space required for code, data space used
by the JIT, plus any memory malloced by native code drivers associated with
the application running in the JVM.  So the overall memory picture for Java
applications turns out to be more complex than just the -Xmx value.

-- Dave
 
 I have no idea, but based on past experience, if you are using more RAM 
 than you've allocated, then you have a swap situation.  If the max setting 
 wasn't an actual max, and you could blow past it whenever you needed it, 
 why on earth would you need it in the first place?
 
 John
 
 On Fri, 11 Jul 2003 20:24:48 +, [EMAIL PROTECTED] wrote:
 
  I definitely don't know enough about how the memory settings in java to 
  be of much use on this part.  I do not know if we've tried 512.  We 
  probably should.
 
  As for the 327, is that actually unreasonable?  The mx setting specfies 
  the maximum heap size.  Can the thread stack (specified using -Xss, which 
  we're not using) be taking up the remaining 75MB?  We have about 40 
  threads started right now.
 
  Like I said, I don't know enough about java's memory allocation, but I 
  didn't think that the -Xmx set the maximum allowable total memory for the 
  JVM.  Am I mistaken?
 
  Even if memory were a problem, which it may be, would that account for a 
  20 second delay between serving a page and closing the connection?  
  Remember that we currently have no load and only a couple users on the 
  system.
 
  -- Dave
 
  I'm certainly no guru, but if you are setting a max of 256 and then your 
  app is soaking up 327 with no load whatsoever, I'd say you have a 
  problem.  Have you tried a max of 512?
 
  John
 
  On Fri, 11 Jul 2003 20:08:10 +, [EMAIL PROTECTED] wrote:
 
   We are currently starting up with -Xmx256M.  Java is currently using  
  about 327MB and has been that way for hours.  I haven't really seen any 
   fluxuations at all, which leans me away from the garbage collection  
  issue.
  
   I created a hello.jsp, which is completely separate from our 
  application.  Same results.  It takes about 30 seconds to return.
  
   In the hello.jsp, the results of the page return instantly to the  
  browser, but then it's as if tomcat just won't close the connection to  
  the browser.  The page is there, fully rendered, but just sits there  
  waiting for the server to tell it it is done.  Is there some way that 
  the  tomcat connections could be failing to terminate properly?
  
  
   Our current maxProcessors = 75
   acceptCount = 10 (which is probably low but right now we have only a  
  couple users on the system).
  
   We're not using 1.4 so those options are out.
  
   -- Dave
   Could be a Memory Leak/Garbage Collection issue (we had a similar  
  problem with a memory intensive app),
   maybe your heap is too small and java is running many Full GC's.
   Start java with -verbose:gc and look in tomcat/logs/catalina.out for 
   Garbage Collections.
   (set Environment Variables JAVA_OPTS or CATALINA_OPTS in 
  bin/catalina.sh  to do this in Tomcat)
  
   
  
   Try using a bigger Heapsize (though if you've got a Memory Leak that 
   will only delay your problem)
   or set initial Heapsize to same as maximum, for example 128MB:
   -Xmx128m -Xms128m
  
   
  
   Modify the Connector you are using to access Tomcat (in  
  tomcat/conf/server.xml) and
   try using more Tomcat Processors (maxProcessors=XX) or a bigger 
  accept  queue length (acceptCount=XX)
   (test value for acceptCount: at least  concurrent users x 3)
  
   
  
   Try using another method of garbage collection,
   if you're using JDK 1.4.1 i'd try either
  
  
   ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
   -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
  
   or ParallelGC with AdaptiveSizePolicy (saves you the work of Java 
  Heap  usage analyzing :-) :
   -XX:UseParallelGC -XX:+UseAdaptiveSizePolicy
  
   A good article on GC can be found here:  
  http://wireless.java.sun.com/midp/articles/garbagecollection2/
  
   
  
  
   At 18:04 11.07.2003 +, you wrote:
   With Tomcat 4.1.x
   
   We've recently run into an issue where some of our pages either
   a) take a really long time to come up (20+ seconds)   or
   b) come up, but never really finish loading (the status bar in IE 
  shows  the the
   response hasn't finished).
   
   These are very simple pages (for example, a login page) and our 
  server  load is
   minimal (maybe 10 concurrent users).  Then, mysteriously, the 
  problem  will go
   away by 

Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread Simon Pabst
If your application is running on same Tomcat/JVM then blocking GC calls 
could still lead to that effect for hello.jsp too.

Are you using Apache/mod_jk/Tomcat or Tomcat standalone?
HTTPS Connections?
Does the Problem occur only with IE or with other Browsers (Mozilla) too?
I read once something about a problem of IE closing http connections too 
fast when it thinks the page transfer is finished.

At 20:08 11.07.2003 +, you wrote:
We are currently starting up with -Xmx256M.  Java is currently using about
327MB and has been that way for hours.  I haven't really seen any fluxuations
at all, which leans me away from the garbage collection issue.
I created a hello.jsp, which is completely separate from our 
application.  Same
results.  It takes about 30 seconds to return.

In the hello.jsp, the results of the page return instantly to the browser, 
but
then it's as if tomcat just won't close the connection to the browser.  The
page is there, fully rendered, but just sits there waiting for the server to
tell it it is done.  Is there some way that the tomcat connections could be
failing to terminate properly?

Our current maxProcessors = 75
acceptCount = 10 (which is probably low but right now we have only a couple
users on the system).
We're not using 1.4 so those options are out.

-- Dave
 Could be a Memory Leak/Garbage Collection issue (we had a similar problem
 with a memory intensive app),
 maybe your heap is too small and java is running many Full GC's.
 Start java with -verbose:gc and look in tomcat/logs/catalina.out for
 Garbage Collections.
 (set Environment Variables JAVA_OPTS or CATALINA_OPTS in 
bin/catalina.sh to
 do this in Tomcat)

 

 Try using a bigger Heapsize (though if you've got a Memory Leak that will
 only delay your problem)
 or set initial Heapsize to same as maximum, for example 128MB:
 -Xmx128m -Xms128m

 

 Modify the Connector you are using to access Tomcat (in
 tomcat/conf/server.xml) and
 try using more Tomcat Processors (maxProcessors=XX) or a bigger accept
 queue length (acceptCount=XX)
 (test value for acceptCount: at least  concurrent users x 3)

 

 Try using another method of garbage collection,
 if you're using JDK 1.4.1 i'd try either


 ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC

 or ParallelGC with AdaptiveSizePolicy (saves you the work of Java Heap
 usage analyzing :-) :
 -XX:UseParallelGC -XX:+UseAdaptiveSizePolicy

 A good article on GC can be found here:
 http://wireless.java.sun.com/midp/articles/garbagecollection2/

 


 At 18:04 11.07.2003 +, you wrote:
 With Tomcat 4.1.x
 
 We've recently run into an issue where some of our pages either
 a) take a really long time to come up (20+ seconds)   or
 b) come up, but never really finish loading (the status bar in IE shows
 the the
 response hasn't finished).
 
 These are very simple pages (for example, a login page) and our server
 load is
 minimal (maybe 10 concurrent users).  Then, mysteriously, the problem 
will go
 away by itself.  It will also return.
 
 Given the information above, I'm not expecting any solutions, but I 
could use

 some help steering me in the right direction with things to check.  We're
 hooking up monitoring on the systems (Linux) to examine memory and CPU
 utilization during the slowdowns.
 
 Any things in particular we should be examining to try to find the 
problem?
 Any idea why the pages would never fully return from the server?
 
 TIA
 
 -- Dave
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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


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


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


Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread John Turner
Like I said, I'm no guru.  Sounds like you need to bust out a profiler.

John

On Fri, 11 Jul 2003 20:34:40 +, [EMAIL PROTECTED] wrote:

But again, the mx is only setting the heap size, not the whole JVM.  The 
thread stack is controlled with an entirely different parameter for 
example.

I found this with a quick search:

The -Xmx setting controls the maximum size of the Java heap.

However, the Java heap represents only part of the memory taken up by a
running Java application. There is space required for code, data space 
used
by the JIT, plus any memory malloced by native code drivers associated 
with
the application running in the JVM.  So the overall memory picture for 
Java
applications turns out to be more complex than just the -Xmx value.

-- Dave
I have no idea, but based on past experience, if you are using more RAM 
than you've allocated, then you have a swap situation.  If the max 
setting wasn't an actual max, and you could blow past it whenever you 
needed it, why on earth would you need it in the first place?

John

On Fri, 11 Jul 2003 20:24:48 +, [EMAIL PROTECTED] wrote:

 I definitely don't know enough about how the memory settings in java 
to  be of much use on this part.  I do not know if we've tried 512.  We 
 probably should.

 As for the 327, is that actually unreasonable?  The mx setting 
specfies  the maximum heap size.  Can the thread stack (specified using 
-Xss, which  we're not using) be taking up the remaining 75MB?  We have 
about 40  threads started right now.

 Like I said, I don't know enough about java's memory allocation, but I 
 didn't think that the -Xmx set the maximum allowable total memory for 
the  JVM.  Am I mistaken?

 Even if memory were a problem, which it may be, would that account for 
a  20 second delay between serving a page and closing the connection?  
 Remember that we currently have no load and only a couple users on the 
 system.

 -- Dave

 I'm certainly no guru, but if you are setting a max of 256 and then 
your  app is soaking up 327 with no load whatsoever, I'd say you have 
a  problem.  Have you tried a max of 512?

 John

 On Fri, 11 Jul 2003 20:08:10 +, [EMAIL PROTECTED] 
wrote:

  We are currently starting up with -Xmx256M.  Java is currently 
using   about 327MB and has been that way for hours.  I haven't 
really seen any   fluxuations at all, which leans me away from the 
garbage collection   issue.
 
  I created a hello.jsp, which is completely separate from our  
application.  Same results.  It takes about 30 seconds to return.
 
  In the hello.jsp, the results of the page return instantly to the  
 browser, but then it's as if tomcat just won't close the connection 
to   the browser.  The page is there, fully rendered, but just sits 
there   waiting for the server to tell it it is done.  Is there some 
way that  the  tomcat connections could be failing to terminate 
properly?
 
 
  Our current maxProcessors = 75
  acceptCount = 10 (which is probably low but right now we have only 
a   couple users on the system).
 
  We're not using 1.4 so those options are out.
 
  -- Dave
  Could be a Memory Leak/Garbage Collection issue (we had a similar 
  problem with a memory intensive app),
  maybe your heap is too small and java is running many Full GC's.
  Start java with -verbose:gc and look in tomcat/logs/catalina.out 
for   Garbage Collections.
  (set Environment Variables JAVA_OPTS or CATALINA_OPTS in  
bin/catalina.sh  to do this in Tomcat)
 
  
 
  Try using a bigger Heapsize (though if you've got a Memory Leak 
that   will only delay your problem)
  or set initial Heapsize to same as maximum, for example 128MB:
  -Xmx128m -Xms128m
 
  
 
  Modify the Connector you are using to access Tomcat (in   
tomcat/conf/server.xml) and
  try using more Tomcat Processors (maxProcessors=XX) or a bigger  
accept  queue length (acceptCount=XX)
  (test value for acceptCount: at least  concurrent users x 3)
 
  
 
  Try using another method of garbage collection,
  if you're using JDK 1.4.1 i'd try either
 
 
  ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
  -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
 
  or ParallelGC with AdaptiveSizePolicy (saves you the work of Java 
 Heap  usage analyzing :-) :
  -XX:UseParallelGC -XX:+UseAdaptiveSizePolicy
 
  A good article on GC can be found here:   
http://wireless.java.sun.com/midp/articles/garbagecollection2/
 
  
 
 
  At 18:04 11.07.2003 +, you wrote:
  With Tomcat 4.1.x
  
  We've recently run into an issue where some of our pages either
  a) take a really long time to come up (20+ seconds)   or
  b) come up, but never really finish loading (the status bar in IE 
 shows  the the
  response hasn't finished).
  
  These are very simple pages (for example, a login page) and our 
 server  load is
  minimal (maybe 10 concurrent users).  Then, mysteriously, the  

Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread tomcat-question
Yes, still running on the same tomcat, which is standalone BTW.

The problem occurs with both IE and mozilla, but a little differently.  Mozilla 
tends to render the results immediately, then sit there for 20 seconds.  IE 
will wait a bit, render the results, then sit there.

I'm assuming the difference is simply an artifact of when the browser chooses 
to render its cache on an open connection.

Neither browser is closing the connection to fast...  Opposite problem :-)

And no, I haven't tried any of your other recommended steps yet.  We're trying 
to do as much as we can without bringing down the system, since it's a 
production system (and we have yet to reproduce on a test system).  


-- Dave
 If your application is running on same Tomcat/JVM then blocking GC calls 
 could still lead to that effect for hello.jsp too.
 
 Are you using Apache/mod_jk/Tomcat or Tomcat standalone?
 HTTPS Connections?
 
 Does the Problem occur only with IE or with other Browsers (Mozilla) too?
 I read once something about a problem of IE closing http connections too 
 fast when it thinks the page transfer is finished.
 

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



Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread Simon Pabst
Tomcat 4.1 processes need some extra memory besides the heap i believe,
so the total process memory will always be bigger than the maximum 
specified heap
(unless this isn't a bug or a misunderstanding of me of course :-)

Our Tomcat 4.1.24 on Redhat Linux with 1GB heapsize consumes about 1,25GB 
Memory at its maximum.

At 16:13 11.07.2003 -0400, you wrote:

I'm certainly no guru, but if you are setting a max of 256 and then your 
app is soaking up 327 with no load whatsoever, I'd say you have a problem.
Have you tried a max of 512?

John

On Fri, 11 Jul 2003 20:08:10 +, [EMAIL PROTECTED] wrote:

We are currently starting up with -Xmx256M.  Java is currently using 
about 327MB and has been that way for hours.  I haven't really seen any 
fluxuations at all, which leans me away from the garbage collection issue.

I created a hello.jsp, which is completely separate from our application. 
Same results.  It takes about 30 seconds to return.

In the hello.jsp, the results of the page return instantly to the 
browser, but then it's as if tomcat just won't close the connection to 
the browser.  The page is there, fully rendered, but just sits there 
waiting for the server to tell it it is done.  Is there some way that the 
tomcat connections could be failing to terminate properly?

Our current maxProcessors = 75
acceptCount = 10 (which is probably low but right now we have only a 
couple users on the system).

We're not using 1.4 so those options are out.

-- Dave
Could be a Memory Leak/Garbage Collection issue (we had a similar 
problem with a memory intensive app),
maybe your heap is too small and java is running many Full GC's.
Start java with -verbose:gc and look in tomcat/logs/catalina.out for 
Garbage Collections.
(set Environment Variables JAVA_OPTS or CATALINA_OPTS in bin/catalina.sh 
to do this in Tomcat)



Try using a bigger Heapsize (though if you've got a Memory Leak that 
will only delay your problem)
or set initial Heapsize to same as maximum, for example 128MB:
-Xmx128m -Xms128m



Modify the Connector you are using to access Tomcat (in 
tomcat/conf/server.xml) and
try using more Tomcat Processors (maxProcessors=XX) or a bigger accept 
queue length (acceptCount=XX)
(test value for acceptCount: at least  concurrent users x 3)



Try using another method of garbage collection,
if you're using JDK 1.4.1 i'd try either

ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC
or ParallelGC with AdaptiveSizePolicy (saves you the work of Java Heap 
usage analyzing :-) :
-XX:UseParallelGC -XX:+UseAdaptiveSizePolicy

A good article on GC can be found here: 
http://wireless.java.sun.com/midp/articles/garbagecollection2/



At 18:04 11.07.2003 +, you wrote:
With Tomcat 4.1.x

We've recently run into an issue where some of our pages either
a) take a really long time to come up (20+ seconds)   or
b) come up, but never really finish loading (the status bar in IE 
shows the the
response hasn't finished).

These are very simple pages (for example, a login page) and our 
server load is
minimal (maybe 10 concurrent users).  Then, mysteriously, the problem 
will go
away by itself.  It will also return.

Given the information above, I'm not expecting any solutions, but I 
could use

some help steering me in the right direction with things to check.
We're
hooking up monitoring on the systems (Linux) to examine memory and CPU
utilization during the slowdowns.

Any things in particular we should be examining to try to find the 
problem?
Any idea why the pages would never fully return from the server?

TIA

-- Dave

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


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
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: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread Lars Hellgren
If your JVM runs out of heap space, you should get an
OutOfMemoryException thrown.  Same, if you don't have sufficient stack
space, you should get a StackOverFlowException.

I had a problem with a JSP that sometimes would take as much as 15
minutes to serve. It creates a table of sometimes a few hundred rows,
each containing a selection box and a submit button. I ended up
rewriting it as a Java class that first builds the outtput message in a
StringBuffer using append() and then writes the buffer to the output
stream in a single operation. That increased performance by more than
one order of magnitude. I suspect that there is an issue with the way
Jasper created servlets use the out.write()/out.print() methods.

Lars

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 1:38 PM
To: Tomcat Users List
Subject: Re: Need help with performance issue - Tomcat 4.1.X


Like I said, I'm no guru.  Sounds like you need to bust out a profiler.

John

On Fri, 11 Jul 2003 20:34:40 +, [EMAIL PROTECTED] wrote:

 But again, the mx is only setting the heap size, not the whole JVM.
The 
 thread stack is controlled with an entirely different parameter for 
 example.

 I found this with a quick search:

 The -Xmx setting controls the maximum size of the Java heap.

 However, the Java heap represents only part of the memory taken up by
a
 running Java application. There is space required for code, data space

 used
 by the JIT, plus any memory malloced by native code drivers associated

 with
 the application running in the JVM.  So the overall memory picture for

 Java
 applications turns out to be more complex than just the -Xmx value.

 -- Dave

 I have no idea, but based on past experience, if you are using more
RAM 
 than you've allocated, then you have a swap situation.  If the max 
 setting wasn't an actual max, and you could blow past it whenever you

 needed it, why on earth would you need it in the first place?

 John

 On Fri, 11 Jul 2003 20:24:48 +, [EMAIL PROTECTED]
wrote:

  I definitely don't know enough about how the memory settings in
java 
 to  be of much use on this part.  I do not know if we've tried 512.
We 
  probably should.
 
  As for the 327, is that actually unreasonable?  The mx setting 
 specfies  the maximum heap size.  Can the thread stack (specified
using 
 -Xss, which  we're not using) be taking up the remaining 75MB?  We
have 
 about 40  threads started right now.
 
  Like I said, I don't know enough about java's memory allocation,
but I 
  didn't think that the -Xmx set the maximum allowable total memory
for 
 the  JVM.  Am I mistaken?
 
  Even if memory were a problem, which it may be, would that account
for 
 a  20 second delay between serving a page and closing the
connection?  
  Remember that we currently have no load and only a couple users on
the 
  system.
 
  -- Dave
 
  I'm certainly no guru, but if you are setting a max of 256 and
then 
 your  app is soaking up 327 with no load whatsoever, I'd say you
have 
 a  problem.  Have you tried a max of 512?
 
  John
 
  On Fri, 11 Jul 2003 20:08:10 +, [EMAIL PROTECTED] 
 wrote:
 
   We are currently starting up with -Xmx256M.  Java is currently 
 using   about 327MB and has been that way for hours.  I haven't 
 really seen any   fluxuations at all, which leans me away from the

 garbage collection   issue.
  
   I created a hello.jsp, which is completely separate from our  
 application.  Same results.  It takes about 30 seconds to return.
  
   In the hello.jsp, the results of the page return instantly to
the  
  browser, but then it's as if tomcat just won't close the
connection 
 to   the browser.  The page is there, fully rendered, but just
sits 
 there   waiting for the server to tell it it is done.  Is there
some 
 way that  the  tomcat connections could be failing to terminate 
 properly?
  
  
   Our current maxProcessors = 75
   acceptCount = 10 (which is probably low but right now we have
only 
 a   couple users on the system).
  
   We're not using 1.4 so those options are out.
  
   -- Dave
   Could be a Memory Leak/Garbage Collection issue (we had a
similar 
   problem with a memory intensive app),
   maybe your heap is too small and java is running many Full
GC's.
   Start java with -verbose:gc and look in
tomcat/logs/catalina.out 
 for   Garbage Collections.
   (set Environment Variables JAVA_OPTS or CATALINA_OPTS in  
 bin/catalina.sh  to do this in Tomcat)
  
   
  
   Try using a bigger Heapsize (though if you've got a Memory Leak

 that   will only delay your problem)
   or set initial Heapsize to same as maximum, for example 128MB:
   -Xmx128m -Xms128m
  
   
  
   Modify the Connector you are using to access Tomcat (in   
 tomcat/conf/server.xml) and
   try using more Tomcat Processors (maxProcessors=XX) or a bigger
 
 accept  queue length (acceptCount=XX)
   (test value for acceptCount: at least

Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread Simon Pabst
-verbose:gc may affect performance a bit (cpu/disk), but since your system 
doesn't run so well anyway, oh well :-)

Using a higher acceptCount doesn't hurt much (needs maybe 1k memory for 
each queue place i think)

On earlier Java Versions there is a switch to turn on incremental Garbage 
Collection (off by default), -Xincgc (may decrease performance)
which is kind of similar to Concurrent GC i think, so worth a try if 
nothing else helps



At 20:08 11.07.2003 +, you wrote:
We are currently starting up with -Xmx256M.  Java is currently using about
327MB and has been that way for hours.  I haven't really seen any fluxuations
at all, which leans me away from the garbage collection issue.
I created a hello.jsp, which is completely separate from our 
application.  Same
results.  It takes about 30 seconds to return.

In the hello.jsp, the results of the page return instantly to the browser, 
but
then it's as if tomcat just won't close the connection to the browser.  The
page is there, fully rendered, but just sits there waiting for the server to
tell it it is done.  Is there some way that the tomcat connections could be
failing to terminate properly?

Our current maxProcessors = 75
acceptCount = 10 (which is probably low but right now we have only a couple
users on the system).
We're not using 1.4 so those options are out.

-- Dave
 Could be a Memory Leak/Garbage Collection issue (we had a similar problem
 with a memory intensive app),
 maybe your heap is too small and java is running many Full GC's.
 Start java with -verbose:gc and look in tomcat/logs/catalina.out for
 Garbage Collections.
 (set Environment Variables JAVA_OPTS or CATALINA_OPTS in 
bin/catalina.sh to
 do this in Tomcat)

 

 Try using a bigger Heapsize (though if you've got a Memory Leak that will
 only delay your problem)
 or set initial Heapsize to same as maximum, for example 128MB:
 -Xmx128m -Xms128m

 

 Modify the Connector you are using to access Tomcat (in
 tomcat/conf/server.xml) and
 try using more Tomcat Processors (maxProcessors=XX) or a bigger accept
 queue length (acceptCount=XX)
 (test value for acceptCount: at least  concurrent users x 3)

 

 Try using another method of garbage collection,
 if you're using JDK 1.4.1 i'd try either


 ConcurrentGC with ParNewGC (ParNewGC on Multi-CPU machines):
 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC

 or ParallelGC with AdaptiveSizePolicy (saves you the work of Java Heap
 usage analyzing :-) :
 -XX:UseParallelGC -XX:+UseAdaptiveSizePolicy

 A good article on GC can be found here:
 http://wireless.java.sun.com/midp/articles/garbagecollection2/

 


 At 18:04 11.07.2003 +, you wrote:
 With Tomcat 4.1.x
 
 We've recently run into an issue where some of our pages either
 a) take a really long time to come up (20+ seconds)   or
 b) come up, but never really finish loading (the status bar in IE shows
 the the
 response hasn't finished).
 
 These are very simple pages (for example, a login page) and our server
 load is
 minimal (maybe 10 concurrent users).  Then, mysteriously, the problem 
will go
 away by itself.  It will also return.
 
 Given the information above, I'm not expecting any solutions, but I 
could use

 some help steering me in the right direction with things to check.  We're
 hooking up monitoring on the systems (Linux) to examine memory and CPU
 utilization during the slowdowns.
 
 Any things in particular we should be examining to try to find the 
problem?
 Any idea why the pages would never fully return from the server?
 
 TIA
 
 -- Dave
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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


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


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


Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread Marc Palmer
On Fri, 11 Jul 2003 19:22:41 +, [EMAIL PROTECTED] wrote:


When I submit my request to get the login page (not to process the login, 
just to serve the login page), I couple of the java threads will spin up 
and take maybe 3% of the cpu, but it still takes over 30 seconds to get 
the page.

Still stuggling for ideas.
Does this happen with static content served by Tomcat too, or just JSPs?

--
Marc Palmer
Contract Java Consultant/Developer
* Available For Hire *

See my CV at  http://www.anyware.co.uk/marc/

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


Re: Need help with performance issue - Tomcat 4.1.X

2003-07-11 Thread Bill Barker
I'm surprised that nobody else has asked this (since it would be one of the
first things that I would try if this was happening to me):  What is the
response from just using telnet?

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 With Tomcat 4.1.x

 We've recently run into an issue where some of our pages either
 a) take a really long time to come up (20+ seconds)   or
 b) come up, but never really finish loading (the status bar in IE shows
the the
 response hasn't finished).

 These are very simple pages (for example, a login page) and our server
load is
 minimal (maybe 10 concurrent users).  Then, mysteriously, the problem will
go
 away by itself.  It will also return.

 Given the information above, I'm not expecting any solutions, but I could
use
 some help steering me in the right direction with things to check.  We're
 hooking up monitoring on the systems (Linux) to examine memory and CPU
 utilization during the slowdowns.

 Any things in particular we should be examining to try to find the
problem?
 Any idea why the pages would never fully return from the server?

 TIA

 -- Dave




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



RE: Need help on deploying application

2003-06-23 Thread Shapira, Yoav

Howdy,
Look at the tomcat logs: what errors are in there?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: Need help on deploying application

I have installed Tomcat on my workstation and I'm able to access the
applications supplied with the distribution. I have two Tomcat books
and
I'm trying to deploy an application from one of them as a tool to learn
Tomcat basics. I am unable to get to the application. Below is what I
believe to be the essential facts of my situation. I would appreciate
someone looking over this and telling me where I've gone wrong or
offering
suggestions on other debugging techniques. Thanks.

Here is the information from the Tomcat Manager page:
Tomcat version: Apache Tomcat/4.1.24
JVM version:
1.4.1_02-b06
JVM supplier:
Sun Microsystems Inc.
OS:
Windows XP
OS version:
5.1
Processor architecture:
x86

My CATALINA_HOME environment variable points to:
D:\Program Files\Apache Group\Tomcat 4.1

My application is at this path location:
D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

I have the files login.jsp and welcome.jsp in this directory.

I have this web.xml file in apress\WEB-INF:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app PUBLIC
  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'

web-app

  servlet
servlet-namelogin/servlet-name
servlet-classchapter2.login/servlet-class
  /servlet

  taglib
taglib-uri/apress/taglib-uri
taglib-location/WEB-INF/lib/taglib.tld/taglib-location
  /taglib

/web-app

I have this context element in my server.xml file:
Context path=/apress docBase=apress debug=0 reloadable=true /

When I point my browser at http://localhost:8080/apress/login.jsp;, I
get
this error message:
The requested resource (/apress/login.jsp) is not available.

When I use the Tomcat Manager application to start the /apress
application, I get this error message:
FAIL - Application at context path /apress could not be started

Can anyone point out where I've gone wrong? Thanks.

--
Charles Knell
[EMAIL PROTECTED] - email

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




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


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



RE: Need help on deploying application

2003-06-23 Thread Roberts, Eric
Sounds like the JDK 1.4.1 not liking spaces in the directory paths.

Try putting tomcat in D:\Tomcat4.1

HTH

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 17:20
To: [EMAIL PROTECTED]
Subject: Need help on deploying application


I have installed Tomcat on my workstation and I'm able to access the applications 
supplied with the distribution. I have two Tomcat books and I'm trying to deploy an 
application from one of them as a tool to learn Tomcat basics. I am unable to get to 
the application. Below is what I believe to be the essential facts of my situation. I 
would appreciate someone looking over this and telling me where I've gone wrong or 
offering suggestions on other debugging techniques. Thanks.

Here is the information from the Tomcat Manager page:
Tomcat version: Apache Tomcat/4.1.24 
JVM version:
1.4.1_02-b06
JVM supplier:
Sun Microsystems Inc. 
OS:
Windows XP 
OS version:
5.1 
Processor architecture:
x86 

My CATALINA_HOME environment variable points to:
D:\Program Files\Apache Group\Tomcat 4.1

My application is at this path location:
D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

I have the files login.jsp and welcome.jsp in this directory.

I have this web.xml file in apress\WEB-INF:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app PUBLIC
  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'

web-app

  servlet
servlet-namelogin/servlet-name
servlet-classchapter2.login/servlet-class
  /servlet

  taglib
taglib-uri/apress/taglib-uri
taglib-location/WEB-INF/lib/taglib.tld/taglib-location
  /taglib

/web-app

I have this context element in my server.xml file:
Context path=/apress docBase=apress debug=0 reloadable=true /

When I point my browser at http://localhost:8080/apress/login.jsp;, I get this error 
message:
The requested resource (/apress/login.jsp) is not available.

When I use the Tomcat Manager application to start the /apress application, I get 
this error message:
FAIL - Application at context path /apress could not be started

Can anyone point out where I've gone wrong? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

-
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: RE: Need help on deploying application

2003-06-23 Thread cknell
I feel like one of the guys who gets hysterical in an old war movie. His buddy slaps 
him in the face and he immediately calms down and says, Thanks, I needed that! I 
found the information I needed in the log files and I'm proceeding from there. Thanks 
again.
-- 
Charles Knell
[EMAIL PROTECTED] - email



-Original Message-
From: Shapira, Yoav [EMAIL PROTECTED]
Sent: Mon, 23 Jun 2003 11:22:07 -0400
To:   Tomcat Users List [EMAIL PROTECTED]
Subject:  RE: Need help on deploying application


Howdy,
Look at the tomcat logs: what errors are in there?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: Need help on deploying application

I have installed Tomcat on my workstation and I'm able to access the
applications supplied with the distribution. I have two Tomcat books
and
I'm trying to deploy an application from one of them as a tool to learn
Tomcat basics. I am unable to get to the application. Below is what I
believe to be the essential facts of my situation. I would appreciate
someone looking over this and telling me where I've gone wrong or
offering
suggestions on other debugging techniques. Thanks.

Here is the information from the Tomcat Manager page:
Tomcat version: Apache Tomcat/4.1.24
JVM version:
1.4.1_02-b06
JVM supplier:
Sun Microsystems Inc.
OS:
Windows XP
OS version:
5.1
Processor architecture:
x86

My CATALINA_HOME environment variable points to:
D:\Program Files\Apache Group\Tomcat 4.1

My application is at this path location:
D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

I have the files login.jsp and welcome.jsp in this directory.

I have this web.xml file in apress\WEB-INF:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app PUBLIC
  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'

web-app

  servlet
servlet-namelogin/servlet-name
servlet-classchapter2.login/servlet-class
  /servlet

  taglib
taglib-uri/apress/taglib-uri
taglib-location/WEB-INF/lib/taglib.tld/taglib-location
  /taglib

/web-app

I have this context element in my server.xml file:
Context path=/apress docBase=apress debug=0 reloadable=true /

When I point my browser at http://localhost:8080/apress/login.jsp;, I
get
this error message:
The requested resource (/apress/login.jsp) is not available.

When I use the Tomcat Manager application to start the /apress
application, I get this error message:
FAIL - Application at context path /apress could not be started

Can anyone point out where I've gone wrong? Thanks.

--
Charles Knell
[EMAIL PROTECTED] - email

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




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


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




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



  1   2   3   4   >