RE: Tomcat OpenJMS Design Pattern?

2003-11-19 Thread Gavin, Rick
Hi Yoav,
  I was looking for a basic design model, that worked well, such as a high
level class diagram( classes,interfaces, etc ) that shows a good way to
implement openJMS within tomcat.  Some code snipets would be nice if
possible.  As I said, my main consern in Point-to-Point Queue processing, I
don't have any need for Subscription / Topic.   Basically I was looking to
have some manager class that on tomcat startup, would read in a config file,
then create listeners for all specified queues.

It my current tests, I have been having trouble getting the listeners to
work properly. I have no trouble putting messages in the queue, but my
listener some how is removing the item from the queue but not calling the
onMessage() method, so I never get a chance to handle the message, it just
vanishes.

My listeners have this structure..

class FtpQueueListener implements javax.jms.MessageListener
{
private QueueSession session;
private QueueReceiver receiver;

FtpQueueListener()

close()
// closes jms session
// clears the reciever's message listener..
receiver.setMessageListener(null);

startListener() 
// gets a jms connection,session, receiver and bind them to local
variabls
// sets the reciever's message listener to self..
receiver.setMessageListener(this);

onMessage()
// handles messages, but seems to never get called, broken
}

I was reading some info that talked about using the MessageListner.run()
method in a threaded sense.
You need to make the class implement runnable.  Is this required for doing
async message handling?

Thanks for your help,

Rick


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2003 5:26 AM
To: Tomcat Users List
Subject: RE: Tomcat  OpenJMS Design Pattern?


Howdy,
I've used and use OpenJMS with tomcat all the time, including in several
production systems.

What are you looking for specifically?  A document?  Code that sends
messages to an OpenJMS queue/topic, received from an OpenJMS queue/topic,
all of the above?

I've actually gone from using tomcat's JNDI support to specifying the JMS
connection parameters in an app-specific configuration file and creating the
JMS objects myself.  But I had it working via tomcat's JNDI before as well.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 6:25 PM
To: Tomcat Users List
Subject: Tomcat  OpenJMS Design Pattern?

Hi All,
  Just wondering if any could post a working design pattern for using 
openJMS or another open JMS engine with tomcat, preferably a model 
using asynchronous queue
message
handling.  I
figured someone around here has done it and I would rather use a tried
and
true model.

Looking for some basics about best intregration method, and or for
dealing
with async message
Handling.

I currently have openJMS setup using persistent Database storage, using 
JNDI content lookup to Get the JMS connection factory, is this better 
looked up once and bound
to
servlet context as an
Application scope variable, etc, etc?

Thanks for you any help,

Rick



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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 OpenJMS Design Pattern?

2003-11-18 Thread Gavin, Rick
Hi All,
  Just wondering if any could post a working design pattern for using
openJMS or another open 
JMS engine with tomcat, preferably a model using asynchronous queue message
handling.  I 
figured someone around here has done it and I would rather use a tried and
true model.  

Looking for some basics about best intregration method, and or for dealing
with async message
Handling.

I currently have openJMS setup using persistent Database storage, using JNDI
content lookup to
Get the JMS connection factory, is this better looked up once and bound to
servlet context as an 
Application scope variable, etc, etc?

Thanks for you any help,

Rick


JMS Provider w/ Tomcat?

2003-11-10 Thread Gavin, Rick
Hi All,
   Just wondering if Tomcat 5 included a JMS Engine/Provider, or if not,
what is recommended?
Thanks for any help,

Rick


RE: JMS Provider w/ Tomcat?

2003-11-10 Thread Gavin, Rick
Thanks Yoav,
  I'll give it a look, I found the Sun implementation and will try that
also.

Thanks again,

Rick 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 10, 2003 11:35 AM
To: Tomcat Users List
Subject: RE: JMS Provider w/ Tomcat?


Howdy,
Nope, tomcat doesn't include a JMS provider.

I've found OpenJMS to be an excellent stand-alone JMS provider, and it's
very easy to connect to an OpenJMS server using their openjms-client jar
from any program, including servlets running in tomcat.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 2:29 PM
To: Tomcat Users List ([EMAIL PROTECTED])
Subject: JMS Provider w/ Tomcat?

Hi All,
   Just wondering if Tomcat 5 included a JMS Engine/Provider, or if
not,
what is recommended?
Thanks for any help,

Rick



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



Possible to have default classes and taglib includes in JSPs?

2003-03-19 Thread Gavin, Rick
Hi all,
  Does anyone know if you can include classes and taglibs in all jsp pages
