RE: How to configure Tomcat to follow symbolic links.

2003-02-10 Thread Mike Johnson
hi john,

i must have missed that, i'm looking through the readme's but i'm not
finding it anyway, i think i'd rather inquire about helping with
updating the documentation instead. i read the dismissive "we don't make
slick websites" section and i'm just not buying into it. besides, it
might help slow the deluge of easily answered config questions. :-)

thanks,

mike johnson

On Mon, 2003-02-10 at 02:12, Turner, John wrote:
> It's in the release notes, and is something new for 4.1.12 and up.
> 
> John
> 
> -Original Message-
> From: Mike Johnson [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, February 09, 2003 2:27 PM
> To: Tomcat Users List
> Subject: RE: How to configure Tomcat to follow symbolic links.
> 
> *sigh*
> 
> It'd be wonderful if there was a place where the upgrade breakage is
> documented... Is there a RTMF I missed somewhere?
> 
> The docs, for instance, mention nothing about linking:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
> 
> A note that the default linking behavior changed and how to work with it
> would be good...
> 
> This page is out of date, too:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/resources.html
> 
> Thanks again,
> 
> Mike Johnson
> 
> 
> 
> ---
> 
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
>  
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Mike Johnson <[EMAIL PROTECTED]>


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




Re: MY ATTITUDE

2003-02-10 Thread Steven J. Owens

On Tue, Feb 11, 2003 at 02:01:33AM -0500, Steven J. Owens wrote:
>  I recognize where you're coming from here.  I've been frustrated
> and trying to find the answer to problems, and I've had that feeling
> that nobody's listening.  But experience (both that experience, and
> the experience of being on the other side of this equation) has
> shown me that the real reason people are responding is that:
   ~~

 That should, of course, have read "...are not responding...".
Late night, too much whiskey (in this case, bourbon :-), etc.
 
Steven J. Owens
[EMAIL PROTECTED]

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." - Me at http://darksleep.com


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




Re: stderr.log & jk2.log (tomcat/apache/jk2 errors) question

