Re: tomcat 4.1.12

2003-03-21 Thread puneet sachar
hi ,

r u the same kapil form deshbandhu colleage...

Let me know

Puneet

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43

2003-03-21 Thread Ivan F. Martinez

On Fri, 21 Mar 2003 13:50:41 -
"Marion McKelvie" <[EMAIL PROTECTED]> wrote:

MM> Ivan,
MM> 
MM> Thanks for your reply.  When you restart Apache, do the threads just build
MM> up again?

Yes, tomcat gives a lot of messages like this :
512488 [Thread-73] INFO common.ChannelSocket  - server has been restarted or reset 
this connection

And it returns to work for some time again.
Apparently tomcat or mod_jk does not close the connection after serving the request.

MM> If you can't see any difference between the two configurations, do you think
MM> there may be a difference between the libraries being used?

I'm checked better, and the difference is :

Case when works (USING 2 MACHINES):
   RedHat 8, Apache 2.0.40 
   RedHat 7.3 Tomcat 4.1.18 

Case when I have problems
   RedHat 8, Apache 2.0.40 Tomcat 4.1.18 (SAME MACHINE)

The 2 use the same SUN SDK 1.4.1-01


But I have tried  today many combinations in the single machine :
SUNSDK 1.4.1, IBM SDK 1.3, 1.3.1, 1.4.
Apache 2.0.40 and 2.0.43
Tomcat 4.1.18 and 4.1.24

All configurations have the same problem.

All machines have up to date , kernels from redhat. And all other updates.

Last week I have made some tests with mod_jk2 with same problem.