in a webapp by default, instead of having to import and reference them on
each page?  I didn't see it in the servlet or jsp spec.

Thanks for the help,
Rick

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



RE: Possible to have default classes and taglib includes in JSPs?

2003-03-19 Thread Gavin, Rick
Thanks Tim and Jon

Rick

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 8:09 AM
To: Tomcat Users List
Subject: Re: Possible to have default classes and taglib includes in
JSPs?


You can do a static include of a page which has your default imports:

%@ include file=/a_load_of_imports.jsp %

Tim Funk wrote:
 No - you have to explicitly import the classes and/or taglibs.
 
 -Tim
 
 Gavin, Rick wrote:
 
 Hi all,
   Does anyone know if you can include classes and taglibs in all jsp 
 pages
 in a webapp by default, instead of having to import and reference them on
 each page?  I didn't see it in the servlet or jsp spec.

 Thanks for the help,
 Rick
  
 
 
 
 -
 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: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Gavin, Rick
Thanks Bill,
  Does anyone have some docs about using this feature?  I haven't been able
to find much on the jakarta site.  I'm a bit confused as to what the
difference between a valve and a filter is. and which is the corret one
to use.  When i search for filter, i get info on valves.  I haven't found
anything on how to use a filter.  

Also,  if i use a wrapper to extend the request/response objects, does that
mean in a JSP page i would be able to access any extra methods i wanted to
add.. such as..

-- in jsp file --
String value = request.doMyNewAction(param1);

is it recommeded to use the catalina wrapper objects when working with
tomcat or the javax wrappers?

org.apache.catalina.connector.HttpRequestWrapper
or
javax.servlet.http.HttpServletRequestWrapper


Thanks for the help,

Rick

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 7:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???


It depends on the version.  The answer is no for Servlet-2.2 containers
(e.g. Tomcat 3.x).  The answer is yes for Servlet-2.3 containers (e.g.
Tomcat 4.x).  In fact, for Servlet-2.3 containers it is one of the most
common things that a Filter does.

If you are using Tomcat 4.x, then look into HttpServletRequestWrapper and
HttpServletResponseWrapper (both in the javax.servlet.http package).