2003-02-10 Thread Bill Barker
The 'stderr.log' messages are normal (assuming that you've set an soTimeout,
which I wouldn't recommend).  I'd need to see more context for the jk2.log
messages (unless they are caused by a really short timeout from above).

<[EMAIL PROTECTED]> wrote in message
01BB14133B43D2118ED300104B9C202B03CFC314@SQ_EXG1">news:01BB14133B43D2118ED300104B9C202B03CFC314@SQ_EXG1...
> I am hoping that someone sees these errors below and can immediatly tell
me
> that they are expected and/or normal. I am seeing hundreds of the same
error
> in the stderr.log. Anyone see these beforeeither of them?
>
> Best,
>
> Stephen
>
>
>
>
> jk2.log
> ---
> [Mon Feb 10 19:04:00 2003]  (error) [jk_channel_socket.c (557)]:
> channelSocket.receive(): Error receiving message body -1 104
> [Mon Feb 10 19:04:00 2003]  (error) [jk_workerEnv.c (482)]:
> workerEnv.processCallbacks() Error reading reply
> [Mon Feb 10 19:04:00 2003]  (error) [jk_worker_ajp13.c (407)]:
> ajp13.service() ajpGetReply recoverable error 21000
>
> stderr.log
> ---
> Feb 10, 2003 7:37:05 AM org.apache.jk.common.ChannelSocket
processConnection
> INFO: connection timeout reached
> Feb 10, 2003 7:37:18 AM org.apache.jk.common.ChannelSocket
processConnection
> INFO: connection timeout reached
> Feb 10, 2003 7:38:03 AM org.apache.jk.common.ChannelSocket
processConnection
> INFO: connection timeout reached
> Feb 10, 2003 7:38:21 AM org.apache.jk.common.ChannelSocket
processConnection
> INFO: connection timeout reached
> Feb 10, 2003 7:38:44 AM org.apache.jk.common.ChannelSocket
processConnection
> INFO: connection timeout reached
>




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




Re: mod_jk.so / apache 1.3.27 / tomcat 4.1.18

2003-02-10 Thread Bill Barker

"[de internetman] Rene Kooyman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Oke, that's done, just use the: /usr/lib/apache folder .. p,
> now were getting somewhere, although i can't compile normaly because
> apxs is located in the other folder ... so be it 
>
> Now md_jk.so will load... but here's the error messages i was telling
> you about earlier:
>
> [warn] Loaded DSO modules/mod_jk.so uses plain Apache 1.3 API, this module
> might crash under EAPI! (please recompile it with -DEAPI)
>
>
> And like i said before, should this be safe to ignore ... or do i have to
> recompile ... and if so: how ?
>

It will probably crash (unless you disable SSL support at runtime).  You
need to provide the correct --with-apxs path the the mod_jk configure script
so that it knows to compile with the EAPI code.

> --
> Kind regards,
>
> Rene Kooyman
>
>
> -




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




Re: MY ATTITUDE

2003-02-10 Thread Steven J. Owens
On Mon, Feb 10, 2003 at 08:09:04PM -0800, Steve Burrus wrote:
> Thank you Peng for being THE ONLY PERSON TO RESPOND TO ME SO FAR!!!

 Well, you have to recognize that not everybody is awake, or
interested, at the same time.

> I really do appreciate your honesty that u seemed to display in yer
> response back to me!!! 

 Anybody who actually *responds* to you, negative or positive, is
being more honest than most people, who will simply ignore you (and
this, in turn, is more honest than those who will engage in a false
dialog to have fun teasing you, or to pump their own egoes).  Those
who ignore you are divided (in what proportion, I cannot say) between
those who are unwilling to invest the time and energy in this
community, and those who have prior obligations that take precedence
(for example, Craig McClanahan).

> Please, can't someone other than this Peng respond back to my
> "baring of my soul" in a meaningful and relevent way? Why have I not
> heard back from this Craig Mcclanahan with the news that he intends
> to "kick me out" of this newsgroup?

 I wouldn't expect Craig to do so.  

 For one thing, he's not in charge of this list, although most
people in the java world have a lot of respect for him and would
certainly give a lot of attention to any request he made.

 For another thing, Craig's probably much more interested in
devoting his energy to the various projects that he's committed to -
like helping get the next version of Tomcat out, or helping steer the
development of various Java Community Process specifications.

 For yet another thing, Craig constantly contributes his time and
expertise to helping people get started with tomcat (and on the
servlet list, though I haven't really had time to read that list in
the past few years, so I don't know if he still does).  He probably
has learned by now to focus on investing his time and energy in places
where he can make a positive difference, and ignore situations like
this.

 I recognize where you're coming from here.  I've been frustrated
and trying to find the answer to problems, and I've had that feeling
that nobody's listening.  But experience (both that experience, and
the experience of being on the other side of this equation) has
shown me that the real reason people are responding is that:

 some people have no clue how to respond (we're not all experts)
 some people don't have the answer (even the experts don't always know)
 some people don't have the time (experts are often very busy)

 And finally,

 some people don't need the angst.

 To explain tht last; being busy, you want to invest your time
where you *know* it will make a difference.  Even the time necessary
to *figure out* whether a given request will make a difference or not
is too much.  There are a thousand requests at any given moment. Any
one of them (or many of them) could easily suck up enough time, just
figuring out if the requester knows enough to understand the answer,
to prevent you from answering the dozens of requests where you *know*
your response will make a difference.  Not to mention the other
activities you may be involved in, which will strategically help
thousands or tens of thousands of people at once.

 This is why, if you want to get answers to your questions, you
have to make it clear in your post that you have done your homework,
that you have tried the usual resources, that you are not asking for
the answer to be spoonfed to you.  

 And sadly, even then, the simple fact may be that nobody around
at the moment knows the answer.  And that the people who might be able
to figure out the answer, with some time and thought, don't have the
time to spare, because they're busy working on either more advanced
issues, or helping people with more basic stuff (as we see here, every
day).

 
Steven J. Owens
[EMAIL PROTECTED]

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." - Me at http://darksleep.com


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




Re: how can I make my Java code write to a file using relative paths

2003-02-10 Thread Bill Barker
To follow up on Tim's suggestion:

use:
  out = new
FileOutputStream(application.getRealPath("WEB-INF\\classes\\response.txt",
true);

(Here, 'application' has it's JSP meaning as the ServletContext, for a
GenericServlet, replace it by getServletContext()).

Of course, you are SOL if you doing this is you are using unpacked-war
files. In this case the best that you can do is:

  out = new FileOutputStream(new
File(application.getAttribute("javax.servlet.context.tempdir"),"response.txt
"),true);


"Tim Funk" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Don't rely on relative paths. At any point in time - someone can change
> the current working directory and throw any preconceived notions way off.
>
> Use absolute paths. Get the base path directory by configuring it in
> web.xml or server.xml.
>
> -Tim
>
> runu rathi wrote:
> > Hi all,
> > I am using the following statement in my .java file
> >
> > out = new FileOutputStream("responses.txt", true);
> >
> > I assumed that it should write in a file in the same
> > directory as the .java file in web-inf/classes
> >
> > but instead it writes in C:\WINNT\system32
> >
> > How can I get it to write at a particular place using
> > relative paths.
> >
> > I shall appreciate any help.
> > Thanks,
> > Runu




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




Re: how can I make my Java code write to a file using relative paths

2003-02-10 Thread runu rathi
Thaks Jake and Tim,

  Thats right, I am running it as an NT service. So,
how can I change my base directory to point to the
desired directory?

Thanks,
Runu 
Hello runu,

I'm guessing you are running your app as an NT
Service, right?  The
base directory of the JVM becomes that from where it
was started.  In
the case of a service, that is C:\WINNT\System32.  If
you started
Tomcat from the .bat file which existed in
CATALINA_HOME/bin, then
that is where the base directory would exist for your
relative paths.

Jake

Monday, February 10, 2003, 3:41:06 PM, you wrote:

rr> Hi all,
rr> I am using the following statement in my .java
file

rr> out = new FileOutputStream("responses.txt", true);

rr> I assumed that it should write in a file in the
same
rr> directory as the .java file in web-inf/classes

rr> but instead it writes in C:\WINNT\system32

rr> How can I get it to write at a particular place
using
rr> relative paths.

rr> I shall appreciate any help.
rr> Thanks,
rr> Runu



__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




RE: about singletons (ot)

2003-02-10 Thread Mike Jackson
Hmm, I wish I'd been paying attention to the list, but basically yes.  You
get finer control by using synchronized code blocks.  Really the major
reason is that you in most cases don't really need to synchronize the entire
method, only small portions of the code.  For example:

protected static Object lock = new Object();
protected static int nextId = 1;

public int getNextId() {
int id = -1;
synchronized( lock ) {
id = nextId;
nextId++;
}
return id;
}

public void setNextId( int i ) {
synchronized( lock ) {
nextId = i;
}
}

As you can see we've got protection for the variable we care about, namely
"nextId".  And we've got it setup such that you can have threads accessing
nextId both in the
getNext and setNext methods.  Now you're probably saying that you could use
the synchronized statement on the methods here.  The answer to that is nope,
when you synchronize the method you're synchronizing on "this", since the
goal is to protect a static variable you're not going to want to do that.

Now even if the nextId wasn't static, you have to consider that you might be
doing other work in the methods.  Work that doesn't need to be synchronized.
For example we might have something like this:

protected int id = 1;

public synchronized void spin( int i )
/* start crit section */
int i, max = id;
id++;
/* end crit section */
for ( int i = 0; i < max; i++ ) {
;
}
}

Ok, so this code is safe, but is it efficent?  We're blocking threads from
entering which will protect the "id" variable, but we'll be taking time
outside the crit section which will also be protected.  Clearly we don't
really want to do this.  A better way to do this is:

protected Object lock = new Object();
protected int id = 1;

public synchronized void spin( int i )
int i, max;
/* start crit section */
synchronized( lock ) {
max = id;
id++;
}
/* end crit section */
for ( int i = 0; i < max; i++ ) {
;
}
}

We're still protecting the crit section, but we aren't impeding other
threads from entering and even completing their pass through the method
prior to our finish.

However sucky examples and all making code thread safe is a lot of work.
There's some "recipes" out there for generating thread safe code, but quite
frankly I don't remember them any more.  But there's some really good books
that we mentioned by other people, the addison westley book is good, and the
o'reilly threads book is good.

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

> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 12:26 PM
> To: Tomcat Users List
> Subject: Re: about singletons (ot)
>
>
> So you mean that the original author (mike jackson) was saying that he
> used synchronized code blocks to apply a finer level of detail in
> specifying what is synchronized and what isn't, as opposed to just
> declaring an entire method synchronized?
>
> I understand that synchronization implies a performance penalty, but I
> wasn't sure what the advantage to using synchronized blocks over
> synchronized methods was.
>
>
> Erik
>
>
>
>
> Tobias Dittrich wrote:
> > The reason why you don't want to use synchronized methods is that a
> > synchronized block can only be executed by one thread at a
> time. Every other
> > thread wanting to access this method will be blocked during
> this time (well,
> > basically). So you want to try to keep the synchonized blocks
> as small as
> > possible.
> >
> > Having said that I wonder weather performance is an issue in
> the singleton
> > vs only-static discussion. Is there a significant difference in
> execution
> > speed? After all one has to make one additional method call
> every time when
> > accessing a singleton method (the getInstance() which is  synchronized,
> > too). And since we're off topic anyway: is a call to a static
> method faster
> > than a "normal" one to an object (well, I mean the overhead
> from the method
> > call, not the execution speed of the method body ... )?
> >
> >
> > Cheers
> > Tobi
> >
> >
> >
> > From: "Erik Price" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 29, 2003 1:46 PM
> > Subject: Re: about singletons (ot)
> >
> >
> >
> >>
> >>Mike Jackson wrote:
> >>
> >>>The difference is that if you use a singleton there's one instance.  If
> >>>everything
> >>>is static then you only have one copy.  Usually when you use a
> singleton
> >>>it's to
> >>

Re: DEPLOY Command

2003-02-10 Thread Bill Barker
That's something! you are using a system 12 versions ahead of the release
:).

Assuming that you mean 4.1.18, the attached diff file should bring you up to
the (shortly to be released) 4.1.20 version of Manager, where this should be
fixed.  If you apply the changes to the Manager web.xml, you should be fine.

"Alberto Magalhaes" <[EMAIL PROTECTED]> wrote in message
00d701c2d14d$f8f92640$6c3316d5@aacm">news:00d701c2d14d$f8f92640$6c3316d5@aacm...
> I am using TOMCAT 4.0.18.
>
> - Original Message -
> From: "Bill Barker" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 10, 2003 7:44 AM
> Subject: Re: DEPLOY Command
>
>
> > I seem to remember that there were some recent changes that may fix
this,
> > but it is hard to know without knowing which Tomcat version you are
> running.
> >
> > "Alberto Magalhaes" <[EMAIL PROTECTED]> wrote in message
> > 001701c2cfc4$2a35e530$353216d5@aacm">news:001701c2cfc4$2a35e530$353216d5@aacm...
> > Hi,
> > why when i try to make:
> > http://127.0.0.1:8080/manager/deploy?path=/examples,
> > it gives an error:
> >
> > FAIL - Unknown command /deploy
> >
> > Thanks
> > AAM
> >
> >
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >


begin 666 web.xml.diff
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/0T*4D-3(&9I;&4Z("]H;VUE+V-V&UL"3(P,#,O
M,#$O,C0@,30Z-#@Z-3 ),2XY#0I 0" M,S@L-R K,S@L-3$@0$ -"B @(#PA
M+2T@1&5F:6YE('1H92!-86YA9V5R(%-E3PO=7)L+7!A='1E


RE: Need help w. another jsp!

2003-02-10 Thread Jacob Hookom
<%
  switch(color) {
case RED : {
%>
<%=data %>
<%
}
default : {
%>
<%=data %>
<%
}
  }
%>

There is a better way to do this though with scriptlets (if you must embed
java code).

<%
  final String[] colors = new String[]
  { "black", "blue", "green", "red"  };
  int colorToUse = 3;
  if (colorToUse >= colors.length) colorToUse = 0;
%>

<%=data %>

-Jacob

| -Original Message-
| From: Steve Burrus [mailto:[EMAIL PROTECTED]]
| Sent: Monday, February 10, 2003 11:32 PM
| To: Tomcat Users List
| Subject: RE: Need help w. another jsp!
| 
| Hi Denise, and I really do appreciate yer nice response back to my plea
| for some help/assistance with this damn "ControlFlow.jsp" of mine. Listen,
| did you know that the "switch-case" is in a jsp, and so the whole block is
| contained in these symbols (<% %>). Now, how exactly do I handle that? I
| need some guidance from you now. Is the whole block contained between
| brackets ({ }) or something?


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




Re: Virtual Hosting Tomcat

2003-02-10 Thread Sean Dockery
I have done this in the past.  Here's what you can do...

Open the "hosts" file on your machine (in WinNT\System32\drivers\etc on my
Windows 2000 machine--your location may be different) and add the following
lines to the end of the file...

127.0.0.1alpha
127.0.0.1gamma
127.0.0.1omega

For each Host.name attribute in your server.xml, set it to a machine name.
Like this...

  
...
  

  
...
  

  
...
  

Then you should be able to access your local machine using different names
like this...

http://alpha:8080/
http://gamma:8080/
http://omega:8080/

Good luck.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Lajos" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 20:25
Subject: Re: Virtual Hosting Tomcat


> Ouch, windows. I'm not too sure - maybe someone else can provide the
> info. On older versions, you could edit some file like lmhosts ...
>
> I like fronting Tomcat with Apache for security reasons, but I still use
> virtual hosts in Tomcat. I have no idea why you are running out of
> memory - how much RAM do you have? It may be due to your applications
> more than Tomcat itself.
>
> Regards,
>
> Lajos
>
>
> Sangam Dash wrote:
> > Hi
> >
> > Thanks for the mail.
> > But do you know how to do that on windows machine?
> > The other thing is that when i add this one to the server.xml file the
> > tomcat runs out of memory and it gives premature end of file error
> > sometimes. :-[
> > Is it better to have apache and tomcat both configured for this kind of
> > situations? :-\
> > Thanks a lot
> > Sangam Dash :-)
> > Lajos wrote:
> >
> >> Hi Sangam -
> >>
> >> Looks like the examples from my FlashGuide ;) What doesn't work? One
> >> thing that you must make sure is that the values of the name attribute
> >> of the  resolve to your machine. You can do this via your
> >> machine's DNS configuration. In the example below, mydomain0.com,
> >> mydomain1.com and mydomain2.com must resolve to the same machine. If
> >> not, the example won't work.
> >>
> >> Regards,
> >>
> >> Lajos
> >>
> >>
> >> Sangam Dash wrote:
> >>
> >>> Hi
> >>>
> >>> I am using tomcat for my websites.
> >>> I am not using apache.
> >>> I need to do have two websites running from the same machine with the
> >>> same tomcat instance.
> >>> i didnt get any help on the net as everything for virtual hosting  is
> >>> with apache and tomcat combination.
> >>> is it possible to server two different websites from same machine
> >>> using only tomcat?
> >>> please help me out
> >>>
> >>> I tried the following
> >>> but it doesnt work
> >>>
> >>> added this following to the server.xml file
> >>>  >>> unpackWARs="true">
> >>>>>> directory="logs" prefix="mydomain0." suffix=".log" timestamp="true"/>
> >>>   
> >>>>>> reloadable="true"/>
> >>>   
> >>>>>> unpackWARs="true">
> >>>>>> directory="logs" prefix="mydomain1." suffix=".log" timestamp="true"/>
> >>>   
> >>>>>> reloadable="true"/>
> >>>   
> >>>>>> unpackWARs="true">
> >>>>>> directory="logs" prefix="mydomain2." suffix=".log" timestamp="true"/>
> >>>   
> >>>>>> reloadable="true"/>
> >>>   i appreciate any kind of help ...
> >>> i am using tomcat 4.1.12
> >>>
> >>> thanks a lot
> >>> sangam dash
> >>>
> >>>
> >>> -
> >>> 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]
> >
> >
>
>
> --
>
>
>
> Lajos Moczar
>
>  Open Source Support, Consulting and Training
>
>  Cocoon Developer's Handbook
>   (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
>
> _  _
>/ \ /
>   /___\  /
>  / \   /
>
>   http://www.galatea.com -- powered by AzSSL
>
>
> -
> 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: Need help w. another jsp!

2003-02-10 Thread Steve Burrus
Hi Denise, and I really do appreciate yer nice response back to my plea for some 
help/assistance with this damn "ControlFlow.jsp" of mine. Listen, did you know that 
the "switch-case" is in a jsp, and so the whole block is contained in these symbols 
(<% %>). Now, how exactly do I handle that? I need some guidance from you now. Is the 
whole block contained between brackets ({ }) or something?


Re: MY ATTITUDE

2003-02-10 Thread Bill Barker
Probably, because Craig has much more sense than to respond to rants like
this (unlike some people, say me ;-).  Also Craig is not one of the
moderators of this list (and, I'm not one either).

"Steve Burrus" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thank you Peng for being THE ONLY PERSON TO RESPOND TO ME SO FAR!!! I
really do appreciate your honesty that u seemed to display in yer response
back to me!!! And, I have never stated this as a reason for sounding the way
that I must to others in our newsgroup, but I have never much learned the
"social graces" that everyone needs to learn somewhere along the line in
growing up!! That is certainly no kind of a condemnation of my nice parents
and their parenting skills. No, it is more a refection of me and the very
way that i chose to be to the rest of the world, sad to say! Please, can't
someone other than this Peng respond back to my "baring of my soul" in a
meaningful and relevent way? Why have I not heard back from this Craig
Mcclanahan with the news that he intends to "kick me out" of this newsgroup?
I seem to almost be begging for it in the way that this "rant" of mine
sounds.




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




Re: compression filter problem

2003-02-10 Thread Jacob Kjome

All I found was your web.xml file.  You'll need to re-attach your jsp and 
java files.

Note that I posted stuff about this and still haven't found a simple solution.
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg82477.html

Jacob Hookum figured out a way to do it using the same logic as the filter 
in Tomcat's "examples" app.  However, that one seems unnecessarily 
complex.  It seems the problem is resetting the content-type  and 
content-length headers.  I try to set them, but they just don't change and 
I just don't understand why.  Must be somewhat perplexing because no one 
else came up with a reason why they weren't being set either.  Not sure if 
it is a bug in Tomcat or what???

Anyway, if you figure it out, make sure you post your solution.  I'd be 
very interested in it.  I'll do likewise.

Jake

At 10:20 AM 2/11/2003 +0530, you wrote:
Hi

I am Developing Web application using tomcat. I want to Comopress my all 
jsp pages in web application, for that i have make some java filter 
classes and make changes in web.xml. but I am facing two problems
1. in jsp i have to put header content encoding is gzip, without that 
brower display zip data
2. browser keep showing that page is comeing and showing progress bar in 
status bar even data is display completely.

here i have attached java files, jsp and web.xml

Hope to get answer
thank you


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


compression filter problem

2003-02-10 Thread Alkesh



Hi 
 
I am Developing Web application using tomcat. I 
want to Comopress my all jsp pages in web application, for that i have make some 
java filter classes and make changes in web.xml. but I am facing two 
problems1. in jsp i have to put header content encoding is gzip, without 
that brower display zip data2. browser keep showing that page is comeing and 
showing progress bar in status bar even data is display completely.
 
here i have attached zip file contains java 
files(com.phoenix.filter.*.java), jsp and web.xml 
 
Hope to get answerthank you
 
 


javafile.zip
Description: Zip compressed data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


compression filter problem

2003-02-10 Thread Alkesh



Hi 
 
I am Developing Web application using tomcat. I 
want to Comopress my all jsp pages in web application, for that i have make some 
java filter classes and make changes in web.xml. but I am facing two 
problems1. in jsp i have to put header content encoding is gzip, without 
that brower display zip data2. browser keep showing that page is comeing and 
showing progress bar in status bar even data is display completely.
 
here i have attached java files, jsp and 
web.xml
 
Hope to get answerthank you
 


http://java.sun.com/dtd/web-app_2_3.dtd";>



helloWorld
com.phoenix.filter.HelloWorldFilter

  
message
com.phoenix.filter.MessageFilter

message 
A message to you! 



prePost
com.phoenix.filter.PrePostFilter


gzip
com.phoenix.filter.GZIPFilter

gzip/fine.jsp





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


Re: MY ATTITUDE

2003-02-10 Thread Mike Johnson
damn... cool down. :-)

first off, i looked up some of your previous posts, you might benefit
from reading this:

http://216.239.37.100/search?q=cache:Rx-raoTa3JUC:www.tuxedo.org/~esr/faqs/smart-questions.html+esr+how+to+ask+questions&hl=en&start=1&ie=UTF-8

(sorry about the google cache, tuxedo.org seems to be redirecting random
places right now.)

anywho, that's written by a guy who's very well known around these
parts, if you're not familiar with him. he comes off, er, pompous in
that piece but he does have a good point. there's a certain culture on
mailing lists. a silent, agreed-apon way to ask questions in order to
get good results.

secondly, if you do get a polite response to your questions, be
grateful. somebody has taken time out of their day to help you with your
problem, and besides that, it's quite rare to have a good conversation
"on the list." most people come off sounding like jerks with their
writing, so don't be put off by it. this is a collection of "geeks" and
specialists, not english majors. many people just don't have the writing
skills or time to make everything clear for their readers beyond the
technical realm. and remember, english is not a first language for many
people.

thirdly, one thing i've learned: use smileys. whenever your intent or
mood might not be obvious to the reader, the :-) denotes you are
laughing or at least not meaning to be hurtful. if you really must use
exclamation points, use them with caution -- they almost always make you
sound angry. you really don't want any sort of attitude like that to
show in your email, you are asking a question after all. the responses
you gather will probably attack you. you are asking for a technical
answer, so ask in a technical manner.

and lastly: always think before you post. i have an annoying habit of
firing off an email before i've really caught all of my own errors, i
think everybody does that. before you hit that send button, try to
explore on your own for a while. it'll do you good anyhow. :-)

and please, fix your email client. :-)

Mike Johnson


On Mon, 2003-02-10 at 19:05, Steve Burrus wrote:
> This might be just enough from me to get me permanently "kicked off"
> of this newsgroup (are you reading this,  Craig R. McClanahan??) I
> don't really care! I just had to "get off of my chest" a thing or two,
> and that is that just about all of you people out there in this
> newsgroup seem to have in for me in a really big way!! You make me
> feel like I should first "drop dead" and then possibly--if I
> could--"drop off of the face of this Earth"!! Maybe I should consult a
> psychologist/psychiatrist about this, but I have felt for a long time
> in my life that nobody in the whole wide world knows or wants to know
> that I AM ALIVE AT ALL. I dare anyone to respond to me WITHOUT saying
> to me the same old things in the way of an admonition that I have
> certainly heard so much of from so many of u recently. Thank
> You
-- 
Mike Johnson <[EMAIL PROTECTED]>


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




Re: MY ATTITUDE

2003-02-10 Thread Steve Burrus
Thank you Peng for being THE ONLY PERSON TO RESPOND TO ME SO FAR!!! I really do 
appreciate your honesty that u seemed to display in yer response back to me!!! And, I 
have never stated this as a reason for sounding the way that I must to others in our 
newsgroup, but I have never much learned the "social graces" that everyone needs to 
learn somewhere along the line in growing up!! That is certainly no kind of a 
condemnation of my nice parents and their parenting skills. No, it is more a refection 
of me and the very way that i chose to be to the rest of the world, sad to say! 
Please, can't someone other than this Peng respond back to my "baring of my soul" in a 
meaningful and relevent way? Why have I not heard back from this Craig Mcclanahan with 
the news that he intends to "kick me out" of this newsgroup? I seem to almost be 
begging for it in the way that this "rant" of mine sounds.  


RE: Virtual Hosting Tomcat

2003-02-10 Thread Turner, John

In %SYSTEM%\system32\drivers\etc, there is a file called hosts.  If there
isn't a file called hosts, there is typically a file called hosts.sam.  If
hosts exists, edit it.  If it doesn't, copy hosts.sam to hosts, edit hosts.

%SYSTEM% = wherever Windows is, like C:\Windows

John

-Original Message-
From: Lajos [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 10:25 PM
To: Tomcat Users List
Subject: Re: Virtual Hosting Tomcat


Ouch, windows. I'm not too sure - maybe someone else can provide the 
info. On older versions, you could edit some file like lmhosts ...

I like fronting Tomcat with Apache for security reasons, but I still use 
virtual hosts in Tomcat. I have no idea why you are running out of 
memory - how much RAM do you have? It may be due to your applications 
more than Tomcat itself.

Regards,

Lajos


Sangam Dash wrote:
> Hi
> 
> Thanks for the mail.
> But do you know how to do that on windows machine?
> The other thing is that when i add this one to the server.xml file the
> tomcat runs out of memory and it gives premature end of file error 
> sometimes. :-[
> Is it better to have apache and tomcat both configured for this kind of 
> situations? :-\
> Thanks a lot
> Sangam Dash :-)
> Lajos wrote:
> 
>> Hi Sangam -
>>
>> Looks like the examples from my FlashGuide ;) What doesn't work? One
>> thing that you must make sure is that the values of the name attribute 
>> of the  resolve to your machine. You can do this via your 
>> machine's DNS configuration. In the example below, mydomain0.com, 
>> mydomain1.com and mydomain2.com must resolve to the same machine. If 
>> not, the example won't work.
>>
>> Regards,
>>
>> Lajos
>>
>>
>> Sangam Dash wrote:
>>
>>> Hi
>>>
>>> I am using tomcat for my websites.
>>> I am not using apache.
>>> I need to do have two websites running from the same machine with 
>>> the
>>> same tomcat instance.
>>> i didnt get any help on the net as everything for virtual hosting  is 
>>> with apache and tomcat combination.
>>> is it possible to server two different websites from same machine 
>>> using only tomcat?
>>> please help me out
>>>
>>> I tried the following
>>> but it doesnt work
>>>
>>> added this following to the server.xml file
>>> >> unpackWARs="true">
>>>   >> directory="logs" prefix="mydomain0." suffix=".log" timestamp="true"/>
>>>   
>>>   >> reloadable="true"/>
>>>   
>>>   >> unpackWARs="true">
>>>   >> directory="logs" prefix="mydomain1." suffix=".log" timestamp="true"/>
>>>   
>>>   >> reloadable="true"/>
>>>   
>>>   >> unpackWARs="true">
>>>   >> directory="logs" prefix="mydomain2." suffix=".log" timestamp="true"/>
>>>   
>>>   >> reloadable="true"/>
>>>   i appreciate any kind of help ...
>>> i am using tomcat 4.1.12
>>>
>>> thanks a lot
>>> sangam dash
>>>
>>>
>>> 
>>> -
>>> 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]
> 
> 


-- 



Lajos Moczar
   
 Open Source Support, Consulting and Training
   
 Cocoon Developer's Handbook
  (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

_  _
   / \ /
  /___\  /
 / \   /

  http://www.galatea.com -- powered by AzSSL


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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




Jserv...

2003-02-10 Thread MARIO HENLEY BECERRIL GELDIS

  Hi managers


  Look i have Jserv, but when review jserv.conf and jserv.properties, i
find this parameters:

  # If the total number of processes specified in jserv.conf is n, then
  # at least n ports should be specified.
  port=8900

  But in jserv.conf find

  ApJServManual auto


  ApJServDefaultPort 8900


  :-(  how to know...number for jserv ports if ApJServManual set to
auto...and my logs send this error...

   ApacheJserv../:failed to bind to port(s) specified in
../jserv.properties. Please check ../jserv.properties and jserv.conf file,
amd make sure of Jserv process specified in jserv.conf is less than number
of ports specified in ../jserv.properties. and the ports are not used by
other processes.

 
  Tnk's




--
Mario Henley Becerril Geldis
.jA
.nimdA smetsyS



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




Re: Virtual Hosting Tomcat

2003-02-10 Thread Lajos
Ouch, windows. I'm not too sure - maybe someone else can provide the 
info. On older versions, you could edit some file like lmhosts ...

I like fronting Tomcat with Apache for security reasons, but I still use 
virtual hosts in Tomcat. I have no idea why you are running out of 
memory - how much RAM do you have? It may be due to your applications 
more than Tomcat itself.

Regards,

Lajos


Sangam Dash wrote:
Hi

Thanks for the mail.
But do you know how to do that on windows machine?
The other thing is that when i add this one to the server.xml file the 
tomcat runs out of memory and it gives premature end of file error 
sometimes. :-[
Is it better to have apache and tomcat both configured for this kind of 
situations? :-\
Thanks a lot
Sangam Dash :-)
Lajos wrote:

Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One 
thing that you must make sure is that the values of the name attribute 
of the  resolve to your machine. You can do this via your 
machine's DNS configuration. In the example below, mydomain0.com, 
mydomain1.com and mydomain2.com must resolve to the same machine. If 
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:

Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the 
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is 
with apache and tomcat combination.
is it possible to server two different websites from same machine 
using only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

  
  
  
  
  
  
  
  
  
  
  
  
  
  i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


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





--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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




Re: MY ATTITUDE

2003-02-10 Thread Peng Tuck Kwok
First off, try and split your rant into several lines. I don't have a 
monitor that large to see everything in one line, I doubt everyone does.

Steve Burrus wrote:

I don't really care! I just had to "get off of my chest" a thing or two, and

> that is that just about all of you people out there in this newsgroup 
seem to have
>in for me in a really big way!!
Sorry, wrong place to take things of your chest.  People are just 
annoyed with the way you respond to them, judging from the replies that 
they sent.

You make me feel like I should first "drop dead" and then possibly--if I could--
"drop off of the face of this Earth"!! 
>Maybe I should consult a psychologist/psychiatrist about this,
Maybe you should. Or just try to clear your mind and solve your tomcat 
related issues one at a time.

>but I have felt for a long time in my life that nobody in the whole 
wide world
>knows or wants to know that I AM ALIVE AT ALL.


I dare anyone to respond to me 
>WITHOUT saying to me the same old things in the way of an admonition 
that I have
>certainly heard so much of from so many of u recently. Thank You
I recall from the list that people have replied to you in a polite 
manner so  I don't see the point in you issuing the challenge.








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



MY ATTITUDE

2003-02-10 Thread Steve Burrus
This might be just enough from me to get me permanently "kicked off" of this newsgroup 
(are you reading this,  Craig R. McClanahan??) I don't really care! I just had to "get 
off of my chest" a thing or two, and that is that just about all of you people out 
there in this newsgroup seem to have in for me in a really big way!! You make me feel 
like I should first "drop dead" and then possibly--if I could--"drop off of the face 
of this Earth"!! Maybe I should consult a psychologist/psychiatrist about this, but I 
have felt for a long time in my life that nobody in the whole wide world knows or 
wants to know that I AM ALIVE AT ALL. I dare anyone to respond to me WITHOUT saying to 
me the same old things in the way of an admonition that I have certainly heard so much 
of from so many of u recently. Thank You


Re: Virtual Hosting Tomcat

2003-02-10 Thread Sangam Dash
Hi

Thanks for the mail.
But do you know how to do that on windows machine?
The other thing is that when i add this one to the server.xml file the 
tomcat runs out of memory and it gives premature end of file error 
sometimes. :-[
Is it better to have apache and tomcat both configured for this kind of 
situations? :-\
Thanks a lot
Sangam Dash :-)
Lajos wrote:

Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One 
thing that you must make sure is that the values of the name attribute 
of the  resolve to your machine. You can do this via your 
machine's DNS configuration. In the example below, mydomain0.com, 
mydomain1.com and mydomain2.com must resolve to the same machine. If 
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:

Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the 
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is 
with apache and tomcat combination.
is it possible to server two different websites from same machine 
using only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

  
  
  
  
  
  
  
  
  
  
  
  
  
  i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


-
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: Virtual Hosting Tomcat

2003-02-10 Thread Lajos
Hi Sangam -

Looks like the examples from my FlashGuide ;) What doesn't work? One 
thing that you must make sure is that the values of the name attribute 
of the  resolve to your machine. You can do this via your 
machine's DNS configuration. In the example below, mydomain0.com, 
mydomain1.com and mydomain2.com must resolve to the same machine. If 
not, the example won't work.

Regards,

Lajos


Sangam Dash wrote:
Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the 
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is 
with apache and tomcat combination.
is it possible to server two different websites from same machine using 
only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

  
  
  
  
  
  
  
  
  
  
  
  
  
  i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


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




--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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




Re: Status 404 - resource not available

2003-02-10 Thread Peng Tuck Kwok
I think the servlet invoker (/servlet/myservlet) is off. Either turn it 
back on or make a servlet mapping on your own. And yes you will need the 
web.xml for the servlet mapping.

Kenny G. Dubuisson, Jr. wrote:
I don't have a web.xml defined.  In my old Tomcat 4.0.5 I didn't need one;
do I need one now?  Thanks,
Kenny

- Original Message -
From: "Tim Moore" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 12:37 PM
Subject: RE: Status 404 - resource not available




Check your web.xml. Servlets and serlet mappings must be declared in
web.xml.  Check the servlet spec for details.

--
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863




-Original Message-
From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 1:26 PM
To: Tomcat Users List
Subject: Re: Status 404 - resource not available


Sorry for the re-post but I didn't get any responses and I'm
really stuck on this.  Thanks, Kenny

- Original Message -
From: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 9:29 AM
Subject: Status 404 - resource not available




I just reloaded my development box and I can't get my servlet to be
recognized; I get a Status 404 error - resource not available.  I'm
not


sure


where to start diagnosing the problem.  My context (named "kcmria")
works...ie if I put in http://192.168.1.61/kcmria I get the


directory


listing of $CATALINA_HOME/webapps/kcmria which is what I


would expect.
But


I can't get anything in


$CATALINA_HOME/webapps/kcmria/WEB-INF/classes


to


be


recognized.

I tried copying HelloWorldExample over to my servlet directory but
can't


see


it either.  I think it must be something with my context.  Here is
what


I've


defined in server.xml:



reloadable="true"


crossContext="true">
   


My mod_jk.conf looks like this:

JkMount /kcmria ajp13
JkMount /kcmria/* ajp13

Any ideas where I should start looking?  Thanks,
Kenny





-


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: mod_jk.so / apache 1.3.27 / tomcat 4.1.18

2003-02-10 Thread Subir Sengupta
I get that too and it doesn't cause any problems.  I didn't build Apache so
I don't know what's causing it.  However you can probably safely ignore it.

Subir

-Original Message-
From: [de internetman] Rene Kooyman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 12:33 PM
To: Tomcat Users List
Subject: mod_jk.so / apache 1.3.27 / tomcat 4.1.18


Oke, that's done, just use the: /usr/lib/apache folder .. p,
now were getting somewhere, although i can't compile normaly because
apxs is located in the other folder ... so be it 

Now md_jk.so will load... but here's the error messages i was telling
you about earlier:

[warn] Loaded DSO modules/mod_jk.so uses plain Apache 1.3 API, this module 
might crash under EAPI! (please recompile it with -DEAPI)


And like i said before, should this be safe to ignore ... or do i have to
recompile ... and if so: how ?

-- 
Kind regards,

Rene Kooyman


-

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




Virtual Hosting Tomcat

2003-02-10 Thread Sangam Dash
Hi

I am using tomcat for my websites.
I am not using apache.
I need to do have two websites running from the same machine with the 
same tomcat instance.
i didnt get any help on the net as everything for virtual hosting  is 
with apache and tomcat combination.
is it possible to server two different websites from same machine using 
only tomcat?
please help me out

I tried the following
but it doesnt work

added this following to the server.xml file

  
  
  
  
  
  
  
  
  
  
  
  
  
  i appreciate any kind of help ...
i am using tomcat 4.1.12

thanks a lot
sangam dash


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



Linux/RPM 4.1.18 dtomcat4 script changes

2003-02-10 Thread Randy Watler
Just wondering if anyone else is having problems with changes to the RPM
dtomcat4 script from 4.1.10 to 4.1.18?

We use several methods to launch Tomcat within development, including
those that expect to set the CATALINA_HOME environment variable and
launch using /usr/bin/dtomcat4. However, this new code
in dtomcat4 overwrites the setting, resulting CATALINA_HOME being set
relative to the dtomcat4 script itself:

# resolve links - $0 may be a softlink
PRG="$0"

while [ -h "$PRG" ]; do
  ls=`ls -ld "$PRG"`
  link=`expr "$ls" : '.*-> \(.*\)$'`
  if expr "$link" : '.*/.*' > /dev/null; then
PRG="$link"
  else
PRG=`dirname "$PRG"`/"$link"
  fi
done

# Get standard environment variables
PRGDIR=`dirname "$PRG"`
CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`
if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
  . "$CATALINA_HOME"/bin/setenv.sh
fi

Since this script is located in "/usr/bin" and Tomcat is installed in
"/var/tomcat4" by the RPM, it would appear that this code can not find a
default correctly and should not have been added. I would expect that
the assignment of CATALINA_HOME to take place only if not already set,
as in:

if [ -z "$CATALINA_HOME" ] ; then
  CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`
fi

Have I missed something here?

Randy Watler
Finali Corporation




Re: Tomcat/Apache2/JNI on Solaris

2003-02-10 Thread Brzezinski, Paul J
Francesa Lacreativa wrote:


Has anyone been able to get Apache2 to start tomcat 4 via JNI and the
JK2 connector?  on Solaris by chance?  If so, could you please post or
privately email me your configuration files (httpd.conf,
workers2.properties, jk2.properties)?

gracias,
 

have you tried any of the latest builds?  Are you getting errors in 
catalina.out?  Please post your errors or give a little more detail 
about your config -- which flavor of J2SDK, what version of Apache, 
TomCat and the connectors you're using...

I did get this work on TC 4.1.15 but ended up combining all the jars 
into $CATALINA_HOME/common/lib because of a classloader issue...don't 
know if that's been resolved yet...my config: Solaris 8, J2SE v1.4, 
Tomcat was the 4.1.15-JDK-1.4.

-francesa





-
Do You Yahoo!?
Todo lo que quieres saber de Estados Unidos, América Latina y el resto
del Mundo.
Visíta Yahoo! Noticias.

 





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




Re: how can I make my Java code write to a file using relative paths

2003-02-10 Thread Jacob Kjome
Hello runu,

I'm guessing you are running your app as an NT Service, right?  The
base directory of the JVM becomes that from where it was started.  In
the case of a service, that is C:\WINNT\System32.  If you started
Tomcat from the .bat file which existed in CATALINA_HOME/bin, then
that is where the base directory would exist for your relative paths.

Jake

Monday, February 10, 2003, 3:41:06 PM, you wrote:

rr> Hi all,
rr> I am using the following statement in my .java file

rr> out = new FileOutputStream("responses.txt", true);

rr> I assumed that it should write in a file in the same
rr> directory as the .java file in web-inf/classes

rr> but instead it writes in C:\WINNT\system32

rr> How can I get it to write at a particular place using
rr> relative paths.

rr> I shall appreciate any help.
rr> Thanks,
rr> Runu

rr> __
rr> Do you Yahoo!?
rr> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
rr> http://mailplus.yahoo.com

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: how can I make my Java code write to a file using relative paths

2003-02-10 Thread Tim Funk
Don't rely on relative paths. At any point in time - someone can change 
the current working directory and throw any preconceived notions way off.

Use absolute paths. Get the base path directory by configuring it in 
web.xml or server.xml.

-Tim

runu rathi wrote:
Hi all,
I am using the following statement in my .java file

out = new FileOutputStream("responses.txt", true);

I assumed that it should write in a file in the same
directory as the .java file in web-inf/classes

but instead it writes in C:\WINNT\system32

How can I get it to write at a particular place using
relative paths.

I shall appreciate any help.
Thanks,
Runu



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




Re: IIS+Tomcat security constraint = Unauthorized: Logon Failed

2003-02-10 Thread Sean Dockery
It seems unlikely that IIS would arbitrarily intercept a request that it has
been instructed to forward, but I do not know enough about integrating IIS
with Tomcat to know for sure.

Perhaps you can turn on the RequestDumper Value in Tomcat to see what
headers are being submitted when you access Tomcat through the standalone
port versus accessing Tomcat through IIS.  That might give you more
information that you have now.  :-)

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Felipe" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 14:39
Subject: RE: IIS+Tomcat security constraint = Unauthorized: Logon Failed


> Yes. I can authenticate through the tomcat standalone port.
> I am using the BASIC with a MemoryRealm.
> Everything as simple as it can get!
>
> Do you know if it is possible to have IIS to leave the authentication to
> tomcat?
>
> Thanks,
> Felipe
>
>
> -Original Message-
> From: Sean Dockery [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 3:50 PM
> To: Tomcat Users List
> Subject: Re: IIS+Tomcat security constraint = Unauthorized: Logon Failed
>
> Can you authenticate through the Tomcat standalone port?  Or does that
> fail
> as well?
>
> What method of authentication are you using?  BASIC or DIGEST?  If you
> are
> currently using DIGEST, try BASIC (for testing purposes).
>
> What type of Realm are you authenticating against?  MemoryRealm, JDBC,
> or
> JNDI?
>
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
> - Original Message -
> From: "Felipe" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Monday, February 10, 2003 09:08
> Subject: RE: IIS+Tomcat security constraint = Unauthorized: Logon Failed
>
>
> > Yes. I have defined the user, password and role and everything else
> needed
> > to make it work on tomcat. What seems to be the problem is that IIS is
> > trying to authenticate the user by itself instead of forwarding the
> > user/password information to tomcat. (It allow me to try 3 times and
> then
> > give me the "Unauthorized: Logon Failed" error page regardless the
> valid
> > user and password).
> >
> > I know the ISAPI filter is working because if I remove the security
> > constraint from tomcat I can get to it and I know the tomcat security
> > constraint is working because if I can get to it using the "stand
> alone"
> > port.
> >
> > Have you seen this scenario working before? I found some posts with
> this
> > issue but no reply to any of them.
> >
> > Thanks,
> > Felipe
> >
> >
> >
> > -Original Message-
> > From: Sean Dockery [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 10, 2003 8:05 AM
> > To: Tomcat Users List
> > Subject: Re: IIS+Tomcat security constraint = Unauthorized: Logon
> Failed
> >
> > Where have you defined the user and password that you believe you
> should
> be
> > a valid user?  What is the role constraint that you have defined on
> the
> web
> > resource?  Is the user in question set up for that role?
> >
> > Sean Dockery
> > [EMAIL PROTECTED]
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.com
> >
> > - Original Message -
> > From: "Felipe Crochik" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, February 09, 2003 21:34
> > Subject: IIS+Tomcat security constraint = Unauthorized: Logon Failed
> >
> >
> > > I am trying to use the tomcat security constraints "behind" an IIS
> web
> > > server. I know tomcat and the ISAPI filter are working. Also, Tomcat
> > > authorization is working bypassing IIS using port 8080.
> > >
> > > When I try to reach the exactly same application through IIS (port
> 80) I
> > > get the user validation dialog box and after I try to login with a
> valid
> > > user and password I get HTTP 401.1 - Unauthorized: Logon Failed.
> > >
> > > TIA,
> > > Felipe
> > >
> >
> >
> >
> > -
> > 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: Apache-Tomcat Configuring....

2003-02-10 Thread Wilson, Allen
John

My file looks exactly like yours

I also followed the steps that you outline in your HOW-TO documents(the
only difference I have is that I am using Apache 1.3.27 and I did not do
the configure to enable ssl I did it with enable-rule=Shared_Core and I
came up with the exactly same errors (see below). 

If there is any idea of where I should go now..please let me know. I may
have to consider just running Tomcat by itself but that really hurts me
for the other things I want to do with the site.

Allen

Making all in common
/usr/local/bin/libtool --mode=compile gcc -I/opt/WWW/include -g -O2
-DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_CORE -g
-O2  -I /usr/java
1.2/include -I /usr/java1.2/include/ -c jk_ajp12_worker.c
mkdir .libs
gcc -I/opt/WWW/include -g -O2 -DSOLARIS2=280 -DUSE_EXPAT
-I../lib/expat-lite -fPIC -DSHARED_CORE -g -O2 -I /usr/java1.2/include
-I /usr/java1.2/include/ -c
 jk_ajp12_worker.c  -fPIC -DPIC -o .libs/jk_ajp12_worker.lo
In file included from jk_global.h:103,
 from jk_logger.h:67,
 from jk_ajp12_worker.h:67,
 from jk_ajp12_worker.c:65:
/usr/include/sys/socketvar.h:54: parse error before `t_uscalar_t'
/usr/include/sys/socketvar.h:54: warning: no semicolon at end of struct
or union
/usr/include/sys/socketvar.h:55: warning: data definition has no type or
storage class
/usr/include/sys/socketvar.h:222: parse error before `t_uscalar_t'
/usr/include/sys/socketvar.h:222: warning: no semicolon at end of struct
or union
/usr/include/sys/socketvar.h:223: warning: data definition has no type
or storage class
/usr/include/sys/socketvar.h:224: parse error before `so_addr_size'
/usr/include/sys/socketvar.h:224: warning: data definition has no type
or storage class
/usr/include/sys/socketvar.h:225: parse error before `so_opt_size'
/usr/include/sys/socketvar.h:225: warning: data definition has no type
or storage class
/usr/include/sys/socketvar.h:226: parse error before `so_tidu_size'
/usr/include/sys/socketvar.h:226: warning: data definition has no type
or storage class
/usr/include/sys/socketvar.h:227: parse error before `so_serv_type'
/usr/include/sys/socketvar.h:227: warning: data definition has no type
or storage class
/usr/include/sys/socketvar.h:230: parse error before `so_acceptor_id'
/usr/include/sys/socketvar.h:230: warning: data definition has no type
or storage class
/usr/include/sys/socketvar.h:274: parse error before `}'
/usr/include/sys/socketvar.h:623: parse error before `t_scalar_t'
/usr/include/sys/socketvar.h:623: warning: no semicolon at end of struct
or union
/usr/include/sys/socketvar.h:624: warning: data definition has no type
or storage class
/usr/include/sys/socketvar.h:625: parse error before `si_faddr_soa_len'
/usr/include/sys/socketvar.h:625: warning: data definition has no type
or storage class
/usr/include/sys/socketvar.h:630: parse error before `}'
/usr/include/sys/socketvar.h:248: storage size of `so_laddr' isn't known
/usr/include/sys/socketvar.h:249: storage size of `so_faddr' isn't known
*** Error code 1
make: Fatal error: Command failed for target `jk_ajp12_worker.lo'
Current working directory
/opt/WWW/tomcat-connectors-jk-1.2.0-src/jk/native/common
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 11:13 AM
To: 'Tomcat Users List'
Subject: RE: Apache-Tomcat Configuring



There's nothing that I know of that will check patch versions prior to
running ./configure.

This is just a stab in the dark...have you looked at that file?  The
error
message seems to be saying that there is a simple syntax error (missing
semicolon).  The first error is at line 54, this is what my
/usr/include/sys/socketvar.h looks like at that line:

/*
 * Internal representation used for addresses.
 */
struct soaddr {
struct sockaddr *soa_sa;/* Actual address */
t_uscalar_t soa_len;/* Length in bytes for kmem_free
*/
t_uscalar_t soa_maxlen; /* Allocated length */
};

HTH

John


> -Original Message-
> From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 12:02 PM
> To: Tomcat Users List
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> I just talk to the individual who add the OS...and he says the system
> has the most up to date patches
> 
> Is there something that I can run to make sure that I have 
> the necessary
> patches to do the configuration...
> 
> Allen
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 10, 2003 9:54 AM
> To: 'Tomcat Users List'
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> 
> I would download the patch cluster and apply it just the same...the
> script
> will tell you if the patches don't need to be applied and behave
> accordingly.
> 
> You'll want the 8_Recommended patch cluster for your architecture.  I

Tomcat/Apache2/JNI on Solaris

2003-02-10 Thread Francesa Lacreativa

Has anyone been able to get Apache2 to start tomcat 4 via JNI and the JK2 connector?  
on Solaris by chance?  If so, could you please post or privately email me your 
configuration files (httpd.conf, workers2.properties, jk2.properties)?

gracias,

-francesa

 



-
Do You Yahoo!?
Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo.
Visíta Yahoo! Noticias.



RE: DEPLOY Command

2003-02-10 Thread Felipe
To use the deploy command you need to create a HTML page with a form with
the path field and a field type FILE and "PUT" it.

The following was copied from the manager how-to:

Upload the web application archive (WAR) file that is specified as the
request data in this HTTP PUT request, install it into the appBase directory
of our corresponding virtual host, and start it on the context path
specified by the path request parameter. The application can later be
undeployed (and the corresponding application directory removed) by use of
the /undeploy.

NOTE - Since this command requires an HTTP PUT request, it is usable only
from tools (such as the custom Ant tasks described below). To install a new
web application without copying, consider the /install command described
below. This command is the logical opposite of the /undeploy command.



-Original Message-
From: Alberto Magalhaes [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 4:47 PM
To: Tomcat Users List
Subject: Re: DEPLOY Command

I am using TOMCAT 4.0.18.

- Original Message -
From: "Bill Barker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 7:44 AM
Subject: Re: DEPLOY Command


> I seem to remember that there were some recent changes that may fix this,
> but it is hard to know without knowing which Tomcat version you are
running.
>
> "Alberto Magalhaes" <[EMAIL PROTECTED]> wrote in message
> 001701c2cfc4$2a35e530$353216d5@aacm">news:001701c2cfc4$2a35e530$353216d5@aacm...
> Hi,
> why when i try to make:
> http://127.0.0.1:8080/manager/deploy?path=/examples,
> it gives an error:
>
> FAIL - Unknown command /deploy
>
> Thanks
> AAM
>
>
>
>
>
>
> -
> 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: Multiple Virtual Hosts Single Sign On

2003-02-10 Thread Gary Gwin
Victor,

You might take a look at our centralized security server, Cams. Cams 
provides SSO via Apache or Tomcat to subdomains as your show in your 
request. You can find out more at http://www.cafesoft.com.

Good luck and let us know if you have any questions,

Gary

Victor Soares wrote:

Hello,
I have dug through the tomcat-user archives and have seen this question come up several times, but there was no concrete solution so I'll bring it up again.

For an upcoming project, I am going to have 3 websites. ex:
library.ci.tigard.or.us
police.ci.tigard.or.us
www.ci.tigard.or.us 

Each website will have some features that require a login. It would be logical to have the same username and password for all 3 and even more logical for the user to only have to authenticate once for all 3 and have his/her session data maintained and available to all 3.

Is there a single sign on solution that would provide that capability?

This concept of single sign on should not be confused with Tomcat's SSO. Tomcat's SSO only provides SSO for different contexts within one virtual host. This is more of a SSO solution along the lines of the .net passport.

Any help would be much appreciated.

Thanks,
- Victor Soares


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

 


--

Gary Gwin
http://www.cafesoft.com

*
*   *
*   The Cafesoft Access Management System, Cams, is security*
*   software that provides single sign-on authentication and*
*   centralized access control for Apache, Tomcat, and custom   *
*   resources.  *
*   *
*



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




Re: Re-using roles defined in web.xml file

2003-02-10 Thread Craig R. McClanahan


On Mon, 10 Feb 2003, Sean Dockery wrote:

> Date: Mon, 10 Feb 2003 14:21:28 -0700
> From: Sean Dockery <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Re-using roles defined in web.xml file
>
> The only way that it could be done is to provide a custom realm to this
> yourself.
>
> Can you not just put the roles into LDAP?
>

Tomcat 4.1 has JNDIRealm, which can be used to talk to an LDAP server:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html

> Sean Dockery

Craig

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




RE: class loader in JSP file

2003-02-10 Thread Nicole Hibbard
If you are a new I suggest running through the example on this page before
creating your own. I found it to be very helpful when I first started.

http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/


Packaging classes is actually one of the basics of java programming and
could probably be best explained at.

http://java.sun.com/docs/books/tutorial/java/interpack/index.html .

Hope this helps!

-Original Message-
From: Ing. Gustavo Edelstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 1:24 PM
To: Tomcat Users List
Subject: Re: class loader in JSP file


Ok Nicole, how to do that ??

Ing. Gustavo A. Edelstein
Tech. Mgr.
Equiplus S.A.
www.equiplus.com
- Original Message -
From: "Nicole Hibbard" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Ing. Gustavo
Edelstein" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 6:00 PM
Subject: RE: class loader in JSP file


> Many users that have this problem because they don't put their class in a
> package.
>
> -Original Message-
> From: Ing. Gustavo Edelstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 11:58 AM
> To: Tomcat Users List
> Subject: class loader in JSP file
>
>
> Hi list!
>
> I've a jsp page that use a xx class that I wrote. I put the file class
> xx.class in WEB-INF/classes but Tomcat cannot find it from my jsp page.
> Any idea?
> Thanks,
>
> Gustavo
>
>
>
> -
> 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: DEPLOY Command

2003-02-10 Thread Alberto Magalhaes
I am using TOMCAT 4.0.18.

- Original Message -
From: "Bill Barker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 7:44 AM
Subject: Re: DEPLOY Command


> I seem to remember that there were some recent changes that may fix this,
> but it is hard to know without knowing which Tomcat version you are
running.
>
> "Alberto Magalhaes" <[EMAIL PROTECTED]> wrote in message
> 001701c2cfc4$2a35e530$353216d5@aacm">news:001701c2cfc4$2a35e530$353216d5@aacm...
> Hi,
> why when i try to make:
> http://127.0.0.1:8080/manager/deploy?path=/examples,
> it gives an error:
>
> FAIL - Unknown command /deploy
>
> Thanks
> AAM
>
>
>
>
>
>
> -
> 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: How to listen for Session LastAccessedTime

2003-02-10 Thread Victor Soares
The filter sounds like a good way to do it. Thanks for the suggestion Craig and Sean.

If I explain what i'm using this for, I'd be opening up a whole can of worms. I'm not 
scared of worms, so I hope nobody else is. :)

I'm working on a SSO solution that can carry a user's session across different 
websites. I'm in a very preliminary phase, but this is how i'm approaching it:
—--
Scenario #1:
User comes to website (www.ci.tigard.or.us) and logs in via a form. Upon successful 
login, a domain level cookie, (.ci.tigard.or.us) is passed to the client with a unique 
ID, kinda like the jsessionid. The domain cookie ID and the jsessionID are stored in a 
database along with some other data. A *User* object is stored in session.

Scenario#2:
Same user goes to a second site (police.ci.tigard.or.us). When user hits a secure 
page, security looks for the domain level cookie and grabs the ID, uses that ID to 
check the database for that ID. If the ID exists in the database, security assumes the 
user has already been logged so it loads up the data and authenticates/authorizes the 
user on the second website. It also adds a record to the database that relates the 
domain session ID to the jsessionID of the second website.

Additional Info:
There is a session listener that deletes all records from the database related to the 
domainID when a session ends.
—---

So, I need to know the sessionLastAccessed value so i can update the database 
periodically. This is because the session listener will delete all domainID records in 
the database for a jsessionid that has expired. I don't want to delete any records if 
the user is still active on any of the websites that are part of this SSO scheme. 

I don't know how scalable this solution is, nor am I 100% sure this is the best way to 
do this but I have to start somewhere. I'm sure JUnit tests will answer my first 
question. :)

so there are the worms, the can is now empty.
- vic



>>> [EMAIL PROTECTED] 02/10/03 12:46PM >>>
The only trivial way that I can think of would be to put a filter on all
requests.

What are you going to use that information for?  Maybe there is another way
to accomplish what you're trying to do.

Sean Dockery
[EMAIL PROTECTED] 
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com 

- Original Message -
From: "Victor Soares" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 12:28
Subject: How to listen for Session LastAccessedTime


Hello,
I've been searching through the Javadocs to figure out how to listen for a
session's LastAccessedTime but haven't been able to find anything. Seems
like the HttpSessionAttributeListener is not notified when a session's
LastAccessedTime is changed.

Is there a way to listen for a session's LastAccessedTime?

thanks,
- vic


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




how can I make my Java code write to a file using relative paths

2003-02-10 Thread runu rathi
Hi all,
I am using the following statement in my .java file

out = new FileOutputStream("responses.txt", true);

I assumed that it should write in a file in the same
directory as the .java file in web-inf/classes

but instead it writes in C:\WINNT\system32

How can I get it to write at a particular place using
relative paths.

I shall appreciate any help.
Thanks,
Runu

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: IIS+Tomcat security constraint = Unauthorized: Logon Failed

2003-02-10 Thread Felipe
Yes. I can authenticate through the tomcat standalone port.
I am using the BASIC with a MemoryRealm. 
Everything as simple as it can get!

Do you know if it is possible to have IIS to leave the authentication to
tomcat?

Thanks, 
Felipe


-Original Message-
From: Sean Dockery [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: IIS+Tomcat security constraint = Unauthorized: Logon Failed

Can you authenticate through the Tomcat standalone port?  Or does that
fail
as well?

What method of authentication are you using?  BASIC or DIGEST?  If you
are
currently using DIGEST, try BASIC (for testing purposes).

What type of Realm are you authenticating against?  MemoryRealm, JDBC,
or
JNDI?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Felipe" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 09:08
Subject: RE: IIS+Tomcat security constraint = Unauthorized: Logon Failed


> Yes. I have defined the user, password and role and everything else
needed
> to make it work on tomcat. What seems to be the problem is that IIS is
> trying to authenticate the user by itself instead of forwarding the
> user/password information to tomcat. (It allow me to try 3 times and
then
> give me the "Unauthorized: Logon Failed" error page regardless the
valid
> user and password).
>
> I know the ISAPI filter is working because if I remove the security
> constraint from tomcat I can get to it and I know the tomcat security
> constraint is working because if I can get to it using the "stand
alone"
> port.
>
> Have you seen this scenario working before? I found some posts with
this
> issue but no reply to any of them.
>
> Thanks,
> Felipe
>
>
>
> -Original Message-
> From: Sean Dockery [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 8:05 AM
> To: Tomcat Users List
> Subject: Re: IIS+Tomcat security constraint = Unauthorized: Logon
Failed
>
> Where have you defined the user and password that you believe you
should
be
> a valid user?  What is the role constraint that you have defined on
the
web
> resource?  Is the user in question set up for that role?
>
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
> - Original Message -
> From: "Felipe Crochik" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 09, 2003 21:34
> Subject: IIS+Tomcat security constraint = Unauthorized: Logon Failed
>
>
> > I am trying to use the tomcat security constraints "behind" an IIS
web
> > server. I know tomcat and the ISAPI filter are working. Also, Tomcat
> > authorization is working bypassing IIS using port 8080.
> >
> > When I try to reach the exactly same application through IIS (port
80) I
> > get the user validation dialog box and after I try to login with a
valid
> > user and password I get HTTP 401.1 - Unauthorized: Logon Failed.
> >
> > TIA,
> > Felipe
> >
>
>
>
> -
> 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: Respecting the User List

2003-02-10 Thread Denise Mangano
Couldn't have said it better myself.  While it has proven for some
entertainment it is getting pretty frustrating.  What amazes me the most is
that he promises over and over again that he will try to "be better" it
never happens.  It's amazing that all the great people in this list still
try to help him, and yet he still doesn't show the slightest hint of any
manners.  I think its time to go with John's suggestion of a filter.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Carl [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 4:21 PM
To: Tomcat Users List
Subject: Re: Respecting the User List


Steve,

I just wanted to echo Nicole's sentiments.  I asked for help just once on
this list and John Turner pointed me in the right direction and I was off
and running.  I was courteous (and desperate) and help was there.  I now
read practically every email that is sent because I have found it a very
good way to educate myself about Tomcat and JSP in general.  Lots of people
get lots of help.

You, on the other hand, have provided hours of entertainment as you trash
the very people who are trying to help you.  If you hate the people who try
to provide help so much, please take your requests elsewhere.  I would miss
the entertainment but would not miss the clutter in my inbox.  The people
who respond regularly to questions are really know their stuff and are
trying to be helpful, the kind of people you would want for your good
friends.  Would you treat your good friends like your treat these people?

Carl Kabbe
- Original Message -
From: "Nicole Hibbard" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 2:55 PM
Subject: Respecting the User List


> Hello Steve Burrus:
>
> I don't think there is any reason for you to disrespect the users 
> involved on this list.  Everyone here is just trying to help and 
> everytime I see a reply from you it seems to contain disrespectful 
> remarks.  I know because you sent one to me one time.  Its not easy to 
> help someone that doesn't appreciate it, makes fun of peoples names 
> and hurts people's feelings.
I'm
> not writing this to get some sort of inappropriate email back from 
> you.  I just wanted to let everyone know that this has been going on 
> for quite a while, and I personally will not post another answer for 
> you not because I don't want to help, but it hurts me that people can 
> be so mean.
>
> Nicole Hibbard
> Systems Engineer
> Xtelesis Corporation
> http://www.xtelesis.com
> direct: 650-239-1483
> cell:   650-278-1633
> email:  [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: Re-using roles defined in web.xml file

2003-02-10 Thread Sean Dockery
The only way that it could be done is to provide a custom realm to this
yourself.

Can you not just put the roles into LDAP?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "White, Joshua A (CASD, IT)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 14:04
Subject: Re-using roles defined in web.xml file


> Hello everyone,
>
> I need to authenticate visitors to my site using ldap.  Based on some ldap
> attributes, I can determine which role a person should be in.  Is there a
> way I can dynamically associate users with the roles defined in the
web.xml
> file?
>
> Joshua
>
>
>
> This communication, including attachments, is for the exclusive use of
> addressee and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, any use, copying,
> disclosure, dissemination or distribution is strictly prohibited. If
> you are not the intended recipient, please notify the sender
> immediately by return email and delete this communication and destroy all
copies.
>
>
> -
> 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: Need help w. another jsp!

2003-02-10 Thread Denise Mangano
Steve,

For the most part, I have not been following your post.  But a switch case
(in Java) should be formatted as:

switch(someThing) // someThing is the piece of data you want to analyze
{
  case a: case b: case c:  //where a, b, and c are possible values of
someThing - format may be different depending on what type of variable
someThing is)
/*whatever code you want to happen
if the value of someThing
is one of these cases*/
  case d: case e:
/*etc until you have covered all 
cases of possible values for someThing*/
  default:
/*How to handle if someThing was not matched to a case, 
usually an error handler - similar to the else in an if/else
conditional statement*/
}


HTH 

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 2:34 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Need help w. another jsp!


Hi Daniel, I  don't think that I have ever heard from u before--but that is
"neither here or there" :). Listen, about handling that "switch-case" block
in my code, someone suggested to me that I "wrap" the whole block in
brackets ({ }). And that would "magically" make my problems with the code go
away! Is there anything to that suggestion at all?

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




Re: Respecting the User List

2003-02-10 Thread Carl
Steve,

I just wanted to echo Nicole's sentiments.  I asked for help just once on
this list and John Turner pointed me in the right direction and I was off
and running.  I was courteous (and desperate) and help was there.  I now
read practically every email that is sent because I have found it a very
good way to educate myself about Tomcat and JSP in general.  Lots of people
get lots of help.

You, on the other hand, have provided hours of entertainment as you trash
the very people who are trying to help you.  If you hate the people who try
to provide help so much, please take your requests elsewhere.  I would miss
the entertainment but would not miss the clutter in my inbox.  The people
who respond regularly to questions are really know their stuff and are
trying to be helpful, the kind of people you would want for your good
friends.  Would you treat your good friends like your treat these people?

Carl Kabbe
- Original Message -
From: "Nicole Hibbard" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 2:55 PM
Subject: Respecting the User List


> Hello Steve Burrus:
>
> I don't think there is any reason for you to disrespect the users involved
> on this list.  Everyone here is just trying to help and everytime I see a
> reply from you it seems to contain disrespectful remarks.  I know because
> you sent one to me one time.  Its not easy to help someone that doesn't
> appreciate it, makes fun of peoples names and hurts people's feelings.
I'm
> not writing this to get some sort of inappropriate email back from you.  I
> just wanted to let everyone know that this has been going on for quite a
> while, and I personally will not post another answer for you not because I
> don't want to help, but it hurts me that people can be so mean.
>
> Nicole Hibbard
> Systems Engineer
> Xtelesis Corporation
> http://www.xtelesis.com
> direct: 650-239-1483
> cell:   650-278-1633
> email:  [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: class loader in JSP file

2003-02-10 Thread Ing. Gustavo Edelstein
Ok Nicole, how to do that ??

Ing. Gustavo A. Edelstein
Tech. Mgr.
Equiplus S.A.
www.equiplus.com
- Original Message -
From: "Nicole Hibbard" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Ing. Gustavo
Edelstein" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 6:00 PM
Subject: RE: class loader in JSP file


> Many users that have this problem because they don't put their class in a
> package.
>
> -Original Message-
> From: Ing. Gustavo Edelstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 11:58 AM
> To: Tomcat Users List
> Subject: class loader in JSP file
>
>
> Hi list!
>
> I've a jsp page that use a xx class that I wrote. I put the file class
> xx.class in WEB-INF/classes but Tomcat cannot find it from my jsp page.
> Any idea?
> Thanks,
>
> Gustavo
>
>
>
> -
> 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-using roles defined in web.xml file

2003-02-10 Thread White, Joshua A (CASD, IT)
Hello everyone,

I need to authenticate visitors to my site using ldap.  Based on some ldap
attributes, I can determine which role a person should be in.  Is there a
way I can dynamically associate users with the roles defined in the web.xml
file?

Joshua



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




RE: class loader in JSP file

2003-02-10 Thread Nicole Hibbard
Many users that have this problem because they don't put their class in a
package.

-Original Message-
From: Ing. Gustavo Edelstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 11:58 AM
To: Tomcat Users List
Subject: class loader in JSP file


Hi list!

I've a jsp page that use a xx class that I wrote. I put the file class
xx.class in WEB-INF/classes but Tomcat cannot find it from my jsp page.
Any idea?
Thanks,

Gustavo



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




Re: class loader in JSP file

2003-02-10 Thread Erik Price


Ing. Gustavo Edelstein wrote:

Hi list!

I've a jsp page that use a xx class that I wrote. I put the file class xx.class in WEB-INF/classes but Tomcat cannot find it from my jsp page.
Any idea?
Thanks,


Did you import the class with the <%@ import %> JSP directive?  Don't 
forget to use a fully-qualified classname in the import directive.



Erik


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



Re: Error - tomcat-users.xml.new permission denied - while starting TOMCAT

2003-02-10 Thread Sean Dockery
You could try using sudo.  It allows users to execute certain programs as if
they were the superuser.

- Original Message -
From: "krip pane" <[EMAIL PROTECTED]>
To: "tomcat" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 10:28
Subject: Error - tomcat-users.xml.new permission denied - while starting
TOMCAT


> All,
>
> I'm trying to start tomcat as user "tomcat" via a
> script.  But it keeps dying with error -
> tomcat-users.xml.new permission denied.  It looks like
> it's trying to write to the conf dir, but the id
> doesn't have write permission to do so - only root
> does.  I don't want to give any ID other than root
> write permission on conf.  How can I workaround this
> problem and get tomcat to start.
>
> Thanks
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.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: mod_jk.so / apache 1.3.27 / tomcat 4.1.18

2003-02-10 Thread Turner, John

Compile/Recompile:

In CONNECTOR_SRC/jk/native (where CONNECTOR_SRC = wherever you unpacked the
connector src):

./buildconf.sh
./configure --with-apxs=/path/to/apache/bin/apxs
make
make install

The .so file will be in CONNECTOR_SRC/jk/native or native2, I forget which.

John

> -Original Message-
> From: [de internetman] Rene Kooyman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 3:33 PM
> To: Tomcat Users List
> Subject: mod_jk.so / apache 1.3.27 / tomcat 4.1.18
> 
> 
> Oke, that's done, just use the: /usr/lib/apache folder .. p,
> now were getting somewhere, although i can't compile normaly because
> apxs is located in the other folder ... so be it 
> 
> Now md_jk.so will load... but here's the error messages i was telling
> you about earlier:
> 
> [warn] Loaded DSO modules/mod_jk.so uses plain Apache 1.3 
> API, this module 
> might crash under EAPI! (please recompile it with -DEAPI)
> 
> 
> And like i said before, should this be safe to ignore ... or 
> do i have to
> recompile ... and if so: how ?
> 
> -- 
> Kind regards,
> 
> Rene Kooyman
> 
> 
> -
> 
> -
> 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: 2nd plea for help!

2003-02-10 Thread Turner, John

There was a thread yesterday or late last week (Fri, Sat, Sun EST) about
something similar, if memory serves.

I didn't pay close attention to it, but if I remember correctly, there has
to be a shared memory block, even if it is "empty".

I am hoping to get some time with JK2 this week, hopefully I can get a
first-hand look at the problems everyone else is having, which might help me
help you better.

John

> -Original Message-
> From: Francesa Lacreativa [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 3:19 PM
> To: Tomcat Users List
> Subject: RE: 2nd plea for help!
> 
> 
> 
> John,
> This is the error I get when I use the sample configuration:
> 
> [Mon Feb 10 13:09:34 2003] [error] env.createBean2(): Factory 
> error creating channel.jni:jni ( channel.jni, jni)
> [Mon Feb 10 13:09:34 2003] [error] config.update(): Can't 
> create channel.jni:jni
> [Mon Feb 10 13:09:34 2003] [error] env.createBean2(): Factory 
> error creating vm: ( vm, )
> [Mon Feb 10 13:09:34 2003] [error] config.update(): Can't create vm:  
> [Mon Feb 10 13:09:34 2003] [error] env.createBean2(): Factory 
> error creating worker.jni:onStartup ( worker.jni, onStartup)
> [Mon Feb 10 13:09:34 2003] [error] config.update(): Can't 
> create worker.jni:onStartup
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file 
> [Mon Feb 10 13:09:34 2003] [error] mod_jk child init 1 0 
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file 
> [Mon Feb 10 13:09:34 2003] [notice] Apache/2.0.43 (Unix) 
> mod_jk2/2.0.2 configured -- resuming normal operations  
> [Mon Feb 10 13:09:34 2003] [info] Server built: Feb  4 2003 11:38:17
> [Mon Feb 10 13:09:34 2003] [debug] prefork.c(1039): 
> AcceptMutex: pthread (default: pthread)
> [Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
> 
>  
> So it's essentially the same, I just got rid of the error 
> with the shared memory file.  It appears that all the "beans" 
> it cannot create are related to the JNI connection somehow - 
> channel.jni, vm, and the workers.  I'm thinking about trying 
> to compile the mod_jk2 library from scratch on our Solaris 
> SPARC system to see how that works.  Do you have any other 
> suggestions?
> thanks,
> -francesa
>  
>  "Turner, John" <[EMAIL PROTECTED]> wrote:
> I'd love to help, but I don't use JK2. All I can ask is: did 
> you try it
> with the minimum configuration shown in the docs? You have 
> some extra stuff
> in your .properties files. What happens when you use the minimum
> configuration? Do you get the same error?
> 
> John
> 
> 
> -Original Message-
> From: Francesa Lacreativa [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 07, 2003 5:39 PM
> To: [EMAIL PROTECTED]
> Subject: 2nd plea for help!
> 
> 
> 
> Does anyone have an idea why I would get this factory error 
> in apache? Am I
> providing too much information for you to read? Is this too stupid a
> question to answer? Can someone please just point me in the 
> right direction
> - please???
> 
> I am having a lot of difficulty getting the JNI connector for 
> Tomcat to work
> with Apache 2.0.43. I have Tomcat version 4.1.18. I have followed the
> examples in the documentation at
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
> howto.html,
> and it appears that I have everything configured correctly, 
> but I still get
> the following error in apache whenever I start apache:
> 
> [Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory 
> error creating
> channel.jni:jni ( channel.jni, jni) 
> [Tue Feb 04 15:00:03 2003] [error] config.update(): Can't create
> channel.jni:jni 
> [Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory 
> error creating
> vm: ( vm, ) 
> [Tue Feb 04 15:00:03 2003] [error] config.update(): Can't create vm: 
> [Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory 
> error creating
> worker.jni:onStartup ( worker.jni, onStartup) 
> [Tue Feb 04 15:00:03 2003] [error] config.update(): Can't create
> worker.jni:onStartup 
> [Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory 
> error creating
> worker.jni:onShutdown ( worker.jni, onShutdown) [Tue Feb 04 
> 15:00:03 2003]
> [error] config.update(): Can't create worker.jni:onShutdown 
> [Tue Feb 04 15:00:03 2003] [error] mod_jk child init 1 0 
> [Tue Feb 04 15:00:03 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.2
> configured -- resuming normal operations 
> 
> 
> 
> Apache will still serve up regular HTML pages without error, 
> but whenever I
> just try to load the /examples page I get an error in my web 
> browser and the
> following error in the apache error log:
> 
> [Tue Feb 04 15:01:36 2003] [error] lb_worker.service() all 
> workers in error
> or disabled state 
> [Tue Feb 04 15:01:36 2003] [error] mod_jk.handler() Error 
> connecting to
> tomcat 12 
> 
> 
> 
> I have jk

Re: IIS+Tomcat security constraint = Unauthorized: Logon Failed

2003-02-10 Thread Sean Dockery
Can you authenticate through the Tomcat standalone port?  Or does that fail
as well?

What method of authentication are you using?  BASIC or DIGEST?  If you are
currently using DIGEST, try BASIC (for testing purposes).

What type of Realm are you authenticating against?  MemoryRealm, JDBC, or
JNDI?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Felipe" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 09:08
Subject: RE: IIS+Tomcat security constraint = Unauthorized: Logon Failed


> Yes. I have defined the user, password and role and everything else needed
> to make it work on tomcat. What seems to be the problem is that IIS is
> trying to authenticate the user by itself instead of forwarding the
> user/password information to tomcat. (It allow me to try 3 times and then
> give me the "Unauthorized: Logon Failed" error page regardless the valid
> user and password).
>
> I know the ISAPI filter is working because if I remove the security
> constraint from tomcat I can get to it and I know the tomcat security
> constraint is working because if I can get to it using the "stand alone"
> port.
>
> Have you seen this scenario working before? I found some posts with this
> issue but no reply to any of them.
>
> Thanks,
> Felipe
>
>
>
> -Original Message-
> From: Sean Dockery [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 8:05 AM
> To: Tomcat Users List
> Subject: Re: IIS+Tomcat security constraint = Unauthorized: Logon Failed
>
> Where have you defined the user and password that you believe you should
be
> a valid user?  What is the role constraint that you have defined on the
web
> resource?  Is the user in question set up for that role?
>
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
> - Original Message -
> From: "Felipe Crochik" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 09, 2003 21:34
> Subject: IIS+Tomcat security constraint = Unauthorized: Logon Failed
>
>
> > I am trying to use the tomcat security constraints "behind" an IIS web
> > server. I know tomcat and the ISAPI filter are working. Also, Tomcat
> > authorization is working bypassing IIS using port 8080.
> >
> > When I try to reach the exactly same application through IIS (port 80) I
> > get the user validation dialog box and after I try to login with a valid
> > user and password I get HTTP 401.1 - Unauthorized: Logon Failed.
> >
> > TIA,
> > Felipe
> >
>
>
>
> -
> 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]




class loader in JSP file

2003-02-10 Thread Ing. Gustavo Edelstein
Hi list!

I've a jsp page that use a xx class that I wrote. I put the file class xx.class in 
WEB-INF/classes but Tomcat cannot find it from my jsp page.
Any idea?
Thanks,

Gustavo




RE: installing TomCat

2003-02-10 Thread \[de internetman\] Rene Kooyman
Citeren "Turner, John" <[EMAIL PROTECTED]>:

Thanx for all your time John, I'll start again where i left off 2day, i've
been working on this problem all day (12 hours now ...) i'm beat and b4 i
maka any weird msitakes  you knwo what i mean ... we'll see again in
the mornin'...  have a good one !

> I would just download both mod_jk_1.3.so binaries from the Jakarta site.
> One is EAPI, one is not.  Try it with each until the error goes away.  My
> guess is that your Apache either has EAPI support compiled in or it
> doesn't,
> and I don't know of a way to tell.  Somebody probably does.
> 
> The dir structure is puzzling, but my guess is it's because RH does things
> their own way.  You'll probably want to run "httpd -v" and see what version
> number pops out...it is very possible that you are running Apache 2 and you
> don't know it, in which case you'll want to reconfigure accordingly.
> 
> I never enable or install the Apache that comes in RedHat, I always install
> my own from source, but that is just old habit left over from the good old
> days.  My point is that I can't really help specifically other than to
> provide suggestions, as I typically don't start with the environment that
> you have, which is why my HOWTOs talk about installing Apache.
> 
> John


-- 
Kind regards,

Rene Kooyman


-

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




Re: How to listen for Session LastAccessedTime

2003-02-10 Thread Sean Dockery
The only trivial way that I can think of would be to put a filter on all
requests.

What are you going to use that information for?  Maybe there is another way
to accomplish what you're trying to do.

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: "Victor Soares" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 12:28
Subject: How to listen for Session LastAccessedTime


Hello,
I've been searching through the Javadocs to figure out how to listen for a
session's LastAccessedTime but haven't been able to find anything. Seems
like the HttpSessionAttributeListener is not notified when a session's
LastAccessedTime is changed.

Is there a way to listen for a session's LastAccessedTime?

thanks,
- vic


-
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: installing TomCat

2003-02-10 Thread Turner, John

I would just download both mod_jk_1.3.so binaries from the Jakarta site.
One is EAPI, one is not.  Try it with each until the error goes away.  My
guess is that your Apache either has EAPI support compiled in or it doesn't,
and I don't know of a way to tell.  Somebody probably does.

The dir structure is puzzling, but my guess is it's because RH does things
their own way.  You'll probably want to run "httpd -v" and see what version
number pops out...it is very possible that you are running Apache 2 and you
don't know it, in which case you'll want to reconfigure accordingly.

I never enable or install the Apache that comes in RedHat, I always install
my own from source, but that is just old habit left over from the good old
days.  My point is that I can't really help specifically other than to
provide suggestions, as I typically don't start with the environment that
you have, which is why my HOWTOs talk about installing Apache.

John

> -Original Message-
> From: [de internetman] Rene Kooyman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 3:13 PM
> To: Tomcat Users List
> Subject: RE: installing TomCat
> 
> 
> Citeren "Turner, John" <[EMAIL PROTECTED]>:
> 
> > That's Apache 2.  Apache 1.3 uses "libexec", typically.
> 
> And i think there's the 'problem'.
> 
> First an apologe to John: you were right, you've also got the how-to's
> on Apache, please accept my aplogee.
> 
> Here's the envoiroment:
> 
> /etc/httpd/  here is the 'conf' folder located which holds 
> the httpd.conf.
> In the /etc/httpd/ there is also folder 'modules' that's a link  to:
> /usr/lib/apache which holds all 'mod_xxx.so' files .. But 
> there's also a
> folder /usr/local/psa/admin/libexec with a bunch of 
> 'mod_xx.so' files ..
> maybe that's the problem ... will look in to that ...
> 
> Another thing is: when i do get Apache to load either mod_webapp.so or
> mod_jk.so (with a lot of 'magic' .. :-) ) the error states:
> 
> " Loaded DSO modules/mod_webapp.so uses plain Apache 1.3 API, 
> this module might 
> crash under EAPI!  (please recompile it with -DEAPI)" .. even 
> if i compiled it
> like described in the 'how to'... odd, or should i ignore this ?
> 
> 
> -- 
> Kind regards,
> 
> Rene Kooyman
> 
> 
> 
> -
> 
> -
> 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]




mod_jk.so / apache 1.3.27 / tomcat 4.1.18

2003-02-10 Thread \[de internetman\] Rene Kooyman
Oke, that's done, just use the: /usr/lib/apache folder .. p,
now were getting somewhere, although i can't compile normaly because
apxs is located in the other folder ... so be it 

Now md_jk.so will load... but here's the error messages i was telling
you about earlier:

[warn] Loaded DSO modules/mod_jk.so uses plain Apache 1.3 API, this module 
might crash under EAPI! (please recompile it with -DEAPI)


And like i said before, should this be safe to ignore ... or do i have to
recompile ... and if so: how ?

-- 
Kind regards,

Rene Kooyman


-

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




Re: Respecting the User List

2003-02-10 Thread Kenny G. Dubuisson, Jr.
Sorry..meant to credit Nicole (John's reply was in my brains).  Thanks again
Nicole.
Kenny

- Original Message -
From: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 2:22 PM
Subject: Re: Respecting the User List


> Amen John.  I've not been involved in his flame wars but it has been
> extremely annoying and I wish there was a way to ban him from the list
> (sorry Steve but you've gone over the line many times).  Thanks for such
an
> insightful post John.
> Kenny
>
> - Original Message -
> From: "Nicole Hibbard" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, February 10, 2003 1:55 PM
> Subject: Respecting the User List
>
>
> > Hello Steve Burrus:
> >
> > I don't think there is any reason for you to disrespect the users
involved
> > on this list.  Everyone here is just trying to help and everytime I see
a
> > reply from you it seems to contain disrespectful remarks.  I know
because
> > you sent one to me one time.  Its not easy to help someone that doesn't
> > appreciate it, makes fun of peoples names and hurts people's feelings.
> I'm
> > not writing this to get some sort of inappropriate email back from you.
I
> > just wanted to let everyone know that this has been going on for quite a
> > while, and I personally will not post another answer for you not because
I
> > don't want to help, but it hurts me that people can be so mean.
> >
> > Nicole Hibbard
> > Systems Engineer
> > Xtelesis Corporation
> > http://www.xtelesis.com
> > direct: 650-239-1483
> > cell:   650-278-1633
> > email:  [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: How to listen for Session LastAccessedTime

2003-02-10 Thread Craig R. McClanahan


On Mon, 10 Feb 2003, Victor Soares wrote:

> Date: Mon, 10 Feb 2003 11:28:12 -0800
> From: Victor Soares <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: How to listen for Session LastAccessedTime
>
> Hello,
> I've been searching through the Javadocs to figure out how to listen for a session's 
>LastAccessedTime but haven't been able to find anything. Seems like the 
>HttpSessionAttributeListener is not notified when a session's LastAccessedTime is 
>changed.
>
> Is there a way to listen for a session's LastAccessedTime?
>

There is no event listener that is fired when a session is accessed (i.e.
the session id cookie, or the URL-encoded path parameter, is included on
a request).

An easy way to detect this situation would be to write a Filter that was
mapped to all requests ("/*") and just noted whether a session id was
included or not.  The filter could fire off whatever sort of notification
that your application required.

> thanks,
> - vic

Craig

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




Re: Respecting the User List

2003-02-10 Thread Kenny G. Dubuisson, Jr.
Amen John.  I've not been involved in his flame wars but it has been
extremely annoying and I wish there was a way to ban him from the list
(sorry Steve but you've gone over the line many times).  Thanks for such an
insightful post John.
Kenny

- Original Message -
From: "Nicole Hibbard" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 1:55 PM
Subject: Respecting the User List


> Hello Steve Burrus:
>
> I don't think there is any reason for you to disrespect the users involved
> on this list.  Everyone here is just trying to help and everytime I see a
> reply from you it seems to contain disrespectful remarks.  I know because
> you sent one to me one time.  Its not easy to help someone that doesn't
> appreciate it, makes fun of peoples names and hurts people's feelings.
I'm
> not writing this to get some sort of inappropriate email back from you.  I
> just wanted to let everyone know that this has been going on for quite a
> while, and I personally will not post another answer for you not because I
> don't want to help, but it hurts me that people can be so mean.
>
> Nicole Hibbard
> Systems Engineer
> Xtelesis Corporation
> http://www.xtelesis.com
> direct: 650-239-1483
> cell:   650-278-1633
> email:  [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: 2nd plea for help!

2003-02-10 Thread Francesa Lacreativa

John,
This is the error I get when I use the sample configuration:

[Mon Feb 10 13:09:34 2003] [error] env.createBean2(): Factory error creating 
channel.jni:jni ( channel.jni, jni)
[Mon Feb 10 13:09:34 2003] [error] config.update(): Can't create channel.jni:jni
[Mon Feb 10 13:09:34 2003] [error] env.createBean2(): Factory error creating vm: ( vm, 
)
[Mon Feb 10 13:09:34 2003] [error] config.update(): Can't create vm:  
[Mon Feb 10 13:09:34 2003] [error] env.createBean2(): Factory error creating 
worker.jni:onStartup ( worker.jni, onStartup)
[Mon Feb 10 13:09:34 2003] [error] config.update(): Can't create worker.jni:onStartup
[Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
[Mon Feb 10 13:09:34 2003] [error] shm.init(): No file 
[Mon Feb 10 13:09:34 2003] [error] mod_jk child init 1 0 
[Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
[Mon Feb 10 13:09:34 2003] [error] shm.init(): No file
[Mon Feb 10 13:09:34 2003] [error] shm.init(): No file 
[Mon Feb 10 13:09:34 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.2 configured -- 
resuming normal operations  
[Mon Feb 10 13:09:34 2003] [info] Server built: Feb  4 2003 11:38:17
[Mon Feb 10 13:09:34 2003] [debug] prefork.c(1039): AcceptMutex: pthread (default: 
pthread)
[Mon Feb 10 13:09:34 2003] [error] shm.init(): No file

 
So it's essentially the same, I just got rid of the error with the shared memory file. 
 It appears that all the "beans" it cannot create are related to the JNI connection 
somehow - channel.jni, vm, and the workers.  I'm thinking about trying to compile the 
mod_jk2 library from scratch on our Solaris SPARC system to see how that works.  Do 
you have any other suggestions?
thanks,
-francesa
 
 "Turner, John" <[EMAIL PROTECTED]> wrote:
I'd love to help, but I don't use JK2. All I can ask is: did you try it
with the minimum configuration shown in the docs? You have some extra stuff
in your .properties files. What happens when you use the minimum
configuration? Do you get the same error?

John


-Original Message-
From: Francesa Lacreativa [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 07, 2003 5:39 PM
To: [EMAIL PROTECTED]
Subject: 2nd plea for help!



Does anyone have an idea why I would get this factory error in apache? Am I
providing too much information for you to read? Is this too stupid a
question to answer? Can someone please just point me in the right direction
- please???

I am having a lot of difficulty getting the JNI connector for Tomcat to work
with Apache 2.0.43. I have Tomcat version 4.1.18. I have followed the
examples in the documentation at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html,
and it appears that I have everything configured correctly, but I still get
the following error in apache whenever I start apache:

[Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory error creating
channel.jni:jni ( channel.jni, jni) 
[Tue Feb 04 15:00:03 2003] [error] config.update(): Can't create
channel.jni:jni 
[Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory error creating
vm: ( vm, ) 
[Tue Feb 04 15:00:03 2003] [error] config.update(): Can't create vm: 
[Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory error creating
worker.jni:onStartup ( worker.jni, onStartup) 
[Tue Feb 04 15:00:03 2003] [error] config.update(): Can't create
worker.jni:onStartup 
[Tue Feb 04 15:00:03 2003] [error] env.createBean2(): Factory error creating
worker.jni:onShutdown ( worker.jni, onShutdown) [Tue Feb 04 15:00:03 2003]
[error] config.update(): Can't create worker.jni:onShutdown 
[Tue Feb 04 15:00:03 2003] [error] mod_jk child init 1 0 
[Tue Feb 04 15:00:03 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.2
configured -- resuming normal operations 



Apache will still serve up regular HTML pages without error, but whenever I
just try to load the /examples page I get an error in my web browser and the
following error in the apache error log:

[Tue Feb 04 15:01:36 2003] [error] lb_worker.service() all workers in error
or disabled state 
[Tue Feb 04 15:01:36 2003] [error] mod_jk.handler() Error connecting to
tomcat 12 



I have jkjni.so and mod_jk2-2.0.43.so in the apache modules directory. My
JAVA_HOME, CATALINA_HOME, and LD_LIBRARY_PATH environment variables are set
correctly. I have tried this with both version 1.3.1 of the JDK and 1.4.1
but I get the same error either way. I have also tried this with both 2.0.44
and 2.0.43 versions of apache and that doesn't make a difference.

This is the contents of my jk2.properties file:

handler.list=apr,request,container,channelJni
shm.file=/apps/apache/product/2.0.43/logs/jk2.shm
channelJni.disabled=0 
apr.jniModeSo=inprocess 



This is the contents of my workers2.properties file:



[channel.jni:jni] 
info=The jni channel, used if tomcat is started inprocess 

[vm:] 
info=Parameters used to load a JVM in the server process 
OPT=-Djava.class.path=.;${CATALINA_HOME}/lib/tomcat-jni.jar;${CATALINA_HOME}
/lib/tomcat.jar:${JAVA

RE: installing TomCat

2003-02-10 Thread \[de internetman\] Rene Kooyman
Citeren "Turner, John" <[EMAIL PROTECTED]>:

> That's Apache 2.  Apache 1.3 uses "libexec", typically.

And i think there's the 'problem'.

First an apologe to John: you were right, you've also got the how-to's
on Apache, please accept my aplogee.

Here's the envoiroment:

/etc/httpd/  here is the 'conf' folder located which holds the httpd.conf.
In the /etc/httpd/ there is also folder 'modules' that's a link  to:
/usr/lib/apache which holds all 'mod_xxx.so' files .. But there's also a
folder /usr/local/psa/admin/libexec with a bunch of 'mod_xx.so' files ..
maybe that's the problem ... will look in to that ...

Another thing is: when i do get Apache to load either mod_webapp.so or
mod_jk.so (with a lot of 'magic' .. :-) ) the error states:

" Loaded DSO modules/mod_webapp.so uses plain Apache 1.3 API, this module might 
crash under EAPI!  (please recompile it with -DEAPI)" .. even if i compiled it
like described in the 'how to'... odd, or should i ignore this ?


-- 
Kind regards,

Rene Kooyman



-

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




Re: installing TomCat

2003-02-10 Thread Kenny G. Dubuisson, Jr.
Thanks for the correction.
Kenny

- Original Message - 
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 1:43 PM
Subject: RE: installing TomCat


> 
> That's Apache 2.  Apache 1.3 uses "libexec", typically.
> 
> John
> 
> 
> > -Original Message-
> > From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 10, 2003 2:39 PM
> > To: Tomcat Users List
> > Subject: Re: installing TomCat
> > 
> > 
> > Did you put the mod_jk.so file in Apache's "modules" directory?
> > Kenny
> > 
> > - Original Message -
> > From: "[de internetman] Rene Kooyman" <[EMAIL PROTECTED]>
> > To: "Turner, John" <[EMAIL PROTECTED]>; "Tomcat Users List"
> > <[EMAIL PROTECTED]>
> > Sent: Monday, February 10, 2003 1:24 PM
> > Subject: RE: installing TomCat
> > 
> > 
> > > Citeren "Turner, John" <[EMAIL PROTECTED]>:
> > >
> > > Hi John (again) and other readers,
> > >
> > > >> http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
> > >
> > > I've followed this 'how to' on building mod_jk.so (Alternate build
> > > process for mod_jk.so) to the letter, everything looks good, the
> > > files get copied to the right places, but  when i edit http.conf
> > > an check apache (apachectl configtest) i get errors: Cannot load ...
> > > because Apache aparently can't locate the mod_jk.so file (which is
> > > named 'mod_jk.so.0.0.0' btw). Even renaming it won't help, Apache
> > > just can't find mod_jk.so ...  help?
> > >
> > > This type of OS/system: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18
> > >
> > >
> > > I need to get TomCat connected to Apache, one way or another. If any
> > > of you could help met with a good 'how to'. I'd be a very happy man.
> > >
> > > > Sounds good. Lajos's guides are pretty good.  If you want 
> > extra docs,
> > check
> > > > out mine at http://www.johnturner.com/howto.  They're 
> > essentially the
> > same
> > > > in content (I learned from Lajos's docs when I started 
> > with Tomcat) but
> > > > sometimes a different viewpoint or presentation helps 
> > solve problems.
> > >
> > > This hot-to is indeed pretty well documented, i even 
> > 'stumbled' on yours
> > > searching for help with Google.. only thing is: you've 
> > written this for
> > > Win 2K only, my system is: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18.
> > >
> > >
> > > --
> > > Kind regards,
> > >
> > > Rene Kooyman
> > >
> > >
> > >
> > > -
> > >
> > > 
> > -
> > > 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: Respecting the User List

2003-02-10 Thread Francesa Lacreativa

yeah, trolls are all over the place.  
 "Turner, John" <[EMAIL PROTECTED]> wrote:
Just setup a filter. Trust me, it works. :)

John

> -Original Message-
> From: Nicole Hibbard [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 2:56 PM
> To: Tomcat Users List
> Subject: Respecting the User List
> 
> 
> Hello Steve Burrus:
> 
> I don't think there is any reason for you to disrespect the 
> users involved
> on this list. Everyone here is just trying to help and 
> everytime I see a
> reply from you it seems to contain disrespectful remarks. I 
> know because
> you sent one to me one time. Its not easy to help someone 
> that doesn't
> appreciate it, makes fun of peoples names and hurts people's 
> feelings. I'm
> not writing this to get some sort of inappropriate email back 
> from you. I
> just wanted to let everyone know that this has been going on 
> for quite a
> while, and I personally will not post another answer for you 
> not because I
> don't want to help, but it hurts me that people can be so mean.
> 
> Nicole Hibbard
> Systems Engineer
> Xtelesis Corporation
> http://www.xtelesis.com
> direct: 650-239-1483
> cell: 650-278-1633
> email: [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]



-
Do You Yahoo!?
Todo lo que quieres saber de Estados Unidos, América Latina y el resto del Mundo.
Visíta Yahoo! Noticias.



RE: Compile my ".java" directly in the Webapps directory....

2003-02-10 Thread John Trollinger
Actually, Tomcat does create .java files for you and in the web.xml
(jasper settings) you can tell it where to put the .java and .class
files it creates.

John

> -Original Message-
> From: fred [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 10, 2003 2:52 PM
> To: Tomcat Users List
> Subject: Re: Compile my ".java" directly in the Webapps directory
> 
> 
> OK Thank you for your response...
> Fred.
> - Original Message -
> From: "Sean Dockery" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Sunday, February 09, 2003 10:26 PM
> Subject: Re: Compile my ".java" directly in the Webapps directory
> 
> 
> > No.  Tomcat will automatically compile JSP files to 
> servlets for you, 
> > but not .java source files.
> >
> > Sean Dockery
> > [EMAIL PROTECTED]
> > Certified Java Web Component Developer
> > Certified Delphi Programmer
> > SBD Consultants
> > http://www.sbdconsultants.com
> >
> > - Original Message -
> > From: "fred" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Sunday, February 09, 2003 08:02
> > Subject: Compile my ".java" directly in the Webapps directory
> >
> >
> > Hello,
> > can somebody tell me if i can compile the ".java" drectly in the 
> > directory of my webapps. Is it an option in the "sever.xml" ?
> > It's Apache 2.0.43 with Tomcat 4.1.18 with the JK2 but i 
> think that is the
> > same with Tomcat standalone...
> > Thank you.
> > Fred
> >
> >
> >
> > 
> -
> > 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: Respecting the User List

2003-02-10 Thread Turner, John

Just setup a filter. Trust me, it works. :)

John

> -Original Message-
> From: Nicole Hibbard [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 2:56 PM
> To: Tomcat Users List
> Subject: Respecting the User List
> 
> 
> Hello Steve Burrus:
> 
> I don't think there is any reason for you to disrespect the 
> users involved
> on this list.  Everyone here is just trying to help and 
> everytime I see a
> reply from you it seems to contain disrespectful remarks.  I 
> know because
> you sent one to me one time.  Its not easy to help someone 
> that doesn't
> appreciate it, makes fun of peoples names and hurts people's 
> feelings.  I'm
> not writing this to get some sort of inappropriate email back 
> from you.  I
> just wanted to let everyone know that this has been going on 
> for quite a
> while, and I personally will not post another answer for you 
> not because I
> don't want to help, but it hurts me that people can be so mean.
> 
> Nicole Hibbard
> Systems Engineer
> Xtelesis Corporation
> http://www.xtelesis.com
> direct: 650-239-1483
> cell:   650-278-1633
> email:  [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: can apache-1.3.23 tomcat4.18 conect togther in redhat 7.3?

2003-02-10 Thread Turner, John

Are you getting error messages?  Please be more specific than "cannot
configure it properly", that way we can understand better what you have
already accomplished and what still remains to be done.

Also, you can check here: http://www.galatea.com/flashguides or
http://www.johnturner.com/howto, though the second URL is Apache 2 (the
configurations are very similar).

John


> -Original Message-
> From: Xiongfei Wang [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 2:22 PM
> To: Tomcat Users List
> Subject: can apache-1.3.23 tomcat4.18 conect togther in redhat 7.3?
> 
> 
> I have redhat 7.3 and already have apache1.2.23 installed and used for
> quite long, I want to do some servlet develop work I download 
> tomcat4.18,
> it works fine as standalone (http://localhost:8080/examples works), I
> downloaded mod_jk-1.3.empi.so try to connect apache to 
> tomcat, but i can
> not configure it properly. Is that any suggestion how can make my
> apachetomcat set up? Is there any website i can refer to handle this
> situation?
> 
> 
> Thanks
> 
> 
> -
> 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]




Respecting the User List

2003-02-10 Thread Nicole Hibbard
Hello Steve Burrus:

I don't think there is any reason for you to disrespect the users involved
on this list.  Everyone here is just trying to help and everytime I see a
reply from you it seems to contain disrespectful remarks.  I know because
you sent one to me one time.  Its not easy to help someone that doesn't
appreciate it, makes fun of peoples names and hurts people's feelings.  I'm
not writing this to get some sort of inappropriate email back from you.  I
just wanted to let everyone know that this has been going on for quite a
while, and I personally will not post another answer for you not because I
don't want to help, but it hurts me that people can be so mean.

Nicole Hibbard
Systems Engineer
Xtelesis Corporation
http://www.xtelesis.com
direct: 650-239-1483
cell:   650-278-1633
email:  [EMAIL PROTECTED]

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




Re: Compile my ".java" directly in the Webapps directory....

2003-02-10 Thread fred
OK Thank you for your response...
Fred.
- Original Message -
From: "Sean Dockery" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 10:26 PM
Subject: Re: Compile my ".java" directly in the Webapps directory


> No.  Tomcat will automatically compile JSP files to servlets for you, but
> not .java source files.
>
> Sean Dockery
> [EMAIL PROTECTED]
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
> - Original Message -
> From: "fred" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Sunday, February 09, 2003 08:02
> Subject: Compile my ".java" directly in the Webapps directory
>
>
> Hello,
> can somebody tell me if i can compile the ".java" drectly in the directory
> of my webapps.
> Is it an option in the "sever.xml" ?
> It's Apache 2.0.43 with Tomcat 4.1.18 with the JK2 but i think that is the
> same with Tomcat standalone...
> Thank you.
> Fred
>
>
>
> -
> 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: Shutdown.sh does not work when long lasting operations, such as SQL Queries, are still active! (fwd)

2003-02-10 Thread Craig R. McClanahan
Answered a question on TOMCAT-DEV today that also related to a query on
TOMCAT-USER yesterday -- here's the forwarded response.

Craig

-- Forwarded message --
Date: Mon, 10 Feb 2003 11:06:55 -0800 (PST)
From: Craig R. McClanahan <[EMAIL PROTECTED]>
Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>
To: Tomcat Developers List <[EMAIL PROTECTED]>
Subject: RE: Shutdown.sh does not work when long lasting operations,
 such  as SQL Queries, are still active!



On Mon, 10 Feb 2003, Jindong Li wrote:

> Date: Mon, 10 Feb 2003 13:53:52 -0500
> From: Jindong Li <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>
> To: 'Tomcat Developers List' <[EMAIL PROTECTED]>
> Subject: RE: Shutdown.sh does not work when long lasting operations,
>  such  as SQL Queries, are still active!
>
> I think that's what we're experiencing here with Tomcat4.0.5...we have been
> using TC401 and the shutdown is instant...but I think they have changed the
> way TC is shutting down now...TC will gracefully shutdown i.e. waiting for
> all threads finish and then exit...
>
> If you want...you can try TC401, see if you still experience the delay...
>
> I posted a similar message before and haven't got any response from the
> community yet...:-(
>

It is OK for web applications to start threads -- as long as the web
application cleans up after itself when the application is shut down (the
easiest way to detect that is to create a ServletContextListener and wait
for the contextDestroyed() method of your listener to be called).

The JVM running Tomcat shuts down when all non-daemon threads have been
killed.  Tomcat properly cleans up all the threads that *it* creates -- it
is up to your application to do the same.

> Jindong.
>

Craig

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




can apache-1.3.23 tomcat4.18 conect togther in redhat 7.3?

2003-02-10 Thread Xiongfei Wang
I have redhat 7.3 and already have apache1.2.23 installed and used for
quite long, I want to do some servlet develop work I download tomcat4.18,
it works fine as standalone (http://localhost:8080/examples works), I
downloaded mod_jk-1.3.empi.so try to connect apache to tomcat, but i can
not configure it properly. Is that any suggestion how can make my
apachetomcat set up? Is there any website i can refer to handle this
situation?


Thanks


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




RE: installing TomCat

2003-02-10 Thread Turner, John

That's Apache 2.  Apache 1.3 uses "libexec", typically.

John


> -Original Message-
> From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 2:39 PM
> To: Tomcat Users List
> Subject: Re: installing TomCat
> 
> 
> Did you put the mod_jk.so file in Apache's "modules" directory?
> Kenny
> 
> - Original Message -
> From: "[de internetman] Rene Kooyman" <[EMAIL PROTECTED]>
> To: "Turner, John" <[EMAIL PROTECTED]>; "Tomcat Users List"
> <[EMAIL PROTECTED]>
> Sent: Monday, February 10, 2003 1:24 PM
> Subject: RE: installing TomCat
> 
> 
> > Citeren "Turner, John" <[EMAIL PROTECTED]>:
> >
> > Hi John (again) and other readers,
> >
> > >> http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
> >
> > I've followed this 'how to' on building mod_jk.so (Alternate build
> > process for mod_jk.so) to the letter, everything looks good, the
> > files get copied to the right places, but  when i edit http.conf
> > an check apache (apachectl configtest) i get errors: Cannot load ...
> > because Apache aparently can't locate the mod_jk.so file (which is
> > named 'mod_jk.so.0.0.0' btw). Even renaming it won't help, Apache
> > just can't find mod_jk.so ...  help?
> >
> > This type of OS/system: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18
> >
> >
> > I need to get TomCat connected to Apache, one way or another. If any
> > of you could help met with a good 'how to'. I'd be a very happy man.
> >
> > > Sounds good. Lajos's guides are pretty good.  If you want 
> extra docs,
> check
> > > out mine at http://www.johnturner.com/howto.  They're 
> essentially the
> same
> > > in content (I learned from Lajos's docs when I started 
> with Tomcat) but
> > > sometimes a different viewpoint or presentation helps 
> solve problems.
> >
> > This hot-to is indeed pretty well documented, i even 
> 'stumbled' on yours
> > searching for help with Google.. only thing is: you've 
> written this for
> > Win 2K only, my system is: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18.
> >
> >
> > --
> > Kind regards,
> >
> > Rene Kooyman
> >
> >
> >
> > -
> >
> > 
> -
> > 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: installing TomCat

2003-02-10 Thread Kenny G. Dubuisson, Jr.
Did you put the mod_jk.so file in Apache's "modules" directory?
Kenny

- Original Message -
From: "[de internetman] Rene Kooyman" <[EMAIL PROTECTED]>
To: "Turner, John" <[EMAIL PROTECTED]>; "Tomcat Users List"
<[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 1:24 PM
Subject: RE: installing TomCat


> Citeren "Turner, John" <[EMAIL PROTECTED]>:
>
> Hi John (again) and other readers,
>
> >> http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml
>
> I've followed this 'how to' on building mod_jk.so (Alternate build
> process for mod_jk.so) to the letter, everything looks good, the
> files get copied to the right places, but  when i edit http.conf
> an check apache (apachectl configtest) i get errors: Cannot load ...
> because Apache aparently can't locate the mod_jk.so file (which is
> named 'mod_jk.so.0.0.0' btw). Even renaming it won't help, Apache
> just can't find mod_jk.so ...  help?
>
> This type of OS/system: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18
>
>
> I need to get TomCat connected to Apache, one way or another. If any
> of you could help met with a good 'how to'. I'd be a very happy man.
>
> > Sounds good. Lajos's guides are pretty good.  If you want extra docs,
check
> > out mine at http://www.johnturner.com/howto.  They're essentially the
same
> > in content (I learned from Lajos's docs when I started with Tomcat) but
> > sometimes a different viewpoint or presentation helps solve problems.
>
> This hot-to is indeed pretty well documented, i even 'stumbled' on yours
> searching for help with Google.. only thing is: you've written this for
> Win 2K only, my system is: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18.
>
>
> --
> Kind regards,
>
> Rene Kooyman
>
>
>
> -
>
> -
> 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: Need help w. another jsp!

2003-02-10 Thread Steve Burrus
Hi Daniel, I  don't think that I have ever heard from u before--but that is "neither 
here or there" :). Listen, about handling that "switch-case" block in my code, someone 
suggested to me that I "wrap" the whole block in brackets ({ }). And that would 
"magically" make my problems with the code go away! Is there anything to that 
suggestion at all?


How to listen for Session LastAccessedTime

2003-02-10 Thread Victor Soares
Hello,
I've been searching through the Javadocs to figure out how to listen for a session's 
LastAccessedTime but haven't been able to find anything. Seems like the 
HttpSessionAttributeListener is not notified when a session's LastAccessedTime is 
changed.

Is there a way to listen for a session's LastAccessedTime?

thanks,
- vic


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




Re: Need help w. another jsp!

2003-02-10 Thread Steve Burrus
"Rasputin" (whatever the hell your real name is supposed to be!!!), I guess that you 
haven't gotten the msg. yet from me that i successfully executed the calendar.jsp last 
nite!!! Not that you will ever read this little message from me IF you have seen fit 
to "channel" my postings into yer "killfile", as u call it!!


RE: installing TomCat

2003-02-10 Thread \[de internetman\] Rene Kooyman
Citeren "Turner, John" <[EMAIL PROTECTED]>:

Hi John (again) and other readers,

>> http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml

I've followed this 'how to' on building mod_jk.so (Alternate build
process for mod_jk.so) to the letter, everything looks good, the
files get copied to the right places, but  when i edit http.conf
an check apache (apachectl configtest) i get errors: Cannot load ...
because Apache aparently can't locate the mod_jk.so file (which is
named 'mod_jk.so.0.0.0' btw). Even renaming it won't help, Apache
just can't find mod_jk.so ...  help?

This type of OS/system: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18


I need to get TomCat connected to Apache, one way or another. If any
of you could help met with a good 'how to'. I'd be a very happy man.

> Sounds good. Lajos's guides are pretty good.  If you want extra docs, check
> out mine at http://www.johnturner.com/howto.  They're essentially the same
> in content (I learned from Lajos's docs when I started with Tomcat) but
> sometimes a different viewpoint or presentation helps solve problems.

This hot-to is indeed pretty well documented, i even 'stumbled' on yours
searching for help with Google.. only thing is: you've written this for
Win 2K only, my system is: RedHat 7.3, Apache 1.3.27 TomCat 4.1.18.


-- 
Kind regards,

Rene Kooyman



-

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




stderr.log & jk2.log (tomcat/apache/jk2 errors) question

2003-02-10 Thread SSchaubach
I am hoping that someone sees these errors below and can immediatly tell me
that they are expected and/or normal. I am seeing hundreds of the same error
in the stderr.log. Anyone see these beforeeither of them?

Best,

Stephen




jk2.log
---
[Mon Feb 10 19:04:00 2003]  (error) [jk_channel_socket.c (557)]:
channelSocket.receive(): Error receiving message body -1 104
[Mon Feb 10 19:04:00 2003]  (error) [jk_workerEnv.c (482)]:
workerEnv.processCallbacks() Error reading reply
[Mon Feb 10 19:04:00 2003]  (error) [jk_worker_ajp13.c (407)]:
ajp13.service() ajpGetReply recoverable error 21000

stderr.log
---
Feb 10, 2003 7:37:05 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Feb 10, 2003 7:37:18 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Feb 10, 2003 7:38:03 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Feb 10, 2003 7:38:21 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Feb 10, 2003 7:38:44 AM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached



RE: Status 404 - resource not available

2003-02-10 Thread Tim Moore
Yeah.  It surprises me that you say that, since I believe web.xml files
are required for a context to start up.  I'd definitely read the Servlet
spec if you haven't already.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -Original Message-
> From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 10, 2003 1:42 PM
> To: Tomcat Users List
> Subject: Re: Status 404 - resource not available
> 
> 
> I don't have a web.xml defined.  In my old Tomcat 4.0.5 I 
> didn't need one; do I need one now?  Thanks, Kenny
> 
> - Original Message -
> From: "Tim Moore" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, February 10, 2003 12:37 PM
> Subject: RE: Status 404 - resource not available
> 
> 
> > Check your web.xml. Servlets and serlet mappings must be 
> declared in 
> > web.xml.  Check the servlet spec for details.
> >
> > --
> > Tim Moore / Blackboard Inc. / Software Engineer
> > 1899 L Street, NW / 5th Floor / Washington, DC 20036
> > Phone 202-463-4860 ext. 258 / Fax 202-463-4863
> >
> >
> > > -Original Message-
> > > From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, February 10, 2003 1:26 PM
> > > To: Tomcat Users List
> > > Subject: Re: Status 404 - resource not available
> > >
> > >
> > > Sorry for the re-post but I didn't get any responses and 
> I'm really 
> > > stuck on this.  Thanks, Kenny
> > >
> > > - Original Message -
> > > From: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Friday, February 07, 2003 9:29 AM
> > > Subject: Status 404 - resource not available
> > >
> > >
> > > > I just reloaded my development box and I can't get my 
> servlet to 
> > > > be recognized; I get a Status 404 error - resource not 
> available.  
> > > > I'm not
> > > sure
> > > > where to start diagnosing the problem.  My context (named 
> > > > "kcmria") works...ie if I put in 
> http://192.168.1.61/kcmria I get 
> > > > the
> > > directory
> > > > listing of $CATALINA_HOME/webapps/kcmria which is what I
> > > would expect.
> > > But
> > > > I can't get anything in
> > > $CATALINA_HOME/webapps/kcmria/WEB-INF/classes
> > > > to
> > > be
> > > > recognized.
> > > >
> > > > I tried copying HelloWorldExample over to my servlet 
> directory but 
> > > > can't
> > > see
> > > > it either.  I think it must be something with my 
> context.  Here is 
> > > > what
> > > I've
> > > > defined in server.xml:
> > > >
> > > >  > > reloadable="true"
> > > > crossContext="true">
> > > >  > > > prefix="localhost_kcmria_log."
> > > >  suffix=".txt" timestamp="true" />
> > > > 
> > > >
> > > > My mod_jk.conf looks like this:
> > > >
> > > > JkMount /kcmria ajp13
> > > > JkMount /kcmria/* ajp13
> > > >
> > > > Any ideas where I should start looking?  Thanks,
> > > > Kenny
> > > >
> > > >
> > > >
> > > 
> 
> > > -
> > > > 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: Multiple SSL Certificates

2003-02-10 Thread Donie Kelly
This problem has been discussed here before so search the archives. Short
answer is that Tomcat cannot support two SSL certificates on the same port
so while tomcat supports virtual hosting, it cannot work with SSL. This is
not a limitation of Tomcat but a limitation of the SSL protocol which must
encrypt the link before passing any data to tomcat that could allow it to
decide which certificate to use.

Easy solution is to run two tomcat instances (two jvm's) and maybe use a
load balancer that does port translation. There are other ways but if you
search the archives you see what I mean.

Donie


-Original Message-
From: Driscoll, Jerry [mailto:[EMAIL PROTECTED]]
Sent: 10 February 2003 18:38
To: [EMAIL PROTECTED]
Subject: Multiple SSL Certificates

I am running Tomcat 4.1 as a standalone server with two separate IP
addresses (one for internet and the other for intranet access), both
pointing to the same application.  I ordered two certificates from Verisign
(who stated I needed two) and installed both in Tomcat using the keystore
utility. However, only one certificate is recognized. The internet
certificate with name test1.internet.app is recognized, but the other
certificate with name test2.intranet.app is not. Depending on which one I
install first, that is the one that is recognized. So I called Verisign
(they do not support Tomcat) and they stated that I need to get Tomcat to
support multiple certificates. If I only need one, how do I get Tomcat to
recognize both IP addresses or both names?  Do I just define a virtual host
for each IP address (or domain name) that it serves in the server.xml file?

Jerry L. Driscoll
WEB Implementation Manager
Chesapeake College
P.O. Box 8
Wye Mills, MD  21679
Phone: 410-827-585


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




Re: Status 404 - resource not available

2003-02-10 Thread Kenny G. Dubuisson, Jr.
I don't have a web.xml defined.  In my old Tomcat 4.0.5 I didn't need one;
do I need one now?  Thanks,
Kenny

- Original Message -
From: "Tim Moore" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 12:37 PM
Subject: RE: Status 404 - resource not available


> Check your web.xml. Servlets and serlet mappings must be declared in
> web.xml.  Check the servlet spec for details.
>
> --
> Tim Moore / Blackboard Inc. / Software Engineer
> 1899 L Street, NW / 5th Floor / Washington, DC 20036
> Phone 202-463-4860 ext. 258 / Fax 202-463-4863
>
>
> > -Original Message-
> > From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 10, 2003 1:26 PM
> > To: Tomcat Users List
> > Subject: Re: Status 404 - resource not available
> >
> >
> > Sorry for the re-post but I didn't get any responses and I'm
> > really stuck on this.  Thanks, Kenny
> >
> > - Original Message -
> > From: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, February 07, 2003 9:29 AM
> > Subject: Status 404 - resource not available
> >
> >
> > > I just reloaded my development box and I can't get my servlet to be
> > > recognized; I get a Status 404 error - resource not available.  I'm
> > > not
> > sure
> > > where to start diagnosing the problem.  My context (named "kcmria")
> > > works...ie if I put in http://192.168.1.61/kcmria I get the
> > directory
> > > listing of $CATALINA_HOME/webapps/kcmria which is what I
> > would expect.
> > But
> > > I can't get anything in
> > $CATALINA_HOME/webapps/kcmria/WEB-INF/classes
> > > to
> > be
> > > recognized.
> > >
> > > I tried copying HelloWorldExample over to my servlet directory but
> > > can't
> > see
> > > it either.  I think it must be something with my context.  Here is
> > > what
> > I've
> > > defined in server.xml:
> > >
> > >  > reloadable="true"
> > > crossContext="true">
> > >  > > prefix="localhost_kcmria_log."
> > >  suffix=".txt" timestamp="true" />
> > > 
> > >
> > > My mod_jk.conf looks like this:
> > >
> > > JkMount /kcmria ajp13
> > > JkMount /kcmria/* ajp13
> > >
> > > Any ideas where I should start looking?  Thanks,
> > > Kenny
> > >
> > >
> > >
> > -
> > > 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 SSL Certificates

2003-02-10 Thread Driscoll, Jerry
I am running Tomcat 4.1 as a standalone server with two separate IP addresses (one for 
internet and the other for intranet access), both pointing to the same application.  I 
ordered two certificates from Verisign (who stated I needed two) and installed both in 
Tomcat using the keystore utility. However, only one certificate is recognized. The 
internet certificate with name test1.internet.app is recognized, but the other 
certificate with name test2.intranet.app is not. Depending on which one I install 
first, that is the one that is recognized. So I called Verisign (they do not support 
Tomcat) and they stated that I need to get Tomcat to support multiple certificates. If 
I only need one, how do I get Tomcat to recognize both IP addresses or both names?  Do 
I just define a virtual host for each IP address (or domain name) that it serves in 
the server.xml file? 

Jerry L. Driscoll 
WEB Implementation Manager 
Chesapeake College 
P.O. Box 8 
Wye Mills, MD  21679 
Phone: 410-827-585

 



RE: Status 404 - resource not available

2003-02-10 Thread Tim Moore
Check your web.xml. Servlets and serlet mappings must be declared in
web.xml.  Check the servlet spec for details.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -Original Message-
> From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 10, 2003 1:26 PM
> To: Tomcat Users List
> Subject: Re: Status 404 - resource not available
> 
> 
> Sorry for the re-post but I didn't get any responses and I'm 
> really stuck on this.  Thanks, Kenny
> 
> - Original Message -
> From: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 07, 2003 9:29 AM
> Subject: Status 404 - resource not available
> 
> 
> > I just reloaded my development box and I can't get my servlet to be 
> > recognized; I get a Status 404 error - resource not available.  I'm 
> > not
> sure
> > where to start diagnosing the problem.  My context (named "kcmria") 
> > works...ie if I put in http://192.168.1.61/kcmria I get the 
> directory 
> > listing of $CATALINA_HOME/webapps/kcmria which is what I 
> would expect.
> But
> > I can't get anything in 
> $CATALINA_HOME/webapps/kcmria/WEB-INF/classes 
> > to
> be
> > recognized.
> >
> > I tried copying HelloWorldExample over to my servlet directory but 
> > can't
> see
> > it either.  I think it must be something with my context.  Here is 
> > what
> I've
> > defined in server.xml:
> >
> >  reloadable="true" 
> > crossContext="true">
> >  > prefix="localhost_kcmria_log."
> >  suffix=".txt" timestamp="true" />
> > 
> >
> > My mod_jk.conf looks like this:
> >
> > JkMount /kcmria ajp13
> > JkMount /kcmria/* ajp13
> >
> > Any ideas where I should start looking?  Thanks,
> > Kenny
> >
> >
> > 
> -
> > 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: Status 404 - resource not available

2003-02-10 Thread Kenny G. Dubuisson, Jr.
Sorry for the re-post but I didn't get any responses and I'm really stuck on
this.  Thanks,
Kenny

- Original Message -
From: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 9:29 AM
Subject: Status 404 - resource not available


> I just reloaded my development box and I can't get my servlet to be
> recognized; I get a Status 404 error - resource not available.  I'm not
sure
> where to start diagnosing the problem.  My context (named "kcmria")
> works...ie if I put in http://192.168.1.61/kcmria I get the directory
> listing of $CATALINA_HOME/webapps/kcmria which is what I would expect.
But
> I can't get anything in $CATALINA_HOME/webapps/kcmria/WEB-INF/classes to
be
> recognized.
>
> I tried copying HelloWorldExample over to my servlet directory but can't
see
> it either.  I think it must be something with my context.  Here is what
I've
> defined in server.xml:
>
>  crossContext="true">
>  prefix="localhost_kcmria_log."
>  suffix=".txt" timestamp="true" />
> 
>
> My mod_jk.conf looks like this:
>
> JkMount /kcmria ajp13
> JkMount /kcmria/* ajp13
>
> Any ideas where I should start looking?  Thanks,
> Kenny
>
>
> -
> 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: Tomcat, PreparedStatement JDBC problem

2003-02-10 Thread Filip Hanik
It is a sql problem

if(roleId != -1)
{
pstmt = con.prepareStatement("INSERT INTO ROLE (ID,NAME,OWNERID) VALUES  (?,?,?)");
   ^^
pstmt.setInt(1, roleId);
pstmt.setString(2, roleName);
pstmt.setInt(3, ownerId);
}
else
{
pstmt = con.prepareStatement("INSERT INTO ROLE (NAME,OWNERID) VALUES  (?,?)");
   ^^
pstmt.setString(1, roleName);
pstmt.setInt(2, ownerId);
}

-Original Message-
From: Mufaddal [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 09, 2003 9:46 PM
To: Tomcat List
Subject: Tomcat, PreparedStatement JDBC problem


Hi Everybody

I am using tomcat on Mac OS X. One of my servlets does the following:

1. I am creating a table ROLE as follows:
 
___

 stmt.executeUpdate( "CREATE TABLE ROLE ("  +
 "IDINTEGER NOT NULL AUTO_INCREMENT, "  +
 "NAME  VARCHAR(20) NOT NULL, " +
 "OWNERID   INTEGER NOT NULL, " +
 "PRIMARY KEY( ID )"+
 ")");
 
___


2. I want to insert (ID, name, ownerid) in the above table .. if ID !=  
-1 and only (name, ownerid) if ID == -1;
I do this as follows:
 
___

 PreparedStatement pstmt = null;

 if(roleId != -1)
 {
 pstmt = con.prepareStatement("INSERT INTO ROLE VALUES  
(?,?,?)");
 pstmt.setInt(1, roleId);
 pstmt.setString(2, roleName);
 pstmt.setInt(3, ownerId);
  }
 else
 {
 pstmt = con.prepareStatement("INSERT INTO ROLE VALUES  
(?,?)");
 pstmt.setString(1, roleName);
 pstmt.setInt(2, ownerId);
 }

 pstmt.executeUpdate();
 
___

It throws an exception at pstmt.executeUpdate() .. saying:
 
___
java.sql.SQLException: General error,  message from server: "Column  
count doesn't match value count at row 1"
 
___

Therefore I understood that maybe i need to make a change to the above  
code as follows:
 
___
...
   // SAME AS BEFORE
...
   else
 {
 pstmt = con.prepareStatement("INSERT INTO ROLE VALUES  
(?,?)");
 pstmt.setString(2, roleName);
 pstmt.setInt(3, ownerId);
 }

 pstmt.executeUpdate();

 
___
Now it gives me an error saying:
 
___
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
 
___

Does anybody know what i am doing wrong here ?

Thanks in advance
Mufaddal.

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




Tomcat, PreparedStatement JDBC problem

2003-02-10 Thread Mufaddal
Hi Everybody

I am using tomcat on Mac OS X. One of my servlets does the following:

1. I am creating a table ROLE as follows:
 
___

stmt.executeUpdate( "CREATE TABLE ROLE ("			+
"ID			INTEGER NOT NULL AUTO_INCREMENT, "	+
"NAME		VARCHAR(20) NOT NULL, "			+
"OWNERID		INTEGER NOT NULL, "			+
"PRIMARY KEY( ID )"		+
")");
 
___


2. I want to insert (ID, name, ownerid) in the above table .. if ID !=  
-1 and only (name, ownerid) if ID == -1;
   I do this as follows:
 
___

PreparedStatement pstmt = null;

if(roleId != -1)
{
pstmt = con.prepareStatement("INSERT INTO ROLE VALUES  
(?,?,?)");
pstmt.setInt(1, roleId);
pstmt.setString(2, roleName);
pstmt.setInt(3, ownerId);
 }
else
{
pstmt = con.prepareStatement("INSERT INTO ROLE VALUES  
(?,?)");
pstmt.setString(1, roleName);
pstmt.setInt(2, ownerId);
}

pstmt.executeUpdate();
 
___

It throws an exception at pstmt.executeUpdate() .. saying:
 
___
java.sql.SQLException: General error,  message from server: "Column  
count doesn't match value count at row 1"
 
___

Therefore I understood that maybe i need to make a change to the above  
code as follows:
 
___
			...
		   // SAME AS BEFORE 		
			...
		   else
{
pstmt = con.prepareStatement("INSERT INTO ROLE VALUES  
(?,?)");
pstmt.setString(2, roleName);
pstmt.setInt(3, ownerId);
}

pstmt.executeUpdate();

 
___
Now it gives me an error saying:
 
___
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
 
___

Does anybody know what i am doing wrong here ?

Thanks in advance
Mufaddal.


Tomcat, PreparedStatement JDBC problem

2003-02-10 Thread Mufaddal
Hi Everybody

I am using tomcat on Mac OS X. One of my servlets does the following:

1. I am creating a table ROLE as follows:
 
___

stmt.executeUpdate( "CREATE TABLE ROLE ("			+
"ID			INTEGER NOT NULL AUTO_INCREMENT, "	+
"NAME		VARCHAR(20) NOT NULL, "			+
"OWNERID		INTEGER NOT NULL, "			+
"PRIMARY KEY( ID )"		+
")");
 
___


2. I want to insert (ID, name, ownerid) in the above table .. if ID !=  
-1 and only (name, ownerid) if ID == -1;
   I do this as follows:
 
___

PreparedStatement pstmt = null;

if(roleId != -1)
{
pstmt = con.prepareStatement("INSERT INTO ROLE VALUES  
(?,?,?)");
pstmt.setInt(1, roleId);
pstmt.setString(2, roleName);
pstmt.setInt(3, ownerId);
 }
else
{
pstmt = con.prepareStatement("INSERT INTO ROLE VALUES  
(?,?)");
pstmt.setString(1, roleName);
pstmt.setInt(2, ownerId);
}

pstmt.executeUpdate();
 
___

It throws an exception at pstmt.executeUpdate() .. saying:
 
___
java.sql.SQLException: General error,  message from server: "Column  
count doesn't match value count at row 1"
 
___

Therefore I understood that maybe i need to make a change to the above  
code as follows:
 
___
			...
		   // SAME AS BEFORE 		
			...
		   else
{
pstmt = con.prepareStatement("INSERT INTO ROLE VALUES  
(?,?)");
pstmt.setString(2, roleName);
pstmt.setInt(3, ownerId);
}

pstmt.executeUpdate();

 
___
Now it gives me an error saying:
 
___
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
 
___

Does anybody know what i am doing wrong here ?

Thanks in advance
Mufaddal.


RE: Error - tomcat-users.xml.new permission denied - while starting TOMCAT

2003-02-10 Thread Filip Hanik
start tomcat as root :)

just kiddin, this is a permission issue, it is up to you to decide how you want to do 
it.
you could comment the whole memory realm out if you don't use it for example

Filip

-Original Message-
From: krip pane [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 9:28 AM
To: tomcat
Subject: Error - tomcat-users.xml.new permission denied - while starting
TOMCAT


All,

I'm trying to start tomcat as user "tomcat" via a
script.  But it keeps dying with error - 
tomcat-users.xml.new permission denied.  It looks like
it's trying to write to the conf dir, but the id
doesn't have write permission to do so - only root
does.  I don't want to give any ID other than root
write permission on conf.  How can I workaround this
problem and get tomcat to start.

Thanks

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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: JAASRealm/LoginManager questions

2003-02-10 Thread Craig R. McClanahan


On Mon, 10 Feb 2003, Jim Krygowski wrote:

> Date: Mon, 10 Feb 2003 12:48:24 -0500
> From: Jim Krygowski <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: JAASRealm/LoginManager questions
>
> Hi Bryan-
>
> I've done something similar to this on Tomcat and JRun.  I noted in your
> last comment:
>
> > But as you say prior, the filters aren't even being run, apparently,
> > before the container evaluates j_username and j_password, so I guess I
> > have no Servlet-standard hook there. I guess it's off to the
> > Authenticator API I go.
> >
> > Heck, at least I can keep all the authentication logic in one place with
> > that strategy, as opposed to splitting it between a Filter and a
> > LoginModule.
> >
>
> I'm not sure I completely understand your conclusion, but if you want to use
> JAAS, you will need a login module.  The custom Authenticator Craig speaks
> of will automate the typical 2 step Form Authentication process.  The
> Authenticator doesn't interact with the security datastore, the LoginModule
> does.
>
> I think rolling your authentication logic into the Authentictor might
> violate the seperation of concerns inherent in the authenticator/login
> module design.  The Authenticator (like the FormAuthenticator) should be
> responsible for the user side of the interaction: is the user session
> authenticated? is the user offering credentials? where does the user want to
> go?  The LoginModule should be responsible for interacting with the security
> data store and given a set of credentials, verifying that they are proper
> and returning a Principal after successful authentication.
>
> BTW: I see a lot of value in what you are doing.  It would be nice to have a
> standard for single sign on that worked across all J2EE compatable servers.
> However, as it stands now, you will have to write LoginModules and
> Authenticator-type components for each container you encounter.
>

Making something like this possible is one of the key motivations for the
new JSR on standardizing the interface between containers and
authentication mechanisms.  It'll be possible to do this kind of thing
portably once that's done; in the mean time, it's container specific.

Craig

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




Re: JAASRealm/LoginManager questions

2003-02-10 Thread Craig R. McClanahan


On Mon, 10 Feb 2003, Erik Price wrote:

> Date: Mon, 10 Feb 2003 11:15:04 -0500
> From: Erik Price <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: JAASRealm/LoginManager questions
>
>
>
> Craig R. McClanahan wrote:
>
>
> >>It seems a little convoluted, but, what it buys me is, any Servlet
> >>container which supports form-based authentication, and which supports
> >>JAAS for realms (or equivalent), can harness this toolkit. I assume (but
> >>have not verified) that this buys me into the major J2EE containers --
> >>Weblogic, SunONE, Websphere, etc, in addition to my favorite (Tomcat).
> >>
> >>Does this sound like it would work?
> >>
> >
> >
> > Ah, if only it would ... it would require a change to the servlet spec to
> > allow filters to perform "container managed security" authentications.
> >>>From a container writer's point of view, I get a little uneasy thinking
> > about delegating this responsibility to an application -- but I can see
> > some use cases for it.
>
> Pardon me for butting in on this thread, which isn't mine, but I have a
> question...
>
> My webapp uses its own authentication system, where every resource is
> protected by a filter that consults the session to see if the user is
> authentic or not, and if not, then redirects to the login page.  Is this
> the scenario that, above, you describe as making you feel a little
> uneasy?  I'm just curious if there's any conventional wisdom about
> webapp authentication of which I am out of the loop and haven't heard yet.
>
> If this is the case, what are some use cases that would need something
> like that?
>

In some web services security standards, the authentication credentials
are packed in to the SOAP message header itself, rather than being "out of
band" the way that BASIC or form-based authentication works.  It is
tempting to think you could just write a filter that extracted the
credentials out of the header, magically "set" the user Principal seen by
the container, and from there on the container would understand that the
user has the associated roles (for example, on a call to an EJB).  This
scenario is not possible in a standard servlet container today, because
the authentication mechanism has already been invoked by the time that a
filter is executed -- hence, my suggestion to use a Valve that is executed
before Tomcat's authenticator (Tomcat's authenticators are all programmed
such that, if an authenticated user has already been identified, just use
it and don't try to reauthenticate).

All of this stuff applies only if you are talking about container managed
security.  If you're doing application managed security (i.e. no security
constraints in your web.xml file), you can do whatever you want, because
it's just an application deciding for itself what it wants to allow.  But
you won't be able to influence the user identity (and associated role
permissions) of an EJB call.

>
> Erik

Craig

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




RE: JAASRealm/LoginManager questions

2003-02-10 Thread Jim Krygowski
Hi Bryan-

I've done something similar to this on Tomcat and JRun.  I noted in your
last comment:

> But as you say prior, the filters aren't even being run, apparently,
> before the container evaluates j_username and j_password, so I guess I
> have no Servlet-standard hook there. I guess it's off to the
> Authenticator API I go.
>
> Heck, at least I can keep all the authentication logic in one place with
> that strategy, as opposed to splitting it between a Filter and a
> LoginModule.
>

I'm not sure I completely understand your conclusion, but if you want to use
JAAS, you will need a login module.  The custom Authenticator Craig speaks
of will automate the typical 2 step Form Authentication process.  The
Authenticator doesn't interact with the security datastore, the LoginModule
does.

I think rolling your authentication logic into the Authentictor might
violate the seperation of concerns inherent in the authenticator/login
module design.  The Authenticator (like the FormAuthenticator) should be
responsible for the user side of the interaction: is the user session
authenticated? is the user offering credentials? where does the user want to
go?  The LoginModule should be responsible for interacting with the security
data store and given a set of credentials, verifying that they are proper
and returning a Principal after successful authentication.

BTW: I see a lot of value in what you are doing.  It would be nice to have a
standard for single sign on that worked across all J2EE compatable servers.
However, as it stands now, you will have to write LoginModules and
Authenticator-type components for each container you encounter.






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




Re: Valve Access to Principal

2003-02-10 Thread Craig R. McClanahan


On Mon, 10 Feb 2003, Erik Price wrote:

> Date: Mon, 10 Feb 2003 11:17:31 -0500
> From: Erik Price <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Valve Access to Principal
>
>
>
> Craig R. McClanahan wrote:
>
>
> > Tomcat 5 has integrated support for JSR 115, but that's for authorization,
> > not authentication.
>
> Oh no, there's a difference?  Is there an explanatory document somewhere
> that I missed?
>

Authentication == who are you?  In servlet API terms:  getRemoteUser() and
getUserPrincipal(), and login methods.

Authorization == what can you do?  In servlet API terms:  isUserInRole()
and role-based security constraints.

>
> Erik
>

Craig

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




Error - tomcat-users.xml.new permission denied - while starting TOMCAT

2003-02-10 Thread krip pane
All,

I'm trying to start tomcat as user "tomcat" via a
script.  But it keeps dying with error - 
tomcat-users.xml.new permission denied.  It looks like
it's trying to write to the conf dir, but the id
doesn't have write permission to do so - only root
does.  I don't want to give any ID other than root
write permission on conf.  How can I workaround this
problem and get tomcat to start.

Thanks

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Apache-Tomcat Configuring....

2003-02-10 Thread Turner, John

There's nothing that I know of that will check patch versions prior to
running ./configure.

This is just a stab in the dark...have you looked at that file?  The error
message seems to be saying that there is a simple syntax error (missing
semicolon).  The first error is at line 54, this is what my
/usr/include/sys/socketvar.h looks like at that line:

/*
 * Internal representation used for addresses.
 */
struct soaddr {
struct sockaddr *soa_sa;/* Actual address */
t_uscalar_t soa_len;/* Length in bytes for kmem_free */
t_uscalar_t soa_maxlen; /* Allocated length */
};

HTH

John


> -Original Message-
> From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 12:02 PM
> To: Tomcat Users List
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> I just talk to the individual who add the OS...and he says the system
> has the most up to date patches
> 
> Is there something that I can run to make sure that I have 
> the necessary
> patches to do the configuration...
> 
> Allen
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 10, 2003 9:54 AM
> To: 'Tomcat Users List'
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> 
> I would download the patch cluster and apply it just the same...the
> script
> will tell you if the patches don't need to be applied and behave
> accordingly.
> 
> You'll want the 8_Recommended patch cluster for your architecture.  I
> would
> do that first.
> 
> John
> 
> > -Original Message-
> > From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 10, 2003 10:48 AM
> > To: Tomcat Users List
> > Subject: RE: Apache-Tomcat Configuring
> > 
> > 
> > I'll check for the patches but this is a new machine with 
> > Solaris 2.8. I
> > would think it would have a the current patches...but you 
> never know.
> > 
> > Allen
> > 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, February 07, 2003 11:18 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Apache-Tomcat Configuring
> > 
> > 
> > 
> > What errors?  You got the same errors?  Do you have the recommended
> > patch
> > cluster installed?  Your error messages look like 
> system-level library
> > problems.  /usr/include/sys has nothing to do with Tomcat, the
> > connectors,
> > or Apache, as far as I know.  /usr/include/sys is where OS 
> headers and
> > libs
> > are kept, I believe.
> > 
> > John
> > 
> > 
> > -Original Message-
> > From: Wilson, Allen [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, February 07, 2003 10:01 PM
> > To: Tomcat Users List; Tomcat Users List
> > Subject: RE: Apache-Tomcat Configuring
> > 
> > 
> > Thanks for the info
> >  
> > I read through what you have and I ran into the errors below 
> > when I did
> > the
> > make on the JK connector configuration. I did not use the connectors
> > that
> > your steps indicated...I just the one provided in the
> > jakarta-tomcat-connectors-4.1.18 file. 
> >  
> > Allen
> > 
> > -Original Message- 
> > From: Turner, John [mailto:[EMAIL PROTECTED]] 
> > Sent: Fri 2/7/2003 6:32 PM 
> > To: 'Tomcat Users List' 
> > Cc: 
> > Subject: RE: Apache-Tomcat Configuring
> > 
> > 
> > 
> > 
> > I have a Solaris 8 HOWTO here:  http://www.johnturner.com/howto.
> > It
> > uses
> > Apache 2, but if you have the source to Apache the steps are the
> > same.  Just
> > sub in "apache" wherever it says "apache2".  I'm assuming you
> > are
> > using
> > Solaris because you have paths with /opt in them.
> > 
> > In my experience, you want to use:
> > 
> > ./configure --with-apxs=/some/path/to/apache/bin/apxs
> > make
> > make install
> > 
> > ...to build the connector...it's much easier than ant, assuming
> > you
> > have a
> > sane GNU build environment.
> > 
> > John
> > 
> > 
> > -Original Message-
> > From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 07, 2003 6:00 PM
> > To: Tomcat Users List
> > Subject: Apache-Tomcat Configuring
> > 
> > 
> > Hello
> > 
> > I am trying to configure Apache (1.3.27) and Tomcat (4.1.18) to
> > work
> > together in preparation for adding JetSpeed.
> > 
> > I have tried to following the instructions for creating
> > mod_jk.so
> > provided
> > by the Wrox Professional Tomcat book and the Galatea.com Flash
> > Guides and
> > came up with errors on both.
> > 
> > - With the Wrox book, I attempted to build it using the
> > buildconf.so
> > script
> > and received the following errors when running the make..
> > 
> > In file included from jk_global.h:103,
> >  from jk_logger.h:67,
> >  from jk_ajp12_worker.h:67,
> >  from jk_ajp12_worker.c:65:
> >

Re: EXECUTE an external .exe-file (+Parameters) that creates data-filesI want to use later in my servlet

2003-02-10 Thread John Burgess
I think you'll need the full (absolute) path to the exe.  There is a call in
the servlet api to translate a relative path to an absolute path in the
server's file system but I can't remember what it is.
Otherwise, put data.exe somewhere on the system path and drop the relative
directory part.

- Original Message -
From: "Patrick Kosiol" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 11:35 AM
Subject: EXECUTE an external .exe-file (+Parameters) that creates
data-filesI want to use later in my servlet


> Hi,
>
> I'm runnung TomCat 4.0.4 and I want to start an external .exe-File.
> My Code:
>
>String[] runString = {relativeDataPath + "data.exe",
>  parameter0, parameter1, parameter2, parameter3};
>Process p = Runtime.getRuntime().exec(runString);
>System.out.println(runString);
>if(p.waitFor() == 0){
>  
>
> The 'data.exe'-File is placed in
> $CATALINA_HOME/webapps/ROOT/relativeDataPath so it should be no problem
> to access this File. The Number of  Parameters etc. is OK.
> But I get the following Error-Message:
>
> java.io.IOException: CreateProcess: 'relativeDataPath'/bfpldata.exe
> parameter0 parameter1 parameter2 parameter3 error=2
>
> error=2 means imho that the File is not found. How can I execute my file
> to do that, what I want. Is it possible that the process can create
> files in the Tomcat folders?
>
>
> Thx
> Patrick
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Apache-Tomcat Configuring....

2003-02-10 Thread Wilson, Allen
I just talk to the individual who add the OS...and he says the system
has the most up to date patches

Is there something that I can run to make sure that I have the necessary
patches to do the configuration...

Allen

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 9:54 AM
To: 'Tomcat Users List'
Subject: RE: Apache-Tomcat Configuring



I would download the patch cluster and apply it just the same...the
script
will tell you if the patches don't need to be applied and behave
accordingly.

You'll want the 8_Recommended patch cluster for your architecture.  I
would
do that first.

John

> -Original Message-
> From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 10:48 AM
> To: Tomcat Users List
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> I'll check for the patches but this is a new machine with 
> Solaris 2.8. I
> would think it would have a the current patches...but you never know.
> 
> Allen
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 07, 2003 11:18 PM
> To: 'Tomcat Users List'
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> 
> What errors?  You got the same errors?  Do you have the recommended
> patch
> cluster installed?  Your error messages look like system-level library
> problems.  /usr/include/sys has nothing to do with Tomcat, the
> connectors,
> or Apache, as far as I know.  /usr/include/sys is where OS headers and
> libs
> are kept, I believe.
> 
> John
> 
> 
> -Original Message-
> From: Wilson, Allen [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 07, 2003 10:01 PM
> To: Tomcat Users List; Tomcat Users List
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> Thanks for the info
>  
> I read through what you have and I ran into the errors below 
> when I did
> the
> make on the JK connector configuration. I did not use the connectors
> that
> your steps indicated...I just the one provided in the
> jakarta-tomcat-connectors-4.1.18 file. 
>  
> Allen
> 
>   -Original Message- 
>   From: Turner, John [mailto:[EMAIL PROTECTED]] 
>   Sent: Fri 2/7/2003 6:32 PM 
>   To: 'Tomcat Users List' 
>   Cc: 
>   Subject: RE: Apache-Tomcat Configuring
>   
>   
> 
> 
>   I have a Solaris 8 HOWTO here:  http://www.johnturner.com/howto.
> It
> uses
>   Apache 2, but if you have the source to Apache the steps are the
> same.  Just
>   sub in "apache" wherever it says "apache2".  I'm assuming you
> are
> using
>   Solaris because you have paths with /opt in them.
>   
>   In my experience, you want to use:
>   
>   ./configure --with-apxs=/some/path/to/apache/bin/apxs
>   make
>   make install
>   
>   ...to build the connector...it's much easier than ant, assuming
> you
> have a
>   sane GNU build environment.
>   
>   John
>   
>   
>   -Original Message-
>   From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
>   Sent: Friday, February 07, 2003 6:00 PM
>   To: Tomcat Users List
>   Subject: Apache-Tomcat Configuring
>   
>   
>   Hello
>   
>   I am trying to configure Apache (1.3.27) and Tomcat (4.1.18) to
> work
>   together in preparation for adding JetSpeed.
>   
>   I have tried to following the instructions for creating
> mod_jk.so
> provided
>   by the Wrox Professional Tomcat book and the Galatea.com Flash
> Guides and
>   came up with errors on both.
>   
>   - With the Wrox book, I attempted to build it using the
> buildconf.so
> script
>   and received the following errors when running the make..
>   
>   In file included from jk_global.h:103,
>from jk_logger.h:67,
>from jk_ajp12_worker.h:67,
>from jk_ajp12_worker.c:65:
>   /usr/include/sys/socketvar.h:54: parse error before
> `t_uscalar_t'
>   /usr/include/sys/socketvar.h:54: warning: no semicolon at end of
> struct or
>   union
>   /usr/include/sys/socketvar.h:55: warning: data definition has no
> type or
>   storage class
>   /usr/include/sys/socketvar.h:222: parse error before
> `t_uscalar_t'
>   /usr/include/sys/socketvar.h:222: warning: no semicolon at end
> of
> struct or
>   union
>   /usr/include/sys/socketvar.h:223: warning: data definition has
> no
> type or
>   storage class
>   /usr/include/sys/socketvar.h:224: parse error before
> `so_addr_size'
>   /usr/include/sys/socketvar.h:224: warning: data definition has
> no
> type or
>   storage class
>   /usr/include/sys/socketvar.h:225: parse error before
> `so_opt_size'
>   /usr/include/sys/socketvar.h:225: warning: data definition has
> no
> type or
>   storage class
>   /usr/include/sys/socketvar.h:226: parse error before
> `so_tidu_size'
>   /usr/include/sys/

RE: Apache-Tomcat Configuring....

2003-02-10 Thread Wilson, Allen
Yeah...I know...

The company has made the decision to stay at 2.8 for now...since our
other machines are on that OS

-Original Message-
From: Andy Eastham [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 10:15 AM
To: Tomcat Users List
Subject: RE: Apache-Tomcat Configuring


Allen,

Solaris 2.9 has been the latest operating system for about 6 months...

I'd definitely patch it I was you.

Andy

> -Original Message-
> From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
> Sent: 10 February 2003 15:48
> To: Tomcat Users List
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> I'll check for the patches but this is a new machine with Solaris 2.8.
I
> would think it would have a the current patches...but you never know.
> 
> Allen
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 07, 2003 11:18 PM
> To: 'Tomcat Users List'
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> 
> What errors?  You got the same errors?  Do you have the recommended
> patch
> cluster installed?  Your error messages look like system-level library
> problems.  /usr/include/sys has nothing to do with Tomcat, the
> connectors,
> or Apache, as far as I know.  /usr/include/sys is where OS headers and
> libs
> are kept, I believe.
> 
> John
> 
> 
> -Original Message-
> From: Wilson, Allen [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 07, 2003 10:01 PM
> To: Tomcat Users List; Tomcat Users List
> Subject: RE: Apache-Tomcat Configuring
> 
> 
> Thanks for the info
>  
> I read through what you have and I ran into the errors below when I
did
> the
> make on the JK connector configuration. I did not use the connectors
> that
> your steps indicated...I just the one provided in the
> jakarta-tomcat-connectors-4.1.18 file. 
>  
> Allen
> 
>   -Original Message- 
>   From: Turner, John [mailto:[EMAIL PROTECTED]] 
>   Sent: Fri 2/7/2003 6:32 PM 
>   To: 'Tomcat Users List' 
>   Cc: 
>   Subject: RE: Apache-Tomcat Configuring
>   
>   
> 
> 
>   I have a Solaris 8 HOWTO here:  http://www.johnturner.com/howto.
> It
> uses
>   Apache 2, but if you have the source to Apache the steps are the
> same.  Just
>   sub in "apache" wherever it says "apache2".  I'm assuming you
> are
> using
>   Solaris because you have paths with /opt in them.
>   
>   In my experience, you want to use:
>   
>   ./configure --with-apxs=/some/path/to/apache/bin/apxs
>   make
>   make install
>   
>   ...to build the connector...it's much easier than ant, assuming
> you
> have a
>   sane GNU build environment.
>   
>   John
>   
>   
>   -Original Message-
>   From: Wilson, Allen [mailto:[EMAIL PROTECTED]]
>   Sent: Friday, February 07, 2003 6:00 PM
>   To: Tomcat Users List
>   Subject: Apache-Tomcat Configuring
>   
>   
>   Hello
>   
>   I am trying to configure Apache (1.3.27) and Tomcat (4.1.18) to
> work
>   together in preparation for adding JetSpeed.
>   
>   I have tried to following the instructions for creating
> mod_jk.so
> provided
>   by the Wrox Professional Tomcat book and the Galatea.com Flash
> Guides and
>   came up with errors on both.
>   
>   - With the Wrox book, I attempted to build it using the
> buildconf.so
> script
>   and received the following errors when running the make..
>   
>   In file included from jk_global.h:103,
>from jk_logger.h:67,
>from jk_ajp12_worker.h:67,
>from jk_ajp12_worker.c:65:
>   /usr/include/sys/socketvar.h:54: parse error before
> `t_uscalar_t'
>   /usr/include/sys/socketvar.h:54: warning: no semicolon at end of
> struct or
>   union
>   /usr/include/sys/socketvar.h:55: warning: data definition has no
> type or
>   storage class
>   /usr/include/sys/socketvar.h:222: parse error before
> `t_uscalar_t'
>   /usr/include/sys/socketvar.h:222: warning: no semicolon at end
> of
> struct or
>   union
>   /usr/include/sys/socketvar.h:223: warning: data definition has
> no
> type or
>   storage class
>   /usr/include/sys/socketvar.h:224: parse error before
> `so_addr_size'
>   /usr/include/sys/socketvar.h:224: warning: data definition has
> no
> type or
>   storage class
>   /usr/include/sys/socketvar.h:225: parse error before
> `so_opt_size'
>   /usr/include/sys/socketvar.h:225: warning: data definition has
> no
> type or
>   storage class
>   /usr/include/sys/socketvar.h:226: parse error before
> `so_tidu_size'
>   /usr/include/sys/socketvar.h:226: warning: data definition has
> no
> type or
>   storage class
>   /usr/include/sys/socketvar.h:227: parse error before
> `so_serv_type'
>   /usr/include/sys/socketvar.h:227: warning: data definition has
> no
> type or
>   

  1   2   >