Re: [Q] Singleton Objects across webapps...

2002-09-05 Thread Eddie Bush

Felipe Schnack wrote:

  That was something I was asking myself some days ago: why i would use
JBoss?

That I'm aware of, TC doesn't do EJBs.  TC is a servlet container. 
 JBoss is a full J2EE application server (someone help me out here -- 
the lines are fuzzy to me too) -- in other words, it'll handle all the 
EJB-type stuff that TC doesn't get involved in.  I believe it delegates 
all Servlet/JSP/whatever (ie non-EJB-type stuff) to TC.

Regards,

Eddie



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




Re: a 'one-click' j_securty_check question

2002-09-05 Thread Eddie Bush

Suggestion:  Search the archive.  This is a very frequently asked question.

What you want to do is the same as everyone else using FORM-based CMA. 
 The fact is that it doesn't work on a let basis; rather a make 
basis.  One hint I will give you:  the container is going to load all of 
a user's roles when they login.  They don't login as a given role (to my 
understanding anyhow), but simply login -- all associated roles are 
loaded on successful authentication.

Regards,

Eddie

jfc wrote:

 Hi,

 I would like to structure my application so that the user can choose 
 to login instead of being enexpectedly prompted to be logged in.

 It seems declarative form-based security comes with the philosophy 
 that your URL has to explicilty request a resource which is secured 
 under the role you wish to log in under in order for the container to 
 know you belong to that particular role(i.e. request.getRemoteUser()). 
 So you have to know before hand who you'd like to be logged in as.

 I could force the user to choose from a list of valid roles before he 
 gets propmted by the j_security_check login form but I'm trying not to 
 have force the user to identify himself to the container twice in 
 order to be thoroughly recognized by the container.

 My question:

 Is the following possible under the latest spec and tomcat's 
 implementation (using j2ee, declarative form-based authentication
 ):

 1.user issues a request to manually log in with the custom html 
 login form containing the users username and password;
 2.server extracts role-leaf from this user's registration 
 information from a persistent store i.e. the application holds roles 
 in a hierarchy;
 3.server does a redirect to a welcome page secured in web.xml 
 under that role-leaf role value;
 4.the configured login page has the j_security_check form 
 prepopulated with username and password;
 5.the configured login page also has an 'onload' javascript 
 directive which automatically submits j_security_check on loading of 
 the body.

 I haven't tried this yet but does anyone have any experience of 
 something like this working?

 If so it would mean that an application would not have to show links 
 whose appropriateness would only become apparent once that link had 
 been followed(clicked) and the user had possibly failed at his 
 attempted login.

 Sorry if this is not clear enough.

 jfc

 (the container needs to first know what role you want to log in under 
 in order for it to successfully authenticate you under that role. It 
 can't determine for itself which role you registered under and attempt 
 to authenticate you under that role instead)


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




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




Re: [Q] Singleton Objects across webapps...

2002-09-05 Thread Eddie Bush

I don't think web services require EJBs be used :-)  I haven't fooled 
around with them though.  From what I recall having read, you can do web 
services using Tomcat.  What I read, and where, I do not recall 
precisely.  The impression I have left upon my mind is that it is 
possible to do web services under TC.  Search, read, and educate 
yourself about web services.  One particular point of interest:  Sun has 
the web services developer pack, and I believe Apache (Jakarta) has a 
similar project.  ... now, if only I could remember where I got that 
from so I could come up with the name.

If you feel you must use EJBs, JBoss is most likely the direction you 
want to go.  If you can do what you want without EJBs, you don't need 
JBoss.  That is my understanding -- I am far from authoritative on 
anything having to do with EJBs.

Regards,

Eddie

Felipe Schnack wrote:

  So, if I need webservices and such I should use JBoss?

On Thu, 2002-09-05 at 12:03, Eddie Bush wrote:

Felipe Schnack wrote:

 That was something I was asking myself some days ago: why i would use
JBoss?

That I'm aware of, TC doesn't do EJBs.  TC is a servlet container. 
 JBoss is a full J2EE application server (someone help me out here -- 
the lines are fuzzy to me too) -- in other words, it'll handle all the 
EJB-type stuff that TC doesn't get involved in.  I believe it delegates 
all Servlet/JSP/whatever (ie non-EJB-type stuff) to TC.

Regards,

Eddie




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




Re: global.jsa - Struts

2002-09-04 Thread Eddie Bush

Struts is *the* de-facto standard MVC framework.  The problem is that 
there is a slight bit of initial learning curve, and it's hard to see 
the benefit until *after* you've used it (my opinion).  You really 
should give it a go -- it's tons better than having to implement 
something analagous yourself.  If you're new to Struts, I recommend you 
go over to http://www.theserverside.com and search for struts book 
review.  That should turn-up Chuck Cavaness' new book chapters (which 
is available to be ordered now, btw; no, I don't get paid to say that - 
it's a good introduction - very good).  If you want a really good Struts 
course, read that book.

... don't judge what you haven't used :-)  Struts is Good Stuff (tm).

Regards,

Eddie

neal wrote:

Good to know.  Thanks for your thoughts on Struts.  Yeah, I'll check out
those taglibs in the Jakarta lirary taglibs.  I already found some great
functionality in their commons library.  :)

Yeah, for MVC implementation I was simply talking about a servelt that takes
an action parameter to determine which JSP to show and which class to use
to process any data coming from that JSP...and maybe this data is mapped
into an XML or props file.  This is pretty much what you're doing too?

Neal




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




Re: global.jsa - Struts

2002-09-04 Thread Eddie Bush

neal wrote:

Micael,

You've mentioned Struts a couple of times and I admit I am curious.

I did look into Struts but to be honost I wasn't all that impressed by what
(I think) I saw. It seemed like it was just offering a lot of lightweight
wrappers around the API.  Case in point, the Cookie utility class didn't
appear to offer any additional functionality over the http.cookie class in
the JDK. It's connection pooling was even pretty rudamentary so I went
around that.  I presume that its XML/XSL, and other such things would also
be rundamentary probably too. And actually, did I say a lot?  I looked at
the API and I didnt think there was a lot there...

All those things I'm saying wouldn't be bad per se, except that I don't want
to learn a whole new API to do basically what Java already does with it's
own standard API (again back to the wrapper thing).

Granted the MVC pattern implementation is apparentlly very good but I'm not
seeing that as a huge stumbling block to write on my own. They also appear
to provide custom tags wrappers around their API so that you can keep your
code totally declarative (code based) at the JSP level. Ok, that would be
cool ... but again I just don't want to be realying on a non-standard API
still for standard functionality.  I'll end up forgetting the JDK API in
lieu of Struts API.  :(

One point to note:  The JSTL (you can find the RI under the taglibs 
project) - aka the Java Standard Tag Library - can be used in lieu of 
some Struts tags.  If you're worried about forgetting standards, use 
this one.  It's *the* standard, and should be what people adopt in their 
JSP pages (where possible).

(also, Struts doesn't hide the Java API - you work with the same 
request/response you would otherwise.  There are just additional pieces 
around to make your life easier.)

Regards,

Eddie



S, this is my initial impression of Struts.  I dont know ... what do you
think?  Am I totally off base with my concerns and/or assessment of the
package?  If so, please let me know.  I am open to being proven wrong here.
I've heard Struts is a great package ... its just the cost-benefit (time to
learn vs. gain in productivity) analysis doesn't seem to be pointing me in
that direction right now. :)




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




Re: [Q] Singleton Objects across webapps...

2002-09-04 Thread Eddie Bush

Comments in-line.

Shapira, Yoav wrote:

Hi,
Perhaps putting the common code, e.g. the singleton, in /common/lib will
work for you?

Yoav Shapira
Millennium ChemInformatics

A best practices question:

What is the best way of sharing a single, changeable copy of common
information across multiple servlets?


Example Scenario:

Using two servlets (webdav and cocoon), I need to share common

information

between them.

There are two choices for how to host the servlets, each of which

affects

the options for sharing info:

- host the servlets in different contexts (a likely requirement
if security
constraints differ)

- host the servlets in the same context.


Then, within each servlet you could share the information through:
- singleton classes
 + pro: conceptually simple
 + con: singleton pattern isn't bulletproof
 + con: threading issues?
 + con: lifecyle issues (can't use servlet destroy() if have multiple
servlets)

What threading issues would you have that synchronization wouldn't cure? 
 It depends on the nature of your data/how volatile it is.  If it's 
especially volatile, the singleton could (conceivably - you'd have to 
test to see) become a bottleneck.  If most of your access is read-only, 
I don't see how this is an issue.  You have to sit down and take a look 
at who (and how many whos) can modify the data.  How many would (really) 
do it simultaneously?  I'd highly recommend synchronizing your mutators 
in either case.  The fewer people that have the ability to update, the 
less likely this will ever become a bottleneck.

- avalon roles
 + pro: convenient, correct lifecycle management
 + pro: using avalon in other apps (James) in same JVM could also
share info
 + con: poolable (e.g. multiple instances) and not the same as

singleton

Not familiar with them.

- context attributes
 + pro: conceptually simple, no singleton coding necessary
 + con: HTTP specific, information can't be shared with non TC app

(James)

 + con: can't share across contexts, all servlets must live in same

webapp

*nod* ... and?

- enterprise javabeans
 + pro: managed
 + con: requires J2EE server?

Ok, so use JBoss instead of TC (I think JBoss actually includes TC). 
 I'm not very familiar with this either.

1) Are there other options I'm missing?

How about keeping the data in a database and devising a cache mechanism 
that will refresh the cash at a user-defined interval?  You've just 
solved your concurrent updates problem, assuming you use a DMBS that 
thinks ACID is good (ie MySQL would not be my first choice --- 
PostgreSQL is a good open-source solution).

2) What have people found to be the best pattern?

I think that would depend entirely on your given application :-)  My 
general rule of thumb is to introduce no more complexity than I 
absolutely have to in order to acheive the required functionality.  For 
a small application, the singleton would (most likely) be fine.  For a 
large one, EJBs maybe (I'm totally unfamiliar with them, so I can't say 
with any authority).  I would probably, on a large-scale project 
requiring a lot of simultaneous updates of cached data, use a database.

3) Besides the servlet 2.3 reference docs and O'Reilly books, can

anyone

recommend reading material that includes these issues (most

introductory

books cover the same 'your first webapp' type of material).

Not off-hand -- nope.  Sorry :-(

Thanks in advance for your opinion,
Per

No problem -- that'll be $9.95, please.  Would you like fries with that? 
 Just kidding ... :-)  Maybe, if nothing else, I'll bump your post up 
and someone more authoritative will pipe up.

Regards,

Eddie



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




Re: Warp connector segfault

2002-09-04 Thread Eddie Bush

Suggestion:  If you're integrating TC/Apache, use mod_jk instead.
Suggestion:  Upgrade your Apache :-)  ... that's quite old!

Search the archive for notes on integrating TC/Apache via mod_jk -- if 
you can't find what you're looking for by looking for mod_jk  just 
search for John Turner.  He posts responses to this question quite 
frequently.

Regards,

Eddie

Zabel, Ian wrote:

Hello all,

We are trying to get Apache 1.3.12 working with Tomcat 4.0.4 and are using
the warp(1.2.0-dev, i think) connector. We are using solaris8, and Apache
and Tomcat are on different servers. But, whenever we try to connect to / or
/examples, we get segmentation faults in apache. Something's not right, and
we have been spent over a week trying to get Apache to work with Tomcat
using the warp connector. If we can't get this working in about a day or so,
we will probably be going for NewAtlanta's ServletExec. The boss doesn't
mind paying if he can get support, I guess... so, here's our config and the
errors we're seeing:




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




Re: Tomcat Apache Config

2002-09-04 Thread Eddie Bush

1)  Open your server.xml
2)  Locate the Connector element that says port='8080'
3)  Comment it out
4)  Restart tomcat (and Apache)

... do you get connection refused on 8080?  Good ... you did good ...

If TC is run stand-alone, you need the HTTP connector -- that's the one 
that knows how to be a web server.  If TC is run under a web server, it 
needs to know how to receive requests from the web server (that's what 
mod_jk does), but it does not need to know how to be a web-server itself 
-- so remove that functionality by removing (commenting out) the connector.

Regards,

Eddie

Ravindra K. Bhat wrote:

Hi:

Yes..I tested the intgration it works on both 80 and 8080...should it not?
if not how do I disable 8080?
Thanks ravi

On Wed, 4 Sep 2002, Tam, Michael wrote:

Hi John,

   Just a quick question about this integration.  Does it mean with the
integrated tomcat + apache, we would open 2 ports (80 + 8080) instead of
having port 80 only??  That would open up port 8080 to public to directly
reach tomcat wouldn't it??  

Regards,
Michael




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




Re: Container Based Security/Authentication and Forced Login/Logoff

2002-09-03 Thread Eddie Bush

Search the archive.  The short answers are below.

Andreas Schildbach wrote:

Hello!

I am using Container Based Security with the Tomcat 4.1.9 beta.
Current I have Form based Authentication configured.

I'd like to allow the user to authenticate before he tries to access a
resource that is protected by security contraints in web.xml.

So would we all!

== Is it possible for a Servlet/JSP to force authentication for a user
(maybe by calling a method)?

Nope.  There are work-arounds though, I believe.  One of them is JAAS.

I'd also like to offer a 'Logout' button to the user.

== Is it possible to remove the authentication other than telling the user
to close the browser?

Invalidate the session.  Note that the session will not show up as 
invalid until the next request.  In other words, don't forward from the 
logout, redirect from it.

Thanks,

Andreas

Regards,

Eddie



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




[Fwd: Your Report: JDK 1.4 lacks provides for: jaxp_parser_impl andxml-commons-apis]

2002-08-30 Thread Eddie Bush

  I posted on the JDC Installation board and also hit Bug Parade. Here's 
the auto-response for the feature request. I'm forwarding this because 
Henri Gomez expressed interest in what I did/found out and I figured 
others had interest too.

