RE: Desperately need help: What is correct for workers.properties.minimal

2005-09-27 Thread David Thielen
Asking again - thanks - dave


David Thielen
303-499-2544
www.windwardreports.com

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 22, 2005 9:09 AM
To: 'Tomcat Users List'
Subject: Desperately need help: What is correct for
workers.properties.minimal

Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:

[Thu Sep 22 07:30:02 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(1029): could not get a worker for name ajp13
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1178):
Socket 320 is not connected any more (errno=-1)
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1202):
Error sending request. Will try another pooled connection

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



Desperately need help: What is correct for workers.properties.minimal

2005-09-22 Thread David Thielen
Hi;

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

The isapi_redirect.exe installer creates a worker.properties.minimal of:
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status

While the docs show one of:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

Second, what is jkstatus for?

Third, I am using the non-lb listing above. And it appears to work fine but
occasionally I am getting the following. What does it mean:

[Thu Sep 22 07:30:02 2005] [error] HttpExtensionProc::jk_isapi_plugin.c
(1029): could not get a worker for name ajp13
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1178):
Socket 320 is not connected any more (errno=-1)
[Thu Sep 22 07:36:20 2005] [info]  ajp_send_request::jk_ajp_common.c (1202):
Error sending request. Will try another pooled connection

Thanks - dave



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



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 {
 

Need Help Programmatically Loading Servlets in StandardContext subclass

2005-08-21 Thread Philip Weaver


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 {
String appBase = ((Host)container).getAppBase();
   

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

need help for deployment of unpack apps at Linux Tomcat 5.0

2005-07-31 Thread Mohd. Jeffry
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]



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


need help

2005-04-25 Thread Robert U. Chan
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.

Thanks...


ROBERT U. CHAN
Terasystem Incorporated
(632)895-6955 ext. 110
[EMAIL PROTECTED]


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



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]


Need help!

2005-04-22 Thread Sergey Livanov

Client's server with applications stops ~ 1 in two days.
Configuration: Win2003 server, sp4, Tomcat 5.12, Oracle 9.2.
I'd like to ask a couple of questions

1. Is there a method to have a load on 80 rt, determine the number of
   inquiries and see how the system operates?

2. Do I need the Shareable parameter in  web.xml?
  resource-ref
  descriptionDatabase Reference/description
  res-ref-nameORAPOOL/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  res-sharing-scopeShareable/res-sharing-scope
   /resource-ref

3. Are my Tomcat Connection pool parameters normal?
 Resource auth=Container
   description=Oracle 9i database 
   name=portalDataSource 
   scope=Shareable
   type=javax.sql.DataSource /

ResourceParams name=portalDataSource
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.0.10:1521:APPL/value
 /parameter
parameter
   nameusername/name
   valueusername/value
/parameter
parameter
   namepassword/name
   valuepwd/value
/parameter
parameter
  namemaxActive/name
  value80/value
/parameter
parameter
  namemaxIdle/name
  value40/value
/parameter
parameter
  namemaxWait/name
  value1/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter

   /ResourceParams

Any advises ?


Help  advises are appreciated !


regards,
 Sergey  mailto:[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
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]



Need help exporting contexts not under webapps/

2005-04-18 Thread J. Ryan Earl
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]



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]



Need Help w. Servlet Images.

2005-03-31 Thread Steve R. Burrus

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()?? 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. 

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

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



Tomcat 4.1.30 crashing on production site - need help

2005-03-07 Thread Anoop kumar V
Hi All,

For the past couple of months we have been facing a peculiar problem
on our production environment. And we have been unable to resolve this
issue so far.

We have an application hosted on Tomcat 4.1.30 and using JDK1.4.2_06.
We also have an Apache WS - (think it is v2.0.2). Everyday approx
after every 24 hours of uptime the website slows down and hangs... On
checking the tomcat logs, we see an OutOfMemoryException.

Restarting Tomcat was one way to momentarily fix the issue and have
the site up - but due to Apache forked processes we are not able to
restart Tomcat too. Even if could our Tomcat takes about 30-40 mins to
load/startup due to some user data loading on startup.

So that leaves the only option of killing certain threads/processes
and then starting Tomcat. which works fine - only we have been doing
this every night for the past more than a month.

We also got a thread dump just to check what is going on.. and I have
pasted that info herewith. Sun has suggested that we install all
patches to the JDK.

I just wanted to find out if anyone had faced a similar issue and if
there was something they did that fixed the issue. Was Tomcat the
culprit?? We will go ahead and install the patches very soon - but
wanted to be ready in case that didnt fix the issue - did anyone
experience an improvement once the patches were installed??
*
Here is the Exception Trace: 

An unexpected exception has been detected in native code outside the VM. 
Unexpected Signal : 11 occurred at PC=0xFF380CBC 
Function=memcpy+0x7E0 
Library=/usr/platform/sun4u/lib/libc_psr.so.1 

Current Java thread: 
at COM.ibm.db2.jdbc.app.DB2PreparedStatement.SQLBindChar(Native Method) 
at 
COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2(DB2PreparedStatement.java:1020)
- locked 0x9ec56ef8 (a COM.ibm.db2.jdbc.app.DB2Connection) 
at 
COM.ibm.db2.jdbc.app.DB2PreparedStatement.executeUpdate(DB2PreparedStatement.java:807)
at 
com.waveset.repository.RelationalDataStore$Item.setPersistentObject(RelationalDataStore.java:999)
at 
com.waveset.repository.AbstractDataStore.setItems(AbstractDataStore.java:4926)
at 
com.waveset.repository.AbstractDataStore.set(AbstractDataStore.java:1804)
at 
com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1758)
at 
com.waveset.repository.AbstractDataStore.set(AbstractDataStore.java:1804)
at 
com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1758)
at 
com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1401)
at 
com.waveset.repository.ServerRepository.checkin(ServerRepository.java:2276)
at 
com.waveset.session.InternalSession.checkinObject(InternalSession.java:581)
at com.waveset.task.Scheduler.storeExecutingTask(Scheduler.java:1515) 
at com.waveset.task.Scheduler.executeReadyTask(Scheduler.java:2918) 
at com.waveset.task.Scheduler.processReadyTasks(Scheduler.java:2837) 
at com.waveset.task.Scheduler.processTasks(Scheduler.java:1031) 
at com.waveset.task.Scheduler.run(Scheduler.java:866) 

Dynamic libraries: 
0x1 /www4/j2sdk1_4_2_06/java/usr/j2se/bin/java 
0xff36  /usr/lib/libthread.so.1 
0xff39a000  /usr/lib/libdl.so.1 
0xff28  /usr/lib/libc.so.1 
0xff38  /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1 
0xfec0 
/www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/client/libjvm.so
0xff24  /usr/lib/libCrun.so.1 
0xff21  /usr/lib/libsocket.so.1 
0xff10  /usr/lib/libnsl.so.1 
0xff1e  /usr/lib/libm.so.1 
0xff1c  /usr/lib/libsched.so.1 
0xff27  /usr/lib/libw.so.1 
0xff0d  /usr/lib/libmp.so.2 
0xff0b  /usr/lib/librt.so.1 
0xff09  /usr/lib/libaio.so.1 
0xff06  /usr/lib/libmd5.so.1 
0xff04  /usr/platform/SUNW,Ultra-80/lib/libmd5_psr.so.1 
0xfebd 
/www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/native_threads/libhpi.so
0xfeb8  /www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/libverify.so 
0xfeb4  /www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/libjava.so 
0xfeb2  /www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/libzip.so 
0x737d  /www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/libnet.so 
0x7491  /opt/IBMdb2/V7.1/java12/libdb2jdbc.so 
0x71c0  /opt/IBMdb2/V7.1/lib/libdb2.so.1 
0x73ea  /usr/lib/libresolv.so.2 

Heap at VM Abort: 
Heap 
 def new generation   total 226112K, used 67456K [0x7580,
0x83b8, 0x83b8)
  eden space 219264K,  27% used [0x7580, 0x79331618, 0x82e2) 
  from space 6848K, 100% used [0x82e2, 0x834d, 0x834d) 
  to   space 6848K,   0% used [0x834d, 0x834d, 0x83b8) 
 tenured generation   total 1864192K, used 1152200K [0x83b8,
0xf580, 0xf580)
   the space 1864192K,  61% used [0x83b8, 0xca0b2380, 0xca0b2400,
0xf580)
 compacting 

Re: Tomcat 4.1.30 crashing on production site - need help

2005-03-07 Thread James Sys

I've seen similar problems in a non-Tomcat Java application.

The root cause was a memory leak. Although Java has good garbage collection,
 it relies on object references being released.

This is generally fine, but some buggy applications can add references to
 large object to the application and forget to release them. This causes
 memory to be consumed, the app so slow and eventually the app or server to
 lock.

With Tomcat, I can imagine this happening with objects continually being
 added to, say, an ArrayList in the Application context and not being
 released.

I believe there are various tools around to check object allocation and
 release. So if you see objects of a certain type have a gradually increasing
 number, you may well have a memory leak.

Hope this helps.

Regards,

James.
=


Hi All,

For the past couple of months we have been facing a peculiar problem
on our production environment. And we have been unable to resolve this
issue so far.

We have an application hosted on Tomcat 4.1.30 and using JDK1.4.2_06.
We also have an Apache WS - (think it is v2.0.2). Everyday approx
after every 24 hours of uptime the website slows down and hangs... On
checking the tomcat logs, we see an OutOfMemoryException.

Restarting Tomcat was one way to momentarily fix the issue and have
the site up - but due to Apache forked processes we are not able to
restart Tomcat too. Even if could our Tomcat takes about 30-40 mins to
load/startup due to some user data loading on startup.

So that leaves the only option of killing certain threads/processes
and then starting Tomcat. which works fine - only we have been doing
this every night for the past more than a month.

We also got a thread dump just to check what is going on.. and I have
pasted that info herewith. Sun has suggested that we install all
patches to the JDK.

I just wanted to find out if anyone had faced a similar issue and if
there was something they did that fixed the issue. Was Tomcat the
culprit?? We will go ahead and install the patches very soon - but
wanted to be ready in case that didnt fix the issue - did anyone
experience an improvement once the patches were installed??
*
Here is the Exception Trace:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xFF380CBC
Function=memcpy+0x7E0
Library=/usr/platform/sun4u/lib/libc_psr.so.1

Current Java thread:
at COM.ibm.db2.jdbc.app.DB2PreparedStatement.SQLBindChar(Native
 Method) at
 COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2(DB2PreparedStatement.java

:1020) - locked 0x9ec56ef8 (a COM.ibm.db2.jdbc.app.DB2Connection) at

 COM.ibm.db2.jdbc.app.DB2PreparedStatement.executeUpdate(DB2PreparedStatement
.java:807) at
 com.waveset.repository.RelationalDataStore$Item.setPersistentObject(Relation
alDataStore.java:999) at
 com.waveset.repository.AbstractDataStore.setItems(AbstractDataStore.java:492
6) at
 com.waveset.repository.AbstractDataStore.set(AbstractDataStore.java:1804) at
 com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1758
) at
 com.waveset.repository.AbstractDataStore.set(AbstractDataStore.java:1804) at
 com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1758
) at
 com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1401
) at
 com.waveset.repository.ServerRepository.checkin(ServerRepository.java:2276)
 at
 com.waveset.session.InternalSession.checkinObject(InternalSession.java:581)
 at com.waveset.task.Scheduler.storeExecutingTask(Scheduler.java:1515) at
 com.waveset.task.Scheduler.executeReadyTask(Scheduler.java:2918) at
 com.waveset.task.Scheduler.processReadyTasks(Scheduler.java:2837) at
 com.waveset.task.Scheduler.processTasks(Scheduler.java:1031) at
 com.waveset.task.Scheduler.run(Scheduler.java:866)

Dynamic libraries:
0x1 /www4/j2sdk1_4_2_06/java/usr/j2se/bin/java
0xff36  /usr/lib/libthread.so.1
0xff39a000  /usr/lib/libdl.so.1
0xff28  /usr/lib/libc.so.1
0xff38  /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
0xfec0
/www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/client/libjvm.so
0xff24  /usr/lib/libCrun.so.1
0xff21  /usr/lib/libsocket.so.1
0xff10  /usr/lib/libnsl.so.1
0xff1e  /usr/lib/libm.so.1
0xff1c  /usr/lib/libsched.so.1
0xff27  /usr/lib/libw.so.1
0xff0d  /usr/lib/libmp.so.2
0xff0b  /usr/lib/librt.so.1
0xff09  /usr/lib/libaio.so.1
0xff06  /usr/lib/libmd5.so.1
0xff04  /usr/platform/SUNW,Ultra-80/lib/libmd5_psr.so.1
0xfebd
/www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/native_threads/libhpi.so
0xfeb8  /www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/libverify.so
0xfeb4  /www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/libjava.so
0xfeb2  /www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/libzip.so
0x737d  /www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/libnet.so

Re: Tomcat 4.1.30 crashing on production site - need help

2005-03-07 Thread David Tonhofer, m-plify S.A.
It might also be that Tomcat needs more memory than the JVM will allocate.
We had that problem.
With the Sun JVM, the options -Xss128k -Xmx128m increased the stack and max
heap size and there no longer was a problem.
Try to set CATALINA_OPTS in bin/startup.sh:
CATALINA_OPTS=$CATALINA_OPTS -server -Xss128k -Xmx128m
Otherwise, try to get MRTG to graph your Tomcat's memory usage, like it's
done in the attached PNG.
Best regards,
-- DAvid

--On Monday, March 07, 2005 4:49 PM + James Sys [EMAIL PROTECTED] wrote:
I've seen similar problems in a non-Tomcat Java application.
The root cause was a memory leak. Although Java has good garbage collection,
 it relies on object references being released.
This is generally fine, but some buggy applications can add references to
 large object to the application and forget to release them. This causes
 memory to be consumed, the app so slow and eventually the app or server to
 lock.
With Tomcat, I can imagine this happening with objects continually being
 added to, say, an ArrayList in the Application context and not being
 released.
I believe there are various tools around to check object allocation and
 release. So if you see objects of a certain type have a gradually increasing
 number, you may well have a memory leak.
Hope this helps.
Regards,
James.
=
Hi All,
For the past couple of months we have been facing a peculiar problem
on our production environment. And we have been unable to resolve this
issue so far.
We have an application hosted on Tomcat 4.1.30 and using JDK1.4.2_06.
We also have an Apache WS - (think it is v2.0.2). Everyday approx
after every 24 hours of uptime the website slows down and hangs... On
checking the tomcat logs, we see an OutOfMemoryException.
Restarting Tomcat was one way to momentarily fix the issue and have
the site up - but due to Apache forked processes we are not able to
restart Tomcat too. Even if could our Tomcat takes about 30-40 mins to
load/startup due to some user data loading on startup.
So that leaves the only option of killing certain threads/processes
and then starting Tomcat. which works fine - only we have been doing
this every night for the past more than a month.
We also got a thread dump just to check what is going on.. and I have
pasted that info herewith. Sun has suggested that we install all
patches to the JDK.
I just wanted to find out if anyone had faced a similar issue and if
there was something they did that fixed the issue. Was Tomcat the
culprit?? We will go ahead and install the patches very soon - but
wanted to be ready in case that didnt fix the issue - did anyone
experience an improvement once the patches were installed??
*
Here is the Exception Trace:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xFF380CBC
Function=memcpy+0x7E0
Library=/usr/platform/sun4u/lib/libc_psr.so.1
Current Java thread:
at COM.ibm.db2.jdbc.app.DB2PreparedStatement.SQLBindChar(Native
 Method) at
 COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2(DB2PreparedStatement.java
:1020) - locked 0x9ec56ef8 (a COM.ibm.db2.jdbc.app.DB2Connection) at
 COM.ibm.db2.jdbc.app.DB2PreparedStatement.executeUpdate(DB2PreparedStatement
.java:807) at
 com.waveset.repository.RelationalDataStore$Item.setPersistentObject(Relation
alDataStore.java:999) at
 com.waveset.repository.AbstractDataStore.setItems(AbstractDataStore.java:492
6) at
 com.waveset.repository.AbstractDataStore.set(AbstractDataStore.java:1804) at
 com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1758
) at
 com.waveset.repository.AbstractDataStore.set(AbstractDataStore.java:1804) at
 com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1758
) at
 com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1401
) at
 com.waveset.repository.ServerRepository.checkin(ServerRepository.java:2276)
 at
 com.waveset.session.InternalSession.checkinObject(InternalSession.java:581)
 at com.waveset.task.Scheduler.storeExecutingTask(Scheduler.java:1515) at
 com.waveset.task.Scheduler.executeReadyTask(Scheduler.java:2918) at
 com.waveset.task.Scheduler.processReadyTasks(Scheduler.java:2837) at
 com.waveset.task.Scheduler.processTasks(Scheduler.java:1031) at
 com.waveset.task.Scheduler.run(Scheduler.java:866)
