Re: A Little message for Carlos !!!!

2001-02-22 Thread qazwasyx

If it is just standard authentification,

I think you have 2 choices:

1) Integrate Tomcat with Apache and set up Apache to 
handle this (don't know how to do this)
2) Create an authentification object and keep 
authentification state in it. Check for it on the pages 
you want... You could keep usernames and p/w in a 
filem or a DB and authenticate against the list when 
loging in.

Is that what you had in mind?

Hello 

 I have the same problem than you, in configuring 
Tomcat. I want to protect some pages with
Login  password ... if someone have an solving for 
this, please forward it !!!

 Thanks  a lot 

 Lilian

 [EMAIL PROTECTED]





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




Re: RUNNING SERVLET

2001-02-22 Thread qazwasyx

Please don't use ALL CAPITALS

This list is mainly for problems and bugs, your issue 
seems to come from the lack of documentation reading. 
Please reade the guide that comes with tomcat, it takes 
less than 30 minutes and explains what needs to be 
done to deploy apps (servlets included) from Tomcat.

Regards,

Mike

HELLO EVERYBODY
I HAVE A PROBLEM I HAVE A PRODUCT WHICH IS 
RUNNING FINE ON JAVAWEBSERVER.
BUT I WANT TO RUN IT ON TOMCAT. I HAVE GIVEN THE 
URL IN THE JSPS AS
HTTP://LOCALHOST:8080/RAE_SERVLETS/SOMESERVLE
T
ANYBODY TELL ME WHAT SHOULD I DO TO RUN A 
SERVLET USING THIS URL
PLZ DO HELP ME SINCE IT IS VERY URGENT.
THANKS IN ADVANCE
VIKRAM

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




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




Re: Tomcat,Apache,Linux,Oracle 8i,JDBC connectivity

2001-02-20 Thread qazwasyx

If you REALLY have to use the below - no problem, I
would strongly suggest splitting up the web/db servers
onto 2 physically separate servers.

If you don't HAVE to, I would recommend:

1. Use FreeBSD, not linux.
2. Use mSQL or mySQL, there's less processing
overhead.
3. Tomcat 3.2.1 has performance improvements over
3.1. (3.3 is cleaner still, but I'm guesing you won't want
to use a milestone build)

Hope this helps,

Mike


Hi,
Using Apache 1.3.12; Tomcat 3.1 ; redhat linux 6.1;
oracle 8i
has anybody tried connecting to the oracle database
with jdbc using jsp?

Is it possible to work on these combinations.
What are the pros and cons of this combination.
We are going for the deployment of this configuration
for a portal
handling huge data and the users, so could you
please give some valuable
suggestions on this.
--
___
Prem M
Infiniti Infotech India Ltd
Email(s) : [EMAIL PROTECTED];[EMAIL PROTECTED]
Phone work: 91-080-5350805/5350521/5350512-14
http://www.i-three.com
___


Attachment: mprem.vcf
--
---
To unsubscribe, e-mail: tomcat-user-
[EMAIL PROTECTED]
For additional commands, email: tomcat-user-
[EMAIL PROTECTED]




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




Re: *** Referring to a file or a directory from inside a jsp/servlet or bean ???? ***

2001-02-20 Thread qazwasyx

Apparently,