Regards,

Eddie

 Original Message 
Subject: Your Report: JDK 1.4 lacks provides for: jaxp_parser_impl and 
xml-commons-apis
Date: Fri, 30 Aug 2002 22:15:36 -0600 (MDT)
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]



 
Your report has been assigned an internal review ID of: 163867

This review ID is NOT visible on the Java Developer Connection (JDC).

We greatly appreciate your interest in improving the quality
of Java(tm) Technology from Sun Microsystems.

Please be aware that the large volume of reports we receive
sometimes prevents us from responding individually to each
message.

We currently have a three week response time for responding to
Bug Reports.  If the information is determined to be a new bug,
or a duplicate of a known bug, you will receive a followup email
containing a seven digit bug number.  You may search for this bug
number on the Java Developer Connection (JDC) at this URL:
http://developer.java.sun.com/developer/bugParade/index.html.

If you just reported an issue that could have a major
impact on your project and you require a response,
please consider purchasing one of the support offerings
at this URL:
http://java.sun.com/support/index.html

dateCreated: Fri Aug 30 22:06:36 MDT 2002
type: rfe
cust_name: Eddie Bush
cust_email: [EMAIL PROTECTED]
jdcid: ekbush
status: Waiting
category: java
subcategory: install
company: Bush Consulting
release: 1.4
hardware: x86
OSversion: Linux
priority: 4
synopsis: JDK 1.4 lacks provides for:  jaxp_parser_impl and xml-commons-apis
description: FULL PRODUCT VERSION :
java version 1.4.0_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)


FULL OPERATING SYSTEM VERSION :
  OS: RH Linux 7.3
  Kernel: 2.4.18-10


ADDITIONAL OPERATING SYSTEMS :
  Probably affects all platforms that use RPM installs.

A DESCRIPTION OF THE PROBLEM :
JDK 1.4 lacks provides for:  jaxp_parser_impl and
xml-commons-apis.

These are required to install TC 4.1.19.  I don't see any
reason to download/install additional bloat when this
functionality is already provided.  I, as well as many
others (I'm sure), would be most grateful for the provides
being added.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Install the above JDK via RPM
2.Install log4j via RPM
3.Install commons-logging via RPM
4.Attempt to install Tomcat 4.1.19 (beta 2) via RPM


EXPECTED VERSUS ACTUAL BEHAVIOR :
No dependency errors (other than commons-logging, which
obviously you shouldn't include in the JDK).

ERROR MESSAGES/STACK TRACES THAT OCCUR :
error: failed dependencies:
   jaxp_parser_impl is needed by tomcat4-4.1.9-le.1jpp
   xml-commons-apis is needed by tomcat4-4.1.9-le.1jpp


REPRODUCIBILITY :
This bug can be reproduced always.

-- BEGIN SOURCE --
This is an installation issue - not a my app is busted issue.
-- END SOURCE --

CUSTOMER WORKAROUND :
Install the necessary additional (unnecessary) RPMs.
workaround: 
comments: (company - Bush Consulting , email - [EMAIL PROTECTED])




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




Re: Best Connector for Apache 2x and Tomcat 4x

2002-08-30 Thread Eddie Bush

Try replacing libexec/mod_jk.so with modules/mod_jk.so.  The apache 
standard seems to use the libexec directory, but, if you look in 
/etc/httpd/conf, you'll see there is no such directory - there is, 
however, a modules directory (link) which gets you to where you want to be.

Regards,

Eddie

Ben Souther wrote:

John,

I've followed the directions in your howto and the two don't seem to be
connecting.
The only clue I can find is in the Catalina.out log:

mod_jk location: libexec/mod_jk.so
Make sure it is installed corectly or  set the config location
Using ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL /
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Starting service Tomcat-Apache
Apache Tomcat/4.0.4


Is this something you've run into before?

Thanks
-Ben




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




Re: admin page - username and password?

2002-08-30 Thread Eddie Bush

Go to http://localhost:8080/
Read the page

They were nice enough to tell you exactly what you need to know in order 
to get it going.

hugo wrote:

 Hi

 Perhaps the problem that I cannot execute any jsp files from a 
 projects directory (see previous email) I made under webapps in tomcat 
 stems from the fact that I have to add a new context for the projects 
 directory?

 But when I go to webapps/admin, I am asked for a administrator 
 username and password. This is rather frustrating as I was never asked 
 to supply one in the first place!

 Does anyone know the default username and password for the 
 administrator at the /webapps/admin pages?

 Help

 Thanks

 Hugo




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




RPM Upgrade from 4.0.4 - error: failed dependencies:

2002-08-21 Thread Eddie Bush

Hi, I was wondering if someone could tell me why the LE version has a 
dependency on jaxp/xml api/commons logging.  This is all functionality 
found in J2SDK 1.4 (hence the LE version), right?  My guess is that the 
packages contain better versions - is this correct?  My SDK install 
was via RPM as well.  I'm going to hold off on the upgrade until I get a 
signal that these dependencies are actually needed.  I don't mind adding 
commons logging and log4j, as I use them anyway, and like the idea of a 
RPM install.  However, the jaxp/xml api stuff has thrown me for a loop. 
 I really don't think any of these dependencies should exist.

error: failed dependencies:
jaxp_parser_impl is needed by tomcat4-4.1.9-le.1jpp
xml-commons-apis is needed by tomcat4-4.1.9-le.1jpp
jakarta-commons-logging = 1.0.1 is needed by tomcat4-4.1.9-le.1jpp

I know someone out there knows if these are true requirements, or if 
this is perhaps a misconfiguration in building the RPMs.  I would 
appreciate it if they would step forward and clearify this point for me. 
 :-)

I can't say how shocked I was to find RPMs for the beta to begin with. 
 I suppose kudos for that go out to Henri (and, I'm sure, many others as 
well).  I, for one, really appreciate it!

Thanks!

Eddie



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




Re: RPM Upgrade from 4.0.4 - error: failed dependencies:

2002-08-21 Thread Eddie Bush

(tumbleweed blows by in the wind ...)

Could someone please fill me in regarding this?  I'm still looking for 
the answer, but haven't found it yet.  Obviously, I could just 
download/install the RPMs, but I don't see why I should have to install 
the same sun-provided packages twice.  What implications does this imply 
wrt my SDK install?

Thanks!

Eddie

Eddie Bush wrote:

 Hi, I was wondering if someone could tell me why the LE version has a 
 dependency on jaxp/xml api/commons logging.  This is all functionality 
 found in J2SDK 1.4 (hence the LE version), right?  My guess is that 
 the packages contain better versions - is this correct?  My SDK 
 install was via RPM as well.  I'm going to hold off on the upgrade 
 until I get a signal that these dependencies are actually needed.  I 
 don't mind adding commons logging and log4j, as I use them anyway, and 
 like the idea of a RPM install.  However, the jaxp/xml api stuff has 
 thrown me for a loop. I really don't think any of these dependencies 
 should exist.

 error: failed dependencies:
jaxp_parser_impl is needed by tomcat4-4.1.9-le.1jpp
xml-commons-apis is needed by tomcat4-4.1.9-le.1jpp
jakarta-commons-logging = 1.0.1 is needed by 
 tomcat4-4.1.9-le.1jpp

 I know someone out there knows if these are true requirements, or if 
 this is perhaps a misconfiguration in building the RPMs.  I would 
 appreciate it if they would step forward and clearify this point for 
 me. :-)

 I can't say how shocked I was to find RPMs for the beta to begin with. 
 I suppose kudos for that go out to Henri (and, I'm sure, many others 
 as well).  I, for one, really appreciate it!

 Thanks!

 Eddie



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




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




Re: running Tomcat as a service/daemon on Linux

2002-07-27 Thread Eddie Bush

I don't know what your OS is, but I installed via RPM and I have a 
script in /etc/rc.d/init.d named tomcat4.  No, it's not as handy as 
service tomcat4 start, but it works :-)  I typically wind up doing 
something like !?4 rest? anyway :-P (which grabs the last restart out of 
my history and executes it).  That's even shorter than service tomcat4 
restart :-D

Chris Ruegger wrote:

Is it possible to set up Tomcat on a Linux
machine such that I can start it/stop with the 
service command, i.e.

service tomcat start
service tomcat stop

If so, how would one do this? Do most people set up
Tomcat as a daemon on Unix machines? If so,
tips on how this is done appreciated!!





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




Re: does mod_jk work with https?

2002-07-27 Thread Eddie Bush

I'm pretty sure you can do this.  I haven't made it there yet - I've 
changed gears back to working on my app.  What you're looking for is ... 
in the TC 3.3 docs, but I don't have the URL handy.  I *believe* Apache 
will handle the encoding/decoding and Tomcat will talk clear-text... 
which is what you want.

I set up all of my http/https stuff in the same file.  If someone had 
two files, it would indicate to me that they are probably running two 
seperate installations of Apache.  I'm not expert on this though, so 
don't quote me.  Last I knew you could just give Apache one config file 
though.

... just use virtual hosts and specify your port:

NameVirtualHost 127.0.0.1

VirtualHost 127.0.0.1 # Default port
...
/VirtualHost

VirtualHost 127.0.0.1:443 # SSL port
/VirtualHost

You'll need to configure mod_ssl (or whatever you use) to pass the 
environment variables I believe, and tell mod_jk what those variables 
are.  You will find how to do this in the TC 3.3 docs for mod_jk.  My 
suggestion to you would be to walk the 3.3 tree (act like you were going 
to download a distro for 3.3 or whatever and then just walk the 
heirarchy to find the connector stuff) and find a distro with the docs. 
 That should give you a good start.

If you're just starting on this, and haven't been able to figure out how 
to configure TC + Apache (sounds like you have, but just to be safe) you 
may want to check out ubeans.com/tomcat  Come to think of it, that may 
shed some light on your SSL woes too.  I need to go check it out again 
sometime.  I don't recall that being there.

HTH,

Eddie

Chris Ruegger wrote:

Situation
Red Hat Linux 7.2
Apache 1.3.20
Tomcat 4.0.4

All works well under http. I can connect to Apache, and I get forwarded to Tomcat 
properly.
However, when I access the site through https, I get the Apache Test Page.

1. Does mod_jk work with https/SSL? If so, does it forward to Tomcat via https or 
http?
I'd like to rig things so Apache forwards to Tomcat via http
2. What is the httpsd.conf file? I've seen references to it. Doesnt Apache do
all of its configuration in httpd.conf only for both http and https?

Any tips/pointers/documentation regarding this appreciated.





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




Re: I cannot access my site over https

2002-07-27 Thread Eddie Bush

sounds like an allow/deny problem.  I don't know a great deal about 
setting this up, but it's nearly got to be your problem.  I believe what 
you want, in your virtual host is soemthing like:

Order allow, deny
Allow from all

I actually found mine in the Directory specifier just now - was 
thinking that was valid in the context of a virtual host too, but I'm 
not certain off-hand.  Check the Apache docs - they know ;-)
It sounds like you're only allowing request local to you to be served. 
 This mechanism (I believe) is what is holding you back.

HTH,

Eddie

Serdar BOZDA wrote:

Hi,
I installed SSL on my apache tomcat 4.0.4 web server and I was able to access the 
site over https. But now I cannot access.

Some changes are done to the machine and web server. For instance iPlanet is 
installed and as a second change there are two hosts on tomcat...

I can access the secure page on the local machine (not https://localhost, but 
https://www.sth.com) but the same url (https://www.sth.com) does not displayed when 
called from another machine.

What may be the reasons ,
thanks in advance,
serdar




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




Re: Mod_jk2 and j_security_check

2002-07-27 Thread Eddie Bush

I haven't tried j_security_check outside the root context (ie. I've not 
run an app in a context /context/ but /), but I've never had to specify 
anything in my forms other than action=j_security_check - and it 
always hits it.  I ... don't think you need to map it.  I could, of 
course, be totally wrong :-)

Andrew Conrad wrote:

When configuring TC 4.1.8 to work with mod_jk2.dll (jul-19 nightly), I
ran into an odd configuration issue with j_security_check.

When using extension mapping, the only way to get j_security_check to be
sent to Tomcat was to make a directory redirect for it.

snip

