RE: keystore not found in tomcat-3.3.1-dev

2002-04-16 Thread IS400 ABB

Hi
Thanks for the input, but it didn't help! I've tried many different ways, 
but the thing it comes down to, in my opinion, is that it was a bug in 
tomcat 3.3.1-dev (nightly build downloaded Jan 14, 2002), which caused the 
error whenever the keystore was specified. As I said before, it works fine 
whenever I don't specify the keystore attribute in server.xml. It also works 
on a Win2000 server, but not on True64 Unix4F.

Although, I'm happy now, because I downloaded tomcat 3.3.1-final and it 
works fine on this version.
/Per

>Try:
>
> keystore="/usr/cert/.keystore"
>
>and see if that works.  Its hard to tell from the error output
>if this is the only problem.  Hopefully, it is.
>
>Cheers,
>Larry

_
MSN Photos är det enklaste sättet att dela ut och skriva ut foton: 
http://photos.msn.se/Support/WorldWide.aspx


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




keystore not found in tomcat-3.3.1-dev

2002-04-15 Thread IS400 ABB

I'm running Tomcat-jakarta-3.3.1-dev with SSL.
Problem: How to get SSL working when I specify the keystore path in 
server.xml?

I have created a keystore file (.keystore) with the following command:
keytool -genkey -alias tomcat -keyalg RSA -keystore /usr/cert/.keystore

In server.xml i then setup the following connector:


The error of starting Tomcat can be seen below!
It works fine when I create a .keystore file in the root directory (current 
user home dir)!

Output from starting Tomcat:
Using classpath: /usr/local/jakarta-tomcat-3.3.1-dev/bin/../lib/tomcat.jar
Using JAVA_HOME: /usr/opt/java131
Using TOMCAT_HOME: /usr/local/jakarta-tomcat-3.3.1-dev
ragge# 2002-04-15 12:37:59 - ServerXmlReader: 
Config=$TOMCAT_HOME/conf/server.xml
2002-04-15 12:37:59 - PathSetter: home=/usr/local/jakarta-tomcat-3.3.1-dev
2002-04-15 12:38:00 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-127.0.0.1.xml
2002-04-15 12:38:00 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-admin.xml
2002-04-15 12:38:00 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-examples.xml
2002-04-15 12:38:00 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-is400.xml
2002-04-15 12:38:00 - AutoWebApp: Loaded from config: DEFAULT:/admin
2002-04-15 12:38:00 - AutoWebApp: Auto-Adding DEFAULT:/
2002-04-15 12:38:00 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-04-15 12:38:00 - ContextManager: Tomcat configured and in stable state
2002-04-15 12:38:01 - ContextManager: Adding  DEFAULT:/admin
2002-04-15 12:38:01 - ContextManager: Adding  DEFAULT:/examples
2002-04-15 12:38:01 - ContextManager: Adding  DEFAULT:/admin
2002-04-15 12:38:01 - ContextManager: Adding  DEFAULT:/ROOT
EmbededTomcat: Init time 8591
2002-04-15 12:38:03 - Http10Interceptor: Starting on 80
Guessed home=/usr/local/jakarta-tomcat-3.3.1-dev
java.lang.reflect.InvocationTargetException: 
org.apache.tomcat.core.TomcatException: Root cause -
//.keystore (No such file or directory)
at org.apache.tomcat.modules.server.PoolTcpConnector.engineStart (pc 
102)
at org.apache.tomcat.core.ContextManager.start   (pc 37)
at org.apache.tomcat.startup.EmbededTomcat.start (pc 29)
at org.apache.tomcat.startup.EmbededTomcat.execute1  (pc 72)
at org.apache.tomcat.startup.EmbededTomcat$1.run (pc 4)
at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run 
(pc 4)
at 
java.security.AccessController.doPrivileged(java.security.PrivilegedExceptionAction,jav
a.security.AccessControlContext) (AccessController.java)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged (pc 52)
at org.apache.tomcat.startup.EmbededTomcat.execute   (pc 20)
at java.lang.reflect.Method.invoke (Method.java)
at org.apache.tomcat.util.IntrospectionUtils.execute (pc 58)
at org.apache.tomcat.startup.Main.execute(pc 138)
at org.apache.tomcat.startup.Main.main   (pc 14)


Thank you in advance for any comments!
/Per


_
Hämta MSN Explorer kostnadsfritt på http://explorer.msn.se/intl.asp


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 3.3, req.getRemoteAddr() - only returns 127.0.0.1

2002-01-13 Thread IS400 ABB


Background:
I'm working on a utility to administer logged on clients for a power 
monitoring system, using java applets/servlets/JSP. Each clients IP address, 
user name, logon date are displayed for the administrator. Recently, I 
upgraded from Tomcat 3.2.3 standalone to Tomcat 3.3 standalone, running on 
Win2000/NT4.0 and Unix Tru64 version 4 and 5.

Problem:
The clients IP addresses are not displayed correctly using 
req.getRemoteAddr. It only returns 127.0.0.1 for all clients (and localhost 
from getRemoteHost).

This worked fine in Tomcat 3.2.3. It also works fine using Apache 1.2 and 
Tomcat together (both with mod_jserv for Tomcat 3.2.3 and mod_jk for Tomcat 
3.3), but I want to run Tomcat standalone. As a next step, I will try this 
on Tomcat 4.0.1.

I have studied the Tomcat manuals, looked in this forum and compared the 
configuration in 3.2.3 with 3.3 without finding any clue to fix this!

Any Ideas?
Thanks in advance
/Per


_
Chatta med vänner online, prova MSN Messenger: http://messenger.msn.se


--
To unsubscribe:   
For additional commands: 
Troubles with the list: