Refresh ResourceBundle

2005-10-12 Thread Roland Carlsson

Hi!

I'm using the i18n taglibrary to i18n a site i'm working on. The 
administration features not only i18n but also contentmanagement. The 
problem is that I can't find out how to refresh my ResourceBundle in any 
kind of way other than restart the whole webapp.


Are there any way to tell tomcat to reload ResourceBundles?

Thanks in advance
Roland Carlsson

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



URLEncoder

2005-09-01 Thread Roland Carlsson

Hi!

Why does my standalone application encode characters different than in 
Tomcat?


The swedish letters åäö run through java.net.URLEncoder(åäö, 
ISO8859_1)  in my application i get:

%E5%E4%F6

but when i run the same code through Tomcat i get:
%C3%A5%C3%A4%C3%B6

Characterencoding is difficult enough without java being consistent.

Thanks in advance
Roland Carlsson

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



SV: Reload webapp and context

2005-03-17 Thread Roland Carlsson
Hi and thanks for your answer!

Do I read you correctly that there are no solution but to restart Tomcat to
reload the context completly?

Lionel, the manager doesn't seem to re-read the context file under
/conf/Catalina/mydomain/myapp.xml and that is the one I have have to change.

Thanks in advance
Roland Carlsson


Den 05-03-17 13.58, skrev QM [EMAIL PROTECTED]:

 On Thu, Mar 17, 2005 at 08:32:54AM +0100, Roland Carlsson wrote:
 : do I force tomcat to re-load the context? Right now the only way I know
 : about is to reboot tomcat witch leads to a full stop of all my web-apps
 : instead of only one witch in turn leads to more complaints from my users.
 
 Perhaps a non-technical solution would help:
 
 1/ schedule regular deployment times.  Apps expect downtime during these
 windows, and you're free to start/stop at will.
 
 2/ Put each app in its own JVM.  Such isolation solves several
 headaches, not the least of which is the ability for each app to choose
 its own downtime window.
 
 -QM
 


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



Reload webapp and context

2005-03-16 Thread Roland Carlsson
Hi!

I have a problem with an webapp with deploying webapps. The problem is the
contextfile that since my development environment differs a little to my
deployment environment have to be edited a little after deployment. But how
do I force tomcat to re-load the context? Right now the only way I know
about is to reboot tomcat witch leads to a full stop of all my web-apps
instead of only one witch in turn leads to more complaints from my users.

So, is there a way to force reload of the context when reloading the
web-app?

Thanks in advance
Roland Carlsson


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



SV: JDBC connection - Please help

2005-02-21 Thread Roland Carlsson
Hi!

It sounds like the driver is not in your deployment. Either you put the
driver in your WEB-INF directory of your application or in the
tomcat-installdir/common/lib directory.

Regards
Roland Carlsson


Den 05-02-21 08.31, skrev deepak suldhal [EMAIL PROTECTED]:

 When I write a simple java class to get the driver and connection it works
 fine.
 I am able to retrive row and print them.
  
 But I am not able to get the same on Tomcat server.
 
 Note: forwarded message attached.
 
 Do you Yahoo!?
  The all-new My Yahoo! http://my.yahoo.com  – What will yours do?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




SV: Authenticate JNDIrealm through Client

2005-02-21 Thread Roland Carlsson
Hi!

Without beeing to sure about this I guess that if you are going to
authenticate a user via any kind of client against a tomcat-server you have
to talk the language Tomcat talks, and that language is HTTP. So, you have
to make your client able to talk http and then send the login-request as an
http-request and then look at the http-response.

Regards
Roland Carlsson


Den 05-02-21 12.20, skrev bohldan bohldan [EMAIL PROTECTED]:

 I wonder ive started a jndirealm and it works just fine against ldap. I have
 no problem to login from a webbrowser (BASIC mode). But i want to login from
 a Java client how do i do that ?
 
 _
 Chat: Ha en fest på Habbo Hotel
 http://habbohotel.msn.se/habbo/sv/channelizer Checka in här!
 
 
 -
 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]



SV: SV: Build a portal

2005-02-15 Thread Roland Carlsson
Hi!

Thanks for your answer. An Iframe will create much of the same problems that
I have with a regular frameset.

I'll guess that I either have to rebuild all my web-apps into one or build a
new web-app that forwards requests ala Tiles but without the constraints of
context.

Isn't this a common problem to solve that one have several webapps and one
need to show content from more than one sometimes. How is it done!

Regards
Roland Carlsson


Den 05-02-15 08.14, skrev Aris Javier [EMAIL PROTECTED]:

 You can make use of Windows Sharepoint Portal Server.
 But that's too expensive...
 
 If you know how to use IFRAME and DIV then you can combine all your
 webapps 
 into one webapp.. =) and make it somewhat like a dashboard... =)
 
 Aris 
 
 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 15, 2005 3:06 PM
 To: TomcatUsers
 Subject: VB: SV: Build a portal
 
 Hi!
 I'm sorry for not being clear in my question.
 
 I have  dynamic content, much are info-screens that should be visible
 all the time. Since these info-screens are from different webapps i'm
 having trouble to combine them into one page.
 
 If I read you correctly you are only speeking about static content and
 not dynmaic content? Perhaps there are some other product  that could
 handle this problem?
 
 Thanks in advance
 Roland Carlsson
 
 
 Den 05-02-14 16.07, skrev Jason Bainbridge [EMAIL PROTECTED]:
 
 On Mon, 14 Feb 2005 14:39:57 +0100, Roland Carlsson
 [EMAIL PROTECTED] wrote:
 Hi!
 
 I have built an intranet for a while now and have build everything in
 
 small discrete parts that are quite independat of each other. Using
 the Single sign on valve made it easy to integrate the parts and
 since we are using a frameset the menus wasn't a problem.
 
 Now we are going to replace our frameset with includes and now I
 forsee a pain in the neck keeping look and feel consistent since I
 don't have the framset but have to keep a copy of the common
 components in every web-app.
 
 I am really hoping that I have missed something but isn't there a way
 
 to have common components in one place only?
 
 Not really a Tomcat question and it isn't very clear exactly what you
 are after but I am guessing you might want to use something like the
 ROOT webapp to store all the common  static files and then you can
 refer to them with absolute links like href=/media/images/logo.gif
 
 Regards,
 --
 Jason Bainbridge
 KDE - Conquer Your Desktop - http://kde.org KDE Web Team -
 [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]



Build a portal

2005-02-14 Thread Roland Carlsson
Hi!

I have built an intranet for a while now and have build everything in small
discrete parts that are quite independat of each other. Using the Single
sign on valve made it easy to integrate the parts and since we are using a
frameset the menus wasn't a problem.

Now we are going to replace our frameset with includes and now I forsee a
pain in the neck keeping look and feel consistent since I don't have the
framset but have to keep a copy of the common components in every web-app.

I am really hoping that I have missed something but isn't there a way to
have common components in one place only?

Thanks in advance
Roland Carlsson


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



VB: SV: Build a portal

2005-02-14 Thread Roland Carlsson
Hi!
I'm sorry for not being clear in my question.

I have  dynamic content, much are info-screens that should be visible all
the time. Since these info-screens are from different webapps i'm having
trouble to combine them into one page.

If I read you correctly you are only speeking about static content and not
dynmaic content? Perhaps there are some other product  that could handle
this problem?

Thanks in advance
Roland Carlsson


Den 05-02-14 16.07, skrev Jason Bainbridge [EMAIL PROTECTED]:

 On Mon, 14 Feb 2005 14:39:57 +0100, Roland Carlsson
 [EMAIL PROTECTED] wrote:
 Hi!
 
 I have built an intranet for a while now and have build everything in small
 discrete parts that are quite independat of each other. Using the Single
 sign on valve made it easy to integrate the parts and since we are using a
 frameset the menus wasn't a problem.
 
 Now we are going to replace our frameset with includes and now I forsee a
 pain in the neck keeping look and feel consistent since I don't have the
 framset but have to keep a copy of the common components in every web-app.
 
 I am really hoping that I have missed something but isn't there a way to
 have common components in one place only?
 
 Not really a Tomcat question and it isn't very clear exactly what you
 are after but I am guessing you might want to use something like the
 ROOT webapp to store all the common  static files and then you can
 refer to them with absolute links like href=/media/images/logo.gif
 
 Regards,
 -- 
 Jason Bainbridge
 KDE - Conquer Your Desktop - http://kde.org
 KDE Web Team - [EMAIL PROTECTED]


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




Consolidate webapplications

2005-01-19 Thread Roland Carlsson
Hi!

We have a lot of small webservers running it's own special task, from
router-admins to Outlook Web Access to the company public pages.

All these servers is in a private network with one public ip. Today we have
solved the problems with accessing these webservers from internet by
assigning them different portnumbers but its hard for the users to remember
what application is where.

So, we are looking for a way to proxy our webserver into one portal that
instead of using a filesystem can access other web-servers to get the pages
for the users.

What would be a good way of doing this? Is there any existing products for
this scenario?

Thanks in advance
Roland Carlsson


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



SV: Consolidate webapplications

2005-01-19 Thread Roland Carlsson
Thanks for your answer!

Perhaps I missunderstand the meaning of redirect in this context but doesn't
that mean that the client browser must do a new request or does it mean that
the server with mod_proxy forwards the request to another server and then
return the answer from that server to the client.

We would prefer that the user get the impression of being on the same server
if possible. Can mod_proxy solve that?

Thanks in advance
Roland Carlsson


Den 05-01-19 09.17, skrev Viorel Dragomir [EMAIL PROTECTED]:

 You can use apache on the server with public ip address and use
 
 1. mod_proxy to redirect all incomings to the webservers
 ProxyPass /app1/  http://serverx/app1/
 
 or 
 
 2. mod_jk and create a worker for each of your webapplications [if your
 webservers are
 tomcats]
 http://jakarta.apache.org/tomcat/connectors-doc/index.html
 
 
 
 Viorel Dragomir
 
 .
 ..
 ---
 
 
 
 - Original Message -
 From: Roland Carlsson
 To: TomcatUsers 
 Sent: Wednesday, January 19, 2005 10:04
 Subject: Consolidate webapplications
 
 
 Hi!
 
 We have a lot of small webservers running it's own special task, from
 router-admins to Outlook Web Access to the company public pages.
 
 All these servers is in a private network with one public ip. Today we have
 solved the problems with accessing these webservers from internet by
 assigning them different portnumbers but its hard for the users to remember
 what application is where.
 
 So, we are looking for a way to proxy our webserver into one portal that
 instead of using a filesystem can access other web-servers to get the pages
 for the users.
 
 What would be a good way of doing this? Is there any existing products for
 this scenario?
 
 Thanks in advance
 Roland Carlsson
 
 
 -
 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]



SV: SV: Consolidate webapplications

2005-01-19 Thread Roland Carlsson
Hi again!

I check mod_proxy and it does what I wanted it to do.

Thaks again!

Roland Carlsson


Den 05-01-19 10.19, skrev Roland Carlsson [EMAIL PROTECTED]:

 Thanks for your answer!
 
 Perhaps I missunderstand the meaning of redirect in this context but doesn't
 that mean that the client browser must do a new request or does it mean that
 the server with mod_proxy forwards the request to another server and then
 return the answer from that server to the client.
 
 We would prefer that the user get the impression of being on the same server
 if possible. Can mod_proxy solve that?
 
 Thanks in advance
 Roland Carlsson
 
 
 Den 05-01-19 09.17, skrev Viorel Dragomir [EMAIL PROTECTED]:
 
 You can use apache on the server with public ip address and use
 
 1. mod_proxy to redirect all incomings to the webservers
 ProxyPass /app1/  http://serverx/app1/
 
 or 
 
 2. mod_jk and create a worker for each of your webapplications [if your
 webservers are
 tomcats]
 http://jakarta.apache.org/tomcat/connectors-doc/index.html
 
 
 
 Viorel Dragomir
 
 .
 ..
 ---
 
 
 
 - Original Message -
 From: Roland Carlsson
 To: TomcatUsers 
 Sent: Wednesday, January 19, 2005 10:04
 Subject: Consolidate webapplications
 
 
 Hi!
 
 We have a lot of small webservers running it's own special task, from
 router-admins to Outlook Web Access to the company public pages.
 
 All these servers is in a private network with one public ip. Today we have
 solved the problems with accessing these webservers from internet by
 assigning them different portnumbers but its hard for the users to remember
 what application is where.
 
 So, we are looking for a way to proxy our webserver into one portal that
 instead of using a filesystem can access other web-servers to get the pages
 for the users.
 
 What would be a good way of doing this? Is there any existing products for
 this scenario?
 
 Thanks in advance
 Roland Carlsson
 
 
 -
 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]



SV: Installing and running tomcat as a user other than root

2005-01-14 Thread Roland Carlsson
Hi Mumanyi!

This will require some knowleage about you operatingsystem since not all
operation is allowed being a non-root user. But it basically comes down to
this:

Grant the user you would like to run tomcat read and write rights on the
whole tomcat install-dir. This because tomcat write down a few things to
disk.

Make sure that you operating system allow the user to open up the port you
which tomcat to run on. Usually ports under 1024 are dissallowed without
special privilegies.

If you still are having problem you have to read the logs to see why tomcat
fails to start correctly.

Regards
Roland Carlsson




Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]:

 How can one achieve to install and run tomcat as a user other than root.
   I have tried to extract tomcat from the *.gz as a user but once I try
 to access it from the browser I get the Connection Failed error when
 in actually fact tomcat is running.
 
 When I su -l to root and restart tomcat, I am able to see the page.
 
 Thanks in advance.
 
 Regards
 /Bravo
 
 
 -
 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]



SV: SV: Installing and running tomcat as a user other than root

2005-01-14 Thread Roland Carlsson
Are you accessing tomcat from localhost or any other host?


Den 05-01-14 09.19, skrev Mumanyi Bravismore [EMAIL PROTECTED]:

 Sorry, I am on RedHat 9. I have given the user -rwx- of the [tomcat]
 dir, No problem with the user starting tomcat. ps -e|grep java shows the
 tomcat process is running but when I try to access the pages from the
 browser, connection is failing.
 
 Any tips on how to grant priviledges to port 80 or 8080 on linux to a user.
 
 Thanks
 
 Roland Carlsson wrote:
 Hi Mumanyi!
 
 This will require some knowleage about you operatingsystem since not all
 operation is allowed being a non-root user. But it basically comes down to
 this:
 
 Grant the user you would like to run tomcat read and write rights on the
 whole tomcat install-dir. This because tomcat write down a few things to
 disk.
 
 Make sure that you operating system allow the user to open up the port you
 which tomcat to run on. Usually ports under 1024 are dissallowed without
 special privilegies.
 
 If you still are having problem you have to read the logs to see why tomcat
 fails to start correctly.
 
 Regards
 Roland Carlsson
 
 
 
 
 Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]:
 
 
 How can one achieve to install and run tomcat as a user other than root.
  I have tried to extract tomcat from the *.gz as a user but once I try
 to access it from the browser I get the Connection Failed error when
 in actually fact tomcat is running.
 
 When I su -l to root and restart tomcat, I am able to see the page.
 
 Thanks in advance.
 
 Regards
 /Bravo
 
 
 -
 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]



Multiple realms in one context

2005-01-13 Thread Roland Carlsson
Hi!

My company has desided to put our customers in our LDAP (Active Directory)
in there own ou. They have also desided that our intranet and extranet shall
be the same pages where buttons shall be visible depending on the users
rights. They have desided that employees and extranet-users shall be in
different ou:s in the ldap.

So far there are no problem. The problem is that it is decided that our
customers shall login with their email-adress and employees shall use our
usual login-name (sAMAccountName).

We are using tomcats jndi-realm witch by the documentation supports
searching in several userbases.

The question, can I have two arguments in userSearch as with useBase to be
able to handle this situation or do I have to force my management to rethink
this? What is the syntax for this if it works?

Thanks in advance
Roland Carlsson



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



SV: Multiple realms in one context

2005-01-13 Thread Roland Carlsson
Hi again!

I realized that I was reading in old documentation (4.1) where the
documentation say it is possible to search two directories in the ldap.

Is this still posible in 5.0? The documentation is changed so it doesn't
mention the possibility and I can't make the syntax from 4.1 to work in my
5.0.

So I modify my question, is it possible to search in multiple ou:s in my
ldap?

Thanks in advance
Roland Carlsson


Den 05-01-13 13.27, skrev Roland Carlsson [EMAIL PROTECTED]:

 Hi!
 
 My company has desided to put our customers in our LDAP (Active Directory)
 in there own ou. They have also desided that our intranet and extranet shall
 be the same pages where buttons shall be visible depending on the users
 rights. They have desided that employees and extranet-users shall be in
 different ou:s in the ldap.
 
 So far there are no problem. The problem is that it is decided that our
 customers shall login with their email-adress and employees shall use our
 usual login-name (sAMAccountName).
 
 We are using tomcats jndi-realm witch by the documentation supports
 searching in several userbases.
 
 The question, can I have two arguments in userSearch as with useBase to be
 able to handle this situation or do I have to force my management to rethink
 this? What is the syntax for this if it works?
 
 Thanks in advance
 Roland Carlsson
 
 
 
 -
 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]



Realms and context

2005-01-13 Thread Roland Carlsson
First I'm sorry for flooding in this subject but since I have not got any
answer and I must inform my managers today about if I can do the projects
they want to me to do.

So, refering to my earlier mail with the subject Multiple realms in one
context

Is there a way to configure tomcats JNDI-realm to support multiple
userBases? 

Thank you in advance and once again I apologize for being rude and repost.

Regards
Roland Carlsson


 


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



SV: SSL encryption

2004-12-27 Thread Roland Carlsson
Hi!

SSL in tomcat does not allow for having the same session both http and
https. Something about developer misstakes leading to security-holes that
would reflekt badly back on Tomcat... At least that is the answer I got.

You can write your own Connector if you really need to work your way around
this. 

Regards
Roland Carlsson


Den 04-12-27 16.03, skrev VAN DER MARLIERE FREDERIC
[EMAIL PROTECTED]:

 Hi all.
 
 I would like to encrypt my login process so that login and password are not
 visible on the network. That's why I defined a SSL connector on port 8443 in
 my server.xml. My problem is that after the user logged in, request keep on
 using the https protocol on port 8443.
 
 Does someone know how to encrypt only the login process and afterwards use
 the http protocol again, on port 8080 ?
 
 Thanks.
 Fred.
 
 
 
 Ce message et toutes les pieces jointes (ci-apres le message) sont
 confidentiels et etablis a l'intention exclusive de ses destinataires.
 Toute utilisation ou diffusion non autorisee est interdite.Tout message
 electronique est susceptible d'alteration.
 Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de
 ce message s'il a ete altere, deforme ou falsifie.
 This message and any attachments ( the message) are confidential and
 intended solely for the addressees.
 Any unauthorised use or dissemination is prohibited.E-mails are susceptible to
 alteration.
 Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be
 liable for the message if altered, changed or falsified.
 
 


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



REPOST: Recursive groups in JNDIRealm

2004-11-18 Thread Roland Carlsson
Hi! 
I'm am sorry for reposting this but I urgently need confirmation about
Tomcat supporting or not supporting recursive searching in LDAP for Roles
including other Roles.

I post the relevant part of server.xml
:
Realm   className=org.apache.catalina.realm.JNDIRealm debug=99
  connectionURL=ldap://192.168.10.10:389;
  connectionName=CN=Administrator,CN=Users,DC=alfa-moving,DC=se
  connectionPassword=x
  userBase=CN=Users,DC=alfa-moving,DC=se
  userSearch=(sAMAccountName={0})
  userRoleName=memberOf
  roleBase=CN=Users,DC=alfa-moving,DC=se
  roleName=CN
  roleSearch=(member={0})
  roleSubtree=true/
/


Thank you very much in advance
Roland Carlsson


Från: Roland Carlsson [EMAIL PROTECTED]
Svara till: Tomcat Users List [EMAIL PROTECTED]
Datum: Wed, 17 Nov 2004 16:52:34 +0100
Till: TomcatUsers [EMAIL PROTECTED]
Ämne: Recursive groups in JNDIRealm

Hi!

After an hour of searching I can't figure out if Tomcat is able to find
groups in group in a LDAP server?

I found this in the archives but since it is from 4.1.18
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg89601.html


Thanks in advance
Roland Carlsson



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


-- Slut på vidarebefordrat meddelande


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



SV: after install i cann't shutdown the server with port 8080

2004-11-18 Thread Roland Carlsson
Hi!

Are you sure that you have the rights to open ports?

Are you sure that there arn't any other programs or instances of tomcat
running at port 8080?

That is the two reasons I have got that error.

Regards
Roland Carlsson


Den 04-11-18 10.46, skrev Tomer Avitzur [EMAIL PROTECTED]:

 
 
 
 
 Hi ,
 
 
 
 
 I just install tomcat 4
 
 And the server goes up but I cann't down it , the default port set to
 8080
 
 I get
 
 
 
 
 
 c:\Program Files\Apache Group\Tomcat 4.1\binshutdown.bat
 
 Using CATALINA_BASE:   ..
 
 Using CATALINA_HOME:   ..
 
 Using CATALINA_TMPDIR: ..\temp
 
 Using JAVA_HOME:   c:\jdk1.3.1
 
 Catalina.stop: java.net.ConnectException: Connection refused: connect
 
 java.net.ConnectException: Connection refused: connect
 
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
 
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
 
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
 
 at java.net.Socket.init(Socket.java:273)
 
 at java.net.Socket.init(Socket.java:100)
 
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:532)
 
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:352)
 
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 
 at java.lang.reflect.Method.invoke(Native Method)
 
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 
 
 
 
 Any idea ?
 
 
 
 
 Have a nice day
 
 Tomer A
 
 
 
 
 
 
 The information contained in this message is proprietary of Amdocs,
 protected from disclosure, and may be privileged.
 The information is intended to be conveyed only to the designated recipient(s)
 of the message. If the reader of this message is not the intended recipient,
 you are hereby notified that any dissemination, use, distribution or copying
 of
 
 this communication is strictly prohibited and may be unlawful.
 
 If you have received this communication in error, please notify us immediately
 by replying to the message and deleting it from your computer.
 Thank you.


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



Recursive groups in JNDIRealm

2004-11-17 Thread Roland Carlsson
Hi!

After an hour of searching I can't figure out if Tomcat is able to find
groups in group in a LDAP server?

I found this in the archives but since it is from 4.1.18
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg89601.html


Thanks in advance
Roland Carlsson



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



Gothia

2004-11-12 Thread Roland Carlsson
Peter (H)ärling ringde och konstaterade att han inte hittat någon lösning på
det hela utan rekomenderade att vi kort och gott tog ner en av deras
konsulter för att göra om jobbet en gång till.

Jag sa att jag inte kunde beställa detta på egen hand. Han förväntar sig ett
svar idag eller på måndag om vi vill göra detta.

Jag förespråkade att vi ville ha Johan Gradvall till att göra detta om det
blir av.

//Rolle


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



Login over ssl

2004-11-12 Thread Roland Carlsson
Hi!

I got a problem with securing a login-page. I would like the login-form to
be secured with ssl to ensure that the users credentials isn't easially
readable. But I have no need to put the rest of my page in ssl-mode.

I have posted the security-constraint/ and login-config/ below.
It seems like if the security-constraint named AQMFiles 02 isn't used at
all. Atleast all reqeusts that get interupted as the user isn't
authenticated is sent to /login.jsp as a  non-sll requests and doesn't get
redirected to ssl.

Must I put my whole web-app in ssl-mode to make sure that my users
credentials is secure?

Regards
Roland Carlsson

Ps: I apologize for the posting that got the wrong adress (Gothia), I should
learn not to talk in the phone and write mail at the same time. :-)

--- part of web.xml--

security-constraint
display-nameAQMFiles 02/display-name
web-resource-collection
  url-pattern/login.jsp/url-pattern
  url-pattern/error.jsp/url-pattern
  url-pattern*j_security_check*/url-pattern
 /web-resource-collection
 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
  /security-constraint
  security-constraint
display-nameAQMFiles 01/display-name
web-resource-collection
  url-pattern/pages/*/url-pattern
  url-pattern/env/*/url-pattern
  url-pattern/index_1.jsp/url-pattern
 /web-resource-collection
 auth-constraint
role-name*/role-name
 /auth-constraint
 user-data-constraint
   transport-guaranteeNONE/transport-guarantee
 /user-data-constraint
  /security-constraint
  

  login-config
   auth-methodFORM/auth-method
   realm-nameAQMFile login/realm-name
   form-login-config
  form-login-page/login.jsp/form-login-page
  form-error-page/error.jsp/form-error-page
   /form-login-config
/login-config

---






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



Fw: Login over ssl

2004-11-12 Thread Roland Carlsson
Hi!
I am using that for my login pages. The problem is that tomcat doesn't honor
that. So, must I put my whole web-app as CONFIDENTIAL when I only need the
login to be performed in a (relative) safe way.
Thanks in advance
Roland Carlsson
- Original Message - 
From: Michal Kwiatek [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 12, 2004 1:32 PM
Subject: RE: Login over ssl

Accourding to servlet specs, you need to require tranport guarantee 
CONFIDENTIAL or INTEGRAL (I'm not sure what the difference is, perhaps 
somebody can clarify this). So try:

transport-guaranteeCONFIDENTIAL/transport-guarantee
Hope that helps...
Micha.
-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 12, 2004 11:14 AM
To: TomcatUsers
Subject: Login over ssl
Hi!
I got a problem with securing a login-page. I would like the
login-form to be secured with ssl to ensure that the users
credentials isn't easially readable. But I have no need to
put the rest of my page in ssl-mode.
I have posted the security-constraint/ and login-config/ below.
It seems like if the security-constraint named AQMFiles 02
isn't used at all. Atleast all reqeusts that get interupted
as the user isn't authenticated is sent to /login.jsp as a
non-sll requests and doesn't get redirected to ssl.
Must I put my whole web-app in ssl-mode to make sure that my
users credentials is secure?
Regards
Roland Carlsson
Ps: I apologize for the posting that got the wrong adress
(Gothia), I should learn not to talk in the phone and write
mail at the same time. :-)
--- part of web.xml--
security-constraint
display-nameAQMFiles 02/display-name
web-resource-collection
  url-pattern/login.jsp/url-pattern
  url-pattern/error.jsp/url-pattern
  url-pattern*j_security_check*/url-pattern
 /web-resource-collection
 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
  /security-constraint
  security-constraint
display-nameAQMFiles 01/display-name
web-resource-collection
  url-pattern/pages/*/url-pattern
  url-pattern/env/*/url-pattern
  url-pattern/index_1.jsp/url-pattern
 /web-resource-collection
 auth-constraint
role-name*/role-name
 /auth-constraint
 user-data-constraint
   transport-guaranteeNONE/transport-guarantee
 /user-data-constraint
  /security-constraint
  login-config
   auth-methodFORM/auth-method
   realm-nameAQMFile login/realm-name
   form-login-config
  form-login-page/login.jsp/form-login-page
  form-error-page/error.jsp/form-error-page
   /form-login-config
/login-config
---


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


SV: Where do context end?

2004-11-01 Thread Roland Carlsson
I have a resourcelink. ..

I can successfully perform my lookup from a struts-action but not from a
class that my struts-action uses.

Do you say that I have to define a resource-link to classes that doesn't
have access to HttpServletRequest or some other class?

Regards
Roland Carlsson




Den 04-11-01 13.10, skrev Benson Margulies [EMAIL PROTECTED]:

 You need a ResourceLink in your context. See the JNDI howto document.
 
 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 01, 2004 1:51 AM
 To: TomcatUsers
 Subject: Where do context end?
 
 Hi!
 
 I encounterd what I thought to be a little curiosity this weekend. I
 tried to call a GlobalNamingResource from a class that I'm using as
 homegrown PersistenceManager, ie it doesn't have anything to do with the
 webapplication except that it is packaged inside the webapp that uses
 it.
 
 I do the usual InitalContext and try to get the JNDI but it says that
 comp:java isn't bound for this context.
 
 If I try from the StrutsAction that is calling my class it works nice.
 (cut
 n'paste)
 
 So, why can't I use the JNDI-lookup from my persistencemanager that runs
 inside a web-app?
 
 I apologize if this question belongs in a JNDI forum.
 
 Thanks in advance
 Roland Carlsson
 
 
 
 -
 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]



Where do context end?

2004-10-31 Thread Roland Carlsson
Hi!

I encounterd what I thought to be a little curiosity this weekend. I tried
to call a GlobalNamingResource from a class that I'm using as homegrown
PersistenceManager, ie it doesn't have anything to do with the
webapplication except that it is packaged inside the webapp that uses it.