[uri:/TimeOff/*.jsp]
alias=localhost
info=default context
context=/TimeOff/*.jsp
debug=10

[uri:/TimeOff/j_security_check/*]
alias=localhost
info=default context
context=/TimeOff/j_security_check
debug=10

/snip

Does anyone know if this is how it's supposed to work?  I tried a couple
different scenario's that didn't work. 

[uri:/TimeOff/j_security_check]  // This did nothing whatsoever from
what I can tell

[uri:/TimeOff/j_security_check.do] //with a servlet-mapping in my
web-app, but that didn't work because j_security_check isn't a servlet
in my web-app.  It must get peeled off before the request makes it into
the servlet container.  


If anyone know's a better way of handling this, please let me know.
This redirect actually works for servlets too, if you wanted to specify
each servlet individually.



- Andrew

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




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




Re: Changing servlet context path with mod_jk2 and Apache

2002-07-27 Thread Eddie Bush

You shouldn't have to give it a fake extension I don't think.  the 
web.xml would be the ideal place to map it though.  I've done mappings 
such as just mapping the class name to /, as in:

servlet-mapping
servlet-nametheName/servlet-name
url-pattern/theName/url-pattern
/servlet-mapping

... and it worked just fine.

Charles N. Harvey III wrote:

Andris,
You will have to map *.something instead of the whole path.

I haven't looked at mod_jk2 but I am guessing it will be something like
this:

Location /*.jspJkUriSet worker ajp13/Location

Now, to map servlets you will either have to specify each of them by
name.

Location /myservletJkUriSet worker ajp13/Location
Location /myservlet2JkUriSet worker ajp13/Location

Or give them a fake extension:

Location /*.servletJkUriSet worker ajp13/Location

Then, in your web.xml change the servlet-mapping to something like:
servlet-mapping
   servlet-namemyservlet/servlet-name
   url-pattern/myservlet.servlet/url-pattern
/servlet-mapping
servlet-mapping
   servlet-namemyservlet2/servlet-name
   url-pattern/myservlet2.servlet/url-pattern
/servlet-mapping


Make sense?  I think choice two is much easier since you do not have
to keep changing your mappings in Apache.  But you decide for yourself.


Charile




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




Re: Invalid command 'JkMount'?!? Help!!

2002-07-25 Thread Eddie Bush

ubeans.com/tomcat - I'm running TC 4.0.4, but other than that I think 
we're near identical.  Look at that page and see if it doesn't cure 
your ills.

Regards,

Eddie


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




Re: mod_jk problem

2002-07-25 Thread Eddie Bush

Check out ubeans.com/tomcat - compare what you have with what they have. 
 Your versions are close enough you should be able to detect the problem 
by doing that.

Andrew wrote:

Hi,

I'm installing mod_jk for apache1.3.24 and tomcat4.0.4.  I received the
following error under mod_jk.log when I try to access the JSP examples
without going through port 8080.

[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1013)]: Error reading reply
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1150)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 0
[Thu Jul 25 13:12:13 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Thu Jul 25 13:12:13 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (844)]: Error connecting to the
Tomcat process.
[Thu Jul 25 13:12:13 2002]  [jk_ajp_common.c (1153)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2


Any clue?

Andrew


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




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




Re: mod_jk problem

2002-07-25 Thread Eddie Bush

Oh, dang :-/  Sorry, but - that's how I went about it.  I finally got 
mine knocked together enough I could continue development of my app - 
and that's what I've been doing.  I haven't had an opportunity yet to 
dig into any particulars.  Hopefully someone that knows more will 
respond - but I wouldn't hold my breath.  Questions of this sort don't 
seem to get answered as often as they should - at least, they didn't 
when I was asking them.

... maybe try to compile your own copy of mod_jk.so - that'd be my best 
guess on what the difference is.  I can't see why config should change 
over OS platform, but I honestly do not know.

Best Luck! (I mean that)

Eddie

Andrew wrote:

sorry I have checked out www.ubeans.com/tomcat but it doesn't seem to help
much.  The same configuration works on Redhat Linux but not on my solaris
box.




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




Re: apache 1.3.26 and tomcat 4.0.4

2002-07-25 Thread Eddie Bush

*sigh* do you people ever search the archives?

ubeans.com/tomcat - I hear it doesn't work too hot on Solaris though.

Mark Horton wrote:

 I'm currently running apache 1.3.26 and tomcat 3.3.1 with mod_jk.  I 
 would like to upgrade to tomcat 4.0.4.  From what I have read I should 
 still be able to use the existing mod_jk binary.  If this is correct, 
 then all I need to do is configure Tomcat 4.0.4 to integrate with 
 apache.  I can sucessfully bring up tomcat 4.0.4 but the apache 
 integration doesn't work.

 What config files do I need to change in order to properly config 
 tomcat 4.0.4 to work with apache?

 Thanks for any help.

 Mark




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




Re: mod_webapp.so

2002-07-18 Thread Eddie Bush

You know, and I realize the devs are kind of busy, I think if they would 
just incorporate the level of detail and completeness in the more recent 
docs that existed in the 3.x series of TC, a lot of questions wouldn't 
have to be asked.  I find myself wondering, quite honestly, why the TC 
3.x docs explained things so well, and yet the 4.x docs seem quite terse 
in comparison.

You know what would be cool?  ... if a link repository were set up 
that would allow us to submit our own I found this useful sites.  It 
could allow a person to submit a link - and allow other people to rate 
the link according to how useful they found it.  The original poster 
could add a small amount of commentary about his TC/Apache version, and 
his implementation.  Then, newcomers could discern rather quickly where 
to go find the information they need - or if it's even available. 
 Questions would change from, Where do I get ... and How do I ... to 
Has this really not been done yet, or is it just not in the repository 
yet?

Personally, I think that linking 4.x docs to 3.x docs would help a lot. 
 It's anything but obvious you should have to go through the 3.x docs to 
learn to set up 4.x :-)  If, however, they were at least mentioned in 
the 4.0 docs, and maybe linked to, it would be much more easily understood.

Just a thought ;-)

Eddie

Turner, John wrote:

Man, this list needs a FAQ, bad.

HOWTO: http://www.galatea.com/flashguides/index

There are many other docs that explain how to connect the two, the URL above
is just one of them.

If you are using apache, there is no benefit to using mod_webapp (WARP).
The current mod_webapp connector sends ALL requests to tomcat...in that
scenario, apache does nothing but add a layer. You would be fine just using
tomcat standalone on port 80 in that scenario.  If you want apache to serve
static content, and tomcat to serve servlet and JSP content, then you should
use mod_jk (at this time):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

John Turner
[EMAIL PROTECTED]




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




Re: newbie has mod_jk question

2002-07-18 Thread Eddie Bush

ubeans.com/tomcat

I understand you can use mod_jk with Apache2 just fine ...

Billingham, Walter 475 wrote:

Hey,

   I guess the next logical question is who has actually compiled
mod_jk.so for Apache2 and Tomcat 4.x.x and has gotten (mod_jk2)
mod_jwhatever and AJP 1.x working and will he share the wealth of his
endeavors?


Unix has its weak points but its file system is not one of them.

- Chris Torek




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




Re: getRemoteHost(): how to get the fully qualified name?

2002-07-18 Thread Eddie Bush

Couldn't you exec a whois and parse it?  Yeah, it probably wouldn't be 
the prettiest thing you ever saw, and you just blew you 
platform-independence, but if the functionality is that key, it may be 
your only option.

Cunningham Emmett wrote:

There was an interface that was sorta usable from
a programmatic standpoint. It was closed due to 
abuse. 

There are companies that sell a survey of
the web relative to IP addresses and hostnames.
I think that one of the products that Paul Vixies
company sells has this, or did a few years ago anyway.

Sorry that I can't recall more details. It's been 
a while.




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




Re: twice....

2002-07-17 Thread Eddie Bush

It happens to me all the time :-/  I'm not sure what it is.  Since I 
have also seen this behavior exhibited from non-mailing-list mail 
(thought much less frequently), I tend to blame my provider.

James, Stuart wrote:

anyone now why my messages appear in the list twice?

( apologies if its only me ).




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




Re: web.xml DTD and welcome files

2002-07-17 Thread Eddie Bush

Forte will edit that for you.  Are you having problems with the entry 
generated by Forte?  My suggestion would be to remove the 
welcome-file-list section (assuming you put it there by hand) and then 
use Forte to re-enter it.  How do I do that?, you may ask.  Well, it's 
quite simple :-)

Click on your web.xml file to make it the active node in your Explorer.
Go look at your property sheet for it.  You'll see a section named 
Welcome Files.
You can change what it has there by either editing it directly or 
clicking the elipses (they'll appear after you click on the value) and 
using the property editor that pops up.

HTH,

Eddie

Turner, John wrote:

Hi -

I just tried adding a welcome-file element to my web.xml, but I am getting
an error message from the IDE (I am using Sun's Forte) that says element
web-app does not allow welcome-file-list here.

The DTD I have is http://java.sun.com/dtd/web-app_2_3.dtd  It definitely
does allow welcome-file-list inside of web-app, as far as I can tell.

Do I have the right DTD?  I used the web.xml from the examples directory as
the starting point for my own web.xml.  Where does the welcome-file entry go
inside of web.xml?

Thanks in advance for help and suggestions.

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


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




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




Re: Please recommend book or Other Help

2002-07-17 Thread Eddie Bush

What is your problem with the JDBCRealm?  I have that going fine.  One 
thing to note, you probably don't want to append your username/password 
to the url.  Instead, use connectionName and connectionPassword to 
specify them.  That was the only real issue I faced in getting it to work.

Regards,

Eddie

The Kelley's wrote:

I'm having problems with JDBCRealms and JDBCStore in Tomcat.
They seem buggy to me. Any expert help would be great.
I good book would be even better.
I already have James Goodwill's Apache Jakarta Tomcat book

Thanks
Tim


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




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




Re: Problem with Load Balancing using mod_jk and session affinity.

2002-07-17 Thread Eddie Bush

I believe (and I could be wrong) that you need to specify the _worker 
name_ for jvmRoute.  ubeans.com/tomcat - they do it.  He tested it and 
claims he has it working fine.  Check it out.

Regards,

Eddie

Robert Chartier wrote:

Hi,

I've successfully installed and configured apache and 2 tomcats using mod_jk.  

Unfortunately the load balancing works without session affinity between my 2 tomcat 
instances.  I discovered the issue by calling the following link: 
/examples/servlet/SessionExample.  I keep getting switch between my 2 tomcat 
instances.

I know that my jvmRoute attribute is properly set as I see it appended on the 
generated session id.  Can some help me in figuring out what I am missing.  I know I 
am pretty close to have a working setup!

The only odd thing about my setup is that there is a firewall between apache and 
tomact:
OS on all machine: Linux
WebServer: apache v1.3.26
Java: Sun v1.3.1_01
Tomcat: v4.0.2

The following is all my configuration files used in my current setup and a portion of 
mod_jk.log related to my http requests.

Thanks, I remain.

Robert Chartier




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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-16 Thread Eddie Bush

I haven't been able to get that functionality to work myself :-(  I 
think that's a long-standing TC bug you're running into.  Someone said 
it would expand it when you created a folder for it, but I haven't even 
seen that.  I'm glad you have webapps now thought ;-)

Regards,

Eddie

Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:

Subject: Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: Matt Raible [EMAIL PROTECTED]
 ===
Eddie,

I got the webapps RPM and sure nough - all the examples work now.  However,
I dropped struts-example.war into the webapps directory, and it doesn't get
expanded.  The server.xml looks fine like it should expand wars by default.

Any ideas?

Thanks,

Matt




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




Re: Apache-Tomcat Howto?

2002-07-16 Thread Eddie Bush

Also check out ubeans.com/tomcat

If you want Apache to do static content, you don't want to use the 
HTTP/webapp connectors.  the HTTP connector is really for stand-alone 
operation.  While webapp may eventually be the best solution, it 
currently doesn't allow Apache to handle static content.  I highly 
recommend going with mod_jk.

Regards,

EB

Turner, John wrote:

There are really only 2 ways: AJP and WARP.  If you want apache to serve
static content, than there is only 1 way at this time, as far as I know:
AJP.

You will want mod_jk as your connector.  You could try mod_jk2, but mod_jk
seems to be the most stable right now.

Depending on your choice of versions (you will want apache 2.0.39 if you are
going with apache 2), this link might help:
http://www.galatea.com/flashguides/index

John Turner
[EMAIL PROTECTED]
http://www.aas.com




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




Re: Problems with the mod_jk module

2002-07-16 Thread Eddie Bush

I'm not 100% sure, but, seeing as how you're running Apache2, it could 
be that you will have to compile.  Also, another point to make, I had 
problems at some point with my libc version - but I'm almost certain 
this is when I was running 6.2.  7.3 (although it has some slight 
annoyances :-/) seems to run TC/Apache fine - and the provided modules 
you speak of seem to work fine.

Regards,

Eddie

Sigurður Bjarnason wrote:

Hi there 

I am having the same proble.. have you had any help yet ??
if so .. could you be so kind to share ..

Best Regards
Siggi


-Original Message-
From: José Juan Rodríguez [mailto:[EMAIL PROTECTED]]
Sent: 16. júlí 2002 11:52
To: [EMAIL PROTECTED]
Subject: Problems with the mod_jk module


Hi,

I'm trying to configure Apache 2.0.39 with Jakarta-Tomcat-4.0.4 in a Red
Hat 7.0 linux. So, I've tried to do it with the connectors in:


http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/linux/i386/

because the documentation says:

linux/i386/Contains mod_jk.so for Apache 1.3 for the standard API as
well as EAPI and mod_jk.so for Apache 2.0

but when I try to start the apache, I get the next message:

Syntax error on line 6 of /opt/apache-2.0.39/conf/mod_jk.conf:
Cannot load /opt/apache-2.0.39/modules/mod_jk.so into server: undefined
symbol: ap_table_get

Can anybody help me??

Thanks!!

---
José Juan Rodríguez
Sinergia Tecnológica
Tlf:  968 270624  Fax: 968 231501
[EMAIL PROTECTED]




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




Re: jsp client to server text file uploads

2002-07-16 Thread Eddie Bush

http://jakarta.apache.org/struts

Dr. Edward R. Jones wrote:

Hi,

The jsp code FileInputStream fiStream = new FileInputStream(path); causes 
the jsp server (tomcat 4.0.2) to look for the file on the server rather 
than on the client machine.

Does anyone have a suggestion or example of how to get a text file 
uploaded to the server for processing using jsp/servlets?

Thanks - edwardJones




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




Re: Webapplication directory

2002-07-16 Thread Eddie Bush

ubeans.com/tomcat - two installs on one box.  That assumes you're using 
mod_jk.

GL,

Eddie

Ashish Kulkarni wrote:

Hi,
I have just installed tomcat4.0.4, and i have to
deploy a new application.
so do i have to create a new folder say maps in 
c:\tomcat4.0.4\webapps\maps, and then create WEB-INF
etc in it, or i can create it any where on my C drive
and give the path in server.xml file,
what is the best wayof doing it??
also I have to run one production server and other
development server on the same machine, so how can i
run 2 instance of tomcat on my mahine, listening to 2
different ports say 8080, and 8081.
i am using apache webserver 2.0.39 and tomcat 4.0.4 ,
and i have connected apache with tomcat.

Ashish

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




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




Re: Problems with the mod_jk module

2002-07-16 Thread Eddie Bush

Well, if you go to the 4.0.4 release, and scroll down, down, down, 
you'll find Henri went to the trouble of telling you.  Don't scan it, 
you'll miss it :-P Read it ... deliberately.  You can't help but know 
from what he has written there.

GL,

Eddie

Sigurður Bjarnason wrote:

can someone tell me.. what is critical in installing apache with Tomcat that is what 
rpms have to be installed. ?

the name of the rpms .. and so on !

Best Regards
Siggi




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




Re: Moving from 4.0.1 to 4.0.4 breaks log4j?

2002-07-16 Thread Eddie Bush

I think log4j really dislikes having multiples of it's jars available. 
 You might run it past the guys on log4j-user, but I seem to recall 
something along those lines going through the list 3-7 days or so ago. 
 In other words, you're probably right on the money. ;-)

Regards,

Eddie

Shapira, Yoav wrote:

Hi everyone,
I have an application using log4j that works fine in 4.0.1.  It
generates a log file in the /MyApp/WEB-INF/logs directory.  I have
log4j-1.2.5.jar in /MyApp/WEB-INF/lib.

I downloaded tomcat 4.0.4 LE, running it with JDK 1.4.0 on Solaris.
Same log4j jar in /MyApp/WEB-INF/lib, same log4j configuration file.
MyApp runs fine, and I see no errors in any of the tomcat logs.
However, the log4j log file is not created at all.  

I have hunch this may have to do with commons-logging that's present in
4.0.4 but not in 4.0.1.  Am I on the right track?  Does anyone have an
idea what's causing the behavior above?  All help / ideas are
appreciated,

Yoav Shapira
Millennium ChemInformatics



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




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




Re: Bug in tomcat 3.2.3

2002-07-16 Thread Eddie Bush

Before I reinstalled (assuming you haven't messed with any of the 
server-specific non-configurable file names etc) I think I'd try 
wiping out the work directory.

smashingwebs wrote:

Hi, my version of tomcat (3.2.3) has crashed. I am using it with
Win 98.

The problem is I get the following error message when trying to access
a page within a directory:

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSP

Root Cause:

java.lang.NullPointerException
  at org.apache.jasper.compiler.JspCompiler.getClassName(JspCompiler.java:151)


All this started when I tried to access a jsp page that called for a bean class that
I forgot to add. When I added the bean and tried to re-run it, It said that it couldnt
find that page even though I know the page was there and in the correct directory.
The funny thing is that it wouldnt find that page no matter what I named the file.
The only time it would find the page is when I removed ALL the code on that 
page and replaced it with TEST. Then it decided to not find ANY of the pages
in that directory and now gives me the above error.  

Does anyone know what the problem is? Is it fixable or should I try erase and 
reinstall
tomcat? Please help...

Regards, Brennan

P.S. Tomcat works ok when I try to look at files in other directories such as
the number guessing game it came with...




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




Re: another quiestion

2002-07-16 Thread Eddie Bush

I'm not answering this question anymore.  Everyone should have this down 
pat before they post here.  Either search the recent mailing list 
archives, STFW (google.com), or go buy a book and cuddle up by the fire 
with it.  Two books I would highly recommend to you are:

Java Server Pages:  Hans Bergsten
Java Servlet Programming:  Jason Hunter

Both are from O'Reilly.

Of course, you could always run by java.sun.com and dig out a copy of 
the specification governing this, if you don't want to buy a book or 
search google.

Enjoy,

Eddie

Mario Henley Becerril Geldis wrote:




   WEB-INF directory will be create under ../webapps/examples, that
right..??? if i have this code in ../examples/jsps/example1.jsp:


  %@ page import = IEEMBeans.HtmlWriterBean %
  %@ page import = IEEMBeans.FunctionsBean %

   under ../examples/WEB-INF/classes/i will be create a directory
IEEMBeans,
for load this classes..?? it's ../examples/WEB-INF/classes/...contains the
HtmlWriterBean and FunctionsBean ...???

:-(
   






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




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




Re: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages

2002-07-15 Thread Eddie Bush

LOL - I use it fine - no problems.  Of course, I'm using the LE version 
- I don't think it would make a difference though.  I'm sorry I didn't 
see either of your postings before now.

To get the webapps you need the webapps RPM :-P  It's right there in the 
same directory as the other RPMs.  Go look again ;-)  If you don't find 
it, post back here and I'll email it to you.  How is that?

Regards,

Eddie

Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:

Jakarta Tomcat Newsgroup (@Basebeans.com) wrote:

Subject: Installing Tomcat 4.0.4 on Red Hat 7.3 with RPM packages
From: Matt Raible [EMAIL PROTECTED]
 ===
I downloaded tomcat4-4.0.4-full.2jpp.noarch.rpm from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/

And I've installed it and can successfully start it.  However, when I got to
view a page (basically, the ROOT context), I get the following error:

Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process
this request




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




Re: mod_jk for Linux (Tomcat 4.0.4/Apache 1.3.26)

2002-07-15 Thread Eddie Bush

That is a good site!  Thanks for posting it! :-)

Schaffernoth, Thomas wrote:

http://www.galatea.com/flashguides/index




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




mod_jk option explainations - if you'd be so kind

2002-07-15 Thread Eddie Bush

Hi, could someone tell me the function of the following, please?

JkExtractSSL On
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT

Is this the magic one needs to cause mod_jk to redirect http to https?

Is there, anywhere, a _definitive_ list of all of the options you may 
use for mod_jk, and their associated meaning?  Please, I'd really like 
to know.

Thanks,

Eddie



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




Re: Coyote, JK and JK2

2002-07-15 Thread Eddie Bush

My (probably poor) understanding is that Coyote is the newest and best 
Http connector.  It's my understanding this would be your best choice 
for a stand-alone Tomcat installation, if you're running Tomcat 4.1.x. 
 So far as the *_jk connectors go, I further have the impression that 
mod_jk is the more solid, robust choice - mod_jk2 has come about to 
address Apache2, and is (I believe) a new code-base.  Probably you want 
to be using mod_jk.  I use mod_jk successfully with Apache 1.3.23.

You can find mod_jk.so (or mod_jk.dll) in the Tomcat 3.3 distribution 
tree.  AFAIK these DSOs will fully and correctly support whatever you 
want to do.  That's where I got mine from, and it works fine from what I 
can tell.  You could always build them from source.  If you choose to do 
that, search the distribution heirarchy thoroughly.  They are a bit 
scattered, to put it quite plainly.  You will find them though ;-)

Regards,

Eddie

Sankaranarayanan (Ganesh) Ganapathy wrote:

Hi All,

How does JK2 differ JK. If I want to set up tomcat4.0.3 against apache1.3.26 which 
one should I be using?

How are coyote connectors different from the JK connectors ? Can somebody explain?

Also I see that none of the release version of JK connectors are available at 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/. Is there someplace else 
I should look for ? or is the only option is to build them from source?

For tomcat4.0.3 atleast the win32 and solaris8 JK binaries were available. I dont 
find them for tomcat4.0.4 , am I missing something here?

Any help will be greatly appreciated!

Thanx in advance,
Ganesh







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




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




Re: FW: Directory Index

2002-07-15 Thread Eddie Bush

It's called a welcome file in the JSP/Servlet world.  Find a reference 
for the application deployment descriptor (web.xml) and look for 
welcome-file-list and welcome-file.  I'd start on www.google.com.

Regards,

Eddie

Jaque Sara wrote:


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 13, 2002 4:07 AM
To: [EMAIL PROTECTED]
Subject: Directory Index


I know that in Tomcat I can map servlets to the path / and that in Apache
I can set certain files to be directory indexes; however, I do not know
how to map a JSP to the path /. Can anyone help? How do I map JSPs to the
path / or set them as directory indexes?

Thanks,

Jack

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


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




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




Re: Proxy server options for SSL from Apache to Tomcat

2002-07-15 Thread Eddie Bush

I know absoluely nothing about your proxy stuff, but I hear mod_jk 
should work just fine with TC located on a seperate machine from apache. 
 You may be interested in ubeans.com/tomcat.  While he sets both of his 
up locally, he indicates what would have to be done to put (one) TC on 
another machine.  The same principal would apply, I think.

HTH,

Eddie

Brett G. Palmer wrote:

We have been using an Apache/Tomcat on the same machine configuration in
production for several months now.  We are starting to roll out more J2EE
components that work best with the servlet container and the J2EE container
on the same machine.  This means we would like to leave Apache at the front
of our configuration and move Tomcat/JBoss to an application server inside
the firewall.  We are currently having problems getting the proxy server on
Apache to work with SSL and Tomcat.  Does anyone have suggestions for
setting up this kind of configuration?  Can you still use a mod_jk
configuration for communication across servers or does mod_jk only work when
the servers are running on the same machine?

Thanks for your help,

Brett



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




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




Re: error message: 'user tomcat4 does not exist'

2002-07-14 Thread Eddie Bush

Oh no!  You don't want to do that!  Then (if there is some vulnerability 
in Tomcat) a malicious user could do whatever they want to!

Don't do this on a production box!  Don't do this on any box that 
has any importance at all - ie information you don't want hosed!

[EMAIL PROTECTED] wrote:

snip
Tomcat4 was running well on my Linux PC untl I reinstalled mod_perl and tried to
install Apache.

Now when I login as su (root) and type the command:
/etc/rc.d/init.d/tomcat4 start

I get the message:
Starting tomcat4: chown: 'tomcat4:tomcat4': invalid user
chown: 'tomcat4:tomcat4': invalid user
chown: 'tomcat4:tomcat4': invalid user
chown: 'tomcat4:tomcat4': invalid user
su: user tomcat4 does not exist


This command has worked fine until I messed with mod_perl.  

Any assistance on how to fix this and get the user tomcat4 back would be greatly
appreciated.  

Please note the file tomcat4 exists in the directory /etc/rc.d/init.d/

snip


In case anyone is interested, I fixed this by editing
etc/tomcat4/conf/tomcat4.conf .  In this file, I changed:
TOMCAT_USER=tomcat4
to
TOMCAT_USER=root










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




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




Re: deny to access the static context

2002-07-14 Thread Eddie Bush

Assuming Apache handles your static content (ie TC + Apache + mod_jk) 
that's an Apache configuration question.  ... but it's really hard to 
know what your options are unless you actually tell us what your 
configuration is (what, precisely, are you using to serve those files?).

Serdar BOZDAG wrote:

hi,
i want to deny the access a folder under the static contexts (webapps\ROOT\Melodies 
for insance)

when entered http://www.xx.com/Melodies, I do not want to show the content of 
this folder.
is it possible?
thanks
serdar




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




Re: deny to access the static context

2002-07-14 Thread Eddie Bush

Do you have an index (from your web.xml welcome-file-list) page in the 
directory Meodies?  It sounds like you do not.  That would be required. 
 Not only do you need to have the index, but you also need to have it 
specified in the welcome-file-list section of your web.xml.

Serdar BOZDAG wrote:

I am giving detailed information about my server and paraphrase my question:

I am using tomcat standalone as server.  (version 4.0.4)

when a user enters http:\\www..com/Melodies\melody1.au it can listen but
http:\\www..com\Melodies s/he will not avble to see all my melodies.

thanks in advance...
serdar




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




Re: deny to access the static context

2002-07-14 Thread Eddie Bush

Ok - a few basics.  You want, for each application, the same basic 
skeleton - I'll use my-app as a generic application name

$TOMCAT_HOME/webapps/my-app -- AKA - the Root Directory for this 
application.  This is where your HTML, JSP files go -- as well as any 
other direcories you want.
my-app/WEB-INF -- this directory is not accessible to people on the web, 
but contains important config data about your app.
my-app/WEB-INF/classes -- any compiled classes you have - servlets, etc 
go here.  Be sure you have your package structure reflected here.  By 
that, I mean:

package com.myapp;

would require the following directories to exist:

my-app/WEB-INF/classes/com/myapp

... and any classes you have defined in that package would go in that 
directory (the .class files)

If you have any jar files (third-party jars -- or even jars you've 
made), you'll also want:

my-app/WEB-INF/lib -- place your jar files here (recommend creating the 
directory even if you have none - I heard someone having problems when 
it wasn't there)

Most of your application-centered configuration options can be placed in 
a file name web.xml (the application deployment descriptor) located 
under my-app/WEB-INF.  If you are not familiar with the format of this 
file (it's structure is checked against a DTD, so it must match the spec 
or ... you won't get the behavior you desire), there are many places you 
can look.  Personally, I have a copy of Java Servlet Programming I keep 
handy - as well as Java Server Pages -- both of which are O'Reilly 
books.  They are quite good.  I recommend them to you.  You can find a 
great deal of information on the format of the config files, as well as 
a wealth of other information, by reading them.

For your current problem, I suggest you do the following:

In your web.xml file, place the following:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list
/web-app

Either consult the books I mentioned above for additional details, or 
look on the web.  The Tomcat site has some good starter information on 
it.  You might start there.

Good Luck,

Eddie

Serdar BOZDAG wrote:

i think i don't. i am new at this tomcat staff could you give more precise
information about this index file and by the way i have another question
about opening a new port (85 for instance) for another application. what
changes will i do in the configuration. (please give example)

thanks
serdar
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, July 14, 2002 11:02 PM
Subject: Re: deny to access the static context

Do you have an index (from your web.xml welcome-file-list) page in the
directory Meodies?  It sounds like you do not.  That would be required.
 Not only do you need to have the index, but you also need to have it
specified in the welcome-file-list section of your web.xml.




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




Re: setenv.sh

2002-07-14 Thread Eddie Bush

I have none in mine either (TC 4.0.4).  It seems to run fine though :-) 
 Why is it needed?  ... seriously.

Johnny wrote:

To all Tomcat users,

In my Linux machine, it doesn't have the setenv.sh inside $TOMCAT/bin
directory. How can I set up setenv.sh inside Tomcat? Is there any online
reference site which I can refer to?

Regards,
Johnny.




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




Re: Multiple Instances of Tomcat 4.0.4

2002-07-13 Thread Eddie Bush

ubeans.com/tomcat - try that.

I haven't personally done this, so I can't help you.  The above assumes 
you're using Apache.  Hopefully someone else will respond that knows more.

Regards,

Eddie

Vijay Kandy wrote:

Hello All,

When I try to run %CATALINA_HOME%\bin\catalina start -f
%CATALINA_HOME%\conf\server1.xml for different server.xml's I get this
message:
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [
-debug
 ] [ -nonaming ] { start | stop }

From the docs, I made copies of Tomcat folder and added the paths to
CATALINA_BASE. Doesnt seem to work either. Can some one point me in the
right direction please? Is there a good documentation?

Thank you,
Vijay

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




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




Re: What happened to the mod webapp binaries?

2002-07-12 Thread Eddie Bush

If you're integrating with Apache, you probably want mod_jk anyway. 
 mod_webapp will not let Apache serve static content - mod_jk will.  I 
can't think of any reason to use Tomcat + Apache except for having 
Apache serve the static content - so you might want to reconsider which 
connector you're trying to use.

Regards,

Eddie

Ian McFarland wrote:

 Hello,

 I'm trying to do a new install with Apache, and lo, I can't find the 
 webapp connector binaries anywhere. All the bin directories are empty, 
 and the release directory has apr in it, which unless they added 
 mod_webapp functionality to the Apache Portable Runtime, isn't what I 
 want.

 (see http://jakarta.apache.org/builds/jakarta-tomcat-
 connectors/webapp/release/v1.2.0/src/)

 Am I just looking in the wrong place? I promise I read the directions 
 and looked in what seemed to be the appropriate places.

 Thanks in advance,
 -Ian McFarland


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



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




Re: help with apache tomcat webserver

2002-07-12 Thread Eddie Bush

DNS = Domain _Name_ Service - it's only job is to take names and turn 
them into numbers.  Martin poses a good question though.  Do you have a 
firewall of some sort up?  Is it conceivable you're blocking them and 
don't know it?  I'm not good at sysadmin, so I can't help you there :~-( 
 Oh - last I checked - being ignorant is not a prosecutable offense :-) 
 (I don't know if that's good news to you, but it sure is to me!)

Good luck!

Eddie

Jonathan Zhang wrote:

yes Ping is fine. I think this is a problem related to DNS. I thought it
only goes through DNS if it's a host name,  but ip address does not need to
go through DNS ?  maybe I'm just ignorant.



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




Re: JDBCRealm How-TO

2002-07-12 Thread Eddie Bush

Tomcat does :-)  Look on the web page http://jakarta.apache.org/tomcat - 
select your version at the left.  You should see a link to the 
information you seek at the left.

HTH,

Eddie

Joseph E. Savard wrote:

Does anyone have the link to the TOMCAT JDBCRealm How-TO??





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




Re: mail server

2002-07-12 Thread Eddie Bush

Many would recommend sendmail.  I just installed postfix and found it 
caused a lot less hair-pulling.  It's a drop-in replacement for 
sendmail, by the way :-)

That assumes you're running under Un*x (Linux/BSD - one of the Unices).

I can't help if you're looking for one for Windows.

HTH,

Eddie

Jonathan Zhang wrote:

hi,  does any know a free and excellent mail server?



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




Re: mail server

2002-07-12 Thread Eddie Bush

Sorry - I forgot to mention:

www.postfix.org

Jonathan Zhang wrote:

hi,  does any know a free and excellent mail server?






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




Re: mail server

2002-07-12 Thread Eddie Bush

Does it do IMAP?  ... and what kind of overhead do you incur?  I'd 
actually forgotten about that one :-I  I'll go check that one out. 
 Thanks for the reminder, guys.

Jacob Hookom wrote:

JAMES!

-Original Message-
From: Jonathan Zhang [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 6:06 PM
To: Tomcat Users List
Subject: mail server

hi,  does any know a free and excellent mail server?


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


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





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




Re: mail server

2002-07-12 Thread Eddie Bush

James doesn't do IMAP or Virtual Domains yet :~-(  I think I'll stick 
with Postfix for now.

Ertel, Jason wrote:

I have a lot of experience with qmail and highly recommend it.  It can
be overwhelming to learn in a short period of time but it meets your
requirements of being free and excellent.  There's plenty of
user-contributed tools and documentation to help as well.

http://www.qmail.org/

-Original Message-
From: Jonathan Zhang [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 7:06 PM
To: Tomcat Users List
Subject: mail server


hi,  does any know a free and excellent mail server?


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





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




Re: Apache+tomcat4.1.7+webapp

2002-07-12 Thread Eddie Bush

(my response is in the body of your message)

Mario Henley Becerril Geldis wrote:

try compiling the source distribution of webapp

  i compile my mod_webapp.so with -DEAPI but when start apache this say:

   [Fri Jul 12 19:59:00 2002] [notice] Apache/1.3.26
(Unix) mod_webapp/1.2.0-dev mod_ssl/2.8.9 OpenSSL/0.9.6b configured --
resuming normal operations
[Fri Jul 12 19:59:00 2002] [notice] Accept mutex: sysvsem
(Default: sysvsem)
[Fri Jul 12 19:59:00 2002] [error] Connection warpConnection cannot
connect
[Fri Jul 12 19:59:00 2002] [error] Cannot open connection
warpConnection

  lines in my httpd.conf are this:

  LoadModule webapp_module libexec/mod_webapp.so
  IfModule mod_webapp.c
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
  /IfModule

  any ideas..??  

Yes - use mod_jk instead.  The warp connector will not let apache serve 
static content.  If you have no static content then you probably don't 
need apache and should be using the http connector instead.

 I have apache 1.3.26 with tomcat 4.1.7 and binary webapp, when i run
apachectl start, this say:

 [Fri Jul 12 14:09:37 2002] [warn] Loaded DSO libexec/mod_webapp.so uses
plain Ap
ache 1.3 API, this module might crash under EAPI! (please recompile it
with -DEA
PI)

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




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




Re: configuration ofjames

2002-07-12 Thread Eddie Bush

http://jakarta.apache.org/james/

Have you tried that yet? :-)  You might want to ;-) - it could possibly 
save many of us from downloading messages containing questions you can 
answer for yourself.  I'm not trying to be mean, but I get plenty of 
mail as it is!

(If you do happen to still have problems once you've RTFM, please do ask 
questions - but you might want to consider asking them on the JAMES list 
instead of the TOMCAT list - just a thought!)

Thanks!

Eddie

Jonathan Zhang wrote:

When I tried my ip it prompted for user name and password upon downloading
msgs, where do I set that piece of information(how do I add user account
information in james)?
thanks
- Original Message -
From: Joseph E. Savard [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 12, 2002 8:44 PM
Subject: Re: configuration ofjames


Do you have a static IP?

Try that first.

or your Domain name with a route to the mail (pop3/smtp) ports..

you could setup mail.whatever.com for pop3 and smtp


- Original Message -
From: Jonathan Zhang [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 12, 2002 6:54 PM
Subject: configuration ofjames


thanks for the recommendation, I've set up james on my pc, but I am not

sure

how to configure it, like where to create email accounts. I sent an email

to

postmaster@[myip], what would be the smtp and pop3 server name?
thank you



--
To unsubscribe, e-mail:

mailto:[EMAIL PROTECTED]

For additional commands, e-mail:

mailto:[EMAIL PROTECTED]



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




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




Re: Where is WARP connector

2002-07-11 Thread Eddie Bush

+---+--++
| Connector   |  Load-Balancing | Serves Dynamic Content Only |
+---+--++
| warp| No   | No   
  |
+---+--++
| mod_jk| Yes (sticky)| Yes 
   |
+---+--++

I found warp a lot easier to get going, until I actually found some 
reasonable documentation on mod_jk, but, as the table suggests, if you 
have static content you want Apache to serve (and it sounds like you do) 
it will not let Apache serve it!  This is one of the most notable 
shortcomings of mod_webapp.  mod_jk will let Apache handle the static 
content AND (if you want it to) it will load-balance.  It will also 
provide you with sticky sessions.  Oh - and mod_jk only serves dynamic 
content =)

Regards,

Eddie Bush

Nance, Michael wrote:

Additional note we are running Tomcat with Weblogic and Apache on Unix Boxes
in a clusted environment

Thanks again to everyone
Mike




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




Re: How to hide a download file

2002-07-11 Thread Eddie Bush

If you make them login, you could put a security constraint on your 
downloads directory.  That would pretty well seal it up, I believe =)

HTH,

Eddie

Kevin Passey wrote:
snip

But if I create a directory called downloads and put the file in there -
what's to stop someone just typing the folder URL and grabbing the file?

snip


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




Re: Cannot use bean from jsp, but servlet ok. I'm dying!

2002-07-11 Thread Eddie Bush

Have you tried %@page import=beans.FormBean% at the top of your JSP?

eric wrote:

Help. Absolutely stuck. Tomcat cannot find my bean classes no matter what
when called from jsp pages. From within servlets no problem.



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




Re: Cannot use bean from jsp, but servlet ok. I'm dying!

2002-07-11 Thread Eddie Bush

Ah - good eyes.  That's probably the problem.

[EMAIL PROTECTED] wrote:

seems like a name conflict - both the class and the variable are named
FormBean.  i would suggest using
  id=myFormBean
and
  %=myFormBean.getUserName()%




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




Re: not able to generate mod_jk.so for apache 2.0.39

2002-07-11 Thread Eddie Bush

I have no clue, but I have one thought.  When I was building mine, there 
was a --with-apxs=/path option to the buildconf.sh (er - I think 
that's it's name).  Did you specify that?

HTH,

Eddie

Vijay Kandy wrote:

Hello All,

I am trying to integrate Apache 2.0.39 and Tomcat 3.2.3 (originally we had
Apache 1.3.x and was working fine) but am having problems generating
mod_jk.so. When I try to use a mod_jk from
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/linux/i38
6/ Apache throws a Not compatible error. When I try to build one, I get a
apxs:Error Command failed with rc=65536 Can some one please help? Thank
you.

Sincerely,
Vijay

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






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




Re: Tomcat startup script

2002-07-11 Thread Eddie Bush

If you installed from RPMs you should have one already (I believe - I 
did!).  You _will_ have to enable it (the RPM told you this when you 
installed).  To do that you can do one of two things:

1)  Use the control panel - Services tool
2)  At a command prompt (as root, I believe) type ntsysv

The control pannel applet (is that what it's called?) will prompt you 
for the super-user password if you run it as a non-priviledged user.  I 
often use the control panel for things - it works quite well.  Either 
method should work fine - and your procedure is similar in both:

Look for the entry saying tomcat4 and check the box beside it (in 
ntsysv, I _believe_ you can do this by either hitting space or Enter 
[aka Return]).

If it _really_ isn't there, repost and we'll see what we can do.

Regards,

Eddie

[EMAIL PROTECTED] wrote:

Whoever has a script for starting Tomcat,
  could you please send it to me.
I am running Tomcat 4.0 on Redhat 7.2
  Thanks,
Dan





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




Re: help with apache tomcat webserver

2002-07-11 Thread Eddie Bush

That's kind of odd.  I was able to pull your server up and run the 
number guess game.  To me, that indicates you have things set up right 
(at least for the ROOT application).  Is this the context you're having 
problems with?  What do you find in the log files?  I'd look in the log 
files and see if you can determine anything from what you find there.

HTH,

Eddie

Jonathan Zhang wrote:

Everything is in default condition as provided by apache tomcat 4.0.  People
in foreign countries such as hk and china can not view it while people in US
can.  if it helps here's my ip addr:
http://64.161.27.180:8080/index.html
thanks for the help

-jonathan



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




Re: Altering file extensions

2002-07-11 Thread Eddie Bush

http://jakarta.apache.org/struts

In a way, it sounds like over-kill - but it would do what you want. 
 It's quite easy to set up, always being maintained/improved, and it's 
from ASF - how could you go wrong? ;-)

Seriously - try it.  The users' mailing list is 
[EMAIL PROTECTED]  Don't forget to subscribe before you 
start sending mails for help :-P 
 [EMAIL PROTECTED] (I think that's right - you 
would be well-served to check for yourself on the page mentioned above. 
 Look for a link entitled Mailing List).

Enjoy :-)

Eddie

Vikramjit Singh wrote:

In tomcat i think its not possible. If you want that your user should not
see, the .jsp extension in the address bar, then you can use frames, to show
only the .html in your address bar. 

Regards,
Vikram


-Original Message-
From: Jim Bartram [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 9:17 PM
To: [EMAIL PROTECTED]
Subject: Altering file extensions


I'm using Tomcat 4.0 in a very simple way, hosting some straightforward
.jsp files. Instead of the client seeing files served with the *.jsp
extension, I'd like to be able to substitue anothe extension instead --
like *.html :-). Is there a way to do that in Tomcat ? If so, how do I go
about it?

--Jim Bartram

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

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



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




Re: Tomcat 4.0.4 Realm Question

2002-07-11 Thread Eddie Bush

Which connector are you using?  Is this TC stand-alone or TC + Apache?

IF this is TC + Apache AND the files you're protecting happen to be 
static content, it's possible Apache is serving them and bypassing your 
security constraints.  If, for example, you're running TC + Apache + 
mod_jk (my setup), then I can personally guarantee you that this will be 
the exact behavior with static content :-)  LOL I spent several hours 
trying to set up a security constraint on a FULLY STATIC application 
(/tomcat-docs) before I stopped and realized that there was no way it 
COULD protect it!

If this fits your situation, you need to look at how Apache can deny 
access to the directory - or - change it to dynamic content (JSPs 
instead of HTMLs).

Regards,

Eddie

Kevin Andryc wrote:

I was wondering how I can protect certain servlet subdirectories. For
example, lets say that in WEB-INF/classes I have two subdirectories: app1
and app2. How do I use the security-constraint to protect (force the user to
login) app1 but not have them login to classes in app2? I have tried this in
my web.xml file, but the login page doesn't appear and I go directly to the
page:

security-constraint
  display-nameExample Security Constraint/display-name
  web-resource-collection
 web-resource-nameProtected Area/web-resource-name
 url-pattern/servlet/app1.*/url-pattern
http-methodDELETE/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
http-methodPUT/http-method
  /web-resource-collection
  auth-constraint
 role-nameusr/role-name
  /auth-constraint
/security-constraint

Is this possible? If so, how can this be achieved?

Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]





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






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