MM> Marion
MM> 
MM> -Original Message-
MM> From: Ivan F. Martinez [mailto:[EMAIL PROTECTED]
MM> Sent: 21 March 2003 12:59
MM> To: Tomcat Users List
MM> Subject: Re: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43
MM> 
MM> 
MM> 
MM> On Thu, 20 Mar 2003 09:40:14 -
MM> "Marion McKelvie" <[EMAIL PROTECTED]> wrote:
MM> 
MM> MM> Hello again,
MM> MM>
MM> MM> Is anyone running with the combination of Tomcat 4.1.18, Apache 2.0.43
MM> and
MM> MM> mod_jk 2.0.43 on Redhat 8?
MM> MM>
MM> 
MM> I have one machine that works fine, and other with same problem as you.
MM> When you restart apache everything works again.
MM> 
MM> I have tested with mod_jk and mod_jk2.
MM> 
MM> I didn't find the difference between the two machines.
MM> 
MM> MM> Marion
MM> MM>
MM> MM> -Original Message-
MM> MM> From: Marion McKelvie [mailto:[EMAIL PROTECTED]
MM> MM> Sent: 19 March 2003 10:38
MM> MM> To: [EMAIL PROTECTED]
MM> MM> Subject: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43
MM> MM>
MM> MM>
MM> MM> Hi,
MM> MM>
MM> MM> I have an installation using Tomcat 4.1.18, Apache 2.0.43 and mod_jk
MM> 2.0.43
MM> MM> running on Redhat 8, all installed from rpms as executables (no building
MM> MM> from source).
MM> MM>
MM> MM> Everything works fine for a while until I get the following error in
MM> MM> catalina.out
MM> MM>
MM> MM> 19-Mar-2003 10:00:20 org.apache.tomcat.util.log.CommonLogHandler log
MM> MM> INFO: All threads are busy, waiting. Please increase maxThreads or check
MM> the
MM> MM> servlet sttus75 75
MM> MM>
MM> MM> I can get this error just by playing with the Tomcat examples for long
MM> MM> enough (presumably after 75 activities).  It's a bit like each thread is
MM> not
MM> MM> being released after it's used.  I have a comparable installation which
MM> runs
MM> MM> without problems but it's using Tomcat 4.1.12 with Apache 1.3.22.
MM> MM>
MM> MM> Server.xml is pretty much as installed by default (I've commented out
MM> the
MM> MM> 8080 connector) so it's using the Coyote connector:
MM> MM>
MM> MM>  MM>port="8009" minProcessors="5" maxProcessors="75"
MM> MM>enableLookups="true" redirectPort="8443"
MM> MM>acceptCount="10" debug="0" connectionTimeout="0"
MM> MM>useURIValidationHack="false"
MM> MM>
MM> MM> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
MM> MM>
MM> MM> If I change the timeout to 2, catalina.out reports that the timeout
MM> has
MM> MM> been reached.
MM> MM>
MM> MM> workers.properties is as installed by default except that I've corrected
MM> the
MM> MM> java_home path.
MM> MM>
MM> MM> mod_jk.conf is as follows
MM> MM>
MM> MM> JkWorkersFile /etc/httpd/conf/workers.properties
MM> MM> JkLogFile /var/log/httpd/mod_jk.log
MM> MM> JkLogLevel error
MM> MM>
MM> MM>
MM> MM> #
MM> MM> # Root context mounts for Tomcat
MM> MM> #
MM> MM> JkMount /*.jsp ajp13
MM> MM> JkMount /servlet/* ajp13
MM> MM>
MM> MM> #
MM> MM> # Auto configuration for the /examples context starts.
MM> MM> #
MM> MM>
MM> MM> #
MM> MM> # The following line makes apache aware of the location of the /examples
MM> MM> context
MM> MM> #
MM> MM> Alias /examples "/var/tomcat4/webapps/examples"
MM> MM> 
MM> MM> Options Indexes FollowSymLinks
MM> MM> 
MM> MM>
MM> MM> #
MM> MM> # The following line mounts all JSP files and the /servlet/ uri to
MM> tomcat
MM> MM> #
MM> MM> JkMount /examples/servlet/* ajp13
MM> MM> JkMount /examples/*.jsp ajp13
MM> MM>
MM> MM> #
MM> MM> # The following line prohibits users from directly access WEB-INF
MM> MM> #
MM> MM> 
MM> MM> AllowOverride None
MM> MM> deny from all
MM> MM> 
MM> MM>
MM> MM> #

Re: [OT] Servlet process issue

2003-03-21 Thread Will Hartung
> From: "Tam, Michael" <[EMAIL PROTECTED]>
> Sent: Friday, March 21, 2003 12:06 PM


> Or better, what is the best way to spawn another process to perform the
> validation and loading after the files being uploaded to avoid the client
> interferes the process accidentally?

The best way to do what you propose is have your Servlets upload the data
and then place a request for the further processing into a queue. At that
point you return to client saying "Processing you request, come back
later..." or some such thing. It obviously depends on whether the client
actually cares about the outcome or not.

Then on the other end of the queue is a process taking requests, performing
further processing on them and perhaps updating the status of the overall
job (so it can report it back to the client if they ask for it).

There are several ways you can do this kind of thing.

One, is to have the queue be a simple container (like an ArrayList) that has
it's overall access guarded by synchronized methods. This queue live within
the JVM, and another thread can be running endlessly querying the queue for
requests, and then acting upon them.

Another technique is to have the queue implemented within a database, and
then a completely seperate process, written in anything that can access the
database, can get access to the jobs and process them.

The Java Way of doing this kind of the is with JMS, which allows you to
abstact the whole queuing and monitoring aspects of the system. Here you
have a Publisher, which creates requests, and Subscribers, which act upon
then. Depending on the JMS system, these can all be within the same JVM, or
on completely different machines. It also makes it easy to have several
Subscribers acting upon the same Topic. A contrived example would be that
you have your Servlet acting as a Publisher, adding request as fast as your
users can submit them. Then, since your processing is CPU intensive, you set
up 10 different machines, each having the bandwidth to process 3 different
requests simultaneously. So, each machine creates 3 Subscribers, and you end
up with 30 Subscribers total.

The JMS system is fine way to pull things like this off, and the various
implementations have assorted features that differ on robustness,
scalability and performance.

However, if it were me, I'd probably roll my own simple queue and fire off a
couple of processing threads within the JVM of the Servlet container, have a
Servlet that initializes this whole thing loaded-at-startup within the
web.xml and be done with it. Make sure you persist the requests that have
not been processed yet so should the Servlet container quit, you can reload
and process those requests later after restart.

Like I said, JMS does exactly what you want, but if your needs are fairly
limited, writing your own is not overly complicated. A simple queue, a few
threads, a little DB work.

http://openjms.sourceforge.net/ is a free implementation, though I have not
used it.

Regards,

Will Hartung
([EMAIL PROTECTED])




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



Authentication with Tomcat/Apache Question

2003-03-21 Thread Mete Kural
Hi,

I am perplexed at this interesting problem. We want to use JDBCRealm to authenticate 
users in Tomcat, but yet we want to serve static stuff via Apache to improve 
performance. If we set up Tomcat as a worker for Apache using the JK2 connector, I 
don't see how requests for static files are going to be authenticated via JDBCRealm, 
since Tomcat doesn't even know about these static requests in the first place due to 
the fact that Apache handles them right away without dispatching them to Tomcat. I'm 
thinking that if we could somehow set up Apache to be a worker for Tomcat, and Tomcat 
received all requests and dispatched those that are static to Apache, then all 
requests would be authenticated via JDBCRealm. But I don't know how to do that neither 
if this is possible at all. Do you have any ideas on how to authenticate "every 
request" with JDBCRealm yet serve only static stuff with Apache.

Thanks,
Mete


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



RE: Custom JDBCRealm

2003-03-21 Thread Raible, Matt
I mean to say - the "type" of realm is irrelevant.  I've tested this
strategy using a JNDIRealm with LDAP, a MemoryRealm with tomcat-users.xml, a
JDBCRealm with MySQL/Oracle, and even a JAASRealm that talks to NT - works
fine with all and should be portable to other appservers.  If you extend a
Tomcat class and create your own authenticator - you'll have to add tomcat
jars to your project.

HTH,

Matt

> -Original Message-
> From: Raible, Matt 
> Sent: Friday, March 21, 2003 4:12 PM
> To: 'Tomcat Users List'
> Subject: RE: Custom JDBCRealm
> 
> 
> Nope, I just use form-based authentication - the realm is 
> irrelevant.  I
> call request.getRemoteUser() to get the user's information 
> and then look it
> up in a database (could be ldap).  Tomcat does the 
> authorization for me.
> 
> > -Original Message-
> > From: awc [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 21, 2003 3:06 PM
> > To: Tomcat Users List
> > Subject: Re: Custom JDBCRealm
> > 
> > 
> > may be this is dumb question. So do you run two filters? one 
> > for authticate and
> > to check authorization and other to load the customo objects??
> > 
> > Thanks Matt..
> > 
> > .anil
> > 
> > // user authenticated, empty user object
> > if ((username != null) && (userForm == null)) {
> > ses = getSession();
> > 
> > UserManager mgr =
> > new UserManagerImpl((String)
> > ctx.getAttribute(Constants.DAO_TYPE));
> > UserForm user = mgr.getUser(ses, username);
> > session.setAttribute(Constants.USER_KEY, user);
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > "Raible, Matt" wrote:
> > 
> > > Why not just add a filter that has the same  
> > as your protected
> > > resource.  I do this, and if there's not a user object in 
> > the session, I
> > > populate it from a database.
> > >
> > > Example at http://tinyurl.com/7xb1
> > >
> > > HTH,
> > >
> > > Matt
> > >
> > > > -Original Message-
> > > > From: awc [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, March 21, 2003 2:42 PM
> > > > To: 'Tomcat Users List'
> > > > Subject: Custom JDBCRealm
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I want to add more stuff to user session while user logs 
> > in. The only
> > > > way I see to do this is to write custom JDBCRealm class 
> > which extnds
> > > > org.apache.catalina.realm.JDBCRealm or implement
> > > > org.apache.catalina.realm.RealmBase class.
> > > >
> > > > This custom class will have more initializing 
> parameters too. Any
> > > > thoughts on this from one who already did sort of thing??
> > > >
> > > > I am going to use this one with securityFilere from
> > > > www.securityfilter.org.
> > > >
> > > > Thank you in advance for any replies.
> > > >
> > > > .anil
> > > >
> > > >
> > > >
> > > > 
> > 
> -
> > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail: 
> > [EMAIL PROTECTED]
> > > >
> > >
> > > 
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Custom JDBCRealm

2003-03-21 Thread Raible, Matt
Nope, I just use form-based authentication - the realm is irrelevant.  I
call request.getRemoteUser() to get the user's information and then look it
up in a database (could be ldap).  Tomcat does the authorization for me.

> -Original Message-
> From: awc [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 3:06 PM
> To: Tomcat Users List
> Subject: Re: Custom JDBCRealm
> 
> 
> may be this is dumb question. So do you run two filters? one 
> for authticate and
> to check authorization and other to load the customo objects??
> 
> Thanks Matt..
> 
> .anil
> 
> // user authenticated, empty user object
> if ((username != null) && (userForm == null)) {
> ses = getSession();
> 
> UserManager mgr =
> new UserManagerImpl((String)
> ctx.getAttribute(Constants.DAO_TYPE));
> UserForm user = mgr.getUser(ses, username);
> session.setAttribute(Constants.USER_KEY, user);
> 
> 
> 
> 
> 
> 
> 
> "Raible, Matt" wrote:
> 
> > Why not just add a filter that has the same  
> as your protected
> > resource.  I do this, and if there's not a user object in 
> the session, I
> > populate it from a database.
> >
> > Example at http://tinyurl.com/7xb1
> >
> > HTH,
> >
> > Matt
> >
> > > -Original Message-
> > > From: awc [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, March 21, 2003 2:42 PM
> > > To: 'Tomcat Users List'
> > > Subject: Custom JDBCRealm
> > >
> > >
> > > Hi,
> > >
> > > I want to add more stuff to user session while user logs 
> in. The only
> > > way I see to do this is to write custom JDBCRealm class 
> which extnds
> > > org.apache.catalina.realm.JDBCRealm or implement
> > > org.apache.catalina.realm.RealmBase class.
> > >
> > > This custom class will have more initializing parameters too. Any
> > > thoughts on this from one who already did sort of thing??
> > >
> > > I am going to use this one with securityFilere from
> > > www.securityfilter.org.
> > >
> > > Thank you in advance for any replies.
> > >
> > > .anil
> > >
> > >
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Custom JDBCRealm

2003-03-21 Thread awc
Hi Carl,

Ok, I found it.

Thanks

.anil

Carl Maib wrote:

> i am attempting the exact same thing, but have been advised it would be
> better to override the FormAuthenticator. this gives you direct access to
> the session.
>
> the solution seems perfect, however, i i can't seem to get past
> classNotFound exceptions. i am not familiar with how to link catalina
> classes and the Class Loader docs are not giving me the answer.
>
> i have configured server.xml to contain my custom valve, the class which
> overrides FormAuthenticator. i have placed this class in common/classes. i
> get class not found exceptions on FormAuthenticator bcz my webapp is not
> able to reference the necessary objects in catalina.jar.
>
> please let me know if you get this solution to work. thanks!
>
> - Original Message -
> From: "awc" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Friday, March 21, 2003 4:41 PM
> Subject: Custom JDBCRealm
>
> > Hi,
> >
> > I want to add more stuff to user session while user logs in. The only
> > way I see to do this is to write custom JDBCRealm class which extnds
> > org.apache.catalina.realm.JDBCRealm or implement
> > org.apache.catalina.realm.RealmBase class.
> >
> > This custom class will have more initializing parameters too. Any
> > thoughts on this from one who already did sort of thing??
> >
> > I am going to use this one with securityFilere from
> > www.securityfilter.org.
> >
> > Thank you in advance for any replies.
> >
> > .anil
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Custom JDBCRealm

2003-03-21 Thread awc
Hi Carl,

where is FormAuthenticator??

Thanks

.anil

Carl Maib wrote:

> i am attempting the exact same thing, but have been advised it would be
> better to override the FormAuthenticator. this gives you direct access to
> the session.
>
> the solution seems perfect, however, i i can't seem to get past
> classNotFound exceptions. i am not familiar with how to link catalina
> classes and the Class Loader docs are not giving me the answer.
>
> i have configured server.xml to contain my custom valve, the class which
> overrides FormAuthenticator. i have placed this class in common/classes. i
> get class not found exceptions on FormAuthenticator bcz my webapp is not
> able to reference the necessary objects in catalina.jar.
>
> please let me know if you get this solution to work. thanks!
>
> - Original Message -
> From: "awc" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Friday, March 21, 2003 4:41 PM
> Subject: Custom JDBCRealm
>
> > Hi,
> >
> > I want to add more stuff to user session while user logs in. The only
> > way I see to do this is to write custom JDBCRealm class which extnds
> > org.apache.catalina.realm.JDBCRealm or implement
> > org.apache.catalina.realm.RealmBase class.
> >
> > This custom class will have more initializing parameters too. Any
> > thoughts on this from one who already did sort of thing??
> >
> > I am going to use this one with securityFilere from
> > www.securityfilter.org.
> >
> > Thank you in advance for any replies.
> >
> > .anil
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



HOT redeploy of webapps using Tomcat 4.1.18?

2003-03-21 Thread Johannes Fiala
Hi there,

Has anybody done a hot redeploy of a web application context using Tomcat?

What I've got to work so far:
*) simply overwrite JARs in the /webapps/myapp/WEB-INF/lib directory and 
reloading the application context runs ok
*) however, if you really want to completeley redeploy a web application, 
I currently have not found any other solution than having to stop and 
start the application (which means putting the whole application down).

==> Is there really no way for simply exchanging a webapp during runtime?
What about the most simple solution: 
1.) putting up a new version (e.g. myapp2)
2.) using a redirect to redirect from myapp -> myapp2 (without the user 
noticing it)

this would also make it easy to step back if troubles occur.
any thoughts on this matter?

Johannes

Re: Custom JDBCRealm

2003-03-21 Thread awc
may be this is dumb question. So do you run two filters? one for authticate and
to check authorization and other to load the customo objects??

Thanks Matt..

.anil

// user authenticated, empty user object
if ((username != null) && (userForm == null)) {
ses = getSession();

UserManager mgr =
new UserManagerImpl((String)
ctx.getAttribute(Constants.DAO_TYPE));
UserForm user = mgr.getUser(ses, username);
session.setAttribute(Constants.USER_KEY, user);







"Raible, Matt" wrote:

> Why not just add a filter that has the same  as your protected
> resource.  I do this, and if there's not a user object in the session, I
> populate it from a database.
>
> Example at http://tinyurl.com/7xb1
>
> HTH,
>
> Matt
>
> > -Original Message-
> > From: awc [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 21, 2003 2:42 PM
> > To: 'Tomcat Users List'
> > Subject: Custom JDBCRealm
> >
> >
> > Hi,
> >
> > I want to add more stuff to user session while user logs in. The only
> > way I see to do this is to write custom JDBCRealm class which extnds
> > org.apache.catalina.realm.JDBCRealm or implement
> > org.apache.catalina.realm.RealmBase class.
> >
> > This custom class will have more initializing parameters too. Any
> > thoughts on this from one who already did sort of thing??
> >
> > I am going to use this one with securityFilere from
> > www.securityfilter.org.
> >
> > Thank you in advance for any replies.
> >
> > .anil
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Tomcat's Admin servlet

2003-03-21 Thread Jake Robb
Sorry... I figured it out.  I needed to change the reference in
$CATALINA_HOME/webapps/admin.xml.

-Jake

- Original Message -
From: "Jake Robb" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 4:38 PM
Subject: Tomcat's Admin servlet


> Tomcat's admin servlet is in my way.  I have my own servlet called admin,
> which I would like accessible using http://hostname/admin/.
>
> So I went to $CATALINA_HOME/server/webapps and renamed the "admin"
directory
> to "tomcatadmin", stopped and started Tomcat, and then tried to navigate
to
> /tomcatadmin/.  I got a 404 error from Tomcat, with the message "The
> requested resource (/tomcatadmin/) is not available."
>
> I examined server.xml, $CATALINA_HOME/conf/web.xml, and
> tomcatadmin/WEB-INF/web.xml, and I can find nothing that I think might be
> the source of the problem.
>
> What do I need to do to make the default admin servlet show up when I go
to
> http://hostname/tomcatadmin/?
>
> Thanks,
>
> Jake Robb
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Ant redeploy, Apache (mod_webapp) & Tomcat 4.1

2003-03-21 Thread Johannes Fiala

Return Receipt
   
Your  Ant redeploy, Apache (mod_webapp) & Tomcat 4.1   
document   
:  
   
was   Johannes Fiala/Johannes Fiala
received   
by:
   
at:   21.03.2003 23:01:55  
   





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



Re: Custom JDBCRealm

2003-03-21 Thread Carl Maib
i am attempting the exact same thing, but have been advised it would be
better to override the FormAuthenticator. this gives you direct access to
the session.

the solution seems perfect, however, i i can't seem to get past
classNotFound exceptions. i am not familiar with how to link catalina
classes and the Class Loader docs are not giving me the answer.

i have configured server.xml to contain my custom valve, the class which
overrides FormAuthenticator. i have placed this class in common/classes. i
get class not found exceptions on FormAuthenticator bcz my webapp is not
able to reference the necessary objects in catalina.jar.

please let me know if you get this solution to work. thanks!

- Original Message -
From: "awc" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 4:41 PM
Subject: Custom JDBCRealm


> Hi,
>
> I want to add more stuff to user session while user logs in. The only
> way I see to do this is to write custom JDBCRealm class which extnds
> org.apache.catalina.realm.JDBCRealm or implement
> org.apache.catalina.realm.RealmBase class.
>
> This custom class will have more initializing parameters too. Any
> thoughts on this from one who already did sort of thing??
>
> I am going to use this one with securityFilere from
> www.securityfilter.org.
>
> Thank you in advance for any replies.
>
> .anil
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: Custom JDBCRealm

2003-03-21 Thread Raible, Matt
Why not just add a filter that has the same  as your protected
resource.  I do this, and if there's not a user object in the session, I
populate it from a database.

Example at http://tinyurl.com/7xb1

HTH,

Matt

> -Original Message-
> From: awc [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 2:42 PM
> To: 'Tomcat Users List'
> Subject: Custom JDBCRealm
> 
> 
> Hi,
> 
> I want to add more stuff to user session while user logs in. The only
> way I see to do this is to write custom JDBCRealm class which extnds
> org.apache.catalina.realm.JDBCRealm or implement
> org.apache.catalina.realm.RealmBase class.
> 
> This custom class will have more initializing parameters too. Any
> thoughts on this from one who already did sort of thing??
> 
> I am going to use this one with securityFilere from
> www.securityfilter.org.
> 
> Thank you in advance for any replies.
> 
> .anil
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: [OT] Servlet process issue

2003-03-21 Thread Tam, Michael
Hi Eric,

I do understand the Servlet is a request based ( new request -> new thread )
and how to avoid this with session attribute .. etc.

However, my concern was under the same request, if a client make a request
to (A), which passes to(B) and (B) passes to (C) and so on, then a client
could terminate the process by quitting the browser or "stop" the browser am
I correct?  If so, my question would be how to avoid the client to interfere
the process after (A) is completed [If (A) is terminate before it is
complete, then the entire process should terminate and it is ok]?

Regards,
Michael

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 12:31 PM
To: Tomcat Users List
Subject: Re: [OT] Servlet process issue




Tam, Michael wrote:
> Hi all,
> 
> Sorry for the [OT].  Since many of you are the experts on servlet
> technology, I'd like to ask for suggestions or comments on the servlet
> process I am working on.
> 
> Process:
> 1)  I have a form html (A) to upload data files through an UploadServlet
(B)
> which stores the files in the file system.
> 2) Then (B) will forward the request to ValidationServlet (C) which reads
> the files for validation and generates log file.
> 3) Then (C) will forward the request to LoadServlet (D) which use the log
> file to load the clean data to DB.

A servlet is a highly specialized kind of object that is specifically 
designed to receive, process, and respond to requests.  In the case of 
HttpServlets, this would be HTTP requests.

It seems that unless your ValidationServlet and LoadServlet are ever 
going to be directly accessed with HTTP requests, they're probably 
better off being written as regular Java classes (like Validator and 
Loader).  I do not know anything about the overhead incurred by making 
them servlets, but it just seems that by subclassing HttpServlet for 
these objects, at least for the use case you've described, you're 
inheriting a lot more functionality than you'd ever need.

This will also simplify the design question you're asking -- you don't 
have to "backtrack" anywhere, your UploadServlet can just do whatever it 
is you want to be done when the request processing is finished (dispatch 
to a JSP saying "thank you"?).

Note that when your HTTP request is sent to UploadServlet, UploadServlet 
/is/ a new thread, so the user should not be able to interfere with this 
process.  If the user tries clicking "Submit" again, a totally new 
UploadServlet will respond.  If you wish to disable this ability, there 
is a technique involving the setting of a flag in the user's session 
that prevents any further requests being received until the processing 
is done.  But you have to implement this yourself.  The whole technique 
is detailed at 



HTH,

Erik


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

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



RE: tomcat responds with localhost, but refuses the connection w/ mach inename

2003-03-21 Thread Davis, Jeremy
Ahhh, found that I wasn't completely starting, it was hanging looking for
the keystore file, which had the wrong path, so shutting down was not
happening, cause it was not up and listening on that port yet.

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:21 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/ mach inename



Don't know...I've never seen that command before.  "Connection Refused" 
typically means there's nothing listening on that port, in this case 8007.

John

On Fri, 21 Mar 2003 16:16:42 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

> Maybe you can give me some insight into why I am having problems with the
> tomcat.sh stop command.  When I do "./tomcat.sh stop -host localhost" the
> ajp12 connector returns "Error stopping Tomcat with Ajp12 on
> localhost.localdomain/127.0.0.1:8007 java.net.ConnectException: 
> Connection
> Refused".
>
> Jeremy Davis
> Senior Support Analyst
> BPI Marketplace Integration
> 614.760.8941
> 1.800.436.8726 - Support Line
>
>
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 4:00 PM
> To: Tomcat Users List
> Subject: Re: tomcat responds with localhost, but refuses the connection
> w/ mach inename
>
>
>
> Cool.  Tomcat still has its own resolution rules, though.
>
> John
>
> On Fri, 21 Mar 2003 15:53:40 -0500, Davis, Jeremy 
> <[EMAIL PROTECTED]> wrote:
>
>> Thanks, I have found that it was not tomcat at all, the issue is a
>> networking mismatch between the dns name, and the real ip address are
>> completely different.  Using the machinename was having dns point me to 
>> a
>> box that was not mine, so of course the connection was refused.  Thanks 
>> for
>> the help though.
>>
>> Jeremy Davis
>> Senior Support Analyst
>> BPI Marketplace Integration
>> 614.760.8941
>> 1.800.436.8726 - Support Line
>>
>>
>> -Original Message-
>> From: John Turner [mailto:[EMAIL PROTECTED]
>> Sent: Friday, March 21, 2003 2:52 PM
>> To: Tomcat Users List
>> Subject: Re: tomcat responds with localhost, but refuses the connection
>> w/ mach inename
>>
>>
>>
>> That's one way.  It pretty much comes down to how you want to handle 
>> Contexts.  If you want a particular Context to be available for a 
>> particular domain/host and that domain/host only, you would use a 
>> separate Host container.
>>
>> John
>>
>> On Fri, 21 Mar 2003 14:39:39 -0500, Davis, Jeremy 
>> <[EMAIL PROTECTED]> wrote:
>>
>>> I was wondering, I saw the virtual host configuration documentation, 
>>> and was
>>> about to attempt such a thing.  So I should add an Alias tag, under a 
>>> host
>>> tag in the server.xml?
>>>
>>> Jeremy Davis
>>> Senior Support Analyst
>>> BPI Marketplace Integration
>>> 614.760.8941
>>> 1.800.436.8726 - Support Line
>>>
>>>
>>> -Original Message-
>>> From: John Turner [mailto:[EMAIL PROTECTED]
>>> Sent: Friday, March 21, 2003 2:37 PM
>>> To: Tomcat Users List
>>> Subject: Re: tomcat responds with localhost, but refuses the connection
>>> w/mach inename
>>>
>>>
>>>
>>> Did you configure a virtual host for machinename in server.xml, or just 
>>> leave it with localhost?  Tomcat is literal, there is no catch-all like 
>>> there is with Apache.  That is, unless you have a Host container for 
>>> your hostname or an Alias directive for an already existing virtual 
>>> host, Tomcat will not answer the request.
>>>
>>>  - will only take requests for localhost 
>>> and none other
>>>
>>> 
>>> machinename - will take requests for localhost + 
>>> machinename
>>>
>>>  - will take requests for machinename but 
>>> not localhost
>>>
>>> John
>>>
>>> On Fri, 21 Mar 2003 14:32:17 -0500, Davis, Jeremy 
>>> <[EMAIL PROTECTED]> wrote:
>>>
 I got red hat 8.0, jdk 1.3.1_07, and tomcat 3.3.1a installed.  If on 
 the
 server, I do localhost:8080, it works ok and comes up with the welcome 
 page,
 but when I do machinename:8080 it comes back telling me the connection 
 was
 refused?

 Thanks,

 Jeremy Davis
 Senior Support Analyst
 BPI Marketplace Integration
 614.760.8941
 1.800.436.8726 - Support Line


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


>>>
>>>
>>>
>>
>>
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

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



Tomcat's Admin servlet

2003-03-21 Thread Jake Robb
Tomcat's admin servlet is in my way.  I have my own servlet called admin,
which I would like accessible using http://hostname/admin/.

So I went to $CATALINA_HOME/server/webapps and renamed the "admin" directory
to "tomcatadmin", stopped and started Tomcat, and then tried to navigate to
/tomcatadmin/.  I got a 404 error from Tomcat, with the message "The
requested resource (/tomcatadmin/) is not available."

I examined server.xml, $CATALINA_HOME/conf/web.xml, and
tomcatadmin/WEB-INF/web.xml, and I can find nothing that I think might be
the source of the problem.

What do I need to do to make the default admin servlet show up when I go to
http://hostname/tomcatadmin/?

Thanks,

Jake Robb


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



Custom JDBCRealm

2003-03-21 Thread awc
Hi,

I want to add more stuff to user session while user logs in. The only
way I see to do this is to write custom JDBCRealm class which extnds
org.apache.catalina.realm.JDBCRealm or implement
org.apache.catalina.realm.RealmBase class.

This custom class will have more initializing parameters too. Any
thoughts on this from one who already did sort of thing??

I am going to use this one with securityFilere from
www.securityfilter.org.

Thank you in advance for any replies.

.anil



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



Re: tomcat responds with localhost, but refuses the connection w/ mach inename

2003-03-21 Thread John Turner
Don't know...I've never seen that command before.  "Connection Refused" 
typically means there's nothing listening on that port, in this case 8007.

John

On Fri, 21 Mar 2003 16:16:42 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

Maybe you can give me some insight into why I am having problems with the
tomcat.sh stop command.  When I do "./tomcat.sh stop -host localhost" the
ajp12 connector returns "Error stopping Tomcat with Ajp12 on
localhost.localdomain/127.0.0.1:8007 java.net.ConnectException: 
Connection
Refused".

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:00 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/ mach inename


Cool.  Tomcat still has its own resolution rules, though.

John

On Fri, 21 Mar 2003 15:53:40 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

Thanks, I have found that it was not tomcat at all, the issue is a
networking mismatch between the dns name, and the real ip address are
completely different.  Using the machinename was having dns point me to 
a
box that was not mine, so of course the connection was refused.  Thanks 
for
the help though.

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:52 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/ mach inename


That's one way.  It pretty much comes down to how you want to handle 
Contexts.  If you want a particular Context to be available for a 
particular domain/host and that domain/host only, you would use a 
separate Host container.

John

On Fri, 21 Mar 2003 14:39:39 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

I was wondering, I saw the virtual host configuration documentation, 
and was
about to attempt such a thing.  So I should add an Alias tag, under a 
host
tag in the server.xml?

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:37 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/mach inename


Did you configure a virtual host for machinename in server.xml, or just 
leave it with localhost?  Tomcat is literal, there is no catch-all like 
there is with Apache.  That is, unless you have a Host container for 
your hostname or an Alias directive for an already existing virtual 
host, Tomcat will not answer the request.

 - will only take requests for localhost 
and none other


machinename - will take requests for localhost + 
machinename

 - will take requests for machinename but 
not localhost

John

On Fri, 21 Mar 2003 14:32:17 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

I got red hat 8.0, jdk 1.3.1_07, and tomcat 3.3.1a installed.  If on 
the
server, I do localhost:8080, it works ok and comes up with the welcome 
page,
but when I do machinename:8080 it comes back telling me the connection 
was
refused?

Thanks,

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]












--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat responds with localhost, but refuses the connection w/ mach inename

2003-03-21 Thread Davis, Jeremy
Maybe you can give me some insight into why I am having problems with the
tomcat.sh stop command.  When I do "./tomcat.sh stop -host localhost" the
ajp12 connector returns "Error stopping Tomcat with Ajp12 on
localhost.localdomain/127.0.0.1:8007 java.net.ConnectException: Connection
Refused".  

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:00 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/ mach inename



Cool.  Tomcat still has its own resolution rules, though.

John

On Fri, 21 Mar 2003 15:53:40 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

> Thanks, I have found that it was not tomcat at all, the issue is a
> networking mismatch between the dns name, and the real ip address are
> completely different.  Using the machinename was having dns point me to a
> box that was not mine, so of course the connection was refused.  Thanks 
> for
> the help though.
>
> Jeremy Davis
> Senior Support Analyst
> BPI Marketplace Integration
> 614.760.8941
> 1.800.436.8726 - Support Line
>
>
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 2:52 PM
> To: Tomcat Users List
> Subject: Re: tomcat responds with localhost, but refuses the connection
> w/ mach inename
>
>
>
> That's one way.  It pretty much comes down to how you want to handle 
> Contexts.  If you want a particular Context to be available for a 
> particular domain/host and that domain/host only, you would use a 
> separate Host container.
>
> John
>
> On Fri, 21 Mar 2003 14:39:39 -0500, Davis, Jeremy 
> <[EMAIL PROTECTED]> wrote:
>
>> I was wondering, I saw the virtual host configuration documentation, and 
>> was
>> about to attempt such a thing.  So I should add an Alias tag, under a 
>> host
>> tag in the server.xml?
>>
>> Jeremy Davis
>> Senior Support Analyst
>> BPI Marketplace Integration
>> 614.760.8941
>> 1.800.436.8726 - Support Line
>>
>>
>> -Original Message-
>> From: John Turner [mailto:[EMAIL PROTECTED]
>> Sent: Friday, March 21, 2003 2:37 PM
>> To: Tomcat Users List
>> Subject: Re: tomcat responds with localhost, but refuses the connection
>> w/mach inename
>>
>>
>>
>> Did you configure a virtual host for machinename in server.xml, or just 
>> leave it with localhost?  Tomcat is literal, there is no catch-all like 
>> there is with Apache.  That is, unless you have a Host container for 
>> your hostname or an Alias directive for an already existing virtual 
>> host, Tomcat will not answer the request.
>>
>>  - will only take requests for localhost and 
>> none other
>>
>> 
>> machinename - will take requests for localhost + 
>> machinename
>>
>>  - will take requests for machinename but 
>> not localhost
>>
>> John
>>
>> On Fri, 21 Mar 2003 14:32:17 -0500, Davis, Jeremy 
>> <[EMAIL PROTECTED]> wrote:
>>
>>> I got red hat 8.0, jdk 1.3.1_07, and tomcat 3.3.1a installed.  If on 
>>> the
>>> server, I do localhost:8080, it works ok and comes up with the welcome 
>>> page,
>>> but when I do machinename:8080 it comes back telling me the connection 
>>> was
>>> refused?
>>>
>>> Thanks,
>>>
>>> Jeremy Davis
>>> Senior Support Analyst
>>> BPI Marketplace Integration
>>> 614.760.8941
>>> 1.800.436.8726 - Support Line
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

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



new sample "best practice" Struts data driven web app for Tomcat5/Resin 3

2003-03-21 Thread Vic Cekvenich
I released a new basicPortal implementation called "bP v0.8k" available 
for download on basicPortal.sf.net.

- The new version is same simple "bean has a dao helper design", but it 
uses ibatis.com db layer. (the "older" design used RowSet) Ibatis db 
layer is very nice.

- It now works fine and is tested with MYSQL. (and pgSQL)

- It is build for JSP 2.0 containers, like a late build of resin 3 and 
tomcat 5, tested to work with both (but could be converted to JSP 1.2 
with addition of the c tag)

- It now has a list of maps backed beans for more flexibility. (old 
design was rows of columns), aka list backed bean.

- It uses display tag (struts menu, JSP2, JSTL, tiles, etc.)

- Like before, the base action dispatches, DAO is a interface (so you do 
not have to use iBatis db layer) and beans knows how to CRUD, via very 
nice OO.

Of course... still more to do

.V



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


Re: tomcat responds with localhost, but refuses the connection w/ mach inename

2003-03-21 Thread John Turner
Cool.  Tomcat still has its own resolution rules, though.

John

On Fri, 21 Mar 2003 15:53:40 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

Thanks, I have found that it was not tomcat at all, the issue is a
networking mismatch between the dns name, and the real ip address are
completely different.  Using the machinename was having dns point me to a
box that was not mine, so of course the connection was refused.  Thanks 
for
the help though.

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:52 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/ mach inename


That's one way.  It pretty much comes down to how you want to handle 
Contexts.  If you want a particular Context to be available for a 
particular domain/host and that domain/host only, you would use a 
separate Host container.

John

On Fri, 21 Mar 2003 14:39:39 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

I was wondering, I saw the virtual host configuration documentation, and 
was
about to attempt such a thing.  So I should add an Alias tag, under a 
host
tag in the server.xml?

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:37 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/mach inename


Did you configure a virtual host for machinename in server.xml, or just 
leave it with localhost?  Tomcat is literal, there is no catch-all like 
there is with Apache.  That is, unless you have a Host container for 
your hostname or an Alias directive for an already existing virtual 
host, Tomcat will not answer the request.

 - will only take requests for localhost and 
none other


machinename - will take requests for localhost + 
machinename

 - will take requests for machinename but 
not localhost

John

On Fri, 21 Mar 2003 14:32:17 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

I got red hat 8.0, jdk 1.3.1_07, and tomcat 3.3.1a installed.  If on 
the
server, I do localhost:8080, it works ok and comes up with the welcome 
page,
but when I do machinename:8080 it comes back telling me the connection 
was
refused?

Thanks,

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread John Turner
For reference, you can download the binary package of tomcat 4.1.18 and 
expand it to some other location.  You don't have to start it up or 
anything, but the binary version is "unadulterated" and will show you how 
the full dir structure should be laid out, including ROOT and the others.

John

On Fri, 21 Mar 2003 15:49:55 -0500, Lisa Foister <[EMAIL PROTECTED]> 
wrote:

Thanks, my webapps directory was completely empty, I had to create the 
ROOT manually, but it did display a quick index.html I threw together, so 
at least now I know it's running and can find what it's looking for.

Lisa

On Friday, March 21, 2003 3:19 PM, John Turner [SMTP:tomcat- 
[EMAIL PROTECTED] wrote:
ROOT is /path/to/tomcat/webapps/ROOT.

The ROOT Context is defined in server.xml.

John




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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat responds with localhost, but refuses the connection w/ mach inename

2003-03-21 Thread Davis, Jeremy
Thanks, I have found that it was not tomcat at all, the issue is a
networking mismatch between the dns name, and the real ip address are
completely different.  Using the machinename was having dns point me to a
box that was not mine, so of course the connection was refused.  Thanks for
the help though.

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:52 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/ mach inename



That's one way.  It pretty much comes down to how you want to handle 
Contexts.  If you want a particular Context to be available for a 
particular domain/host and that domain/host only, you would use a separate 
Host container.

John

On Fri, 21 Mar 2003 14:39:39 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

> I was wondering, I saw the virtual host configuration documentation, and 
> was
> about to attempt such a thing.  So I should add an Alias tag, under a 
> host
> tag in the server.xml?
>
> Jeremy Davis
> Senior Support Analyst
> BPI Marketplace Integration
> 614.760.8941
> 1.800.436.8726 - Support Line
>
>
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 2:37 PM
> To: Tomcat Users List
> Subject: Re: tomcat responds with localhost, but refuses the connection
> w/mach inename
>
>
>
> Did you configure a virtual host for machinename in server.xml, or just 
> leave it with localhost?  Tomcat is literal, there is no catch-all like 
> there is with Apache.  That is, unless you have a Host container for your 
> hostname or an Alias directive for an already existing virtual host, 
> Tomcat will not answer the request.
>
>  - will only take requests for localhost and 
> none other
>
> 
> machinename - will take requests for localhost + 
> machinename
>
>  - will take requests for machinename but 
> not localhost
>
> John
>
> On Fri, 21 Mar 2003 14:32:17 -0500, Davis, Jeremy 
> <[EMAIL PROTECTED]> wrote:
>
>> I got red hat 8.0, jdk 1.3.1_07, and tomcat 3.3.1a installed.  If on the
>> server, I do localhost:8080, it works ok and comes up with the welcome 
>> page,
>> but when I do machinename:8080 it comes back telling me the connection 
>> was
>> refused?
>>
>> Thanks,
>>
>> Jeremy Davis
>> Senior Support Analyst
>> BPI Marketplace Integration
>> 614.760.8941
>> 1.800.436.8726 - Support Line
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

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



RE: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Lisa Foister
Thanks, my webapps directory was completely empty, I had to create the ROOT 
manually, but it did display a quick index.html I threw together, so at 
least now I know it's running and can find what it's looking for.

Lisa


On Friday, March 21, 2003 3:19 PM, John Turner 
[SMTP:[EMAIL PROTECTED] wrote:
>
>ROOT is /path/to/tomcat/webapps/ROOT.
>
>The ROOT Context is defined in server.xml.
>
>John





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



Re: Connection drops with tomcat-based game server (very long version)

2003-03-21 Thread Wouter Bijlsma
Hi Justin,

First of all, thanks for your reply. Some of the problems you describe look an awful 
lot like the ones we're experiencing:

On Fri, 21 Mar 2003 12:10:49 -0800
Justin Ruthenbeck <[EMAIL PROTECTED]> wrote:

> The application in general is a standard browser/server web based 
> application and uses standard J2EE Servlet components.  We originally
> tried to do the same thing for the messaging component, but ran into
> excessive overhead and connection maintenance issues as well. 
> Specifically, we saw clients who occasionally had to wait long periods
> for their responses (~1000ms) or simply never received them. 
> Performance was better if we connected directly to the appserver instead
> of through IIS or Apache, but we still saw occasional connection loss.

This is exactly what happens in our application. At first we'd get response times up 
to ~19000ms (yes, 19 seconds) when more than 10 users were logged in, but this was 
because the number of simultaneous threads per servlet was still at the default value 
(75). After bumping this number up to 1000 (which might very well be the source of a 
lot of other performance problems, but it's the only thing we could do to ensure 
reasonable performance for up to ~100 users) the response times stayed under ~1000ms. 
We already set up Tomcat as a standalone server because response times were *a lot* 
better without Apache.


> These losses really killed the user experience and sometimes caused
> clients to ultimately mangle their internal state.  I would add that we
> saw similar problems with Weblogic.

This is probably what happens in the client, resulting in the message polling thread 
to crash/deadlock/block/stop or something like that.

> After quite a bit of debugging, we were unable to determine a consistent
> cause of these problems, though it looked as though the appserver always
> responded if a valid Http request got to them.  This left us with the 
> browser and network as potential offenders.  Fortunately, we had the
> option of applets.

We debugged both client and server extensively, but we too could not locate a 
consistent cause of problems. I do have to note that the game client already IS an 
applet, and that we weren't using the HTTP protocol in the first place. I don't know 
if tomcat makes an HTTP request anyways, but we don't tell it to, we are only 
reading/writing data to the InputStream's/OutputStream's we got from the URLConnection 
(client side) and the ServletRequest (server side).

> With the finer grained control, error detection and 
> recovery is much easier and we haven't been losing connections like
> before since the mini-http client has full control of when and why
> connections are closed. 

Does this mean you don't have lost connection at all anymore?

> Don't know how much that helps, but it's always good to hear of others' 
> experiences.

Exactly :-)

Wouter



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



Re: [OT] Servlet process issue

2003-03-21 Thread Erik Price


Tam, Michael wrote:
Hi all,

Sorry for the [OT].  Since many of you are the experts on servlet
technology, I'd like to ask for suggestions or comments on the servlet
process I am working on.
Process:
1)  I have a form html (A) to upload data files through an UploadServlet (B)
which stores the files in the file system.
2) Then (B) will forward the request to ValidationServlet (C) which reads
the files for validation and generates log file.
3) Then (C) will forward the request to LoadServlet (D) which use the log
file to load the clean data to DB.
A servlet is a highly specialized kind of object that is specifically 
designed to receive, process, and respond to requests.  In the case of 
HttpServlets, this would be HTTP requests.

It seems that unless your ValidationServlet and LoadServlet are ever 
going to be directly accessed with HTTP requests, they're probably 
better off being written as regular Java classes (like Validator and 
Loader).  I do not know anything about the overhead incurred by making 
them servlets, but it just seems that by subclassing HttpServlet for 
these objects, at least for the use case you've described, you're 
inheriting a lot more functionality than you'd ever need.

This will also simplify the design question you're asking -- you don't 
have to "backtrack" anywhere, your UploadServlet can just do whatever it 
is you want to be done when the request processing is finished (dispatch 
to a JSP saying "thank you"?).

Note that when your HTTP request is sent to UploadServlet, UploadServlet 
/is/ a new thread, so the user should not be able to interfere with this 
process.  If the user tries clicking "Submit" again, a totally new 
UploadServlet will respond.  If you wish to disable this ability, there 
is a technique involving the setting of a flag in the user's session 
that prevents any further requests being received until the processing 
is done.  But you have to implement this yourself.  The whole technique 
is detailed at 


HTH,

Erik

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


Re: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread John Turner
ROOT is /path/to/tomcat/webapps/ROOT.

The ROOT Context is defined in server.xml.

John

On Fri, 21 Mar 2003 15:11:29 -0500, Lisa Foister <[EMAIL PROTECTED]> 
wrote:

Thanks, my Root was commented out, but Examples was available already.  
Now I'm just getting "The requested resource (/) is not available" so I 
guess my next question is, just where exactly is ROOT, or where is it 
defined?

Lisa

On Friday, March 21, 2003 2:04 PM, Rhodes, Phil 
[SMTP:[EMAIL PROTECTED] wrote:
From: Lisa Foister [mailto:[EMAIL PROTECTED]
> When I http to port
> 8080 on that machine, I now get a Tomcat-style error message (which at
> least indicates to me that it's probably running, if possibly
configured
> incorrectly), "HTTP Status 500 - No Context configured to process this
request".
> Shouldn't I be getting some sort of default home page?

I think the root context is disabled by default in server.xml.  Open it
up and
uncomment the context entry for root, and for /examples if you want.
Look for
the comments that say "Tomcat Root Context" and "Tomcat Examples 
Context"
(at least
mine does - tomcat 4.1.18.

-Phil



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





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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Lisa Foister
Thanks, my Root was commented out, but Examples was available already.  Now 
I'm just getting "The requested resource (/) is not available" so I guess 
my next question is, just where exactly is ROOT, or where is it defined?

Lisa

On Friday, March 21, 2003 2:04 PM, Rhodes, Phil 
[SMTP:[EMAIL PROTECTED] wrote:
> From: Lisa Foister [mailto:[EMAIL PROTECTED]
> > When I http to port
> > 8080 on that machine, I now get a Tomcat-style error message (which at
> > least indicates to me that it's probably running, if possibly 
configured
> > incorrectly), "HTTP Status 500 - No Context configured to process this 
request".
> > Shouldn't I be getting some sort of default home page?
>
> I think the root context is disabled by default in server.xml.  Open it 
up and
> uncomment the context entry for root, and for /examples if you want. 
 Look for
> the comments that say "Tomcat Root Context" and "Tomcat Examples Context" 
(at least
> mine does - tomcat 4.1.18.
>
> -Phil
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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



Re: Connection drops with tomcat-based game server (very long version)

2003-03-21 Thread Justin Ruthenbeck
Hi Wouter,

I can't give you concrete responses to your questions, but I can offer some 
anectodal observations from experience.

We also have a connection-sensitive, high message frequency, small message 
size portion of our application.  During bursts, the system must send and 
receive data as quickly as possible (every ~80ms or so) between the client 
(a browser) and the app server (Tomcat).

The application in general is a standard browser/server web based 
application and uses standard J2EE Servlet components.  We originally tried 
to do the same thing for the messaging component, but ran into excessive 
overhead and connection maintenance issues as well.  Specifically, we saw 
clients who occasionally had to wait long periods for their responses 
(~1000ms) or simply never received them.  Performance was better if we 
connected directly to the appserver instead of through IIS or Apache, but 
we still saw occasional connection loss.

These losses really killed the user experience and sometimes caused clients 
to ultimately mangle their internal state.  I would add that we saw similar 
problems with Weblogic.

After quite a bit of debugging, we were unable to determine a consistent 
cause of these problems, though it looked as though the appserver always 
responded if a valid Http request got to them.  This left us with the 
browser and network as potential offenders.  Fortunately, we had the option 
of applets.

We finally decided that relying on the browser and it's http stack to 
maintain connection was simply too risky and difficult to recover from.  We 
wrote our own lightweight mini Http client (as part of a client-side 
applet) and accompanying server (as an HttpServlet) running within our 
webapp on Tomcat.  With the finer grained control, error detection and 
recovery is much easier and we haven't been losing connections like before 
since the mini-http client has full control of when and why connections are 
closed.  Our request/response turnaround times are in the 20ms range for 
local networks.

This isn't to say such a solution would be best for you.  Implementing your 
own http client is a ripe field for frustration.  It also seems pointless 
to "reinvent" the http wheel when so many stable implementations exist.  In 
our case, however, it's given us the predictability we need while still 
allowing flexibility such as support for firewalled users and http proxy 
(or not) configurations.

Don't know how much that helps, but it's always good to hear of others' 
experiences.

justin

At 10:56 AM 3/21/2003, you wrote:
Hi,

I'm currently co-developing a game (draughts, see www.damserver.nl) server 
that utilises Tomcat for message passing and relaying, which is in a 
testing phase right now. During development of the server (on a fast 
network) we encountered no big problems with Tomcat, but since testing has 
intensified somewhat (especially by testers on slow modem connections) it 
sometimes seems like Tomcat drops connections to clients randomly every 
now and then.

In short, the server works a bit like a chat server, with the exception 
that not only chat messages are relayed by it, but also moves, connection 
state information, user actions etc. The server keeps no internal state 
about board setups etc. (this is all handled by the clients), but only 
which users are logged in, where these users are at any moment (portal, 
room, table screen), and what games are being played by which users. 
Clients communicate with the servlet engine through only 1 servlet (this 
is because the servlet specs advise against sharing state information 
between servlets), which acts like a 'proxy' between the network and the 
server logic. We don't use the HTTP protocol (ie: we dont use HttpServlet 
but GenericServlet), but we do use the HTTP port.

Messages are encoded and sent (by 'requesting' the game server servlet) as 
raw data to the servlet engine (both server and client use 
DataInputStream's and DataOutputStreams to read/write data). The server 
then decodes the data, relays the message to clients if necessary, passes 
new messages to clients if the received message demands it and returns a 
response to the client that sent the message. This response also contains 
only raw data, which is usually (but not always) no more than an 
acknowledgement. Clients get their messages by polling the game server 2 
times/second (they do this by sending a special message to the game server 
servlet, which in turn writes back all of the clients' messages as a 
response to the 'request' containing the message). The clients need to 
poll because we can only use the request-response paradigm, since the 
server should be accessible from behind a firewall. The server expects 
connected clients to fetch their messages at least once every 2 minut
 es, and checks this by dropping a 'ping' message in all its client 
message queues, and verifying that it gets consumed within 2 minutes.

The problems we encounter seem to sur

[OT] Servlet process issue

2003-03-21 Thread Tam, Michael
Hi all,

Sorry for the [OT].  Since many of you are the experts on servlet
technology, I'd like to ask for suggestions or comments on the servlet
process I am working on.

Process:
1)  I have a form html (A) to upload data files through an UploadServlet (B)
which stores the files in the file system.
2) Then (B) will forward the request to ValidationServlet (C) which reads
the files for validation and generates log file.
3) Then (C) will forward the request to LoadServlet (D) which use the log
file to load the clean data to DB.

My question:

What will happen when the process reach 3) and assume it has finished half
of the data loading and the client stop/close the browser?

My understanding is the process will terminate at that point.  This implies
I have to somehow monitor the request so when this condition happens, I have
to reverse the process.  If so, what's the best way to do this?

Or better, what is the best way to spawn another process to perform the
validation and loading after the files being uploaded to avoid the client
interferes the process accidentally?


Any input would be appreciated.  Thank you.

Regards,
Michael


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



Re: mod_jk installation

2003-03-21 Thread Albert Lunde
I am trying to configure mod_jk 1.3 to work between Apache 1.3.27 with
mod_ssl and Tomcat 4.1.18 on Linux Version 7.1.
After installing Apache 1.3.27 and Tomcat 4.1.18 when I update
httpsd.conf with following two lines "LoadModule jk_module
/libexec/mod_jk.so" "AddModule mod_jk.c"
And then when I restart Apache 1.3.27 I get the following error:
=
Cannot load /usr/local/apache_1.3.27/libexec/mod_jk.so into
server: /usr/local/apache_1.3.27/libexec/mod_jk.so: undefined symbol:
ap_ctx_get
./httpsdctl start: httpsd could not be started.
===
I had a similar error that I fixed by changing the order modules were
loaded/added in httpd.conf: it was mod_jk using a routine from an
non-core Apache module. But I just tried searching the Tomcat/Apache
1.3.27/mod_jk sources for the string "ap_ctx_get" and I couldn't find
it, so I can't confirm that is the explanation here. The "ap_" makes
me think it's an Apache routine. Could you be using mod_jk
built for the other Apache version (2.x)?
(I'm also still unable to get Apache 1.3.27+mod_jk+CoyoteConnector
all working together, but I'm stuck an a different error.)
--
Albert Lunde [EMAIL PROTECTED] (new address)
 [EMAIL PROTECTED] (old address)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: mod_jk installation

2003-03-21 Thread Tarun Ghanshyam Abhichandani
That's the one I had downloaded.

Further on executing httpsd -l it list mod_so as a compiled
module.
However it gives an error at the end relating to suexec.I
hope this is not the problem .
 
Thanks
Tarun
 
 
-Original Message-
From: Vincent Panel [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 21, 2003 12:54 AM
To: Tomcat Users List
Subject: Re: mod_jk installation
 
Where did you get your mod_jk ? 

According to what you say, you should download the following version : 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1
.2.1/bin/linux/i386/mod_jk-1.3-eapi.so 

Also note that you should have mod_so compiled into apache in order to
load dynamic modules : look at the output of "httpd -l" 

As we say in french, www.chezmoicamarche.org :) 

Vincent. 

On Fri, 2003-03-21 at 04:16, Tarun Ghanshyam Abhichandani wrote: 
> 
> Hi:
> 
> I am trying to configure mod_jk 1.3 to work between Apache 1.3.27 with
> mod_ssl and Tomcat 4.1.18 on Linux Version 7.1. 
> 
> After installing Apache 1.3.27 and Tomcat 4.1.18 when I update
> httpsd.conf with following two lines "LoadModule jk_module
> /libexec/mod_jk.so" "AddModule mod_jk.c"
> 
> And then when I restart Apache 1.3.27 I get the following error:
> = 
> Cannot load /usr/local/apache_1.3.27/libexec/mod_jk.so into
> server: /usr/local/apache_1.3.27/libexec/mod_jk.so: undefined symbol:
> ap_ctx_get 
> ./httpsdctl start: httpsd could not be started. 
> ===
> 
> Any indications where am I going wrong?
> 
> Thanks
> Tarun
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
 


Re: Connection drops with tomcat-based game server (very short version)

2003-03-21 Thread Wouter Bijlsma
There's nothing in the logfiles (we are only using catalina.out) that would suggest 
that Tomcat even knows about a connection problem. The server just goes on as if 
nothing happened, but the messages it sends to the 'dead client' are never delivered. 
This might indeed be a load/config issue, although some users experienced the problem 
even when only 3 users were logged in. The confusing part is that we just cannot 
reproduce the bug on a fast network (not even with 15 users logged in), while neither 
the client nor the server use time-sensitive code for sending or receiving messages.

We are using tomcat 4.0.6 on a Debian/testing linux machine, kernel version 2.4.20

Wouter Bijlsma

On 21 Mar 2003 13:16:19 -0600
Ben Ricker <[EMAIL PROTECTED]> wrote:

> Sounds like a load issue coupled with a config issue. How about some
> logs entries? DO you see anything in the logs you setup? Catalina.out?
> Context log?
> 
> Also, some idea what OS and version would also be helpful. It is nearly
> impossible to tell (at least for me).
> 
> Ben Ricker
> 
> On Fri, 2003-03-21 at 13:01, Wouter Bijlsma wrote:
> > Is it possible that tomcat sometimes randomly kills a request, does
> > not process a request or queues a request indefinitely, thereby
> > blocking a client that tries to read back the response to its request?
> > Could this be possible when a servlet communicates with the clients
> > using only raw data and InputStreams/OutputStreams? And: is it a good
> > idea to develop a game server for playing games like chess, chequers
> > or draughts with tomcat, considering the fact that tomcats main
> > purpose is to act as web application server using a strict
> > request-response paradigm. Is it safe to assume that every request
> > made by a client always yields a proper response, also when using raw
> > data transfers? Also when there's a really high volume of requests to
> > a single servlet?
> > 
> > Don't get me wrong: I do *not* think there's something wrong with
> > tomcat! As a matter of fact I have really good experiences with it
> > using it for web applications!!
> > 
> > Kind Regards,
> > 
> > Wouter Bijlsma,
> > [EMAIL PROTECTED]
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> -- 
> Ben Ricker <[EMAIL PROTECTED]>
> Wellinx.com
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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



Re: tomcat responds with localhost, but refuses the connection w/ mach inename

2003-03-21 Thread John Turner
That's one way.  It pretty much comes down to how you want to handle 
Contexts.  If you want a particular Context to be available for a 
particular domain/host and that domain/host only, you would use a separate 
Host container.

John

On Fri, 21 Mar 2003 14:39:39 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

I was wondering, I saw the virtual host configuration documentation, and 
was
about to attempt such a thing.  So I should add an Alias tag, under a 
host
tag in the server.xml?

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:37 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/mach inename


Did you configure a virtual host for machinename in server.xml, or just 
leave it with localhost?  Tomcat is literal, there is no catch-all like 
there is with Apache.  That is, unless you have a Host container for your 
hostname or an Alias directive for an already existing virtual host, 
Tomcat will not answer the request.

 - will only take requests for localhost and 
none other


machinename - will take requests for localhost + 
machinename

 - will take requests for machinename but 
not localhost

John

On Fri, 21 Mar 2003 14:32:17 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

I got red hat 8.0, jdk 1.3.1_07, and tomcat 3.3.1a installed.  If on the
server, I do localhost:8080, it works ok and comes up with the welcome 
page,
but when I do machinename:8080 it comes back telling me the connection 
was
refused?

Thanks,

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat responds with localhost, but refuses the connection w/mach inename

2003-03-21 Thread Davis, Jeremy
I was wondering, I saw the virtual host configuration documentation, and was
about to attempt such a thing.  So I should add an Alias tag, under a host
tag in the server.xml?

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:37 PM
To: Tomcat Users List
Subject: Re: tomcat responds with localhost, but refuses the connection
w/mach inename



Did you configure a virtual host for machinename in server.xml, or just 
leave it with localhost?  Tomcat is literal, there is no catch-all like 
there is with Apache.  That is, unless you have a Host container for your 
hostname or an Alias directive for an already existing virtual host, Tomcat 
will not answer the request.

 - will only take requests for localhost and 
none other


machinename - will take requests for localhost + machinename

 - will take requests for machinename but not 
localhost

John

On Fri, 21 Mar 2003 14:32:17 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

> I got red hat 8.0, jdk 1.3.1_07, and tomcat 3.3.1a installed.  If on the
> server, I do localhost:8080, it works ok and comes up with the welcome 
> page,
> but when I do machinename:8080 it comes back telling me the connection 
> was
> refused?
>
> Thanks,
>
> Jeremy Davis
> Senior Support Analyst
> BPI Marketplace Integration
> 614.760.8941
> 1.800.436.8726 - Support Line
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

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



Re: tomcat responds with localhost, but refuses the connection w/mach inename

2003-03-21 Thread John Turner
Did you configure a virtual host for machinename in server.xml, or just 
leave it with localhost?  Tomcat is literal, there is no catch-all like 
there is with Apache.  That is, unless you have a Host container for your 
hostname or an Alias directive for an already existing virtual host, Tomcat 
will not answer the request.

 - will only take requests for localhost and 
none other


machinename - will take requests for localhost + machinename
 - will take requests for machinename but not 
localhost

John

On Fri, 21 Mar 2003 14:32:17 -0500, Davis, Jeremy 
<[EMAIL PROTECTED]> wrote:

I got red hat 8.0, jdk 1.3.1_07, and tomcat 3.3.1a installed.  If on the
server, I do localhost:8080, it works ok and comes up with the welcome 
page,
but when I do machinename:8080 it comes back telling me the connection 
was
refused?

Thanks,

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat responds with localhost, but refuses the connection w/machinename

2003-03-21 Thread Davis, Jeremy
I got red hat 8.0, jdk 1.3.1_07, and tomcat 3.3.1a installed.  If on the
server, I do localhost:8080, it works ok and comes up with the welcome page,
but when I do machinename:8080 it comes back telling me the connection was
refused?

Thanks,

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line


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



Form based authentication and sessions

2003-03-21 Thread Carl Maib
hello all,
i am having trouble getting form based authentication working the way i would like. as 
suggested by several threads in this group, i am trying to override the authenticate 
of the FormAuthenticator so that i can set session data appropriately.

the problem i am having is that i am unable to get this to build and link as described 
in the examples. a quick summary of what i am trying to do can be found at 
http://tomcat.mslinn.com/tomcat/realms.html (see bottom of the page for tomcat 4.x).

i believe my problem is that i am not quite sure how to best link into use tomcat's 
native classes. i am not even sure if this is allowed, given the tomcat4 docs indicate 
catalina.jar classes are invisible to web apps, as mentioned below. 

Catalina - This class loader is initialized to include all classes and resources 
required to implement Tomcat 4 itself. These classes and resources are TOTALLY 
invisible to web applications. All unpacked classes and resources in 
$CATALINA_HOME/server/classes, as well as classes and resources in JAR files under 
$CATALINA_HOME/server/lib, are made visible through this class loader. 

so, if they are invisible to webapps, are you not suppose to use them? if allowed, how 
can you get to them?

can someone point me in the right direction, as far as how best to get rid of compile 
time errors (e.g. unknown symbol HttpRequest) and runtime errors which include class 
loader exceptions for FormAuthenticator (tomcat class).

any help would be greatly appreciated!

thanks...


jspC

2003-03-21 Thread Matthew Oatham
Hi,

I am trying to run the jspc command and am experiencing some problems!

I get errors about classes not being found, is there any way to reference
classes from the CLASSPATH in the jspc task or do I have to put all the
class files needed by the web app in the WEB-INF/classes / WEB-INF/lib
directories?

Thanks.

Matt



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



Re: Connection drops with tomcat-based game server (very short version)

2003-03-21 Thread Jake Robb
This is an interesting proposition!  I read both of your posts.

Personally, if I were you, I would create a custom server.  David Flanagan's
Generic Multithreaded Server (as given in O'Reilly's Java Examples in a
Nutshell) would be a good starting point (if you're using it commercially,
there's a $50 license fee).

http://www.davidflanagan.com/javaexamples2/

I've never had Tomcat exhibit the request-killing behavior you describe.  I
have also never used a GenericServlet, so that could possibly be the cause.

-Jake

- Original Message -
From: "Wouter Bijlsma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 2:01 PM
Subject: Connection drops with tomcat-based game server (very short version)


> Is it possible that tomcat sometimes randomly kills a request, does not
process a request or queues a request indefinitely, thereby blocking a
client that tries to read back the response to its request? Could this be
possible when a servlet communicates with the clients using only raw data
and InputStreams/OutputStreams? And: is it a good idea to develop a game
server for playing games like chess, chequers or draughts with tomcat,
considering the fact that tomcats main purpose is to act as web application
server using a strict request-response paradigm. Is it safe to assume that
every request made by a client always yields a proper response, also when
using raw data transfers? Also when there's a really high volume of requests
to a single servlet?
>
> Don't get me wrong: I do *not* think there's something wrong with tomcat!
As a matter of fact I have really good experiences with it using it for web
applications!!
>
> Kind Regards,
>
> Wouter Bijlsma,
> [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread John Turner
OK, so I'm guessing Red Hat Linux, and you used the RPMs.

You should be getting a default page at http://server:8080, though I do not 
know what the RPMs do...they may disable the root context.  Try 
http://server:8080/examples/ or http://server:8080/examples

Regarding your process problems, you typically won't see it because "ps" 
has column clipping.  To really see what is going on, try something like:

ps -ef --cols=200 |grep java

In any case, if you are getting an error message on port 8080, Tomcat is 
running.

John

On Fri, 21 Mar 2003 13:24:44 -0500, Lisa Foister <[EMAIL PROTECTED]> 
wrote:

BTW, the tomcat4.conf file had TOMCAT_USER="tomcat4" which explains my 
problems with port 80.  I changed that to root, and went back into the 
server.xml and changed the port to 80, and now I'm getting the same 
Tomcat error response when I http to that machine as I was getting below 
on port 8080.

Lisa

On Friday, March 21, 2003 12:57 PM, Lisa Foister 
[SMTP:[EMAIL PROTECTED] wrote:
I am logged in as root, with no other web server running, so I don't 
know why I'm having trouble with port 80, unless somewhere the tomcat 
process
is
configured to run as the tomcat4 user.  However, I changed my server.xml
to
use port 8080, and at least I'm not getting errors on stopping although
I'm
still not seeing it on the process list when it's running -- or maybe 
I'm just not looking for the right thing?  When I http to port 8080 on 
that
machine, I now get a Tomcat-style error message (which at least 
indicates to me that it's probably running, if possibly configured 
incorrectly),
"HTTP Status 500 - No Context configured to process this request".
Shouldn't I be getting some sort of default home page?

Thanks!

Lisa

On Friday, March 21, 2003 12:26 PM, John Turner
[SMTP:[EMAIL PROTECTED] wrote:
>  << File: ATT00025.txt; charset = iso-8859-15 >>


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





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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Connection drops with tomcat-based game server (very shortversion)

2003-03-21 Thread Ben Ricker
Sounds like a load issue coupled with a config issue. How about some
logs entries? DO you see anything in the logs you setup? Catalina.out?
Context log?

Also, some idea what OS and version would also be helpful. It is nearly
impossible to tell (at least for me).

Ben Ricker

On Fri, 2003-03-21 at 13:01, Wouter Bijlsma wrote:
> Is it possible that tomcat sometimes randomly kills a request, does not process a 
> request or queues a request indefinitely, thereby blocking a client that tries to 
> read back the response to its request? Could this be possible when a servlet 
> communicates with the clients using only raw data and InputStreams/OutputStreams? 
> And: is it a good idea to develop a game server for playing games like chess, 
> chequers or draughts with tomcat, considering the fact that tomcats main purpose is 
> to act as web application server using a strict request-response paradigm. Is it 
> safe to assume that every request made by a client always yields a proper response, 
> also when using raw data transfers? Also when there's a really high volume of 
> requests to a single servlet?
> 
> Don't get me wrong: I do *not* think there's something wrong with tomcat! As a 
> matter of fact I have really good experiences with it using it for web applications!!
> 
> Kind Regards,
> 
>   Wouter Bijlsma,
>   [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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



RE: Connection drops with tomcat-based game server (very short version)

2003-03-21 Thread Filip Hanik
ok, if you are using the HTTP protocol, you must know that the server has no 
responsibility in keeping the connection alive.

Tomcat (Coyote) keeps the connection alive if the Keep-Alive is set, but you can't 
send raw data up and down the HTTP connection and expect it to work. The data has to 
be contained within an appropriate HTTP request.

But no, I've never seen tomcat not respond to a request, at least it will send down an 
error code to the client at worst.

Filip

> -Original Message-
> From: Wouter Bijlsma [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 11:01 AM
> To: [EMAIL PROTECTED]
> Subject: Connection drops with tomcat-based game server (very short
> version)
> 
> 
> Is it possible that tomcat sometimes randomly kills a 
> request, does not process a request or queues a request 
> indefinitely, thereby blocking a client that tries to read 
> back the response to its request? Could this be possible when 
> a servlet communicates with the clients using only raw data 
> and InputStreams/OutputStreams? And: is it a good idea to 
> develop a game server for playing games like chess, chequers 
> or draughts with tomcat, considering the fact that tomcats 
> main purpose is to act as web application server using a 
> strict request-response paradigm. Is it safe to assume that 
> every request made by a client always yields a proper 
> response, also when using raw data transfers? Also when 
> there's a really high volume of requests to a single servlet?
> 
> Don't get me wrong: I do *not* think there's something wrong 
> with tomcat! As a matter of fact I have really good 
> experiences with it using it for web applications!!
> 
> Kind Regards,
> 
>   Wouter Bijlsma,
>   [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Apache1.3.27 + Tomcat 4.1+FreeBSD4.7

2003-03-21 Thread Marcia de Oliveira Cardoso
Hello,

I never configured this before. 
I've installed Tomcat4.1 (by ports) standalone and it seems to work fine. I enter 
http://localhost:8180 and it says "welcome".
But I need my to have something like that: http://localhost/~user (any user )
So, I read that I'll need mod_jk. So I installed (Freebsd ports) it. (and 
jakarta-tomcat3.3).
I added the module to Apache.

And now...??
I need a complete HOW_TO.

Thanks
Marcia


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



RE: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Rhodes, Phil
From: Lisa Foister [mailto:[EMAIL PROTECTED]
> I am logged in as root, with no other web server running, so 
> I don't know why I'm having trouble with port 80, unless somewhere the 
> tomcat process is configured to run as the tomcat4 user. 

No idea here.  Have you used netstat to make sure something else isn't
already listening on that port?

> However, I changed my 
> server.xml to use port 8080, and at least I'm not getting errors on 
> stopping although I'm still not seeing it on the process list when it's running -- 
> or maybe I'm just not looking for the right thing? 

Do ps -ef | grep java and see if you have any java processes running.  If you
are getting the Tomcat error 500 below, it should be there.

> When I http to port 
> 8080 on that machine, I now get a Tomcat-style error message (which at 
> least indicates to me that it's probably running, if possibly configured 
> incorrectly), "HTTP Status 500 - No Context configured to process this request". 
> Shouldn't I be getting some sort of default home page?

I think the root context is disabled by default in server.xml.  Open it up and
uncomment the context entry for root, and for /examples if you want.  Look for 
the comments that say "Tomcat Root Context" and "Tomcat Examples Context" (at least
mine does - tomcat 4.1.18.

-Phil




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



Connection drops with tomcat-based game server (very short version)

2003-03-21 Thread Wouter Bijlsma
Is it possible that tomcat sometimes randomly kills a request, does not process a 
request or queues a request indefinitely, thereby blocking a client that tries to read 
back the response to its request? Could this be possible when a servlet communicates 
with the clients using only raw data and InputStreams/OutputStreams? And: is it a good 
idea to develop a game server for playing games like chess, chequers or draughts with 
tomcat, considering the fact that tomcats main purpose is to act as web application 
server using a strict request-response paradigm. Is it safe to assume that every 
request made by a client always yields a proper response, also when using raw data 
transfers? Also when there's a really high volume of requests to a single servlet?

Don't get me wrong: I do *not* think there's something wrong with tomcat! As a matter 
of fact I have really good experiences with it using it for web applications!!

Kind Regards,

Wouter Bijlsma,
[EMAIL PROTECTED]


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



Connection drops with tomcat-based game server (very long version)

2003-03-21 Thread Wouter Bijlsma
Hi,

I'm currently co-developing a game (draughts, see www.damserver.nl) server that 
utilises Tomcat for message passing and relaying, which is in a testing phase right 
now. During development of the server (on a fast network) we encountered no big 
problems with Tomcat, but since testing has intensified somewhat (especially by 
testers on slow modem connections) it sometimes seems like Tomcat drops connections to 
clients randomly every now and then.

In short, the server works a bit like a chat server, with the exception that not only 
chat messages are relayed by it, but also moves, connection state information, user 
actions etc. The server keeps no internal state about board setups etc. (this is all 
handled by the clients), but only which users are logged in, where these users are at 
any moment (portal, room, table screen), and what games are being played by which 
users. Clients communicate with the servlet engine through only 1 servlet (this is 
because the servlet specs advise against sharing state information between servlets), 
which acts like a 'proxy' between the network and the server logic. We don't use the 
HTTP protocol (ie: we dont use HttpServlet but GenericServlet), but we do use the HTTP 
port. 

Messages are encoded and sent (by 'requesting' the game server servlet) as raw data to 
the servlet engine (both server and client use DataInputStream's and DataOutputStreams 
to read/write data). The server then decodes the data, relays the message to clients 
if necessary, passes new messages to clients if the received message demands it and 
returns a response to the client that sent the message. This response also contains 
only raw data, which is usually (but not always) no more than an acknowledgement. 
Clients get their messages by polling the game server 2 times/second (they do this by 
sending a special message to the game server servlet, which in turn writes back all of 
the clients' messages as a response to the 'request' containing the message). The 
clients need to poll because we can only use the request-response paradigm, since the 
server should be accessible from behind a firewall. The server expects connected 
clients to fetch their messages at least once every 2 minut
 es, and checks this by dropping a 'ping' message in all its client message queues, 
and verifying that it gets consumed within 2 minutes.

The problems we encounter seem to surface only when a client connects using a 'slow' 
connection, especially with modem connections but maybe also with cable connections 
(which have little upstream bandwith). The symptoms are that after some time playing a 
game a client does not receive messages anymore. The game server keeps working fine, 
and the client also goes on happily. It just does not receive any more messages, 
although the server definitely sends them. Ofcourse this probably looks like bug in 
our code, but we do not think this is the case, since we cannot reproduce the bug on a 
fast network. It seems as if the Tomcat server sometimes randomly kills a request 
(especially under heavy load) without sending a response. The client thread that polls 
the server still expects this response but it does not get it, so it blocks, and no 
new requests for messages are made. After some time the game server detects that the 
client did not consume its messages, and logs out the user.
  As a side note I would like to mention the fact that we had to increase the maximum 
number of simultaneous threads per servlet to get acceptable performance if more than 
8 people were logged in at the same time,

Now for the question this post is all about: is it possible that tomcat sometimes 
randomly kills a request, does not process a request or queues a request indefinitely, 
thereby blocking all further communication with a client? Is this possible because the 
server communicates with the clients using only raw data and 
InputStreams/OutputStreams? And: is it a good idea to develop a game server like the 
one described here using Tomcat, considering the fact that tomcats main purpose is to 
act as web application server using a strict request-response paradigm. Our project 
development team suspects that tomcat was never meant for this type of applications 
(that produce very small, but very frequent requests, and are really 
connection-sensitive), and that it is not safe to assume that every request made by a 
client always yields a proper response. 

Don't get me wrong: I do *not* think there's something wrong with tomcat! As a matter 
of fact I have really good experiences with it using it for web applications!!

Kind Regards,

Wouter Bijlsma,
[EMAIL PROTECTED]



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



RE: defaulting tomcat to a specific webapp

2003-03-21 Thread Monica Acerra
yes, works fine, thanks :)

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 11:25 AM
To: Tomcat Users List
Subject: RE: defaulting tomcat to a specific webapp


just take a look at how the ROOT context is configured. or if you simple
want to redirect to another, just change the 'ROOT/index.jsp' to do a
response.sendRedirect("/yourotherwebapp");

Filip

> -Original Message-
> From: Monica Acerra [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 10:23 AM
> To: [EMAIL PROTECTED]
> Subject: defaulting tomcat to a specific webapp
> 
> 
> 
> 
> 
> Greetings,
> how do you force a specific webapp under tomcat when users go to url
> http://myserver:8080 it appears that by default users are 
> directed to webapp
> ROOT.
> i would like to redirect to another
> thanks
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

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



RE: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Lisa Foister
BTW, the tomcat4.conf file had TOMCAT_USER="tomcat4" which explains my 
problems with port 80.  I changed that to root, and went back into the 
server.xml and changed the port to 80, and now I'm getting the same Tomcat 
error response when I http to that machine as I was getting below on port 
8080.

Lisa

On Friday, March 21, 2003 12:57 PM, Lisa Foister 
[SMTP:[EMAIL PROTECTED] wrote:
> I am logged in as root, with no other web server running, so I don't know 
> why I'm having trouble with port 80, unless somewhere the tomcat process 
is
> configured to run as the tomcat4 user.  However, I changed my server.xml 
to
> use port 8080, and at least I'm not getting errors on stopping although 
I'm
> still not seeing it on the process list when it's running -- or maybe I'm 
> just not looking for the right thing?  When I http to port 8080 on that
> machine, I now get a Tomcat-style error message (which at least indicates 
> to me that it's probably running, if possibly configured incorrectly),
> "HTTP Status 500 - No Context configured to process this request".
>  Shouldn't I be getting some sort of default home page?
>
> Thanks!
>
> Lisa
>
> On Friday, March 21, 2003 12:26 PM, John Turner
> [SMTP:[EMAIL PROTECTED] wrote:
> >  << File: ATT00025.txt; charset = iso-8859-15 >>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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



RE: defaulting tomcat to a specific webapp

2003-03-21 Thread Filip Hanik
just take a look at how the ROOT context is configured. or if you simple want to 
redirect to another, just change the 'ROOT/index.jsp' to do a 
response.sendRedirect("/yourotherwebapp");

Filip

> -Original Message-
> From: Monica Acerra [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 10:23 AM
> To: [EMAIL PROTECTED]
> Subject: defaulting tomcat to a specific webapp
> 
> 
> 
> 
> 
> Greetings,
> how do you force a specific webapp under tomcat when users go to url
> http://myserver:8080 it appears that by default users are 
> directed to webapp
> ROOT.
> i would like to redirect to another
> thanks
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



defaulting tomcat to a specific webapp

2003-03-21 Thread Monica Acerra



Greetings,
how do you force a specific webapp under tomcat when users go to url
http://myserver:8080 it appears that by default users are directed to webapp
ROOT.
i would like to redirect to another
thanks

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



Re: tomcat dying on solaris

2003-03-21 Thread jo outen
Much simpler change the catalina.sh to run as ksh
instead of sh. The sh shell is not handling the job
correctly.



--- Carsten Heidmann <[EMAIL PROTECTED]> wrote:
> Hi,
> At 21.03.2003 12:16 +, you wrote:
> >My tomcat process if dying suddenly on Solaris
> system. I am using tomcat
> >4.1.12 on Solaris 8. There is nothing in the log
> files.
> 
> I had this problem when starting Tomcat
> interactively from a telnet/ssh/... 
> session. When logging of, dies also, whether or not
> you did start it with 
> 'nohub' or '&' If this is your problem try starting
> tomcat as an 'at' job:
> 
> [EMAIL PROTECTED] # at now
> at> /etc/init.d/catalina start
> at> 
> commands will be executed using /sbin/sh
> job 1048249391.a at Fri Mar 21 13:23:11 2003
> [EMAIL PROTECTED] #
> 
> This is a known bug (I was told from Sun ;-)
> 
> Carsten
>

> Dipl. Geogr. Carsten Heidmann   Bundesanstalt fuer
> Wasserbau
> Tel.: 040.81908.345 - Aussenstelle
> Kueste -
> Fax: 040.81908.373  Wedeler Landstrasse
> 157
> [EMAIL PROTECTED] DE - 22559 Hamburg
> http://nokis.baw.de/   
> http://www.hamburg.baw.de/
>

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


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: What to set docBase attribute to in an individual Context.xml fil e

2003-03-21 Thread Jacob Kjome
Note that "context.xml" is only applicable when you are using the "deploy" 
task for the manager app (and note that this can only be invoked via the 
Ant catalina manager tasks because browsers don't support HTTP PUT).  If 
you are putting a context configuration file in the webapps directory for 
deploying a .war file or a directory relative to (or inside) the webapps 
directory, then name the file anything you want.  I would recommend, 
however, that you name the file the same as you named the .war file or 
directory you are deploying.  This makes it easier to know, at a glance, 
which context configuration file is for which app.

Actually, as part of the deploy process, Tomcat looks for the 
META-INF/context.xml file inside your .war file and extracts that to a file 
named the same as the .war file, less the .war extension.

So, if you have...

myapp.war

Then META-INF/context.xml gets extracted (in the same directory where the 
.war file exists) to...

myapp.xml

Hope that clears things up.

Jake

At 04:51 PM 3/21/2003 +, you wrote:
* Collins, Jim <[EMAIL PROTECTED]> [0340 16:40]:
> Hi Jake,
>
> Thanks for getting back so quick. So the context file in META-INF should be
> context.xml and not myapp.xml?
>
> That is maybe where I have been going wrong, I read some previous posts on
> this from Craig and I thought he said you name the context file with the
> name of your app and a .xml extension.
I've done that before now, when I've needed to add contexts without
editing server.xml - BUT those files have gone into the webapps directory
(where a warfile would normally go) - see manager.xml which I think is in
webapps/ by default. This context.xml method sounds like a safer
solution though...
--
He's the kind of man for the times that need the kind of man he is ...
Rasputin :: Jack of All Trades - Master of Nuns
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Lisa Foister
I am logged in as root, with no other web server running, so I don't know 
why I'm having trouble with port 80, unless somewhere the tomcat process is 
configured to run as the tomcat4 user.  However, I changed my server.xml to 
use port 8080, and at least I'm not getting errors on stopping although I'm 
still not seeing it on the process list when it's running -- or maybe I'm 
just not looking for the right thing?  When I http to port 8080 on that 
machine, I now get a Tomcat-style error message (which at least indicates 
to me that it's probably running, if possibly configured incorrectly), 
"HTTP Status 500 - No Context configured to process this request". 
 Shouldn't I be getting some sort of default home page?

Thanks!

Lisa

On Friday, March 21, 2003 12:26 PM, John Turner 
[SMTP:[EMAIL PROTECTED] wrote:
>  << File: ATT00025.txt; charset = iso-8859-15 >>




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



Re: Whee!! It's good to be back!

2003-03-21 Thread Jeff Tulley
How are you packaging it?  Are you putting it in a certain context, or
what?
How are you trying to view it?  Through Port 8080, or through a web
server?
It seems that your web.xml is consistent within itself.  Where are you
putting the compiled .class file in your web app's directory structure?

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com 

>>> [EMAIL PROTECTED] 3/19/03 12:26:18 PM >>>

It's very good indeed to be back in your "midst" again, and believe me,
I will try hard to "mind my manners" and try to use this list for the
most knowledgeable insight that I can posssibly get about how to execute
certain jsp's/servlets with the Tomcat web container!!

Case in point: I am having problems with trying to see this
"TodayServlet.java" servlet of mine. It just flat doesn't show up in my
browser when I try to look at it, sad to say. It is just the most simple
and basic servlet, so it shouldn't be too much of a "big deal" to
correct whatever problem it has, so I could then see it. I naturally
have attached it to my posting, and again, it's good to be back "in your
good graces" again. 

p.s.: excuse my absolute ignorance about how servlet creation is done
successfully, but I was wondering if I possibly need a HTML file to go
along with this servlet as a helper file.

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



Re: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43

2003-03-21 Thread Jonathan Eric Miller
I'm running in standalone mode and I'm receiving the same error, so, I don't
think the problem is with regard to what version of Apache you're running or
mod_jk.

Jon

- Original Message -
From: "Ivan F. Martinez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 6:59 AM
Subject: Re: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43


>
> On Thu, 20 Mar 2003 09:40:14 -
> "Marion McKelvie" <[EMAIL PROTECTED]> wrote:
>
> MM> Hello again,
> MM>
> MM> Is anyone running with the combination of Tomcat 4.1.18, Apache 2.0.43
and
> MM> mod_jk 2.0.43 on Redhat 8?
> MM>
>
> I have one machine that works fine, and other with same problem as you.
> When you restart apache everything works again.
>
> I have tested with mod_jk and mod_jk2.
>
> I didn't find the difference between the two machines.
>
> MM> Marion
> MM>
> MM> -Original Message-
> MM> From: Marion McKelvie [mailto:[EMAIL PROTECTED]
> MM> Sent: 19 March 2003 10:38
> MM> To: [EMAIL PROTECTED]
> MM> Subject: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43
> MM>
> MM>
> MM> Hi,
> MM>
> MM> I have an installation using Tomcat 4.1.18, Apache 2.0.43 and mod_jk
2.0.43
> MM> running on Redhat 8, all installed from rpms as executables (no
building
> MM> from source).
> MM>
> MM> Everything works fine for a while until I get the following error in
> MM> catalina.out
> MM>
> MM> 19-Mar-2003 10:00:20 org.apache.tomcat.util.log.CommonLogHandler log
> MM> INFO: All threads are busy, waiting. Please increase maxThreads or
check the
> MM> servlet sttus75 75
> MM>
> MM> I can get this error just by playing with the Tomcat examples for long
> MM> enough (presumably after 75 activities).  It's a bit like each thread
is not
> MM> being released after it's used.  I have a comparable installation
which runs
> MM> without problems but it's using Tomcat 4.1.12 with Apache 1.3.22.
> MM>
> MM> Server.xml is pretty much as installed by default (I've commented out
the
> MM> 8080 connector) so it's using the Coyote connector:
> MM>
> MM>  MM>port="8009" minProcessors="5" maxProcessors="75"
> MM>enableLookups="true" redirectPort="8443"
> MM>acceptCount="10" debug="0" connectionTimeout="0"
> MM>useURIValidationHack="false"
> MM>
> MM> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> MM>
> MM> If I change the timeout to 2, catalina.out reports that the
timeout has
> MM> been reached.
> MM>
> MM> workers.properties is as installed by default except that I've
corrected the
> MM> java_home path.
> MM>
> MM> mod_jk.conf is as follows
> MM>
> MM> JkWorkersFile /etc/httpd/conf/workers.properties
> MM> JkLogFile /var/log/httpd/mod_jk.log
> MM> JkLogLevel error
> MM>
> MM>
> MM> #
> MM> # Root context mounts for Tomcat
> MM> #
> MM> JkMount /*.jsp ajp13
> MM> JkMount /servlet/* ajp13
> MM>
> MM> #
> MM> # Auto configuration for the /examples context starts.
> MM> #
> MM>
> MM> #
> MM> # The following line makes apache aware of the location of the
/examples
> MM> context
> MM> #
> MM> Alias /examples "/var/tomcat4/webapps/examples"
> MM> 
> MM> Options Indexes FollowSymLinks
> MM> 
> MM>
> MM> #
> MM> # The following line mounts all JSP files and the /servlet/ uri to
tomcat
> MM> #
> MM> JkMount /examples/servlet/* ajp13
> MM> JkMount /examples/*.jsp ajp13
> MM>
> MM> #
> MM> # The following line prohibits users from directly access WEB-INF
> MM> #
> MM> 
> MM> AllowOverride None
> MM> deny from all
> MM> 
> MM>
> MM> ###
> MM> # Auto configuration for the /examples context ends.
> MM> ###
> MM>
> MM>
> MM>
> MM> Any help much appreciated - I'm sure I've probably missed something
obvious
> MM> but all the restarts are getting very annoying!
> MM>
> MM> Marion
> MM>
> MM>
> MM> -
> MM> To unsubscribe, e-mail: [EMAIL PROTECTED]
> MM> For additional commands, e-mail: [EMAIL PROTECTED]
> MM>
> MM>
> MM> -
> MM> To unsubscribe, e-mail: [EMAIL PROTECTED]
> MM> For additional commands, e-mail: [EMAIL PROTECTED]
> MM>
>
>
> --
>
>
> Ivan F. Martinez
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Ramsay Domloge
if you do "netstat -l" you should see that there is already an app using 
port 80. Either that or you are trying to run Tomcat not as root which 
will be denied since ports 0 - 1024 are restricted to root only.

Ramsay

Lisa Foister wrote:

hmm... ok, here's what's in the log (this should be exactly one start and 
stop -- the first 2 or 3 entries are from the start, the rest from the 
stop).  I don't seem to be getting any errors at all on startup.  No clue 
what "Error initializing endpoint" means, but it seems to be my first 
actual error.

Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Mar 21, 2003 11:59:05 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Mar 21, 2003 11:59:07 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:270)
   at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java)
   at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteCo  
nnector.
java)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   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:203)
Catalina.start: LifecycleException:  Protocol handler initialization 
failed: jav
a.net.BindException: Permission denied:80
LifecycleException:  Protocol handler initialization failed: 
java.net.BindExcept
ion: Permission denied:80
   at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   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:203)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
   at 
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2212
)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   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:203)

On Friday, March 21, 2003 12:08 PM, Tim Funk [SMTP:[EMAIL PROTECTED] 
wrote:
 

Look for /var/tomcat4/logs/catalina.out. There will be an error message
in there of what went wrong.
-Tim

Lisa Foister wrote:
   

I'm very much a Linux newbie, so I may be missing something obvious 
 

here,
 

but I think I've got the J2SDK set up right, and I thought I had Tomcat 
 

set
 

up right.  I've completely shut down my Apache server so I don't have 
 

to
 

deal with the interactions, and although I would prefer to be running
Tomcat on port 80, at the moment I'd be happy to have it running on any 
port.

Every time I try to start Tomcat as a service (logged in as root, if it 
makes a difference) I get "Starting tomcat4:   OK  ]" as if it were
running, but then there is no  process running with a name that even
remotely makes me think it might be Tomcat running.  Then when I stop 
 

the
 

service, I get the following:

Stopping tomcat4: Using CATALINA_BASE:   /var/tomcat4
Us

Re: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Tim Funk
It looks like something is already listening on port 80.

netstat -a will show if anything is listening on port 80.

You also need to be root to bind to port 80. It looks like you already 
are but make sure your scripts are not switching user. If you are just 
running startup.sh --> then you should be ok and something else is 
already listening to port 80.

-Tim

Lisa Foister wrote:
hmm... ok, here's what's in the log (this should be exactly one start and 
stop -- the first 2 or 3 entries are from the start, the rest from the 
stop).  I don't seem to be getting any errors at all on startup.  No clue 
what "Error initializing endpoint" means, but it seems to be my first 
actual error.

Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Mar 21, 2003 11:59:05 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Mar 21, 2003 11:59:07 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:270)
at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteCo  
nnector.
> < SNIPPED >
On Friday, March 21, 2003 12:08 PM, Tim Funk [SMTP:[EMAIL PROTECTED] 
wrote:

Look for /var/tomcat4/logs/catalina.out. There will be an error message
in there of what went wrong.
-Tim

Lisa Foister wrote:

I'm very much a Linux newbie, so I may be missing something obvious 
here,

but I think I've got the J2SDK set up right, and I thought I had Tomcat 
set

up right.  I've completely shut down my Apache server so I don't have 
to

deal with the interactions, and although I would prefer to be running
Tomcat on port 80, at the moment I'd be happy to have it running on any 
port.

Every time I try to start Tomcat as a service (logged in as root, if it 
makes a difference) I get "Starting tomcat4:   OK  ]" as if it were
running, but then there is no  process running with a name that even
remotely makes me think it might be Tomcat running.  Then when I stop 
the

service, I get the following:

Stopping tomcat4: Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.1_02
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
   at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
   at java.net.Socket.connect(Socket.java:426)
   at java.net.Socket.connect(Socket.java:376)
   at java.net.Socket.(Socket.java:291)
   at java.net.Socket.(Socket.java:119)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
   at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)

   at 
org.apache.catalina.startup.Catalina.process(Catalina.java:180)

   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:203)

FAILED]

Any advice as to what might be causing my problem would be greatly
appreciated.
Lisa

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



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





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



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


Re: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread John Turner
Tomcat is trying to bind to port 80 but doesn't have the permission to do 
so.  Are you running these scripts as root?

Check /path/to/tomcat/conf/server.xml and make sure that CoyoteConnector is 
listening on port 8080 (the default) instead of 80.  You can always change 
it later, and there are no permission restrictions on port 8080.

John

On Fri, 21 Mar 2003 12:16:38 -0500, Lisa Foister <[EMAIL PROTECTED]> 
wrote:

hmm... ok, here's what's in the log (this should be exactly one start and 
stop -- the first 2 or 3 entries are from the start, the rest from the 
stop).  I don't seem to be getting any errors at all on startup.  No clue 
what "Error initializing endpoint" means, but it seems to be my first 
actual error.

Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Mar 21, 2003 11:59:05 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Mar 21, 2003 11:59:07 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:270)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteCo  
nnector.
java)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
Catalina.start: LifecycleException:  Protocol handler initialization 
failed: jav
a.net.BindException: Permission denied:80
LifecycleException:  Protocol handler initialization failed: 
java.net.BindExcept
ion: Permission denied:80
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2212
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)

On Friday, March 21, 2003 12:08 PM, Tim Funk [SMTP:[EMAIL PROTECTED] 
wrote:
Look for /var/tomcat4/logs/catalina.out. There will be an error message
in there of what went wrong.
-Tim

Lisa Foister wrote:
> I'm very much a Linux newbie, so I may be missing something obvious
here,
> but I think I've got the J2SDK set up right, and I thought I had 
Tomcat
set
> up right.  I've completely shut down my Apache server so I don't have
to
> deal with the interactions, and although I would prefer to be running
> Tomcat on port 80, at the moment I'd be happy to have it running on 
any > port.
>
> Every time I try to start Tomcat as a service (logged in as root, if 
it > makes a difference) I get "Starting tomcat4:   OK  ]" as if it were
> running, but then there is no  process running with a name that even
> remotely makes me think it might be Tomcat running.  Then when I stop
the
> service, I get the following:
>
> Stopping tomcat4: Using CATALINA_BASE:   /var/tomcat4
> Using CATALINA_HOME:   /var/tomcat4
> Using CATALINA_TMPDIR: /var/tomcat4/temp
> Using J

Re: Problems with tomcat 4.0.1 and 4.1.18

2003-03-21 Thread Jonathan Eric Miller
I think I may be having the same problem as well. I'm running Tomcat in
standalone mode and I have it configured only for HTTPS. The error message
that I'm receiving is.

INFO: All threads are busy, waiting. Please increase maxThreads or check the
servlet status75 75

This is the second time I've seen this. I don't think I've seen the problem
before upgrading to 4.1.18.

Jon

- Original Message -
From: "Daniel Rubio" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 4:19 AM
Subject: Re: Problems with tomcat 4.0.1 and 4.1.18


> Is running standalone, we have apache in port 80 but we have a link to
> the secure area (tomcat, that runs in 8443).
>
> Marion McKelvie wrote:
> > Daniel
> >
> > Are you running in standalone mode or with a web server?
> >
> > I have seen a similar problem when using 4.1.18, but I think I've traced
it
> > to Apache 4.0.43 and mod_jk : Apache seems to keep producing child
processes
> > each of which uses up a mod_jk thread until I get the same error in
> > catalina.out
> >
> > Marion
> >
> > -Original Message-
> > From: Daniel Rubio [mailto:[EMAIL PROTECTED]
> > Sent: 21 March 2003 08:49
> > To: [EMAIL PROTECTED]
> > Subject: Problems with tomcat 4.0.1 and 4.1.18
> >
> >
> > Hi to all
> >
> > Recently, we updated our Tomcat server from 4.0.1 to 4.1.18.
> > All was perfect on the first day, but then the new server crashed and I
> > can't found the cause.
> >
> > Doing a ps -ef i see lots of tomcat processes that are'nt finalizing,
> > and when this number arrives to the value we have in acceptCount
> > variable it stops serving pages.
> >
> > Here is the error on catalina.out
> >
> > Mar 20, 2003 9:34:30 PM org.apache.tomcat.util.log.CommonLogHandler log
> > INFO: All threads are busy, waiting. Please increase maxThreads or check
> > the servlet status75 75
> >
> > maxThreads is set to 75 but we haven't more from 2-3 concurrent users so
> > I think this is not th problem.
> >
> > We tried to run again the old server, but now we have a very strange
> > error, we can execute servlets but not jsp pages. Here is the error
> > received by the browser:
> >
> > Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet jsp is currently
unavailable
> >
> > this happens too to the examples directory, I think it's not caused by
> > the application...
> >
> > I'm going crazy, somebody could help?
> >
> > Thanks in advance
> > --
> > 
> > Daniel Rubio Rodríguez
> > OASI (Organisme Autònom Per la Societat de la Informació)
> > c/ Assalt, 12
> > 43003 - Tarragona
> > Tef.: 977.244.007 - Fax: 977.224.517
> > e-mail: [EMAIL PROTECTED]
> > 
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> 
> Daniel Rubio Rodríguez
> OASI (Organisme Autònom Per la Societat de la Informació)
> c/ Assalt, 12
> 43003 - Tarragona
> Tef.: 977.244.007 - Fax: 977.224.517
> e-mail: [EMAIL PROTECTED]
> 
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Davis, Jeremy
Do you have a webserver already up and listening on port 80?  I don't know
for sure, but that would be my first guess, if that helps.

Jeremy Davis
Senior Support Analyst
BPI Marketplace Integration
614.760.8941
1.800.436.8726 - Support Line


-Original Message-
From: Lisa Foister [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 12:17 PM
To: 'Tomcat Users List'
Subject: RE: no Tomcat process & error stopping service (Red Hat 8.0)


hmm... ok, here's what's in the log (this should be exactly one start and 
stop -- the first 2 or 3 entries are from the start, the rest from the 
stop).  I don't seem to be getting any errors at all on startup.  No clue 
what "Error initializing endpoint" means, but it seems to be my first 
actual error.

Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Mar 21, 2003 11:59:05 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Mar 21, 2003 11:59:07 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:270)
at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteCo  
nnector.
java)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
Catalina.start: LifecycleException:  Protocol handler initialization 
failed: jav
a.net.BindException: Permission denied:80
LifecycleException:  Protocol handler initialization failed: 
java.net.BindExcept
ion: Permission denied:80
at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
at 
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2212
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)

On Friday, March 21, 2003 12:08 PM, Tim Funk [SMTP:[EMAIL PROTECTED] 
wrote:
> Look for /var/tomcat4/logs/catalina.out. There will be an error message
> in there of what went wrong.
>
> -Tim
>
> Lisa Foister wrote:
> > I'm very much a Linux newbie, so I may be missing something obvious 
here,
> > but I think I've got the J2SDK set up right, and I thought I had Tomcat 
set
> > up right.  I've completely shut down my Apache server so I don't have 
to
> > deal with the interactions, and although I would prefer to be running
> > Tomcat on port 80, at the moment I'd be happy to have it running on any 
> > port.
> >
> > Every time I try to start Tomcat as a service (logged in as root, if it 
> > makes a difference) I get "Starting tomcat4:   OK  ]" as if

RE: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Lisa Foister
hmm... ok, here's what's in the log (this should be exactly one start and 
stop -- the first 2 or 3 entries are from the start, the rest from the 
stop).  I don't seem to be getting any errors at all on startup.  No clue 
what "Error initializing endpoint" means, but it seems to be my first 
actual error.

Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Mar 21, 2003 11:59:04 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Mar 21, 2003 11:59:05 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Mar 21, 2003 11:59:07 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:270)
at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteCo  
nnector.
java)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
Catalina.start: LifecycleException:  Protocol handler initialization 
failed: jav
a.net.BindException: Permission denied:80
LifecycleException:  Protocol handler initialization failed: 
java.net.BindExcept
ion: Permission denied:80
at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:579)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
at 
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2212
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)

On Friday, March 21, 2003 12:08 PM, Tim Funk [SMTP:[EMAIL PROTECTED] 
wrote:
> Look for /var/tomcat4/logs/catalina.out. There will be an error message
> in there of what went wrong.
>
> -Tim
>
> Lisa Foister wrote:
> > I'm very much a Linux newbie, so I may be missing something obvious 
here,
> > but I think I've got the J2SDK set up right, and I thought I had Tomcat 
set
> > up right.  I've completely shut down my Apache server so I don't have 
to
> > deal with the interactions, and although I would prefer to be running
> > Tomcat on port 80, at the moment I'd be happy to have it running on any 
> > port.
> >
> > Every time I try to start Tomcat as a service (logged in as root, if it 
> > makes a difference) I get "Starting tomcat4:   OK  ]" as if it were
> > running, but then there is no  process running with a name that even
> > remotely makes me think it might be Tomcat running.  Then when I stop 
the
> > service, I get the following:
> >
> > Stopping tomcat4: Using CATALINA_BASE:   /var/tomcat4
> > Using CATALINA_HOME:   /var/tomcat4
> > Using CATALINA_TMPDIR: /var/tomcat4/temp
> > Using JAVA_HOME:   /usr/java/j2sdk1.4.1_02
> > Catalina.stop: java.net.ConnectException: Connection 

Re: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread John Turner
Tomcat is definitely not starting.  Check the catalina.out file for an 
explanation, and you can also try to start it manually with 
"/path/to/tomcat/bin/catalina.sh start" which should put any startup 
problems right to the screen.

John

On Fri, 21 Mar 2003 12:04:33 -0500, Lisa Foister <[EMAIL PROTECTED]> 
wrote:

I'm very much a Linux newbie, so I may be missing something obvious here, 
but I think I've got the J2SDK set up right, and I thought I had Tomcat 
set up right.  I've completely shut down my Apache server so I don't have 
to deal with the interactions, and although I would prefer to be running 
Tomcat on port 80, at the moment I'd be happy to have it running on any 
port.

Every time I try to start Tomcat as a service (logged in as root, if it 
makes a difference) I get "Starting tomcat4:   OK  ]" as if it were 
running, but then there is no  process running with a name that even 
remotely makes me think it might be Tomcat running.  Then when I stop the 
service, I get the following:

Stopping tomcat4: Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.1_02
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.(Socket.java:291)
at java.net.Socket.(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
FAILED]
Any advice as to what might be causing my problem would be greatly 
appreciated.

Lisa

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RES: Corrupted file

2003-03-21 Thread Allan Campos de Moraes
Thank you 


-Mensagem original-
De: Tim Funk [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 21 de março de 2003 14:01
Para: Tomcat Users List
Assunto: Re: Corrupted file

What os and file are you using?

If it is a tar.gz (.tgz) file - you need to your GNU tar since tar from 
proprietary unixes may not work right (solaris/hpux). PKunzip also 
doesn't like tgz files either.

-Tim

Allan Campos de Moraes wrote:
>  Hi,
> 
>   Every time I try to download the tomcat files using the http servers
> from apache it comes corrupted, someone knows some ftp sote I could use to
> download them ?
> 
> Regards,
> 
> Allan Moraes
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003
>  
>   
> Esta mensagem, incluindo seus anexos, pode conter informações
privilegiadas
> e/ou de caráter confidencial, não podendo ser retransmitida sem
autorização
> do remetente. Se você não é o destinatário ou pessoa autorizada a
recebê-la,
> informamos que o seu uso, divulgação, cópia ou arquivamento são proibidos.
> Portanto, se você recebeu esta mensagem por engano, por favor, nos informe
> respondendo imediatamente a este e-mail e em seguida apague-a.
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003
 
  
Esta mensagem, incluindo seus anexos, pode conter informações privilegiadas
e/ou de caráter confidencial, não podendo ser retransmitida sem autorização
do remetente. Se você não é o destinatário ou pessoa autorizada a recebê-la,
informamos que o seu uso, divulgação, cópia ou arquivamento são proibidos.
Portanto, se você recebeu esta mensagem por engano, por favor, nos informe
respondendo imediatamente a este e-mail e em seguida apague-a.


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

Re: How much $$ to get Tomcat/J2SE installed?

2003-03-21 Thread John Turner
You can do it for free.

Complete HOWTO, step by step: http://www.johnturner.com/howto

John

On Fri, 21 Mar 2003 11:42:32 -0500, Chris Hale 
<[EMAIL PROTECTED]> wrote:

All,

Looking for some quick help here.   Need to get this installed on my 
RH7.3
system with Apache and mod_ssl.  My developer is doing some stuff with 
.jsp
files and needs this support on the server.

Anyone willing to do this for some quick cash?  I tried to get it 
installed
and got stumped pretty fast.

Send me your credentials and a fixed price for doing this.  The server is 
a
hosted virtual private server.

Chris

--
Chris Hale
Peak Networks
16 Cassie Lane
Merrimack, NH 03054
http://www.peaknetworks.com
800-PEAK-987
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Tim Funk
Look for /var/tomcat4/logs/catalina.out. There will be an error message 
in there of what went wrong.

-Tim

Lisa Foister wrote:
I'm very much a Linux newbie, so I may be missing something obvious here, 
but I think I've got the J2SDK set up right, and I thought I had Tomcat set 
up right.  I've completely shut down my Apache server so I don't have to 
deal with the interactions, and although I would prefer to be running 
Tomcat on port 80, at the moment I'd be happy to have it running on any 
port.

Every time I try to start Tomcat as a service (logged in as root, if it 
makes a difference) I get "Starting tomcat4:   OK  ]" as if it were 
running, but then there is no  process running with a name that even 
remotely makes me think it might be Tomcat running.  Then when I stop the 
service, I get the following:

Stopping tomcat4: Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.1_02
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.(Socket.java:291)
at java.net.Socket.(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
FAILED]

Any advice as to what might be causing my problem would be greatly 
appreciated.

Lisa

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



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


no Tomcat process & error stopping service (Red Hat 8.0)

2003-03-21 Thread Lisa Foister
I'm very much a Linux newbie, so I may be missing something obvious here, 
but I think I've got the J2SDK set up right, and I thought I had Tomcat set 
up right.  I've completely shut down my Apache server so I don't have to 
deal with the interactions, and although I would prefer to be running 
Tomcat on port 80, at the moment I'd be happy to have it running on any 
port.

Every time I try to start Tomcat as a service (logged in as root, if it 
makes a difference) I get "Starting tomcat4:   OK  ]" as if it were 
running, but then there is no  process running with a name that even 
remotely makes me think it might be Tomcat running.  Then when I stop the 
service, I get the following:

Stopping tomcat4: Using CATALINA_BASE:   /var/tomcat4
Using CATALINA_HOME:   /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.1_02
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.(Socket.java:291)
at java.net.Socket.(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
FAILED]

Any advice as to what might be causing my problem would be greatly 
appreciated.

Lisa


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



Re: Corrupted file

2003-03-21 Thread Tim Funk
What os and file are you using?

If it is a tar.gz (.tgz) file - you need to your GNU tar since tar from 
proprietary unixes may not work right (solaris/hpux). PKunzip also 
doesn't like tgz files either.

-Tim

Allan Campos de Moraes wrote:
 Hi,

Every time I try to download the tomcat files using the http servers
from apache it comes corrupted, someone knows some ftp sote I could use to
download them ?
Regards,

Allan Moraes

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003
 
  
Esta mensagem, incluindo seus anexos, pode conter informações privilegiadas
e/ou de caráter confidencial, não podendo ser retransmitida sem autorização
do remetente. Se você não é o destinatário ou pessoa autorizada a recebê-la,
informamos que o seu uso, divulgação, cópia ou arquivamento são proibidos.
Portanto, se você recebeu esta mensagem por engano, por favor, nos informe
respondendo imediatamente a este e-mail e em seguida apague-a.





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


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


Re: internal server error

2003-03-21 Thread Tim Funk
Make sure you have as many tomcat workers(maxProcessors) as apache workers.

-Tim

Adrian Epuras wrote:
I'm using tomcat 4.1.18 and apache 2.0.44 with JK2 on Slackware 8.1.
And from time to time I get something like this:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Apache/2.0.44 (Unix) DAV/2 mod_jk2/2.0.3-dev Server at 192.168.1.1 Port 80
On refresh the error is gone.
In the apache error_log this error looks like:
[Fri Mar 21 18:44:16 2003] [error] lb.getWorker() reenable
ajp13:localhost:8009
[Fri Mar 21 18:44:16 2003] [error] workerEnv.init() create slot epStat.4
failed
[Fri Mar 21 18:44:16 2003] [error] lb.service() worker failed 12 for
ajp13:localhost:8009
[Fri Mar 21 18:44:16 2003] [error] lb.service() unrecoverable error...
[Fri Mar 21 18:44:16 2003] [error] mod_jk.handler() Error connecting to
tomcat 12
Can anybody tell me what's going on??
Adrian.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


RE: Need help with tomcat running as service with ajp13

2003-03-21 Thread Mark Prins
- the logs show nothing strange; I've set up with request dumping now
- I'm playing with the params for the tomcat.exe in the registry (-Xrs, JVM 
dll, garbage collection options)
- traffic is really low but that doesn't seem to make a difference.

This afternoon it seems to be behaving itself... but it can take upto a day 
to go wrong. 

Mark



Citeren "Strecker, Mark" <[EMAIL PROTECTED]>:

> This sounds eerily familiar. The box I am running on is a dual processor
> box too. Thanks for your info.
> What else have you tried to debug this? Anything logged that looks
> interesting?
> 
> Mark
> 
> -Original Message-
> From: Mark Prins [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 21, 2003 6:45 AM
> To: Tomcat Users List; Jake Robb
> Subject: Re: Need help with tomcat running as service with ajp13
> 
> 
> Citeren Jake Robb <[EMAIL PROTECTED]>:
> 
> > The very first thing I'd try is upgrading to the latest version of
> the
> > JDK (1.4.1_01). 
> 
> 1.4.1_02 is the latest.
> I have had this problem with 4.0.6 running standalone with 1.3.x
> Upgrading 
> to 1.4.1_01 helped.
> 
> I have a NT4 box with 4.0.6 standalone on 1.4.1_02 with coyote connector
> 
> RC1 that has this behaviour (cpu hogging) (I upgraded the JDK from 
> 1.4.1_01 - but that doesn't seem to help)
> Both are dual processor boxes...
> 
> Mark
> 
> 
> --
> _
> Zon Breedband Family, 2 keer zo snel als alle andere ADSL aanbieders.
> Voor maar 34 euro per maand. Bestel nu op www.zonnet.nl/breedband
> Tijdelijk gratis modem en geen aansluitkosten!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



--
_
Zon Breedband Family, 2 keer zo snel als alle andere ADSL aanbieders.
Voor maar 34 euro per maand. Bestel nu op www.zonnet.nl/breedband
Tijdelijk gratis modem en geen aansluitkosten!

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



internal server error

2003-03-21 Thread Adrian Epuras
I'm using tomcat 4.1.18 and apache 2.0.44 with JK2 on Slackware 8.1.
And from time to time I get something like this:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Apache/2.0.44 (Unix) DAV/2 mod_jk2/2.0.3-dev Server at 192.168.1.1 Port 80

On refresh the error is gone.
In the apache error_log this error looks like:

[Fri Mar 21 18:44:16 2003] [error] lb.getWorker() reenable
ajp13:localhost:8009
[Fri Mar 21 18:44:16 2003] [error] workerEnv.init() create slot epStat.4
failed
[Fri Mar 21 18:44:16 2003] [error] lb.service() worker failed 12 for
ajp13:localhost:8009
[Fri Mar 21 18:44:16 2003] [error] lb.service() unrecoverable error...
[Fri Mar 21 18:44:16 2003] [error] mod_jk.handler() Error connecting to
tomcat 12

Can anybody tell me what's going on??
Adrian.


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



How much $$ to get Tomcat/J2SE installed?

2003-03-21 Thread Chris Hale
All,

Looking for some quick help here.   Need to get this installed on my RH7.3
system with Apache and mod_ssl.  My developer is doing some stuff with .jsp
files and needs this support on the server.

Anyone willing to do this for some quick cash?  I tried to get it installed
and got stumped pretty fast.

Send me your credentials and a fixed price for doing this.  The server is a
hosted virtual private server.

Chris

--
Chris Hale
Peak Networks
16 Cassie Lane
Merrimack, NH 03054
http://www.peaknetworks.com
800-PEAK-987
[EMAIL PROTECTED]


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



Re: What to set docBase attribute to in an individual Context.xml fil e

2003-03-21 Thread Rasputin
* Collins, Jim <[EMAIL PROTECTED]> [0340 16:40]:
> Hi Jake,
> 
> Thanks for getting back so quick. So the context file in META-INF should be
> context.xml and not myapp.xml?
> 
> That is maybe where I have been going wrong, I read some previous posts on
> this from Craig and I thought he said you name the context file with the
> name of your app and a .xml extension. 

I've done that before now, when I've needed to add contexts without
editing server.xml - BUT those files have gone into the webapps directory
(where a warfile would normally go) - see manager.xml which I think is in
webapps/ by default. This context.xml method sounds like a safer
solution though...

-- 
He's the kind of man for the times that need the kind of man he is ...
Rasputin :: Jack of All Trades - Master of Nuns

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



Corrupted file

2003-03-21 Thread Allan Campos de Moraes

 Hi,

Every time I try to download the tomcat files using the http servers
from apache it comes corrupted, someone knows some ftp sote I could use to
download them ?

Regards,

Allan Moraes

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 17/3/2003
 
  
Esta mensagem, incluindo seus anexos, pode conter informações privilegiadas
e/ou de caráter confidencial, não podendo ser retransmitida sem autorização
do remetente. Se você não é o destinatário ou pessoa autorizada a recebê-la,
informamos que o seu uso, divulgação, cópia ou arquivamento são proibidos.
Portanto, se você recebeu esta mensagem por engano, por favor, nos informe
respondendo imediatamente a este e-mail e em seguida apague-a.


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

RE: What to set docBase attribute to in an individual Context.xml fil e

2003-03-21 Thread Collins, Jim
Hi Jake,

Thanks for getting back so quick. So the context file in META-INF should be
context.xml and not myapp.xml?

That is maybe where I have been going wrong, I read some previous posts on
this from Craig and I thought he said you name the context file with the
name of your app and a .xml extension. 

I'll try what you say.

Thanks

Jim.

> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: 21 March 2003 16:35
> To: Tomcat Users List
> Subject: Re: What to set docBase attribute to in an individual
> Context.xml fil e
> 
> 
> 
> First, the name of the context configuration file put into 
> META-INF should 
> be, very specifically, "context.xml".  The docBase needs to 
> be name of your 
> .war file.  So, if you your .war file is "MyWarFile.war", 
> then it should be 
> docBase="MyWarFile.war".
> 
> Jake
> 
> At 02:49 PM 3/21/2003 +, you wrote:
> >Hi,
> >
> >I am deploying my application using manager/deploy. In the META-INF
> >directory I have myapp.xml file. If I am deploying the app 
> using manager
> >does anyone know what I should set the docBase attribute to? 
> I am also
> >having problems reading an Environment property from the 
> context file.
> >
> >Here is my context file:
> >
> > > path="/myapp" debug="0" privileged="true">
> >
> >> value="Test value"/>
> >
> >
> >In my code I try to do this:
> >
> > _ic = new InitialContext();
> > log.debug("Test look up = " +
> >(String)_ic.lookup("java:comp/env/Test"));
> >
> >But I get an error saying  "Name Test is not bound in this Context"
> >
> >If however I have this entry in the web.xml file it works:
> >
> > 
> > 
> > Test
> > 
> > Test
> > This is a 
> test
> > java.lang.String
> > 
> >
> >If anyone could shed any light on this it would be appreciated.
> >
> >Thanks
> >
> >Jim.
> >
> >
> >PLEASE READ: The information contained in this email is confidential
> >and intended for the named recipient(s) only. If you are not 
> an intended
> >recipient of this email you must not copy, distribute or take any
> >further action in reliance on it and you should delete it 
> and notify the
> >sender immediately. Email is not a secure method of communication and
> >Nomura International plc cannot accept responsibility for 
> the accuracy
> >or completeness of this message or any attachment(s). Please 
> examine this
> >email for virus infection, for which Nomura International plc accepts
> >no responsibility. If verification of this email is sought 
> then please
> >request a hard copy. Unless otherwise stated any views or opinions
> >presented are solely those of the author and do not 
> represent those of
> >Nomura International plc. This email is intended for informational
> >purposes only and is not a solicitation or offer to buy or sell
> >securities or related financial instruments. Nomura 
> International plc is
> >regulated by the Financial Services Authority and is a member of the
> >London Stock Exchange.
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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



Re: What to set docBase attribute to in an individual Context.xml fil e

2003-03-21 Thread Jacob Kjome
First, the name of the context configuration file put into META-INF should 
be, very specifically, "context.xml".  The docBase needs to be name of your 
.war file.  So, if you your .war file is "MyWarFile.war", then it should be 
docBase="MyWarFile.war".

Jake

At 02:49 PM 3/21/2003 +, you wrote:
Hi,

I am deploying my application using manager/deploy. In the META-INF
directory I have myapp.xml file. If I am deploying the app using manager
does anyone know what I should set the docBase attribute to? I am also
having problems reading an Environment property from the context file.
Here is my context file:


  

In my code I try to do this:

_ic = new InitialContext();
log.debug("Test look up = " +
(String)_ic.lookup("java:comp/env/Test"));
But I get an error saying  "Name Test is not bound in this Context"

If however I have this entry in the web.xml file it works:



Test

Test
This is a test
java.lang.String

If anyone could shed any light on this it would be appreciated.

Thanks

Jim.

PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.


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


RE: Need help with tomcat running as service with ajp13

2003-03-21 Thread Strecker, Mark
This sounds eerily familiar. The box I am running on is a dual processor box too. 
Thanks for your info.
What else have you tried to debug this? Anything logged that looks interesting?

Mark

-Original Message-
From: Mark Prins [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 6:45 AM
To: Tomcat Users List; Jake Robb
Subject: Re: Need help with tomcat running as service with ajp13


Citeren Jake Robb <[EMAIL PROTECTED]>:

> The very first thing I'd try is upgrading to the latest version of the
> JDK (1.4.1_01). 

1.4.1_02 is the latest.
I have had this problem with 4.0.6 running standalone with 1.3.x Upgrading 
to 1.4.1_01 helped.

I have a NT4 box with 4.0.6 standalone on 1.4.1_02 with coyote connector 
RC1 that has this behaviour (cpu hogging) (I upgraded the JDK from 
1.4.1_01 - but that doesn't seem to help)
Both are dual processor boxes...

Mark


--
_
Zon Breedband Family, 2 keer zo snel als alle andere ADSL aanbieders.
Voor maar 34 euro per maand. Bestel nu op www.zonnet.nl/breedband
Tijdelijk gratis modem en geen aansluitkosten!

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


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



Re: Deploy with Ant tasks

2003-03-21 Thread Jacob Kjome
The behavior of install and deploy are very different.  "install" runs your 
app from wherever you point the docBase to.  deploy using HTTP PUT to 
upload the war file to the manager app work directory (as you've 
found).  Also, deploy is permanent (at least until undeploy) as it causes a 
physical modifcation of server.xml which "install" does not.

Now, as far as reading config files, you must be counting on File IO to 
read the files.  This is not portable.  You should be doing no file IO 
except to, possibly, directories specified via server configuration of the 
tempdir that the servlet spec defines.  To read properties files, use the 
following...

InputStream is = 
getServletContext().getResourceAsStream("/WEB-INF/my.properties");

The feed the inputstream into a Properties object.

This will work whether you are deploying from a .war file or from a 
directory.  This is the correct way to do things.  If you don't want to do 
this, then don't expect the deploy task to work for you.

Jake

At 11:13 PM 3/20/2003 -0600, you wrote:
Hi,

When using the Tomcat Ant tasks to deploy (install or deploy) a war, where
should the war and extracted archive end up?
Is it supposed to deploy to the work subdirectory or webapps?

The problem I am having is that I get a nearly successful deploy with either
install or deploy - the war ends up in the manager subdir (as expected) and
the jars from the war are extracted to an appropriate work subdir (as
expected), but the properties files in the war (in WEB-INF) are not
extracted to the WEB-INF dir of the appropriate work subdir - which is an
unexpected error.  So when the app starts, errors occur from lack of reading
the needed property files.
Also, no files are placed in the webapps dir structure as when placing a war
in the webapps dir, but I interpret this as expected behavior from the
docs.(?)
I am wondering if I am missing a configuration item or similar, but cannot
determine what.
I have spent many days trying different things and searching the web and
archives with no info.  Is there something in the docs I have missed?
Appreciate any pointers or answers.  TIA.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem when tomcat start

2003-03-21 Thread Yannis Avenel
Hi all,

I've got a problem runnig catalina after using the install.pl script.
I'm using jakarta-tomcat-4.1.18, j2sdk1.4.1_02 and opennms-1.0.2-1
I have put tomcat in /usr/local/tomcat , jdk in/usr/local/java and openNMS 
in /usr/local/openNMS.
I have make a link from /usr/local/openNMS/webapps/onpennms to 
/usr/local/tomcat/webapps/opennms

I put the line "$serverxml  = '/usr/local/tomcat/conf/server.xml';" in 
the install.pl" and here is my tomcat's server.xml lines for opennms:


   
   


(I try with homeDir="/usr/local/openNMS" and have the same result)

And i have the following output in my catalina.out :

20 mars 2003 10:43:00 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
20 mars 2003 10:43:00 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
20 mars 2003 10:43:01 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
20 mars 2003 10:43:02 org.apache.commons.digester.Digester startElement
GRAVE: Begin event threw exception
java.lang.ClassNotFoundException: org.opennms.web.log.Log4JLogger
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
at 
org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:595)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: java.lang.ClassNotFoundException: 
org.opennms.web.log.Log4JLogger
java.lang.ClassNotFoundException: org.opennms.web.log.Log4JLogger
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
at 
org.apache.commons.digester.Digester.startElement(Digester.java:1240)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:595)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M

MemoryRoles Roles and Users

2003-03-21 Thread Francois Paris
Hi,

I am trying to list the current user roles, but I don't know very well how I can do it.

I am using Tomcat/4.1.18.

I have found in the servlet api doc and Catalina api doc, two interesting methods : 

API Servlet :  HttpServletRequest.getUserPrincipal()
API Catalina:  GenericPrincipal.getRoles()

Any ideas ?

Thanks in advance.

François.


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



Re: Problems with tomcat 4.0.1 and 4.1.18

2003-03-21 Thread Micael
The two are likely the same problem.  Do you have something that might be 
spawning threads in your application?

At 09:48 AM 3/21/03 +0100, you wrote:
Hi to all

Recently, we updated our Tomcat server from 4.0.1 to 4.1.18.
All was perfect on the first day, but then the new server crashed and I 
can't found the cause.

Doing a ps -ef i see lots of tomcat processes that are'nt finalizing, and 
when this number arrives to the value we have in acceptCount variable it 
stops serving pages.

Here is the error on catalina.out

Mar 20, 2003 9:34:30 PM org.apache.tomcat.util.log.CommonLogHandler log
INFO: All threads are busy, waiting. Please increase maxThreads or check 
the servlet status75 75

maxThreads is set to 75 but we haven't more from 2-3 concurrent users so I 
think this is not th problem.

We tried to run again the old server, but now we have a very strange 
error, we can execute servlets but not jsp pages. Here is the error 
received by the browser:

Apache Tomcat/4.0.1 - HTTP Status 503 - Servlet jsp is currently unavailable

this happens too to the examples directory, I think it's not caused by the 
application...

I'm going crazy, somebody could help?

Thanks in advance
--

Daniel Rubio Rodríguez
OASI (Organisme Autònom Per la Societat de la Informació)
c/ Assalt, 12
43003 - Tarragona
Tef.: 977.244.007 - Fax: 977.224.517
e-mail: [EMAIL PROTECTED]

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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Tomcat MBeanServer and Registry

2003-03-21 Thread dubstar 27
Hi,

I'm trying to get retrieve my JMX registry and MBeanServer in a Java 
servlet:

registry = (Registry) getServletContext().getAttribute 
("org.apache.catalina.Registry");

mBServer = 
(MBeanServer)getServletContext().getAttribute("org.apache.catalina.MBeanServer");

However, I get null for both registry and mBServer.

Is this how it's supose to be done? Are there steps before this that I 
should do in order for my code to work properly?

Regards,
Nicolas
_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


[JK2] JK2 Properties for Coyote Connector

2003-03-21 Thread Jerry Jalenak
Hi,

I'm trying to get the Coyote Connector working with Apache 2.x and Tomcat
3.3.1.  I've been through the Coyote 1.0rc2 doc and have updated all of the
.jar files in Tomcat.  What I'm missing is the JK2.properties file.  Does
anyone have an example of what this file should look like?  

TIA!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



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



Re: JNDI problems

2003-03-21 Thread Andoni
Could it be because of the conflict between the declaration of the resource
as being "shareable" in the server.xml file and being Container in the
web.xml?

I am very new to this stuff.

Andoni.


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 21, 2003 3:01 PM
Subject: JNDI problems


>  Hello all.  I have been using Tomcat 4.x, and it's worked very well.
> I had a data source defined in struts, and that worked very well.  Then I
> had a need to access a database from a non-JSP class, so I figured I'd use
> JNDI.  Oddly enough I got this to work the first time.  Then I went to
> tweak it, and now it does not work at all.
>
>  Here is my server.xml settings:
>  className="org.apache.catalina.core.StandardContext"
> cachingAllowed="true"
>
charsetMapperClass="org.apache.catalina.util.CharsetMapper"
> cookies="true"
> crossContext="false"
> debug="5"
> docBase="/var/tomcat4/webapps/performanceServer"
> mapperClass
> ="org.apache.catalina.core.StandardContextMapper"
> path="/performanceServer"
> privileged="false"
> reloadable="false"
> swallowOutput="false"
> useNaming="true"
> wrapperClass="org.apache.catalina.core.StandardWrapper">
> auth="SERVLET"
>   description="Performance Server database."
>   name="jdbc/PerformanceDatabase"
>   scope="Shareable"
>   type="javax.sql.DataSource"/>
>  
>   
>driverClassName
>org.postgresql.Driver
>   
>   
>factory
>
> org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
>maxActive
>100
>   
>   
>maxIdle
>2
>   
>   
>maxWait
>5000
>   
>   
>password
>
>   
>   
>url
>jdbc:postgresql:performance
>   
>   
>username
>perfserver
>   
>   
>validationQuery
>
>   
>  
> 
>
>
> Here is my web.xml entry:
> 
> 
>  DB Connection
>  jdbc/PerformanceDatabase
>  javax.sql.DataSource
>  Container
> 
>
>
> Here is my code to get a connection:
> private static Connection getConnection(){
>  Connection connection = null;
>  try {
>   Context ctx = new InitialContext();
>   if (ctx == null )
>throw new Exception("Boom - No Context");
>   System.out.println(" getting data source");
>
>   Context environmentContext = (Context)ctx.lookup
> ("java:comp/env");
>   DataSource ds = (DataSource)environmentContext.lookup
> ("jdbc/PerformanceDatabase");
>
>   System.out.println(" got datasource");
>
>   if (ds != null) {
>System.out.println(ds);
>connection = ds.getConnection();
>   }
>  System.out.println(" got connection");
>  } catch (Exception e) {
>   e.printStackTrace();
>  }
>  return connection;
> }
>
>
>  The sys.out 'got datasource' prints, but it never gets to 'got
> connection', and no exceptions are thrown.  It just hangs.  There is no
CPU
> useage, so this leads me to think that there is some blocking going on.
> Perhaps the getConnection just isn't able to do something, I just don't
> know what.
>
>  Any ideas?  Thanks!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: questions on instances of java beans

2003-03-21 Thread Michael Ni
do you have any examples on this material?

mike






From: Reynir Hübner <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: RE: questions on instances of java beans
Date: Fri, 21 Mar 2003 13:42:59 -
Hi,

Put your bean into servlet context when it's instanciated with the first 
client. Then get it out of ServletContext when you want the other client to 
use it.

Hope it helps
-reynir
> -Original Message-
> From: Michael Ni [mailto:[EMAIL PROTECTED]
> Sent: 21. mars 2003 13:44
> To: [EMAIL PROTECTED]
> Subject: questions on instances of java beans
>
>
> if browser A has made an instance of my javabean of session
> scope, how does
> browser B from another computer use the same instance of that
> javabean.  in
> otherwords i want to have different browsers use a session
> bean like an
> application scope bean.
>
> mike
>
>
>
>
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


JNDI problems

2003-03-21 Thread TimothyReaves
 Hello all.  I have been using Tomcat 4.x, and it's worked very well.
I had a data source defined in struts, and that worked very well.  Then I
had a need to access a database from a non-JSP class, so I figured I'd use
JNDI.  Oddly enough I got this to work the first time.  Then I went to
tweak it, and now it does not work at all.

 Here is my server.xml settings:

 
 
  
   driverClassName
   org.postgresql.Driver
  
  
   factory

org.apache.commons.dbcp.BasicDataSourceFactory
  
  
   maxActive
   100
  
  
   maxIdle
   2
  
  
   maxWait
   5000
  
  
   password
   
  
  
   url
   jdbc:postgresql:performance
  
  
   username
   perfserver
  
  
   validationQuery
   
  
 



Here is my web.xml entry:


 DB Connection
 jdbc/PerformanceDatabase
 javax.sql.DataSource
 Container



Here is my code to get a connection:
private static Connection getConnection(){
 Connection connection = null;
 try {
  Context ctx = new InitialContext();
  if (ctx == null )
   throw new Exception("Boom - No Context");
  System.out.println(" getting data source");

  Context environmentContext = (Context)ctx.lookup
("java:comp/env");
  DataSource ds = (DataSource)environmentContext.lookup
("jdbc/PerformanceDatabase");

  System.out.println(" got datasource");

  if (ds != null) {
   System.out.println(ds);
   connection = ds.getConnection();
  }
 System.out.println(" got connection");
 } catch (Exception e) {
  e.printStackTrace();
 }
 return connection;
}


 The sys.out 'got datasource' prints, but it never gets to 'got
connection', and no exceptions are thrown.  It just hangs.  There is no CPU
useage, so this leads me to think that there is some blocking going on.
Perhaps the getConnection just isn't able to do something, I just don't
know what.

 Any ideas?  Thanks!


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



Re: Classpaths

2003-03-21 Thread Tim Funk
If have classes in shared/classes and they depend on other classes (that 
are in jars), you can place the jars in shared/lib without a problem.

-Tim

Richard Jones wrote:
I have a question on java classpaths. If I have a set of java classes and want to use them I put them into tomcat/shared/classes directory. my question is these java classes require jar's of there own can I simply put these into the shared/lib folder and will tomcat look after it all.

Regards

Richard


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


What to set docBase attribute to in an individual Context.xml file

2003-03-21 Thread Collins, Jim
Hi,

I am deploying my application using manager/deploy. In the META-INF
directory I have myapp.xml file. If I am deploying the app using manager
does anyone know what I should set the docBase attribute to? I am also
having problems reading an Environment property from the context file. 

Here is my context file:



  


In my code I try to do this:

_ic = new InitialContext();
log.debug("Test look up = " +
(String)_ic.lookup("java:comp/env/Test"));

But I get an error saying  "Name Test is not bound in this Context"

If however I have this entry in the web.xml file it works:



Test

Test
This is a test
java.lang.String


If anyone could shed any light on this it would be appreciated.

Thanks

Jim.


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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



Classpaths

2003-03-21 Thread Richard Jones
I have a question on java classpaths. If I have a set of java classes and want to use 
them I put them into tomcat/shared/classes directory. my question is these java 
classes require jar's of there own can I simply put these into the shared/lib folder 
and will tomcat look after it all.

Regards

Richard
-- 
___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


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



Re: Header and Footer in directory listing .....

2003-03-21 Thread Tim Funk
AFAIK - there is no way. But if you are using apache in front of tomcat 
- there are some ways to decorate directory listings. I don't know the 
details, but I think its in the apache docs.

-Tim

[EMAIL PROTECTED] wrote:
Hi,
	Can anyone let me know how to change the look and feel of
directories listing in tomcat . 

( I am using windows )

Regards
Guru


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


Header and Footer in directory listing .....

2003-03-21 Thread graghupathy
Hi,
Can anyone let me know how to change the look and feel of
directories listing in tomcat . 

( I am using windows )

Regards
Guru


Gurumoorthy Raghupathy
Aegon Benefit Solution 
Email : [EMAIL PROTECTED]
Phone : 0044 20 72404801
Mobile : 07745988336



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



Re: Setting up permissions for jsp directory

2003-03-21 Thread Tim Funk
The easiest way is to place your jsps inside of your WEB-INF directory.

Otherwise - if you are using apache in front of tomcat there are 
directives which can do that.

Otherwise - You can create a security constraint which nobody has access 
to. (Configured in web.xml)

-Tim

Nihita Goel wrote:
I have an application where I have a single controller servet receiving
requests and then calling the appropriate jsp pages. I have Java classes
to be used by both the servlet and jsp's. These Java Bean clasees are
for database interaction. I also need to maintain session. I am using
these Java Beans with application scope. The general flow is:
1. The controller servlet receives the request.
2. Checks for the session state using session object.// Basically
validates if the user is logged -in
3. Instantiate the bean class and get setter methods of java Beans to
fetch  data from database.// application scope.
4. If user is logged -in calls the appropriate JSP Page
5. The JSP Page display the information using the Bean.
The problem is - it seems to be working fine if the user follows the
normal flow. However if he directly goes  and access the jsp page thru
the url he is still able to get it.
How do I configure TomCat to disallow access to the directory where I am
keeping the jsp pages.
I am using Tomcat 4.1.18.

Any other idea ??
Regards
N-Goel


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


Lb_factor didn't work as expected

2003-03-21 Thread LAGALISSE Eric








After several
test using mod_jk 2.0.43 on Linux with apache 2.0.43 we noticed that if we define
workers.properties as follow the load balancing send to both tomcat server
but not in the same ratio.

For example if we
stress with 100 users, 80 are routed to the first tomcat server declared in workers.properties
and 20 are routed to the second.

 

So if soemone
on this small planet already configured and tested SUCCESSFULLY the load balancing
we’ll very interested in his experience on this subject.

 

# Workers.properties

ps=/

 

worker.list=infonetworker

 

#


# First tomcat server

#


worker.tomcat1.port=8112

worker.tomcat1.host=clos1030.casden.fr

worker.tomcat1.type=ajp13

worker.tomcat1.cachesize=10

worker.tomcat1.cache_timeout=600

worker.tomcat1.socket_keepalive=0

worker.tomcat1.socket_timeout=300

 

 

 

#

# Specifies the
load balance factor when used with

# a load balancing
worker.

# Note:

#  >
lbfactor must be > 0

#  >
Low lbfactor means less work done by the worker.

worker.tomcat1.lbfactor=1

 

#


# Second tomcat
server

# 

worker.tomcat2.port=8112

worker.tomcat2.host=clos1032.casden.fr

worker.tomcat2.type=ajp13

worker.tomcat2.cachesize=10

worker.tomcat2.cache_timeout=600

worker.tomcat2.socket_keepalive=0

worker.tomcat2.socket_timeout=300

 

#

# Specifies the
load balance factor when used with

# a load balancing
worker.

# Note:

#  >
lbfactor must be > 0

#  >
Low lbfactor means less work done by the worker.

worker.tomcat2.lbfactor=1

 

 

#


# Load Balancer
worker

# 

#

 

# The loadbalancer
(type lb) worker performs weighted round-robin

# load balancing
with sticky sessions.

# Note:

#  >
If a worker dies, the load balancer will check its state

#   
once in a while. Until then all work is redirected to peer

#   
worker.

worker.infonetworker.type=lb

worker.infonetworker.balanced_workers=tomcat1,
tomcat2

 

 

#

# END workers.properties

#

 

 

Eric LAGALISSE






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

RE: Setting up permissions for jsp directory

2003-03-21 Thread Manav Gupta
In essence, your jsp is 'separated' from your controller servlet. 

1. You can either plug-in the validation mechanism on top of each jsp page
such that each jsp page talks to the servlet before processing (but i
presume you wouldn't want this).
2. You can use JDBC Authentication Realm. Check
http://tomcat.mslinn.com/tomcat/realms.html and
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRealm
for more information.

?manav.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nihita
Goel
Sent: Friday, March 21, 2003 12:59 PM
To: Tomcat Users List
Subject: Setting up permissions for jsp directory


I have an application where I have a single controller servet receiving
requests and then calling the appropriate jsp pages. I have Java classes
to be used by both the servlet and jsp's. These Java Bean clasees are
for database interaction. I also need to maintain session. I am using
these Java Beans with application scope. The general flow is:
1. The controller servlet receives the request.
2. Checks for the session state using session object.// Basically
validates if the user is logged -in
3. Instantiate the bean class and get setter methods of java Beans to
fetch  data from database.// application scope.
4. If user is logged -in calls the appropriate JSP Page
5. The JSP Page display the information using the Bean.

The problem is - it seems to be working fine if the user follows the
normal flow. However if he directly goes  and access the jsp page thru
the url he is still able to get it.

How do I configure TomCat to disallow access to the directory where I am
keeping the jsp pages.

I am using Tomcat 4.1.18.

Any other idea ??
Regards
N-Goel




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



RE: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43

2003-03-21 Thread Marion McKelvie
Ivan,

Thanks for your reply.  When you restart Apache, do the threads just build
up again?

If you can't see any difference between the two configurations, do you think
there may be a difference between the libraries being used?

Marion

-Original Message-
From: Ivan F. Martinez [mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 12:59
To: Tomcat Users List
Subject: Re: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43



On Thu, 20 Mar 2003 09:40:14 -
"Marion McKelvie" <[EMAIL PROTECTED]> wrote:

MM> Hello again,
MM>
MM> Is anyone running with the combination of Tomcat 4.1.18, Apache 2.0.43
and
MM> mod_jk 2.0.43 on Redhat 8?
MM>

I have one machine that works fine, and other with same problem as you.
When you restart apache everything works again.

I have tested with mod_jk and mod_jk2.

I didn't find the difference between the two machines.

MM> Marion
MM>
MM> -Original Message-
MM> From: Marion McKelvie [mailto:[EMAIL PROTECTED]
MM> Sent: 19 March 2003 10:38
MM> To: [EMAIL PROTECTED]
MM> Subject: tomcat 4.1.18, apache 2.0.43, mod_jk 2.0.43
MM>
MM>
MM> Hi,
MM>
MM> I have an installation using Tomcat 4.1.18, Apache 2.0.43 and mod_jk
2.0.43
MM> running on Redhat 8, all installed from rpms as executables (no building
MM> from source).
MM>
MM> Everything works fine for a while until I get the following error in
MM> catalina.out
MM>
MM> 19-Mar-2003 10:00:20 org.apache.tomcat.util.log.CommonLogHandler log
MM> INFO: All threads are busy, waiting. Please increase maxThreads or check
the
MM> servlet sttus75 75
MM>
MM> I can get this error just by playing with the Tomcat examples for long
MM> enough (presumably after 75 activities).  It's a bit like each thread is
not
MM> being released after it's used.  I have a comparable installation which
runs
MM> without problems but it's using Tomcat 4.1.12 with Apache 1.3.22.
MM>
MM> Server.xml is pretty much as installed by default (I've commented out
the
MM> 8080 connector) so it's using the Coyote connector:
MM>
MM> port="8009" minProcessors="5" maxProcessors="75"
MM>enableLookups="true" redirectPort="8443"
MM>acceptCount="10" debug="0" connectionTimeout="0"
MM>useURIValidationHack="false"
MM>
MM> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
MM>
MM> If I change the timeout to 2, catalina.out reports that the timeout
has
MM> been reached.
MM>
MM> workers.properties is as installed by default except that I've corrected
the
MM> java_home path.
MM>
MM> mod_jk.conf is as follows
MM>
MM> JkWorkersFile /etc/httpd/conf/workers.properties
MM> JkLogFile /var/log/httpd/mod_jk.log
MM> JkLogLevel error
MM>
MM>
MM> #
MM> # Root context mounts for Tomcat
MM> #
MM> JkMount /*.jsp ajp13
MM> JkMount /servlet/* ajp13
MM>
MM> #
MM> # Auto configuration for the /examples context starts.
MM> #
MM>
MM> #
MM> # The following line makes apache aware of the location of the /examples
MM> context
MM> #
MM> Alias /examples "/var/tomcat4/webapps/examples"
MM> 
MM> Options Indexes FollowSymLinks
MM> 
MM>
MM> #
MM> # The following line mounts all JSP files and the /servlet/ uri to
tomcat
MM> #
MM> JkMount /examples/servlet/* ajp13
MM> JkMount /examples/*.jsp ajp13
MM>
MM> #
MM> # The following line prohibits users from directly access WEB-INF
MM> #
MM> 
MM> AllowOverride None
MM> deny from all
MM> 
MM>
MM> ###
MM> # Auto configuration for the /examples context ends.
MM> ###
MM>
MM>
MM>
MM> Any help much appreciated - I'm sure I've probably missed something
obvious
MM> but all the restarts are getting very annoying!
MM>
MM> Marion
MM>
MM>
MM> -
MM> To unsubscribe, e-mail: [EMAIL PROTECTED]
MM> For additional commands, e-mail: [EMAIL PROTECTED]
MM>
MM>
MM> -
MM> To unsubscribe, e-mail: [EMAIL PROTECTED]
MM> For additional commands, e-mail: [EMAIL PROTECTED]
MM>


--


Ivan F. Martinez

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


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



RE: questions on instances of java beans

2003-03-21 Thread Reynir Hübner
Hi, 

Put your bean into servlet context when it's instanciated with the first client. Then 
get it out of ServletContext when you want the other client to use it.

Hope it helps
-reynir


> -Original Message-
> From: Michael Ni [mailto:[EMAIL PROTECTED] 
> Sent: 21. mars 2003 13:44
> To: [EMAIL PROTECTED]
> Subject: questions on instances of java beans
> 
> 
> if browser A has made an instance of my javabean of session 
> scope, how does 
> browser B from another computer use the same instance of that 
> javabean.  in 
> otherwords i want to have different browsers use a session 
> bean like an 
> application scope bean.
> 
> mike
> 
> 
> 
> 
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



questions on instances of java beans

2003-03-21 Thread Michael Ni
if browser A has made an instance of my javabean of session scope, how does 
browser B from another computer use the same instance of that javabean.  in 
otherwords i want to have different browsers use a session bean like an 
application scope bean.

mike



_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


questions on instances of java beans

2003-03-21 Thread Michael Ni
if browser A has made an instance of my javabean of session scope, how does 
browser B from another computer use the same instance of that javabean.  in 
otherwords i want to have different browsers use a session bean like an 
application scope bean.

mike



_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Servlet, Tomcat 3.3, IIS virtual directory access denied

2003-03-21 Thread Cinzia S
Hello people,

I've set up Tomcat to run as a service with a domain log on usr/pswd. IIS
works fine redirecting servlet requests to Tomcat via ISAPI redirector. All
on Windows 2000 Server.

The problem:
The java application creates and reads files from a location which
corresponds to an IIS virtual directory and is also a local directory with
respect to the Tomcat and IIS installation. The application is denied access
to this directory when submitting a network path (\\server/drive/directory/)
where to store and read files, but is happy when a local path is given
instead (E:/) Why? The domain user should have complete access to this. Is
it Tomcat, IIS, or java restrictions?

I appreciate any suggestion on this
Thanks


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



  1   2   >