I do the usual InitalContext and try to get the JNDI but it says that
comp:java isn't bound for this context.

If I try from the StrutsAction that is calling my class it works nice. (cut
n'paste)

So, why can't I use the JNDI-lookup from my persistencemanager that runs
inside a web-app?

I apologize if this question belongs in a JNDI forum.

Thanks in advance
Roland Carlsson



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



GlobalNamingResouces used by other GlobalNamingResources

2004-10-27 Thread Roland Carlsson
Hello again!

Sorry to bother in this topic again but I need to strait out one more thing.

I have my Datasource now as GlobalNamingContext (and a big post-it saying
that I shall change the resource-link from DefaultContext).

Since JDBC doesn't generate id-numbers and not supporting the
database-generated id-numbers I have written an id-generator that takes care
of the problem. It works fine for a single web-app using its own private
database but is trouble when two web-apps uses the same database since it's
awful hard to keep the generators synchronized (even worse using to
tomcat-instances). 

So, for a breif moment I thought that I had the solution putting the
id-generator as a Resource under GlobalNamingResources. And that would have
worked if I didn't the init the id-generator with a call to my datasource
that also is in the GlobalNamingContext.

javax.naming.NameNotFoundException: Name comp:java is not bound in this
Context was the result.

So, before I start to rewrite my id-generator i would like to get a few
things clarified.

1) Can I in any part of my id-generator (assuming that it is defined in the
GlobalNamingResources) use my datasource. For example after the user have
done a lookup and calling the generate-method? What context will be used in
that case? 

2) Since we are closing in on the fact that or single tomcat-server sone
will not cope with the load its carrying in the peeks. Would there be a
better way to implement the id-generator? (rmi, webservice etc etc)?

Thank you very much in advance
Roland Carlsson







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



Sv: GlobalNamingResouces used by other GlobalNamingResources

2004-10-27 Thread Roland Carlsson
Hi Steve and thanks for you answer.

Try the following scenario.

The problem is to get back the primary key when doing an insert. Say that
you have a master/slave relation between two tables.

You insert a row into master. Then you are going to insert a few rows
connected to the master into slave. How do you know the id-number of your
master?

I know that mysql has a non-jdbc soloution for this but since one of our
general design goals are portable code.. So, we have desided to take the
same apporach as Object-Relational Bridge. We created our own id-generator
to handle the problem. But its has created a new set of problems now when we
are going to use multiple web-apps and (in a not so distant future) mutiple
servers.

Regards
Roland Carlsson




Den 04-10-27 13.48, skrev Steve Kirk [EMAIL PROTECTED]:

 sorry, can't answer specific Q on whether you can access datasource from
 generator.  but it sounds like you are trying to uniquely ID rows in a
 database?
 
 if so then the simplest way seems to be to use auto_increment fields and let
 the database handle it.  or are you saying that that isn'y working - is this
 what you mean by not supporting the database-generated id-numbers?  if so
 please say more about why its not working.  what database? code sample?


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



Sv: GlobalNamingResouces used by other GlobalNamingResources

2004-10-27 Thread Roland Carlsson
Hello Steve!

I have done some trial and error and come to the following (if not somewhat
shaky) conclusion.

If I make the call to the datasource in the consturctor of my object it will
fail, since the caller is the server itself and it has no context.

If I make the call to the datasource as a method after have looked up my
object and retrived as a user it will run in the context of the user
(web-app) and therefore work. Perhaps Yoav can confirm this?

So, I manage to get my object...but get a strange class cast error

This code:

System.out.println(o);
se.alfamoving.file.db.FileIdGenerator fg =
(se.alfamoving.file.db.FileIdGenerator) o;

Gives this output:

[EMAIL PROTECTED]
java.lang.ClassCastException snip/


But I'll guess that I spelled badly somewhere :-/ The happy moments never
seems to last :-)

Thank you very much for your time and effort!

Regards
Roland Carlsson



Den 04-10-27 14.28, skrev Steve Kirk [EMAIL PROTECTED]:

 OK now I see your problem.  I have the same issue.  I've worked around it
 with a bit of a hack I'm afraid, and just used the MySQL non-jdbc solution.
 As you say I will pay the price for this sin later, if I ever need to swap
 database.  However I've taken a view that for my specific situation, this is
 unlikely in the medium term.  So instead of investing time in making the
 code completely portable to another database, I've invested time in
 mitigating the impact by genericising my code so that there is only one
 place I will need to make changes.  (Essentially, I've beanified all my
 database tables so that I have a single method that creates rows in any
 table in the database and returns the ID).
 
 I think portability and re-use are worth investing time and effort in, but
 there is a limit to that, and sometimes, you need to make compromises and
 move on, otherwise you can spend days trying to work around a problem that
 might never happen.
 
 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday 27 October 2004 13:03
 To: TomcatUsers
 Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources
 
 
 Hi Steve and thanks for you answer.
 
 Try the following scenario.
 
 The problem is to get back the primary key when doing an
 insert. Say that
 you have a master/slave relation between two tables.
 
 You insert a row into master. Then you are going to insert a few rows
 connected to the master into slave. How do you know the
 id-number of your
 master?
 
 I know that mysql has a non-jdbc soloution for this but since
 one of our
 general design goals are portable code.. So, we have
 desided to take the
 same apporach as Object-Relational Bridge. We created our own
 id-generator
 to handle the problem. But its has created a new set of
 problems now when we
 are going to use multiple web-apps and (in a not so distant
 future) mutiple
 servers.
 
 Regards
 Roland Carlsson
 
 
 
 
 Den 04-10-27 13.48, skrev Steve Kirk
 [EMAIL PROTECTED]:
 
 sorry, can't answer specific Q on whether you can access
 datasource from
 generator.  but it sounds like you are trying to uniquely
 ID rows in a
 database?
 
 if so then the simplest way seems to be to use
 auto_increment fields and let
 the database handle it.  or are you saying that that isn'y
 working - is this
 what you mean by not supporting the database-generated
 id-numbers?  if so
 please say more about why its not working.  what database?
 code sample?
 
 
 -
 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]



Sv: GlobalNamingResouces used by other GlobalNamingResources

2004-10-27 Thread Roland Carlsson
Thank you very much both Steve and Yoav!

The general advice from that last few messages are, don't have your classes
in two places, it will cause problem.

And postpone JNDI-calls from the constructor if you are going to put them in
the GlobalNamingContext (atleast if they are going to stay in the same
server).

Regards
Roland Carlsson





Den 04-10-27 15.02, skrev Shapira, Yoav [EMAIL PROTECTED]:

 
 Hi,
 Yeah, Steve's advice on classloading is right on the mark... I don't
 have time to check this out in depth, but I'd be surprised if he's
 wrong.  com.foo loaded from common/lib is not the same as com.foo loaded
 from WEB-INF/lib.
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 -Original Message-
 From: Steve Kirk [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 27, 2004 8:58 AM
 To: 'Tomcat Users List'
 Subject: RE: GlobalNamingResouces used by other GlobalNamingResources
 
 Sorry - can't answer that one for sure.  Does look a bit strange.
 
 I could only guess that it might be to do with classloading?  I seem to
 remember that a class abc.def.MyClass loaded by classloader A is
 deemed
 to be different to the same class abc.def.MyClass loaded by
 classloader
 B, so I would guess that this might lead to casting problems.  I
 haven't
 used JNDI much apart from in the context of DBCP, so I'm not sure
 exactly
 how it works - could it maybe be using a different classloader to the
 one
 loading your servlet classes?
 
 Then again that could be complete rubbish :)
 
 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday 27 October 2004 13:41
 To: TomcatUsers
 Subject: Sv: GlobalNamingResouces used by other GlobalNamingResources
 
 
 Hello Steve!
 
 I have done some trial and error and come to the following
 (if not somewhat
 shaky) conclusion.
 
 If I make the call to the datasource in the consturctor of my
 object it will
 fail, since the caller is the server itself and it has no context.
 
 If I make the call to the datasource as a method after have
 looked up my
 object and retrived as a user it will run in the context of the
 user
 (web-app) and therefore work. Perhaps Yoav can confirm this?
 
 So, I manage to get my object...but get a strange class cast
 error
 
 This code:
 
 System.out.println(o);
 se.alfamoving.file.db.FileIdGenerator fg =
 (se.alfamoving.file.db.FileIdGenerator) o;
 
 Gives this output:
 
 [EMAIL PROTECTED]
 java.lang.ClassCastException snip/
 
 
 But I'll guess that I spelled badly somewhere :-/ The happy
 moments never
 seems to last :-)
 
 Thank you very much for your time and effort!
 
 Regards
 Roland Carlsson
 
 
 
 Den 04-10-27 14.28, skrev Steve Kirk
 [EMAIL PROTECTED]:
 
 OK now I see your problem.  I have the same issue.  I've
 worked around it
 with a bit of a hack I'm afraid, and just used the MySQL
 non-jdbc solution.
 As you say I will pay the price for this sin later, if I
 ever need to swap
 database.  However I've taken a view that for my specific
 situation, this is
 unlikely in the medium term.  So instead of investing time
 in making the
 code completely portable to another database, I've invested time in
 mitigating the impact by genericising my code so that there
 is only one
 place I will need to make changes.  (Essentially, I've
 beanified all my
 database tables so that I have a single method that creates
 rows in any
 table in the database and returns the ID).
 
 I think portability and re-use are worth investing time and
 effort in, but
 there is a limit to that, and sometimes, you need to make
 compromises and
 move on, otherwise you can spend days trying to work around
 a problem that
 might never happen.
 
 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday 27 October 2004 13:03
 To: TomcatUsers
 Subject: Sv: GlobalNamingResouces used by other
 GlobalNamingResources
 
 
 Hi Steve and thanks for you answer.
 
 Try the following scenario.
 
 The problem is to get back the primary key when doing an
 insert. Say that
 you have a master/slave relation between two tables.
 
 You insert a row into master. Then you are going to insert
 a few rows
 connected to the master into slave. How do you know the
 id-number of your
 master?
 
 I know that mysql has a non-jdbc soloution for this but since
 one of our
 general design goals are portable code.. So, we have
 desided to take the
 same apporach as Object-Relational Bridge. We created our own
 id-generator
 to handle the problem. But its has created a new set of
 problems now when we
 are going to use multiple web-apps and (in a not so distant
 future) mutiple
 servers.
 
 Regards
 Roland Carlsson
 
 
 
 
 Den 04-10-27 13.48, skrev Steve Kirk
 [EMAIL PROTECTED]:
 
 sorry, can't answer specific Q on whether you can access
 datasource from
 generator.  but it sounds like you are trying to uniquely
 ID rows in a
 database?
 
 if so then the simplest way seems to be to use
 auto_increment fields and let
 the database

Re: GlobalNamingResouces used by other GlobalNamingResources

2004-10-27 Thread Roland Carlsson
Hi Steve!
That is a quite sweet function. I'll try it out as soon as I can when 
comming to work tomorrow.

Thanks for the tip
Regards
Roland Carlsson
- Original Message - 
From: Steve Kirk [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 6:20 PM
Subject: RE: GlobalNamingResouces used by other GlobalNamingResources


I've just noticed another (more elegant) solution from another post, and
will be changing my code to use it.  As long as your database driver
supports it, try using statement.getGeneratedKeys()
I got this example from
http://www.datadirect.com/products/jdbc/docs/jdbc30feats/index.ssp
Int rowcount = stmt.executeUpdate (
insert into LocalGeniusList (name) values ('Karen'),
employeeID);
ResultSet rs = stmt.getGeneratedKeys (); // Karen's employeeID value is 
now
available

-Original Message-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: Wednesday 27 October 2004 13:29
To: 'Tomcat Users List'
Subject: RE: GlobalNamingResouces used by other GlobalNamingResources
OK now I see your problem.  I have the same issue.  I've
worked around it
with a bit of a hack I'm afraid, and just used the MySQL
non-jdbc solution.
As you say I will pay the price for this sin later, if I ever
need to swap
database.  However I've taken a view that for my specific
situation, this is
unlikely in the medium term.  So instead of investing time in
making the
code completely portable to another database, I've invested time in
mitigating the impact by genericising my code so that there
is only one
place I will need to make changes.  (Essentially, I've
beanified all my
database tables so that I have a single method that creates
rows in any
table in the database and returns the ID).
I think portability and re-use are worth investing time and
effort in, but
there is a limit to that, and sometimes, you need to make
compromises and
move on, otherwise you can spend days trying to work around a
problem that
might never happen.
 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday 27 October 2004 13:03
 To: TomcatUsers
 Subject: Sv: GlobalNamingResouces used by other
GlobalNamingResources


 Hi Steve and thanks for you answer.

 Try the following scenario.

 The problem is to get back the primary key when doing an
 insert. Say that
 you have a master/slave relation between two tables.

 You insert a row into master. Then you are going to insert
a few rows
 connected to the master into slave. How do you know the
 id-number of your
 master?

 I know that mysql has a non-jdbc soloution for this but since
 one of our
 general design goals are portable code.. So, we have
 desided to take the
 same apporach as Object-Relational Bridge. We created our own
 id-generator
 to handle the problem. But its has created a new set of
 problems now when we
 are going to use multiple web-apps and (in a not so distant
 future) mutiple
 servers.

 Regards
 Roland Carlsson




 Den 04-10-27 13.48, skrev Steve Kirk
 [EMAIL PROTECTED]:

  sorry, can't answer specific Q on whether you can access
 datasource from
  generator.  but it sounds like you are trying to uniquely
 ID rows in a
  database?
 
  if so then the simplest way seems to be to use
 auto_increment fields and let
  the database handle it.  or are you saying that that isn'y
 working - is this
  what you mean by not supporting the database-generated
 id-numbers?  if so
  please say more about why its not working.  what database?
 code sample?



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


JNDI DataSource GlobalResources problem

2004-10-26 Thread Roland Carlsson
Hi!

I'm trying to use the JNDI DataSource to administer my database-connections.
But it seems like the DataSource doesn't get the properties I set. I get the
following error:

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null' (Full stacktrace below)

I have checked that the driver is there and I have re-read the configuration
and documentation many times now but doesn't find anything wrong. What am I
missing?

Thanks in advance
Roland Carlsson


 from GlobalNamingResources element in server.xml 

Resource name=jdbc/loginDB
   auth=Container
   type=javax.sql.DataSource/

  ResourceParams name=login/myDB
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!-- Maximum number of dB connections in pool. Make sure you
 configure your mysqld max_connections large enough to handle
 all of your db connections. Set to 0 for no limit.
 --
parameter
  namemaxActive/name
  value100/value
/parameter

!-- Maximum number of idle dB connections to retain in pool.
 Set to -1 for no limit.  See also the DBCP documentation on this
 and the minEvictableIdleTimeMillis configuration parameter.
 --
parameter
  namemaxIdle/name
  value2/value
/parameter

!-- Maximum time to wait for a dB connection to become available
 in ms, in this example 10 seconds. An Exception is thrown if
 this timeout is exceeded.  Set to -1 to wait indefinitely.
 --
parameter
  namemaxWait/name
  value1/value
/parameter

!-- MySQL dB username and password for dB connections  --
parameter
 nameusername/name
 valuexxx/value
/parameter
parameter
 namepassword/name
 valueyyy/value
/parameter

!-- Class name for the official MySQL Connector/J driver --
parameter
   namedriverClassName/name
   valuecom.mysql.jdbc.Driver/value
/parameter

!-- The JDBC connection url for connecting to your MySQL dB.
 The autoReconnect=true argument to the url makes sure that the
 mm.mysql JDBC Driver will automatically reconnect if mysqld
 closed the connection.  mysqld by default closes idle connections
 after 8 hours.
 --
parameter
  nameurl/name
  valuejdbc:mysql://192.168.x.x:/login?autoReconnect=true/value
/parameter
  /ResourceParams


- from web-app element in web.xml 


resource-ref
  descriptionMysql database login/description
  res-ref-namejdbc/loginDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

-- Full stacktrace of the exception -
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null'
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:780)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
40)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:62)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
at 
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter
.java:305)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:186)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137