Re: mod_jk problem

2002-07-10 Thread Eddie Bush

You've successfully stumped me.  Don't feel as though it is a great 
accomplishment though ;-)  Every time I feel I nearly have my mind 
around this stuff, I realize another aspect that I am clueless about.

My inference is that people who want to load-balance use mod_jk.  Using 
mod_jk (to me) is indicative of Apache + Tomcat.  You want to do 
standalone.  If you're willing to install Apache to get load-balancing 
going, then check out http://www.ubeans.com/tomcat/.  That was my 
guide to making mod_jk work for me.  You should be able to gleen a 
lot of information out of that.  If you're insistent on doing 
standalone, I wish you the best luck!

So far as Tomcat's SSL performance goes - I have done no benchmarks. 
 In fact, I don't use TC for SSL.  What I do is use Apache to serve 
static content and handle SSL translation for me.  I haven't messed 
with the SSL stuff yet at all since I upgraded the OS on my dev box, but 
that is not far down the road (I wanted to be sure I had the basics 
before I added bells  whistles).  Apache (mod_ssl) will do it though 
- not Tomcat.  I did have SSL going just fine on the previous box - it 
wasn't that bad at all.  Apache came to me with mod_ssl installed and 
there were only minor modifications to make to get it working.

I haven't decided yet if redirection works - I've been having some 
issues this morning that required my attention and haven't really gotten 
to actually do any dvel work yet today.  Hopefully I will get to it 
after lunch... or during lunch *contemplates ordering in*  If it's as 
easy as I'm lead to believe from looking over the old TC 3.3 stuff it's 
basically transparent.  I don't really see how this could be, but maybe 
I'm wrong.  It would be really nice if we had the quality of 
documentation for TC 4.* as (apparantly) exists for TC 3.*.  I think, 
were that the case, this list would see a huge reduction in the number 
of VERY confused people (put me in that group, please) that post.  Isn't 
this fun?!