Gavin, Rick [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi All
   Is it possible to extend request and response objects to add a few
custom
 properties and / or methods relating to a particular system, and have
tomcat
 use those instead of the standard request and resonse objects?

 Thanks,

 Rick




-
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: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Gavin, Rick

I'd recommend getting a Serlvet programming book and optionally a JSP 
book. They will come in very handy for these questions.

really? I have one of each, neither mention the subject or either
classes mentioned. Maybe before you make a vague suggestion like 
get a book , you may want to qualify about whether or not the 
desired result is possible and suggest an appropriate resource that 
may actually contain said information( book title, etc,).  

Its always nice to try something a little different and be demoted
to idiot status with the statment , get a book

Does anyone have an useful information

-Rick


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 11:02 AM
To: Tomcat Users List
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???


I'd recommend getting a Serlvet programming book and optionally a JSP 
book. They will come in very handy for these questions.

valve  - Tomcat specific
filter - Like a valve but portable across other servlet containers 
because its part of the serlvet specification.

requests/response can be wrapped by the Servlet wrapper classes which 
are part of the Servlet API. A book will really help clear the specifics 
up of why and when to use them.

Never ever use catalina classes directly unless:
- You really need to
- You really know why you are using them
- You really need to


-Tim

Gavin, Rick wrote:
 Thanks Bill,
   Does anyone have some docs about using this feature?  I haven't been
able
 to find much on the jakarta site.  I'm a bit confused as to what the
 difference between a valve and a filter is. and which is the corret
one
 to use.  When i search for filter, i get info on valves.  I haven't
found
 anything on how to use a filter.  
 
 Also,  if i use a wrapper to extend the request/response objects, does
that
 mean in a JSP page i would be able to access any extra methods i wanted to
 add.. such as..
 
 -- in jsp file --
 String value = request.doMyNewAction(param1);
 
 is it recommeded to use the catalina wrapper objects when working with
 tomcat or the javax wrappers?
 
 org.apache.catalina.connector.HttpRequestWrapper
 or
 javax.servlet.http.HttpServletRequestWrapper
 
 
 Thanks for the help,
 
 Rick
 
 -Original Message-
 From: Bill Barker [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 14, 2003 7:29 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Extending HttpServletRequest / HttpServletResponse ???
 
 
 It depends on the version.  The answer is no for Servlet-2.2 containers
 (e.g. Tomcat 3.x).  The answer is yes for Servlet-2.3 containers (e.g.
 Tomcat 4.x).  In fact, for Servlet-2.3 containers it is one of the most
 common things that a Filter does.
 
 If you are using Tomcat 4.x, then look into HttpServletRequestWrapper and
 HttpServletResponseWrapper (both in the javax.servlet.http package).
 
 Gavin, Rick [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
Hi All
  Is it possible to extend request and response objects to add a few
 
 custom
 
properties and / or methods relating to a particular system, and have
 
 tomcat
 
use those instead of the standard request and resonse objects?

Thanks,

Rick
 
 
  


-
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: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Gavin, Rick
Thanks Erik,
  That article cleared alot up for me.

Rick

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 11:27 AM
To: Tomcat Users List
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???




Gavin, Rick wrote:
 
 I'd recommend getting a Serlvet programming book and optionally a JSP 
 book. They will come in very handy for these questions.
 
 really? I have one of each, neither mention the subject or either
 classes mentioned. Maybe before you make a vague suggestion like 
 get a book , you may want to qualify about whether or not the 
 desired result is possible and suggest an appropriate resource that 
 may actually contain said information( book title, etc,).  
 
 Its always nice to try something a little different and be demoted
 to idiot status with the statment , get a book
 
 Does anyone have an useful information

The book that I learned servlet programming from didn't talk about 
Filters either, because they are relatively new and the book 
(http://coreservlets.com/) was published a couple of years ago.

You can learn more about them in a newer book, in the servlet 
specification (http://java.sun.com/products/servlet/download.html), or 
in an article 
(http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html). 
  Reading that article in conjunction with the spec made it really easy 
to understand what they are and how they work.



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]



[4.1.18] Startup Servlets Load Twice???

2003-03-14 Thread Gavin, Rick
Hi All,
  Can anyone tell me what would cause my servlets that i have set to load a
startup would be executing twice.  If i have a simple servlet that spits out
a line of text ot the log, when i start tomcat (4.1.18) i see the text gets
written out twice.  This same servlet did not do it in earlier versions of
tomcat.

Anyone help please.

Thanks for your time,

Rick

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



RE: [4.1.18] Startup Servlets Load Twice???

2003-03-14 Thread Gavin, Rick
Hello,
  I checked, i have neither of these cases.. as i said, this only started
happening in 4.1.18.

Thanks,

Rick

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 8:24 AM
To: Tomcat Users List
Subject: RE: [4.1.18] Startup Servlets Load Twice???



Howdy,
Some things that could do it:
- One load-on-startup servlet tag with two (or more) servlet-mapping
elements in web.xml.
- One load-on-startup servlet tag for the same servlet defined in
multiple contexts.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 9:50 AM
To: [EMAIL PROTECTED]
Subject: [4.1.18] Startup Servlets Load Twice???

Hi All,
  Can anyone tell me what would cause my servlets that i have set to
load a
startup would be executing twice.  If i have a simple servlet that
spits
out
a line of text ot the log, when i start tomcat (4.1.18) i see the text
gets
written out twice.  This same servlet did not do it in earlier versions
of
tomcat.

Anyone help please.

Thanks for your time,

Rick

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: [4.1.18] Startup Servlets Load Twice???

2003-03-14 Thread Gavin, Rick
it look the problem stems from the fact that i declared the context path for
my app as 

Context path= ...  

if i put a path in like Context path=/myapp ... it only runs the
servlets once.  What is the correct way to define an app as the root
context.

Thanks,
Rick

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:03 AM
To: 'Tomcat Users List'
Subject: RE: [4.1.18] Startup Servlets Load Twice???


Check the manager app to see if your app might have been deployed twice

-Original Message-
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:40 AM
To: Tomcat Users List
Subject: RE: [4.1.18] Startup Servlets Load Twice???


Hello,
  I checked, i have neither of these cases.. as i said, this only started
happening in 4.1.18.

Thanks,

Rick

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 8:24 AM
To: Tomcat Users List
Subject: RE: [4.1.18] Startup Servlets Load Twice???



Howdy,
Some things that could do it:
- One load-on-startup servlet tag with two (or more) servlet-mapping
elements in web.xml.
- One load-on-startup servlet tag for the same servlet defined in
multiple contexts.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 9:50 AM
To: [EMAIL PROTECTED]
Subject: [4.1.18] Startup Servlets Load Twice???

Hi All,
  Can anyone tell me what would cause my servlets that i have set to
load a
startup would be executing twice.  If i have a simple servlet that
spits
out
a line of text ot the log, when i start tomcat (4.1.18) i see the text
gets
written out twice.  This same servlet did not do it in earlier versions
of
tomcat.

Anyone help please.

Thanks for your time,

Rick

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



How to manage Sessions?

2003-01-06 Thread Gavin, Rick
Hi All,
  Is there a way to manage the sessions with the default session manger
other than using the admin webapp?  for instance... is there a way to
list all the logged in users in the current webapp?  Or does one need
to extend the default session manager to allow access?

Thanks,

Rick

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




RE: servlet load-on-startup

2003-01-06 Thread Gavin, Rick
It still works for me, however it seems to work two well.. it
seems to get called twice for the same servlet now. not sure why.

-Rick

-Original Message-
From: Rasputin [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 2:31 AM
To: [EMAIL PROTECTED]
Subject: servlet load-on-startup



Does load-on-startup still work for anyone under 4.1.18?

Just wanted to check for now, I'm not sure if it's a problem with jk
 or with tomcat itself yet.

-- 
Rasputin :: Jack of All Trades - Master of Nuns

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

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




RE: Two instances of servlet gets created

2003-01-02 Thread Gavin, Rick
I have also been seeing this, I think since I have upgraded 
from 4.1.12.  I have a startup servlet that creates a 
singleton object i use for system properties, and it calls
the createInstance of the singleton twice at startup now.

Rick

-Original Message-
From: Mohit Garg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 3:52 AM
To: Tomcat Users List
Subject: Two instances of servlet gets created


I have startup servlet for which one instance is created as soon as my
tomcat starts. But on the first request to the servlet there is another
instance created. i.e Another time init() is called for the servlet.


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

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




JSP: Can you assign default classes and taglibs to webapp?

2002-12-31 Thread Gavin, Rick
Hi All,
  Is it possible to assign default class includes and/or tag libs to an
entire webapp? 
I assume i could put all of the declerations in an include but it would be
cleaner if 
there was a property of a webapp to assign defaults.

Thanks for any help,

Rick

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




[4.1.12] How to Implement Custom JNDI Tree?

2002-12-06 Thread Gavin, Rick
Hi All,
  I have implemented a JNDI tree for my sites configuration options since
the built in tomcat context can not be modified at runtime( unless something
changed ). Can anyone tell me what the best way to implement the use of it.
Currently I have a static Settings class that has a DirContext property that
is the InitialContext of the Tree.  I also tried setting the root context
object as a property of tomcats ServletContext so I'm able to request it
from within a JSP or servlet with out using the static object.  But both
ways seem a little clunky.  tomcat uses a URL to get to its own initial
context..   [ Context envCtx = (Context) initCtx.lookup(java:comp/env); ]
.  I looked at the URL binding and I thought I would ask if that's the right
( best ) way to go before I spent time on it..

Thanks for any help,

Rick

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




[4.1.12] Custom JNDI DirContext Help

2002-12-06 Thread Gavin, Rick

 Hi All,
   I have implemented a JNDI tree for my sites configuration options since
 the built in tomcat context can not be modified at runtime( unless
 something changed ). Can anyone tell me what the best way to implement the
 use of it.  Currently I have a static Settings class that has a DirContext
 property that is the InitialContext of the Tree.  I also tried setting the
 root context object as a property of tomcats ServletContext so I'm able to
 request it from within a JSP or servlet with out using the static object.
 But both ways seem a little clunky.  tomcat uses a URL to get to its own
 initial context..   [ Context envCtx = (Context)
 initCtx.lookup(java:comp/env); ] .  I looked at the URL binding and I
 thought I would ask if that's the right ( best ) way to go before I spent
 time on it..
 
 Thanks for any help,
 
 Rick

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




[4.1.12] Why is JNDI Tree readonly?

2002-10-31 Thread Gavin, Rick
I have a bunch of configuration settings that I would like to store in
Tomcat's JNDI context.. however, I'm not able to Add or modify the tree at
runtime..  I get an error telling me that the tree is readonly.  Using a
env-entry tag in the web.xml, i'm able to add the initial state of the
propertes but I would like to be able to refresh the tree without
restarting Tomcat.  Anyone have an idea?

Thanks,

Rick

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




4.1.12 : Valve : MBean Exception Question

2002-09-30 Thread Gavin, Rick

Hi All,
  I was implementing a Valve that checks the current URL and sets a few
Request parameters accordingly.  In Tomcat 4.0.4 I didn't have any errors at
startup, but when I moved to Tomcat 4.1.12 I started receiving 

--- LOG  ---
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with MyCustomValve
at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:783)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy
cleListener.java:438)
..
 SERVER.XML -

Context path=/mywebapp docBase=mywebapp debug=0 privileged=false
Valve className=mypackage.tomcat.MyCustomValve/
/Context

---

I have been looking for something on MBean but haven't seen much.

Rick Gavin
Senior System Analyst / Engineer
VIDYAH
   1100 Glendon Ave, 16th Floor 
   Los Angeles, CA 90024 
   tel : (310) 443-3095 
   [EMAIL PROTECTED] 


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




RE: Tomcat 4.1 Installation

2002-09-23 Thread Gavin, Rick

I've been having this same issue since I upgraded from 4.0.4 to 4.1.10.  It
seems that the classloader isn't functioning correctly for me. I had to put
ALL my web app classes and libs in the common folder for them to be found by
the engine.  When the jars are in webapp/WEB-INF/Lib, the scanner of the
folder sees them, but when it goes to unpack the jars, the context is lost
and it can't find them any more.  Am I missing a new env_var?  

Thanks

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 12:04 AM
To: Tomcat Users List
Subject: Tomcat 4.1 Installation


Hi,

I have a set of webapps that run ok on tomcat 4.0 - except for the fact that
the responseDispatcher.include puts the included page at the beginning of
the including html page.  I have installed tomcat 4.1.10 and am attempting
to get it to work.  The problem is in the startup of the server when it is
deploying the contexts.  I have included the log message.  Any help would be
appreciated.

2002-09-22 22:26:05 HostConfig[localhost]: Expanding web application archive
Central.war
2002-09-22 22:26:05 StandardHost[localhost]: Installing web application at
context path /Central from URL file:/usr/local/xrm/webapps/Central
2002-09-22 22:26:05 WebappLoader[/Central]: Deploying class repositories to
work directory /usr/local/xrm/work/Standalone/localhost/Central
2002-09-22 22:26:05 WebappLoader[/Central]: Deploy class files
/WEB-INF/classes to /usr/local/xrm/webapps/Central/WEB-INF/classes
2002-09-22 22:26:05 WebappLoader[/Central]: Deploy JAR
/WEB-INF/lib/Central.jar to
/usr/local/xrm/webapps/Central/WEB-INF/lib/Central.jar
2002-09-22 22:26:05 WebappLoader[/Central]: Deploy JAR
/WEB-INF/lib/Partition.jar to
/usr/local/xrm/webapps/Central/WEB-INF/lib/Partition.jar
2002-09-22 22:26:05 WebappLoader[/Central]: Deploy JAR
/WEB-INF/lib/Proxy.jar to
/usr/local/xrm/webapps/Central/WEB-INF/lib/Proxy.jar
2002-09-22 22:26:06 ContextConfig[/Central] Exception processing JAR at
resource path /WEB-INF/lib/Proxy.jar
javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/Proxy.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)

...

- Root Cause -
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1294)
If anyone has seen this - or has any idea of what to do - i would appreciate
it.

Thanks


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

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




Classloader Problems in 4.1.10

2002-09-23 Thread Gavin, Rick

I'm having issues migrating my current web apps from 4.0.4 to 4.1.10.  When
tomcat starts up, it throws an error saying it can't find my JAR files even
though it must have found it to get the name of it to tell me it couldn't
find it.
I ended up having to move my jar files into tomcat_home/common/lib , but
obviously I would like to keep my webapp specific classes under its own
webapp folder.  Also, I had created a valve and tomcat won't even start up
with it, giving me a class not found exception.  How is that possible, its a
internal class to tomcat?
--
java.lang.NoClassDefFoundError: org/apache/catalina/Valve
--

Any help would be appreciated.

Rick Gavin

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




4.1.10: Equivalent to load-on-startup

2002-09-20 Thread Gavin, Rick

Hi All,
  I have a servlet that reads in a property file and stores properties in a
static class.
 I want the servlet called when the webapp starts..  

 web.xml  -
servlet
servlet-nameSettings/servlet-name
servlet-classSettingsServlet/servlet-class
init-param
param-nameconfigFile/param-name
param-valuemy.conf/param-value
/init-param
load-on-startup1/load-on-startup
/servlet


in Tomcat 4.0.4,  it works fine but in 4.1.10 it seems to never get called,
did something change?  Is there a better a way to do this?  Ideally I would
like to
create a JNDI tree of components from a group of properties files, but this
is a separate issue.
If anyone has any advice on either problem, please let me know.

Thanks for any help,

Rick




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