RE: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Hi there,
I can give you all the help you need -- I just did that. You will need to 
create a custom realm (not tough), and then there are some infrastructure dependent 
details to consider. Email me back if you want info.


Chris




-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:55 AM
To: [EMAIL PROTECTED]
Subject: Please help me on NT Authentication


Hi,
  
I am building a system for the Intranet. We have a NT network. I wanted to know if by 
any means I can use the username and password that is registered in the NT Server, so 
that when a user logs in to NT system, he should be automatically logged in to my 
application built on Tomcat?

Can anybody guide me on how to go abt it?

Thanks in anticipation




--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation (up 
to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/

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


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




RE: File upload won't work with Tomcat4 ...

2001-12-20 Thread Bongiorno.Christian

I sniffed around google for 10 minutes and came up with perfect and simple code for 
this task.

Look under 
java servlet http upload



-Original Message-
From: martin eberle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:42 AM
To: [EMAIL PROTECTED]
Subject: File upload won't work with Tomcat4 ...


Hi,

i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
doesn't matter which filetype, the result
is always the same:

Apache Tomcat/4.0.1 - HTTP Status 404 -
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)
type Status report
message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
not found)
description The requested resource
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)) is not available.

I know, that the file has not been found, cause i try to create it ;)
... 

Tomcat directory structure to .jsp files (oh, directory / file user
rights, etc. has been set correctly!):
/var/tomcat4/webapps/mywebapp/

Tomcat directory structure to data (upload) files:
/var/tomcat4/webapps/mywebapp/data/attachements/

In my upload class, i've defined the var SAVEPATH which contain's the
store path as string ... :
String savePath=../webapps/mywebapp/data/attachements/;

Question 1:
From which base directory does tomcat try to access the data dir?
(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...

Question 2:
Is my savePath definition just wrong?

What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
well 

Thx for any answers ...

Regards,
-martin

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


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




Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

I am a programmer, not an html guy. And as such, I am having some problems
getting jsps to work correctly with a frame set. Here is a sample of a web
page with the html I need


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN

HTML
HEAD
 META HTTP-EQUIV=Content-Type CONTENT=text/html;CHARSET=iso-8859-1
 META NAME=GENERATOR Content=Visual Page 2.0 for Windows
 TITLE/TITLE

/HEAD
FRAMESET   COLS = 100%   
 FRAMESET  ROWS = 60,99%,50BORDER=0 FRAMESPACING=0
FRAMEBORDER=NO
  FRAME SRC=header.html NAME=Header MARGINWIDTH=5 MARGINHEIGHT=5
NORESIZE
  FRAMESET   COLS = 200,100%   
   FRAME SRC=menu.html NAME=Menu SCROLLING=NO MARGINWIDTH=3
MARGINHEIGHT=10 NORESIZE

   FRAME SRC=main.html NAME=Data MARGINWIDTH=5 MARGINHEIGHT=5
RESIZE

  /FRAMESET
  FRAME SRC=footer.html NAME=Footer MARGINWIDTH=5 MARGINHEIGHT=5
RESIZE
 /FRAMESET
/FRAMESET
NOFRAMES
BODY

P

/BODY

/NOFRAMES

/HTML



Right where it say
   FRAME SRC=main.html NAME=Data MARGINWIDTH=5 MARGINHEIGHT=5
RESIZE

I need to insert jsp stuff. Here is the jsp file that works. Now to
integrate. I basically want the login jsp to be centered in these frames

center
   form method=POST action='j_security_check' 
  table border=0 cellspacing=5
tr
   th align=rightUsername:/th
   td align=leftinput type=text name=j_username/td
/tr
tr
   th align=rightPassword:/th
   td align=leftinput type=password name=j_password/td
/tr
tr
   td colspan=2
 center
  pinput type=submit value=Log Innbsp;input
type=reset
 /center
 /td
  /tr
  /table
   /form
   /center

would someone help a poor java hack with html?


Chris


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




RE: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Since this is a security sensitive issue, if you would like to email me offline to 
discuss that would be cool.
If not, we can discuss on mailing-group. Let me know and then I have some questions


Chris

-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 8:50 AM
To: Tomcat Users List
Subject: Re: Please help me on NT Authentication


I would be interested too, if you can share it.
Thanks.

Bongiorno.Christian wrote:

 Hi there,
   I can give you all the help you need -- I just did that. You will need to 
create a custom realm (not tough), and then there are some infrastructure dependent 
details to consider. Email me back if you want info.
 
 
 Chris
 

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




RE: File upload won't work with Tomcat4 ...

2001-12-20 Thread Bongiorno.Christian

Here is the code I use for uploading... It's like 5 lines...Ok, I made it a smidge 
more complicated -- this is the cool-kid version. You know, production quality

Didn't mean to be a pain -- didn't feel like openning my IDE and logging into the 
network

Chris


  private void upLoadZipFile(String zipFileName,HttpServletResponse response)
  {
byte[] data   = null;
try
{
  ServletOutputStream stream= response.getOutputStream();
  BufferedInputStream fromFile  = new BufferedInputStream(new 
FileInputStream(this.pathToZips + zipFileName));

  response.setContentType(application/x-zip-compressed);
  response.setHeader(Content-Disposition, attachment; filename= + zipFileName 
+ ;);

  while(fromFile.available()  0)
  {
data = new byte[fromFile.available()];
fromFile.read(data,0,fromFile.available());
stream.write(data);
  }
}
catch(IOException e) {
  e.fillInStackTrace().printStackTrace();
}
finally {
  try {
fromFile.close();
stream.close();
  }
  catch(Exception exc) {
   exc.fillInStackTrace().printStackTrace();
  }
}

  }





-Original Message-
From: martin eberle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 8:49 AM
To: Tomcat Users List
Subject: AW: File upload won't work with Tomcat4 ...


hmmm, thx for the hint, but i've checked out google by nearly the same
keywords and websites in result  ;)