Hopefully my ramblings are of some use to you.  If the ubeans site 
walk-through doesn't cure your ills, let me know.  I will eventually 
(a ways down the road, I think) be doing load-balancing.  I could always 
(try to) set up load-balancing here on the dvel box and try to make it go.

I too would really appreciate some help on this LOL - but apparantly 
nobody knows how or cares to.  Hopefully you, Steve, and myself can work 
this out!

Regards,

Eddie

David Mossakowski wrote:

 About that 'load-balanced Tomcat'...

 Are you load balancing them through an Apache connector (the mod_jk 
 this thread is about)?

 Is it possible to use the catalina HTTPConnector?  I suppose it would 
 require telling HTTPConnector that there are multiple instances of 
 Tomcat right?  WOuld that be the Tomcat workers stuff?

 I'm conisdering using standalone Tomcat in load balanced, https 
 environment and would really appreciate any suggestions on this.

 How is Tomcat's SSL performance?

 Thanks,
 d. 




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




Re: mod_jk problem

2002-07-10 Thread Eddie Bush

You peaked my interest.  I did some digging.  I see no mention of doing 
load-balancing that does not include Apache.  There are other ways:

DNS Load Balancing (affinity not guaranteed - dead server = bad requests)
Clustering (better - but SSL geeks affinity)