Sv: JNDI DataSource GlobalResources problem

2004-10-26 Thread Roland Carlsson
Hello!

Thanks for your answer. I have no ResourceLink in my configuration. I
understand that I should put it a Context-tag but not where.

How does this affect the configuration I already have done? Is the use of
resource-ref and Resource correct?

Thanks in advance
Roland Carlsson


Den 04-10-26 11.25, skrev Shinobu Kawai [EMAIL PROTECTED]:

 
 Hi Roland,
 
 I'm trying to use the JNDI DataSource to administer my database-connections.
 But it seems like the DataSource doesn't get the properties I set. I get the
 following error:
 
 org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
 class '' for connect URL 'null' (Full stacktrace below)
 
 I have checked that the driver is there and I have re-read the configuration
 and documentation many times now but doesn't find anything wrong. What am I
 missing?
 
  from GlobalNamingResources element in server.xml 
 snip /
 
 - from web-app element in web.xml 
 snip /
 
 -- Full stacktrace of the exception -
 snip /
 
 Have you set the ResourceLink?
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/globalresources.html
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html#Resource%2
 0Links
 
 Best regards,
 -- Shinobu Kawai
 
 --
 Shinobu Kawai [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]



Sv: JNDI DataSource GlobalResources problem

2004-10-26 Thread Roland Carlsson
Hi Steve! 

X:s and y:s are to hide a few details of our setup, perhaps a little
paranoid :-)

I can connect to the database with user and password at that url.

My driver is in common/lib, I also check the other libs.

Regards
Roland Carlsson


Den 04-10-26 12.27, skrev Steve Kirk [EMAIL PROTECTED]:

 This type of bug crops up a lot on this list.  The best answer seems to be
 to make sure you follow the instructions on this page _exactly_:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
 to.html
 
 I assume that where you have x/y in your config file this is to hide values
 before posting here rather than your actual config  - worth checking!!
 
 It might help if you post a snippet of your Java source
 
 Can you connect to the database called login on the IP and port in your
 urlvalue tag with the username xxx and password yyy using the mysql
 command line client?  If not, then you probably have a mysql account or
 security issue that's blocking access to the database.  It might be that you
 have only created an account [EMAIL PROTECTED], which will deny access from any
 other IP apart from the 192.168.x.x address of the server.
 
 Where is your driver file?  It should be in the common\lib folder e.g. on my
 machine it is 
 
 C:\jakarta-tomcat-5.0.27\common\lib\mysql-connector-java-3.0.14-production-b
 in.jar
 
 PS even if quotes are allowed in ResourceLinkdescription (which I'm not
 sure about), it's the sort of thing I'd avoid, especially when trying to
 debug a problem like this. It's an extra unknown you'd be better off
 without.
 
 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday 26 October 2004 10:13
 To: TomcatUsers
 Subject: JNDI DataSource GlobalResources problem
 
 
 Hi!
 
 I'm trying to use the JNDI DataSource to administer my
 database-connections.
 But it seems like the DataSource doesn't get the properties I
 set. I get the
 following error:
 
 org.apache.commons.dbcp.SQLNestedException: Cannot create
 JDBC driver of
 class '' for connect URL 'null' (Full stacktrace below)
 
 I have checked that the driver is there and I have re-read
 the configuration
 and documentation many times now but doesn't find anything
 wrong. What am I
 missing?
 
 Thanks in advance
 Roland Carlsson
 
 
  from GlobalNamingResources element in server.xml
 
 
 Resource name=jdbc/loginDB
auth=Container
type=javax.sql.DataSource/
 
   ResourceParams name=login/myDB
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 
 !-- Maximum number of dB connections in pool. Make sure you
  configure your mysqld max_connections large enough to handle
  all of your db connections. Set to 0 for no limit.
  --
 parameter
   namemaxActive/name
   value100/value
 /parameter
 
 !-- Maximum number of idle dB connections to retain in pool.
  Set to -1 for no limit.  See also the DBCP
 documentation on this
  and the minEvictableIdleTimeMillis configuration parameter.
  --
 parameter
   namemaxIdle/name
   value2/value
 /parameter
 
 !-- Maximum time to wait for a dB connection to become available
  in ms, in this example 10 seconds. An Exception is thrown if
  this timeout is exceeded.  Set to -1 to wait indefinitely.
  --
 parameter
   namemaxWait/name
   value1/value
 /parameter
 
 !-- MySQL dB username and password for dB connections  --
 parameter
  nameusername/name
  valuexxx/value
 /parameter
 parameter
  namepassword/name
  valueyyy/value
 /parameter
 
 !-- Class name for the official MySQL Connector/J driver --
 parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
 /parameter
 
 !-- The JDBC connection url for connecting to your MySQL dB.
  The autoReconnect=true argument to the url makes
 sure that the
  mm.mysql JDBC Driver will automatically reconnect if mysqld
  closed the connection.  mysqld by default closes idle connections
  after 8 hours.
  --
 parameter
   nameurl/name
   
 valuejdbc:mysql://192.168.x.x:/login?autoReconnect=true/value
 /parameter
   /ResourceParams
 
 
 - from web-app element in web.xml 
 
 
 resource-ref
   descriptionMysql database login/description
   res-ref-namejdbc/loginDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref
 
 -- Full stacktrace of the exception -
 org.apache.commons.dbcp.SQLNestedException: Cannot create
 JDBC driver of
 class '' for connect URL 'null'
 at 
 org.apache.commons.dbcp.BasicDataSource.createDataSource(Basic
 DataSource.jav
 a:780

Sv: Sv: JNDI DataSource GlobalResources problem

2004-10-26 Thread Roland Carlsson
Hi!

It took a while before i found a way to put the ResourceLink in a context
where I felt it would be appropiate (using autoinstall so i don't have them
in my conf-files). In server.xml I created a default-context and viola! It
worked! :-)

Thanks for your help!

Regards
Roland


Den 04-10-26 13.39, skrev David Smith [EMAIL PROTECTED]:

 Any place within the Context.../Context tags for your webapp is
 fine.  I don't believe these are validated against a DTD, so order isn't
 an issue.  The rest of your config looks good and should work.  Oh yeah
 -- and name your resources consistently.  If your name attribute in
 Resource is jdbc/loginDb, then it should be the same (case as well as
 spelling) in Resource-Params, ResourceLink, and resource-ref.
 
 --David
 
 Roland Carlsson wrote:
 
 Hello!
 
 Thanks for your answer. I have no ResourceLink in my configuration. I
 understand that I should put it a Context-tag but not where.
 
 How does this affect the configuration I already have done? Is the use of
 resource-ref and Resource correct?
 
 Thanks in advance
 Roland Carlsson
 
 
 Den 04-10-26 11.25, skrev Shinobu Kawai [EMAIL PROTECTED]:
 
  
 
 Hi Roland,
 

 
 I'm trying to use the JNDI DataSource to administer my
 database-connections.
 But it seems like the DataSource doesn't get the properties I set. I get
 the
 following error:
 
 org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
 class '' for connect URL 'null' (Full stacktrace below)
 
 I have checked that the driver is there and I have re-read the
 configuration
 and documentation many times now but doesn't find anything wrong. What am I
 missing?
  
 
  from GlobalNamingResources element in server.xml 
  
 
 snip /
 

 
 - from web-app element in web.xml 
  
 
 snip /
 

 
 -- Full stacktrace of the exception -
  
 
 snip /
 
 Have you set the ResourceLink?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/globalresources.html

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html#Resource
 %2
 0Links
 
 Best regards,
 -- Shinobu Kawai
 
 --
 Shinobu Kawai [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]



Sv: JNDI DataSource GlobalResources problem

2004-10-26 Thread Roland Carlsson
Thank you very much for your help. I appreciate it very much.

I feel that the GlobalNamingResources is the place to put my
DataSource-definition since there I can do it one time for all web-apps that
are going to come and go. If there are any change is our databases it is one
place to change. Thats why I ran for that alternative.

I'm looking forward to see the new documentation about DBCP in Tomcat.

Regards
Roland Carlsson


Den 04-10-26 14.58, skrev Steve Kirk [EMAIL PROTECTED]:

 
 This question illustrates (IMHO) probably the biggest issue of confusion
 with regard to DBCP - that is, there are several XML elements that you can
 potentially use, and several places that you can potentially put them.
 Specifically, the Resource, ResourceParams and ResourceLink elements
 can go in server.xml or your webapp's context config file, and
 resource-ref can go in your web.xml file.  Most people that have DBCP
 problems seem to have trouble working out elements to use, and where to put
 them.  A quick search on the web shows that this issue is widely
 misunderstood, and there is lots of misinformation out there.
 
 There are actually several possibilities that work.  I have not chosen the
 same possibility as you Roland, but hope I can help.  The how-to pages
 linked earlier by Shinobu and me are also good points of reference, and if
 you follow them _exactly_ it will work.  I belive that the simplest and
 clearest page to follow is this one:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html -
 I think the JDBC page contains at least one slightly misleading instruction.
 
 To answer your question, yes you have used resource-ref correctly and your
 Resource and ResourceParams elements seem OK.
 
 However, note that you have not followed the recommended approach in the
 how-to docs ;) because your Resource and ResourceParams are under
 GlobalNamingResources rather than your webapp's Context tag.  However
 that does not make it completely wrong.  Because they are under
 GlobalNamingResources at the moment, they are not visible to your webapp.
 To fix this, either they need to be moved under Context as recommended in
 the how-to, or you need to add a ResourceLink under your webapp's
 Context that refers to them.
 
 The Context that I am referring to should be either under Host in
 server.xml as described in the how-to docs, or in your webapp's context
 config file (see my example below).
 
 Strictly speaking, according to the JNDI how-to docs, I think your
 Resource tag is not needed because you have a resource-ref, which is
 equivalent, and you do not need both.  Having said that, I have tried it
 both with and without the Resource tag, and both approaches work as long
 as resource-ref is in web.xml.
 
 For what it's worth, (but not wanting to confuse you!) below is the approach
 that I have working.  I'm including this to illustrate that there is more
 than one way to configure DBCP.  Note that this is a different approach to
 yours, and also different to that described in the how-to docs on the TC
 site.  I took this approach via trial and error because I did not find the
 how-to docs until after I'd got pooling working.
 
 1. I have a resource-ref like yours in my
 CATALINA_HOME\webapps\webapp\WEB-INF\web.xml
 
 2. I created a context config file at
 CATALINA_HOME\conf\Catalina\localhost\mywebapp.xml, where mywebapp is the
 name of the webapp, which contains just my webapp's  Context element,
 which in turn contains Resource and ResourceParams very similar to
 yours.  That this Context tag is more usually included in server.xml,
 under the default localhost Host tag.  (By default your server.xml will
 not include a Context tag for your webapp, you have to add it inside the
 Context element for your webapp, or inside a DefaultContext element for the
 surrounding Host or Engine element, as described in the JNDI how-to
 page. The entire contents of my context config file are below:
 
 ?xml version='1.0' encoding='utf-8'?
 Context docBase=C:\jakarta-tomcat-5.0.27\webapps\mywebapp
 path=/mywebapp reloadable=true
 ResourceParams name=jdbc/mywebapp
 parameter
 namefactory/name
 
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 ... more parameters like yours ...
 /ResourceParams
 /Context
 
 3. I have no ResourceLink anywhere - I don't need it because I have not
 used GlobalNamingResources
 
 I know that this is a long-winded reply, but this is a tricky area and easy
 to get confused.  I've also been meaning to post this to the list for a few
 months, having spent days learning it.  Hope this helps you and others :)
 
 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Tuesday 26 October 2004 12:09
 To: TomcatUsers
 Subject: Sv: JNDI DataSource GlobalResources problem
 
 
 Hello!
 
 Thanks for your answer. I have no ResourceLink in my configuration. I
 understand that I should put it a Context-tag but not where.
 
 How does this affect

Sv: Default User with JDBC Realm

2004-10-25 Thread Roland Carlsson
Hi Mark!

I'll guess that this quailfies as a quick and dirty solution but how about
trying to make a programatic login in your login.htm page. Have the page
do a request (response.sendRedirect or something) to the j_security_check
with some Anonomuys authentication.

Regards
Roland Carlsson




Den 04-10-24 20.32, skrev Mark Doppelfeld [EMAIL PROTECTED]:

 Because that would mean to maintain a lot of urls which are public (but
 don't) belong to the same sub url (like /public/... and /protected/...)
 
 QM wrote:
 
 On Sun, Oct 24, 2004 at 07:27:42PM +0200, Mark Doppelfeld wrote:
 : is there any way to have an Default User authenticated vs the JDBC Realm.
 : Our custom wants to have the user guest logged in by default, and you
 : can then 'login' with your credentials via an explicit link within the
 : webapp.
 
 Why not just make the guest-related areas public?
 
 -QM
 
  
 
 
 -
 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]