Dynamic libraries:
0x1 /www4/j2sdk1_4_2_06/java/usr/j2se/bin/java
0xff36  /usr/lib/libthread.so.1
0xff39a000  /usr/lib/libdl.so.1
0xff28  /usr/lib/libc.so.1
0xff38  /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
0xfec0
/www4/j2sdk1_4_2_06/java/usr/j2se/jre/lib/sparc/client/libjvm.so
0xff24  /usr/lib/libCrun.so.1
0xff21  /usr/lib/libsocket.so.1
0xff10  /usr/lib/libnsl.so.1
0xff1e  /usr/lib/libm.so.1
0xff1c  /usr/lib/libsched.so.1
0xff27  /usr/lib/libw.so.1
0xff0d  /usr/lib/libmp.so.2
0xff0b  /usr/lib/librt.so.1
0xff09  

Re: Tomcat 4.1.30 crashing on production site - need help

2005-03-07 Thread Anoop kumar V
So - JDK with or without the patches may not be the issue here?? Did
anyone install patches for JDK 1.4.2_06 and see any improvement or
anything??

-Anoop


On Mon, 07 Mar 2005 18:50:49 +0100, David Tonhofer, m-plify S.A.
[EMAIL PROTECTED] wrote:
 It might also be that Tomcat needs more memory than the JVM will allocate.
 We had that problem.
 
 With the Sun JVM, the options -Xss128k -Xmx128m increased the stack and max
 heap size and there no longer was a problem.
 
 Try to set CATALINA_OPTS in bin/startup.sh:
 
 CATALINA_OPTS=$CATALINA_OPTS -server -Xss128k -Xmx128m
 
 Otherwise, try to get MRTG to graph your Tomcat's memory usage, like it's
 done in the attached PNG.
 
 Best regards,
 
  -- DAvid
 
 
 --On Monday, March 07, 2005 4:49 PM + James Sys [EMAIL PROTECTED] wrote:
 
 
  I've seen similar problems in a non-Tomcat Java application.
 
  The root cause was a memory leak. Although Java has good garbage collection,
   it relies on object references being released.
 
  This is generally fine, but some buggy applications can add references to
   large object to the application and forget to release them. This causes
   memory to be consumed, the app so slow and eventually the app or server to
   lock.
 
  With Tomcat, I can imagine this happening with objects continually being
   added to, say, an ArrayList in the Application context and not being
   released.
 
  I believe there are various tools around to check object allocation and
   release. So if you see objects of a certain type have a gradually 
  increasing
   number, you may well have a memory leak.
 
  Hope this helps.
 
  Regards,
 
  James.
  =
 
 
  Hi All,
 
  For the past couple of months we have been facing a peculiar problem
  on our production environment. And we have been unable to resolve this
  issue so far.
 
  We have an application hosted on Tomcat 4.1.30 and using JDK1.4.2_06.
  We also have an Apache WS - (think it is v2.0.2). Everyday approx
  after every 24 hours of uptime the website slows down and hangs... On
  checking the tomcat logs, we see an OutOfMemoryException.
 
  Restarting Tomcat was one way to momentarily fix the issue and have
  the site up - but due to Apache forked processes we are not able to
  restart Tomcat too. Even if could our Tomcat takes about 30-40 mins to
  load/startup due to some user data loading on startup.
 
  So that leaves the only option of killing certain threads/processes
  and then starting Tomcat. which works fine - only we have been doing
  this every night for the past more than a month.
 
  We also got a thread dump just to check what is going on.. and I have
  pasted that info herewith. Sun has suggested that we install all
  patches to the JDK.
 
  I just wanted to find out if anyone had faced a similar issue and if
  there was something they did that fixed the issue. Was Tomcat the
  culprit?? We will go ahead and install the patches very soon - but
  wanted to be ready in case that didnt fix the issue - did anyone
  experience an improvement once the patches were installed??
  *
  Here is the Exception Trace:
 
  An unexpected exception has been detected in native code outside the VM.
  Unexpected Signal : 11 occurred at PC=0xFF380CBC
  Function=memcpy+0x7E0
  Library=/usr/platform/sun4u/lib/libc_psr.so.1
 
  Current Java thread:
  at COM.ibm.db2.jdbc.app.DB2PreparedStatement.SQLBindChar(Native
   Method) at
   
  COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2(DB2PreparedStatement.java
 
  :1020) - locked 0x9ec56ef8 (a COM.ibm.db2.jdbc.app.DB2Connection) at
 
   
  COM.ibm.db2.jdbc.app.DB2PreparedStatement.executeUpdate(DB2PreparedStatement
  .java:807) at
   
  com.waveset.repository.RelationalDataStore$Item.setPersistentObject(Relation
  alDataStore.java:999) at
   
  com.waveset.repository.AbstractDataStore.setItems(AbstractDataStore.java:492
  6) at
   com.waveset.repository.AbstractDataStore.set(AbstractDataStore.java:1804) 
  at
   
  com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1758
  ) at
   com.waveset.repository.AbstractDataStore.set(AbstractDataStore.java:1804) 
  at
   
  com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1758
  ) at
   
  com.waveset.repository.AbstractDataStore.checkin(AbstractDataStore.java:1401
  ) at
   com.waveset.repository.ServerRepository.checkin(ServerRepository.java:2276)
   at
   com.waveset.session.InternalSession.checkinObject(InternalSession.java:581)
   at com.waveset.task.Scheduler.storeExecutingTask(Scheduler.java:1515) at
   com.waveset.task.Scheduler.executeReadyTask(Scheduler.java:2918) at
   com.waveset.task.Scheduler.processReadyTasks(Scheduler.java:2837) at
   com.waveset.task.Scheduler.processTasks(Scheduler.java:1031) at
   com.waveset.task.Scheduler.run(Scheduler.java:866)
 
  Dynamic libraries:
  0x1 /www4/j2sdk1_4_2_06/java/usr/j2se/bin/java
  0xff36  /usr/lib/libthread.so.1
  0xff39a000  

Re: RE : Security Newbie - Need Help

2005-02-12 Thread sven morales
Not to prolong,  I would think if this was the case of
misplaced element, the DTD for the web.xml would make
the Digester throw an exception because it does not
conform.