As it happens, you can wire a hardware SSL-decoder in front of your 
cluster-manager and overcome the shortcomings of that approach.  I think 
the best solution is Apache + Tomcat though.  It's undoubtedly 
cheaper/easier.  So - you ready to install Apache yet?  Breeze over to 
the Oreilly site and look for Apache Wrangler and something called 
LAMP.  You'll find an article that will point you to a script that will 
download/install Apache + SSL (it even pre-configures it for you - 
whatever that means).  If you have the option of using RPMs, I'd go with 
that option though.  RPM == good (IMHO).

HTH,

Eddie

David Mossakowski wrote:

 About that 'load-balanced Tomcat'...

 Are you load balancing them through an Apache connector (the mod_jk 
 this thread is about)?

 Is it possible to use the catalina HTTPConnector?  I suppose it would 
 require telling HTTPConnector that there are multiple instances of 
 Tomcat right?  WOuld that be the Tomcat workers stuff?

 I'm conisdering using standalone Tomcat in load balanced, https 
 environment and would really appreciate any suggestions on this.

 How is Tomcat's SSL performance?

 Thanks,
 d. 




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




Re: mod_jk problem

2002-07-10 Thread Eddie Bush

Yep - that's why I mentioned that as the favorable solution hehe - I 
guess I should have clearified.  Whereas you've probably (had the joy of 
having) implemented this, I just read about it.  Hey, by the way, Craig 
- have you followed my struggle at all?  How would _you_ suggest I 
implement http/https and redirects back and forth under Tomcat + Apache 
+ mod_jk?  I'd love a tip or two =)  I trust your word a great deal.

Thanks,

Eddie

Craig R. McClanahan wrote:


On Wed, 10 Jul 2002, Eddie Bush wrote:

You peaked my interest.  I did some digging.  I see no mention of doing
load-balancing that does not include Apache.  There are other ways:

DNS Load Balancing (affinity not guaranteed - dead server = bad requests)
Clustering (better - but SSL geeks affinity)

As it happens, you can wire a hardware SSL-decoder in front of your
cluster-manager and overcome the shortcomings of that approach.  I think
the best solution is Apache + Tomcat though.  It's undoubtedly
cheaper/easier.  So - you ready to install Apache yet?  Breeze over to
the Oreilly site and look for Apache Wrangler and something called
LAMP.  You'll find an article that will point you to a script that will
download/install Apache + SSL (it even pre-configures it for you -
whatever that means).  If you have the option of using RPMs, I'd go with
that option though.  RPM == good (IMHO).

One thing you will need to ensure is that your load balancing solution
routes all requests for the same session back to the same Tomcat instance
(like the balancing through Apache does).

HTH,

Eddie


Craig



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




Re: mod_jk problem SSL question...

2002-07-10 Thread Eddie Bush

To be honest, I skipped compiling Apache - it was there.  I saw no need 
to fix what wasn't broke.  However, assuming you compiled in support 
for dynamic modules, you should (I believe) be able to add that on 
without a great deal of problem.  SSL is something I wouldn't want to 
have to install myself - every time I've looked at messing with that 
piece of things I just cringe.  If possible, use something pre-existing. 
 Also, there's a neat Apache Toolkit script out there that will, upon 
your requesting a certain configuration, go download what you don't 
have, compile it, and pre-configure it.  I haven't used it.  I just 
read about it in an article I found via O'Reilly's web site.  Look for 
Apache Wrangler - and a reference to LAMP.  The script will also snag 
MySQL + Perl + Python + PHP4 -- but it said you have a choice of what to 
get/install.  I'd try to find that article if I were you.  ModSSL is (If 
I remember correctly) one of the things it takes care of 
(download/install/pre-configure).

HTH,

Eddie

Mark Hutchinson wrote:

 I followed the how from the link in this and finaly got tomcat and 
 apache working.

 One question now though, after compiling apache and such, how do I now 
 enable ssl and https on this server.  Can I add it after?  Or do I 
 have to recompile?

 Thanks all.

 Mark 




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




Re: TomCat 4.04

2002-07-10 Thread Eddie Bush

It's really pretty difficult to give any advice based off what you've 
said thus far.  Could you be a bit more explicit about your setup and 
access method?

Reis, Tom wrote:

I have just installed TOMCAT v 4.04 and when I put a html page in the
Program Files\Apache Tomcat 4.0\webapps\ROOT I cannot get the URL to work. I
do get the Tomcat startup screen to work but not anything else in that
directory. 

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






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




Re: mod_jk problem

2002-07-10 Thread Eddie Bush

If you're using a piece of hardware to manager SSL-decode ... isn't 
everything Tomcat does clear text?  Admittedly, I'm not super-familiar 
with this sort of thing - but it sure seems to me like it would be. 
 That being the case, you don't really care about Tomcat's SSL 
performance - but simply about Tomcat's performance.

David Mossakowski wrote:

 Yeah I haven't found any way of doing load balancing without Apache 
 either.  My question was hopefull but you only confirmed my earlier 
 findings :(.

 We're probably going with hardware SSL so I wouldn't need Apache to 
 handle this and that's why I want standalone Tomcats (I was curious 
 about their performance with SSL though).

 In any case you're right about not a lot of people worrying about 
 this.  It seems like load balancing is not very commonly used.

 Good luck,
 d.

 Eddie Bush wrote:

 Yep - that's why I mentioned that as the favorable solution hehe - 
 I guess I should have clearified.  Whereas you've probably (had the 
 joy of having) implemented this, I just read about it.  Hey, by the 
 way, Craig - have you followed my struggle at all?  How would _you_ 
 suggest I implement http/https and redirects back and forth under 
 Tomcat + Apache + mod_jk?  I'd love a tip or two =)  I trust your 
 word a great deal.

 Thanks,

 Eddie 




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




mod_jk - not honoring security constraint

2002-07-10 Thread Eddie Bush

Tomcat 4.0.4 - Apache 1.3.23