Sv: Webapp don't start after shutdown

2004-10-25 Thread Roland Carlsson
Hi again!

I found out why tomcat is using the path of my workstation instead of the
server as context path. It is a feature of Netbeans to put a file in the
Manifest-folder of the webapp with the path to the files and contextpath.

So it turns out that it had nothing to do with tomcat behaving strange.

Sorry for the trouble

Regards
Roland Carlsson


Den 04-10-22 20.16, skrev Roland Carlsson [EMAIL PROTECTED]:

 Hi!
 (I'm home now so it is another email-adress)
 I think that I have found another lead to why tomcat doesn't do right with
 my web-apps. In the web.xml in the %tomcat-home%/conf/Catalina/mydomain ..
 there is a context path... and of some freak reason the path to the files
 are the one that I use on my workstation and not the path to where
 tomcat-manager save the .war and unpacks it to. No wonder why tomcat don't
 find the files after a restart of tomcat.
 
 I'm going to take weekend now but if anyone has any ideas why tomcat tries
 to use the path from the uploading client instead of the path on the server
 I'd be happy to hear about it.
 
 Thanks you very much!
 
 Regards
 Roland Carlsson
 
 
 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, October 22, 2004 3:58 PM
 Subject: RE: Webapp don't start after shutdown
 
 
 
 Hi,
 
 Then I run the bin/shutdown.sh script and bin/startup.sh
 
 Are you sure shutdown is completed properly, i.e. the JVM process is
 gone?
 
 I attempt to access the web-app and only get 404 errors.
 
 Are there any errors or startup?  If so, please post the relevant logs
 and/or configuration information.  Is the context information for your
 deployed webapp saved correctly?
 
 Yoav
 
 
 
 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: JDBCRealm

2004-10-24 Thread Roland Carlsson
Thanks for your answer!
Well, since I can't find any way to configure the Admin to use anything but 
the Memory realm ( no way to change the realm class) so it seems like it's 
going to be hard to use it to administer the JDBCRealm.

And about the reply to an old message, I was unaware of the mailinglist 
keeping track of messages that way so that if I changed the subject and body 
of a message it still could keep track of it. Just of curiosity, how do it 
do that?

Regards
Roland Carlsson
- Original Message - 
From: QM [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, October 24, 2004 2:42 AM
Subject: Re: JDBCRealm


On Sat, Oct 23, 2004 at 07:05:58PM +0200, Roland Carlsson wrote:
: In the memoryRealm I can define groups with a set of roles so that I 
don't
: have to give every user the same set over and over again. Is this 
possible
: so solve with the built-in JDBCRealm?

I can't say for certain, but I see no notion of a group column/setup
in the JDBCRealm docs... so likely not.
: Is it possible to use the Admin-tool to administer a JDBCRealm?
I don't use the admin app, so I can't answer this.  Why not try it?
btw, please post a *new* message when writing to the list.  Replying to
an old (unrelated) message confuses thread-aware mailers, which makes
your question harder to find (and thus answer).
-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]

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


Re: JDBCRealm

2004-10-24 Thread Roland Carlsson
I also thought that it would be possible to admin another kind of realms but 
since I didn't found a way I asked to find out if that really could be the 
case (It has happed that I missed things in the documentation :-D ). I'm 
using Tomcat 5.0.28 on MacOsX.

Regards
Roland
- Original Message - 
From: QM [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, October 24, 2004 2:45 PM
Subject: Re: JDBCRealm


On Sun, Oct 24, 2004 at 11:58:29AM +0200, Roland Carlsson wrote:
: Well, since I can't find any way to configure the Admin to use anything 
but
: the Memory realm ( no way to change the realm class) so it seems like 
it's
: going to be hard to use it to administer the JDBCRealm.

Really?  I figure I'd have seen someone mention that before now, if that
were the case.  What Tomcat version do you use?

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


JDBCRealm

2004-10-23 Thread Roland Carlsson
Hi!
I have to change realm from MemoryRealm to a JDBCRealm since we got the need 
to have everything in the database. So I have two questions that have 
arrised when trying out the JDBCRealm.

In the memoryRealm I can define groups with a set of roles so that I don't 
have to give every user the same set over and over again. Is this possible 
so solve with the built-in JDBCRealm?

Is it possible to use the Admin-tool to administer a JDBCRealm?
Thanks in advance
Roland Carlsson 

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


Re: New User needing urgent help

2004-10-23 Thread Roland Carlsson
Hi Steve!
I don't belive that you can import at root-level. You have to put your 
classes in a package (folder) that you then put in the web-inf/classes.

Regards
Roland
- Original Message - 
From: Steven R. Christensen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 23, 2004 7:42 PM
Subject: New User needing urgent help

Hello,  I am new to using Tomcat and am having difficulty getting an 
application to work.  Any
help would be greatly appreciated.  I have a web app that is giving me the 
following errors and can't seem to find why.  Thanks in advance for your 
help.

org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:6: 
'.' expected
import Account;
 ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:7: 
'.' expected
import Banner;
^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:8: 
'.' expected
import CalDate;
 ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:9: 
'.' expected
import Campaign;
  ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:10: 
'.' expected
import Dates;
   ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:11: 
'.' expected
import DB;
^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:12: 
'.' expected
import DetectOSBrowser;
 ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:13: 
'.' expected
import Environment;
 ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:14: 
'.' expected
import GetAdServlet;
  ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:15: 
'.' expected
import GetLinkServlet;
^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:16: 
'.' expected
import Javamail;
  ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:17: 
'.' expected
import Keys;
  ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:18: 
'.' expected
import LicenseCheck;
  ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:19: 
'.' expected
import LogError;
  ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:20: 
'.' expected
import LogonValidation;
 ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:21: 
'.' expected
import LogsCutover;
 ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:22: 
'.' expected
import Msgsend;
 ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:23: 
'.' expected
import Popwindow;
   ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:24: 
'.' expected
import Region;
^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:25: 
'.' expected
import Sendmail;
  ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:26: 
'.' expected
import servletUpload;
   ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:27: 
'.' expected
import SmartHello;
^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:28: 
'.' expected
import Stats;
   ^

Generated servlet error:
D:\christensen2.m6.net\Tomcat5\work\Catalina\localhost\advert_java\org\apache\jsp\setup_jsp.java:29: 
'.' expected
import Subscriber;
^

Generated servlet error:

Sv: jasper error compiling jsp

2004-10-22 Thread Roland Carlsson
Hi!


I'm not sure but I don't think you can import classes from the root-level.

Try to create a package and then
 import mypackage.Account;
Or 
 import mypackage.*;

Regards
Roland Carlsson



Den 04-10-22 09.03, skrev Sarath PS [EMAIL PROTECTED]:

 hi all ,
I get an an error  like this.
 
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: -1 in the jsp file: null
 
 Generated servlet error:
 [javac] Compiling 1 source file
 
 /usr/java/tomcat-5.0.25/work/Catalina/localhost/qwe/org/apache/jsp/index_jsp.j
 ava:6: '.' expected
 import Account;
   ^
 1 error
 
 
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.
 java:83)
 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315
)
 org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511
)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274
)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 
 
 at line 6 of index_jsp.java there is an import statement like this.
 
 import Account;
 
 The class Account is very much there. I tried to put it in WEB-INF/classes,
 WEB-INF/lib (after making a jar)
 
 But nothing worked. What must be wrong ?
 
 
 
 thanks in advance,
 
 Sar
 
 
 
 
 *
 *
 
 -
 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]



Database realm in tomcat admin

2004-10-22 Thread Roland Carlsson
Hi!

I have configured my tomcat to use a database realm. My problem is that I
have been using the tomcat admin to administer my users and feel no need to
replace that tool.

So is it possible to make tomcat-admin to use the database realm instead of
the MemoryRealm?

Thanks in advance
Roland Carlsson


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




Webapp don't start after shutdown

2004-10-22 Thread Roland Carlsson
Hi!

I having problem with tomcat not starting web-apps after a shutdown.

I deploy my web-app through the manager web-interface.
I try the web-app and it works perfectly.
Then I run the bin/shutdown.sh script and bin/startup.sh
I attempt to access the web-app and only get 404 errors.
I look in the manager and it says the web-app is stopped.
I try to start  the web-app but if fails.

The logfile says that either the file doesn't exist or isn't readable but
when I look the files are there.

It is the same user that runs the show so it seems kind of strange if tomcat
doesn't have rights enough to read files it has created by itself.

I'm running tomcat 5.0.28 on a Mac OS X server.

Please help me with this, it is rather urgent!

Thanks in advance 
Roland Carlsson



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



Re: Webapp don't start after shutdown

2004-10-22 Thread Roland Carlsson
Hi!
(I'm home now so it is another email-adress)
I think that I have found another lead to why tomcat doesn't do right with 
my web-apps. In the web.xml in the %tomcat-home%/conf/Catalina/mydomain .. 
there is a context path... and of some freak reason the path to the files 
are the one that I use on my workstation and not the path to where 
tomcat-manager save the .war and unpacks it to. No wonder why tomcat don't 
find the files after a restart of tomcat.

I'm going to take weekend now but if anyone has any ideas why tomcat tries 
to use the path from the uploading client instead of the path on the server 
I'd be happy to hear about it.

Thanks you very much!
Regards
Roland Carlsson
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, October 22, 2004 3:58 PM
Subject: RE: Webapp don't start after shutdown


Hi,
Then I run the bin/shutdown.sh script and bin/startup.sh
Are you sure shutdown is completed properly, i.e. the JVM process is
gone?
I attempt to access the web-app and only get 404 errors.
Are there any errors or startup?  If so, please post the relevant logs
and/or configuration information.  Is the context information for your
deployed webapp saved correctly?
Yoav

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]


Tomcat, JNDI, Active Directory

2004-10-15 Thread Roland Carlsson
Hi!
Is there anyone out there who would like to figure out what I am doing wrong
when trying to create a realm in Tomcat that is supposed to authenitcate
users over JNDI against an Active Directory server.

In my server.xml I have the following


Realm className=org.apache.catalina.realm.JNDIRealm
connectionURL=ldap://192.168.10.10:389;
alternateURL=ldap://192.168.10.10:389;
userBase=ou=Users,dc=alfa-moving,dc=se
userPattern=uid={0},ou=Users,dc=alfa-moving,dc=se
roleBase=ou=Users,dc=alfa-moving,dc=se
roleName=cn
debug=99 /

The log from tomcat says the following

004-10-14 16:04:04 JNDIRealm[Catalina]: Connecting to URL
ldap://192.168.10.10:389
2004-10-14 16:04:16 JNDIRealm[Catalina]: lookupUser(JKP_konf)
2004-10-14 16:04:16 JNDIRealm[Catalina]:
dn=uid=JKP_konf,ou=Users,dc=alfa-moving,dc=se
2004-10-14 16:04:16 JNDIRealm[Catalina]: validating credentials by binding
as the user
2004-10-14 16:04:16 JNDIRealm[Catalina]: binding as
uid=JKP_konf,ou=Users,dc=alfa-moving,dc=se
2004-10-14 16:04:16 JNDIRealm[Catalina]: bind attempt failed
2004-10-14 16:04:16 JNDIRealm[Catalina]: Username JKP_konf NOT successfully
authenticated

When I look in the gui of AD I se a tree like this

Active Directory Users and Computers
--+alfa-moving.se
+ Users
--+JKP_konf

So, what have I done wrong ... somehow it always seem to be me who does the
errors... .-)

Thanks in advance
Roland Carlsson

ps: This is a crosspost of what I posted in the JNDI-forum at java.sun.com
yesterday but got no answers (jet).
Sent using the Microsoft Entourage 2004 for Mac Test Drive.


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



Sv: Tomcat, JNDI, Active Directory

2004-10-15 Thread Roland Carlsson
Hello!

Thanks for your answer! I'll try to find a tool that can help me but I
appreciate some tips if anyone have used a good tool for this.

Regards
Roland Carlsson


Den 04-10-15 15.16, skrev QM [EMAIL PROTECTED]:

 On Fri, Oct 15, 2004 at 08:18:56AM +0200, Roland Carlsson wrote:
 : Is there anyone out there who would like to figure out what I am doing wrong
 : when trying to create a realm in Tomcat that is supposed to authenitcate
 : users over JNDI against an Active Directory server.
 
 Why not try this: authenticate against AD using something other than
 Tomcat.  It's easier to troubleshoot if you strip away the layers, then
 methodically test each one till you find the culprit.
 
 I don't know what tools AD would have for this; but many LDAP
 implementations have standalone tools for searching the directory.  You
 could fire up something of that nature to test the DN and such you have
 in your Tomcat config.
 
 -QM

Sent using the Microsoft Entourage 2004 for Mac Test Drive.


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



ActiveDirectory realm

2004-10-14 Thread Roland Carlsson
Hi!

I have tried to read the arcives about how to create an realm that uses
Active Directory as source but all questions that seems to fit me has no
answers. I need to be able to authenticate my users and authroize them in my
jsp-code (eg: request.isUserInRole ).

So, what libraries do I need to add?
What should I write in my server.xml-file. The structure of the AD is
com.mydomain/Users/JoeDoe (when looking in the gui-console).

Can I use form-based authentication?

Please do not refer to the LDAP mumbo-jumbo but rather use gui-elements from
the AD-console if there are anything you want me to find out about our
settings.

Thank you in advance
Roland Carlsson


Sent using the Microsoft Entourage 2004 for Mac Test Drive.


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



Sv: ActiveDirectory realm

2004-10-14 Thread Roland Carlsson
Hi Nikola!

Thank you for your answer.

Am I reading you correctly? Can't I  use Active Directory today to
Authenticate and Authorize people in my Tomcat-server without write a
server-side GSSAPI?

Isn't it possible through LDAP to do this? I have no need for SingleSignOn
etc. If we didn't already have had a AD directory I should have used a
database-realm.

Thank you in advance
Roland Carlsson



Den 04-10-14 11.24, skrev Nikola Milutinovic
[EMAIL PROTECTED]:

 Hi!
 
 I have tried to read the arcives about how to create an realm that uses
 Active Directory as source but all questions that seems to fit me has no
 answers. I need to be able to authenticate my users and authroize them in my
 jsp-code (eg: request.isUserInRole ).
 
 So, what libraries do I need to add?
 What should I write in my server.xml-file. The structure of the AD is
 com.mydomain/Users/JoeDoe (when looking in the gui-console).
 
 Can I use form-based authentication?
 
 Please do not refer to the LDAP mumbo-jumbo but rather use gui-elements from
 the AD-console if there are anything you want me to find out about our
 settings.

