Re: Using Tomcat as a proxy?

2002-08-19 Thread ope


 Why would you want to use a Java Servlet Container
 to do proxying? It's like 
 using a Space Shuttle to do door-to-door delivery.
 If you need proxying, use 
 Squid or Apache.

The reason I have to do this is to make the best of a
rather brain dead product deployment.  This is not a
long term fix but it is only a temporary fix to keep
customers happy for two months until we can change
everything.  I got thrown into the whole mix after the
fact.  Unfortunately installing Apache or Squid (my
first suggestion) on the clients site is not an
option.

 If you want to have pieces of other sites inside
 your webapp, the it is a whole 
 new ball game.

Ultimately this is the idea.  Basically we need to use
our webapp to get a page from another server and pass
it back to the user but make it appear that it came
from our webapp.  It is an ugly thing to do but I need
to find a quick fix before I can work on a real fix. 
If you have any ideas, suggestions or links I would
appreciate it.

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: Trouble de-serializing objects when running 4.0.4 as NT service

2002-08-19 Thread ope

My first guess would be that you have some settings in
your environment that are not present in the system. 
Possibly the CLASSPATH.  Check your Tomcat services
settings to see which user you are starting as and
make sure that the user has the same environment that
you do.

--- David Makepeace [EMAIL PROTECTED] wrote:
 Hi , So no one has any ideas for me on this? It's
 really bizzare.
 
 --- David Makepeace [EMAIL PROTECTED]
 wrote:
  Hi, I'm having trouble deserializing an object
  (stored
  in a relational db) when running Tomcat 4.0.4 as
 an
  NT
  Service. I have no problems when running from the
  startup.bat. My database is mySQL. I am using
  Tomcat's
  connection pooling. Platform win2k. Here's the
  exception that I'm seeing when I'm calling
  ResultSet.getObject(). Any idea's on how to work
  around this? I really need to run this as a
 service.
  
  
  java.sql.SQLException: Class not found:
  java.lang.ClassNotFoundException:
  org.sagecentral.modulecreation.Lesson while
 reading
  serialized object
  at org.gjt.mm.mysql.ResultSet.getObject(Unknown
  Source)
  
  __
  Do You Yahoo!?
  HotJobs - Search Thousands of New Jobs
  http://www.hotjobs.com
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 HotJobs - Search Thousands of New Jobs
 http://www.hotjobs.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: Using Tomcat as a proxy?

2002-08-19 Thread ope

 Open a URLConnection to the real page, read the data
 and write it to your
 output stream. This can be done in a servlet or a
 filter.

Thanks.  I have been giving it a try and it is not as
much work as I thought it would be.  I don't know why
I was trying so hard to find a way around but I think
that writing a 'proxy' servlet will end up being the
quickest way to an end in this case.

--- Cox, Charlie [EMAIL PROTECTED] wrote:
 
 
  -Original Message-
  From: ope [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 19, 2002 12:38 PM
  To: Tomcat Users List
  Subject: Re: Using Tomcat as a proxy?
  
  
  
   Why would you want to use a Java Servlet
 Container
   to do proxying? It's like 
   using a Space Shuttle to do door-to-door
 delivery.
   If you need proxying, use 
   Squid or Apache.
  
  The reason I have to do this is to make the best
 of a
  rather brain dead product deployment.  This is not
 a
  long term fix but it is only a temporary fix to
 keep
  customers happy for two months until we can change
  everything.  I got thrown into the whole mix after
 the
  fact.  Unfortunately installing Apache or Squid
 (my
  first suggestion) on the clients site is not an
  option.
  
   If you want to have pieces of other sites inside
   your webapp, the it is a whole 
   new ball game.
  
  Ultimately this is the idea.  Basically we need to
 use
  our webapp to get a page from another server and
 pass
  it back to the user but make it appear that it
 came
  from our webapp.  It is an ugly thing to do but I
 need
  to find a quick fix before I can work on a real
 fix. 
  If you have any ideas, suggestions or links I
 would
  appreciate it.
 
 Open a URLConnection to the real page, read the data
 and write it to your
 output stream. This can be done in a servlet or a
 filter.
 
 Charlie


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Trouble with Logger.Helper

2002-07-14 Thread ope

I am trying to work with the Tomcat Logging facilities
but am having trouble with the verbosity settings.  I
know its something simple but I just can't find out
what I am doing wrong.  The problem is that every
logging message gets written to the logs no matter
what verbosity I have set in server.xml.

Weaving my way through the docs I have come up with a
configuration like this:

In server.xml I have this Logger defined for myapp:
Logger className=
org.apache.catalina.logger.FileLogger
verbosity=0 
prefix=myapp. suffix=.log timestamp=true/

In my servlet I have defined a logger like this:
Logger.Helper logger = new Logger.Helper(myappLog,
this);

Then in the code I have logger messages defined like
this:
logger.log(SQL Exception, sqlex, Logger.FATAL);


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

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