--- Luke [EMAIL PROTECTED] wrote:

 Hello;
 
 I finally got this. It turned out I had my:
 
 login-config
 auth-methodBASIC/auth-method
 /login-config
 
 Inside my  security-constraint instead of being in
 the web-app.
 
 Once I moved this to the correct place in the
 document. Everything worked
 fine.
 
 Thanks to all that posted advice.
 
 Luke
 
 
 Luke Shannon
 Web Design/Development
 Java Programmer
 http://www.lukeshannon.com
 phone: 416-570-1984
 - Original Message - 
 From: Luke [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Friday, February 11, 2005 9:05 PM
 Subject: Re: RE : Security Newbie - Need Help
 
 
  Hi;
 
  I can't get the memory realm to work either. I am
 still getting the error
  below without a login prompt:
 
 
  HTTP Status 403 - Configuration error: Cannot
 perform access control
 without
  an authenticated principal
  type Status report
  message Configuration error: Cannot perform access
 control without an
  authenticated principal
  description Access to the specified resource
 (Configuration error: Cannot
  perform access control without an authenticated
 principal) has been
  forbidden.
  Apache Tomcat/5.0.27
 
  This has to be something with my application,
 WEB-INF, server.xml. How
  should I proceed to trouble shoot?
 
  Thanks,
 
  Luke
 
  - Original Message - 
  From: LERBSCHER Jean-Pierre
 [EMAIL PROTECTED]
  To: 'Tomcat Users List'
 tomcat-user@jakarta.apache.org
  Sent: Friday, February 11, 2005 12:21 AM
  Subject: RE : RE : Security Newbie - Need Help
 
 
   Could you try MemoryRealm to evict filter
 mechanisms (like firewall or
   router configuration) between your tomcat serve
 rand your database ?
  
   As you can see in the servlet specification the
 security-role element
  isn't
   optional.
   !ELEMENT web-app (icon?, display-name?,
 description?,
   distributable?, context-param*, filter*,
 filter-mapping*,
   listener*, servlet*, servlet-mapping*,
 session-config?, mimemapping*,
   welcome-file-list?, error-page*, taglib*,
 resourceenv-
   ref*, resource-ref*, security-constraint*,
 login-config?,
   security-role*, env-entry*, ejb-ref*,
 ejb-local-ref*)
  
   -Message d'origine-
   De : Luke [mailto:[EMAIL PROTECTED]
   Envoy�: vendredi 11 f�rier 2005 08:18
   �: Tomcat Users List
   Objet : Re: RE : Security Newbie - Need Help
  
   Hi Dennis;
  
   Where is IMS defined? Otherwise I have specified
 everything as you
   recommended. Yet I still get this error once I
 hit the page (no login
   prompt):
  
  
   HTTP Status 403 - Configuration error: Cannot
 perform access control
  without
   an authenticated principal
   type Status report
   message Configuration error: Cannot perform
 access control without an
   authenticated principal
   description Access to the specified resource
 (Configuration error:
 Cannot
   perform access control without an authenticated
 principal) has been
   forbidden.
   Apache Tomcat/5.0.28
  
   Thanks,
  
   Luke
  
  
   - Original Message - 
   From: Dennis Payne [EMAIL PROTECTED]
   To: tomcat-user@jakarta.apache.org
   Sent: Thursday, February 10, 2005 11:23 AM
   Subject: Re: RE : Security Newbie - Need Help
  
  
you will not need a roles table for tomcat...
 it is only useful to
 your
   own applications that will edit the data. The
 system only utilizes the
 the
   user-role table and the user-password table (at
 least for basic
   authentication).
   
Each servlet in the system  that is secure is
 setup this way and has
 an
   associated mapping:
   
servlet
servlet-nameEnterAssignment/servlet-name
display-nameEnterAssignment/display-name
descriptionEnter Assignment/description
   

servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
security-role-ref
role-nameIMS/role-name
role-linkIMS/role-link
/security-role-ref
/servlet
 ...
   servlet-mapping
servlet-nameEnterAssignment/servlet-name
   
 url-pattern/servlet/EnterAssignment/url-pattern
/servlet-mapping
   
The server.xml contains a reference to the
 security tables by using
 the
   Realm tag placed as shown (there are other
 ways to do it) and all  db
   driver jars have been place in the classpath:
   
Engine defaultHost=localhost
 name=Catalina
   Host appBase=webapps name=localhost
  Logger
 className=org.apache.catalina.logger.FileLogger
   prefix=localhost_log. suffix=.txt
 timestamp=true /
  Realm
 className=org.apache.catalina.realm.JDBCRealm
   connectionName=username
 connectionPassword=password
  

connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
   driverName=com.mysql.jdbc.Driver
 userRoleTable=userrole
   userTable=userpassword roleNameCol=userrole
 userNameCol=userid
   userCredCol=passwordid

Re: RE : Security Newbie - Need Help

2005-02-12 Thread Luke
You are right. A lot of changes were made to my configuration based on
advice I recieved on the forum.

There could be several things that fixed my problem.

The main thing is I know how to set it up now :-)

Luke

Luke Shannon
Web Design/Development
Java Programmer
http://www.lukeshannon.com
phone: 416-570-1984
- Original Message - 
From: sven morales [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, February 12, 2005 10:28 AM
Subject: Re: RE : Security Newbie - Need Help


 Not to prolong,  I would think if this was the case of
 misplaced element, the DTD for the web.xml would make
 the Digester throw an exception because it does not
 conform.

 --- Luke [EMAIL PROTECTED] wrote:

  Hello;
 
  I finally got this. It turned out I had my:
 
  login-config
  auth-methodBASIC/auth-method
  /login-config
 
  Inside my  security-constraint instead of being in
  the web-app.
 
  Once I moved this to the correct place in the
  document. Everything worked
  fine.
 
  Thanks to all that posted advice.
 
  Luke
 
 
  Luke Shannon
  Web Design/Development
  Java Programmer
  http://www.lukeshannon.com
  phone: 416-570-1984
  - Original Message - 
  From: Luke [EMAIL PROTECTED]
  To: Tomcat Users List
  tomcat-user@jakarta.apache.org
  Sent: Friday, February 11, 2005 9:05 PM
  Subject: Re: RE : Security Newbie - Need Help
 
 
   Hi;
  
   I can't get the memory realm to work either. I am
  still getting the error
   below without a login prompt:
  
  
   HTTP Status 403 - Configuration error: Cannot
  perform access control
  without
   an authenticated principal
   type Status report
   message Configuration error: Cannot perform access
  control without an
   authenticated principal
   description Access to the specified resource
  (Configuration error: Cannot
   perform access control without an authenticated
  principal) has been
   forbidden.
   Apache Tomcat/5.0.27
  
   This has to be something with my application,
  WEB-INF, server.xml. How
   should I proceed to trouble shoot?
  
   Thanks,
  
   Luke
  
   - Original Message - 
   From: LERBSCHER Jean-Pierre
  [EMAIL PROTECTED]
   To: 'Tomcat Users List'
  tomcat-user@jakarta.apache.org
   Sent: Friday, February 11, 2005 12:21 AM
   Subject: RE : RE : Security Newbie - Need Help
  
  
Could you try MemoryRealm to evict filter
  mechanisms (like firewall or
router configuration) between your tomcat serve
  rand your database ?
   
As you can see in the servlet specification the
  security-role element
   isn't
optional.
!ELEMENT web-app (icon?, display-name?,
  description?,
distributable?, context-param*, filter*,
  filter-mapping*,
listener*, servlet*, servlet-mapping*,
  session-config?, mimemapping*,
welcome-file-list?, error-page*, taglib*,
  resourceenv-
ref*, resource-ref*, security-constraint*,
  login-config?,
security-role*, env-entry*, ejb-ref*,
  ejb-local-ref*)
   
-Message d'origine-
De : Luke [mailto:[EMAIL PROTECTED]
Envoy�: vendredi 11 f�rier 2005 08:18
�: Tomcat Users List
Objet : Re: RE : Security Newbie - Need Help
   
Hi Dennis;
   
Where is IMS defined? Otherwise I have specified
  everything as you
recommended. Yet I still get this error once I
  hit the page (no login
prompt):
   
   
HTTP Status 403 - Configuration error: Cannot
  perform access control
   without
an authenticated principal
type Status report
message Configuration error: Cannot perform
  access control without an
authenticated principal
description Access to the specified resource
  (Configuration error:
  Cannot
perform access control without an authenticated
  principal) has been
forbidden.
Apache Tomcat/5.0.28
   
Thanks,
   
Luke
   
   
- Original Message - 
From: Dennis Payne [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 11:23 AM
Subject: Re: RE : Security Newbie - Need Help
   
   
 you will not need a roles table for tomcat...
  it is only useful to
  your
own applications that will edit the data. The
  system only utilizes the
  the
user-role table and the user-password table (at
  least for basic
authentication).

 Each servlet in the system  that is secure is
  setup this way and has
  an
associated mapping:

 servlet
 servlet-nameEnterAssignment/servlet-name
 display-nameEnterAssignment/display-name
 descriptionEnter Assignment/description

 
 servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
 security-role-ref
 role-nameIMS/role-name
 role-linkIMS/role-link
 /security-role-ref
 /servlet
  ...
servlet-mapping
 servlet-nameEnterAssignment/servlet-name

  url-pattern/servlet/EnterAssignment/url-pattern
 /servlet-mapping

 The server.xml contains a reference to the
  security

RE : RE : Security Newbie - Need Help

2005-02-11 Thread LERBSCHER Jean-Pierre
Could you try MemoryRealm to evict filter mechanisms (like firewall or
router configuration) between your tomcat serve rand your database ?

As you can see in the servlet specification the security-role element isn't
optional.
!ELEMENT web-app (icon?, display-name?, description?,
distributable?, context-param*, filter*, filter-mapping*,
listener*, servlet*, servlet-mapping*, session-config?, mimemapping*,
welcome-file-list?, error-page*, taglib*, resourceenv-
ref*, resource-ref*, security-constraint*, login-config?,
security-role*, env-entry*, ejb-ref*, ejb-local-ref*) 

-Message d'origine-
De : Luke [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 11 février 2005 08:18
À : Tomcat Users List
Objet : Re: RE : Security Newbie - Need Help

Hi Dennis;

Where is IMS defined? Otherwise I have specified everything as you
recommended. Yet I still get this error once I hit the page (no login
prompt):


HTTP Status 403 - Configuration error: Cannot perform access control without
an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.28

Thanks,

Luke


- Original Message - 
From: Dennis Payne [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 11:23 AM
Subject: Re: RE : Security Newbie - Need Help


 you will not need a roles table for tomcat... it is only useful to your
own applications that will edit the data. The system only utilizes the the
user-role table and the user-password table (at least for basic
authentication).

 Each servlet in the system  that is secure is setup this way and has an
associated mapping:

 servlet
 servlet-nameEnterAssignment/servlet-name
 display-nameEnterAssignment/display-name
 descriptionEnter Assignment/description
 servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
 security-role-ref
 role-nameIMS/role-name
 role-linkIMS/role-link
 /security-role-ref
 /servlet
  ...
servlet-mapping
 servlet-nameEnterAssignment/servlet-name
 url-pattern/servlet/EnterAssignment/url-pattern
 /servlet-mapping

 The server.xml contains a reference to the security tables by using the
Realm tag placed as shown (there are other ways to do it) and all  db
driver jars have been place in the classpath:

 Engine defaultHost=localhost name=Catalina
Host appBase=webapps name=localhost
   Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true /
   Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=username connectionPassword=password
connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
driverName=com.mysql.jdbc.Driver userRoleTable=userrole
userTable=userpassword roleNameCol=userrole userNameCol=userid
userCredCol=passwordid /
/Host
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true /
Realm className=org.apache.catalina.realm.UserDatabaseRealm /
 /Engine

 Hope this helps Enjoy!

  [EMAIL PROTECTED] 02-10-2005 08:56 
 Where would the security-role be declared? WEB-INF/web.xml?

 The tables I have are roles, user_roles and users. When you say wrong role
 table which of the tables I have should be renamed?

 Thanks for you help,

 Luke

  It seems that you have a wrong role table (roles or user_roles).
  Have you declare security-role element ?
 
  -Message d'origine-
  De : Luke [mailto:[EMAIL PROTECTED]
  Envoyé : jeudi 10 février 2005 16:02
  À : Tomcat Users List
  Objet : Re: Security Newbie - Need Help
 
  Hi;
 
  Here is the roles table:
 
  mysql select * from roles;
  +---+
  | role_name |
  +---+
  | admin |
  +---+
  1 row in set (0.02 sec)
 
  I noticed I did have a mistake in the realm declaration in my
server.xml.
  I
  had the wrong user table name. That is fixed this but still have the
  problem:
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
 
 
connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
  sword
  userTable=users userNameCol=user_name
  userCredCol=user_pass userRoleTable=user_roles
  roleNameCol=role_name /
 
  I also changed my security declaration to have a realm-name in the login
  config:
 
  !-- security --
  security-constraint
  web-resource-collection
  web-resource-namefw/web-resource-name
  url-pattern*.do/url-pattern
  http-methodPOST/http-method
  http-methodGET/http-method
  /web-resource-collection
  auth-constraint
  role-nameadmin/role-name
  /auth-constraint
  login-config
  auth-methodBASIC/auth-method
  realm-namefw/realm-name
  /login-config
  /security-constraint
 
  The error is (which appears without a login window first allowing me to
  authenticate

Re: RE : Security Newbie - Need Help

2005-02-11 Thread Luke
This is a good point. I do have a firewall on the server blocking all
external ports on the DB server. Tomcat is connect through localhost so I
thought this would be ok. Maybe its not.

I will try disabling the firewall and the memory realm and see what happens.

Thanks,

Luke

Luke Shannon
Web Design/Development
Java Programmer
http://www.lukeshannon.com
phone: 416-570-1984
- Original Message - 
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 12:21 AM
Subject: RE : RE : Security Newbie - Need Help


 Could you try MemoryRealm to evict filter mechanisms (like firewall or
 router configuration) between your tomcat serve rand your database ?

 As you can see in the servlet specification the security-role element
isn't
 optional.
 !ELEMENT web-app (icon?, display-name?, description?,
 distributable?, context-param*, filter*, filter-mapping*,
 listener*, servlet*, servlet-mapping*, session-config?, mimemapping*,
 welcome-file-list?, error-page*, taglib*, resourceenv-
 ref*, resource-ref*, security-constraint*, login-config?,
 security-role*, env-entry*, ejb-ref*, ejb-local-ref*)

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 11 février 2005 08:18
 À : Tomcat Users List
 Objet : Re: RE : Security Newbie - Need Help

 Hi Dennis;

 Where is IMS defined? Otherwise I have specified everything as you
 recommended. Yet I still get this error once I hit the page (no login
 prompt):


 HTTP Status 403 - Configuration error: Cannot perform access control
without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Thanks,

 Luke


 - Original Message - 
 From: Dennis Payne [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Thursday, February 10, 2005 11:23 AM
 Subject: Re: RE : Security Newbie - Need Help


  you will not need a roles table for tomcat... it is only useful to your
 own applications that will edit the data. The system only utilizes the the
 user-role table and the user-password table (at least for basic
 authentication).
 
  Each servlet in the system  that is secure is setup this way and has an
 associated mapping:
 
  servlet
  servlet-nameEnterAssignment/servlet-name
  display-nameEnterAssignment/display-name
  descriptionEnter Assignment/description
  servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
  security-role-ref
  role-nameIMS/role-name
  role-linkIMS/role-link
  /security-role-ref
  /servlet
   ...
 servlet-mapping
  servlet-nameEnterAssignment/servlet-name
  url-pattern/servlet/EnterAssignment/url-pattern
  /servlet-mapping
 
  The server.xml contains a reference to the security tables by using the
 Realm tag placed as shown (there are other ways to do it) and all  db
 driver jars have been place in the classpath:
 
  Engine defaultHost=localhost name=Catalina
 Host appBase=webapps name=localhost
Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_log. suffix=.txt timestamp=true /
Realm className=org.apache.catalina.realm.JDBCRealm
 connectionName=username connectionPassword=password
 connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
 driverName=com.mysql.jdbc.Driver userRoleTable=userrole
 userTable=userpassword roleNameCol=userrole userNameCol=userid
 userCredCol=passwordid /
 /Host
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt timestamp=true /
 Realm className=org.apache.catalina.realm.UserDatabaseRealm /
  /Engine
 
  Hope this helps Enjoy!
 
   [EMAIL PROTECTED] 02-10-2005 08:56 
  Where would the security-role be declared? WEB-INF/web.xml?
 
  The tables I have are roles, user_roles and users. When you say wrong
role
  table which of the tables I have should be renamed?
 
  Thanks for you help,
 
  Luke
 
   It seems that you have a wrong role table (roles or user_roles).
   Have you declare security-role element ?
  
   -Message d'origine-
   De : Luke [mailto:[EMAIL PROTECTED]
   Envoyé : jeudi 10 février 2005 16:02
   À : Tomcat Users List
   Objet : Re: Security Newbie - Need Help
  
   Hi;
  
   Here is the roles table:
  
   mysql select * from roles;
   +---+
   | role_name |
   +---+
   | admin |
   +---+
   1 row in set (0.02 sec)
  
   I noticed I did have a mistake in the realm declaration in my
 server.xml.
   I
   had the wrong user table name. That is fixed this but still have the
   problem:
  
 Realm  className=org.apache.catalina.realm.JDBCRealm
debug=99
   driverName=org.gjt.mm.mysql.Driver
  
  

connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password

Re: RE : Security Newbie - Need Help

2005-02-11 Thread Dennis Payne
IMS is the system name... we chose that as the role name. You will need to use 
your role name and role link in its place.  When a role is defined on a servlet 
it is secure.  When it is not it is not secure (usually).

In the realm setting, make sure you have replaced the text username and 
passwordid for you username and password into your database and that the 
address or URI reference to the databse is correct with the appropriate 
database name.

The text I sent was a working example from my system...  The only piece that 
you shuld really pay attendion to is the Realm reference.  You need to make 
sure it is setup for your system with the proper names.  You may need to play 
with it a bit.

We are running Tomcat 5.0.28

 [EMAIL PROTECTED] 02-11-2005 00:18 
Hi Dennis;

Where is IMS defined? Otherwise I have specified everything as you
recommended. Yet I still get this error once I hit the page (no login
prompt):


HTTP Status 403 - Configuration error: Cannot perform access control without
an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.28

Thanks,

Luke


- Original Message - 
From: Dennis Payne [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 11:23 AM
Subject: Re: RE : Security Newbie - Need Help


 you will not need a roles table for tomcat... it is only useful to your
own applications that will edit the data. The system only utilizes the the
user-role table and the user-password table (at least for basic
authentication).

 Each servlet in the system  that is secure is setup this way and has an
associated mapping:

 servlet
 servlet-nameEnterAssignment/servlet-name
 display-nameEnterAssignment/display-name
 descriptionEnter Assignment/description
 servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
 security-role-ref
 role-nameIMS/role-name
 role-linkIMS/role-link
 /security-role-ref
 /servlet
  ...
servlet-mapping
 servlet-nameEnterAssignment/servlet-name
 url-pattern/servlet/EnterAssignment/url-pattern
 /servlet-mapping

 The server.xml contains a reference to the security tables by using the
Realm tag placed as shown (there are other ways to do it) and all  db
driver jars have been place in the classpath:

 Engine defaultHost=localhost name=Catalina
Host appBase=webapps name=localhost
   Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true /
   Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=username connectionPassword=password
connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
driverName=com.mysql.jdbc.Driver userRoleTable=userrole
userTable=userpassword roleNameCol=userrole userNameCol=userid
userCredCol=passwordid /
/Host
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true /
Realm className=org.apache.catalina.realm.UserDatabaseRealm /
 /Engine

 Hope this helps Enjoy!

  [EMAIL PROTECTED] 02-10-2005 08:56 
 Where would the security-role be declared? WEB-INF/web.xml?

 The tables I have are roles, user_roles and users. When you say wrong role
 table which of the tables I have should be renamed?

 Thanks for you help,

 Luke

  It seems that you have a wrong role table (roles or user_roles).
  Have you declare security-role element ?
 
  -Message d'origine-
  De : Luke [mailto:[EMAIL PROTECTED] 
  Envoyé : jeudi 10 février 2005 16:02
  À : Tomcat Users List
  Objet : Re: Security Newbie - Need Help
 
  Hi;
 
  Here is the roles table:
 
  mysql select * from roles;
  +---+
  | role_name |
  +---+
  | admin |
  +---+
  1 row in set (0.02 sec)
 
  I noticed I did have a mistake in the realm declaration in my
server.xml.
  I
  had the wrong user table name. That is fixed this but still have the
  problem:
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
 
 
connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
  sword
  userTable=users userNameCol=user_name
  userCredCol=user_pass userRoleTable=user_roles
  roleNameCol=role_name /
 
  I also changed my security declaration to have a realm-name in the login
  config:
 
  !-- security --
  security-constraint
  web-resource-collection
  web-resource-namefw/web-resource-name
  url-pattern*.do/url-pattern
  http-methodPOST/http-method
  http-methodGET/http-method
  /web-resource-collection
  auth-constraint
  role-nameadmin/role-name
  /auth-constraint
  login-config
  auth-methodBASIC/auth-method
  realm-namefw/realm-name
  /login-config
  /security-constraint
 
  The error is (which appears without a login window first

Re: RE : Security Newbie - Need Help

2005-02-11 Thread Luke
Hi;

I can't get the memory realm to work either. I am still getting the error
below without a login prompt:


HTTP Status 403 - Configuration error: Cannot perform access control without
an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.27

This has to be something with my application, WEB-INF, server.xml. How
should I proceed to trouble shoot?

Thanks,

Luke

- Original Message - 
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 12:21 AM
Subject: RE : RE : Security Newbie - Need Help


 Could you try MemoryRealm to evict filter mechanisms (like firewall or
 router configuration) between your tomcat serve rand your database ?

 As you can see in the servlet specification the security-role element
isn't
 optional.
 !ELEMENT web-app (icon?, display-name?, description?,
 distributable?, context-param*, filter*, filter-mapping*,
 listener*, servlet*, servlet-mapping*, session-config?, mimemapping*,
 welcome-file-list?, error-page*, taglib*, resourceenv-
 ref*, resource-ref*, security-constraint*, login-config?,
 security-role*, env-entry*, ejb-ref*, ejb-local-ref*)

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : vendredi 11 février 2005 08:18
 À : Tomcat Users List
 Objet : Re: RE : Security Newbie - Need Help

 Hi Dennis;

 Where is IMS defined? Otherwise I have specified everything as you
 recommended. Yet I still get this error once I hit the page (no login
 prompt):


 HTTP Status 403 - Configuration error: Cannot perform access control
without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Thanks,

 Luke


 - Original Message - 
 From: Dennis Payne [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Thursday, February 10, 2005 11:23 AM
 Subject: Re: RE : Security Newbie - Need Help


  you will not need a roles table for tomcat... it is only useful to your
 own applications that will edit the data. The system only utilizes the the
 user-role table and the user-password table (at least for basic
 authentication).
 
  Each servlet in the system  that is secure is setup this way and has an
 associated mapping:
 
  servlet
  servlet-nameEnterAssignment/servlet-name
  display-nameEnterAssignment/display-name
  descriptionEnter Assignment/description
  servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
  security-role-ref
  role-nameIMS/role-name
  role-linkIMS/role-link
  /security-role-ref
  /servlet
   ...
 servlet-mapping
  servlet-nameEnterAssignment/servlet-name
  url-pattern/servlet/EnterAssignment/url-pattern
  /servlet-mapping
 
  The server.xml contains a reference to the security tables by using the
 Realm tag placed as shown (there are other ways to do it) and all  db
 driver jars have been place in the classpath:
 
  Engine defaultHost=localhost name=Catalina
 Host appBase=webapps name=localhost
Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_log. suffix=.txt timestamp=true /
Realm className=org.apache.catalina.realm.JDBCRealm
 connectionName=username connectionPassword=password
 connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
 driverName=com.mysql.jdbc.Driver userRoleTable=userrole
 userTable=userpassword roleNameCol=userrole userNameCol=userid
 userCredCol=passwordid /
 /Host
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt timestamp=true /
 Realm className=org.apache.catalina.realm.UserDatabaseRealm /
  /Engine
 
  Hope this helps Enjoy!
 
   [EMAIL PROTECTED] 02-10-2005 08:56 
  Where would the security-role be declared? WEB-INF/web.xml?
 
  The tables I have are roles, user_roles and users. When you say wrong
role
  table which of the tables I have should be renamed?
 
  Thanks for you help,
 
  Luke
 
   It seems that you have a wrong role table (roles or user_roles).
   Have you declare security-role element ?
  
   -Message d'origine-
   De : Luke [mailto:[EMAIL PROTECTED]
   Envoyé : jeudi 10 février 2005 16:02
   À : Tomcat Users List
   Objet : Re: Security Newbie - Need Help
  
   Hi;
  
   Here is the roles table:
  
   mysql select * from roles;
   +---+
   | role_name |
   +---+
   | admin |
   +---+
   1 row in set (0.02 sec)
  
   I noticed I did have a mistake in the realm declaration in my
 server.xml.
   I
   had the wrong user table name

Re: RE : Security Newbie - Need Help

2005-02-11 Thread Luke
Hello;

I finally got this. It turned out I had my:

login-config
auth-methodBASIC/auth-method
/login-config

Inside my  security-constraint instead of being in the web-app.

Once I moved this to the correct place in the document. Everything worked
fine.

Thanks to all that posted advice.

Luke


Luke Shannon
Web Design/Development
Java Programmer
http://www.lukeshannon.com
phone: 416-570-1984
- Original Message - 
From: Luke [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, February 11, 2005 9:05 PM
Subject: Re: RE : Security Newbie - Need Help


 Hi;

 I can't get the memory realm to work either. I am still getting the error
 below without a login prompt:


 HTTP Status 403 - Configuration error: Cannot perform access control
without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.27

 This has to be something with my application, WEB-INF, server.xml. How
 should I proceed to trouble shoot?

 Thanks,

 Luke

 - Original Message - 
 From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Friday, February 11, 2005 12:21 AM
 Subject: RE : RE : Security Newbie - Need Help


  Could you try MemoryRealm to evict filter mechanisms (like firewall or
  router configuration) between your tomcat serve rand your database ?
 
  As you can see in the servlet specification the security-role element
 isn't
  optional.
  !ELEMENT web-app (icon?, display-name?, description?,
  distributable?, context-param*, filter*, filter-mapping*,
  listener*, servlet*, servlet-mapping*, session-config?, mimemapping*,
  welcome-file-list?, error-page*, taglib*, resourceenv-
  ref*, resource-ref*, security-constraint*, login-config?,
  security-role*, env-entry*, ejb-ref*, ejb-local-ref*)
 
  -Message d'origine-
  De : Luke [mailto:[EMAIL PROTECTED]
  Envoyé : vendredi 11 février 2005 08:18
  À : Tomcat Users List
  Objet : Re: RE : Security Newbie - Need Help
 
  Hi Dennis;
 
  Where is IMS defined? Otherwise I have specified everything as you
  recommended. Yet I still get this error once I hit the page (no login
  prompt):
 
 
  HTTP Status 403 - Configuration error: Cannot perform access control
 without
  an authenticated principal
  type Status report
  message Configuration error: Cannot perform access control without an
  authenticated principal
  description Access to the specified resource (Configuration error:
Cannot
  perform access control without an authenticated principal) has been
  forbidden.
  Apache Tomcat/5.0.28
 
  Thanks,
 
  Luke
 
 
  - Original Message - 
  From: Dennis Payne [EMAIL PROTECTED]
  To: tomcat-user@jakarta.apache.org
  Sent: Thursday, February 10, 2005 11:23 AM
  Subject: Re: RE : Security Newbie - Need Help
 
 
   you will not need a roles table for tomcat... it is only useful to
your
  own applications that will edit the data. The system only utilizes the
the
  user-role table and the user-password table (at least for basic
  authentication).
  
   Each servlet in the system  that is secure is setup this way and has
an
  associated mapping:
  
   servlet
   servlet-nameEnterAssignment/servlet-name
   display-nameEnterAssignment/display-name
   descriptionEnter Assignment/description
   servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
   security-role-ref
   role-nameIMS/role-name
   role-linkIMS/role-link
   /security-role-ref
   /servlet
...
  servlet-mapping
   servlet-nameEnterAssignment/servlet-name
   url-pattern/servlet/EnterAssignment/url-pattern
   /servlet-mapping
  
   The server.xml contains a reference to the security tables by using
the
  Realm tag placed as shown (there are other ways to do it) and all  db
  driver jars have been place in the classpath:
  
   Engine defaultHost=localhost name=Catalina
  Host appBase=webapps name=localhost
 Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_log. suffix=.txt timestamp=true /
 Realm className=org.apache.catalina.realm.JDBCRealm
  connectionName=username connectionPassword=password
  connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
  driverName=com.mysql.jdbc.Driver userRoleTable=userrole
  userTable=userpassword roleNameCol=userrole userNameCol=userid
  userCredCol=passwordid /
  /Host
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt timestamp=true /
  Realm className=org.apache.catalina.realm.UserDatabaseRealm /
   /Engine
  
   Hope this helps Enjoy!
  
[EMAIL PROTECTED] 02-10-2005 08:56 
   Where would the security-role be declared? WEB-INF/web.xml?
  
   The tables I have are roles, user_roles

RE : Security Newbie - Need Help

2005-02-10 Thread LERBSCHER Jean-Pierre
Hi,
Could you verify  that you have declared your admin role in the web.xml
file.
security-role
  role-nameadmin/role-name
/security-role

-Message d'origine-
De : Luke [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 10 février 2005 07:33
À : Tomcat Users List
Objet : Security Newbie - Need Help


Hi;

I am trying to install a security realm for my application. I am expecting a
browser login window. But instead I get:

 HTTP Status 403 - Configuration error: Cannot perform access control
without an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.28

Why I am not getting the login window?

Here is the web.xml in project root/WEB-INF

security-constraint
web-resource-collection
web-resource-namefw/web-resource-name
url-pattern*.do/url-pattern
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
login-config
auth-methodBASIC/auth-method
/login-config
/security-constraint


 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/applicationusers?user=useramp;passwor
d=password
userTable=applicationusers userNameCol=user_name
userCredCol=user_pass userRoleTable=user_roles
roleNameCol=role_name /

The table structure was created using the following sql:

create table users (
  user_name varchar(15) not null primary key,
  user_pass varchar(15) not null

);

create table user_roles (
  user_name varchar(15) not null,
  role_name varchar(15) not null,
  primary key (user_name, role_name)
);

How can I trouble shoot this? The log doesn't show anything. Any tips would
be great.

Thanks,

Luke



-
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: Security Newbie - Need Help

2005-02-10 Thread Luke
Hi;

Here is the roles table:

mysql select * from roles;
+---+
| role_name |
+---+
| admin |
+---+
1 row in set (0.02 sec)

I noticed I did have a mistake in the realm declaration in my server.xml. I
had the wrong user table name. That is fixed this but still have the
problem:

  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
sword
userTable=users userNameCol=user_name
userCredCol=user_pass userRoleTable=user_roles
roleNameCol=role_name /

I also changed my security declaration to have a realm-name in the login
config:

!-- security --
security-constraint
web-resource-collection
web-resource-namefw/web-resource-name
url-pattern*.do/url-pattern
http-methodPOST/http-method
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
login-config
auth-methodBASIC/auth-method
realm-namefw/realm-name
/login-config
/security-constraint

The error is (which appears without a login window first allowing me to
authenticate):


HTTP Status 403 - Configuration error: Cannot perform access control without
an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.28


Thanks,

Luke

- Original Message - 
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 12:27 AM
Subject: RE : Security Newbie - Need Help


 Hi,
 Could you verify  that you have declared your admin role in the web.xml
 file.
 security-role
   role-nameadmin/role-name
 /security-role

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 07:33
 À : Tomcat Users List
 Objet : Security Newbie - Need Help


 Hi;

 I am trying to install a security realm for my application. I am expecting
a
 browser login window. But instead I get:

  HTTP Status 403 - Configuration error: Cannot perform access control
 without an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Why I am not getting the login window?

 Here is the web.xml in project root/WEB-INF

 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 /login-config
 /security-constraint


  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver


connectionURL=jdbc:mysql://localhost/applicationusers?user=useramp;passwor
 d=password
 userTable=applicationusers userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 The table structure was created using the following sql:

 create table users (
   user_name varchar(15) not null primary key,
   user_pass varchar(15) not null

 );

 create table user_roles (
   user_name varchar(15) not null,
   role_name varchar(15) not null,
   primary key (user_name, role_name)
 );

 How can I trouble shoot this? The log doesn't show anything. Any tips
would
 be great.

 Thanks,

 Luke



 -
 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 : Security Newbie - Need Help

2005-02-10 Thread LERBSCHER Jean-Pierre
It seems that you have a wrong role table (roles or user_roles).
Have you declare security-role element ?

-Message d'origine-
De : Luke [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 10 février 2005 16:02
À : Tomcat Users List
Objet : Re: Security Newbie - Need Help

Hi;

Here is the roles table:

mysql select * from roles;
+---+
| role_name |
+---+
| admin |
+---+
1 row in set (0.02 sec)

I noticed I did have a mistake in the realm declaration in my server.xml. I
had the wrong user table name. That is fixed this but still have the
problem:

  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
sword
userTable=users userNameCol=user_name
userCredCol=user_pass userRoleTable=user_roles
roleNameCol=role_name /

I also changed my security declaration to have a realm-name in the login
config:

!-- security --
security-constraint
web-resource-collection
web-resource-namefw/web-resource-name
url-pattern*.do/url-pattern
http-methodPOST/http-method
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
login-config
auth-methodBASIC/auth-method
realm-namefw/realm-name
/login-config
/security-constraint

The error is (which appears without a login window first allowing me to
authenticate):


HTTP Status 403 - Configuration error: Cannot perform access control without
an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.28


Thanks,

Luke

- Original Message - 
From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 12:27 AM
Subject: RE : Security Newbie - Need Help


 Hi,
 Could you verify  that you have declared your admin role in the web.xml
 file.
 security-role
   role-nameadmin/role-name
 /security-role

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 07:33
 À : Tomcat Users List
 Objet : Security Newbie - Need Help


 Hi;

 I am trying to install a security realm for my application. I am expecting
a
 browser login window. But instead I get:

  HTTP Status 403 - Configuration error: Cannot perform access control
 without an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Why I am not getting the login window?

 Here is the web.xml in project root/WEB-INF

 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 /login-config
 /security-constraint


  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver


connectionURL=jdbc:mysql://localhost/applicationusers?user=useramp;passwor
 d=password
 userTable=applicationusers userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 The table structure was created using the following sql:

 create table users (
   user_name varchar(15) not null primary key,
   user_pass varchar(15) not null

 );

 create table user_roles (
   user_name varchar(15) not null,
   role_name varchar(15) not null,
   primary key (user_name, role_name)
 );

 How can I trouble shoot this? The log doesn't show anything. Any tips
would
 be great.

 Thanks,

 Luke



 -
 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: RE : Security Newbie - Need Help

2005-02-10 Thread luke
Where would the security-role be declared? WEB-INF/web.xml?

The tables I have are roles, user_roles and users. When you say wrong role
table which of the tables I have should be renamed?

Thanks for you help,

Luke

 It seems that you have a wrong role table (roles or user_roles).
 Have you declare security-role element ?

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 16:02
 À : Tomcat Users List
 Objet : Re: Security Newbie - Need Help

 Hi;

 Here is the roles table:

 mysql select * from roles;
 +---+
 | role_name |
 +---+
 | admin |
 +---+
 1 row in set (0.02 sec)

 I noticed I did have a mistake in the realm declaration in my server.xml.
 I
 had the wrong user table name. That is fixed this but still have the
 problem:

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver

 connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
 sword
 userTable=users userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 I also changed my security declaration to have a realm-name in the login
 config:

 !-- security --
 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 http-methodGET/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 realm-namefw/realm-name
 /login-config
 /security-constraint

 The error is (which appears without a login window first allowing me to
 authenticate):


 HTTP Status 403 - Configuration error: Cannot perform access control
 without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28


 Thanks,

 Luke

 - Original Message -
 From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, February 10, 2005 12:27 AM
 Subject: RE : Security Newbie - Need Help


 Hi,
 Could you verify  that you have declared your admin role in the web.xml
 file.
 security-role
   role-nameadmin/role-name
 /security-role

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 07:33
 À : Tomcat Users List
 Objet : Security Newbie - Need Help


 Hi;

 I am trying to install a security realm for my application. I am
 expecting
 a
 browser login window. But instead I get:

  HTTP Status 403 - Configuration error: Cannot perform access control
 without an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error:
 Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Why I am not getting the login window?

 Here is the web.xml in project root/WEB-INF

 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 /login-config
 /security-constraint


  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver


 connectionURL=jdbc:mysql://localhost/applicationusers?user=useramp;passwor
 d=password
 userTable=applicationusers userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 The table structure was created using the following sql:

 create table users (
   user_name varchar(15) not null primary key,
   user_pass varchar(15) not null

 );

 create table user_roles (
   user_name varchar(15) not null,
   role_name varchar(15) not null,
   primary key (user_name, role_name)
 );

 How can I trouble shoot this? The log doesn't show anything. Any tips
 would
 be great.

 Thanks,

 Luke



 -
 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

RE : RE : Security Newbie - Need Help

2005-02-10 Thread LERBSCHER Jean-Pierre


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 10 février 2005 16:57
À : Tomcat Users List
Objet : Re: RE : Security Newbie - Need Help

Where would the security-role be declared? WEB-INF/web.xml?

Yes

The tables I have are roles, user_roles and users. When you say wrong role
table which of the tables I have should be renamed?

select * from roles;
...
realm ... userRoleTable=user_roles

Thanks for you help,

Luke

 It seems that you have a wrong role table (roles or user_roles).
 Have you declare security-role element ?

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 16:02
 À : Tomcat Users List
 Objet : Re: Security Newbie - Need Help

 Hi;

 Here is the roles table:

 mysql select * from roles;
 +---+
 | role_name |
 +---+
 | admin |
 +---+
 1 row in set (0.02 sec)

 I noticed I did have a mistake in the realm declaration in my server.xml.
 I
 had the wrong user table name. That is fixed this but still have the
 problem:

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver


connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
 sword
 userTable=users userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 I also changed my security declaration to have a realm-name in the login
 config:

 !-- security --
 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 http-methodGET/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 realm-namefw/realm-name
 /login-config
 /security-constraint

 The error is (which appears without a login window first allowing me to
 authenticate):


 HTTP Status 403 - Configuration error: Cannot perform access control
 without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28


 Thanks,

 Luke

 - Original Message -
 From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, February 10, 2005 12:27 AM
 Subject: RE : Security Newbie - Need Help


 Hi,
 Could you verify  that you have declared your admin role in the web.xml
 file.
 security-role
   role-nameadmin/role-name
 /security-role

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 07:33
 À : Tomcat Users List
 Objet : Security Newbie - Need Help


 Hi;

 I am trying to install a security realm for my application. I am
 expecting
 a
 browser login window. But instead I get:

  HTTP Status 403 - Configuration error: Cannot perform access control
 without an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error:
 Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Why I am not getting the login window?

 Here is the web.xml in project root/WEB-INF

 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 /login-config
 /security-constraint


  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver



connectionURL=jdbc:mysql://localhost/applicationusers?user=useramp;passwor
 d=password
 userTable=applicationusers userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 The table structure was created using the following sql:

 create table users (
   user_name varchar(15) not null primary key,
   user_pass varchar(15) not null

 );

 create table user_roles (
   user_name varchar(15) not null,
   role_name varchar(15) not null,
   primary key (user_name, role_name)
 );

 How can I trouble shoot this? The log doesn't show anything. Any tips
 would
 be great.

 Thanks,

 Luke



 -
 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 : RE : Security Newbie - Need Help

2005-02-10 Thread LERBSCHER Jean-Pierre
Sorry, i understand what you mean.
Your role table seems ok.

-Message d'origine-
De : LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 10 février 2005 17:40
À : 'Tomcat Users List'
Objet : RE : RE : Security Newbie - Need Help



-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 10 février 2005 16:57
À : Tomcat Users List
Objet : Re: RE : Security Newbie - Need Help

Where would the security-role be declared? WEB-INF/web.xml?

Yes

The tables I have are roles, user_roles and users. When you say wrong role
table which of the tables I have should be renamed?

select * from roles;
...
realm ... userRoleTable=user_roles

Thanks for you help,

Luke

 It seems that you have a wrong role table (roles or user_roles).
 Have you declare security-role element ?

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 16:02
 À : Tomcat Users List
 Objet : Re: Security Newbie - Need Help

 Hi;

 Here is the roles table:

 mysql select * from roles;
 +---+
 | role_name |
 +---+
 | admin |
 +---+
 1 row in set (0.02 sec)

 I noticed I did have a mistake in the realm declaration in my server.xml.
 I
 had the wrong user table name. That is fixed this but still have the
 problem:

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver


connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
 sword
 userTable=users userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 I also changed my security declaration to have a realm-name in the login
 config:

 !-- security --
 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 http-methodGET/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 realm-namefw/realm-name
 /login-config
 /security-constraint

 The error is (which appears without a login window first allowing me to
 authenticate):


 HTTP Status 403 - Configuration error: Cannot perform access control
 without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28


 Thanks,

 Luke

 - Original Message -
 From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, February 10, 2005 12:27 AM
 Subject: RE : Security Newbie - Need Help


 Hi,
 Could you verify  that you have declared your admin role in the web.xml
 file.
 security-role
   role-nameadmin/role-name
 /security-role

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 07:33
 À : Tomcat Users List
 Objet : Security Newbie - Need Help


 Hi;

 I am trying to install a security realm for my application. I am
 expecting
 a
 browser login window. But instead I get:

  HTTP Status 403 - Configuration error: Cannot perform access control
 without an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error:
 Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Why I am not getting the login window?

 Here is the web.xml in project root/WEB-INF

 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 /login-config
 /security-constraint


  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver



connectionURL=jdbc:mysql://localhost/applicationusers?user=useramp;passwor
 d=password
 userTable=applicationusers userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 The table structure was created using the following sql:

 create table users (
   user_name varchar(15) not null primary key,
   user_pass varchar(15) not null

 );

 create table user_roles (
   user_name varchar(15) not null,
   role_name varchar(15) not null,
   primary key (user_name, role_name)
 );

 How can I trouble shoot this? The log doesn't show anything. Any tips
 would
 be great.

 Thanks,

 Luke



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED

Re: RE : Security Newbie - Need Help

2005-02-10 Thread Dennis Payne
you will not need a roles table for tomcat... it is only useful to your own 
applications that will edit the data. The system only utilizes the the 
user-role table and the user-password table (at least for basic authentication).

Each servlet in the system  that is secure is setup this way and has an 
associated mapping:

servlet
servlet-nameEnterAssignment/servlet-name
display-nameEnterAssignment/display-name
descriptionEnter Assignment/description

servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
security-role-ref
role-nameIMS/role-name
role-linkIMS/role-link
/security-role-ref
/servlet
 ...
   servlet-mapping
servlet-nameEnterAssignment/servlet-name
url-pattern/servlet/EnterAssignment/url-pattern
/servlet-mapping

The server.xml contains a reference to the security tables by using the Realm 
tag placed as shown (there are other ways to do it) and all  db driver jars 
have been place in the classpath:

Engine defaultHost=localhost name=Catalina
   Host appBase=webapps name=localhost
  Logger className=org.apache.catalina.logger.FileLogger 
prefix=localhost_log. suffix=.txt timestamp=true / 
  Realm className=org.apache.catalina.realm.JDBCRealm 
connectionName=username connectionPassword=password 
connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname 
driverName=com.mysql.jdbc.Driver userRoleTable=userrole 
userTable=userpassword roleNameCol=userrole userNameCol=userid 
userCredCol=passwordid / 
   /Host
   Logger className=org.apache.catalina.logger.FileLogger 
prefix=catalina_log. suffix=.txt timestamp=true / 
   Realm className=org.apache.catalina.realm.UserDatabaseRealm / 
/Engine

Hope this helps Enjoy!

 [EMAIL PROTECTED] 02-10-2005 08:56 
Where would the security-role be declared? WEB-INF/web.xml?

The tables I have are roles, user_roles and users. When you say wrong role
table which of the tables I have should be renamed?

Thanks for you help,

Luke

 It seems that you have a wrong role table (roles or user_roles).
 Have you declare security-role element ?

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED] 
 Envoyé : jeudi 10 février 2005 16:02
 À : Tomcat Users List
 Objet : Re: Security Newbie - Need Help

 Hi;

 Here is the roles table:

 mysql select * from roles;
 +---+
 | role_name |
 +---+
 | admin |
 +---+
 1 row in set (0.02 sec)

 I noticed I did have a mistake in the realm declaration in my server.xml.
 I
 had the wrong user table name. That is fixed this but still have the
 problem:

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver

 connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
 sword
 userTable=users userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 I also changed my security declaration to have a realm-name in the login
 config:

 !-- security --
 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 http-methodGET/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 realm-namefw/realm-name
 /login-config
 /security-constraint

 The error is (which appears without a login window first allowing me to
 authenticate):


 HTTP Status 403 - Configuration error: Cannot perform access control
 without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error: Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28


 Thanks,

 Luke

 - Original Message -
 From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, February 10, 2005 12:27 AM
 Subject: RE : Security Newbie - Need Help


 Hi,
 Could you verify  that you have declared your admin role in the web.xml
 file.
 security-role
   role-nameadmin/role-name
 /security-role

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED] 
 Envoyé : jeudi 10 février 2005 07:33
 À : Tomcat Users List
 Objet : Security Newbie - Need Help


 Hi;

 I am trying to install a security realm for my application. I am
 expecting
 a
 browser login window. But instead I get:

  HTTP Status 403 - Configuration error: Cannot perform access control
 without an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration

Re: RE : RE : RE : Security Newbie - Need Help

2005-02-10 Thread luke
No I think you are right.

I have user_roles in the server.xml realm and the table in tomcatusers is
called roles.

Is there a correct naming (user_roles vs roles)?

Concerning the security-role is this required when using a JDBCRealm?

Thanks,

Luke


 Sorry, i understand what you mean.
 Your role table seems ok.

 -Message d'origine-
 De : LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 17:40
 À : 'Tomcat Users List'
 Objet : RE : RE : Security Newbie - Need Help



 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 16:57
 À : Tomcat Users List
 Objet : Re: RE : Security Newbie - Need Help

 Where would the security-role be declared? WEB-INF/web.xml?

 Yes

 The tables I have are roles, user_roles and users. When you say wrong role
 table which of the tables I have should be renamed?

 select * from roles;
 ...
 realm ... userRoleTable=user_roles

 Thanks for you help,

 Luke

 It seems that you have a wrong role table (roles or user_roles).
 Have you declare security-role element ?

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 16:02
 À : Tomcat Users List
 Objet : Re: Security Newbie - Need Help

 Hi;

 Here is the roles table:

 mysql select * from roles;
 +---+
 | role_name |
 +---+
 | admin |
 +---+
 1 row in set (0.02 sec)

 I noticed I did have a mistake in the realm declaration in my
 server.xml.
 I
 had the wrong user table name. That is fixed this but still have the
 problem:

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver


 connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
 sword
 userTable=users userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 I also changed my security declaration to have a realm-name in the login
 config:

 !-- security --
 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 http-methodGET/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 realm-namefw/realm-name
 /login-config
 /security-constraint

 The error is (which appears without a login window first allowing me to
 authenticate):


 HTTP Status 403 - Configuration error: Cannot perform access control
 without
 an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error:
 Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28


 Thanks,

 Luke

 - Original Message -
 From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, February 10, 2005 12:27 AM
 Subject: RE : Security Newbie - Need Help


 Hi,
 Could you verify  that you have declared your admin role in the web.xml
 file.
 security-role
   role-nameadmin/role-name
 /security-role

 -Message d'origine-
 De : Luke [mailto:[EMAIL PROTECTED]
 Envoyé : jeudi 10 février 2005 07:33
 À : Tomcat Users List
 Objet : Security Newbie - Need Help


 Hi;

 I am trying to install a security realm for my application. I am
 expecting
 a
 browser login window. But instead I get:

  HTTP Status 403 - Configuration error: Cannot perform access control
 without an authenticated principal
 type Status report
 message Configuration error: Cannot perform access control without an
 authenticated principal
 description Access to the specified resource (Configuration error:
 Cannot
 perform access control without an authenticated principal) has been
 forbidden.
 Apache Tomcat/5.0.28

 Why I am not getting the login window?

 Here is the web.xml in project root/WEB-INF

 security-constraint
 web-resource-collection
 web-resource-namefw/web-resource-name
 url-pattern*.do/url-pattern
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 login-config
 auth-methodBASIC/auth-method
 /login-config
 /security-constraint


  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver



 connectionURL=jdbc:mysql://localhost/applicationusers?user=useramp;passwor
 d=password
 userTable=applicationusers userNameCol=user_name
 userCredCol=user_pass userRoleTable=user_roles
 roleNameCol=role_name /

 The table structure was created using the following sql:

 create table users (
   user_name varchar(15) not null primary key,
   user_pass varchar(15) not null

 );

 create table user_roles (
   user_name varchar(15) not null,
   role_name varchar(15

Re: RE : Security Newbie - Need Help

2005-02-10 Thread Luke
Hi Dennis;

Where is IMS defined? Otherwise I have specified everything as you
recommended. Yet I still get this error once I hit the page (no login
prompt):


HTTP Status 403 - Configuration error: Cannot perform access control without
an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.28

Thanks,

Luke


- Original Message - 
From: Dennis Payne [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, February 10, 2005 11:23 AM
Subject: Re: RE : Security Newbie - Need Help


 you will not need a roles table for tomcat... it is only useful to your
own applications that will edit the data. The system only utilizes the the
user-role table and the user-password table (at least for basic
authentication).

 Each servlet in the system  that is secure is setup this way and has an
associated mapping:

 servlet
 servlet-nameEnterAssignment/servlet-name
 display-nameEnterAssignment/display-name
 descriptionEnter Assignment/description
 servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
 security-role-ref
 role-nameIMS/role-name
 role-linkIMS/role-link
 /security-role-ref
 /servlet
  ...
servlet-mapping
 servlet-nameEnterAssignment/servlet-name
 url-pattern/servlet/EnterAssignment/url-pattern
 /servlet-mapping

 The server.xml contains a reference to the security tables by using the
Realm tag placed as shown (there are other ways to do it) and all  db
driver jars have been place in the classpath:

 Engine defaultHost=localhost name=Catalina
Host appBase=webapps name=localhost
   Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true /
   Realm className=org.apache.catalina.realm.JDBCRealm
connectionName=username connectionPassword=password
connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
driverName=com.mysql.jdbc.Driver userRoleTable=userrole
userTable=userpassword roleNameCol=userrole userNameCol=userid
userCredCol=passwordid /
/Host
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true /
Realm className=org.apache.catalina.realm.UserDatabaseRealm /
 /Engine

 Hope this helps Enjoy!

  [EMAIL PROTECTED] 02-10-2005 08:56 
 Where would the security-role be declared? WEB-INF/web.xml?

 The tables I have are roles, user_roles and users. When you say wrong role
 table which of the tables I have should be renamed?

 Thanks for you help,

 Luke

  It seems that you have a wrong role table (roles or user_roles).
  Have you declare security-role element ?
 
  -Message d'origine-
  De : Luke [mailto:[EMAIL PROTECTED]
  Envoyé : jeudi 10 février 2005 16:02
  À : Tomcat Users List
  Objet : Re: Security Newbie - Need Help
 
  Hi;
 
  Here is the roles table:
 
  mysql select * from roles;
  +---+
  | role_name |
  +---+
  | admin |
  +---+
  1 row in set (0.02 sec)
 
  I noticed I did have a mistake in the realm declaration in my
server.xml.
  I
  had the wrong user table name. That is fixed this but still have the
  problem:
 
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
 
 
connectionURL=jdbc:mysql://localhost/tomcatusers?user=useramp;password=pas
  sword
  userTable=users userNameCol=user_name
  userCredCol=user_pass userRoleTable=user_roles
  roleNameCol=role_name /
 
  I also changed my security declaration to have a realm-name in the login
  config:
 
  !-- security --
  security-constraint
  web-resource-collection
  web-resource-namefw/web-resource-name
  url-pattern*.do/url-pattern
  http-methodPOST/http-method
  http-methodGET/http-method
  /web-resource-collection
  auth-constraint
  role-nameadmin/role-name
  /auth-constraint
  login-config
  auth-methodBASIC/auth-method
  realm-namefw/realm-name
  /login-config
  /security-constraint
 
  The error is (which appears without a login window first allowing me to
  authenticate):
 
 
  HTTP Status 403 - Configuration error: Cannot perform access control
  without
  an authenticated principal
  type Status report
  message Configuration error: Cannot perform access control without an
  authenticated principal
  description Access to the specified resource (Configuration error:
Cannot
  perform access control without an authenticated principal) has been
  forbidden.
  Apache Tomcat/5.0.28
 
 
  Thanks,
 
  Luke
 
  - Original Message -
  From: LERBSCHER Jean-Pierre [EMAIL PROTECTED]
  To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
  Sent: Thursday, February 10, 2005 12:27 AM
  Subject: RE : Security Newbie - Need Help
 
 
  Hi,
  Could you verify  that you have declared your admin role in the web.xml

Security Newbie - Need Help

2005-02-09 Thread Luke

Hi;

I am trying to install a security realm for my application. I am expecting a
browser login window. But instead I get:

 HTTP Status 403 - Configuration error: Cannot perform access control
without an authenticated principal
type Status report
message Configuration error: Cannot perform access control without an
authenticated principal
description Access to the specified resource (Configuration error: Cannot
perform access control without an authenticated principal) has been
forbidden.
Apache Tomcat/5.0.28

Why I am not getting the login window?

Here is the web.xml in project root/WEB-INF

security-constraint
web-resource-collection
web-resource-namefw/web-resource-name
url-pattern*.do/url-pattern
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
login-config
auth-methodBASIC/auth-method
/login-config
/security-constraint


 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver

connectionURL=jdbc:mysql://localhost/applicationusers?user=useramp;passwor
d=password
userTable=applicationusers userNameCol=user_name
userCredCol=user_pass userRoleTable=user_roles
roleNameCol=role_name /

The table structure was created using the following sql:

create table users (
  user_name varchar(15) not null primary key,
  user_pass varchar(15) not null

);

create table user_roles (
  user_name varchar(15) not null,
  role_name varchar(15) not null,
  primary key (user_name, role_name)
);

How can I trouble shoot this? The log doesn't show anything. Any tips would
be great.

Thanks,

Luke



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



Still need help! - DBCP/DB2/Tomcat 4.1.24 problem!

2004-12-23 Thread James Milks
Hi, 
despite the fact that I did get some responses (and a thread hijack), I
am still trying to solve this. Any help appreciated.

I am trying to get DBCP connection pooling to work with Tomcat 4.1.24
and DB2 8.X. I can connect directly, but whenever I try to use DBCP, I
receive a Cannot load driver class 'null' error. The DB2 and JNDI jar
files are located in tomcat-root\common\lib.

This code snippet works:
...
String url = jdbc:db2://myserver:5/mydb;
String user = test;
String pass = password; Class.forName(com.ibm.db2.jcc.DB2Driver);
Connection conn = DriverManager.getConnection(url,user,pass);
Statement stmt = conn.createStatement();
ResultSet myRs = stmt.executeQuery(select * from myTable); ...

This leads me to believe that:
a) My driver is fine and jar file location is ok
b) My login credentials are fine
I use the same driver and connection info in my DBCP config. 

---
Now when I try to use DBCP, this code snippet does NOT work. ... Context
jndiCtx = new InitialContext(); Context ctx = (Context)
jndiCtx.lookup(java:comp/env); DataSource ds = (DataSource)
ctx.lookup(jdbc/mydb); Connection conn = ds.getConnection(); Statement
stmt = conn.createStatement(); ResultSet myRs =
stmt.executeQuery(select * from myTable); ...

Tomcat does not throw any errors at startup in any logs and when I
execute the above code, the DataSource retrieved (ds) is not null and a
getClassName() call reveals a generic commons DataSource object.
However, once it gets to the getConnection() method, the evil Cannot
load driver class 'null' error occurs.

I tried messing around with the JNDI entries to prove that was OK, and
as expected I get a naming error if I put a wrong value. This tells me
that the lookup portion works, yes?

Here are the relevant server.xml and the web.xml entries:

--
server.xml (note: I also tried it without the factory param)
--
...
Context...
   Resource name=jdbc/mydb scope=Shareable
type=javax.sql.DataSource auth=Container /

  Resourceparams name=jdbc/mydb
   parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
parameter
   nameusername/name
   valuetest/value
   /parameter
parameter
   namepassword/name
   valuepassword/value
   /parameter
parameter
   namedriverClassName/name
   valuecom.ibm.db2.jcc.DB2Driver/value
   /parameter
parameter
   nameurl/name
   valuejdbc:db2://myserver:5/mydb/value
   /parameter
/Resourceparams
/Context

--
web.xml
--
...
resource-ref
  resource-ref-namejdbc/mydbresource-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref


So, that is pretty much it. I have consulted 2 books, countless
websites, and would appreciate any help.

Thanks

JW



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



Tomcat 5.5 (need help??????????I

2004-12-02 Thread vishal nalwa
Hi all,

I have developed a JSP application.
It is working fine on my machine(with tomcat5.5  JRE
1.5 ,win2000).
But when this application run on client side (with
tomcat5.5  JRE1.5,winNT) it is showing unexpected
behaviour it is showing the following error.


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

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:296)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 

java.lang.ArrayIndexOutOfBoundsException: 0

org.apache.jasper.compiler.SmapUtil$SDEInstaller.copy(SmapUtil.java:425)




And sometimes



Exception

javax.servlet.ServletException:Truncated class file
.
.
.
root cause
java.lang.ClassFormatError:Truncated class file


Please help me.

Is it tomcat5.5 configuration issue or some bad logic
in my application.

Thanks to all in advance

Vishal



Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

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



Still Need Help On Starting Tomcat When Machine Starts

2004-10-06 Thread Weifeng Wang
Hello there,

I posted a question yesterday seeking help on automating Tomcat (4.1.30) 
startup and shutdown on HP-UX B.11.11 platform.  Now, Tomcat can be shut 
down successfully when the machine shuts down.  But, when the machine 
starts, the Tomcat does not get started.  There is no error shown in the 
/etc/rc.log file.  Here is the message in /etc/rc.log 
file:

Starting up Tomcat
Output from /sbin/rc3.d/S999tomcat start:

Using CATALINA_BASE:   /opt/jakarta-tomcat-4.1.30
Using CATALINA_HOME:   /opt/jakarta-tomcat-4.1.30
Using CATALINA_TMPDIR: /opt/jakarta-tomcat-4.1.30/temp
Using JAVA_HOME:   /opt/java1.4

I still need help.  Can anyone give me any clue on why Tomcat does not 
start up.  Thank you very much in advance.

Eric

Re: Still Need Help On Starting Tomcat When Machine Starts

2004-10-06 Thread Tim Funk
IIRC, HP startup is sort of goofy. Odds are tomcat is being started before 
the  network is being started.

I think placing and entry in /etc/inittab will do the trick.
-Tim
Weifeng Wang wrote:
Hello there,
I posted a question yesterday seeking help on automating Tomcat (4.1.30) 
startup and shutdown on HP-UX B.11.11 platform.  Now, Tomcat can be shut 
down successfully when the machine shuts down.  But, when the machine 
starts, the Tomcat does not get started.  There is no error shown in the 
/etc/rc.log file.  Here is the message in /etc/rc.log 
file:

Starting up Tomcat
Output from /sbin/rc3.d/S999tomcat start:

Using CATALINA_BASE:   /opt/jakarta-tomcat-4.1.30
Using CATALINA_HOME:   /opt/jakarta-tomcat-4.1.30
Using CATALINA_TMPDIR: /opt/jakarta-tomcat-4.1.30/temp
Using JAVA_HOME:   /opt/java1.4
I still need help.  Can anyone give me any clue on why Tomcat does not 
start up.  Thank you very much in advance.

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


Re: Still Need Help On Starting Tomcat When Machine Starts

2004-10-06 Thread Weifeng Wang
Hi Tim,

It works now.  Thank you very much!

Eric




Tim Funk [EMAIL PROTECTED]
10/06/2004 11:27 AM
Please respond to Tomcat Users List

 


To: Tomcat Users List [EMAIL PROTECTED]
cc: 
 


Subject:Re: Still Need Help On Starting Tomcat When Machine Starts
Caterpillar: Confidential Green Retain Until: 11/05/2004Retention 
Category:  G90 - Information and Reports

IIRC, HP startup is sort of goofy. Odds are tomcat is being started before 

the  network is being started.

I think placing and entry in /etc/inittab will do the trick.

-Tim

Weifeng Wang wrote:

 Hello there,
 
 I posted a question yesterday seeking help on automating Tomcat (4.1.30) 

 startup and shutdown on HP-UX B.11.11 platform.  Now, Tomcat can be shut 

 down successfully when the machine shuts down.  But, when the machine 
 starts, the Tomcat does not get started.  There is no error shown in the 

 /etc/rc.log file.  Here is the message in /etc/rc.log 
 file:
 
 Starting up Tomcat
 Output from /sbin/rc3.d/S999tomcat start:
 
 Using CATALINA_BASE:   /opt/jakarta-tomcat-4.1.30
 Using CATALINA_HOME:   /opt/jakarta-tomcat-4.1.30
 Using CATALINA_TMPDIR: /opt/jakarta-tomcat-4.1.30/temp
 Using JAVA_HOME:   /opt/java1.4
 
 I still need help.  Can anyone give me any clue on why Tomcat does not 
 start up.  Thank you very much in advance.
 
 Eric

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


Need help on automating Tomcat startup and shutdown on HP-UX

2004-10-05 Thread Weifeng Wang
Good Afternoon,

I am having problem in automating Tomcat (4.1.30) startup and shutdown on 
HP-UX B.11.11 platform.  I have created a script named tomcat in 
/sbin/init.d directory.  I can start up and shut down Tomcat by running 
this script manually with the super user (root) account.  But, it always 
fails where the machine reboots.  Here is the error message in /etc/rc.log 
file:

Starting up Tomcat
Output from /sbin/rc3.d/S999tomcat start:

/opt/jakarta-tomcat-4.1.30/bin/startup.sh[21]: dirname:  not found.
Cannot find /catalina.sh
This file is needed to run this program
/sbin/rc3.d/S999tomcat start FAILED

Here is the /sbin/init.d/tomcat script:

CATALINA_BASE=/opt/jakarta-tomcat-4.1.30
export CATALINA_BASE
CATALINA_HOME=$CATALINA_BASE
export CATALINA_HOME
CATALINA_TMPDIR=$CATALINA_HOME/temp
export CATALINA_TMPDIR
JAVA_HOME=/opt/java1.4
export JAVA_HOME
case $1 in
 'start_msg')
 echo Starting up Tomcat
 ;;
 'stop_msg')
 echo Shutting down Tomcat
 ;;
 'start')
 $CATALINA_HOME/bin/startup.sh
 ;;
 'stop')
 $CATALINA_HOME/bin/shutdown.sh
 ;;
 *)
 echo Usage: $0 [start | stop]
esac

I would appreciate very much if anyone can give me some clue on how to 
make it work.  Thanks in advance.

Eric

Beginner for Apache Tomcat: Need Help

2004-09-29 Thread TK
Hi there,
I'm a new Apache  Tomcat user. I have the following questions and
hope you can help me out. Thank you.

1. Can I install and run Apache and Tomcat on the same machine? Or, at
the first place, do I need to do so if Tomcat alone can be used as a
Web server?

2. If I install both of them on the same machine, how do I
differentiate the host names? Does http://127.0.0.1/ refers to the
Apache or Tomcat server?

3. How could I create a virtual link to point from the root directory
to another directory located at the other machine or the other disk
drive?

4. Are there any guides on setting and configuring Apache and Tomcat
in Linux environment?

5. Can I use J2EE SDK 1.4 to develop and test JSP applications? If
not, what are the tools that can be used?

6. Can I used JSP to access MS Access database? If not, what is the
recommended DBMS to be used, both in Windows and Linux environments?

That's all for this time. Thanks again.

Regards,
TK

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



Re: Beginner for Apache Tomcat: Need Help

2004-09-29 Thread Anthony E. Carlos
Welcome! Please start by reading some of the online documentation:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
I'd recommend starting with installing tomcat first without apache. You 
may not even need apache. Once you've gotten that down, you can connect 
tomcat to apache so that apache serves static pages (if you still need 
it). I'd recommend O'Reilly's book on Tomcat for details about creating 
a connector.

On Sep 29, 2004, at 11:55 AM, TK wrote:
Hi there,
I'm a new Apache  Tomcat user. I have the following questions and
hope you can help me out. Thank you.
1. Can I install and run Apache and Tomcat on the same machine? Or, at
the first place, do I need to do so if Tomcat alone can be used as a
Web server?
2. If I install both of them on the same machine, how do I
differentiate the host names? Does http://127.0.0.1/ refers to the
Apache or Tomcat server?
3. How could I create a virtual link to point from the root directory
to another directory located at the other machine or the other disk
drive?
4. Are there any guides on setting and configuring Apache and Tomcat
in Linux environment?
5. Can I use J2EE SDK 1.4 to develop and test JSP applications? If
not, what are the tools that can be used?
6. Can I used JSP to access MS Access database? If not, what is the
recommended DBMS to be used, both in Windows and Linux environments?
That's all for this time. Thanks again.
Regards,
TK
-
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: Beginner for Apache Tomcat: Need Help

2004-09-29 Thread Francois Dion
On Wed, 29 Sep 2004 16:55:00 +0100, TK [EMAIL PROTECTED] wrote:
 Hi there,
 I'm a new Apache  Tomcat user. I have the following questions and
 hope you can help me out. Thank you.

http://jakarta.apache.org/tomcat/index.html

 1. Can I install and run Apache and Tomcat on the same machine? Or, at
 the first place, do I need to do so if Tomcat alone can be used as a
 Web server?

Yes. You dont have to, but that gets more complicated. You dont have
to use apache to run tomcat. If you do, you'll have to configure
apache to use a connector to tomcat. There are many ways to do that
depending on what you want to do, what version of the software you are
running, what OS etc.
 
 2. If I install both of them on the same machine, how do I
 differentiate the host names? Does http://127.0.0.1/ refers to the
 Apache or Tomcat server?
Apache.
Tomcat is at 8080 by default.
 
 3. How could I create a virtual link to point from the root directory
 to another directory located at the other machine or the other disk
 drive?
Dont do that. modify the root path in the config file.

 
 4. Are there any guides on setting and configuring Apache and Tomcat
 in Linux environment?
Pretty much all your questions are in the Tomcat FAQ. Check out:
http://jakarta.apache.org/tomcat/faq/

Specifically: http://jakarta.apache.org/tomcat/faq/unix.html

 
 5. Can I use J2EE SDK 1.4 to develop and test JSP applications? If
 not, what are the tools that can be used?
Yes. You can also use one of the hundreds of tools to do that. One of
them is eclipse.
 
 6. Can I used JSP to access MS Access database? If not, what is the
 recommended DBMS to be used, both in Windows and Linux environments?
Use Oracle, or if you want something free, use Postgresql.
 
 That's all for this time. Thanks again.
 
 Regards,
 TK
 
 -
 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: Beginner for Apache Tomcat: Need Help

2004-09-29 Thread Philipp Taprogge
Hi!
TK wrote:
1. Can I install and run Apache and Tomcat on the same machine? Or, at
the first place, do I need to do so if Tomcat alone can be used as a
Web server?
Yes, you can and no, you don't have to if your setup does not require 
it. Often sites use apache for serving static content (due to it's 
superior performance and security concerns) and let it pass requests to 
jsps to a tomcat.

2. If I install both of them on the same machine, how do I
differentiate the host names? Does http://127.0.0.1/ refers to the
Apache or Tomcat server?
You might want to familiarize yourself with tcp/ip networking basics. 
For short, each application running on a host that wants to talk ip 
allocates a port on that host. You access different ports by appending 
the port number to the hostname separated by a colon:

http://localhost:8080/
In a common setup with apache and tomcat, apache binds port 80 (the 
standard HTTP port) and passes along jsp requests to tomcat by talking 
to it on another port, on which tomcat listens.

3. How could I create a virtual link to point from the root directory
to another directory located at the other machine or the other disk
drive?
I am not entirely sure I understand what you mean. In general, all 
requests go to the apache first and it decides which of them to server 
from where. If the requests call servlets or jsps, apache just forwards 
the request to tomcat to serve as it sees fit.

6. Can I used JSP to access MS Access database? If not, what is the
recommended DBMS to be used, both in Windows and Linux environments?
Since jsps and servlets are (basically) java programs, they can access 
any database for which a jdbc driver exists. If there is one for access 
(which is not a DBMS system really...) I do not know. I would not 
however recommend using access in a live environment. Use a real RDBMS 
like MySQL, postgresql (if you want OSS) or MS SQL Server, Oracle and 
the like (if you want commercially supported software).

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


Re: Beginner for Apache Tomcat: Need Help

2004-09-29 Thread Nicolas Mailhot
Le mercredi 29 septembre 2004  16:55 +0100, TK a crit :

 4. Are there any guides on setting and configuring Apache and Tomcat
 in Linux environment?

Depending on the linux distro you target, there is probably already a
community of java users with howtos and sometimes prepackaged binaries.

For Redhat, Fedora, Suse/Novell and Mandrake the JPackage project
(http://www.jpackage.org) is a good starting point. Debian and Gentoo
also have their own packaging communities.

http://java.debian.net/index.php/CommonJavaPackaging should list the
projects that decided to come out of the woods and try to work together.

Regards,

-- 
Nicolas Mailhot


signature.asc
Description: Ceci est une partie de message	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


Re: Beginner for Apache Tomcat: Need Help

2004-09-29 Thread Ben Souther
For what it's worth.
If you install Fedora Core II with All packages checked in the
installer (I imagine it would work with all Development Tools too),
it will install Apache and Tomcat 4.1x.

The two will already be configured to work together.

I haven't looked that closely at the configuration so I don't know what
JDK it's using or any of the other particulars but it could be an easy
shortcut to getting started.






On Wed, 2004-09-29 at 14:21, Nicolas Mailhot wrote:
 Le mercredi 29 septembre 2004  16:55 +0100, TK a crit :
 
  4. Are there any guides on setting and configuring Apache and Tomcat
  in Linux environment?
 
 Depending on the linux distro you target, there is probably already a
 community of java users with howtos and sometimes prepackaged binaries.
 
 For Redhat, Fedora, Suse/Novell and Mandrake the JPackage project
 (http://www.jpackage.org) is a good starting point. Debian and Gentoo
 also have their own packaging communities.
 
 http://java.debian.net/index.php/CommonJavaPackaging should list the
 projects that decided to come out of the woods and try to work together.
 
 Regards,


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



Re: Beginner for Apache Tomcat: Need Help

2004-09-29 Thread Nicolas Mailhot
Le mercredi 29 septembre 2004  14:28 -0400, Ben Souther a crit :
 For what it's worth.
 If you install Fedora Core II with All packages checked in the
 installer (I imagine it would work with all Development Tools too),
 it will install Apache and Tomcat 4.1x.
 
 The two will already be configured to work together.
 
 I haven't looked that closely at the configuration so I don't know what
 JDK it's using or any of the other particulars but it could be an easy
 shortcut to getting started.

Unfortunately the FC2 setup is gcj-based and not real useful in
production. FC3 (post-FC3 actually) should be closer to the current
JPackage with gcj compat added.

Cheers,

-- 
Nicolas Mailhot


signature.asc
Description: Ceci est une partie de message	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


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]


Need help for case insensitive deployment

2004-09-28 Thread Willy Lin

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



Need Help

2004-09-03 Thread Venu
Hello EveryBody,

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.

the configuration in the server.xml

Host name=domainname..com debug=0 appBase=webapps unpackWARs=true
Aliaswww.domainname.s.com/Alias
Logger className=org.apache.catalina.logger.FileLogger
  directory=logs prefix=domainname suffix=.log timestamp=true/
   Context path=/home/httpd/vhosts/domainname.com docBase=domainname 
debug=0 reloadable=true/
 Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1/
  /Host

Any help will be most appreciated.

Best Regard's
Tomcat Cat-User

Need Help

2004-09-03 Thread Venu
Hello Guru's

Im using the my application outside the webapps in server.xml i have confiured the 
following
but still my jsp's  servlets doenst executes at the server side..

Here is my Server.xml file.

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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

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

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

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

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

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

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

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
acceptCount=100 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS /
/Connector
--

!-- Define a 

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]



new to list - need help

2004-08-16 Thread Anand A Rao
hi ,
I am a new member to the list.
I am trying to setup an
Apache 2 - Tomcat 5 setup on my linux server and have ended in some issues.
Currently I can run jsps and servlets directly from tomcat but not 
through apache.

I have tried to follow some guides from the internet on using unix 
sockets for communication between apache and tomcat.

Any pointer to a good and working setup guide to accomplish this will be 
appriciated a lot.

thanks and regards
Anand
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: new to list - need help

2004-08-16 Thread Anand A Rao
I get below  errors on   any jsp request.
thanks
-Anand
[Mon Aug 16 11:23:13 2004] [notice] Apache/2.0.49 (Unix) mod_jk2/2.0.4 
configured -- resuming normal operations
[Mon Aug 16 11:23:13 2004] [error] ajp13.init(): No channel 
/usr/local/jakarta-tomcat-5.0.25/work/jk2.socket
[Mon Aug 16 11:28:21 2004] [error] ajp13.init(): No channel 
/usr/local/jakarta-tomcat-5.0.25/work/jk2.socket
Anand A Rao wrote:

hi ,
I am a new member to the list.
I am trying to setup an
Apache 2 - Tomcat 5 setup on my linux server and have ended in some 
issues.

Currently I can run jsps and servlets directly from tomcat but not 
through apache.

I have tried to follow some guides from the internet on using unix 
sockets for communication between apache and tomcat.

Any pointer to a good and working setup guide to accomplish this will 
be appriciated a lot.

thanks and regards
Anand
-
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: new to list - need help

2004-08-16 Thread Dale, Matt
Try this, its one of the best around

http://www.connecties.com/cymulacrum/tomcat5/book1.html

Ta
Matt

-Original Message-
From: Anand A Rao [mailto:[EMAIL PROTECTED]
Sent: 16 August 2004 17:47
To: Tomcat Users List
Subject: new to list - need help 


hi ,
I am a new member to the list.
I am trying to setup an

Apache 2 - Tomcat 5 setup on my linux server and have ended in some issues.

Currently I can run jsps and servlets directly from tomcat but not 
through apache.

I have tried to follow some guides from the internet on using unix 
sockets for communication between apache and tomcat.

Any pointer to a good and working setup guide to accomplish this will be 
appriciated a lot.

thanks and regards
Anand


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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: [tomcat] Re: new to list - need help

2004-08-16 Thread Ernesto Echeverría
Just wondering.

Are you using mod_jk2 or similar? 

What kind of content are you serving and what are your mappings in the
configuration files for the mod_jk connector? 

José Ernesto Echeverría
 

-Original Message-
From: Anand A Rao [mailto:[EMAIL PROTECTED] 
Sent: Lunes, 16 de Agosto de 2004 10:50 a.m.
To: Tomcat Users List
Subject: [tomcat] Re: new to list - need help

I get below  errors on   any jsp request.

thanks
-Anand

[Mon Aug 16 11:23:13 2004] [notice] Apache/2.0.49 (Unix) mod_jk2/2.0.4
configured -- resuming normal operations [Mon Aug 16 11:23:13 2004] [error]
ajp13.init(): No channel /usr/local/jakarta-tomcat-5.0.25/work/jk2.socket
[Mon Aug 16 11:28:21 2004] [error] ajp13.init(): No channel
/usr/local/jakarta-tomcat-5.0.25/work/jk2.socket
Anand A Rao wrote:

 hi ,
 I am a new member to the list.
 I am trying to setup an

 Apache 2 - Tomcat 5 setup on my linux server and have ended in some 
 issues.

 Currently I can run jsps and servlets directly from tomcat but not 
 through apache.

 I have tried to follow some guides from the internet on using unix 
 sockets for communication between apache and tomcat.

 Any pointer to a good and working setup guide to accomplish this will 
 be appriciated a lot.

 thanks and regards
 Anand


 -
 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: SSL Problem need Help!

2004-07-30 Thread Stephan Kühn
What do you mean exactly???
Can you give me a sample server.xml for this ?



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Freitag, 30. Juli 2004 05:45
To: [EMAIL PROTECTED]
Subject: Re: SSL Problem need Help!

Edit the file by hand, and get rid of the 'keypass' attribute.  There is a
bunch of other stuff you could clean up, but it's mostly aliases of the same
attribute over and over.

Stephan Kühn [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hallo,



i new with Tomcat and i use Tomcat 5.16 with j2re1.4.2_03 on Windows.

So i whnat to configure a server base ssl auth. So i create my cert with xca
my own ca and a serfver cert in pkcs12 format.



So when i try to setup https with webgui after restart the apache/tomcat
service, the service faild to start. Why evey



Here is my server.xml



?xml version='1.0' encoding='utf-8'?

Server

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/

  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer value=30/

Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/

ResourceParams name=UserDatabase

  parameter

namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value

  /parameter

  parameter

namepathname/name

valueconf/tomcat-users.xml/value

  /parameter

/ResourceParams

  /GlobalNamingResources

  Service name=Catalina

Connector acceptCount=100 connectionTimeout=2
disableUploadTimeout=true port=8080 redirectPort=8443
maxSpareThreads=75 maxThreads=150 minSpareThreads=25

/Connector

Connector port=8009 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443

/Connector

Connector address=127.0.0.1 enableLookups=true
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12
keystorePass=test123 port=8553 redirectPort=8554 scheme=https
sslProtocol=TLS algorithm=SunX509 clientauth=false keypass=changeit
keystore=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keytype=PKCS12
protocol=TLS secure=true

  Factory
className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12
keystorePass=test123/

/Connector

Engine defaultHost=localhost name=Catalina

  Host appBase=webapps name=localhost

Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true/

  /Host

  Host name=kunde3

  /Host

  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm/

/Engine

  /Service

/Server



Have anybody i idea for me ??





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



SSL Problem need Help!

2004-07-29 Thread Stephan Kühn
Hallo,

 

i new with Tomcat and i use Tomcat 5.16 with j2re1.4.2_03 on Windows.

So i whnat to configure a server base ssl auth. So i create my cert with xca my own ca 
and a serfver cert in pkcs12 format.

 

So when i try to setup https with webgui after restart the apache/tomcat service, the 
service faild to start. Why evey 

 

Here is my server.xml

 

?xml version='1.0' encoding='utf-8'?

Server

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/

  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer value=30/

Resource auth=Container description=User database that can be updated and 
saved name=UserDatabase type=org.apache.catalina.UserDatabase/

ResourceParams name=UserDatabase

  parameter

namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value

  /parameter

  parameter

namepathname/name

valueconf/tomcat-users.xml/value

  /parameter

/ResourceParams

  /GlobalNamingResources

  Service name=Catalina

Connector acceptCount=100 connectionTimeout=2 disableUploadTimeout=true 
port=8080 redirectPort=8443 maxSpareThreads=75 maxThreads=150 
minSpareThreads=25

/Connector

Connector port=8009 protocol=AJP/1.3 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443

/Connector

Connector address=127.0.0.1 enableLookups=true 
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keystorePass=test123 
port=8553 redirectPort=8554 scheme=https sslProtocol=TLS algorithm=SunX509 
clientauth=false keypass=changeit 
keystore=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keytype=PKCS12 protocol=TLS 
secure=true

  Factory className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory 
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keystorePass=test123/

/Connector

Engine defaultHost=localhost name=Catalina

  Host appBase=webapps name=localhost

Logger className=org.apache.catalina.logger.FileLogger 
prefix=localhost_log. suffix=.txt timestamp=true/

  /Host

  Host name=kunde3

  /Host

  Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. 
suffix=.txt timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm/

/Engine

  /Service

/Server

 

Have anybody i idea for me ??

 




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



RE: SSL Problem need Help!

2004-07-29 Thread Stephan Kühn
Need still help!!

-Original Message-
From: Stephan Kühn [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 29. Juli 2004 11:32
To: Tomcat Users List
Subject: SSL Problem need Help!

Hallo,

 

i new with Tomcat and i use Tomcat 5.16 with j2re1.4.2_03 on Windows.

So i whnat to configure a server base ssl auth. So i create my cert with xca my own ca 
and a serfver cert in pkcs12 format.

 

So when i try to setup https with webgui after restart the apache/tomcat service, the 
service faild to start. Why evey 

 

Here is my server.xml

 

?xml version='1.0' encoding='utf-8'?

Server

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/

  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer value=30/

Resource auth=Container description=User database that can be updated and 
saved name=UserDatabase type=org.apache.catalina.UserDatabase/

ResourceParams name=UserDatabase

  parameter

namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value

  /parameter

  parameter

namepathname/name

valueconf/tomcat-users.xml/value

  /parameter

/ResourceParams

  /GlobalNamingResources

  Service name=Catalina

Connector acceptCount=100 connectionTimeout=2 disableUploadTimeout=true 
port=8080 redirectPort=8443 maxSpareThreads=75 maxThreads=150 
minSpareThreads=25

/Connector

Connector port=8009 protocol=AJP/1.3 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443

/Connector

Connector address=127.0.0.1 enableLookups=true 
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keystorePass=test123 
port=8553 redirectPort=8554 scheme=https sslProtocol=TLS algorithm=SunX509 
clientauth=false keypass=changeit 
keystore=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keytype=PKCS12 protocol=TLS 
secure=true

  Factory className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory 
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keystorePass=test123/

/Connector

Engine defaultHost=localhost name=Catalina

  Host appBase=webapps name=localhost

Logger className=org.apache.catalina.logger.FileLogger 
prefix=localhost_log. suffix=.txt timestamp=true/

  /Host

  Host name=kunde3

  /Host

  Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. 
suffix=.txt timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm/

/Engine

  /Service

/Server

 

Have anybody i idea for me ??

 




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



AW: SSL Problem need Help!

2004-07-29 Thread Gunnar Pörschke
What is about your log files?

Do you have any logged information about that? 

-Ursprüngliche Nachricht-
Von: Stephan Kühn [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 29. Juli 2004 12:04
An: Tomcat Users List
Betreff: RE: SSL Problem need Help!

Need still help!!

-Original Message-
From: Stephan Kühn [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 29. Juli 2004 11:32
To: Tomcat Users List
Subject: SSL Problem need Help!

Hallo,

 

i new with Tomcat and i use Tomcat 5.16 with j2re1.4.2_03 on Windows.

So i whnat to configure a server base ssl auth. So i create my cert with xca
my own ca and a serfver cert in pkcs12 format.

 

So when i try to setup https with webgui after restart the apache/tomcat
service, the service faild to start. Why evey 

 

Here is my server.xml

 

?xml version='1.0' encoding='utf-8'?

Server

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/

  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer value=30/

Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/

ResourceParams name=UserDatabase

  parameter

namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value

  /parameter

  parameter

namepathname/name

valueconf/tomcat-users.xml/value

  /parameter

/ResourceParams

  /GlobalNamingResources

  Service name=Catalina

Connector acceptCount=100 connectionTimeout=2
disableUploadTimeout=true port=8080 redirectPort=8443
maxSpareThreads=75 maxThreads=150 minSpareThreads=25

/Connector

Connector port=8009 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443

/Connector

Connector address=127.0.0.1 enableLookups=true
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12
keystorePass=test123 port=8553 redirectPort=8554 scheme=https
sslProtocol=TLS algorithm=SunX509 clientauth=false keypass=changeit
keystore=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keytype=PKCS12
protocol=TLS secure=true

  Factory
className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12
keystorePass=test123/

/Connector

Engine defaultHost=localhost name=Catalina

  Host appBase=webapps name=localhost

Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true/

  /Host

  Host name=kunde3

  /Host

  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm/

/Engine

  /Service

/Server

 

Have anybody i idea for me ??

 




-
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: SSL Problem need Help!

2004-07-29 Thread Stephan Kühn
Which log file should i show ??

-Original Message-
From: Gunnar Pörschke [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 29. Juli 2004 12:46
To: 'Tomcat Users List'
Subject: AW: SSL Problem need Help!

What is about your log files?

Do you have any logged information about that? 

-Ursprüngliche Nachricht-
Von: Stephan Kühn [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 29. Juli 2004 12:04
An: Tomcat Users List
Betreff: RE: SSL Problem need Help!

Need still help!!

-Original Message-
From: Stephan Kühn [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 29. Juli 2004 11:32
To: Tomcat Users List
Subject: SSL Problem need Help!

Hallo,

 

i new with Tomcat and i use Tomcat 5.16 with j2re1.4.2_03 on Windows.

So i whnat to configure a server base ssl auth. So i create my cert with xca
my own ca and a serfver cert in pkcs12 format.

 

So when i try to setup https with webgui after restart the apache/tomcat
service, the service faild to start. Why evey 

 

Here is my server.xml

 

?xml version='1.0' encoding='utf-8'?

Server

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/

  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer value=30/

Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/

ResourceParams name=UserDatabase

  parameter

namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value

  /parameter

  parameter

namepathname/name

valueconf/tomcat-users.xml/value

  /parameter

/ResourceParams

  /GlobalNamingResources

  Service name=Catalina

Connector acceptCount=100 connectionTimeout=2
disableUploadTimeout=true port=8080 redirectPort=8443
maxSpareThreads=75 maxThreads=150 minSpareThreads=25

/Connector

Connector port=8009 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443

/Connector

Connector address=127.0.0.1 enableLookups=true
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12
keystorePass=test123 port=8553 redirectPort=8554 scheme=https
sslProtocol=TLS algorithm=SunX509 clientauth=false keypass=changeit
keystore=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keytype=PKCS12
protocol=TLS secure=true

  Factory
className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12
keystorePass=test123/

/Connector

Engine defaultHost=localhost name=Catalina

  Host appBase=webapps name=localhost

Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true/

  /Host

  Host name=kunde3

  /Host

  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm/

/Engine

  /Service

/Server

 

Have anybody i idea for me ??

 




-
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: SSL Problem need Help!

2004-07-29 Thread Bill Barker
Edit the file by hand, and get rid of the 'keypass' attribute.  There is a
bunch of other stuff you could clean up, but it's mostly aliases of the same
attribute over and over.

Stephan Kühn [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hallo,



i new with Tomcat and i use Tomcat 5.16 with j2re1.4.2_03 on Windows.

So i whnat to configure a server base ssl auth. So i create my cert with xca
my own ca and a serfver cert in pkcs12 format.



So when i try to setup https with webgui after restart the apache/tomcat
service, the service faild to start. Why evey



Here is my server.xml



?xml version='1.0' encoding='utf-8'?

Server

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/

  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer value=30/

Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/

ResourceParams name=UserDatabase

  parameter

namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value

  /parameter

  parameter

namepathname/name

valueconf/tomcat-users.xml/value

  /parameter

/ResourceParams

  /GlobalNamingResources

  Service name=Catalina

Connector acceptCount=100 connectionTimeout=2
disableUploadTimeout=true port=8080 redirectPort=8443
maxSpareThreads=75 maxThreads=150 minSpareThreads=25

/Connector

Connector port=8009 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443

/Connector

Connector address=127.0.0.1 enableLookups=true
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12
keystorePass=test123 port=8553 redirectPort=8554 scheme=https
sslProtocol=TLS algorithm=SunX509 clientauth=false keypass=changeit
keystore=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12 keytype=PKCS12
protocol=TLS secure=true

  Factory
className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory
keystoreFile=D:\VoiceTrust_AG\Web\Tomcat\Certs\VTS.p12
keystorePass=test123/

/Connector

Engine defaultHost=localhost name=Catalina

  Host appBase=webapps name=localhost

Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_log. suffix=.txt timestamp=true/

  /Host

  Host name=kunde3

  /Host

  Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/

  Realm className=org.apache.catalina.realm.UserDatabaseRealm/

/Engine

  /Service

/Server



Have anybody i idea for me ??





-
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

Need help with Log4j and Tomcat5

2004-07-22 Thread Tonte Pouncil
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 

 


Need help on Servlet deployment on Tomcat 4.1.30

2004-07-20 Thread Weimin Ma
Hi!

I received the following error when I deployed
HelloCS6386.class under the directory below and then
try to access it using browser by typing in the
address field
http://localhost:10034/cs6386/serlvet/HelloCS6386:
+-- webapps
   +-- cs6386
  +-- WEB-INF
 +-- classes
+--  HelloCS6386.class

Can anyone tell me how to fix it?

Thanks a lot!
=
HTTP Status 404 - /cs6386/servlet/HelloCS6386

type Status report

message /cs6386/servlet/HelloCS6386

description The requested resource
(/cs6386/servlet/HelloCS6386) is not available.
Apache Tomcat/4.1.30
==



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



I need help about deploying a servlet in tomcat

2004-06-30 Thread Brian SJ Wong
Dear friends,
 
I just installed tomcat 5 in my machine. I put it in the the folder c:\Program 
Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet examples and they are 
ok. However, I would like to try my own servlet. I wrote the HelloWorld.java and put 
it in the folder C:\Program Files\Apache Group\Apache\Tomcat 
5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access it by 
http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat would compile 
the java code automatically. However, it didn't happen and I got the status code 404, 
stating that the servlet couldn't be found.
 
These are the stuff that I did
1. I set the environment variable CATALINA_HOME and CATALINA_BASE to c:\Program 
Files\Apache Group\Apache\Tomcat 5.0
2. I put the description of the servlet HelloWorld to the file web.xml in the webapp 
folder.
 
I really appreciate if I could get some helps. Thank you very much.
 
Cheers,
 
Brian



-
ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 


-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 

RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
Did you compile the .java file and place the .class file in that folder?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, June 30, 2004 11:08 PM
:: To: [EMAIL PROTECTED]
:: Subject: I need help about deploying a servlet in tomcat
:: 
:: Dear friends,
:: 
:: I just installed tomcat 5 in my machine. I put it in the the folder
c:\Program
:: Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet examples
and they
:: are ok. However, I would like to try my own servlet. I wrote the
HelloWorld.java and
:: put it in the folder C:\Program Files\Apache Group\Apache\Tomcat
:: 5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access it
by
:: http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat
would
:: compile the java code automatically. However, it didn't happen and I got
the status
:: code 404, stating that the servlet couldn't be found.
:: 
:: These are the stuff that I did
:: 1. I set the environment variable CATALINA_HOME and CATALINA_BASE to
:: c:\Program Files\Apache Group\Apache\Tomcat 5.0
:: 2. I put the description of the servlet HelloWorld to the file web.xml in
the webapp
:: folder.
:: 
:: I really appreciate if I could get some helps. Thank you very much.
:: 
:: Cheers,
:: 
:: Brian
:: 
:: 
:: 
:: -
:: ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself
:: 
:: 
:: -
::  ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
Also can you post the code in your web.xml where you set-up the servlet and
where did you place the web.xml?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, June 30, 2004 11:08 PM
:: To: [EMAIL PROTECTED]
:: Subject: I need help about deploying a servlet in tomcat
:: 
:: Dear friends,
:: 
:: I just installed tomcat 5 in my machine. I put it in the the folder
c:\Program
:: Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet examples
and they
:: are ok. However, I would like to try my own servlet. I wrote the
HelloWorld.java and
:: put it in the folder C:\Program Files\Apache Group\Apache\Tomcat
:: 5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access it
by
:: http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat
would
:: compile the java code automatically. However, it didn't happen and I got
the status
:: code 404, stating that the servlet couldn't be found.
:: 
:: These are the stuff that I did
:: 1. I set the environment variable CATALINA_HOME and CATALINA_BASE to
:: c:\Program Files\Apache Group\Apache\Tomcat 5.0
:: 2. I put the description of the servlet HelloWorld to the file web.xml in
the webapp
:: folder.
:: 
:: I really appreciate if I could get some helps. Thank you very much.
:: 
:: Cheers,
:: 
:: Brian
:: 
:: 
:: 
:: -
:: ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself
:: 
:: 
:: -
::  ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Brian SJ Wong
Dear Schalk,
 
When I tried to compile it there are  some errors which says the same things when i 
tried to compile the .java file from the servlet-examples folder. I guess I missed 
doing some configurations which I am not familiar with.

Schalk [EMAIL PROTECTED] wrote:
Did you compile the .java file and place the .class file in that folder?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, June 30, 2004 11:08 PM
:: To: [EMAIL PROTECTED]
:: Subject: I need help about deploying a servlet in tomcat
:: 
:: Dear friends,
:: 
:: I just installed tomcat 5 in my machine. I put it in the the folder
c:\Program
:: Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet examples
and they
:: are ok. However, I would like to try my own servlet. I wrote the
HelloWorld.java and
:: put it in the folder C:\Program Files\Apache Group\Apache\Tomcat
:: 5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access it
by
:: http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat
would
:: compile the java code automatically. However, it didn't happen and I got
the status
:: code 404, stating that the servlet couldn't be found.
:: 
:: These are the stuff that I did
:: 1. I set the environment variable CATALINA_HOME and CATALINA_BASE to
:: c:\Program Files\Apache Group\Apache\Tomcat 5.0
:: 2. I put the description of the servlet HelloWorld to the file web.xml in
the webapp
:: folder.
:: 
:: I really appreciate if I could get some helps. Thank you very much.
:: 
:: Cheers,
:: 
:: Brian
:: 
:: 
:: 
:: -
:: ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself
:: 
:: 
:: -
:: ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 

RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
Is you CLASSPATH set-up for Java? i.e. CLASSPATH=c:\j2sdk1.4.2\lib\tools.jar

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, June 30, 2004 11:30 PM
:: To: Tomcat Users List
:: Subject: RE: I need help about deploying a servlet in tomcat
:: 
:: Dear Schalk,
:: 
:: When I tried to compile it there are  some errors which says the same
things when i
:: tried to compile the .java file from the servlet-examples folder. I guess
I missed
:: doing some configurations which I am not familiar with.
:: 
:: Schalk [EMAIL PROTECTED] wrote:
:: Did you compile the .java file and place the .class file in that folder?
:: 
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.President
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:[EMAIL PROTECTED]
:: web: www.volume4.co.za
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or disclosed to any other party
:: without the permission of the sender. If you received this message in
error,
:: please notify me immediately so that I can correct and delete the
original
:: email. Thank you.
:: 
:: :: -Original Message-
:: :: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: :: Sent: Wednesday, June 30, 2004 11:08 PM
:: :: To: [EMAIL PROTECTED]
:: :: Subject: I need help about deploying a servlet in tomcat
:: ::
:: :: Dear friends,
:: ::
:: :: I just installed tomcat 5 in my machine. I put it in the the folder
:: c:\Program
:: :: Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet
examples
:: and they
:: :: are ok. However, I would like to try my own servlet. I wrote the
:: HelloWorld.java and
:: :: put it in the folder C:\Program Files\Apache Group\Apache\Tomcat
:: :: 5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access
it
:: by
:: :: http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat
:: would
:: :: compile the java code automatically. However, it didn't happen and I
got
:: the status
:: :: code 404, stating that the servlet couldn't be found.
:: ::
:: :: These are the stuff that I did
:: :: 1. I set the environment variable CATALINA_HOME and CATALINA_BASE to
:: :: c:\Program Files\Apache Group\Apache\Tomcat 5.0
:: :: 2. I put the description of the servlet HelloWorld to the file web.xml
in
:: the webapp
:: :: folder.
:: ::
:: :: I really appreciate if I could get some helps. Thank you very much.
:: ::
:: :: Cheers,
:: ::
:: :: Brian
:: ::
:: ::
:: ::
:: :: -
:: :: ALL-NEW Yahoo! Messenger - so many all-new ways to express
yourself
:: ::
:: ::
:: :: -
:: :: ALL-NEW Yahoo! Messenger - so many all-new ways to express
yourself
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: -
::  ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Wendy Smoak
 From: Brian SJ Wong [mailto:[EMAIL PROTECTED] 
 When I tried to compile it there are  some errors which says 
 the same things when i tried to compile the .java file from 
 the servlet-examples folder. I guess I missed doing some 
 configurations which I am not familiar with.

What did you type, and what error message did you get?  It's probably
just a CLASSPATH issue.

Then you need to configure your Servlet in web.xml.  You mentioned using
a URL with /servlet/ in it, you may be working from an old example that
assumes that the Invoker Servlet is enabled by default.  It isn't, and
it's just as well that you leave it off and learn to edit web.xml.  A
bit harder up front, but much better in the long run.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Brian SJ Wong
Well, I guess that I am totally lost:( This is the first time I use Tomcat and I don't 
know nothing about it. I already installed JDK and set the environment variable such 
as JAVA_HOME and set the class path very well. I used java before and every thing is 
fine. I am going to use the ROOT folder to store my servlets. There is a web.xml file 
in that folder and I only alter the information about the servlet that I am going to 
put, which is the HelloWorld. I only wrote the HelloWorld.java and put them in the 
../ROOT/WEB-INF/classes folder. Actually I also tried to put the HelloWorld.java to 
the ../Servlet-Examples/WEB-INF/classes. I was hoping that when I invoke the 
http://localhost:8081/servlet/HelloWorld, it will automatically compile the 
HelloWorld.java and make the class. I tried to read the tomcat documentation but I am 
still not be able to make any progress.
 
Please give me a thorough and step-by-step guidance. Thank you very much.
 
Brian
 


-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 

RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
When trying to compile your HelloWorld.java file what error do you get?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: Sent: Thursday, July 01, 2004 12:22 AM
:: To: Tomcat Users List
:: Subject: RE: I need help about deploying a servlet in tomcat
:: 
:: Well, I guess that I am totally lost:( This is the first time I use
Tomcat and I don't
:: know nothing about it. I already installed JDK and set the environment
variable such
:: as JAVA_HOME and set the class path very well. I used java before and
every thing
:: is fine. I am going to use the ROOT folder to store my servlets. There is
a web.xml
:: file in that folder and I only alter the information about the servlet
that I am going to
:: put, which is the HelloWorld. I only wrote the HelloWorld.java and put
them in the
:: ../ROOT/WEB-INF/classes folder. Actually I also tried to put the
HelloWorld.java to
:: the ../Servlet-Examples/WEB-INF/classes. I was hoping that when I invoke
the
:: http://localhost:8081/servlet/HelloWorld, it will automatically compile
the
:: HelloWorld.java and make the class. I tried to read the tomcat
documentation but I
:: am still not be able to make any progress.
:: 
:: Please give me a thorough and step-by-step guidance. Thank you very much.
:: 
:: Brian
:: 
:: 
:: 
:: -
::  ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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



RE: I need help about deploying a servlet in tomcat

2004-06-30 Thread Schalk
By this I mean compiling it outside of Tomcat i.e. from command line etc.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Schalk [mailto:[EMAIL PROTECTED]
:: Sent: Thursday, July 01, 2004 12:33 AM
:: To: 'Tomcat Users List'
:: Subject: RE: I need help about deploying a servlet in tomcat
:: 
:: When trying to compile your HelloWorld.java file what error do you get?
:: 
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.President
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:[EMAIL PROTECTED]
:: web: www.volume4.co.za
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or disclosed to any other party
:: without the permission of the sender. If you received this message in
error,
:: please notify me immediately so that I can correct and delete the
original
:: email. Thank you.
:: 
:: :: -Original Message-
:: :: From: Brian SJ Wong [mailto:[EMAIL PROTECTED]
:: :: Sent: Thursday, July 01, 2004 12:22 AM
:: :: To: Tomcat Users List
:: :: Subject: RE: I need help about deploying a servlet in tomcat
:: ::
:: :: Well, I guess that I am totally lost:( This is the first time I use
:: Tomcat and I don't
:: :: know nothing about it. I already installed JDK and set the environment
:: variable such
:: :: as JAVA_HOME and set the class path very well. I used java before and
:: every thing
:: :: is fine. I am going to use the ROOT folder to store my servlets. There
is
:: a web.xml
:: :: file in that folder and I only alter the information about the servlet
:: that I am going to
:: :: put, which is the HelloWorld. I only wrote the HelloWorld.java and put
:: them in the
:: :: ../ROOT/WEB-INF/classes folder. Actually I also tried to put the
:: HelloWorld.java to
:: :: the ../Servlet-Examples/WEB-INF/classes. I was hoping that when I
invoke
:: the
:: :: http://localhost:8081/servlet/HelloWorld, it will automatically
compile
:: the
:: :: HelloWorld.java and make the class. I tried to read the tomcat
:: documentation but I
:: :: am still not be able to make any progress.
:: ::
:: :: Please give me a thorough and step-by-step guidance. Thank you very
much.
:: ::
:: :: Brian
:: ::
:: ::
:: ::
:: :: -
:: ::  ALL-NEW Yahoo! Messenger - so many all-new ways to express
yourself
:: 
:: 
:: 
:: -
:: 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   5   6   7   8   >