Sent using the Microsoft Entourage 2004 for Mac Test Drive.


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



Sv: Sv: ActiveDirectory realm

2004-10-14 Thread Roland Carlsson
Ok, so I can use LDAP to Authenticate and Authorize my users via AD. There
are no problem with them having to write there credentials again, there are
other solutions for that.

About security we have to use SSL anyway so I'll guess that it will solve
the problem. 

I'm trying with the following but get no information from the logs if there
actually are any activity going on... Or if there are anything wrong. But I
can't login. :-/

Realm className=org.apache.catalina.realm.JNDIRealm
connectionURL=ldap://[server ip]
userBase=CN=Users,dc=yage,dc=com
userSearch=(userPrincipalName={0})
userRoleName=member
roleBase=CN=Users,dc=yage,dc=com
roleName=cn
roleSearch=(member={0})
connectionName=CN=[username],CN=Users,DC=yage,DC=com
connectionPassword=[password]
roleSubtree=true
userSubtree=true /

(Adapted to our situation here (ipnumber, password, domain etc )

Thank you in advance
Roland Carlsson




Den 04-10-14 13.24, skrev Nikola Milutinovic
[EMAIL PROTECTED]:

 Roland Carlsson wrote:
 
 Hi Nikola!
 
 Thank you for your answer.
 
 Am I reading you correctly? Can't I  use Active Directory today to
 Authenticate and Authorize people in my Tomcat-server without write a
 server-side GSSAPI?
 
 Isn't it possible through LDAP to do this? I have no need for SingleSignOn
 etc. If we didn't already have had a AD directory I should have used a
 database-realm.
 
 The answer is not so simple. It depends on what you actually want to do.
 And, yes, you can use LDAP. I believe there is a LDAP realm sample in
 Tomcat's docs.
 
 Authentication is done via an authentication mechanism. The web knows
 several mechanisms - protocols between web server and web client:
 
 - Basic: user/pass is sent in HTTP headers, Base64 encoded
 - Digest: digest algorithm (MD5?) is used, with pass as shared secret
 - Certificate: SSL is used and client-side certificate identifies user
 - Negotiate: a.k.a. SPNEGO, Kerberos tickets are used to authenticate
 - Custom: some systems offered Krb tickets in cookies
 
 Now, Basic is simple and can be relayed, in other words, the web
 server can stand in between a client and authentication service, like
 SQL database, LDAP directory, locally stored user/pass, etc.
 
 Digest is, AFAIK, not relayable, since the server MUST have a copy of
 the shared secret (password) in order to check the digest of the
 returned token. Token is created by the server, sent to the client, who
 makes a digest, using password as salt and returns it to the server. For
 that reason Digest authentication requires server to have it's own
 plaintext storage of user credentials.
 
 Certificate is fine, if you have them and can make an effort to
 maintain the certificate infrastructure (which is no simple task).
 
 Negotiate has come into the picture with the advance of MS ADS, since
 it uses Kerberos as a primary authentication mechanism. In this setup
 all servers offering some service (SMTP, IMAP4, HTTP) must be registered
 with the Kerberos KDC (Key Distribution Center), where a Kerberos
 service key will be issued to that service. In case of HTTP, the key
 principal is for instance HTTP/[EMAIL PROTECTED].
 
 If a user logs onto ADS, that user will get a TGT token from KDC and
 will be issued a ticket for the HTTP service on *that* server. Server
 will check the token and client will check server's return token, so, in
 a tripple handshake, both server and client will be sure whom they are
 talking about.
 
 What this amounts to is that with Kerberos setup, you have a secure
 authentication mechanism (Kerberos encrypts auth traffic) and the actual
 authentication is performed in one place - the KDC. This is known as
 SingleSignOn - you log onto the network, not particular service.
 
 With LDAP you can get close to this. Yes, user credentials are in one
 place, the ADS. Users will have to type their user/pass, unlike in
 Kerberos setup. Yes, it is the same user/pass as the one used to log
 onto ADS. So far, so good. But, no, Basic authentication mech (the
 only one left, since Digest and others are non-applicable) does not
 offer any encryption. And users have to type user/pass for every realm.
 
 Of course, you can run BASIC(via LDAP) over SSL, but that has a CPU
 power price to it.
 
 Nix.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

Sent using the Microsoft Entourage 2004 for Mac Test Drive.


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



Multiple Host (no apache or iis)

2004-03-12 Thread Roland Carlsson
Hi!
I have tried to search for this but all hits seems to be about getting
tomcat to work together with apache or iis.

I can't figure out why my test1-domain doesn't answer at all. All I gets is
a 400-error. What bother me the most is that there is nothing in the
catalina.out log that indicats that there are something wrong so I don't
even know where to start look.

I post the Host-part of my server.xml below.

Thanks in advance
Roland Carlsson


Host name=test1.mydomain.com debug=0 appBase=webapps:
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=test1_access_log. suffix=.txt
pattern=combined resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=test1.log. suffix=.txt
timestamp=true/
/Host
Host name=localhost debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=localhost_access_log. suffix=.txt
pattern=combined resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=localhost_log. suffix=.txt
timestamp=true/
/Host



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



Fw: Log browser

2004-03-06 Thread Roland Carlsson



Hi!
I'm trying to find out what kind of browser the users of my site are using or atleast 
what they present them self as but I can't find an option in 
/tomcat-docs/config/valve.htm when configuring my logs. Can it not be done in 
tomcat5.0.18 or am I or the documentation missing something here?

Thanks in advance
Roland Carlsson

[RePost] webapp/path

2003-10-04 Thread Roland Carlsson
Hi!
 In my struts-config.xml i have the following in an action:

forward
  name=error
  path=/mywebapp/jsp/error.jsp/

Is there any way of telling struts to use the webapp-root instead of the
server-root so that I don't have to tell the name of the web-app... a
deployer might wanna deploy several instances of the web-app with different
names so i don't think it is a good idea to have to hard-code the path to
the webapp.

Thanks in advance
Roland Carlsson



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



Re: [RePost] webapp/path

2003-10-04 Thread Roland Carlsson
No, it doesn't? .. I'm gonna try again to be sure but the result I got when
moving the web-app from development to deployment was that paths got one
level to high. Webapp-root wasn't prefixed into the path.

Is there any configuration I missed?

Thanks in advance
Roland Carlsson

- Original Message - 
From: Patrick Willart [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, October 04, 2003 9:45 AM
Subject: RE: [RePost] webapp/path


 Roland, you don't. Struts prepends the webapp-root for it.

 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]
 Sent: Saturday, October 04, 2003 12:30 AM
 To: Tomcat Users List
 Subject: [RePost] webapp/path


 Hi!
  In my struts-config.xml i have the following in an action:
 
 forward
   name=error
   path=/mywebapp/jsp/error.jsp/

 Is there any way of telling struts to use the webapp-root instead of the
 server-root so that I don't have to tell the name of the web-app... a
 deployer might wanna deploy several instances of the web-app with
different
 names so i don't think it is a good idea to have to hard-code the path to
 the webapp.

 Thanks in advance
 Roland Carlsson



 -
 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: [RePost] webapp/path

2003-10-04 Thread Roland Carlsson
Most strange. I think the problem was the following.

I had deployed a version with an error in the path. When updating the file
was locked (winxp?) so it didn't get updated. Now when removing the web-app
before installing it I got error that a library couldn't be removed so I
stopped tomcat and removed it and then started and installed the web-app
again. Now it seems to work.

Thanks for all help
Regards
Roland Carlsson


- Original Message - 
From: Roland Carlsson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, October 04, 2003 10:24 AM
Subject: Re: [RePost] webapp/path


 No, it doesn't? .. I'm gonna try again to be sure but the result I got
when
 moving the web-app from development to deployment was that paths got one
 level to high. Webapp-root wasn't prefixed into the path.

 Is there any configuration I missed?

 Thanks in advance
 Roland Carlsson

 - Original Message - 
 From: Patrick Willart [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, October 04, 2003 9:45 AM
 Subject: RE: [RePost] webapp/path


  Roland, you don't. Struts prepends the webapp-root for it.
 
  -Original Message-
  From: Roland Carlsson [mailto:[EMAIL PROTECTED]
  Sent: Saturday, October 04, 2003 12:30 AM
  To: Tomcat Users List
  Subject: [RePost] webapp/path
 
 
  Hi!
   In my struts-config.xml i have the following in an action:
  
  forward
name=error
path=/mywebapp/jsp/error.jsp/
 
  Is there any way of telling struts to use the webapp-root instead of the
  server-root so that I don't have to tell the name of the web-app... a
  deployer might wanna deploy several instances of the web-app with
 different
  names so i don't think it is a good idea to have to hard-code the path
to
  the webapp.
 
  Thanks in advance
  Roland Carlsson
 
 
 
  -
  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]



webapp/path

2003-10-03 Thread Roland Carlsson
Hi!

In my struts-config.xml i have the following in an action:

forward
  name=error
  path=/mywebapp/jsp/error.jsp/

Is there any way of telling struts to use the webapp-root instead of the
server-root so that I don't have to tell the name of the web-app... a
deployer might wanna deploy several instances of the web-app with different
names.

Thanks in advance
Roland Carlsson




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



Login problem

2003-10-02 Thread Roland Carlsson
Hi!

I got a little problem using form-based login that I hope to get some help
with.

The problem is the following:

When using form-based authentication to get a nice looking login-page I am
forced to use tomcats authentication-methods. This would be nice if I hadn't
an apache infront of the tomcat since now apache doesn't know that the user
has logged in or not and even worse letting request that isn't forwarded to
tomcat (eg .jsp) through for resources that should be protected, resources
that tomcat protectes if the request gets though tomcat.

Is there a way to use form-based authestication and letting apache to know
what resources that should be protected?

Thanks in advance
Roland Carlsson



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



Security apache+tomcat

2003-09-19 Thread Roland Carlsson
Hi!

I know I must have missed this in the documentation somewhere but I can't
find it.

How do I configure apache to use the security-constraints of my web-app?

Example: I have a photo-album witch have two kinds of users. Admins and
everybody else. Among the admin-files there are some pictures and .html
files. But I don't want everybody to see those files... and I guess I should
not map .gif and .html to tomcat according to the manual since apache is the
star on that area... So, i'm a little confused here.

So.. where is the document I missed? .. Or can you simply write the
soluition down here?

Thanks in advance
Roland Carlsson



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



MemoryRealm and tomcat-users.xml

2003-07-18 Thread Roland Carlsson
Hi!

I have created a simple form-based authentication.

It works well with the predefined users (tomcat, role1) but it doesn't work
at all if I try to add users and roles in the
/%tomcat-root%/conf/tomcat-users.xml.

My server.xml is not changed from install so it defines a realm in the
Engine-element that according to the comments should be used for all webapps
in the server.

What have I missed?

Thanks in advance
Roland Carlsson



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



Re: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Roland Carlsson
Heres my tomcat-users.xml

tomcat-users
  role rolename=supervisor /
  role rolename=tomcat /
  role rolename=role1 /
  role rolename=manager /
  user name=tomcat password=tomcatroles=tomcat,supervisor  /
  user name=role1  password=tomcatroles=role1  /
  user name=both   password=tomcatroles=tomcat,role1   /
  user name=test password=test roles=supervisor,manager /
/tomcat-users


and a part of my web.xml

security-constraint
web-resource-collection
web-resource-nameSecurity test/web-resource-name
url-pattern/afile.jsp/url-pattern
http-methodPOST/http-method
http-methodGET/http-method

/web-resource-collection

auth-constraint
role-namesupervisor/role-name
/auth-constraint

user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

login-config
auth-methodFORM/auth-method

form-login-config
form-login-page/login.html/form-login-page
form-error-page/error.html/form-error-page
/form-login-config

/login-config
security-role
role-namesupervisor/role-name
/security-role

Regards
Roland

- Original Message - 
From: Abid Ali Teepo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 12:59 PM
Subject: RE: MemoryRealm and tomcat-users.xml


Hi

Don't you have to add the roles  in your web.xml under the tag
security-constraint. And there has to be matching roles in auth-constraint
and security-role if you haven't done this...it could be the problem ...

Abid

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED]
Sent: 18. juli 2003 12:52
To: Tomcat Users List
Subject: MemoryRealm and tomcat-users.xml


Hi!

I have created a simple form-based authentication.

It works well with the predefined users (tomcat, role1) but it doesn't work
at all if I try to add users and roles in the
/%tomcat-root%/conf/tomcat-users.xml.

My server.xml is not changed from install so it defines a realm in the
Engine-element that according to the comments should be used for all webapps
in the server.

What have I missed?

Thanks in advance
Roland Carlsson



-
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: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Roland Carlsson
Yes, i'm only testing with one file, the problem is that I can't get tomcat
to use the tomcat-users.xml so that I can login with user test.

Regards
Roland Carlsson

- Original Message - 
From: Abid Ali Teepo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 1:13 PM
Subject: RE: MemoryRealm and tomcat-users.xml


It looks correct to me ... your url-pattern will only trigger on that
specific file... but i guess you know that ..

Abid

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED]
Sent: 18. juli 2003 13:06
To: Tomcat Users List
Subject: Re: MemoryRealm and tomcat-users.xml


Heres my tomcat-users.xml

tomcat-users
  role rolename=supervisor /
  role rolename=tomcat /
  role rolename=role1 /
  role rolename=manager /
  user name=tomcat password=tomcatroles=tomcat,supervisor  /
  user name=role1  password=tomcatroles=role1  /
  user name=both   password=tomcatroles=tomcat,role1   /
  user name=test password=test roles=supervisor,manager /
/tomcat-users


and a part of my web.xml

security-constraint
web-resource-collection
web-resource-nameSecurity test/web-resource-name
url-pattern/afile.jsp/url-pattern
http-methodPOST/http-method
http-methodGET/http-method

/web-resource-collection

auth-constraint
role-namesupervisor/role-name
/auth-constraint

user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

login-config
auth-methodFORM/auth-method

form-login-config
form-login-page/login.html/form-login-page
form-error-page/error.html/form-error-page
/form-login-config

/login-config
security-role
role-namesupervisor/role-name
/security-role

Regards
Roland

