Re: SSL

2002-09-05 Thread Øyvind Vestavik


That's right.
I use a stand-alone version and am using SSL to encrypt
requests and responses using a self-signed certificate created using the
keytool from Sun for development of my servlets. This should be fairly
well documented in the documentation.

Øyvind Vestavik
Norwegian University of Technology and Science.

On Wed, 4 Sep 2002, neal wrote:

 I am 99% sure that SSL can be setup directly with Tomcat, is this correct?

 I mean I've even looked at the connector node in the server.xml file and so
 it seems pretty obvious to me but the tech at my ISP is insisting he
 believes it is necessary to use Apache as the http server and apply the SSL
 there.

 Since I've never done this before I thought I'd double check with the
 experts before escalating the argument.

 That said, you can apply the SSL directly to Tomcat, right?

 :)

 Thanks.
 Neal


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



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




Re: Redirect!

2002-08-22 Thread Øyvind Vestavik


Create a url and redirect:

URL url = new Url(http:\\myserver.com);
response.sendRedirect(url.toString());

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Thu, 22 Aug 2002, Alexander Schmidt wrote:

 Hello !
 I want to redirect an URL, but I don´t know how! Has anyone an idea? I use
 Tomcat4.0.1.

 Thanks
  A. Schmidt


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



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




Re: Fw: Redirect with TOMCAT4.01?

2002-08-22 Thread Øyvind Vestavik


Have you tried modifying web.xml?