i'm in position to think, it's any logical error in my code, not
caused by tomcat .. hmm .. anyway, thx for supporting me ... 

-martin

-Ursprüngliche Nachricht-
Von: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 20. Dezember 2001 14:43
An: Tomcat Users List
Betreff: RE: File upload won't work with Tomcat4 ...


I sniffed around google for 10 minutes and came up with perfect and
simple code for this task.

Look under 
java servlet http upload



-Original Message-
From: martin eberle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:42 AM
To: [EMAIL PROTECTED]
Subject: File upload won't work with Tomcat4 ...


Hi,

i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
doesn't matter which filetype, the result
is always the same:

Apache Tomcat/4.0.1 - HTTP Status 404 -
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)
type Status report
message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
not found)
description The requested resource
../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
found)) is not available.

I know, that the file has not been found, cause i try to create it ;)
... 

Tomcat directory structure to .jsp files (oh, directory / file user
rights, etc. has been set correctly!):
/var/tomcat4/webapps/mywebapp/

Tomcat directory structure to data (upload) files:
/var/tomcat4/webapps/mywebapp/data/attachements/

In my upload class, i've defined the var SAVEPATH which contain's the
store path as string ... :
String savePath=../webapps/mywebapp/data/attachements/;

Question 1:
From which base directory does tomcat try to access the data dir?
(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...

Question 2:
Is my savePath definition just wrong?

What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
well 

Thx for any answers ...

Regards,
-martin

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


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


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


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




RE: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

and then for the login page in the web.xml I just put my html page? I thought that 
might work. I will try!

-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:00 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Can you replace the src=main.html by src=yourfile.jsp ?
It should work


**
Bruno Mizzi-Vernay
[EMAIL PROTECTED]
**


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


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




RE: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

Bruno
That sorta works. When I load it in IE (no tomcat, just straight page) it 
looks great. When I go to try using it from TC I.E goes into some sorta freak-out mode 
and spins -- taking up all my cpu and never producing the page?

Ideas?

Here is everything in zip form

Chris


-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:00 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Can you replace the src=main.html by src=yourfile.jsp ?
It should work


**
Bruno Mizzi-Vernay
[EMAIL PROTECTED]
**


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




stuff.zip
Description: stuff.zip

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


RE: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Are these questions on NT authentication directed at me? Not that I mind, I just need 
to know my audience




-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:23 AM
To: Tomcat Users List
Subject: Re: Please help me on NT Authentication


Can't you change the IP adresses and other passwords ? I guess they are 
too numerous ?
I was asking for an intranet project, but I can't begin testing right 
now. I wouldn't even have enough right to access to our NT server.
I would have keep your information for later use.


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


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




RE: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Well, if you create a custom realm you can specify anything your 'lil heart desires in
the config.xml file.

You have all the right you need to access your NT domain controller if you can log onto
the network with your domain username and password.

Are you using a 2K domain or an NT domain. Ask your admin if you're not sure.



-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:23 AM
To: Tomcat Users List
Subject: Re: Please help me on NT Authentication


Can't you change the IP adresses and other passwords ? I guess they are 
too numerous ?
I was asking for an intranet project, but I can't begin testing right 
now. I wouldn't even have enough right to access to our NT server.
I would have keep your information for later use.


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


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




RE: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

I am using I.E 6.0.2479.0006C0

I am using TC 4.1??  This is being called from my machine directly through TC:8080  I 
am not using localhost for url. I use my qualified machine name


I tried brunos suggestions and it works no better.

here is the updated login.html


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN
HTML
HEAD
 META HTTP-EQUIV=Content-Type CONTENT=text/html;CHARSET=iso-8859-1
 META NAME=GENERATOR Content=Visual Page 2.0 for Windows
  TITLEENSCO Workforce Management/TITLE
/HEAD

FRAMESET  ROWS=60,99%,50 BORDER=0 FRAMESPACING=0 FRAMEBORDER=NO
FRAME SRC=header.html NAME=Header MARGINWIDTH=5 MARGINHEIGHT=5 
NORESIZE
FRAME SRC=login.jsp NAME=Data MARGINWIDTH=5 MARGINHEIGHT=5 RESIZE
FRAME SRC=footer.html NAME=Footer MARGINWIDTH=5 MARGINHEIGHT=5 RESIZE
/FRAMESET

BODY
P
/BODY
/HTML

-Original Message-
From: ian silvester [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:54 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Which version of IE (and Tomcat while we're asking :-)) does it fail in?
Please give the absurdly long version number you'll find in the Help..
About.. dialog..

ian

- Original Message -
From: Bongiorno.Christian [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 20, 2001 2:28 PM
Subject: RE: Mildly off topic, but there are too many smart people here


Bruno
That sorta works. When I load it in IE (no tomcat, just straight page) it
looks great. When I go to try using it from TC I.E goes into some sorta
freak-out mode and spins -- taking up all my cpu and never producing the
page?

Ideas?

Here is everything in zip form

Chris


-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:00 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Can you replace the src=main.html by src=yourfile.jsp ?
It should work


**
Bruno Mizzi-Vernay
[EMAIL PROTECTED]
**


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








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



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


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




RE: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

Well, for Bruno and Group, here is what we did. I don't know if it is going to work 
out for you.
And Yes, this is a TC solution not weblogic. Don't be miserable!

We had two implementations since we were in the middle of an exchange upgrade and just 
rolled out 
a 2K domain. We use exchange and are setup for NT authentication on exchange. Given 
this information


Implementation 
1)  My first realm pop-ed off the exchange server with domain username and pass. 
Since the exchange server uses NT authentication that worked. It is/was kinda hackey, 
but it did for a few weeks until we rolled out exchange 2K.
to get the roles, the realm then went and looked into a company wide addressbook (an 
LDAP server) for a particular attribute 
that had been reserved for just such purposes. In there we added roles with ';' 
semi-colons as delimiters.
so

if(popOffExchange(username,pass) == GOOD)
{
roles = checkLDAPforRoles(attribute,ssearchbase);
}


We couldn't use the JNDI realm with TC because our LDAP at the time required no 
authentication.

2) Win2k domain with Active Directory (AD) and exchange 2k. Similar to above, but with 
everything
being one-stop login. Because AD is an LDAP server, and requires domain logon to get 
into it, 
authenticating against it using the credentials supplied and then going straight to 
the user branch 
of the LDAp tree was great. Exchange 2K was essential because it adds a field in AD 
for customAttributes
which we use for roles. We couldn't use JNDI realm here as we don't have a single user 
account to lookup info
and neither our admin nor I knew were (or if) the passwds for NT were in AD.


if you are short on time you can probably buy the bins from my company, but they only 
work with exch 2k, and win2k domain
with AD. If you are in that situation then this will just plug in.

Chris


-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 10:24 AM
To: Bongiorno.Christian
Subject: RE: Please help me on NT Authentication


 Hey
Don't tell me how to do this in Weblogic
I had mentioned it clearly that I am Using Tomcat and don't forget that U are in 
Tomcat User List
--

On Thu, 20 Dec 2001 10:05:30  
 Bongiorno.Christian wrote:
What mail servers do you run and how do they authenticate?

I.E... exchange 5.5 exchange 2K

Hack-ware pop what?

-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:57 AM
To: Bongiorno.Christian
Subject: RE: Please help me on NT Authentication


I am using NT Domain
--

On Thu, 20 Dec 2001 09:24:57  
 Bongiorno.Christian wrote:
First thing, are you using Win NT domain Controllers or Win2k ?

If win2k, do you have Active Directory installed?

What mail servers do you run? How do they authenticate?




-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 9:14 AM
To: Bongiorno.Christian
Subject: RE: Please help me on NT Authentication


 HI
Thanks for helping me.
Please tell me how to do it in detail. Also tell me if any document available?

Thanks
Reply soon

--

On Thu, 20 Dec 2001 08:37:07  
 Bongiorno.Christian wrote:
Hi there,
 I can give you all the help you need -- I just did that. You will need to 
create a custom realm (not tough), and then there are some infrastructure dependent 
details to consider. Email me back if you want info.


Chris




-Original Message-
From: ans M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:55 AM
To: [EMAIL PROTECTED]
Subject: Please help me on NT Authentication


Hi,
  
I am building a system for the Intranet. We have a NT network. I wanted to know if 
by any means I can use the username and password that is registered in the NT Server, 
so that when a user logs in to NT system, he should be automatically logged in to my 
application built on Tomcat?

Can anybody guide me on how to go abt it?

Thanks in anticipation




--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation 
(up to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/

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


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




--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation 
(up to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/



--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1 to the Children's Wish Foundation 
(up to $20,000 in total).  Limit of one registration per person.  Go to 
http://shop.lycos.com/holidays/sweeps/



--
You Win!  We Donate.
Register to win $10,000 and Lycos will donate $1

RE: Please help me on NT Authentication

2001-12-20 Thread Bongiorno.Christian

P.S. The classes for NT authentication in JAAS are WINDOWS dependent. They use a 
native DLL and JNI. Sorry, been there


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




RE: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

Yes. If I just load login.jps life is good. This is the sample jsp from the examples 
directory.

Chris

-Original Message-
From: Bruno VERNAY [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 10:41 AM
To: Tomcat Users List
Subject: Re: Mildly off topic, but there are too many smart people here


Looks like the problem come from the login.jsp.
Does it work if you open just login.jsp ?

Bongiorno.Christian wrote:

 I am using I.E 6.0.2479.0006C0
 
 I am using TC 4.1??  This is being called from my machine directly through TC:8080  
I am not using localhost for url. I use my qualified machine name
 



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


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




RE: Mildly off topic, but there are too many smart people here

2001-12-20 Thread Bongiorno.Christian

That's the silly thing I am doing. What is the not-silly answer?
I am open to anything -- life is constant learning

-Original Message-
From: David M. Karr [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 3:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Mildly off topic, but there are too many smart people here


 Bongiorno == Bongiorno Christian Bongiorno.Christian writes:

Bongiorno Bruno
Bongiorno  That sorta works. When I load it in IE (no tomcat, just straight page) 
it looks great. When I go to try using it from TC I.E goes into some sorta freak-out 
mode and spins -- taking up all my cpu and never producing the page?

Bongiorno Ideas?

You aren't doing something silly like having login.jsp in a login-protected
region, are you?  I saw the behavior you are seeing when I made that silly
mistake.

-- 
===
David M. Karr  ; Best Consulting
[EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


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


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




RE: No examples with 4.0.1 install on OSX

2001-12-19 Thread Bongiorno.Christian

I don't know much about mac X, but, did you check the hosts.allow and hosts.deny ?
Maybe only 127.0.0.1 is allowed. Given this is unix for COMPLETE PC rookies (let alone 
unix rookies) they probably don't want people shooting themselves in the foot


-Original Message-
From: Peter Reynolds [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 8:34 AM
To: '[EMAIL PROTECTED]'
Subject: No examples with 4.0.1 install on OSX


Hello everybody,

Having successfully installed a 3.3 distribution of Tomcat on OSX10.1.1 I
attempted a 4.0.1 install. However whilst the welcome page and manual pages
are successfully displayed by Tomcat at 127.0.0.1:8080 the attempt to view
any of the examples or servlets results in a 'Resource not available' 404
error message.

I've checked the following:
* The examples are in the web-apps directory of Tomcat home.
* I've removed my old TOMCAT_HOME environment variable that pointed to the
3.3 distribution; and added a CATALINA_HOME variable pointed to the home of
4.0.1.
* My JAVA_HOME variable is correctly set.
* Running ./startup.sh appears to be fine. It reports where all the paths
are; and as described above the home page displays correctly.
* All the permissions on the examples directory are correctly set.
* No errors are reported in the log.

Has any one had any success with 4.0.1 on OSX? If so do they know why it
might not be working for me?

Thanks,


Peter


Flash Developer
London, UK
http://www.petescv.co.uk/


___
The information in this email is confidential and is intended solely
for the addressee(s) and access to this email by anyone else is
unauthorised. If you are not the intended recipient then any
disclosure, copying, distribution or any action taken or omitted to
be taken in reliance on it, is prohibited and may be unlawful.



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


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




RE: Can anyone give me an answer?

2001-12-19 Thread Bongiorno.Christian

Get??? Who is Getting them? The web browser or the server?

If it is the web-browser you can just upload with http

-Original Message-
From: Ed Turner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 9:09 AM
To: [EMAIL PROTECTED]
Subject: Can anyone give me an answer?


I am running a web application under Tomcat 3.2.3 and would like to
access existing jpeg files from the server's local disk.   Is there a
way to get to these files from my JSP without putting them under the web
app directory??   Any hints?


Ed


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


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




RE: How to find a file from a class with Tomcat

2001-12-19 Thread Bongiorno.Christian

Stick the resource in along with the JAR. Then they will be loaded together and a 
simple call to the file without
a path should discover it



-Original Message-
From: Stephan Wiesner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 9:36 AM
To: Tomcat Users List
Subject: How to find a file from a class with Tomcat


I have a Servlet S.java which uses a class C.java (not a servlet itself,
could make it one if I had too).
C.java needs to read a config file. The problem is that this class thinks it
is in c:/ or wherever I started the tomcat server from. I can use
this.getClass().getResource(fileName); but that only works with
Properties.load(), not with a FileInputStream.
So at the moment I have all my paths hardcoded into the classes and of
course I don't want that.

My server.xml contains:
Context path=/examples
 docBase=d:/jdk1.3/jakarta-tomcat-3.2.3/webapps/examples
 crossContext=false
 debug=9
 reloadable=true 
/Context

And the local web.xml:
   servlet
  servlet-namehi/servlet-name
  servlet-classHelloWorldExample/servlet-class
   /servlet
servlet-mapping
  servlet-namehi/servlet-name
  url-pattern/hi/*/url-pattern
   /servlet-mapping


Any tipp would be appreciated.

Stephan Wiesner


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


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




RE: Embedding Tomcat 4

2001-12-19 Thread Bongiorno.Christian

Glad I could help. I am finding I enjoy responding to this news group.



-Original Message-
From: Jean-Robert Haddad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 10:39 AM
To: Tomcat Users List
Subject: RE: Embedding Tomcat 4


Thanks Christian.

This is just what I needed.

Jean-Robert Haddad
Directeur RD 
KHEOPS technologies
tél.: 514.285.1211


-Original Message-
From: Christian Bongiorno [mailto:[EMAIL PROTECTED]] 
Sent: 18 décembre, 2001 21:18
To: Tomcat Users List
Subject: Re: Embedding Tomcat 4

I have embedded TC 4 into my JBuilder IDE and I have to believe it is
the
exact same thing for your situation

the class with main is org.apache.catalina.startup.Bootstrap

// java commandline
java -classpath
$CLASSPATH:/home/tomcat/bin/bootstrap.jar -Dcatalina.base=/home/tomcat
-Dcat
alina.home=/home/tomcat org.apache.catalina.startup.Bootstrap

or Call this from your app.

System.getProperties().put(catalina.base./home/tomcat);
System.getProperties().put(catalina.home./home/tomcat);

org.apache.catalina.startup.Bootstrap.main(new String[] {start});

That's it!


- Original Message -
From: Arvind Gudipati [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 5:20 PM
Subject: RE: Embedding Tomcat 4


Embedded class doesnot deploy the .war files dynamically. You have to
add
contexts to the embedded tomcat manually.

I was having the same trouble initially until i started debugging and
realised that there are some configuration issues that also cause other
problems.
The regular Bootstrap class which starts up Tomcat loads the classes for
you, however you need to work that out too when you are using the
Embedded
class.

Arvind


-Original Message-
From: Jean-Robert Haddad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 5:26 PM
To: [EMAIL PROTECTED]
Subject: Embedding Tomcat 4


Hello everyone.

I am trying to embed Tomcat 4.01 in my application. I use the
org.apache.catalina.startup.Embedded class. I simply copied code from
the main method, as indicated in the documentation.

My question is regarding contexts. Why do I have to create the contexts
manually? Can't I have all directories inside webapps be mapped to
contexts automatically? Why are the .war files not decompressed
automatically anymore? If I can't have the contexts created
automatically, how can I process the .war files?

Should I try to start Tomcat by using
org.apache.catalina.startup.Bootstratp class main method instead?

Thanks.

Jean-Robert Haddad
Directeur RD
KHEOPS technologies
tél.: 514.285.1211

CONFIDENTIALITY NOTICE:  E-mail may contain confidential information
that is
legally protected.  Do not read this e-mail if you are not the intended
recipient. This e-mail transmission, and any documents, files or
previous
e-mail messages  attached to it may contain confidential information
that is
legally protected.  If you are not the intended recipient or a person
responsible for delivering it to the intended recipient,  you are hereby
notified that any disclosure, copying, distribution or use of any of the
information contained in or attached to this transmission is STRICTLY
PROHIBITED.  If you have received this transmission in error, please
immediately notify us by reply e-mail, by forwarding this to
[EMAIL PROTECTED] or by telephone at (877) PANACYA, and destroy
the
original transmission and its attachments without reading or saving in
any
manner.  Thank you.  For information about PANACYA Inc., please visit
our
website at http://www.panacya.com.



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


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


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




RE: Multiple root context applications

2001-12-19 Thread Bongiorno.Christian

I dont' see why you can't just 

org.apache.catalina.startup.Bootstrap.main()
twice

just change the system hash to change the catalina.base and catalina.home ...so


System.getProperties().put(catalina.base,/home/tomcat1);
System.getProperties().put(catalina.home,/home/tomcat1);
// start this in a thread?
org.apache.catalina.startup.Bootstrap.main(new String[] {start});


System.getProperties().put(catalina.base,/home/tomcat2);
System.getProperties().put(catalina.home,/home/tomcat2);
// start this in a thread?
org.apache.catalina.startup.Bootstrap.main(new String[] {start});


not the change in the system properties.

anyone disagree?


Chris

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 1:05 PM
To: [EMAIL PROTECTED]
Subject: Multiple root context applications


Hi,
I have an application which deploys in the root context of Tomcat. Now the 
problem is that I want to deploy multiple instances of this application on one 
machine only. 
One way is to run multiple tomcats on different ports. Is there any other 
better way ?
Tomcat 4.x supports different instances. But I am not able to figure out if 
that implies multiple tomcat instances with different server.xml etc can be run 
at the same time !! 
I am not averse to using multiple ports .

Thanks in advance for help. 

manjul sahay


-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/



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


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




RE: How to unsubscribe?

2001-12-19 Thread Bongiorno.Christian

click the link at the bottom of this (or any) email

-Original Message-
From: Siomara Pantarotto [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:03 PM
To: [EMAIL PROTECTED]
Subject: How to unsubscribe?


Help Please ... How do I unsuscribe

This list is killing my email account

sio


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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


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




RE: Basic auth and form based login

2001-12-18 Thread Bongiorno.Christian

Did someone already answer this? This is easy! In the examples directory you will find 
a jsp/protected (or protect/jsp) directory. In there are two form-based login jsps. In 
your web.xml where you specify the security constraints (near by?) you will change 
basic authentication to form. For an example see web.xml in examples

-Original Message-
From: Magnus Jansson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 2:22 AM
To: [EMAIL PROTECTED]
Subject: Basic auth and form based login


Hi!

I want to use protected folders within apache on netware and that works (basic 
authentication and mod_nds).

But I want to use form based login and when a user tries to use pages that is in those 
protected folders I dont want those annoying dialogboxes to appear.

How do I do

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - 
Magnus Jansson
IT-Manager
Väddö folkhögskola
760 40 Väddö
Sweden

Phone: +46 (0) 176-528 00
Cellular: +46 (0) 70-370 33 16
Fax: +46 (0) 176-528 28
http://www.vaddo.fhsk.se (work)
http://www.jason.pp.se (private)
ICQ: 52797837



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




RE: tomcat not starting properly on Linux

2001-12-18 Thread Bongiorno.Christian

Well, all the java processes your seeing are actually threads. Linux treats a thread 
like a process -- processes that just happen to share the same memory space. I could 
recommend upgrading to TC 4.0 BTW. As for why you're not getting anything on 8080?  
Don't know.

-Original Message-
From: Brian Nice [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 10:11 PM
To: [EMAIL PROTECTED]
Subject: tomcat not starting properly on Linux


I installed tomcat 3.3 on our linux server, along with Java 1.3. When I run
the startup.sh script, all that happens is my environment variables -
JAVA_HOME, PATH, and TOMCAT_HOME are echoed back to me on the screen. If I
do a grep on java processes, there are about 12 java processes that start
up. However, when I go to http://localhost:8080, i get nothing.

The documentation says that a bunch of things are supposed to scroll on the
screen after startup, not just seeing the environment variables. So it seems
that something is not working correctly. I'm pretty new to Linux so I'm not
sure what all to try. What sort of things do I need to look for? and what
can I try to get this up and running?

Thanks for the help
Brian
[EMAIL PROTECTED]


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


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




RE: ClassCastException, custom Realm, and ClassLoading Repost... this is bugging me.

2001-12-18 Thread Bongiorno.Christian

Help?


We have a custom realm written. Works great until I try to downcast the principal 
returned from an authentication so that I can call a specific method. Upon 
investigation (everyone knows this, I know) the error is due to the fact that TC has 
multiple class loaders and this particular class was loaded from 2 places. I read the 
class-loader-howto.html that explains the hierarchy. So, I go to put the Jar 
containing my realm and my subclass of java.security.Principal into the lib directory 
and I get a ClassNotFound exception for  org.apache.catalina.realm.RealmBase

When I put the jar in common/lib I get ClassNotFound exception for  
com.ensco.nt_authentication.Ensco_NT_Realm

Putting the jar in two places gives the CCE. I have tried putting the jar in all 3 lib 
directories individually and I get the above chicken-and-egg situation. if I override 
the entire classpath and specify every jar on the commandline it will work. this is 
obviously not the best approach. So, then, where do I need to put things to make this 
work? 

Chris



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




RE: ClassCastException, custom Realm, and ClassLoading Repost... this is bugging me.

2001-12-18 Thread Bongiorno.Christian

What problem were you having and how did I solve it for you? Glad I could help!



-Original Message-
From: James Radvan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 10:04 AM
To: Tomcat Users List
Subject: RE: ClassCastException, custom Realm, and ClassLoading
Repost... this is bugging me. 


Christian, I'm sorry I can't help you with your problem, but I'd like to
thank you for inadvertently helping me solve mine!

Thanks,

---
James Radvan
e-Business Engineer
[EMAIL PROTECTED]
+44 7990 624899

-Original Message-
From: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2001 14:51
To: Tomcat Users List
Subject: RE: ClassCastException, custom Realm, and ClassLoading
Repost... this is bugging me.


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


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




RE: JDBC Driver for MS SQL Server

2001-12-18 Thread Bongiorno.Christian

My suggestion: DUMP the ms driver!!!

Another good one is from www.j-netdirect.com

They have a complete JDBC 2.0 complaint jdbc-odbc driver. This will allow you to work
with SQL Server or access from linux, solaris or windows.

Driver is called JDataConnect. We use that here. Very flexible, minor limitations (on 
field size). And no
errors so far.

Chris



-Original Message-
From: Jack Li [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 10:30 AM
To: '[EMAIL PROTECTED]'
Subject: JDBC Driver for MS SQL Server


Hi,

I am using Tomcat 3.2.1. I downloaded the JDBC Driver for MS and Installed
it. But I got error:
Unable to load class com.microsoft.jdbc.sqlserver.SQLServerDriver. Where
to put the three jar files?
Also, are there other drivers available and good? I am using jdbc-odbc to
connect SQL Server now. My application freezes very oftenly. Any
sugguestions?
Thanks,
Jack


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


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




RE: Form based Authentication / j_security_check not found

2001-12-18 Thread Bongiorno.Christian

There is a jsp based form login example in the examples directory. That whole 
directory over to your servlet directory,
change the login-config to use form based login (look at the example in 
~/webapps/examples/WEB-INF/web.xml) This is a copy and paste trick -- nothing else.

so...

mkdir ~/webapps/myservlet-home/jsp

// this is all you need
cp ~/webapps/examples/jsp/security ~/webapps/myservlet-home/jsp

hack this into the appropriate portion of !/webapps/myservlet-home/WEB-INF/web.xml

login-config
  auth-methodFORM/auth-method
  realm-nameForm based login/realm-name
  form-login-config
form-login-page/jsp/protected/login.jsp/form-login-page
form-error-page/jsp/protected/error.jsp/form-error-page
  /form-login-config
/login-config


//and comment out the BASIC login-config using !--  --

restart!

easy as pie!

This even does session caching for you!

Chris

-Original Message-
From: EDV Systembetrieb [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 10:37 AM
To: [EMAIL PROTECTED]
Subject: Form based Authentication / j_security_check not found


Hi everybody again.
I'm getting mad on configuring tomcat for my application.
My be I do not know enough about java, but I have to Learn it by doing, so please be 
friendly.

I'm using form-based authentication and everything works until I submit my login-ID
If I put LoginForm.html in the servlet-dir, it pops-up, but after entering my 
login-infos I get 
The requested URL /DSCservlet/j_security_check was not found on this server.
I know, LoginForm.html should be outside the protected area.
But in my special example, something seems wrong with alias in mod_jk.conf and/or some 
path in my config-files.
I searched the mailing-list, but I do not understand the stuff.
Please help before I'm getting mad

Thanks Sabine

my apps-DSC.xml:
webapps
Context path=/DSCservlet
docBase=/webapps/SSL_apps/dsc/servlet
debug=0
crossContext=false
reloadable=true 
/Context
/webapps


my mod_jk.conf
...
Alias /DSCservlet /webapps/SSL_apps/dsc/servlet
Directory /webapps/SSL_apps/dsc/servlet
Options Indexes FollowSymLinks
/Directory
JkMount /DSCservlet/servlet/* ajp13
JkMount /DSCservlet/*.jsp ajp13
Location /DSCservlet/WEB-INF/
AllowOverride None
deny from all
/Location
Location /DSCservlet/META-INF/
AllowOverride None
deny from all
/Location

/webapps/SSL_apps is HTTPS-protected by apache and document-root

/webapps/SSL_apps/dsc/upload.htm is my page for selecting files for upload. After 
that, a login-screen should appear (it does).
This page calls a servlet with 
form action=/DSCservlet/servlet/FileUpload.UploadServlet 
enctype=MULTIPART/FORM-DATA method=post name =EnterFiles

Also in this directory dsc are the following files

ResultPageFooter.htm
ResultPageHeader.htm
servlet
servlet/LoginError.html
servlet/LoginForm.html
servlet/META-INF
servlet/META-INF/MANIFEST.MF
servlet/WEB-INF
servlet/WEB-INF/web.xml
servlet/WEB-INF/classes
servlet/WEB-INF/classes/FileUpload
servlet/WEB-INF/classes/FileUpload/FileUploader.class
servlet/WEB-INF/classes/FileUpload/FileUploadException.class
servlet/WEB-INF/classes/FileUpload/Message.class
servlet/WEB-INF/classes/FileUpload/UploadServlet.class
servlet/WEB-INF/classes/properties
servlet/WEB-INF/classes/properties/FileUpload.properties
servlet/WEB-INF/classes/properties/FileUploadMessages.properties
servlet/WEB-INF/classes/properties/FileUploadMessages_en.properties

my web.xml:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
servlet
servlet-nameUploadServlet/servlet-name
servlet-classFileUpload.UploadServlet/servlet-class
/servlet
security-constraint
web-resource-collection
web-resource-nameDSC/web-resource-name
url-pattern/*/url-pattern
http-methodPOST/http-method
http-methodGET/http-method
/web-resource-collection
auth-constraint
role-nameer_kunden/role-name
/auth-constraint
user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
realm-nameEingangsregistratur DSC/realm-name
form-login-config
form-login-page/LoginForm.html/form-login-page
form-error-page/LoginError.html/form-error-page
/form-login-config
/login-config
/web-app





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

RE: JDBC Driver for MS SQL Server

2001-12-18 Thread Bongiorno.Christian

Hmmm, this might be getting off topic, but, yes, they have gone back and forth between 
named pipes and TCP/IP (with 2k) as
default. Do you have a firewall in the way? Say your servlet is on the DMZ and the 
dbase is on the private (I hope!)

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:53 AM
To: Tomcat Users List
Subject: RE: JDBC Driver for MS SQL Server



Certain versions of SQL Server (6.5 I know, others maybe) don't
enable TCP/IP access by default.  Contact your DBA for more assistance.

Randy

 -Original Message-
 From: Jack Li [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 11:24 AM
 To: 'Tomcat Users List'
 Subject: RE: JDBC Driver for MS SQL Server
 
 
 Hi,
 Now, After I put three jar files in tomcat/lib, program is 
 able to locate
 the classes. But I have another error:
 
 [Microsoft][SQLServer JDBC Driver]Error establishing socket.
 
 What is it?
 
 Here is the progrm:
 
 String m_Class = com.microsoft.jdbc.sqlserver.SQLServerDriver;
 String m_Connector = jdbc:microsoft:sqlserver://prodserver:1433;
 String m_Username = ;
 String m_Password = ;
 Connection con = null;
 
  try{
  Class.forName(m_Class);
  con = DriverManager.getConnection(m_Connector, 
 m_Username, m_Password);
  }catch(ClassNotFoundException e){
  out.println(class not found:  + e.getMessage());
  }catch(SQLException e){
  out.println(e.getMessage());
  }catch(Exception e){
   out.println(e.getMessage());
  }
  
 
 
 
 
 Thanks,
 
 Jack
 
 -Original Message-
 From: Jack Li [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 10:30 AM
 To: '[EMAIL PROTECTED]'
 Subject: JDBC Driver for MS SQL Server
 
 
 Hi,
 
 I am using Tomcat 3.2.1. I downloaded the JDBC Driver for MS 
 and Installed
 it. But I got error:
 Unable to load class 
 com.microsoft.jdbc.sqlserver.SQLServerDriver. Where
 to put the three jar files?
 Also, are there other drivers available and good? I am using 
 jdbc-odbc to
 connect SQL Server now. My application freezes very oftenly. Any
 sugguestions?
 Thanks,
 Jack
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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


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




RE: Way to alias/redirect index.html to a servlet with Tomcat 4 in standalone mode?

2001-12-18 Thread Bongiorno.Christian

You need the apache pass-through module and there is some setup. We have had some 
wierdness
with this setup and as far as I can tell apache-tc pass-through is still WIP.

Make sure your servlet doesn't do a dynamic lookup on where it was called from.
like request.getRequestURL()  -- in this pass-through apache posts back to localhost 
and that
is what you get from the above call.

Chris

-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:05 PM
To: Tomcat User List
Subject: Way to alias/redirect index.html to a servlet with Tomcat 4 in
standalone mode?


This is probably a newbie question, but, it's something that I've been
meaning to find the answer to for awhile.

I'm using Tomcat 4.0.1 in standalone mode. What I want to do is be able to
assign an alias to a servlet so that a user can just enter the name of an
HTML file to access the servlet rather than have to use a prefix such as
/servlet or something else.

I think with normal Apache Web Server you can create an alias to do this.
Does anyone know if this is possible using Tomcat in standalone mode?

Would I have to use a HTTP redirect? If so, how do I go about doing that?

Jon



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


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




RE: JDBC Driver for MS SQL Server

2001-12-18 Thread Bongiorno.Christian

Way off topic. If you are getting invalid object then it is because it doesn't 
understand your statement. You likely have to qualify your statement better.


instead of SELECT * from table_name

you need SELECT * FROM dbo.table_name

post this to SQL people though


-Original Message-
From: Jack Li [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 3:48 PM
To: 'Tomcat Users List'
Subject: RE: JDBC Driver for MS SQL Server


Hi,
The default port is 1433. Now I got the connection to SQL Server. However, there are 
several databases in SQL Server. prodserver is one of the databases. When I query a 
table, it says it is invalid object name. How to access a table in a database?

Thanks
Jack

-Original Message-
From: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 12:44 PM
To: Tomcat Users List
Subject: RE: JDBC Driver for MS SQL Server


Hmmm, this might be getting off topic, but, yes, they have gone back and forth between 
named pipes and TCP/IP (with 2k) as
default. Do you have a firewall in the way? Say your servlet is on the DMZ and the 
dbase is on the private (I hope!)

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:53 AM
To: Tomcat Users List
Subject: RE: JDBC Driver for MS SQL Server



Certain versions of SQL Server (6.5 I know, others maybe) don't
enable TCP/IP access by default.  Contact your DBA for more assistance.

Randy

 -Original Message-
 From: Jack Li [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 11:24 AM
 To: 'Tomcat Users List'
 Subject: RE: JDBC Driver for MS SQL Server
 
 
 Hi,
 Now, After I put three jar files in tomcat/lib, program is 
 able to locate
 the classes. But I have another error:
 
 [Microsoft][SQLServer JDBC Driver]Error establishing socket.
 
 What is it?
 
 Here is the progrm:
 
 String m_Class = com.microsoft.jdbc.sqlserver.SQLServerDriver;
 String m_Connector = jdbc:microsoft:sqlserver://prodserver:1433;
 String m_Username = ;
 String m_Password = ;
 Connection con = null;
 
  try{
  Class.forName(m_Class);
  con = DriverManager.getConnection(m_Connector, 
 m_Username, m_Password);
  }catch(ClassNotFoundException e){
  out.println(class not found:  + e.getMessage());
  }catch(SQLException e){
  out.println(e.getMessage());
  }catch(Exception e){
   out.println(e.getMessage());
  }
  
 
 
 
 
 Thanks,
 
 Jack
 
 -Original Message-
 From: Jack Li [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 10:30 AM
 To: '[EMAIL PROTECTED]'
 Subject: JDBC Driver for MS SQL Server
 
 
 Hi,
 
 I am using Tomcat 3.2.1. I downloaded the JDBC Driver for MS 
 and Installed
 it. But I got error:
 Unable to load class 
 com.microsoft.jdbc.sqlserver.SQLServerDriver. Where
 to put the three jar files?
 Also, are there other drivers available and good? I am using 
 jdbc-odbc to
 connect SQL Server now. My application freezes very oftenly. Any
 sugguestions?
 Thanks,
 Jack
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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


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

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




ClassCastException, custom Realm, and ClassLoading

2001-12-17 Thread Bongiorno.Christian

We have a custom realm written. Works great until I try to downcast the principal 
returned from an authentication so that I can call a specific method. Upon 
investigation (everyone knows this, I know) the error is due to the fact that TC has 
multiple class loaders and this particular class was loaded from 2 places. I read the 
class-loader-howto.html that explains the hierarchy. So, I go to put the Jar 
containing my realm and my subclass of java.security.Principal into the lib directory 
and I get a ClassNotFound exception for  org.apache.catalina.realm.RealmBase

When I put the jar in common/lib I get ClassNotFound exception for  
com.ensco.nt_authentication.Ensco_NT_Realm

Putting the jar in two places gives the CCE. I have tried putting the jar in all 3 lib 
directories individually and I get the above chicken-and-egg situation. if I override 
the entire classpath and specify every jar on the commandline it will work. this is 
obviously not the best approach. So, then, where do I need to put things to make this 
work? 

Chris

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