The page attribute (as in jsp:forward page=”…”/ is
interpreted relative to the location of the current page if
it does not start with /. In other words the path is page-
relative. You can refer to pages in other directories
by /dir1/page1.jsp or ../dir1/page1.jsp or
dir1/page1.jsp. If starting with /, path is appended on
the end of the app dir (/dir1/page1.jsp will become
{tomcat_home}/webapps/yourapp/dir1/page1.jsp)

If your passing control onto beans, if I understand
correctly after you put your package in
{tomcat_home}/java, you access it by qualifying the full
package name, e.g.
com.xyz….beans.someFunc.SomeBean.

Hope this helps,

Mike

my web app directory structure is as follows:

webapps/myapp/..

If I have a jsp and a bean in the root directory, and
my bean refers to a file without a full path(ie. just the
file name, no absolute or relative path), where does it
loook for the ?
WAIT.
This happens in jsp/servlets AND beans.  With jsp
servlets the default directory should be the root
directory of the app.  The bean however seems to look
for a file with an unqualified path in the
/tomcat/bin/directory.

I just want some rules of thumb to follow when I am
using beans and jsp/servlets that read and write files.
How should I refer to these external files.  Where are
their default directories in the context I mentioned
above?





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




Re: How do you get Tomcat to build the tomcat-apache.conf?

2001-02-20 Thread qazwasyx

It does indeed build the file tomcat-apache.conf 
in "{TOMCAT_HOME}/conf/". Here's what mine looks like.

LoadModule jserv_module 
modules/ApacheModuleJServ.dll
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultPort 8007

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

Alias /examples "C:/tomcat/webapps/examples"
Directory "C:/tomcat/webapps/examples"
Options Indexes FollowSymLinks
/Directory
ApJServMount /examples/servlet /examples
Location "/examples/WEB-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/examples/WEB-INF/"
AllowOverride None
deny from all
/Directory
Location "/examples/META-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/examples/META-INF/"
AllowOverride None
deny from all
/Directory

Alias /admin "C:/tomcat/webapps/admin"
Directory "C:/tomcat/webapps/admin"
Options Indexes FollowSymLinks
/Directory
ApJServMount /admin/servlet /admin
Location "/admin/WEB-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/admin/WEB-INF/"
AllowOverride None
deny from all
/Directory
Location "/admin/META-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/admin/META-INF/"
AllowOverride None
deny from all
/Directory

Alias /iconnect "C:/tomcat/webapps/iconnect"
Directory "C:/tomcat/webapps/iconnect"
Options Indexes FollowSymLinks
/Directory
ApJServMount /iconnect/servlet /iconnect
Location "/iconnect/WEB-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/iconnect/WEB-INF/"
AllowOverride None
deny from all
/Directory
Location "/iconnect/META-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/iconnect/META-INF/"
AllowOverride None
deny from all
/Directory

Alias /iteration "C:/tomcat/webapps/iteration"
Directory "C:/tomcat/webapps/iteration"
Options Indexes FollowSymLinks
/Directory
ApJServMount /iteration/servlet /iteration
Location "/iteration/WEB-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/iteration/WEB-INF/"
AllowOverride None
deny from all
/Directory
Location "/iteration/META-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/iteration/META-INF/"
AllowOverride None
deny from all
/Directory

ApJServMount /servlet /ROOT
Alias /struts-documentation "C:/tomcat/webapps/struts-
documentation"
Directory "C:/tomcat/webapps/struts-documentation"
Options Indexes FollowSymLinks
/Directory
ApJServMount /struts-documentation/servlet /struts-
documentation
Location "/struts-documentation/WEB-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/struts-
documentation/WEB-INF/"
AllowOverride None
deny from all
/Directory
Location "/struts-documentation/META-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/struts-
documentation/META-INF/"
AllowOverride None
deny from all
/Directory

Alias /struts-example "C:/tomcat/webapps/struts-
example"
Directory "C:/tomcat/webapps/struts-example"
Options Indexes FollowSymLinks
/Directory
ApJServMount /struts-example/servlet /struts-example
Location "/struts-example/WEB-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/struts-example/WEB-
INF/"
AllowOverride None
deny from all
/Directory
Location "/struts-example/META-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/struts-example/META-
INF/"
AllowOverride None
deny from all
/Directory

Alias /struts-mytest "C:/tomcat/webapps/struts-mytest"
Directory "C:/tomcat/webapps/struts-mytest"
Options Indexes FollowSymLinks
/Directory
ApJServMount /struts-mytest/servlet /struts-mytest
Location "/struts-mytest/WEB-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/struts-mytest/WEB-
INF/"
AllowOverride None
deny from all
/Directory
Location "/struts-mytest/META-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/struts-mytest/META-
INF/"
AllowOverride None
deny from all
/Directory

Alias /struts-test "C:/tomcat/webapps/struts-test"
Directory "C:/tomcat/webapps/struts-test"
Options Indexes FollowSymLinks
/Directory
ApJServMount /struts-test/servlet /struts-test
Location "/struts-test/WEB-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/struts-test/WEB-INF/"
AllowOverride None
deny from all
/Directory
Location "/struts-test/META-INF/"
AllowOverride None
deny from all
/Location
Directory "C:/tomcat/webapps/struts-test/META-INF/"
AllowOverride None
deny from all
/Directory

Alias /template "C:/tomcat/webapps/template"
Directory "C:/tomcat/webapps/template"
Options 

Re: IIS 4.0 and Tomcat 3.1

2001-02-20 Thread qazwasyx

Victor

I'm guessing maybe you need to configure IIS to know 
what to do with JSP's. I take it you've already registered 
the DLL with NT/2K?

If this does not help, let me know, I'll dig further - been 
a while since I've worked with IIS on NT.

mogy po rysski - kak ly4she?

m

Hello all,

I have a problem on NT4.0 Server+SP6 with IIS4.0 

I have installed isapi_redirect.dll according to How-To 
information from
tomcat docs. On Personal Web Server (NTWS) it works 
ok, but at IIS I have a
problem.

Requests to servlets works ok (i.e. I have run 
standard example and received
some response). But when I ask for JSP page (from 
examples) I receive "Page
can not be displayed".

In IIS log I have "12:37:27 10.16.5.64 
GET /jakarta/isapi_redirect.dll -
200" for servlets and
"12:16:59 10.16.5.64 
GET /examples3/jsp/num/numguess.jsp - 500" for JSP. 

But then I go to Jakarta web port (8080), Everything is 
ok.

It seems that isapi filter do not direct JSP requests to 
Jakarta and tries
to process it by IIS.

Here is my uriworkermap.properties file :

/examples/*.jsp=ajp12
/examples/servlet/*=ajp12


May be it is well know problem, then just direct me to 
appropriate FAQ of
other resource.

WBR, Victor 




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




RE: Tomcat,Apache,Linux,Oracle 8i,JDBC connectivity

2001-02-20 Thread qazwasyx

I agree totally, mainly from the opint of view that no 
advice should be given without the knowledge of the 
requirement.

I was going out on a limb though, and guessing that 
since linux and tomcat were chosen, a cost-effective 
solutions was sought after.

Regards,

m

Mike,

I don't want to start an off-topic thread on this but #2 
is poor advice if you don't know what types of 
transactions are going to be
needed in the app. There is a reason Oracle is used 
by very large companies for very large databases.

AFAIK neither of mSQL nor mySQL support 
transactions nor a host of other "real" database 
features. I understand they are great for
dbs where, for the most part, all the users are doing is 
queries and not updates.

Also, while it makes sense that the missing features 
should make them quite fast there is evidence to cast 
doubt on that (at least
for multi-user environments) here: 
http://www.phpbuilder.com/columns/tim20001112.php3

 If you don't HAVE to, I would recommend:

 1. Use FreeBSD, not linux.
 2. Use mSQL or mySQL, there's less processing
 overhead.
 3. Tomcat 3.2.1 has performance improvements over
 3.1. (3.3 is cleaner still, but I'm guesing you won't 
want
 to use a milestone build)


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




tomcat on FreeBSD4.2

2001-02-16 Thread qazwasyx

Hi,
I'm having troubles to understand how really 
sessions are working.
I'm using a servlet to handle every client requests 
and I'm using
jsp
 session to display  various objects between 
frames, such as:

HttpSession session = req.getSession(false);
Toto toto = session.getAttribute("toto");
if (toto.getName() == "mike")
toto.setInfotoDisplay("Hi mike, waza?");
else if (toto.getName() == "alain")
toto.setInfotoDisplay("Tcho alain, ca boom?");
...
session.setAttribute("toto", toto);

My concern is that I really thought that the object I
get with "getAttribute" on sessions were attached
to the according user.
But apparently not, it looks like my object Toto is 
shared
amongst my clients and thus everything is f 
up ;-(

Any idea how I could stick a session per user?

thanx,

--mike


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




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




tomcat on FreeBSD4.2

2001-02-16 Thread qazwasyx

Is there really nobody out there who know how to install 
jdk1.3 and tomcat 3.2 or 4.0beta1 no FreeBSD 4.2?!

I have sent at least 5-6 messages to this group and 
have had no help.

I know nobody HAS to help, but ignoring people is just 
plain rude :)

Mike (aka desperate tomcatter) D

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




Re: tomcat on FreeBSD4.2

2001-02-16 Thread qazwasyx

Aaah! But not jdk1.3 and not Tomcat 3.2.1, which are 
the ones I'm interested in... :(

Thanks anyway!

Mike

On Fri, Feb 16, 2001 at 11:23:02AM +, 
[EMAIL PROTECTED] wrote:
 Is there really nobody out there who know how to 
install 
 jdk1.3 and tomcat 3.2 or 4.0beta1 no FreeBSD 4.2?!
 
 I have sent at least 5-6 messages to this group and 
 have had no help.
 
 I know nobody HAS to help, but ignoring people is 
just 
 plain rude :)

Na na na :-)

I'm running tomcat 3.1 (?) and jdk1.2 under FreeBSD 
4.2.
What are your questions?

 
 Mike (aka desperate tomcatter) D
 
-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
aachen.de

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




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




Re: How to make Tomcat as NT Service

2001-02-15 Thread qazwasyx

As far as I understand there is a bug with
jk_nt_service.exe, and it's won't start tomcat after you
install. (jk_nt_service.exe installs ok, but service will not
start).

If anyone out there knows I'm wrong, please tell me!

Mike

Hi everyone

I have told that this is an excellent way to get some
help. Basically I have
a got very simple question. I have installed Release
Build Tomcat v3.2.1. I
am able to get it up and running using the startup.bat
in the bin directory.
Now what I would like to know is how I could make
Tomcat as an NT Service. I
have got the 'jk_nt_service.exe' which I gather is used
to create this NT
service, however, I have not managed to understand
how I could do this.

I would appreciate if someone could help with this with
a step-by-step
method.

Many thanks in advanced
Pauline


- Original Message -
From: "Christian Rauh" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 15, 2001 4:06 PM
Subject: Help: database user authentication how-to.


Dear People,

I am totally confused on how to proceed with the user
authentication in
my web application. I will try to state my problem
briefly:

I have a web application that has FORM security. I
need to create a way
for users to create an account that gives them access
to the web
application. Optimally, the user/password/role info
should be stored in
a database.

How can this be done as closely as possible to the
servlet/jsp
specification? Is there a package written for this
somewhere? I found
something about JDBC real in the server.xml file, is it
what I seek?

Note that I also need this to be integrated with the
web engine (Apache
preferably).

I have seen that app servers like weblogics have a
user authentication
scheme exactly like the one I seek but I want a non-
proprietary, low
cost solution.

Any direction would be much appreciatted since I am
really not knowing
what to do regarding this matter.

Thanks in advance,

Christian Rauh

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




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




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




tomcat on FreeBSD4.2 problems (jdk1.3)

2001-02-12 Thread qazwasyx

I'm really struggling to install tomcat on FreeBSD 4.2 
running in linux compat mode.

I've *managed* to install jdk1.3, after changing one of 
the confs (I think) to point the wrapper the linux compat 
dir (instead of the native linux) - this was without the 
understanding of what I was doing, just following 
instructions someone sent me through a newsgroup. jdk 
runs ok now - compiles and runs java's.

I've *installed* tomcat, (downloaded from 
jakarta.apache.com) and it starts ok, but will not pickup 
http requests on the default 8080 and when I shut it 
down, a hotspot error comes up (can't remember - at 
work now, freebsd machine at home).

I've tried installing the tomcat port from a freshly 
installed collection I downloaded from the ftp.freebsd 
server, but when trying to make and download the jdk, 
it timed out. When I tried to run make again, a crc error 
or something simmilar was reported and the make 
aborted. I can't restart the install, when re-running 
make, the download wil not restart, and I can't find 
where make partially loaded the file...

I'm relatively new to UNIX, so I'm only doing what I can 
find and read, sometimes without understanding what it 
is exactly that I'm doing.

If you could give me some advice how I could get 
tomcat running (jdk1.3 seems to work ok) or point me 
in 
the right direction, list points to watch out for, etc - I 
would be very very greatful. I've had advice saying I 
should install jdk 1.1.8, rather than 1.3, but how would I 
un-install the 1.3 jdk? Also I've noticed Sun has 
1.3.0.01 out, should I install that instead?

Also, if anyone can either point me to a guide on 
installing patches (diff files), or tell me how to integrate 
them, I would appreciate it a lot.

Thanks in advance!

Mike

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




flame wars

2001-02-12 Thread qazwasyx

can we all please calm down and send ONLY TECHNICAL 
messages to this list, it's high volume as it is!

Thanks

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