I haven't tried it, but how about:
(I don't know if this is legal though..)

web-app
servlet
servlet-namemyservlet/servlet-name
servlet-classcom.servlets.myServlet/servlet-class
/servlet
servlet-mapping
servlet-namemyservlet/servlet-name
url-patternurl1/url-pattern
/servlet-mapping
servlet-mapping
servlet-namemyservlet/servlet-name
url-patternurl2/url-pattern
/servlet-mapping
/web-app

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Thu, 22 Aug 2002, Alexander Schmidt wrote:


 - Original Message -
 From: Alexander Schmidt
 To: Tomcat Users List
 Sent: Thursday, August 22, 2002 11:29 AM
 Subject: Redirect with TOMCAT4.01?


 Hello!
 I want to redirect an URL for example /opencms/opencms/colangamma to /colangamma/. 
So when I type in colangamma he
 redirect it to /opencms/opencms/colangamma. I want this to do with TOMCAT 4.0.1. Is 
there any possibility?

 Thanks
  A.Schmidt



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




Re: session timeout

2002-08-15 Thread Øyvind Vestavik


Are you sure you wan't your sessions to never timeout??
Over time this could be a substantial load on your server..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Wed, 14 Aug 2002, Koes, Derrick wrote:

 How closely does Tomcat follow the servlet specification concerning web.xml?



 I added the following to my web.xml, but the session seems to timeout
 immediately (0 minutes).

   session-config

 session-timeout0/session-timeout

   /session-config



 However, the servlet 2.3 spec states:



 If the timeout is 0 or less, the container ensures the default behaviour of
 sessions is never to time out.



 The bottom line is I need to know how to make my webapp's session never
 timeout.

 Can anyone help?




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




RE: just one edit.

2002-05-21 Thread Øyvind Vestavik


I don't know if you can set some property in web.xml or system.xml of
tomcat to only allow only one user to access a web-app or some other kind
of resource at a time. I shouldn't think
there were as this is contactory to what people want a webserver to do.

But you could modify your webapp or bean or whatever to not let more than
one user edit some data at the time using context variables.
When some administrator enters the restricted code part (eg the part that
modifies data) a context variable (for instance called busy) is set, and
when he leaves the code part, or logs out or whatever, this context
variable is deleted. When the second administrator tries to access the
restricted code, he will check to see if the busy-variable is set and if
it is is rejected. Else he can enter.

However. You should read about concurrency problems first. (For instance
in a good book about Operating Systems) as this kind of monitoring has
many problems attached to it, and making a fail safe system like this is
hard at the best..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Mon, 20 May 2002, Emilio Miranda wrote:

 yes,
 there is a jsp. I have a form. It is an web application (Servlets, JSP ,
 etc )to manage users but it could have two or more administrators so, my
 trouble is when two want to modify the data of one user at the same time-
 For example in other applications I saw message like sorry this resource is
 used by other user or something like that.

 Thanks a lot.

 -Mensaje original-
 De: Øyvind Vestavik [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes, 20 de mayo de 2002 14:45
 Para: Tomcat Users List
 Asunto: RE: just one edit.



 Just to clear things up a bit:

 What kind of web resource are we talking about??
 Is java in the background??

 Øyvind

 Øyvind Vestavik
 Øvre Møllenberggt 44b
 7014 Trondheim
 [EMAIL PROTECTED]
 41422911

 On Mon, 20 May 2002, Emilio Miranda wrote:

  Hi, really apreciate your help. but What I mean is a case in web.
  It is:
 
  administrator A login to a site and modify data of some user
 
  at the same time administrator B are modifying the data of the same user.
 
  I would like some message for administrator A, something like a sorry you
  cant change these data right now .
 
  So I want to know if Tomcat could help me in some way
 
  Thanks a lot!
 
  -Mensaje original-
  De: Mike Jackson [mailto:[EMAIL PROTECTED]]
  Enviado el: lunes, 20 de mayo de 2002 13:32
  Para: Tomcat Users List
  Asunto: RE: just one edit.
 
 
  You'll probably want to synchronize on a static object I think.  Something
  like this:
 
  public class WhatEver {
  protected static Object lock = new Object();
  public void doStuff() {
  sychronized( lock ) {
  // do protected stuff here
  }
  }
  }
 
  --mikej
  -=-
  mike jackson
  [EMAIL PROTECTED]
 
   -Original Message-
   From: Emilio Miranda [mailto:[EMAIL PROTECTED]]
   Sent: Monday, May 20, 2002 11:15 AM
   To: Tomcat Users List
   Subject: just one edit.
  
  
  
   Hello, I am sorry if that is an offtopic.
  
   How can I be sure that only one user is changing some data at the time?
   could Tomcat help me on that?
   I mean , supouse that one user change a name an another try to
   change at the
   same time.
  
   Thanks a lot!
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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


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



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




off topic dialog box

2002-05-20 Thread Øyvind Vestavik


I'm developing a prototype of a serverprogram with a servlet front end.
halfway through the execution of a servlets doGet() I need to prompt the
user for some info. How do i do this??

Pointers to resources would be much appreciated

Øyvind

Øyvind Vestavik
[EMAIL PROTECTED]



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




Re: just one edit.

2002-05-20 Thread Øyvind Vestavik


I'm not sure what you mean, but java has a keyword that makes a method
function as a monitor (At least lightweight)
The keyword is syncronized

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Mon, 20 May 2002, Emilio Miranda wrote:


 Hello, I am sorry if that is an offtopic.

 How can I be sure that only one user is changing some data at the time?
 could Tomcat help me on that?
 I mean , supouse that one user change a name an another try to change at the
 same time.

 Thanks a lot!


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



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




RE: just one edit.

2002-05-20 Thread Øyvind Vestavik


Just to clear things up a bit:

What kind of web resource are we talking about??
Is java in the background??

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Mon, 20 May 2002, Emilio Miranda wrote:

 Hi, really apreciate your help. but What I mean is a case in web.
 It is:

 administrator A login to a site and modify data of some user

 at the same time administrator B are modifying the data of the same user.

 I would like some message for administrator A, something like a sorry you
 cant change these data right now .

 So I want to know if Tomcat could help me in some way

 Thanks a lot!

 -Mensaje original-
 De: Mike Jackson [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes, 20 de mayo de 2002 13:32
 Para: Tomcat Users List
 Asunto: RE: just one edit.


 You'll probably want to synchronize on a static object I think.  Something
 like this:

   public class WhatEver {
   protected static Object lock = new Object();
   public void doStuff() {
   sychronized( lock ) {
   // do protected stuff here
   }
   }
   }

 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]

  -Original Message-
  From: Emilio Miranda [mailto:[EMAIL PROTECTED]]
  Sent: Monday, May 20, 2002 11:15 AM
  To: Tomcat Users List
  Subject: just one edit.
 
 
 
  Hello, I am sorry if that is an offtopic.
 
  How can I be sure that only one user is changing some data at the time?
  could Tomcat help me on that?
  I mean , supouse that one user change a name an another try to
  change at the
  same time.
 
  Thanks a lot!
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

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


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



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




Re: Query

2002-05-18 Thread Øyvind Vestavik


What happens if you just enter http://localhost:8080 ??

If entering the url without the /greeting returns a page saying
If you're seeing this page via a web browser, it means you've setup
Tomcat successfully. Congratulations! then everything is allright..

Entering http://localhost:8080/greeting means that you are requesting a
servlet/webapp called greeting that you have not installed or made yet..

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Fri, 17 May 2002, Balaji Ganapathiraman wrote:


 Sir

 I have installed tomcat 4.0 in my PC.

 But now when i am typing http://localhost:8080/greeting I am getting an error.

 The error statement is The requested resource (/greeting) is not available.

 Kindly advice me suitably and help me out of this problem.



 Eagerly awaiting your reply

 Balaji


 Balaji G

 -
      Yahoo! Autos - everything you wanted to know about cars and bikes


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




Re: Help me: URGENT!!!

2002-05-03 Thread Øyvind Vestavik


I'm no expert, but in the request from the e-commerce server you could set
an additional parameter with the IP of this that machine, something like
http://server2.com/mypaymentservlet?requestingServer=129.241.345

Then you could retrieve this attribute in the servlet on the payment
gateway with
String ip = request.getAtttribute(requestingServer);

That is if you can modify things on the e-commerce server..

Maybee there is a better way, but I don't see it straight away..

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Fri, 3 May 2002, Laura wrote:

 Hi all,

 please help me!! I'll explain you my problem.

 I have a servlet which has to recognize two ip addresses. If the servlet
 finds that the request is from the IP1 (server1), it sets a shop login
 variable to x, else if the request IP is IP2 (server2) it sets the shop
 login to .
 The problem is this: the ecommerce page is on a machine 1 while the pay
 gateway is on the machine2 (my servlets).
 The user buys something on the machine 1 and when he has to pay he is
 redirected to my servlet on machine 2.

 I use this instructions for distinguishing the request IP:

 String senderIP = request.getRemoteAddr();

 BUT THIS IS THE HOST IP AND NOT THE IP OF MY SERVER (server1 or server2 with
 two shop login different).

 How can I know the request ip of my server?


 Please help me!


 Thanks for your help


 Laura

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



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




Re: xerces, Parser xml / tomcat4

2002-04-24 Thread Øyvind Vestavik


I reckon you can do it the standard way??

 Include xerces 2 in your
classpath for compiling purposes, copy the jar into  your webapps lib
directory  (create directory lib directly under web-inf dir if not already
there) or common\lib if you want xerces2 to be available for all webapps
under this instance of tomcat.
The jar has to be in one of these directories to prevent run-time errors
when using xerces. (Tomcat classloader has to find them)
Restart Tomcat if nessesary.

There might be a problem building a war when xerces2.jar is in common\lib
as it probably isn't including by the jar tool when you build it.
So when you deploy the war to another webserver, if that webserver doesn't
have xerces2, you could get a run-time Exception.
Including it in mywebapp\web-inf\lib, increases the size of the jar but
you are always sure xerces is found by the servers classloader.

Hope this helps. If its to basic, than my appologies..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Wed, 24 Apr 2002 [EMAIL PROTECTED] wrote:

 Hi,
 I want to use xerces2 in order to parse xml. How can i do that?
 I 've download and unzip files from xml-apache.org but I don't know how I
 can use it.
 Help!!
 Thanks a lot.
 Jc


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



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




Re: Any mod_webapp + user-data-constraint gotchas in 4.0?

2002-04-22 Thread Øyvind Vestavik


I am way over my head here, but I once made a servlet whos methods should
only bee accessed over SSL. I Just made a secure port on 8443.
In my code I wrote

if (!request.isSecure)
   //make java.net.Url (using request.getHost() .getServletContext and so
 on (all though I didn't find a dynamic way to find the port of the
 server running SSL)
   redirect(myURL.toString())
Else
   //request is made over https. Proceed

Probably didn't answer your question, but..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Fri, 19 Apr 2002, Cavan Morris wrote:

 Hey guys,
 I'm getting ready to go live with my webapp and need to ensure confidentiality on my 
credit card billing page.

 I'm running Tomcat 4.0.2 on Redhat 7.2 with apache 2.0.32 and mod_webapp 1.0.2.  I 
just got my ssl certificate from verisign and set up apache to require ssl on port 
443.  HTTPS request to the site work great.
 I am trying to user the following security constraint in my web.xml to require ssl 
in certain areas.

 security-constraint
 web-resource-collection
 web-resource-nameSSL Area/web-resource-name
 url-pattern/user/*/url-pattern
 /web-resource-collection
 user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 /security-constraint

 I also set the redirect port on my warp connector like so in server.xml
 Connector className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=false redirectPort=443
  acceptCount=10 debug=0/

 The result...  Absolutely Nothing.
 The changes have no discernable effect, /user/* is not redirected.

 It may be important to note that I also have a standalone HTTP connector running 
that does is set to redirect to port 8443 but the site is being accessed through the 
warp connector.

 What am I missing here??  Any thoughts on this would be very helpful.
 -Cavan Morris


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



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




Re: Security

2002-04-22 Thread Øyvind Vestavik


The easy way in a servlet
:
Make a login servlet where the doGet() just prints a login form. The
servlet has to be accessed over https so that noone can pick
username/password. To ensure this you can make a test
in the doGet() and doPost():
if request.isSecure()...

Now you have the username and password. Do whatever you wan't with it, but
to know one user from another use session variables.

HttpSession session= request.getSession(true);
check the username password against the username password in the
sessionvariables. If not there you can set them.

Sessionvariables time out after 30 min (configurable in server.xml?)

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Mon, 22 Apr 2002, Vladimir Vanyukov wrote:

 I have seen this question here many times and have seen many answers but
 most of them never really ANSWERED the question. So I figured I'd ask
 one more time. Is there anyway to programmatically authenticate users?

 Example:
 If I have s simple username/password form somewhere on an unprotected
 page, how do I use that information (assuming the user filled it out and
 submitted it) to allow him to view protected pages?


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



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




documentation location

2002-04-22 Thread Øyvind Vestavik


Where can i find javadoc for this package??
package javax.mail.*

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911




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




Re: AW: documentation location

2002-04-22 Thread Øyvind Vestavik


Thanks. Should have found it myself. Stupid, but thanks anyway..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Mon, 22 Apr 2002, Ralph Einfeldt wrote:


 http://java.sun.com/products/javamail/1.2/docs/javadocs/index.html

  -Ursprüngliche Nachricht-
  Von: Øyvind Vestavik [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 22. April 2002 13:36
  An: Tomcat Users List
  Betreff: documentation location
 
 
 
  Where can i find javadoc for this package??
  package javax.mail.*
 

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



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




RE: web.xml editor

2002-04-19 Thread Øyvind Vestavik


XML Spy is the best I know of..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911



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




Ports used???

2002-03-13 Thread Øyvind Vestavik


I am running Tomcat on a unix testserver (solaris 6.2) which several
people have access to and use for their own applications. There is no
authority administrating the ports
used, and I would like to scan the ports of the machine to see wich ones
are in use. Is there a unix utility i can use for this.
Im not planning to break in anywhere.. :-)

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911



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




Placing of jar files times 3

2002-02-21 Thread Øyvind Vestavik


I have a jar file that my webapp is dependent of. I have placed this file
in the jakarta-tomcat/lib directory, and that works fine, but can I place
it somewhere in my webapps root directory so that only my webapp can
access this jar?? I think I may have a potential naming collision going..

Are jars placed in the jakarta-tomcat/lib directory distributed with a war
file I make of my webapp??

Are jars that I place in the %JAVA-HOME%/jre/lib/ext directory distributed
with a war file I make of my webapp??

Thanks in advance.

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
Norway
[EMAIL PROTECTED]
(+47)41422911
Norwegian University of Science and Technology



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




dbxml with tomcat

2002-02-21 Thread Øyvind Vestavik


This may not be the right forum, but...

System prop:
OS: Win2000pro
ServletContainer: Tomcat4.0.1 (Standalone)
db Server : dbxml 1.0b4

I have some servlets collection info from xml-files stored in
dbxml/xindice  via
XML:DB api. To get these servlet running and accepting XMLDBException and
other classes from the api implementation shipped with dbxml by Tomcat I
have placed the 'dbXML.jar' and the 'xmldb.jar' in
{JAVA-HOME}/jre/lib/ext.

The problem is that as soon as the dbXML.jar is in this directory the bat
files shipped with dbxml don't work anymore. (No problems with
'xmldb.jar', though, but I need them both..) I can't start or shutdown the
db
server and I don't have access to the command tools.
But the db server itself seems to be running smoothly if it is already
started before i add the 'dbxml.jar' to {JAVA-HOME}/jre/lib/ext.

Has anyone had any experience with this, and does anyone have a workaround
for it?? Or is this just a bug i have to live with?

I have tried to place these files in the 'jakarta-tomcat/lib' directory
and also in the 'jakarta-tomcat/common/lib'directory,
but that didn't work at all. Tomcat still trew javax.ServletException when
it didn't find them in the {JAVA-HOME}/jre/lib/ext...

Hope someone can enlighten me..

Øyvind Vestavik
Øvre M=F8llenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911




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




Re: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2

2002-02-21 Thread Øyvind Vestavik


Maybe I'm wrong and maybe I just misunderstood, but I think your os will
prevent you from having 2 applications listening to the same port.
Thats why you get the 404 http error. The request will go to the
application that was first to bind to the port, i think.

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Thu, 21 Feb 2002, Bigelow, Mark wrote:

 I can get to the servlets on port 8080.  How do I change it to use port 80,
 while still using IIS on port 80?
 The Redirector.dll is in place and functioning.  AJP13 is functioning, I
 think.  Please help!
 Mark

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



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




classpath-problem??

2002-02-20 Thread Øyvind Vestavik


I'm building a servlet which is accessing a dbxm/Windice database via a
separat class (loginTest.java). Connecting to Xindice means I
have to use classes contained in 'xmldb.jar' and 'dbxml.jar'.

These jar files are referenced from my classpath. Both the class
(loginTest.java) and the servlet calling it compiles ok, and can be run
from command but as I try to let the serlet create the separat class a
javax.ServletException is thrown.

The message shown is this :
   java.lang.NoClassDefFoundError : org/xmldb/api/base/XMLDBException.

It seems like this runtime error is due to that the servlet engine cant
find the Exception class, because it doesn't have access to the
classpath? Where should the jar files be places and what effect will
that have on making a war-file of my application???

Probabaly a common problem???

Øyvind Vestavik

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Wed, 20 Feb 2002, Larry Isaacs wrote:

 The stack trace doesn't show any classes coming from your
 com or dir directories under WEB-INF/classes.  Is this
 the same problem?  Where are each of the kitabe classes
 located?

 Cheers,
 Larry

  -Original Message-
  From: Amine AMAR [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 19, 2002 4:11 PM
  To: Tomcat Users List
  Subject: Re: classes visibility in the WEB-INF dir
 
 
  Thank's for your reply, but my web application has no
  particular definition. The stack trace is as follows (root cause):
 
  java.lang.NoClassDefFoundError: kitabe/SearchUtilities
  at
  kitabe.dal.home.BookHome.rechercheMulticriteres(BookHome.java:485)
  at
  kitabe.bl.Catalogue.rechercheMulticriteres(Catalogue.java:231)
  at org.apache.jsp.results$jsp._jspService(results$jsp.java:160)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
  (JspServlet.java:202)
  at
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
  .java:382)
  at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
  er(ApplicationFilterChain.java:247)
  at
  org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
  cationFilterChain.java:193)
  at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
  rapperValve.java:243)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
  at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
  at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
  org.apache.catalina.core.StandardContextValve.invoke(StandardC
  ontextValve.java:201)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:566)
  at
  org.apache.catalina.valves.CertificatesValve.invoke(Certificat
  esValve.java:246)
  at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:564)
 
  If you can just have a look at it and tell me if you see
  anything wrong. The logs contain just the same info.
 
  Thank's again
 
  Amine
 
  - Original Message -
  From: Larry Isaacs [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Tuesday, February 19, 2002 9:01 PM
  Subject: RE: classes visibility in the WEB-INF dir
 
 
   This error implies that a class that needs to see your
   com and/or dir classes is being loaded in a parent of
   the web application's class loader.  This parent
   classloader is at or between the classpath classloader
   and the web application classloader.  The stacktrace
   should give you a clue as to who this class is.
  
   Cheers,
   Larry
  
-Original Message-
From: Amine AMAR [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 3:56 PM
To: Tomcat Users List
Subject: classes visibility in the WEB-INF dir
   
   
Hi all,
   
I've been using TC for a couple of years, and I have a fancy
little question :)
   
I have two directories (com and dir) in the WEB-INF\classes
directory of an application context. The classes in dir are
not visible (noClassDefFoundError).
When I put the path of my WEB-INF\classes in the startup
classpath of catalina.bat, the classes are visible.
   
Does anyone ave a clue why?
   
PS: I have already double checked all spelling of directories
and hierarchies for errors.
   
Thank's all
   
Amine
   
  
   --
   To unsubscribe:
  mailto:[EMAIL PROTECTED]
   For additional commands:
  mailto:[EMAIL PROTECTED]
   Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED

RE: classpath-problem??

2002-02-20 Thread Øyvind Vestavik


I found that it worked when I placed the jar-files in the
JAVA-HOME/jre/lib/ext.
I'm still uncertain of hoe this will work when packaging in a war file,
but thanks to for all replies.

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Wed, 20 Feb 2002, Larry Isaacs wrote:

 It's not that the container can't see the class, but that
 a class is being loaded that depends on XMLDBException.
 That class is being loaded in a classloader that can't
 see XMLDBExceptions. Unfortunately, this problem class
 that depends on XMLDBException may be many levels of
 dependency from the original class that is being loaded.
 This can make it very difficult to track down.  The
 stack trace can but doesn't always help much.

 Since XMLDBException would appear to be in the classpath
 classloader, the problem class would likely be in the
 extensions classloader, i.e. the jre/lib/ext directory.
 See if there are any jars there that might have depencencies
 on classes in the two jars you mention.

 Hope this helps.

 Cheers,
 Larry

  -Original Message-
  From: Øyvind Vestavik [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 20, 2002 8:47 AM
  To: Tomcat Users List
  Subject: classpath-problem??
 
 
 
  I'm building a servlet which is accessing a dbxm/Windice
  database via a
  separat class (loginTest.java). Connecting to Xindice means I
  have to use classes contained in 'xmldb.jar' and 'dbxml.jar'.
 
  These jar files are referenced from my classpath. Both the class
  (loginTest.java) and the servlet calling it compiles ok, and
  can be run
  from command but as I try to let the serlet create the separat class a
  javax.ServletException is thrown.
 
  The message shown is this :
 java.lang.NoClassDefFoundError : org/xmldb/api/base/XMLDBException.
 
  It seems like this runtime error is due to that the servlet
  engine cant
  find the Exception class, because it doesn't have access to the
  classpath? Where should the jar files be places and what
  effect will
  that have on making a war-file of my application???
 
  Probabaly a common problem???
 
  Øyvind Vestavik
 
  Øyvind Vestavik
  Øvre Møllenberggt 44b
  7014 Trondheim
  [EMAIL PROTECTED]
  41422911
 
  On Wed, 20 Feb 2002, Larry Isaacs wrote:
 
   The stack trace doesn't show any classes coming from your
   com or dir directories under WEB-INF/classes.  Is this
   the same problem?  Where are each of the kitabe classes
   located?
  
   Cheers,
   Larry
  
-Original Message-
From: Amine AMAR [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 4:11 PM
To: Tomcat Users List
Subject: Re: classes visibility in the WEB-INF dir
   
   
Thank's for your reply, but my web application has no
particular definition. The stack trace is as follows (root cause):
   
java.lang.NoClassDefFoundError: kitabe/SearchUtilities
at
kitabe.dal.home.BookHome.rechercheMulticriteres(BookHome.java:485)
at
kitabe.bl.Catalogue.rechercheMulticriteres(Catalogue.java:231)
at org.apache.jsp.results$jsp._jspService(results$jsp.java:160)
at
   
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:382)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
er(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
rapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
at
   
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardC
ontextValve.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(Certificat
esValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564)
   
If you can just have a look at it and tell me if you see
anything wrong. The logs contain just the same info.
   
Thank's again
   
Amine
   
- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users

Re: Tomcat 4.0.1 SSL experts, please help.

2002-02-13 Thread Øyvind Vestavik


I think you should be able to define two SSL cennectors in the same server
instance. You must of course use different port numbers for the two
connector entries in the server.xml file. Another option if this doesn't
work is of course to
install two servers on the host and define a ssl connector in both
server.xml file. Just remember that the no two applications can listen to
the same port, so for one of the instances you have to change the default
8080 port for non-SSL connections and make sure the SSL connectors listen
to different ports. The two servers should be running in different
prosesses and the only collisions that should occur is port number
assignment.

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Thu, 7 Feb 2002, n wrote:

 I have two separate security certificates, one for each virtual host. The
 tomcat documentation states, ... it is therefore not possible to assign
 multiple certificates to a single IP address. However, this box that I
 have tomcat on has two IP addresses. Therefore, I should be able to run
 both virtual hosts with their own respective security certificates together
 in the same tomcat instance. I'm unsure of how I would configure my
 server.xml file to bind each virtual host to it's own IP if it is at all
 possible. Does anyone have an idea of how to do this without using Apache
 to take care of SSL? Thanks for any help. Below is my current server.xml file.

 Service name=Tomcat-Standalone
 Connector className=org.apache.catalina.connector.http.HttpConnector
 port=80 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=443
 acceptCount=10 debug=0 connectionTimeout=6/
 Connector className=org.apache.catalina.connector.http.HttpConnector
 port=443 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0 scheme=https secure=true
 Factory className=org.apache.catalina.net.SSLServerSocketFactory
 clientAuth=false protocol=TLS/
 /Connector
 Engine name=Standalone defaultHost=localhost debug=0
 Host name=localhost debug=0 appBase=webapps unpackWARs=true /
 Host name=www.mydomain1.com appBase=webapps
 Context path=
 docBase=domain1
 crossContext=true
 debug=0
 reloadable=false 
 /Context
 /Host
 Host name=www.mydomain2.com appBase=webapps
 Context path=
 docBase=domain2
 crossContext=true
 debug=0
 reloadable=false 
 /Context
 /Host


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



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




Re: keytool -keygen questions

2002-02-07 Thread Øyvind Vestavik


I don't know about Red hat, but I use unix and win2000
On unix it is in the root directory of your home area, and on Win2000 it
is in the documents and settings directory under your profile.
Sorry I don't know about red hat..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Thu, 7 Feb 2002, chad kellerman wrote:

 Hello again,

   Ok this may sound like a dumb questions.  But I have been all thru the 
directories and can not find it.

  I am running rad hat linux.  I ran $JAVA_HOME/bin/keytool -keygen -alias tomcat 
-keyalg RSA

  Where did it put the cert and key??  What is it called?  I checked in the 
normal locations and it not there???

 THanks for the help,

 Chad

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



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




Re: keytool -keygen questions

2002-02-07 Thread Øyvind Vestavik


You can also set the location of your certificate as a parameter to the
keytool command and thereby determine where to place it. But then you must
most likely add this path info to the connector element in server.xml in
order for tomcat to find it (keystore=path Info) Remember to add the
keypass attribute as well. It is all placed in the tomcat docs. I reckon
thats where you read about it?? If so check lower on the page..

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Thu, 7 Feb 2002, Øyvind Vestavik wrote:


 I don't know about Red hat, but I use unix and win2000
 On unix it is in the root directory of your home area, and on Win2000 it
 is in the documents and settings directory under your profile.
 Sorry I don't know about red hat..

 Øyvind

 Øyvind Vestavik
 Øvre Møllenberggt 44b
 7014 Trondheim
 [EMAIL PROTECTED]
 41422911

 On Thu, 7 Feb 2002, chad kellerman wrote:

  Hello again,
 
Ok this may sound like a dumb questions.  But I have been all thru the 
directories and can not find it.
 
   I am running rad hat linux.  I ran $JAVA_HOME/bin/keytool -keygen -alias 
tomcat -keyalg RSA
 
   Where did it put the cert and key??  What is it called?  I checked in the 
normal locations and it not there???
 
  THanks for the help,
 
  Chad
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


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



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