I got everything working (I thought) and then set up a BASIC auth on 
the entire /tomcat-docs/* path.  It happily serves it without making me 
login.  Is this me or mod_jk?

Thanks,

Eddie


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




Re: mod_jk - not honoring security constraint

2002-07-10 Thread Eddie Bush

LOL - nevermind!  I'm stupid - that's my problem.  Tomcat doens't 
protect html files - and that's all there really is in the docs!  Duh! 
 All I did was prove that Apache is doing what it should do.  ... which 
is what the logfiles told me - but I've been staring at this so long ... 
well, I think you get the idea =)

FALSE ALARM - Sorry about that =/

Eddie

Eddie Bush wrote:

 Tomcat 4.0.4 - Apache 1.3.23

 I got everything working (I thought) and then set up a BASIC auth on 
 the entire /tomcat-docs/* path.  It happily serves it without making 
 me login.  Is this me or mod_jk?

 Thanks,

 Eddie


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






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




Re: getRequestURI()

2002-07-10 Thread Eddie Bush

I'd say the first one, but I'm not authoritative.  To the best of my 
recollection, however, that is precisely what encodeURL is there for. 
 Hopefully someone else will have something additional to add.  I 
_really_ think it should be the first (including the sessionid - and 
other cookies/params too?).

Regards,

Eddie

Alex Kachanov wrote:

Hello!


This is a page:

%@ page contentType=text/html;charset=Shift_JIS%
%@page session=true%

a href=%= response.encodeURL(index.jsp)%Check this/a

p%= request.getRequestURI() %/p

p%= session.getId() %/p


So, guys, what do you think request.getRequestURI() method should return
when cookies are switched of in browser and you clikc on Check this link?


JRun 3.1 and Jrun 4.0 are sure it should return
/index.jsp;jsessionid=384975938475


While all other Application servers return just:
/index.jsp



Who is right?


with best wishes
Alexander Kachanov


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






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




Re: getRequestURI()

2002-07-10 Thread Eddie Bush

I don't believe that's what I said at all =) What I was was that to the
best of my recollection that's how it is supposed to act. Isn't
encodeURL what you're supposed to be able to depend on when cookies are
disabled? If it doesn't list the parameters/cookies in the url ... then
what is it for? =) Ok - here I go digging through the docs *cringe*. Now
... you tell ME what the correct interpretation is:


  encodeURL

public java.lang.String *encodeURL*(java.lang.String url)

Encodes the specified URL by including the session ID in it, or, if
encoding is not needed, returns the URL unchanged. The
implementation of this method includes the logic to determine
whether the session ID needs to be encoded in the URL. For example,
if the browser supports cookies, or session tracking is turned off,
URL encoding is unnecessary.

For robust session tracking, all URLs emitted by a servlet should be
run through this method. Otherwise, URL rewriting cannot be used
with browsers which do not support cookies.


*Parameters:*
|url| - the url to be encoded.*Returns:*
the encoded URL if encoding is needed; the unchanged URL otherwise.


That's off of Sun's JDK docs for J2EE 1.3. I think it danged well better
have the session in it if cookies are off!

I don't know why I was thinking attributes would be there ... the
sessionid is really the only piece you need to track things you are
persisting.

Alex Kachanov wrote:

Wll Tomcat 4.0.x reference implementation returns:

/index.jsp

Then, that means all AS are wrong and just one Jrun is right?

with best wishes
Alexander Kachanov

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: 11 „y„„|„‘ 2002 „s. 11:59
To: Tomcat Users List
Subject: Re: getRequestURI()


I'd say the first one, but I'm not authoritative.  To the best of my 
recollection, however, that is precisely what encodeURL is there for. 
 Hopefully someone else will have something additional to add.  I 
_really_ think it should be the first (including the sessionid - and 
other cookies/params too?).

Regards,

Eddie




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




Re: mod_jk problem

2002-07-09 Thread Eddie Bush

   Considering the possibility you are setup like me (httpd config in 
/etc/httpd/conf - modules in /etc/httpd/modules), I suggest you change 
your LoadModule line to:

LoadModule jk_module modules/mod_jk.so

All the docs talk about libexec - but all of my other modules are loaded 
from modules/mod_* - and this is true for mod_jk too - works like a charm!

HTH,

Eddie

COLLINEAU Franck FTRD/DMI/TAM wrote:

Greetings,
 
i try to start apache with mod_jk. I compiled mod_jk using the source-dist
and copy mod_jk.so to APACHE/libexec. The lines in my httpd.conf are:

LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c

when i try to start apache i got this error:

./bin/apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Can't locate API module structure `jk_module=B4 in file
/usr/local/apache/libexec/mod_jk.so: /usr/local/apache/libexec/mod_jk.so:
undefined symbol: jk_module
./bin/apachectl start: httpd could not be started

Line 207 is the LoadModule Line above.

thanks in advance
 
Franck






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




mod_jk redirection

2002-07-09 Thread Eddie Bush

  Hi all.  I _finally_ got mod_jk working.  Man am I happy.

... now - I'm trying to get redirection up and going.  Here are my 
end-goals.  I am in hopes someone can give me some pointers:

One server instance
Two connection points using mod_jk (one http - one https)
The http connector will redirect urls with CONFIDENTIAL security 
constraints to the https connector
The https connector will redirect urls with no CONFIDENTIAL security 
constraints to the http connector

The docs say I must have _exactly_ one engine for each service.  Do I, 
then, need to declare a second service that will use the second 
connector.  How is this going to affect sessions/authentication 
(container-managed form-based authentication is one thing I want the 
redirects to handle).  I know someone out there has to be doing this! 
 How do you do it?  Anything that is sensitive should go over https 
(which Apache will provide).  Anything that isn't will go over http. 
 I'd like to keep the same session over both http/https - or, if someone 
knows of a way to transfer the session - otherwise it seems this is 
all futile.

It sounds to me, from reading the docs, like I'll have to have two 
services.  Is this right?  I think having two services would shoot me in 
the foot with respect to my session.  I really want to use 
container-managed authentication/security/insert thing server can do 
here.  The more centrally-maintained the better IMHO.  Plus, I know 
you guys are going to continue to improve the state of Tomcat, and 
everything included in it.

Any help would be most appreciated!

Thanks in advance! =)

Eddie


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




Re: Connect JSP and Mysql

2002-07-09 Thread Eddie Bush

I have no clue what your problem could be, but I'd strongly advise 
against doing this sort of operation inside of a JSP page.  Do your 
query inside of a servlet and then pass the result to the JSP page via a 
request-scoped attribute.  Why?  Think of all the resources your machine 
will be wasting when a user visits your page and clicks on the Refresh 
button repeatedly (yes! they _DO_ do that!  My wife is the world's worst 
- man she's impatient...).  You may have just brought your web server to 
it's knees.

Keep the queries in Java, where they belong, and pass them to your JSPs 
via request- (or session-) scoped attributes.  That way, you have a lot 
better control over your resources, and you don't have to wade through 
sensless JSP error messages to debug your Java code.

Regards,

Eddie

Hai To Thanh wrote:

Hi, 
I get confuse when I try to connect JSP and Mysql.




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




Re: mod_jk problem

2002-07-09 Thread Eddie Bush

Steve, I'd _love_ to help you - I would.  I'm running on Linux though - 
and with a much older version of Apache (1.3.23).  So far as the config 
goes, I'm still quite shaky on it.  If all you want to do is set up one 
server - or even multiple load-balanced servers, it's not that bad I 
don't think.  You might take a look at http://www.ubeans.com/tomcat/. 
 That's what I used as my guide.  You can get the dll files (I'm 
guessing you're on Windows) from the binary distributions.  It's not 
(IMHO) real easy to find the one you want.  I'm not certain I have the 
one I want - but it works.  There's also a proportedly useful 
walkthrough on jboss.org for setting up with the newer Apaches.

If you look over that stuff and still have problems, post here again. 
 I'll try and keep an eye on this thread.  I know how frustrating this 
can be.

Regards,

Eddie Bush


STEVE R BURRUS wrote:

Hello, I am Steve Burrus and I am 1 of your fellow Tomcat Server users, and I was
wondering if you would kindly email me the link to access the mod_jk.dll file
which allows one to connect the Apache 2.* HTTP Server with the Tomcat 4.*
Server. And, in your response to me, you might also throw in some info on how
you use the directives in Apache's configuration file!!

***

--- Eddie Bush [EMAIL PROTECTED] wrote:

   Considering the possibility you are setup like me (httpd config in 
/etc/httpd/conf - modules in /etc/httpd/modules), I suggest you change 
your LoadModule line to:

LoadModule jk_module modules/mod_jk.so

All the docs talk about libexec - but all of my other modules are loaded 
from modules/mod_* - and this is true for mod_jk too - works like a charm!

HTH,

Eddie

COLLINEAU Franck FTRD/DMI/TAM wrote:

Greetings,

i try to start apache with mod_jk. I compiled mod_jk using the source-dist
and copy mod_jk.so to APACHE/libexec. The lines in my httpd.conf are:

LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c

when i try to start apache i got this error:

./bin/apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Can't locate API module structure `jk_module=B4 in file
/usr/local/apache/libexec/mod_jk.so: /usr/local/apache/libexec/mod_jk.so:
undefined symbol: jk_module
./bin/apachectl start: httpd could not be started

Line 207 is the LoadModule Line above.

thanks in advance

Franck





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





__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

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






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




Re: mod_jk problem

2002-07-09 Thread Eddie Bush

Oh - I was going to add that I'm trying to set up http - https 
redirection, and it's anything but obvious to me how I should go about 
it.  I think I could probably set up a load-balanced Tomcat pretty 
easily, but I _cannot_ seem to figure out how I should do the http/https 
thing.  If you have seen any resources on doing such a thing, I'd really 
appreciate your sending them my way.

Thanks!

Eddie

STEVE R BURRUS wrote:

Hello, I am Steve Burrus and I am 1 of your fellow Tomcat Server users, and I was
wondering if you would kindly email me the link to access the mod_jk.dll file
which allows one to connect the Apache 2.* HTTP Server with the Tomcat 4.*
Server. And, in your response to me, you might also throw in some info on how
you use the directives in Apache's configuration file!!




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




Re: Port 8080

2002-07-09 Thread Eddie Bush

http://www.codesta.com/knowledge/technical/tomcat_warp_apache/index.jsp

Check that out.

Bryan Zimmer wrote:

Greetings,

I am running Tomcat version 4.0.4 with Apache 1.3.26.

Before I installed version 4.0.4, I had no trouble accessing my tomcat
applications, by saying, for example:

mozilla http://my.server.name/examples

This would bring up the $CATALINA_HOME/webapps/examples application
directory, from which I could choose JSP examples or servlets. I could also
do the same with my self-written JSP's, which resided in the directory
$CATALINA_HOME/webapps/baz-jsp.

In that case I could say:

netscape http://my.server.name/baz-jsp

and get to the index.html of that directory.

Now, and perhaps I've installed correctly because this was supposed to work
before, and didn't:

mozilla (or netscape or whatever) http://my.server.name:8080/baz-jsp
(or http://my.server.name:8080/examples)

My question is, how can I get regular port 80 access so the client doesn't
need to specify port 8080 and tomcat is integrated seamlessly with Apache?

Is it something simple, like jus adjusting the port number in server.xml? I
have had some many configuration trials I haven't even tried this. I don't
want to mess up Tomcat-Apache.

Can anyone tell me how to do this? Any advice much appreciated.

I am running with mod_webapp.so, by the way.

Thanks,

Bryan A. Zimmer
[EMAIL PROTECTED]



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






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




Re: Could you spare a moment ... please? =)

2002-07-09 Thread Eddie Bush

Ok - I've been digging and found some old (TC 3.3) stuff.  If it is 
indicative of the correct procedure, it would seem I can just have ONE 
Tomcat and ONE connector and then simply mount everything up and go. 
 Is this correct?  Will this cause http to redirect to https and 
vice-versa?  I'm going to try it, for sure!  Someone, please tell me if 
there is more to it than this!

Thanks,

Eddie

Eddie Bush wrote:

 Hi - I desperately need some info about mod_jk.  I have managed to get 
 it set up fine in a http environment, and everything works fine.  
 Tomcat serves dynamic content.  Apache serves static content.  All 
 good.  Now ... the next thing I want to do is handle http/https - this 
 has thrown me for a loop (hopefully not infinite!).

 Here are my requirements:

 Authenticate the user over https and have that authentication stick 
 over http.
 Ensure that, when a user requests a https resource over http, the 
 server (Tomcat) will send a redirect to the same path over https.
 Ensure that non-secure paths requested over https will redirect to http.

 From what I understand (and correct me if I am wrong - please!) this 
 should all be possible.  I'm not scared to get my hands dirty, but I 
 do not possess a single clue about how to acheive this.  My best 
 guess at this point is that I can't do this with mod_jk, but I've 
 seen things that indicate to me that it _can_ be done with mod_jk.

 To have http/https - the way I understand it - I would have to have 
 two services.  That would mean that the authentication would not be 
 shared over http/https - right?  Many things can be done without 
 really caring much about having the session be the same over 
 http/https - but certain things cannot (that I see)!  How do you all 
 do this?  I know someone has to be doing it!

 I'm super-fuzzy on this, but I _have_ successfully implemented Tomcat 
 + Apache using mod_jk.  If someone could be so kind as to ... show me 
 where I should RTFM or STFW ... or give me some you know how to do 
 this - it's just like insert comparison here, I would be 
 supercalafragilisticexpialedociously grateful!

 Thanks in advance for even having taken the time to read this.

 Regards,

 Eddie Bush



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






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




Re: Could you spare a moment ... please? =)

2002-07-09 Thread Eddie Bush

mount everything up == Use Apache virtual hosts and mount the app 
under both.  Will this allow non-secure items to be accessed over https? 
 I'd rather not have the additional overhead if I don't have to have it.

Thanks!

Eddie Bush wrote:

 Ok - I've been digging and found some old (TC 3.3) stuff.  If it is 
 indicative of the correct procedure, it would seem I can just have ONE 
 Tomcat and ONE connector and then simply mount everything up and 
 go. Is this correct?  Will this cause http to redirect to https and 
 vice-versa?  I'm going to try it, for sure!  Someone, please tell me 
 if there is more to it than this!

 Thanks,

 Eddie 




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




Re: JDBC Realm with Oracle

2002-07-01 Thread Eddie Bush

I don't use Oracle, so I could be way off - but it sounds like it doesn't know
how to deal well with the URL you've provided.  My suggestion would be to try
using the connectionName=dbUsername and connectionPassword=dbPassword
attributes in your Realm element.

HTH,

Eddie

Kevin Andryc wrote:

 I have searched the archives, but I have not seen a solution. I keep getting
 an error (shown below) when I try to use the JDBC Realm with Oracle. I can
 connect fine from within a Servlet, but not from the Realm. Here is my code
 and the error:

 server.xml
 Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=oracle.jdbc.driver.OracleDriver

 connectionURL=jdbc:oracle:thin:@oracle.server.priv:1521:oracledb?user=usr;p
 assword=pass
   userTable=users userNameCol=user_name
 userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /

 Error:
 Catalina.start: LifecycleException:  Exception opening database connection:
 jav
 a.sql.SQLException: invalid arguments in call
 LifecycleException:  Exception opening database connection:
 java.sql.SQLExcepti
 on: invalid arguments in call
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)

 )
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:3
 88)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:506
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
 at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:857)
 at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:189)
 at
 oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:246)

 at
 oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
 va:365)
 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
 at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548)
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
 )
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:3
 88)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:506
 )
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

 Thanks,
 Kevin

 Kevin Andryc
 Web Systems Engineer
 MISER
 http://www.umass.edu/miser/
 Phone: (413)-545-3460
 [EMAIL PROTECTED]

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


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




Reasonable Documenation?

2002-07-01 Thread Eddie Bush

Hi - I'm trying to get mod_jk going.  I have the connector and all, but,
even having looked at the accompanying documentation, I can't seem to
determine for certain how I should set up my server.xml file.  Could
someone be so kind as to fill me in on precisely what is required to be
in a person's server.xml in order to use the jk connector?  Also - and
this may or may not be answered by the previous question - what do I use
for the class on the Engine element?  Am I required to specify Host
elements, or will having my virtual hosts set up in Apache be sufficient
for that?

What I'm shooting for is as simple of a server.xml file as possible -
putting as much of the burden for determining virtual hosts etc on
Apache.  I need it to do SSL and redirects.  I'm of the understanding
the jk connector is the best choice in this circumstance.  I will have
several pieces of static content, so I really want to use Apache to
serve that.  I had all of this, except redirection, working under the
webapp connector - but I'm of the understanding that it won't let Apache
do it's job on the static content - it wants to serve that too.  The
only reason (even though the webapp connector was serving static
content) I'm attempting to swap over to the jk connector is because I
really need redirection to work and would really like for the container
to handle that for me.  I believe this is the last hurdle I need to
jump before I can hit production.  Could someone please help me out
here?
My configuration is as follows:

RedHat Linux 7.2
Apache 1.3.2
Tomcat 4.0.3
Sun JDK 1.4

Thanks so much!

Eddie


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




Re: JDBC Realm with Oracle

2002-07-01 Thread Eddie Bush

Awesome!  Glad I could help =)  Now if I could find some good documentation on
mod_jk ...

Kevin Andryc wrote:

 You are right on the money :)! Thanks!!

 Kevin

 Kevin Andryc
 Web Systems Engineer
 MISER
 http://www.umass.edu/miser/
 Phone: (413)-545-3460
 [EMAIL PROTECTED]

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Eddie Bush
 Sent: Monday, July 01, 2002 11:41 AM
 To: Tomcat Users List
 Subject: Re: JDBC Realm with Oracle

 I don't use Oracle, so I could be way off - but it sounds like it doesn't
 know
 how to deal well with the URL you've provided.  My suggestion would be to
 try
 using the connectionName=dbUsername and connectionPassword=dbPassword
 attributes in your Realm element.

 HTH,

 Eddie

 Kevin Andryc wrote:

  I have searched the archives, but I have not seen a solution. I keep
 getting
  an error (shown below) when I try to use the JDBC Realm with Oracle. I can
  connect fine from within a Servlet, but not from the Realm. Here is my
 code
  and the error:
 
  server.xml
  Realm className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=oracle.jdbc.driver.OracleDriver
 
 
 connectionURL=jdbc:oracle:thin:@oracle.server.priv:1521:oracledb?user=usr;p
  assword=pass
userTable=users userNameCol=user_name
  userCredCol=user_pass
userRoleTable=user_roles roleNameCol=role_name /
 
  Error:
  Catalina.start: LifecycleException:  Exception opening database
 connection:
  jav
  a.sql.SQLException: invalid arguments in call
  LifecycleException:  Exception opening database connection:
  java.sql.SQLExcepti
  on: invalid arguments in call
  at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
 
  )
  at
  org.apache.catalina.core.StandardService.start(StandardService.java:3
  88)
  at
  org.apache.catalina.core.StandardServer.start(StandardServer.java:506
  at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
  - Root Cause -
  at
 oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
  at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:857)
  at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:189)
  at
  oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:246)
 
  at
  oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
  va:365)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
  at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548)
  at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
 
  at
  org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
  )
  at
  org.apache.catalina.core.StandardService.start(StandardService.java:3
  88)
  at
  org.apache.catalina.core.StandardServer.start(StandardServer.java:506
  )
  at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 
  Thanks,
  Kevin
 
  Kevin Andryc
  Web Systems Engineer
  MISER
  http://www.umass.edu/miser/
  Phone: (413)-545-3460
  [EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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

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


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




Distribution Policy? Where did the RPMs go?

2002-06-21 Thread Eddie Bush

Note: This is a slightly reworded posting from yesterday.  I got no response, and 
really wanted one.  I'm reposting because I'm assuming nobody that knew saw it - and 
that it's so far down in the stack now they will not see it.

Hi - just curious if there would be no more RPM distributions past 4.0.3.  That's the 
last version I see one for.  I rather like the RPMs myself and would like to see them 
continue.  Did someone accidentally comment out that part of the Ant script? =)  I 
certainly hope you all haven't decided to no longer build RPM distributions =(  Anyone 
know what is up?

Thanks!

Eddie




Re: Distribution Policy? Where did the RPMs go?

2002-06-21 Thread Eddie Bush

Thank you for the update =)  I'm guessing the 4.1.x series won't start
having RPM builds until they reach a full release - is that assumpiton
correct?

Thanks!

Eddie

- Original Message -
From: GOMEZ Henri [EMAIL PROTECTED]
To: Jason Corley [EMAIL PROTECTED]; Tomcat Users List
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 11:38 AM
Subject: RE: Distribution Policy? Where did the RPMs go?

I'm working on tomcat 4.0.4 rpms, which need much more externals
rpms (many from commons).

That's why it take a little more times than expected




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




Connectors - enableLookups defaults to true?

2002-06-21 Thread Eddie Bush

I have to say I'm very curious why this is.  Could someone shed some light?  What will 
be the impact on my applications if I set it to false?  ... just that I get an IP 
Address instead of a name for someone that connects to an application?  Is there any 
impact that I am unaware of?

Why is more favorable to have lookups on?  I'm guessing there is a common, valid 
reason I am unaware of - since this defaults to true.  Doesn't Apache default this to 
false?  Yes - just checked and it does.

Thanks!

Eddie




No more RPM distributions?

2002-06-20 Thread Eddie Bush

Hi - just curious if there would be no more RPM distributions past 4.0.3.  That's the 
last version I see one for.  I rather like the RPMs myself and would like to see them 
continue.  Did someone accidentally comment out that part of the Ant script? =)

Thanks!

Eddie




Re: outsiders cannot brows my site in tomcat

2002-06-20 Thread Eddie Bush

Do you have a static IP address? =)

Most DSL services give you 'communal' IP addresses.  You don't have a
'unique' one for each of your machines - and they change every time you
connect.  My guess is that this is most likely your problem.  To rectify it,
check on getting your own IP address/pool through your DSL provider.
Another thing too - if you want to be able to access your computer by name -
you'll need a domain if you don't have one.

Additionally, you will need to ensure that you have the domain set up to
point to the correct IP Address.  Also, I'm not entirely sure how your LAN
is configured - but if all of your machines are sharing one IP Address
you'll need to check into configuring your router to direct all http/https
traffic to the specific machine that has Tomcat installed on it.

*looks around* Did I miss anything guys?

I hope that answers your question.  If I totally misjudged your perdicament,
please feel free to repost =)

Eddie

- Original Message -
From: Yu Ye Zhou [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 20, 2002 1:01 PM
Subject: outsiders cannot brows my site in tomcat


 I have three computers connected to each other as LAN.
 I use DSL and a router to have all of them connected
 to internet. I have tomcat install in one of the
 computer as stand alone. I can see the index pages by
 using name of the computer using
 http://NameOfComputer:8080 within my LAN. However, if
 I try to see the same page from a computer outside of
 my own network, page is not found. It also says server
 is not found. It seems to me more like a network
 problem than problem with tomcat. I didn't intergrate
 apache web server with tomcat. Do I need apache to see
 the page? Can I use tomcat only? Anybody also have
 idea of why outsiders cannot brows my pages?
 Thanks a lot.
 Yu Ye Zhou

 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com

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



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




Re: webapp coredump

2002-06-20 Thread Eddie Bush

I believe you should probably be using one of the http connectors if you're
running Tomcat stand-alone.  Unless I am mistaken, the mod_webapp connector
is for integration with Apache.

HTH,

Eddie

- Original Message -
From: Sebastien Reboux [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 20, 2002 11:42 AM
Subject: Re: webapp coredump


 Re-Hi !

 Finally it works :)

 I dont know the reason but I can give you my solution in case you
 encounter the same troubles : do not use Tomcat version 4.0.4 nor 4.0.3,
 it works with the 4.0.1 and the associated connectors.
 Of course if anyone can give me an explanation...

 Bye.


 On Thu, 20 Jun 2002, Sebastien Reboux wrote:

  Hi !
 
  I try to connect apache 1.3.24 running under solaris 2.7 with Tomcat
4.0.4
  using mod_webapp 1.2.0-dev ; I would also use mod_ssl (2.8.8) to secure
  everything.
  I'm able to run apache standalone with both http and https, I compiled
the
  appropriate mod_webapp.so (with -DEAPI to fit with the Apache compil
  options) and I can see the webapp-info page in http and https. Of course
  Tomcat runs Standalone.
  The problem comes when I try to run a jsp from apache via webapp : the
url
  http(s)://myhost:myapacheport/examples/ produces a webapp 404 error and
my
  apache error_log looks like this :
 
  [Thu Jun 20 14:58:55 2002] [notice] Apache/1.3.24 (Unix)
  mod_webapp/1.2.0-dev mod_ssl/2.8.8 OpenSSL/0.9.6c configured -- resuming
  normal operations
  [Thu Jun 20 14:58:55 2002] [notice] Accept mutex: fcntl (Default: fcntl)
  [Thu Jun 20 14:59:01 2002] [notice] child pid 18767 exit signal
  Segmentation Fault (11), possible coredump in
/usr/local/genoplante/apache_1.3.24
 
  The core is created each time I try to access a Deployed directory.
 
  However I sometimes find a deploy application /examples error in my
  apache logs either at startup and at runtime...
 
  Sometimes Netscape shows a dialog box with an I/O error or a Document
  contains no data error.
 
  Can anyone help me ?
 
  ...I already tried tomcat 4.0.3, pre compiled and self
  compiled mod_webapp/jk...
 
 
  --
  Sebastien Reboux
  BioInformaticien
  Genoplante-Info
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 

 --
 Sebastien Reboux
 BioInformaticien
 Genoplante-Info


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



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




Re: outsiders cannot brows my site in tomcat

2002-06-20 Thread Eddie Bush

I think he means to register the domain:

http://www.eyeondomain.com/ -- This is probably where I'll go soon
http://www.register.com/ -- I use this one - I am changing because of price
http://www.networksolutions.com/ -- STAY AWAY FROM THIS ONE!

... and there are many many many others.

http://www.google.com/search?hl=enq=domain+registrars

Anyone have one they prefer?  Reasons for your preference?  URLs? =)

HTH,

Eddie

- Original Message - 
From: Sean M Alderman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 20, 2002 1:42 PM
Subject: Re: outsiders cannot brows my site in tomcat


 Do you mean for Dynamic DNS?  Try http://www.dyndns.org for starters. 
 There are others -
 http://www.google.com/search?hl=enq=dynamic+dns
 



Re: Null Pointer Exception - would you please take a look?

2002-06-18 Thread Eddie Bush

I'm not exactly sure what's going on.  It happens when I try to visit an
area of a site that has a security constraint.  My user authentication
database is in a RDBMS, and I use the JDBC realm to connect to it.  I'm
never supplied with a prompt to login.

- Original Message -
From: John Gregg [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, June 17, 2002 5:38 PM
Subject: RE: Null Pointer Exception - would you please take a look?


 Is the String you're setting null?  I can't say how your driver handles
that
 case, but maybe it doesn't like it.  The jdk javadocs don't mention it.
Is
 the String too big for the column, does it have weird characters in it?
If
 you can turn on debugging for the driver, try that.  If you have the
source,
 recompile with debugging on and run in a debugger.  If you're desperate
 enough, decompile the bytecode, recompile with debugging on, and run it in
 the debugger.  You didn't hear it from me.

 john


 -Original Message-
 From:
 [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED].
 org]On Behalf Of Eddie Bush
 Sent: Monday, June 17, 2002 5:18 PM
 To: Tomcat Users Mailing List
 Subject: Null Pointer Exception - would you please take a look?


 I'm running Tomcat 4.0.1, InterBase 6 Super Server, and Apache 1.3.22.

 Everything works super, until I throw in a JDBC realm and try to connect
to
 an application protected by a security constraint.  When I do, I get the
 following exception in my server log:

 2002-06-17 12:29:28
[org.apache.catalina.connector.warp.WarpRequestHandler]
 java.lang.NullPointerException
 at interbase.interclient.PreparedStatement.setString(Unknown Source)
 at org.apache.catalina.realm.JDBCRealm.credentials(JDBCRealm.java)
 at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java)
 at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java)

 ... and it continues.  I hate to paste it all unless it's necessary to do
 so.

 My thought was that someone may have experienced this - or that it may be
a
 known issue.  I checked the docs to ensure that my driver implements
 PreparedStatement and setString() ... and it does.  It's a JDBC 1.0 driver
 though.

 What would be the recommended course of action?  I'm not sure what's going
 on here for certain, and that's why I'm posting.

 Thanks in Advance!

 Eddie




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



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




Re: Null Pointer Exception - would you please take a look?

2002-06-18 Thread Eddie Bush

Alas, I do not have code to the JDBCRealm =(

I figured that this would be a cut-and-dried problem -- either the JDBCRealm
implementation or perhaps my driver behaving poorly.  In either case, I
figured someone would be able to tell right off my my description, but
perhaps I described the circumstance poorly.

It happens when I visit a page that has a security constraint.  I'm never
offered a login dialog.  I'm using BASIC authentication - no SSL --
transport-guarantee is NONE.  I'm just trying to get the BASIC auth down and
then move on to configuring SSL and doing it properly via form-based login.

Thanks!

- Original Message -
From: August Detlefsen [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, June 17, 2002 6:14 PM
Subject: RE: Null Pointer Exception - would you please take a look?


 Are you sure you are actually getting a Connection?
 Are you sure that your PreparedStatement itself is not null?

 Can you post the offending code?



 --- John Gregg [EMAIL PROTECTED] wrote:
  Is the String you're setting null?  I can't say how your driver
  handles that
  case, but maybe it doesn't like it.  The jdk javadocs don't mention
  it.  Is
  the String too big for the column, does it have weird characters in
  it?  If
  you can turn on debugging for the driver, try that.  If you have the
  source,
  recompile with debugging on and run in a debugger.  If you're
  desperate
  enough, decompile the bytecode, recompile with debugging on, and run
  it in
  the debugger.  You didn't hear it from me.
 
  john
 
 
  -Original Message-
  From:
  [EMAIL PROTECTED]
 
 [mailto:[EMAIL PROTECTED].
  org]On Behalf Of Eddie Bush
  Sent: Monday, June 17, 2002 5:18 PM
  To: Tomcat Users Mailing List
  Subject: Null Pointer Exception - would you please take a look?
 
 
  I'm running Tomcat 4.0.1, InterBase 6 Super Server, and Apache
  1.3.22.
 
  Everything works super, until I throw in a JDBC realm and try to
  connect to
  an application protected by a security constraint.  When I do, I get
  the
  following exception in my server log:
 
  2002-06-17 12:29:28
  [org.apache.catalina.connector.warp.WarpRequestHandler]
  java.lang.NullPointerException
  at interbase.interclient.PreparedStatement.setString(Unknown
  Source)
  at
  org.apache.catalina.realm.JDBCRealm.credentials(JDBCRealm.java)
  at
  org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java)
  at
  org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java)
 
  ... and it continues.  I hate to paste it all unless it's necessary
  to do
  so.
 
  My thought was that someone may have experienced this - or that it
  may be a
  known issue.  I checked the docs to ensure that my driver implements
  PreparedStatement and setString() ... and it does.  It's a JDBC 1.0
  driver
  though.
 
  What would be the recommended course of action?  I'm not sure what's
  going
  on here for certain, and that's why I'm posting.
 
  Thanks in Advance!
 
  Eddie
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com

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



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




Re: Null Pointer Exception - would you please take a look?

2002-06-18 Thread Eddie Bush


- Original Message -
From: John Gregg [EMAIL PROTECTED]


 Is the String you're setting null?  I can't say how your driver handles
that
 case, but maybe it doesn't like it.  The jdk javadocs don't mention it.
Is
 the String too big for the column, does it have weird characters in it?
If

There are no special characters in that  field, although I never imagined
that the field size might cause a problem.  I will check that.

Thank You!



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




  1   2   >