- Original Message - 
From: Abid Ali Teepo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 12:59 PM
Subject: RE: MemoryRealm and tomcat-users.xml


Hi

Don't you have to add the roles  in your web.xml under the tag
security-constraint. And there has to be matching roles in auth-constraint
and security-role if you haven't done this...it could be the problem ...

Abid

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED]
Sent: 18. juli 2003 12:52
To: Tomcat Users List
Subject: MemoryRealm and tomcat-users.xml


Hi!

I have created a simple form-based authentication.

It works well with the predefined users (tomcat, role1) but it doesn't work
at all if I try to add users and roles in the
/%tomcat-root%/conf/tomcat-users.xml.

My server.xml is not changed from install so it defines a realm in the
Engine-element that according to the comments should be used for all webapps
in the server.

What have I missed?

Thanks in advance
Roland Carlsson



-
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: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Roland Carlsson
I have restarted the whole computer a couple of times now. I guess that I
have to re-install tomcat, a later version and try with it. I have 4.0.6
that came with netbeans 3.5.

Regards
Roland Carlsson
- Original Message - 
From: Mike Curwen [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 4:02 PM
Subject: RE: MemoryRealm and tomcat-users.xml


 And you restart Tomcat after changing tomcat-user.xml ?


  -Original Message-
  From: Roland Carlsson [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 18, 2003 6:21 AM
  To: Tomcat Users List
  Subject: Re: MemoryRealm and tomcat-users.xml
 
 
  Yes, i'm only testing with one file, the problem is that I
  can't get tomcat to use the tomcat-users.xml so that I can
  login with user test.
 
  Regards
  Roland Carlsson
 
  - Original Message - 
  From: Abid Ali Teepo [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, July 18, 2003 1:13 PM
  Subject: RE: MemoryRealm and tomcat-users.xml
 
 
  It looks correct to me ... your url-pattern will only trigger
  on that specific file... but i guess you know that ..
 
  Abid
 
  -Original Message-
  From: Roland Carlsson [mailto:[EMAIL PROTECTED]
  Sent: 18. juli 2003 13:06
  To: Tomcat Users List
  Subject: Re: MemoryRealm and tomcat-users.xml
 
 
  Heres my tomcat-users.xml
 
  tomcat-users
role rolename=supervisor /
role rolename=tomcat /
role rolename=role1 /
role rolename=manager /
user name=tomcat password=tomcat
  roles=tomcat,supervisor  /
user name=role1  password=tomcatroles=role1
  /
user name=both   password=tomcat
  roles=tomcat,role1   /
user name=test password=test
  roles=supervisor,manager / /tomcat-users
 
 
  and a part of my web.xml
 
  security-constraint
  web-resource-collection
  web-resource-nameSecurity test/web-resource-name
  url-pattern/afile.jsp/url-pattern
  http-methodPOST/http-method
  http-methodGET/http-method
 
  /web-resource-collection
 
  auth-constraint
  role-namesupervisor/role-name
  /auth-constraint
 
  user-data-constraint
  transport-guaranteeNONE/transport-guarantee
  /user-data-constraint
  /security-constraint
 
  login-config
  auth-methodFORM/auth-method
 
  form-login-config
  form-login-page/login.html/form-login-page
  form-error-page/error.html/form-error-page
  /form-login-config
 
  /login-config
  security-role
  role-namesupervisor/role-name
  /security-role
 
  Regards
  Roland
 
  - Original Message - 
  From: Abid Ali Teepo [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, July 18, 2003 12:59 PM
  Subject: RE: MemoryRealm and tomcat-users.xml
 
 
  Hi
 
  Don't you have to add the roles  in your web.xml under the
  tag security-constraint. And there has to be matching roles
  in auth-constraint and security-role if you haven't done
  this...it could be the problem ...
 
  Abid
 
  -Original Message-
  From: Roland Carlsson [mailto:[EMAIL PROTECTED]
  Sent: 18. juli 2003 12:52
  To: Tomcat Users List
  Subject: MemoryRealm and tomcat-users.xml
 
 
  Hi!
 
  I have created a simple form-based authentication.
 
  It works well with the predefined users (tomcat, role1) but
  it doesn't work at all if I try to add users and roles in the
  /%tomcat-root%/conf/tomcat-users.xml.
 
  My server.xml is not changed from install so it defines a
  realm in the Engine-element that according to the comments
  should be used for all webapps in the server.
 
  What have I missed?
 
  Thanks in advance
  Roland Carlsson
 
 
 
  -
  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]
 


 -
 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: Internal Server Configuration Error

2002-11-18 Thread Roland Carlsson
Have you tried to look at line 437 in your http-conf. Verified that the path
to libc.so.6 is correct? One not that qualified guess could be that it is
something wrong with that.

Check where the libc.so.6 is in your filesystem and then verify with line
437 in the http-conf. If you doesn't find the libc.so.6 or the path is
different from what the http.conf says you have found the error.

Regards
Roland

- Original Message -
From: Marc [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 4:08 PM
Subject: Internal Server Configuration Error


 Hi everybody!!!

 I'm trying to configure tomcat with apache. When I try to load the
 mod_jk.so library in apache, I get this error message:

 Syntax error on line 437 of /usr/local/etc/httpd/conf/httpd.conf: Cannot
 load /usr/home/parcbit/usr/local/etc/httpd/modules/mod_jk.so into
 server: Shared object libc.so.6 not found


 Any ideas???

 Thank you all!


 Marc




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




RequestDispatcher

2002-10-14 Thread Roland Carlsson

Hi!
I got a problem with the RequestDispatcher. I'm trying to make a simple framwork to 
include jsp-pages as components into a template-jsp. But I doesn't get the pages 
nested the way I'd like it. Could anyone please explain why the RequestDispatcher puts 
page2 before page1 instead of inside page1.

Thanks in advance
Roland Carlsson


Setup:
Apache 1.3.22
Tomcat 4
Windows Nt4 sp5

Example and source:

Imagine these two jsp-files.

-- page one---

test1
%
Machine m = Machine.getInstance();
m.sub(request, response, 1);
%
test1 end

- page two 

test2
test2 end

-- resultpage ---

test2
test2 end
test1
test1 end

 what I expeced 

test1
test2
test2 end
test1 end

- Source of Machine.sub() -

  public void sub(HttpServletRequest request, HttpServletResponse response, int i){
try{
// Get a database connection
// FixMe: get from a pool
Class.forName(oracle.jdbc.driver.OracleDriver);
StringBuffer sb = new StringBuffer();
sb.append(jdbc:oracle:thin:);
sb.append();
sb.append(/);
sb.append();
sb.append(:::);
sb.append();
Connection conn = DriverManager.getConnection(sb.toString());
  
  // Get a Component from the request
  Component oldComp = (Component) request.getAttribute(_komponent);
  // Get Children from the component
  java.util.ArrayList al=  oldComp.getChildren(conn);
  // Get the Component we want for this request
  Component newComp = (Component) oldComp.getChildren(conn).get(i);
  // Populate the child
  newComp.sql_select(conn);
  // Set the child into the request so it will be parent for sub-components
  request.setAttribute(_komponent, newComp);
  // Include a sub-component into the page
  request.getRequestDispatcher(newComp.getUrl()).include(request, response);
  // Restore state 
  request.setAttribute(_komponent, oldComp);
  // Release db
  conn.close();
}catch(Exception e){
  e.printStackTrace();
}finally{
  
}
  }


Re: RequestDispatcher

2002-10-14 Thread Roland Carlsson

Hi again!
It seems like the problem is related to buffers since it resolved itself
when I added a out.flush() before calling the sub-page.

I don't know if this qualify as a bug? It sure is annoying that data can
come out in a different order than the pagelayout would indicate.

Regards
Roland Carlsson

- Original Message -
From: Roland Carlsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 14, 2002 9:48 AM
Subject: RequestDispatcher


Hi!
I got a problem with the RequestDispatcher. I'm trying to make a simple
framwork to include jsp-pages as components into a template-jsp. But I
doesn't get the pages nested the way I'd like it. Could anyone please
explain why the RequestDispatcher puts page2 before page1 instead of inside
page1.

Thanks in advance
Roland Carlsson


Setup:
Apache 1.3.22
Tomcat 4
Windows Nt4 sp5

Example and source:

Imagine these two jsp-files.

-- page one---

test1
%
Machine m = Machine.getInstance();
m.sub(request, response, 1);
%
test1 end

- page two 

test2
test2 end

-- resultpage ---

test2
test2 end
test1
test1 end

 what I expeced 

test1
test2
test2 end
test1 end

- Source of Machine.sub() -

  public void sub(HttpServletRequest request, HttpServletResponse response,
int i){
try{
// Get a database connection
// FixMe: get from a pool
Class.forName(oracle.jdbc.driver.OracleDriver);
StringBuffer sb = new StringBuffer();
sb.append(jdbc:oracle:thin:);
sb.append();
sb.append(/);
sb.append();
sb.append(@:::);
sb.append();
Connection conn = DriverManager.getConnection(sb.toString());

  // Get a Component from the request
  Component oldComp = (Component) request.getAttribute(_komponent);
  // Get Children from the component
  java.util.ArrayList al=  oldComp.getChildren(conn);
  // Get the Component we want for this request
  Component newComp = (Component) oldComp.getChildren(conn).get(i);
  // Populate the child
  newComp.sql_select(conn);
  // Set the child into the request so it will be parent for
sub-components
  request.setAttribute(_komponent, newComp);
  // Include a sub-component into the page
  request.getRequestDispatcher(newComp.getUrl()).include(request,
response);
  // Restore state
  request.setAttribute(_komponent, oldComp);
  // Release db
  conn.close();
}catch(Exception e){
  e.printStackTrace();
}finally{

}
  }


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




Session and IP

2002-08-14 Thread Roland Carlsson

Hi!
I'm trying to trace a strange behavior from a couple of error reports from
the users of a system.

The problem is that they seems to share the same session on our server.
Different computers, on different location, sharing a public ip-number
(corporate intranet through VPN to a single internet-node).

The company has IE4 as their default browser.

My questions are:

Is it possible that tomcat let those users share the same session since they
share the same public IP-number? Under what circumstances would that
behavior occur?

Thanks in advance
Roland Carlsson


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




Re: Session and IP

2002-08-14 Thread Roland Carlsson

I forgot to tell what my server runs:

Jsdk 1.4.0
Tomcat 4.0.4
Apache 1.3.23
Windows NT 4 sp6

Thanks in advance
Roland

- Original Message -
From: Roland Carlsson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 11:19 AM
Subject: Session and IP


 Hi!
 I'm trying to trace a strange behavior from a couple of error reports from
 the users of a system.

 The problem is that they seems to share the same session on our server.
 Different computers, on different location, sharing a public ip-number
 (corporate intranet through VPN to a single internet-node).

 The company has IE4 as their default browser.

 My questions are:

 Is it possible that tomcat let those users share the same session since
they
 share the same public IP-number? Under what circumstances would that
 behavior occur?

 Thanks in advance
 Roland Carlsson


 --
 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: Session and IP

2002-08-14 Thread Roland Carlsson

Thanks for your answer.

We are not using url-encoding, only cookies.

Is it possible that a proxy can catch the page and fool the cookie system?
We have not set any commands to proxys but the default that tomcat uses?

Thanks
Roland Carlsson


- Original Message -
From: Andreas Mohrig [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 11:31 AM
Subject: RE: Session and IP


 Afaik tomcat uses either cookies or url-encoding to get the session-id
from
 the users requesting a resource, which has nothing to do with the ip
 address. The only circumstances I could imagine therefore are two
differente
 browsers having installed the same session-cookie (which is quite unlikely
 and would require the users to actively copy those cookie from one machine
 to the other) or (which is much more likely) two users using the same
 encoded urls. This might happen if one user sends another the complete(!)
 link containing the session id by copying it out of the address-field of
his
 browser, e.g.:


http://www.yourserver.com/yourcontext/someresource.jsp;jsessionid=C21CC5E4A5
 890818B3E56426925E86F9

 This would let the other user share the same session as long as it has not
 timed out.

 best regards

 Andreas Mohrig

 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 11:20 AM
 To: Tomcat Users List
 Subject: Session and IP


 Hi!
 I'm trying to trace a strange behavior from a couple of error reports from
 the users of a system.

 The problem is that they seems to share the same session on our server.
 Different computers, on different location, sharing a public ip-number
 (corporate intranet through VPN to a single internet-node).

 The company has IE4 as their default browser.

 My questions are:

 Is it possible that tomcat let those users share the same session since
they
 share the same public IP-number? Under what circumstances would that
 behavior occur?

 Thanks in advance
 Roland Carlsson


 --
 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: Session and IP

2002-08-14 Thread Roland Carlsson

Thanks for your answer.

We have now put a header with nocache. One of the users that have reported
the error of getting someone else data says that it works like it should so
it seems like if the problem was in a proxy.

I would like to ask for tomcat as default to uses nocache since that is the
behavior at least I assume that a dynamic webserver to have. But I'll guess
that there are arguments to not to do that. But to me it seems more
logically to tell when to allow caching then when not to since the reason to
use dynamic webservers are that the pages changes.

Thanks again all who have helped!

Roland Carlsson

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 12:35 PM
Subject: AW: Session and IP


 What makes you think that they share the session ?

 In mosts cases I have seen in the past this kind
 of problems came from the application that stored
 something in a way that wasn't session safe.

 On additional type of problem:
 Pages with personalized data can sometimes be cached
 by proxies, so make shure that you disable the caching
 by setting the apropriate headers.

  -Ursprüngliche Nachricht-
  Von: Roland Carlsson [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 11:20
  An: Tomcat Users List
  Betreff: Session and IP
 
  The problem is that they seems to share the same session on
  our server.

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




Oracle 8.1.7 JDBC classes

2002-08-02 Thread Roland Carlsson

Hi!
Last night we upgraded our Oracledatabase from 8.1.5 to 8.1.7 in an attempt to avoid a 
bug. The installation went fine but when I tried to get Tomcat to access the database 
through the new drivers it said that it couldn't find the driver.

I renamed them to .jar from .zip like I did with the 8.1.5 driver, I placed them in 
the same directory as (%catalina_home%/lib) where the 8.1.5 driver where. 

So my question is:

Why doesns't tomcat recognize the new drivers? I need suggestions since I don't know 
where to start to look right now. 

 The libary is fine since it works nicely in Forte4J.

My setup are:

Apache 1.3.23
Tomcat 4.0.3
WinNT 4 sp 6

Thanks in advance
Roland Carlsson




Re: Oracle 8.1.7 JDBC classes

2002-08-02 Thread Roland Carlsson

What is the difference? It works with the 8.1.5 driver in
%catalina_home%/lib ??
But I'm going to try and move it.

Thanks
Roland

ps: could you spell out the abrivation CMIIW, i don't recogice it.

- Original Message -
From: Charles Trader [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 10:29 AM
Subject: RE: Oracle 8.1.7 JDBC classes


 CMIIW, I think it's supposed to be in %catalina_home%/common/lib?

 Regards,
 Charles

  -Original Message-
  From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
  Sent: Friday, 2 August 2002 16:14
  To: [EMAIL PROTECTED]
  Subject: Oracle 8.1.7 JDBC classes
 
 
  Hi!
  Last night we upgraded our Oracledatabase from 8.1.5 to 8.1.7
  in an attempt to avoid a bug. The installation went fine but
  when I tried to get Tomcat to access the database through the
  new drivers it said that it couldn't find the driver.
 
  I renamed them to .jar from .zip like I did with the 8.1.5
  driver, I placed them in the same directory as
  (%catalina_home%/lib) where the 8.1.5 driver where.
 
  So my question is:
 
  Why doesns't tomcat recognize the new drivers? I need
  suggestions since I don't know where to start to look right now.
 
   The libary is fine since it works nicely in Forte4J.
 
  My setup are:
 
  Apache 1.3.23
  Tomcat 4.0.3
  WinNT 4 sp 6
 
  Thanks in advance
  Roland Carlsson
 
 

 --
 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: Oracle 8.1.7 JDBC classes

2002-08-02 Thread Roland Carlsson

I have tride to put the 8.1.7 version of the jdbcdriver (witch includes the
driver) in the %catalina_home%/common/lib/ but i still get a
ClassNotFoundException.

When putting the old 8.1.5 version there it works like a charm

Anyone, more suggestions of what may cause this behavior. I'm very puzzled
with this.

Thanks
Roland Carlsson

- Original Message -
From: Charles Trader [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 11:21 AM
Subject: RE: Oracle 8.1.7 JDBC classes


 I'm not sure what the difference is, from what I know (and implement), I
 should put the additional jars there. Anyone have a better explanation?

 ps:CMIIW = correct me if i'm wrong

  -Original Message-
  From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
  Sent: Friday, 2 August 2002 16:34
  To: Tomcat Users List
  Subject: Re: Oracle 8.1.7 JDBC classes
 
 
  What is the difference? It works with the 8.1.5 driver in
  %catalina_home%/lib ??
  But I'm going to try and move it.
 
  Thanks
  Roland
 
  ps: could you spell out the abrivation CMIIW, i don't recogice it.
 
  - Original Message -
  From: Charles Trader [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Friday, August 02, 2002 10:29 AM
  Subject: RE: Oracle 8.1.7 JDBC classes
 
 
   CMIIW, I think it's supposed to be in %catalina_home%/common/lib?
  
   Regards,
   Charles
  
-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
Sent: Friday, 2 August 2002 16:14
To: [EMAIL PROTECTED]
Subject: Oracle 8.1.7 JDBC classes
   
   
Hi!
Last night we upgraded our Oracledatabase from 8.1.5 to 8.1.7
in an attempt to avoid a bug. The installation went fine but
when I tried to get Tomcat to access the database through the
new drivers it said that it couldn't find the driver.
   
I renamed them to .jar from .zip like I did with the 8.1.5
driver, I placed them in the same directory as
(%catalina_home%/lib) where the 8.1.5 driver where.
   
So my question is:
   
Why doesns't tomcat recognize the new drivers? I need
suggestions since I don't know where to start to look right now.
   
 The libary is fine since it works nicely in Forte4J.
   
My setup are:
   
Apache 1.3.23
Tomcat 4.0.3
WinNT 4 sp 6
   
Thanks in advance
Roland Carlsson
   
   
  
   --
   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: Oracle 8.1.7 JDBC classes

2002-08-02 Thread Roland Carlsson

I'm using Tomcat 4.0.3.

If it's ignoring javax.sql then we have found the problem and I have to
upgrade. Is it possible to verify that 4.0.3 should have this problem?

Thanks
Roland

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 02, 2002 1:48 PM
Subject: AW: Oracle 8.1.7 JDBC classes


 Which tomcat version do you use.
 as far as I can remember at least one tomcat version
 ignored any jar in the tomcat directories that
 contained certain classes (java.sql.* I believe).

 Compare the contents of the two oracle jars to see if
 something changed in this respect.

  -Ursprüngliche Nachricht-
  Von: Roland Carlsson [mailto:[EMAIL PROTECTED]]
  Gesendet: Freitag, 2. August 2002 13:38
  An: Tomcat Users List
  Betreff: Re: Oracle 8.1.7 JDBC classes
 
  I have tride to put the 8.1.7 version of the jdbcdriver
  in the %catalina_home%/common/lib/ but i still get a
  ClassNotFoundException.
 
  When putting the old 8.1.5 version there it works like a charm
 

 --
 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: MySQL jdbc connection url

2001-11-01 Thread Roland Carlsson

It url should be formed like any other url so you should use  to separate name=value. 
Not ; as u have done

jdbc:mysql://localhot/db?user=namepassword=pw

Regards 
Roland Carlsson


- Original Message - 
From: Andrius [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 01, 2001 1:51 PM
Subject: MySQL jdbc connection url


 Hello,
 What's the correct MySQL jdbc connection url? I'm trying to setup
 jdbcRealm on tomcat 4.0.1,
 and using this url pattern :
 connectionURL=jdbc:mysql://localhost/authority?user=test;password=test
but it goes wrong - it says Invalid authorization exception: Access
 denied for user: 'test;password@host'.
 I've configured server side permissions properly (mySQL accepts using
 another client). thanx for any response.
 
 obj.
 


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




Re: newbie question

2001-09-05 Thread Roland Carlsson

Hi!
Perhaps if you have put all non gui-stuff in beans you can fairly easy write wrappers 
to these beans and then you only have to rewrite the calls to the beans to the new ejb 
instead of the old bean. If you have written scriptlets then you have to rewrite. 
But you should first think if you really need to make the move to ejb for the stuff 
you already written. The company i work for is still running a lot of asp-code despite 
the fact that we changed all development to java for two years ago. If it ain't 
broken, don't fix it.

Regards
Roland Carlsson

Ps: I'm sorry for not mastering english very well.


- Original Message - 
From: echaiguer abderrahim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 3:32 PM
Subject: newbie question


 
 
 Hi ,
 
 I just decided to move to the J2EE architecture. I was previously working 
 with Apache / Jserv . I was wondering if there is an easy
 to migrate all my servlets  to Tomcat without  a lot of code manipulation.
 
 Thanks,
 Abde
 




Re: Develop Application

2001-09-05 Thread Roland Carlsson

If you encounters a bug in any of the jdk/jre you might encounter problems. But if 
both are implemented correctly it should give you no problem. This is under the 
assumption that you wont do any native calls but stick to pure java.

Regards
Roland

- Original Message - 
From: Roberto B. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 4:41 PM
Subject: Develop Application


 I use a linux (debian) box with no graphical interface (x-window..). On this
 system I installed Apache, Tomcat 3.2.3 with some virtual host.
 I have moreover a win 2000 server box with Tomcat 3.2.3 installed, which
 works as stand alone server on port 8080.
 I want to develop (and test) my sites on windows (using address like this:
 www.myserver.com:8080/myapp ) in order to use the graphical interface and
 then.. when it is finished.. put my application under linux.
 
 My question is:
 Do I have to change anything to do this (put my jsp file from windows to
 linux)?
 
 Roberto.
 




Logging

2001-06-18 Thread Roland Carlsson

Hi!
I wonder if it's possible to put a servlet or bean to pre-process all or some of the 
requests that a tomcat-server will serv? The use I'm thinking of is customized logging 
to be able to track sessions much closer than the apache common log does without have 
put logging-code on every page that is requested.

Regards
Roland Carlsson





Re: Logging

2001-06-18 Thread Roland Carlsson

Well, tomcat are only in 3.2.2 and I'm looking at what I can do today. Do I have any 
options to to loggningcode into every page??

Thanks in advance
Roland Carlsson


- Original Message - 
From: Christopher Kirk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 11:04 AM
Subject: RE: Logging


 
 Best Approach:
 In the Servlet 2.3 spec (So Tomcat 4.0) you could use Filters.. a Filter may
 be run before or after a Servlet.. modifying what it sees, or what it
 returns. 
 
 
 - Chris.
 
  -Original Message-
  From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
  Sent: 18 June 2001 9:45
  To: [EMAIL PROTECTED]
  Subject: Logging
  
  
  Hi!
  I wonder if it's possible to put a servlet or bean to 
  pre-process all or some of the requests that a tomcat-server 
  will serv? The use I'm thinking of is customized logging to 
  be able to track sessions much closer than the apache common 
  log does without have put logging-code on every page that is 
  requested.
  
  Regards
  Roland Carlsson
  
  
 
 
 --
 
 NOTICE:  The information contained in this electronic mail transmission is
 intended by Convergys Corporation for the use of the named individual or
 entity to which it is directed and may contain information that is
 privileged or otherwise confidential.  If you have received this electronic
 mail transmission in error, please delete it from your system without
 copying or forwarding it, and notify the sender of the error by reply email
 or by telephone (collect), so that the sender's address records can be
 corrected.
 




Config: zip-files

2001-06-14 Thread Roland Carlsson

Hi!
I got a zip-library containing jdbc drivers. Where do I put this so it is accesseble 
to the whole server?

Thanks in advance
Roland Carlsson




Re: Config: zip-files

2001-06-14 Thread Roland Carlsson

That didn't help. Tomcat still can't find the driver. I have tried to put the 
zip-files in the TOMCAT_HOME/lib to but that didn't work either. Aren't there anywhere 
in the config-files where I can add the zip-library to the classpath?

Thanks in advance
Roland

- Original Message - 
From: ADAM FOWLER [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 2:06 PM
Subject: Re: Config: zip-files


 JAVA_HOME/jre/lib
 
 Adam.
 
 At 13:51 14/06/2001 +0200, you wrote:
 Hi!
 I got a zip-library containing jdbc drivers. Where do I put this so it is
 accesseble to the whole server?
 
 Thanks in advance
 Roland Carlsson
 
 
 
 
 Adam Fowler
 Second year Computer Science undergraduate
 University of Wales, Aberystwyth
 e-mail: [EMAIL PROTECTED]
 web: http://gucciboy.dyndns.org/aff9
 Every new beginning comes from some 
  other beginning's end
 
 




Re: Config: zip-files (dev pls look!)

2001-06-14 Thread Roland Carlsson

Renaming the zip to jar did the trick for me. 

If any developer are looking perphaps they can explain why tomcat doesn't support 
.zip-files (of academic interest).

Regards
Roland
- Original Message - 
From: Kershaw, David [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 2:32 PM
Subject: RE: Config: zip-files


 On my windows NT installation I had to resort to hardcoding the zip file
 into the classpath. This was the only way it worked. There is probably a
 correct way to do it. For example:
 
 Location
 C:\tomcat\jakarta-tomcat-3.2.1\lib\classes12.zip
 
 and 
 
 CLASSPATH = ...;C:\tomcat\jakarta-tomcat-3.2.1\lib\classes12.zip
 
 Dave
 
 -Original Message-
 From: ADAM FOWLER [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 14, 2001 8:06 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Config: zip-files
 
 
 JAVA_HOME/jre/lib
 
 Adam.
 
 At 13:51 14/06/2001 +0200, you wrote:
 Hi!
 I got a zip-library containing jdbc drivers. Where do I put this so it is
 accesseble to the whole server?
 
 Thanks in advance
 Roland Carlsson
 
 
 
 
 Adam Fowler
 Second year Computer Science undergraduate
 University of Wales, Aberystwyth
 e-mail: [EMAIL PROTECTED]
 web: http://gucciboy.dyndns.org/aff9
 Every new beginning comes from some 
  other beginning's end
 
 




Re: Config: zip-files (dev pls look!)

2001-06-14 Thread Roland Carlsson

Hmm.. I read the Servlet 2.2 spec today and missed that. Must get more coffee :-)

Thanks
Roland

- Original Message - 
From: Randy Layman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 2:10 PM
Subject: RE: Config: zip-files (dev pls look!)


 
 Section 9.4 of the Servlet 2.2 spec (page 44) states that
 WEB-INF/lib/*.jar is the location for Java Archives and does not mention any
 other resources.  Since .zip is not mentioned, if you used them in the lib
 folder then you could have a non-compliant webapp, which would make Tomcat a
 non-compliant web server, which would violate the whole purpose of a
 Reference implementation.
 
 Randy
 
 
  -Original Message-
  From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 14, 2001 8:37 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Config: zip-files (dev pls look!)
  
  
  Renaming the zip to jar did the trick for me. 
  
  If any developer are looking perphaps they can explain why 
  tomcat doesn't support .zip-files (of academic interest).
  
  Regards
  Roland
  - Original Message - 
  From: Kershaw, David [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, June 14, 2001 2:32 PM
  Subject: RE: Config: zip-files
  
  
   On my windows NT installation I had to resort to hardcoding 
  the zip file
   into the classpath. This was the only way it worked. There 
  is probably a
   correct way to do it. For example:
   
   Location
   C:\tomcat\jakarta-tomcat-3.2.1\lib\classes12.zip
   
   and 
   
   CLASSPATH = ...;C:\tomcat\jakarta-tomcat-3.2.1\lib\classes12.zip
   
   Dave
   
   -Original Message-
   From: ADAM FOWLER [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, June 14, 2001 8:06 AM
   To: [EMAIL PROTECTED]
   Subject: Re: Config: zip-files
   
   
   JAVA_HOME/jre/lib
   
   Adam.
   
   At 13:51 14/06/2001 +0200, you wrote:
   Hi!
   I got a zip-library containing jdbc drivers. Where do I 
  put this so it is
   accesseble to the whole server?
   
   Thanks in advance
   Roland Carlsson
   
   
   
   
   Adam Fowler
   Second year Computer Science undergraduate
   University of Wales, Aberystwyth
   e-mail: [EMAIL PROTECTED]
   web: http://gucciboy.dyndns.org/aff9
   Every new beginning comes from some 
other beginning's end