Re: getInputStream

2001-04-18 Thread Sam Newman

I'm pretty sure that if you use this package in a commerical product, you
have to make sure that each developer using the package has a copy of the
latest O'Reilly book. Check the license carefully.

sam
- Original Message -
From: "Jeff Kilbride" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 7:43 PM
Subject: Re: getInputStream


> Hi Georges,
>
> There is a very easy to use class for doing file uploads available from
> Jason Hunter, who wrote the original oreilly book on servlets, at his
> website:
>
> http://www.servlets.com/
>
> Look for the com.oreilly.servlet package. I think it will greatly simplify
> what you are trying to do. There's a good deal of documentation available
on
> the site.
>
> Thanks,
> --jeff
>





Re: mod_jk - DEAD END! [POSTSCRIPT]

2001-04-18 Thread Sam Newman

Whilst the mod_jk worked for me, I aggree that it could be more clearly
marked as to what platforms its currently supported on. As the the number
one issue raised on the list, over the last week or so it seems to be people
either not reading or getting confused by the howto docs

sam
- Original Message -
From: "Jeff Kilbride" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 7:25 PM
Subject: Re: mod_jk - DEAD END! [POSTSCRIPT]


> Forgive the expression, but bullshit. :)
>
> The mod_jk compilation *is* trivial and since they don't list on the
website
> what version of Apache or Linux the binary is compiled for, it's pretty
much
> useless. I'd say the number one problem post I have seen since joining
this
> list relates to the fact that the binary doesn't work on most people's
> systems. If you give somebody with relatively little experience a binary
> that's supposed to work and it doesn't, it only confuses the matter that
> much more.
>
> By the way, I'd be interested in hearing what your config is, since it
> worked for you.
>
> Thanks,
> --jeff
>





session timeouts early sometimes

2001-04-18 Thread David Wall

It's hard to nail down, but we seem to note that tomcat 3.2.2beta2 will have
a session timeout early sometimes.  Is there a known bug in the session
timing routines?

Thanks,
David




jsp pathinfo

2001-04-18 Thread David Wall



Is the pathinfo portion of an URL supposed to work 
with JSPs?  In tomcat 3.2.2beta2, I'm using an URL like 
/app/test.jsp/pathinfo, but it's not working (as if tomcat is looking for a JSP 
named 'pathinfo' instead of 'test.jsp' in the 'app' webapp, with the path info 
set to "pathinfo".
 
Do I need to use a regular servlet to make that 
work, or is pathinfo just not supported by 
tomcat?David


Pages never finish loading

2001-04-18 Thread Randy Kreisel

First off, I am a newbie, so forgive me if this issue is already solved.But 
I could not find a valid resolution in my searches of this group.

When I run the example servlets from my NT workstation at home they 
complete without issue. When I run them from the Win98 machine at home or 
from my NT workstation machine at work they generate and display all the 
output, but the wait cursor continues for several minutes until it finally 
times out. To complicate the issue, if I specify the port (8080) in the url 
on my Win98 (or my daughters Win95) machine, it works correctly, but when I 
do the same thing at work, it behaves as described above. I have not 
modified the example code.

Here is the configuration:
Server -
NT 4.0 server w/sp6a - 266mhz, 64mb Ram, 18 GB hd, 2 network cards
IIS 3.0 (yes, 3.0 works fine other than this problem, and no, I don't want 
to upgrade to IIS 4.0, (it screws up the proxy server))
Tomcat 3.2 - default installation
cable modem
Winproxy (proxy/firewall software, for which I have opened ports 8080 and 
8007 for both incoming and outgoing TCP and UDP)
Internal network on non-routable address range 192.168.255.xxx, is not 
visible to the outside world.

Any assistance would be greatly appreciated. I'm stumped.
Thanks




RE: Can Sessions be tracked via URL-rewriting?

2001-04-18 Thread Robert Zazueta

Even in JSPs? There isn;t a simple way to simply turn on URL-rewriting
fir the JSESSION? Can I use the URL reqriting module for Apache in any
way to make this easier?

Always looking for the lazy way out ;-)

-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 5:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Can Sessions be tracked via URL-rewriting?


In your code, wherever you emit a URL--anchors, JavaScript calls,...

-- Bill K.


> -Original Message-
> From: Robert Zazueta [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:48 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Can Sessions be tracked via URL-rewriting?
> 
> 
> Nope. Where would I need to do that? In all of my servlets, or in the
> Tomcat code?
> 
> -Original Message-
> From: William Kaufman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:42 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Can Sessions be tracked via URL-rewriting?
> 
> 
> Are you asking Tomcat to do URL re-writing (by calling
> HttpServletResponse.encodeURL())?
> 
> -- Bill K.
> 
> 
> > -Original Message-
> > From: Robert Zazueta [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 18, 2001 1:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Can Sessions be tracked via URL-rewriting?
> > 
> > 
> > Fresh out of the "box", Tomcat appears to write the 
> jsession ID to the
> > users cookies exclusively, making those who don;t have 
> > cookies turned on
> > for whatever reasons lose their session.
> > 
> > Is there a way to configure Tomcat so that it writes the 
> jsession via
> > URL-rewriting for those folks without cookies turned on? Or 
> even just
> > replaces the jsession cookie with URL-rewriting entirely?
> > 
> > Thanks!
> > 
> > Rob Z.
> > 
> 



JDBC Realm - User Roles

2001-04-18 Thread Gary Henson



I've been trying to 
set up JDBC Realm authentication with Tomcat.
 
I've run into a 
problem when it comes to roles. The user is authenticated alright, but the roles 
do not seem to be 
taken from the 
database. I always get redirected to the error jsp unless I have the user and 
role specified in the
tomcat-users.xml 
file.
 
This is the setup I 
have:
 
** server.xml 
***
 
driverName="oracle.jdbc.driver.OracleDriver" 
connectionURL="jdbc:oracle:thin:@testdbase:1521:TEST" 
connectionName="user" 
connectionPassword="pass" 
userTable="security_user" userNameCol="user_id" 
userCredCol="user_password" 
userRoleTable="security_user_role" roleNameCol="role_name" 
/>
 
All the mentioned 
tables and columns do exist, I've checked a lot.
 
*** web.xml 
***
    
  
 
Secure 
Area 
/secure/*  
  
 
testrole  
    

 
    
  
FORM  
Form-Based Authentication 
Area  
    
/secure/login/login.jsp    
/secure/login/error.jsp  
    

 
As mentioned above, 
this doesn't work unless I also have the following in 
tomcat-users.xml

 
And yes, it works 
without the password being in the file. This suggests to me that the 
username/password is 
being checked 
against the database, but the role against tomcat-users.xml. I'm using Tomcat 
3.2.1 currently
as a stand-alone 
server. Please help, I'm going crazy.
 
Gary.


Require info..

2001-04-18 Thread Vinoj Vijayan

Hi
Does Tomcat support connection pooling on its own?

Curious,
Vinoj



Re: Tomcat vs. other app servers

2001-04-18 Thread Jeff Kilbride

It wouldn't surprise me if JRun ran better in a Windows environment. After
all, that's what it was originally designed for. The JRun 1.x series was a
lifesaver for me in late 1997 when we ported all of our Perl code to Java.
That was before we moved to Linux from NT and before there were any
in-process solutions for Perl on NT. Fortunately, back then, you could
actually get the JRun developers on the phone to answer questions if you ran
into problems. Times have changed!

Trivia question -- what was the name of the company that developed JRun and
was eventually bought out by Allaire?
Super Trivia -- who was the CEO and lead developer? (who must've made a
bunch of cash in the buyout...)

;o)

--jeff

- Original Message -
From: "Scott Tatum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 8:14 PM
Subject: Re: Tomcat vs. other app servers


> My apologies for inadvertantly FUDding JRun. We have run JRun 2.3 with
much better
> success. I don't know if it is just me, but JRun products seem to like NT
> environments better. The setups that we have had with JRun/NT have all
worked
> great. Our problems have only manifested when connected to Apache under
Solaris.
>
> My problem was specifically with JRun 3.0+Apache. We would experience
daily
> lockups, where all requests would eventually timeout. The normal
stop/start of JRun
> wouldn't work, the java process had to be kill -9'd (sending TERM had no
effect).
> Once you did that, the error_log would spam nondescript errors. Not
wanting to sign
> a support contract  I posted several times to Allaire's JRun forums
about the
> issue. I got a few "I'm having the exact same problem" replies, but never
did find
> a solution.
>
> Eventually I figured out I could hang it on demand by changing a jsp file,
saving
> it, then loading the page in the browser within a second or two of saving.
It would
> reduce to kill -9 status every time. Around then I decided to try Tomcat
just to
> see how it did. Once I saw how good it was I never looked back. :)
>
> If you are a current JRun user, don't be alarmed by my words - my case
seemed to be
> a pretty isolated one. But if you are looking for a fast, stable servlet
container,
> then run don't walk to Tomcat! Once you lose a few hairs and learn out how
to
> configure it, it will be your best friend.
>
> -Scott
> (p.s. This is not to discount other servlet containers. I hear resin is
fast and
> stable, and it does have a pretty attractive licensing setup)
>
> --
> Scott Tatum | [EMAIL PROTECTED]
> Senior Applications Developer, Special Projects
> WorldCom | http://www.wcom.com/
>
> Jeff Turner wrote:
>
> > We have found JRun 3.0 to be a fine product (as was it's 2.3
predecessor), and
> > use it in many production environments. One should be careful to avoid
> > unsubstantiated claims on this forum, lest it amount to FUD.
> >
> > That said, most of our developers use Tomcat for development. It is
> > spec-compliant, doesn't crash, has excellent support (this list:) and
3.3/4.0
> > eliminates much classpath pain. By contrast, JRun *extends* the spec,
accepting
> > invalid syntax (like <%= foo; %>) which means JSP authors must
constantly be on
> > guard to avoid portability problems. JRun does not have a tomcat-users
> > equivalent, thus has effectively no user community. Unless you're a fan
of
> > phone-based support, that doesn't leave one much recourse when help is
needed.
> >
> > http://www.theserverside.com is probably the best forum for JSP/servlet
> > container comparisons.
> >
> > --Jeff
> >
> > On Wed, Apr 18, 2001 at 04:52:31PM -0500, Scott Tatum wrote:
> > > Before using Tomcat, our group had spent several k's on JRun 3.0
> > > application server. We have several Intranet applications that receive
> > > thousands of hits per day. Under JRun we were experiencing daily
> > > lockups. After Service Pack 2 for JRun 3 did not fix the problem, I
> > > tested out Tomcat 3.2.1.
> > >
> > > We eventually transitioned all of our jsp/servlet applications from
JRun
> > > to Tomcat, and have not had a single lockup since. The Tomcat server
> > > also serves pages faster IMO. JRun does not support servlet reloading
> > > either.
> > > >From my experience, Tomcat has high degrees of performance,
scalability,
> > > and especially reliability. The only issue I don't know much about is
> > > security. It is not as much of a concern to us as all of our
> > > applications are Intranet-only.
> > >
> > > Tomcat has been rock-solid for us and we hope to use it for all our
> > > future Intranet applications, and are looking forward to a production
> > > release of Tomcat 4.
> > >
> > > -Scott
> > >
> > > --
> > > Scott Tatum | [EMAIL PROTECTED]
> > > Senior Applications Developer, Special Projects
> > > WorldCom | http://www.wcom.com/
> > >
> > > Henrik Ross wrote:
> > >
> > > > What are peoples opinions on Tomcat vs. other app servers?
> > > >
> > > > Performance, scalability, security, reliability?
> > > >
> > > 

Re: WML and JSP

2001-04-18 Thread Anne Dirkse

Check out cocoon:
http://xml.apache.org/cocoon/index.html
A.

--

Yes, it is possible. Look at the User-Agent parameter that is passed in
via the http request headers and do the apprpriate thing based on that.
 
- Ray

 -Original Message-
 From: Paul Yoon [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 12:13 PM
 To: [EMAIL PROTECTED]
 Subject: WML and JSP

   Hello, 

   I am an user of Tomcat.
   I would like to make a few page for mobile user.
   Is it possible that HTTP users  and WAP users  can access
same URL and get their own services?
   If it is, how it can be possible? How tomcat server know
the difference?
   Thank you in advance.

   Paul



Apache-tomcat-mod_jk multiple virtual host

2001-04-18 Thread Bibhas Roy

I need a sample server.xml for setting tomcat so that
same tomcat instance can support multiple virtual
host!

the apache how-to doesn't have server.xml example
instead both the places have same script for config
apache.

Bibhas

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: WML and JSP

2001-04-18 Thread Ray Tanaka



Yes, 
it is possible. Look at the User-Agent parameter that is passed in via the http 
request headers and do the apprpriate thing based on that.
 
- 
Ray

  -Original Message-From: Paul Yoon 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 18, 2001 12:13 
  PMTo: [EMAIL PROTECTED]Subject: WML and 
  JSP
  

  
  
  Hello, 
   
  I am an user of Tomcat.
  I would like to make a few page for mobile 
  user.
  Is it possible that HTTP users  
  and WAP users  can access same URL and get their own 
  services?
  If it is, how it can be possible? How tomcat 
  server know the difference?
  Thank you in advance.
   
  Paul 


Re: Tomcat vs. other app servers

2001-04-18 Thread Scott Tatum

My apologies for inadvertantly FUDding JRun. We have run JRun 2.3 with much better
success. I don't know if it is just me, but JRun products seem to like NT
environments better. The setups that we have had with JRun/NT have all worked
great. Our problems have only manifested when connected to Apache under Solaris.

My problem was specifically with JRun 3.0+Apache. We would experience daily
lockups, where all requests would eventually timeout. The normal stop/start of JRun
wouldn't work, the java process had to be kill -9'd (sending TERM had no effect).
Once you did that, the error_log would spam nondescript errors. Not wanting to sign
a support contract  I posted several times to Allaire's JRun forums about the
issue. I got a few "I'm having the exact same problem" replies, but never did find
a solution.

Eventually I figured out I could hang it on demand by changing a jsp file, saving
it, then loading the page in the browser within a second or two of saving. It would
reduce to kill -9 status every time. Around then I decided to try Tomcat just to
see how it did. Once I saw how good it was I never looked back. :)

If you are a current JRun user, don't be alarmed by my words - my case seemed to be
a pretty isolated one. But if you are looking for a fast, stable servlet container,
then run don't walk to Tomcat! Once you lose a few hairs and learn out how to
configure it, it will be your best friend.

-Scott
(p.s. This is not to discount other servlet containers. I hear resin is fast and
stable, and it does have a pretty attractive licensing setup)

--
Scott Tatum | [EMAIL PROTECTED]
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/

Jeff Turner wrote:

> We have found JRun 3.0 to be a fine product (as was it's 2.3 predecessor), and
> use it in many production environments. One should be careful to avoid
> unsubstantiated claims on this forum, lest it amount to FUD.
>
> That said, most of our developers use Tomcat for development. It is
> spec-compliant, doesn't crash, has excellent support (this list:) and 3.3/4.0
> eliminates much classpath pain. By contrast, JRun *extends* the spec, accepting
> invalid syntax (like <%= foo; %>) which means JSP authors must constantly be on
> guard to avoid portability problems. JRun does not have a tomcat-users
> equivalent, thus has effectively no user community. Unless you're a fan of
> phone-based support, that doesn't leave one much recourse when help is needed.
>
> http://www.theserverside.com is probably the best forum for JSP/servlet
> container comparisons.
>
> --Jeff
>
> On Wed, Apr 18, 2001 at 04:52:31PM -0500, Scott Tatum wrote:
> > Before using Tomcat, our group had spent several k's on JRun 3.0
> > application server. We have several Intranet applications that receive
> > thousands of hits per day. Under JRun we were experiencing daily
> > lockups. After Service Pack 2 for JRun 3 did not fix the problem, I
> > tested out Tomcat 3.2.1.
> >
> > We eventually transitioned all of our jsp/servlet applications from JRun
> > to Tomcat, and have not had a single lockup since. The Tomcat server
> > also serves pages faster IMO. JRun does not support servlet reloading
> > either.
> > >From my experience, Tomcat has high degrees of performance, scalability,
> > and especially reliability. The only issue I don't know much about is
> > security. It is not as much of a concern to us as all of our
> > applications are Intranet-only.
> >
> > Tomcat has been rock-solid for us and we hope to use it for all our
> > future Intranet applications, and are looking forward to a production
> > release of Tomcat 4.
> >
> > -Scott
> >
> > --
> > Scott Tatum | [EMAIL PROTECTED]
> > Senior Applications Developer, Special Projects
> > WorldCom | http://www.wcom.com/
> >
> > Henrik Ross wrote:
> >
> > > What are peoples opinions on Tomcat vs. other app servers?
> > >
> > > Performance, scalability, security, reliability?
> > >
> > > Can Tomcat function in a real production business environment?
> >
> >
> >






Re: Tomcat hangs under win 98

2001-04-18 Thread Michael Burke



Thanks I realized that from a previous 
response.

  - Original Message - 
  From: 
  Ryan 
  
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, April 18, 2001 10:20 
  PM
  Subject: Re: Tomcat hangs under win 
  98
  
  linux does that too but tomcat is still running. 
  Pressing return gives you the prompt back. Sure you dont just have to minimize 
  the console window in 98?
   
  
- Original Message - 
From: 
Michael 
Burke 
To: [EMAIL PROTECTED] 

Sent: Wednesday, April 18, 2001 6:30 
PM
Subject: Tomcat hangs under win 
98

Tomcat hangs under win 98 after the line 
"PoolTcpConnection: StartingAjp12ConnectionHandler on 8007". My internet 
connection is a dsl line if that has anything to do with it. Any help 
would be appreciated.


Re: newbie

2001-04-18 Thread Jeff Kilbride

It depends on your system. If you're running Win98 with 64MB of RAM, and
your servlet has a lot of initialization code, then it might make sense.
Remember, your servlets aren't loaded and initialized until they are called
for the first time. If you want to avoid this type of delay, use the
"load-on-startup" tag inside your "servlet" tag in your web.xml file. There
are examples of this in the main web.xml file in the TOMCAT_HOME/conf
directory. This will load and initialize your servlet when Tomcat starts up
and avoid the first hit delay syndrome.

Thanks,
--jeff

- Original Message -
From: "Chris Nolte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 6:46 PM
Subject: Re: newbie


> This happens to me with my servlets--some of the time
> they take up to 30 seconds to load the first time.
> Is this normal behavior also?
>
> - Original Message -
> From: Anne Dirkse <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 18, 2001 6:40 PM
> Subject: Re: newbie
>
>
> > Congratulations -- Looks like you set it up correctly.
> > The lag that you notice the first time you visit a jsp is normal.
> > What is happening is that JSP is being compiled into a servlet (which is
> > what JSPs do)
> > That will only happen the first time you access the JSP (unless you
> > modify the source.)
> > Anne
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > Hi .. I'm newbie in jakarta (tomcat)
> > >
> > > I Just setting Up my Apache with jk_mod (tomcat)  in linux
> > > but I found problems
> > > When FIRST time loading JSP,
> > > e.g lynx http://localhost/examples
> > > It's take a long time ( half a minute) to loading fisrt jsp page, but
> after
> > > that evertyng goes fine ???
> > >
> > > My conf just follow from doc in jakarta.apache.org
> > >
> > > Any body wanna help me ?
>




Re: Tomcat vs. other app servers

2001-04-18 Thread Scott Tatum

Everything remained the same except swapping JRun with Tomcat.

Sun Enterprise 250 (1 gig RAM)
Solaris 2.7
Apache 1.3.14
Tomcat 3.2.1 (mod_jk)

I liked the nice web interface for JRun setup/admin, but IMO Tomcat has it beat
just about everwhere else.

-Scott

--
Scott Tatum | [EMAIL PROTECTED]
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/

Jeff Kilbride wrote:

> Hi Scott,
>
> That's great to hear. May I ask what environment you were running JRun under
> and is it the same environment you're now using Tomcat under?
>
> Thanks,
> --jeff
>
> - Original Message -
> From: "Scott Tatum" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 18, 2001 2:52 PM
> Subject: Re: Tomcat vs. other app servers
>
> > Before using Tomcat, our group had spent several k's on JRun 3.0
> > application server. We have several Intranet applications that receive
> > thousands of hits per day. Under JRun we were experiencing daily
> > lockups. After Service Pack 2 for JRun 3 did not fix the problem, I
> > tested out Tomcat 3.2.1.
> >
> > We eventually transitioned all of our jsp/servlet applications from JRun
> > to Tomcat, and have not had a single lockup since. The Tomcat server
> > also serves pages faster IMO. JRun does not support servlet reloading
> > either.
> > >From my experience, Tomcat has high degrees of performance, scalability,
> > and especially reliability. The only issue I don't know much about is
> > security. It is not as much of a concern to us as all of our
> > applications are Intranet-only.
> >
> > Tomcat has been rock-solid for us and we hope to use it for all our
> > future Intranet applications, and are looking forward to a production
> > release of Tomcat 4.
> >
> > -Scott
> >
> > --
> > Scott Tatum | [EMAIL PROTECTED]
> > Senior Applications Developer, Special Projects
> > WorldCom | http://www.wcom.com/
> >
> > Henrik Ross wrote:
> >
> > > What are peoples opinions on Tomcat vs. other app servers?
> > >
> > > Performance, scalability, security, reliability?
> > >
> > > Can Tomcat function in a real production business environment?
> >
> >
> >
> >






Re: Tomcat hangs under win 98

2001-04-18 Thread Ryan



linux does that too but tomcat is still running. 
Pressing return gives you the prompt back. Sure you dont just have to minimize 
the console window in 98?
 

  - Original Message - 
  From: 
  Michael Burke 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, April 18, 2001 6:30 
  PM
  Subject: Tomcat hangs under win 98
  
  Tomcat hangs under win 98 after the line 
  "PoolTcpConnection: StartingAjp12ConnectionHandler on 8007". My internet 
  connection is a dsl line if that has anything to do with it. Any help 
  would be appreciated.


RE: newbie

2001-04-18 Thread William Kaufman

I think you're seeing something different, assuming you are using servlets
and not JSP: as others say, JSPs need to be compiled, but servlets don't.

Are you seeing a delay in starting up (i.e., until it stops using CPU), or
in handling the first request?


-- Bill K.


> -Original Message-
> From: Chris Nolte [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 6:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: newbie
> 
> 
> This happens to me with my servlets--some of the time
> they take up to 30 seconds to load the first time.
> Is this normal behavior also?
> 
> - Original Message -
> From: Anne Dirkse <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 18, 2001 6:40 PM
> Subject: Re: newbie
> 
> 
> > Congratulations -- Looks like you set it up correctly.
> > The lag that you notice the first time you visit a jsp is normal.
> > What is happening is that JSP is being compiled into a 
> servlet (which is
> > what JSPs do)
> > That will only happen the first time you access the JSP (unless you
> > modify the source.)
> > Anne
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > Hi .. I'm newbie in jakarta (tomcat)
> > >
> > > I Just setting Up my Apache with jk_mod (tomcat)  in linux
> > > but I found problems
> > > When FIRST time loading JSP,
> > > e.g lynx http://localhost/examples
> > > It's take a long time ( half a minute) to loading fisrt 
> jsp page, but
> after
> > > that evertyng goes fine ???
> > >
> > > My conf just follow from doc in jakarta.apache.org
> > >
> > > Any body wanna help me ?
> 



Javadoc ignores sourcepath

2001-04-18 Thread Chris Nolte

I am trying to generate Javadoc for a web application I have written.
My build.xml file contains the target:
  

  

However, when I say "build all" or "build javadoc", it appears 
to try to process all files in the application's root directory, 
i.e., one above the "src" directory.  

I am able to compile and run the web application itself, so I
don't think my classpath is screwed up in general.  It is only
javadoc that is failing.

Any suggestions?  I am running Win98 (yes, I am ashamed)
and Tomcat 3.2.1.




Re: newbie

2001-04-18 Thread eric chacon

This is normal behavior--

The first time, it compiles your JSP into a servlet, and after that, the 
servlet's loaded and ready to go.

When you have a production site running, you might want to call all JSPs 
once every time you deploy so your users won't have to wait the first 
time...

Cheers,
E.

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: newbie
>Date: Thu, 19 Apr 2001 01:35:32 GMT
>
>
>Hi .. I'm newbie in jakarta (tomcat)
>
>I Just setting Up my Apache with jk_mod (tomcat)  in linux
>but I found problems
>When FIRST time loading JSP,
>e.g lynx http://localhost/examples
>It's take a long time ( half a minute) to loading fisrt jsp page, but after
>that evertyng goes fine ???
>
>My conf just follow from doc in jakarta.apache.org
>
>Any body wanna help me ?
>
>

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Chris Nolte

2001-04-18 Thread Michael Burke



Thanks Chris you were right tomcat was running and 
I didn't realize it. Doh!!!

  - Original Message - 
  From: 
  Michael Burke 
  
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, April 18, 2001 9:30 
  PM
  Subject: Tomcat hangs under win 98
  
  Tomcat hangs under win 98 after the line 
  "PoolTcpConnection: StartingAjp12ConnectionHandler on 8007". My internet 
  connection is a dsl line if that has anything to do with it. Any help 
  would be appreciated.


Re: Code Q.

2001-04-18 Thread eric chacon

Scott,

You're asking some straight-forward Java questions that might be better 
addressed in one of the news groups (comp.lang.java, for example)--if you're 
not familiar with newsgroups check out www.deja.com (currently held hostage 
by google, but hopefully working soon).

In the code, you're defining a class called Hello which is a subclass (also 
called a child) of the HttpServlet class.  Extends is a Java keyword meaning 
that your class (Hello) inherits the functionality of the HttpServlet 
class--Object Oriented concepts like Inheritance would be thouroughly 
explained in a Java text book.

It looks like your doGet method is miss-copied (adding to your confusion).  
You are, in fact, defining a method--one that will eventually be called by 
the Tomcat server.

If you look closely at the book you're reading, you'll probably see that it 
actually takes HttpServletRequest and HttpServletResponse (not just 
HttpServlet).

Servlets are kind of complicated--you might find it easier to start with 
some more basic Java and work up to Tomcat and servlets.

Cheers, and good luck,
Eric

>From: "Purcell, Scott" Reply-To: [EMAIL PROTECTED] To: 
>"'[EMAIL PROTECTED]'" Subject: Code Q. Date: Wed, 18 Apr 2001 
>16:21:51 -0500
>
>Hello, I am learning JSP and have done quite a few examples from the Core 
>Servlets and JSP book. I apologize for asking this q here, but I am trying 
>to learn Tomcat and put my whole picture together, and I figured that the 
>people on this line, would probably know what these lines mean. Anyway, I 
>keep typing these few lines but really don't have a grasp of what they are 
>doing. I would really like to understand in a 'Laymans' fashion what I am 
>doing and what these lines do. public class Hello extends HttpServlet { //I 
>am assuming that the class Hello, that I am creating // is extending 
>HttpServlet class? // but what does the extends really mean? public void 
>doGet(HttpServlet request, HttpServlet response) throws ServletException, 
>IOExcedption; // It looks like I am creating? or calling? a method here. 
>And am I passing it the HttpServlet class? I am very confused on this, and 
>would enjoy hearing from someone that wouldn't mind going over that with 
>me. Thanks very much, Sincerely Scott
>
>
>
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: newbie

2001-04-18 Thread Chris Nolte

This happens to me with my servlets--some of the time
they take up to 30 seconds to load the first time.
Is this normal behavior also?

- Original Message -
From: Anne Dirkse <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 6:40 PM
Subject: Re: newbie


> Congratulations -- Looks like you set it up correctly.
> The lag that you notice the first time you visit a jsp is normal.
> What is happening is that JSP is being compiled into a servlet (which is
> what JSPs do)
> That will only happen the first time you access the JSP (unless you
> modify the source.)
> Anne
>
> [EMAIL PROTECTED] wrote:
> >
> > Hi .. I'm newbie in jakarta (tomcat)
> >
> > I Just setting Up my Apache with jk_mod (tomcat)  in linux
> > but I found problems
> > When FIRST time loading JSP,
> > e.g lynx http://localhost/examples
> > It's take a long time ( half a minute) to loading fisrt jsp page, but
after
> > that evertyng goes fine ???
> >
> > My conf just follow from doc in jakarta.apache.org
> >
> > Any body wanna help me ?




Re: newbie

2001-04-18 Thread Anne Dirkse

Congratulations -- Looks like you set it up correctly.
The lag that you notice the first time you visit a jsp is normal.
What is happening is that JSP is being compiled into a servlet (which is
what JSPs do)
That will only happen the first time you access the JSP (unless you
modify the source.)
Anne

[EMAIL PROTECTED] wrote:
> 
> Hi .. I'm newbie in jakarta (tomcat)
> 
> I Just setting Up my Apache with jk_mod (tomcat)  in linux
> but I found problems
> When FIRST time loading JSP,
> e.g lynx http://localhost/examples
> It's take a long time ( half a minute) to loading fisrt jsp page, but after
> that evertyng goes fine ???
> 
> My conf just follow from doc in jakarta.apache.org
> 
> Any body wanna help me ?



multipe instances of tomcat

2001-04-18 Thread time out

i have read all the documentation on workers and isapi_redirect.dll and the 
minimal user guide and i still don't understand how to get tomcat to run 
multiple instances.

here is what i have:
tomcat 3.2.1
win2k sp1
iis 5.0(the one that comes with win2k)
isapi_redirect.dll

so far i have been able to set up webSiteA (it lives in 
d:\inetpub\webSiteA.) so that iis serves everything except *.jsp.
i did that by installing tomcat in d:\inetpub\tomcat and making a context 
in server.xml that looks like this:
 
 

and adding the following lines to the uriworkermap.properties:
/*.jsp=ajp12
/servlet/*=ajp12
eveything else is the default configuration.


so i have something that works and i am pretty sure that i don't know why 
it worksi can't seem to make all the connections needed to make tomcat 
tun multiple times, once for each web site that i have on the 
machine.  that way if i need to reload classes for one of them, tomcat does 
not have to reload for all of them.

thanks.


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




newbie

2001-04-18 Thread wa2n


Hi .. I'm newbie in jakarta (tomcat)

I Just setting Up my Apache with jk_mod (tomcat)  in linux 
but I found problems 
When FIRST time loading JSP, 
e.g lynx http://localhost/examples
It's take a long time ( half a minute) to loading fisrt jsp page, but after
that evertyng goes fine ???

My conf just follow from doc in jakarta.apache.org

Any body wanna help me ?





Tomcat hangs under win 98

2001-04-18 Thread Michael Burke



Tomcat hangs under win 98 after the line 
"PoolTcpConnection: StartingAjp12ConnectionHandler on 8007". My internet 
connection is a dsl line if that has anything to do with it. Any help would 
be appreciated.


Startup problem

2001-04-18 Thread Michael Burke

Tomcat hangs under win 98 after the line "PoolTcpConnection: 
StartingAjp12ConnectionHandler on 8007". My internet connection is a dsl 
line if that has anything to do with it. Any help would be appreciated.



Re: Problem under win98

2001-04-18 Thread Chris Nolte

I get the same thing, but Tomcat is running.  Are you sure this isn't
normal?  Have you tried running a web application?

- Original Message -
From: Michael Burke <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 6:19 PM
Subject: Problem under win98


> When I start tmcat under win 98 it hangs after the line"PooltcpConnection:
> StartingAjp12ConnectionHandler on 8007" , my internet connection is a dsl
> line  in case that has anything to do with it. Any suggestions would be
> appreciated.




Problem under win98

2001-04-18 Thread Michael Burke

When I start tmcat under win 98 it hangs after the line"PooltcpConnection: 
StartingAjp12ConnectionHandler on 8007" , my internet connection is a dsl 
line  in case that has anything to do with it. Any suggestions would be 
appreciated.



Bug in tomcat3.2.1 RecycleBufferedInputStream class - or solution to ContextManager: error reading request:ArrayIndexOutOfBoundsException

2001-04-18 Thread Animesh Chaturvedi - US


Hi 

Tomcct 3.2.1 does not work with Kaffe JVM. When a request is sent to Tomcat 

you get following error

ContextManager: Error reading request, ignored -
java.lang.ArrayIndexOutOfBoundsException 
at java.lang.System.arraycopy(System.java:native) 
at java.io.BufferedInputStream.read(BufferedInputStream.java:118) 
at java.io.BufferedInputStream.read(BufferedInputStream.java:69) 
at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.
java:115) 
at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInpu
tStream.java:106) 
at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputS
tream.java:128) 
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138) 
at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpReques
tAdapter.java:129) 
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:195) 
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) 
at java.lang.Thread.run(Thread.java:325) 


After lot of debugging I found that there is bug with
RecycleBufferedInputStream. 
The original RecycleBufferedInputStream class only resets count = 0.
This results sometimes in count to be set to zero and pos is not changed so
it is now greater than count. and 
when yo do a System.arraycopy with length = count -pos. It gets a negative
value hence the array index out of bounds exception. 

So you have to change the two functions in RecycleBufferedInputStream like
this.

public void setInputStream( InputStream is ) {
this.in = is;
this.pos = this.count = 0;
this.markpos = -1;
}

public void recycle() {
this.in = null;
this.pos = this.count = 0;
this.markpos = -1;
}


Now tomcat 3.2.1 works fine with Kaffe VM.


Animesh



JSPs with extra path info?

2001-04-18 Thread David Wall

I'm trying to get Tomcat 3.2.2b2 to handle a URL of the format:

http://www.myeastside.com/app/GA.jsp/Test+word.doc?m=1&a=2

The idea is that I expect this to run my JSP called /app/GA.jsp.  It should
have some extra path string of "Test+word.doc" and two parameters that I can
retrieve named "m" and "a".

But when I run it, tomcat's JspEngine keeps bringing up my notfound page.

I run Tomcat with Apache 1.3.19 and mod_jk.so using the AJP13 connector.  I
have mounts like:

JkMount /app/*.jsp ajp13
JkMount /app/servlet/* ajp13

and I even added this just in case...
JkMount /app/*.jsp/* ajp13

I believe it's getting through Apache to TC okay since the jasper log shows:
2001-04-18 05:12:08 - JspEngine --> /notFound.jsp
2001-04-18 05:12:08 -ServletPath: /notFound.jsp
2001-04-18 05:12:08 -   PathInfo: null

And it is bringing up my not found page.  The GA.jsp file is present in the
right area though, right along with my other jsps.

Thanks,
David




RE: Can Sessions be tracked via URL-rewriting?

2001-04-18 Thread William Kaufman

In your code, wherever you emit a URL--anchors, JavaScript calls,...

-- Bill K.


> -Original Message-
> From: Robert Zazueta [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:48 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Can Sessions be tracked via URL-rewriting?
> 
> 
> Nope. Where would I need to do that? In all of my servlets, or in the
> Tomcat code?
> 
> -Original Message-
> From: William Kaufman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:42 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Can Sessions be tracked via URL-rewriting?
> 
> 
> Are you asking Tomcat to do URL re-writing (by calling
> HttpServletResponse.encodeURL())?
> 
> -- Bill K.
> 
> 
> > -Original Message-
> > From: Robert Zazueta [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 18, 2001 1:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Can Sessions be tracked via URL-rewriting?
> > 
> > 
> > Fresh out of the "box", Tomcat appears to write the 
> jsession ID to the
> > users cookies exclusively, making those who don;t have 
> > cookies turned on
> > for whatever reasons lose their session.
> > 
> > Is there a way to configure Tomcat so that it writes the 
> jsession via
> > URL-rewriting for those folks without cookies turned on? Or 
> even just
> > replaces the jsession cookie with URL-rewriting entirely?
> > 
> > Thanks!
> > 
> > Rob Z.
> > 
> 



Re: Tomcat vs. other app servers

2001-04-18 Thread Jeff Turner

We have found JRun 3.0 to be a fine product (as was it's 2.3 predecessor), and
use it in many production environments. One should be careful to avoid
unsubstantiated claims on this forum, lest it amount to FUD.

That said, most of our developers use Tomcat for development. It is
spec-compliant, doesn't crash, has excellent support (this list:) and 3.3/4.0
eliminates much classpath pain. By contrast, JRun *extends* the spec, accepting
invalid syntax (like <%= foo; %>) which means JSP authors must constantly be on
guard to avoid portability problems. JRun does not have a tomcat-users
equivalent, thus has effectively no user community. Unless you're a fan of
phone-based support, that doesn't leave one much recourse when help is needed.

http://www.theserverside.com is probably the best forum for JSP/servlet
container comparisons.

--Jeff

On Wed, Apr 18, 2001 at 04:52:31PM -0500, Scott Tatum wrote:
> Before using Tomcat, our group had spent several k's on JRun 3.0
> application server. We have several Intranet applications that receive
> thousands of hits per day. Under JRun we were experiencing daily
> lockups. After Service Pack 2 for JRun 3 did not fix the problem, I
> tested out Tomcat 3.2.1.
> 
> We eventually transitioned all of our jsp/servlet applications from JRun
> to Tomcat, and have not had a single lockup since. The Tomcat server
> also serves pages faster IMO. JRun does not support servlet reloading
> either.
> >From my experience, Tomcat has high degrees of performance, scalability,
> and especially reliability. The only issue I don't know much about is
> security. It is not as much of a concern to us as all of our
> applications are Intranet-only.
> 
> Tomcat has been rock-solid for us and we hope to use it for all our
> future Intranet applications, and are looking forward to a production
> release of Tomcat 4.
> 
> -Scott
> 
> --
> Scott Tatum | [EMAIL PROTECTED]
> Senior Applications Developer, Special Projects
> WorldCom | http://www.wcom.com/
> 
> Henrik Ross wrote:
> 
> > What are peoples opinions on Tomcat vs. other app servers?
> >
> > Performance, scalability, security, reliability?
> >
> > Can Tomcat function in a real production business environment?
> 
> 
> 



javax.servlet.ServletException

2001-04-18 Thread Jessica Arroyo



Hi there!
 
I receive the following error trying to run a .jsp page.  I'm using 
Apache and Tomcat.  
 
Internal Servlet 
Error:javax.servlet.ServletException
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
        at _0002fcards_0002ejsphello_jsp_3._jspService(_0002fhello_0002ejsphello_jsp_3.java:222)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
-I found on the net the following solution, but I already check my code and everything seems to be ok."You would get this error if you tried to use one of the input field tags like > outside of an  tag." I will appreciate any help. Thank You..Jessica Arroyo


RE: ** Does Tomcat need Restart **

2001-04-18 Thread Darrell Porter

My shutdown script does it for me =)

-Original Message-
From: Jann VanOver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 2:24 PM
To: '[EMAIL PROTECTED]'
Subject: RE: ** Does Tomcat need Restart **


I hacked my tomcat startup script to blow away the work directory before
restarting.  Now I don't have to remember to do that anymore.

-Original Message-
From: Darrell Porter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 10:52 AM
To: '[EMAIL PROTECTED]'
Subject: RE: ** Does Tomcat need Restart **


The only method whereby I have gotten it to repeatedly work correctly is to
stop Tomcat, blow away the work directory and restart Tomcat.

What would be useful is a method in which Tomcat, upon restart,
automatically compiles all the JSPs in its defined contexts.

Darrell


-Original Message-
From: Meir Faraj [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 10:44 AM
To: [EMAIL PROTECTED]
Subject: Re: ** Does Tomcat need Restart **


and for jsp how to do this ?
I've problem in reloading jsp (after few reloading)
even if I delete the created class from the work/ROOT/ dirrectory.
what I need to do ?
- Original Message -
From: "Scott Judd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 4:26 PM
Subject: Re: ** Does Tomcat need Restart **


> I'd like to offer two cents on this topic. I have seen both very
successful
> and very unsuccessful results when using servlet reloading on Tomcat.
First,
> make sure that the servlet classes reside in
/webapps/ROOT/WEB-INF/classes.
> Next, make sure that the web.xml file in the  webapps/ROOT/WEB-INF folder
> contains the appropriate entry to register the servlet. Finally, make sure
> that the reloadable attribute for the given context is set to "true" in
> /conf/server.xml.
>
> Tomcat has demonstrated consistent success in reloading servlets that I
> invoke directly from the CLI of my browser, following the above
> prescription. If I try to vary this formula (place servlets in other
> directories, package servlet classes together, invoke a servlet from
another
> servlet) servlet reloading seems to get hosed and I end up restarting
Tomcat
> in order to "see" the new class files.
>
> scott
>
> G:\tomcat\webapps\ROOT\WEB-INF
>
> From: "Benoit Jacquemont" <[EMAIL PROTECTED]>
> > This feature exists, it is defined by the reloadable parameter for the
> > Context. But it is an alpha version feature, so you always need to
restart
> > Tomcat.
> >
> > Benoit
> >
>
> > > Hi,
> > >
> > > Is there any option in tomcat CONFIGURATION by which, I can
> > > instruct Tomcat
> > > to restart automatically whenever a servlet gets modified (i.e. I
> > > re-compile the servlet).
> > >
> > > I am running Tomcat and Apache on Linux OS.
> > >
> > > Regards,
> > > Marathe
> >
>
>



Re: Tomcat vs. other app servers

2001-04-18 Thread Jeff Kilbride

Hi Scott,

That's great to hear. May I ask what environment you were running JRun under
and is it the same environment you're now using Tomcat under?

Thanks,
--jeff

- Original Message -
From: "Scott Tatum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 2:52 PM
Subject: Re: Tomcat vs. other app servers


> Before using Tomcat, our group had spent several k's on JRun 3.0
> application server. We have several Intranet applications that receive
> thousands of hits per day. Under JRun we were experiencing daily
> lockups. After Service Pack 2 for JRun 3 did not fix the problem, I
> tested out Tomcat 3.2.1.
>
> We eventually transitioned all of our jsp/servlet applications from JRun
> to Tomcat, and have not had a single lockup since. The Tomcat server
> also serves pages faster IMO. JRun does not support servlet reloading
> either.
> >From my experience, Tomcat has high degrees of performance, scalability,
> and especially reliability. The only issue I don't know much about is
> security. It is not as much of a concern to us as all of our
> applications are Intranet-only.
>
> Tomcat has been rock-solid for us and we hope to use it for all our
> future Intranet applications, and are looking forward to a production
> release of Tomcat 4.
>
> -Scott
>
> --
> Scott Tatum | [EMAIL PROTECTED]
> Senior Applications Developer, Special Projects
> WorldCom | http://www.wcom.com/
>
> Henrik Ross wrote:
>
> > What are peoples opinions on Tomcat vs. other app servers?
> >
> > Performance, scalability, security, reliability?
> >
> > Can Tomcat function in a real production business environment?
>
>
>
>




RE: Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Dave Bettin

Cold Fusion doesn't support Tomcat as a front-end
webserver. I would recommend configuring ColdFusion
with Apache. Once, you are succesful with that, then
configure tomcat with apache. 

The httpd.conf file you keep mentioning is apache not
Tomcat.

Dave
--- Jann VanOver <[EMAIL PROTECTED]> wrote:
> Oh -- so you're not using the Apache web server at
> all?  
>  
> I see why you're stuck.  CF works well with Apache
> or IIS as the web server.
> If you were to have one of these setups and then
> integrate that with Tomcat,
> it should work for you.  Given your situation,  I
> guess I can't help.
> 
> -Original Message-
> From: Jake Chin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 2:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Configuring Cold Fusion to run with
> Tomcat 3.2.1
> 
> 
> Hi Jann,
>  
> Perhaps I misstated myself.  I'm running the Jakarta
> Tomcat 3.2.1 web
> server.  Yes, I had Tomcat installed and running
> before I installed cold
> fusion.  
>  
> Do you have a similar platform?  
>  
> Any help would be appreciated.  
>  
> Jake
>  
> 
> -Original Message-
> From: Jann VanOver < [EMAIL PROTECTED]
>  >
> To: '[EMAIL PROTECTED]'
>   <
> [EMAIL PROTECTED]
>  >
> Date: Wednesday, April 18, 2001 2:04 PM
> Subject: RE: Configuring Cold Fusion to run with
> Tomcat 3.2.1
> 
> 
> Are you actually running the Apache web server?  Did
> you install this before
> you installed cold fusion?  
> 
> -Original Message-
> From: Jake Chin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:38 PM
> To: [EMAIL PROTECTED]
> Subject: Configuring Cold Fusion to run with Tomcat
> 3.2.1
> 
> 
> 
>  
> 
> The Cold Fusion support people are not familiar with
> the Tomcat server.  
>  
> Can anyone help me with a configuration problem?  
>  
> I'm having a problem with Cold Fusion Administrator.
>  I can bring up the
> Cold Fusion Documentation page, but not the admin
> page.
> 
> I'm running W98 and Apache-Tomcat 3.2.1.
> 
> The URL I am hitting is:
> http://localhost:8080/CFIDE/Administrator/index.cfm
>

> 
> 
> The output looks like this:
> Allaire Cold Fusion Template
> Header Size: New
> VersionÈù7?ná¼Ý«"} ~?}Zhqؤä8X°É¿Ìò©?P^qvßNÊÒ?ùF
Íû'ÉÊ{´d9¢ =OJEUR ?Û
> 'ð6 lδf`b¢'ô û"\v? ù>eÐ×åREURóz?||, Võæ?êsm
> 
> CF support referred me to
> http://www.allaire.com/Handlers/index.cfm?ID=3882
>

> &Method=Full
> which I had already seen.  Unfortunately there is no
> httpd.conf file with
> the Tomcat version of Apache.
> 
> I just downloaded Tomcat the other day.  I'm able to
> build and run
> Servlet and JSP projects using Kawa, which is also
> from Macromedia (formerly
> Allaire).
> 
> When I run Cold Fusion, I get the little icons on
> the Windows system toolbar
> at the bottom of the display, but the
> Cold Fusion window never opens up.  As I said
> before, I get that
> gobbledegook when I try to run Cold Fusion
> Administrator.
> 
> Can anyone help me?  
>  
> Regards, 
> Jake
>  
> 
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



acknowledgment from web client

2001-04-18 Thread eric leung

Hi,
I have a servlet serves files for web browser.

How can I know if the HTTP web browser had:
1) finished download 100% of the file, or;
2) only downloaded 50% of the file then click cancel,
or;
3) only downloaded 70% then reboot the machine

i think the TCP/IP layer (socket) will keep track of
acknowlegament send back from client. but how do i
implement this in my servlet? how do i (servlet) know
how many bytes client had receive? 

I am now using apache + tomcat.  I heard tomcat has
problem getting  acknowlegament from client. since
tomcat is seperated by apache server from client (it's
a tomcat bug also). Any one knows how to fix this
problem?   
Web-browser --> apache --> tomcat

thanks.


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Tomcat vs. other app servers

2001-04-18 Thread Scott Tatum

Before using Tomcat, our group had spent several k's on JRun 3.0
application server. We have several Intranet applications that receive
thousands of hits per day. Under JRun we were experiencing daily
lockups. After Service Pack 2 for JRun 3 did not fix the problem, I
tested out Tomcat 3.2.1.

We eventually transitioned all of our jsp/servlet applications from JRun
to Tomcat, and have not had a single lockup since. The Tomcat server
also serves pages faster IMO. JRun does not support servlet reloading
either.
>From my experience, Tomcat has high degrees of performance, scalability,
and especially reliability. The only issue I don't know much about is
security. It is not as much of a concern to us as all of our
applications are Intranet-only.

Tomcat has been rock-solid for us and we hope to use it for all our
future Intranet applications, and are looking forward to a production
release of Tomcat 4.

-Scott

--
Scott Tatum | [EMAIL PROTECTED]
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/

Henrik Ross wrote:

> What are peoples opinions on Tomcat vs. other app servers?
>
> Performance, scalability, security, reliability?
>
> Can Tomcat function in a real production business environment?







Re: Tomcat vs. other app servers

2001-04-18 Thread Mark Mynsted

"Tomcat is the Reference Implementation for the Java Servlet 2.2 and JavaServer Pages 
1.1
 Technologies. Tomcat is the official reference implementation for these complementary 
technologies." quoted from - - http://jakarta.apache.org/tomcat/index.html

I could not have said it any better.  :-)

>>> [EMAIL PROTECTED] 4/18/2001 4:40:58 PM >>>
What are peoples opinions on Tomcat vs. other app servers?  

Performance, scalability, security, reliability?

Can Tomcat function in a real production business environment?




RE: Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Jann VanOver



Oh -- 
so you're not using the Apache web server at all?  
 
I see 
why you're stuck.  CF works well with Apache or IIS as the web 
server.  If you were to have one of these setups and then integrate that 
with Tomcat, it should work for you.  Given your situation,  I guess I 
can't help.

  -Original Message-From: Jake Chin 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 18, 2001 2:37 
  PMTo: [EMAIL PROTECTED]Subject: Re: 
  Configuring Cold Fusion to run with Tomcat 3.2.1
  Hi Jann,
   
  Perhaps I misstated myself.  I'm running the Jakarta 
  Tomcat 3.2.1 web server.  Yes, I had Tomcat installed and running before 
  I installed cold fusion.  
   
  Do you have a similar platform?  
   
  Any help would be appreciated.  
   
  Jake
   
  
-Original Message-From: 
Jann VanOver <[EMAIL PROTECTED]>To: 
'[EMAIL PROTECTED]' 
<[EMAIL PROTECTED]>Date: 
Wednesday, April 18, 2001 2:04 PMSubject: RE: Configuring 
Cold Fusion to run with Tomcat 3.2.1
Are you actually running the Apache web server?  Did you install 
this before you installed cold fusion?  

  -Original Message-From: Jake Chin 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 18, 2001 
  1:38 PMTo: [EMAIL PROTECTED]Subject: 
  Configuring Cold Fusion to run with Tomcat 3.2.1
  
   
  
  The Cold Fusion support people are not familiar with the 
  Tomcat server.  
   
  Can anyone help me with a configuration problem?  
  
   
  I'm having a problem with Cold Fusion 
  Administrator.  I can bring up theCold Fusion Documentation page, 
  but not the admin page.I'm running W98 and Apache-Tomcat 
  3.2.1.The URL I am hitting is:http://localhost:8080/CFIDE/Administrator/index.cfmThe 
  output looks like this:Allaire Cold Fusion TemplateHeader Size: 
  NewVersionÈù7?ná¼Ý«"}~?}Zhqؤä8X°É¿Ìò©?P^qvßNÊÒ?ùFÍû'ÉÊ{´d9¢=OJEUR?Û'ð6lδf`b¢'ôû"\v?ù>eÐ×åREURóz?||,Võæ?êsmCF 
  support referred me to http://www.allaire.com/Handlers/index.cfm?ID=3882&Method=Fullwhich 
  I had already seen.  Unfortunately there is no 
  httpd.conf file with the Tomcat version of Apache.I just 
  downloaded Tomcat the other day.  I'm able to build and 
  runServlet and JSP projects using Kawa, which is also from Macromedia 
  (formerly Allaire).When I run Cold Fusion, I get the little icons 
  on the Windows system toolbar at the bottom of the display, but 
  theCold Fusion window never opens up.  As I said before, I get 
  that gobbledegook when I try to run Cold Fusion Administrator.Can 
  anyone help me?  
   
  Regards, 
  Jake
   


RE: Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Jann VanOver

Dave's point was that if you get CF running correctly with Apache, Tomcat
shouldn't be an issue.  

If you don't start up Tomcat, does CF work properly with Apache?  If so,
then following Tomcat's instructions to make it work with Apache should do
the task.


-Original Message-
From: Jake Chin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Configuring Cold Fusion to run with Tomcat 3.2.1


So Dave, could you run that by me again.  I have read the Cold Fusion docs
and corresponded with their support desk.  Their documentation doesn't make
any reference to Tomcat.  There are plenty of references to Apache 1.3, but
not Tomcat.  The doc says to modify the httpd.conf file but there is no such
file in the Tomcat folders.

What is mod_coldfusion and where do I get it from?  It didn't come with the
Cold Fusion download or the jakarta-tomcat download.

Jake

-Original Message-
From: Dave Bettin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, April 18, 2001 2:27 PM
Subject: RE: Configuring Cold Fusion to run with Tomcat 3.2.1


>Tomcat shouldn't even be a issue. Read the coldfusion
>docs and compile and install mod_coldfusion with
>apache. You should be good to go.
>
>
>--- Jann VanOver <[EMAIL PROTECTED]> wrote:
>> But CF ISN'T a web server.  It must work WITH a web
>> server.  It doesn't
>> install properly unless you already have a web
>> server installed.
>>
>> -Original Message-
>> From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, April 18, 2001 2:08 PM
>> To: [EMAIL PROTECTED]
>> Subject: RE: Configuring Cold Fusion to run with
>> Tomcat 3.2.1
>>
>>
>> I'll bet he's trying to run Tomcat with the CF web
>> server.
>> Should be interesting to see how far you getJake...
>>
>> At 02:01 PM 4/18/2001 -0700, you wrote:
>> >Are you actually running the Apache web server?
>> Did you install this
>> >before you installed cold fusion?
>> > >The Cold Fusion support people are not familiar
>> with the Tomcat server.
>> >
>> >Can anyone help me with a configuration problem?
>
>
>__
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/



Re: JDBC question

2001-04-18 Thread Jake Chin

I believe that's supposed to be doGet.

-Original Message-
From: Jann VanOver <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
Date: Wednesday, April 18, 2001 2:40 PM
Subject: RE: JDBC question


>is that one method really named "deGet" ??
>
>-Original Message-
>From: Bo Wang [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 17, 2001 8:15 PM
>To: [EMAIL PROTECTED]
>Subject: Re: JDBC question
>
>
>Thanks for your help, here attached my servlet.
>I'm using win98 with Access 97, and set up a system DSN "Northwind" without
>userID and password.
>After I run this servlet, I got NullPointException.
>
>import java.io.*;
>import java.sql.*;
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>public class JDBCServlet extends HttpServlet
>{
>Connection dbConn;
>
>public void init ( ServletConfig config ) throws ServletException
>{
>super.init( config );
>
>try
>{
>Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
>dbConn = DriverManager.getConnection( "jdbc:odbc:Northwind" );
>}
>catch ( ClassNotFoundException e )
>{
>System.out.println( "*JDBC-ODBC bridge not found" );
>return;
>}
>catch ( SQLException e )
>{
>System.out.println( "*SQL exception thrown in init" );
>return;
>}
>}
>
>public void deGet( HttpServletRequest req, HttpServletResponse resp )
>throws ServletException, IOException
>{
>try
>{
>resp.setContentType( "text/html" );
>PrintWriter out = resp.getWriter();
>
>Statement stat = dbConn.createStatement();
>ResultSet customers = stat.executeQuery( "select CustomerID,
>CompanyName, City, Country from " + "Customers" );
>
>out.println( "" );
>out.println( "Customer List" );
>out.println( "" );
>out.println( "Customer List" );
>out.println( "" );
>out.println( "Customer ID" );
>out.println( "Company Name" );
>out.println( "City" );
>out.println( "Country" );
>
>while ( customers.next() )
>{
>out.println( "" );
>out.println( "" + customers.getString( "CustomerID" ) +
>"" );
>out.println( "" + customers.getString( "CompanyName" )
+
>"" );
>out.println( "" + customers.getString( "City" ) +
>"" );
>out.println( "" + customers.getString( "Country" ) +
>"" );
>out.println( "" );
>}
>
>out.println( "" );
>out.println( "" );
>
>customers.close();
>stat.close();
>dbConn.close();
>}
>catch ( Exception e )
>{
>e.printStackTrace();
>}
>}
>}
>
>
>- Original Message -
>From: "RameshBabu R Muthuvel" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, April 17, 2001 12:25 PM
>Subject: Re: JDBC question
>
>
>> Hi
>> There are numerous issues.
>>
>> Some are:
>> 1) either ur dsn is not there
>> 2) Your tables datatype doesn't match with the value passed or accessed
>from
>> servlet etc...
>>
>> send ur servlet, to find out what really happens
>>
>> ramesh
>>
>> _
>> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>>
>>




Re: Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Jake Chin

So Dave, could you run that by me again.  I have read the Cold Fusion docs
and corresponded with their support desk.  Their documentation doesn't make
any reference to Tomcat.  There are plenty of references to Apache 1.3, but
not Tomcat.  The doc says to modify the httpd.conf file but there is no such
file in the Tomcat folders.

What is mod_coldfusion and where do I get it from?  It didn't come with the
Cold Fusion download or the jakarta-tomcat download.

Jake

-Original Message-
From: Dave Bettin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, April 18, 2001 2:27 PM
Subject: RE: Configuring Cold Fusion to run with Tomcat 3.2.1


>Tomcat shouldn't even be a issue. Read the coldfusion
>docs and compile and install mod_coldfusion with
>apache. You should be good to go.
>
>
>--- Jann VanOver <[EMAIL PROTECTED]> wrote:
>> But CF ISN'T a web server.  It must work WITH a web
>> server.  It doesn't
>> install properly unless you already have a web
>> server installed.
>>
>> -Original Message-
>> From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, April 18, 2001 2:08 PM
>> To: [EMAIL PROTECTED]
>> Subject: RE: Configuring Cold Fusion to run with
>> Tomcat 3.2.1
>>
>>
>> I'll bet he's trying to run Tomcat with the CF web
>> server.
>> Should be interesting to see how far you getJake...
>>
>> At 02:01 PM 4/18/2001 -0700, you wrote:
>> >Are you actually running the Apache web server?
>> Did you install this
>> >before you installed cold fusion?
>> > >The Cold Fusion support people are not familiar
>> with the Tomcat server.
>> >
>> >Can anyone help me with a configuration problem?
>
>
>__
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/




Tomcat vs. other app servers

2001-04-18 Thread Henrik Ross
Title: Tomcat vs. other app servers






What are peoples opinions on Tomcat vs. other app servers?  


Performance, scalability, security, reliability?


Can Tomcat function in a real production business environment?





RE: JDBC question

2001-04-18 Thread Jann VanOver

is that one method really named "deGet" ??

-Original Message-
From: Bo Wang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 8:15 PM
To: [EMAIL PROTECTED]
Subject: Re: JDBC question


Thanks for your help, here attached my servlet.
I'm using win98 with Access 97, and set up a system DSN "Northwind" without
userID and password.
After I run this servlet, I got NullPointException.

import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class JDBCServlet extends HttpServlet
{
Connection dbConn;

public void init ( ServletConfig config ) throws ServletException
{
super.init( config );

try
{
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
dbConn = DriverManager.getConnection( "jdbc:odbc:Northwind" );
}
catch ( ClassNotFoundException e )
{
System.out.println( "*JDBC-ODBC bridge not found" );
return;
}
catch ( SQLException e )
{
System.out.println( "*SQL exception thrown in init" );
return;
}
}

public void deGet( HttpServletRequest req, HttpServletResponse resp )
throws ServletException, IOException
{
try
{
resp.setContentType( "text/html" );
PrintWriter out = resp.getWriter();

Statement stat = dbConn.createStatement();
ResultSet customers = stat.executeQuery( "select CustomerID,
CompanyName, City, Country from " + "Customers" );

out.println( "" );
out.println( "Customer List" );
out.println( "" );
out.println( "Customer List" );
out.println( "" );
out.println( "Customer ID" );
out.println( "Company Name" );
out.println( "City" );
out.println( "Country" );

while ( customers.next() )
{
out.println( "" );
out.println( "" + customers.getString( "CustomerID" ) +
"" );
out.println( "" + customers.getString( "CompanyName" ) +
"" );
out.println( "" + customers.getString( "City" ) +
"" );
out.println( "" + customers.getString( "Country" ) +
"" );
out.println( "" );
}

out.println( "" );
out.println( "" );

customers.close();
stat.close();
dbConn.close();
}
catch ( Exception e )
{
e.printStackTrace();
}
}
}


- Original Message -
From: "RameshBabu R Muthuvel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 12:25 PM
Subject: Re: JDBC question


> Hi
> There are numerous issues.
>
> Some are:
> 1) either ur dsn is not there
> 2) Your tables datatype doesn't match with the value passed or accessed
from
> servlet etc...
>
> send ur servlet, to find out what really happens
>
> ramesh
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>



Re: Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Jake Chin



Hi Jann,
 
Perhaps I misstated myself.  I'm running the Jakarta 
Tomcat 3.2.1 web server.  Yes, I had Tomcat installed and running before I 
installed cold fusion.  
 
Do you have a similar platform?  
 
Any help would be appreciated.  
 
Jake
 

  -Original Message-From: 
  Jann VanOver <[EMAIL PROTECTED]>To: 
  '[EMAIL PROTECTED]' 
  <[EMAIL PROTECTED]>Date: 
  Wednesday, April 18, 2001 2:04 PMSubject: RE: Configuring Cold 
  Fusion to run with Tomcat 3.2.1
  Are 
  you actually running the Apache web server?  Did you install this before 
  you installed cold fusion?  
  
-Original Message-From: Jake Chin 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 18, 2001 
1:38 PMTo: [EMAIL PROTECTED]Subject: 
Configuring Cold Fusion to run with Tomcat 3.2.1

 

The Cold Fusion support people are not familiar with the 
Tomcat server.  
 
Can anyone help me with a configuration problem?  

 
I'm having a problem with Cold Fusion Administrator.  
I can bring up theCold Fusion Documentation page, but not the admin 
page.I'm running W98 and Apache-Tomcat 3.2.1.The URL I am 
hitting is:http://localhost:8080/CFIDE/Administrator/index.cfmThe 
output looks like this:Allaire Cold Fusion TemplateHeader Size: 
NewVersionÈù7?ná¼Ý«"}~?}Zhqؤä8X°É¿Ìò©?P^qvßNÊÒ?ùFÍû'ÉÊ{´d9¢=OJEUR?Û'ð6lδf`b¢'ôû"\v?ù>eÐ×åREURóz?||,Võæ?êsmCF 
support referred me to http://www.allaire.com/Handlers/index.cfm?ID=3882&Method=Fullwhich 
I had already seen.  Unfortunately there is no 
httpd.conf file with the Tomcat version of Apache.I just downloaded 
Tomcat the other day.  I'm able to build and runServlet and JSP 
projects using Kawa, which is also from Macromedia (formerly 
Allaire).When I run Cold Fusion, I get the little icons on the 
Windows system toolbar at the bottom of the display, but theCold Fusion 
window never opens up.  As I said before, I get that gobbledegook when 
I try to run Cold Fusion Administrator.Can anyone help me?  

 
Regards, 
Jake
 


RE: Date problem with Tomcat/IIS

2001-04-18 Thread Jann VanOver

Yes!  When you say cal.HOUR_OF_DAY (etc.) you're accessing a CONSTANT in the
calendar object.  

What you want to use is the SimpleDateFormat class.  It will do all that you
need!

Like this:

SimpleDateFormat df = new SimpleDateFormat("dd-MM- hh:mm:ss"); 

then ...

retVal = df.format(dt);

and it's done!

btw: this is a Java problem and has nothing to do with Tomcat or IIS

-Original Message-
From: H.F.N. den Boer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 11:55 AM
To: Tomcat users group
Subject: Date problem with Tomcat/IIS


Made a class to do a number of usefull things.
One of them is to get the prefix string for a custom servlet-log.

In the generated string, the date is correct but the time is always the
same.
Example of return value: 18-04-2001 11:12:13 

I'm working with;
Win2K server, build 5.00.2195
IIS 5.0, configured with ISAPI filter
JDK1.3.1beta
Tomcat 3.2.1 running as NT service

Below the code of the servlet.

Any ideas ?

Nico

  public String getLogDateTime() {
StringBuffer retVal = new StringBuffer("");
Date dt = new Date();
cal = Calendar.getInstance();
cal.setTime(dt);

retVal.append(getDateOnlyNumbers(dt));  // add date
retVal.append(" ");
retVal.append(cal.HOUR_OF_DAY); // add hour
retVal.append(":");
retVal.append(cal.MINUTE);  // add minute
retVal.append(":");
retVal.append(cal.SECOND);  // add second
retVal.append(" ");

return retVal.toString();
  }




RE: Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Dave Bettin

Tomcat shouldn't even be a issue. Read the coldfusion
docs and compile and install mod_coldfusion with
apache. You should be good to go.


--- Jann VanOver <[EMAIL PROTECTED]> wrote:
> But CF ISN'T a web server.  It must work WITH a web
> server.  It doesn't
> install properly unless you already have a web
> server installed.
> 
> -Original Message-
> From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Configuring Cold Fusion to run with
> Tomcat 3.2.1
> 
> 
> I'll bet he's trying to run Tomcat with the CF web
> server.
> Should be interesting to see how far you getJake...
> 
> At 02:01 PM 4/18/2001 -0700, you wrote:
> >Are you actually running the Apache web server? 
> Did you install this 
> >before you installed cold fusion?
> > >The Cold Fusion support people are not familiar
> with the Tomcat server.
> >
> >Can anyone help me with a configuration problem?


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Code Q.

2001-04-18 Thread Purcell, Scott

Hello, 
I am learning JSP and have done quite a few examples from the Core Servlets
and JSP book. 
I apologize for asking this q here, but I am trying to learn Tomcat and put
my whole picture together, and I figured that
the people on this line, would probably know what these lines mean.
Anyway, I keep typing these few lines but really don't have a grasp of what
they are doing. 
I would really like to understand in a 'Laymans' fashion what I am doing and
what these lines do. 
public class Hello extends HttpServlet { 
//I am assuming that the class Hello, that I am creating 
// is extending HttpServlet class? 
// but what does the extends really mean? 
public void doGet(HttpServlet request, 
HttpServlet response) 
throws ServletException, IOExcedption; 
// It looks like I am creating? or calling? a method here. And am I passing
it the HttpServlet class? 
I am very confused on this, and would enjoy hearing from someone that
wouldn't mind going over that with me. 
Thanks very much, 
Sincerely 
Scott 






RE: ** Does Tomcat need Restart **

2001-04-18 Thread Jann VanOver

I hacked my tomcat startup script to blow away the work directory before
restarting.  Now I don't have to remember to do that anymore.

-Original Message-
From: Darrell Porter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 10:52 AM
To: '[EMAIL PROTECTED]'
Subject: RE: ** Does Tomcat need Restart **


The only method whereby I have gotten it to repeatedly work correctly is to
stop Tomcat, blow away the work directory and restart Tomcat.

What would be useful is a method in which Tomcat, upon restart,
automatically compiles all the JSPs in its defined contexts.

Darrell


-Original Message-
From: Meir Faraj [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 10:44 AM
To: [EMAIL PROTECTED]
Subject: Re: ** Does Tomcat need Restart **


and for jsp how to do this ?
I've problem in reloading jsp (after few reloading)
even if I delete the created class from the work/ROOT/ dirrectory.
what I need to do ?
- Original Message -
From: "Scott Judd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 4:26 PM
Subject: Re: ** Does Tomcat need Restart **


> I'd like to offer two cents on this topic. I have seen both very
successful
> and very unsuccessful results when using servlet reloading on Tomcat.
First,
> make sure that the servlet classes reside in
/webapps/ROOT/WEB-INF/classes.
> Next, make sure that the web.xml file in the  webapps/ROOT/WEB-INF folder
> contains the appropriate entry to register the servlet. Finally, make sure
> that the reloadable attribute for the given context is set to "true" in
> /conf/server.xml.
>
> Tomcat has demonstrated consistent success in reloading servlets that I
> invoke directly from the CLI of my browser, following the above
> prescription. If I try to vary this formula (place servlets in other
> directories, package servlet classes together, invoke a servlet from
another
> servlet) servlet reloading seems to get hosed and I end up restarting
Tomcat
> in order to "see" the new class files.
>
> scott
>
> G:\tomcat\webapps\ROOT\WEB-INF
>
> From: "Benoit Jacquemont" <[EMAIL PROTECTED]>
> > This feature exists, it is defined by the reloadable parameter for the
> > Context. But it is an alpha version feature, so you always need to
restart
> > Tomcat.
> >
> > Benoit
> >
>
> > > Hi,
> > >
> > > Is there any option in tomcat CONFIGURATION by which, I can
> > > instruct Tomcat
> > > to restart automatically whenever a servlet gets modified (i.e. I
> > > re-compile the servlet).
> > >
> > > I am running Tomcat and Apache on Linux OS.
> > >
> > > Regards,
> > > Marathe
> >
>
>



getSession(false)

2001-04-18 Thread Jason Novotny


Hi,

I'm using the following snippet in my main servlet:

public void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {

HttpSession session = req.getSession(false);
 if (session == null) {
  System.out.println("session is null");
 } else {
  System.out.println("session is not null");
 }

}

what I find is that when I go to the servlet, I first see "session is
null". Fine by me, and since I passed "false" to getSession, I expect
not to have one created. However, when I reload the page, now I get
"session is not null". can anyone please explain why getSession(false)
actually creates a session, or what I might be doing wrong.

Thanks, Jason

--
Jason Novotny   [EMAIL PROTECTED]
Home: (510) 549-0574Work: (510) 486-8662
NERSC Distributed Computing http://www-didc.lbl.gov






WML and JSP

2001-04-18 Thread Paul Yoon




  


Hello, 
 
I 
am an user of Tomcat.
I 
would like to make a few page for mobile user.
Is 
it possible that HTTP users  and WAP users  can access 
same URL and get their own services?
If 
it is, how it can be possible? How tomcat server know the 
difference?
Thank you in advance.
 
Paul 


RE: Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Jann VanOver

But CF ISN'T a web server.  It must work WITH a web server.  It doesn't
install properly unless you already have a web server installed.

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: RE: Configuring Cold Fusion to run with Tomcat 3.2.1


I'll bet he's trying to run Tomcat with the CF web server.
Should be interesting to see how far you getJake...

At 02:01 PM 4/18/2001 -0700, you wrote:
>Are you actually running the Apache web server?  Did you install this 
>before you installed cold fusion?
> >The Cold Fusion support people are not familiar with the Tomcat server.
>
>Can anyone help me with a configuration problem?



RE: Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Tim O'Neil

I'll bet he's trying to run Tomcat with the CF web server.
Should be interesting to see how far you getJake...

At 02:01 PM 4/18/2001 -0700, you wrote:
>Are you actually running the Apache web server?  Did you install this 
>before you installed cold fusion?
> >The Cold Fusion support people are not familiar with the Tomcat server.
>
>Can anyone help me with a configuration problem?




RE: Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Jann VanOver



Are 
you actually running the Apache web server?  Did you install this before 
you installed cold fusion?  

  -Original Message-From: Jake Chin 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 18, 2001 1:38 
  PMTo: [EMAIL PROTECTED]Subject: Configuring 
  Cold Fusion to run with Tomcat 3.2.1
  
   
  
  The Cold Fusion support people are not familiar with the 
  Tomcat server.  
   
  Can anyone help me with a configuration problem?  
  
   
  I'm having a problem with Cold Fusion Administrator.  I 
  can bring up theCold Fusion Documentation page, but not the admin 
  page.I'm running W98 and Apache-Tomcat 3.2.1.The URL I am 
  hitting is:http://localhost:8080/CFIDE/Administrator/index.cfmThe 
  output looks like this:Allaire Cold Fusion TemplateHeader Size: 
  NewVersionÈù7?ná¼Ý«"}~?}Zhqؤä8X°É¿Ìò©?P^qvßNÊÒ?ùFÍû'ÉÊ{´d9¢=OJEUR?Û'ð6lδf`b¢'ôû"\v?ù>eÐ×åREURóz?||,Võæ?êsmCF 
  support referred me to http://www.allaire.com/Handlers/index.cfm?ID=3882&Method=Fullwhich 
  I had already seen.  Unfortunately there is no 
  httpd.conf file with the Tomcat version of Apache.I just downloaded 
  Tomcat the other day.  I'm able to build and runServlet and JSP 
  projects using Kawa, which is also from Macromedia (formerly 
  Allaire).When I run Cold Fusion, I get the little icons on the Windows 
  system toolbar at the bottom of the display, but theCold Fusion window 
  never opens up.  As I said before, I get that gobbledegook when I try to 
  run Cold Fusion Administrator.Can anyone help me?  
   
  Regards, 
  Jake
   


Problem response.sendRedirect

2001-04-18 Thread Connie Chan

Hi,

Does anyone know what response.sendRedirect is supposed to behave?  I'm
developing an object to detect if the session is valid.  All my servlets
would call the function from this object (let say
sessionChecker.checkSession(request, response) ) to check if a valid
session exists.  If there is no session, I call
response.sendRedirect("login.jsp") in this session checker object.
However, I find out that when this line gets executed, the response does
not get redirected right away.  Although I put " return; " after calling
sendRedirect, the handler would return back to my servlet.  My servlet
would continue to execute the logic.  At some point, the response would
get redirected.

Also, in the jsp case, I use jsp:include at the beginning of my jsp
page.  I then check the session by calling the session checker object.
If there's no valid session, the response should get redirected.
However, my jsp page would throw an exception about
java.lang.IllegalStateException: Response has already been committed.  I
need to use include directive, instead of using jsp:include.  Once I
change it, my jsp page works.  But I do need to provide an argument for
the page included.  How should I do it without calling jsp:include?
Please help.



Thanks,
Connie



tomcat 3.2.2b3 mod_jk.log errors

2001-04-18 Thread Pogo Com

We are testing Tomcat on a very high usage site.  Due to problems with Tomcat
3.2.1, we switched to the 3.2.2 beta versions.  With the latest 3.2.2b3, the
mod_jk.log file contains many messages of the form:

[jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL
parameters
[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL
parameters
[jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter

Things seem to be working, but is this a known problem?

Bill Lipa


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: Can Sessions be tracked via URL-rewriting?

2001-04-18 Thread Robert Zazueta

Nope. Where would I need to do that? In all of my servlets, or in the
Tomcat code?

-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 1:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Can Sessions be tracked via URL-rewriting?


Are you asking Tomcat to do URL re-writing (by calling
HttpServletResponse.encodeURL())?

-- Bill K.


> -Original Message-
> From: Robert Zazueta [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:35 PM
> To: [EMAIL PROTECTED]
> Subject: Can Sessions be tracked via URL-rewriting?
> 
> 
> Fresh out of the "box", Tomcat appears to write the jsession ID to the
> users cookies exclusively, making those who don;t have 
> cookies turned on
> for whatever reasons lose their session.
> 
> Is there a way to configure Tomcat so that it writes the jsession via
> URL-rewriting for those folks without cookies turned on? Or even just
> replaces the jsession cookie with URL-rewriting entirely?
> 
> Thanks!
> 
> Rob Z.
> 



RE: Can Sessions be tracked via URL-rewriting?

2001-04-18 Thread William Kaufman

Are you asking Tomcat to do URL re-writing (by calling
HttpServletResponse.encodeURL())?

-- Bill K.


> -Original Message-
> From: Robert Zazueta [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 1:35 PM
> To: [EMAIL PROTECTED]
> Subject: Can Sessions be tracked via URL-rewriting?
> 
> 
> Fresh out of the "box", Tomcat appears to write the jsession ID to the
> users cookies exclusively, making those who don;t have 
> cookies turned on
> for whatever reasons lose their session.
> 
> Is there a way to configure Tomcat so that it writes the jsession via
> URL-rewriting for those folks without cookies turned on? Or even just
> replaces the jsession cookie with URL-rewriting entirely?
> 
> Thanks!
> 
> Rob Z.
> 



Can Sessions be tracked via URL-rewriting?

2001-04-18 Thread Robert Zazueta

Fresh out of the "box", Tomcat appears to write the jsession ID to the
users cookies exclusively, making those who don;t have cookies turned on
for whatever reasons lose their session.

Is there a way to configure Tomcat so that it writes the jsession via
URL-rewriting for those folks without cookies turned on? Or even just
replaces the jsession cookie with URL-rewriting entirely?

Thanks!

Rob Z.



Configuring Cold Fusion to run with Tomcat 3.2.1

2001-04-18 Thread Jake Chin




 

The Cold Fusion support people are not familiar with the 
Tomcat server.  
 
Can anyone help me with a configuration problem?  

 
I'm having a problem with Cold Fusion Administrator.  I 
can bring up theCold Fusion Documentation page, but not the admin 
page.I'm running W98 and Apache-Tomcat 3.2.1.The URL I am 
hitting is:http://localhost:8080/CFIDE/Administrator/index.cfmThe 
output looks like this:Allaire Cold Fusion TemplateHeader Size: 
NewVersionÈù7?ná¼Ý«"}~?}Zhqؤä8X°É¿Ìò©?P^qvßNÊÒ?ùFÍû'ÉÊ{´d9¢=OJEUR?Û'ð6lδf`b¢'ôû"\v?ù>eÐ×åREURóz?||,Võæ?êsmCF 
support referred me to http://www.allaire.com/Handlers/index.cfm?ID=3882&Method=Fullwhich 
I had already seen.  Unfortunately there is no 
httpd.conf file with the Tomcat version of Apache.I just downloaded 
Tomcat the other day.  I'm able to build and runServlet and JSP 
projects using Kawa, which is also from Macromedia (formerly 
Allaire).When I run Cold Fusion, I get the little icons on the Windows 
system toolbar at the bottom of the display, but theCold Fusion window never 
opens up.  As I said before, I get that gobbledegook when I try to run Cold 
Fusion Administrator.Can anyone help me?  
 
Regards, 
Jake
 


Re: losing track of sessions

2001-04-18 Thread Kief Morris

Gerard Quinn typed the following on 06:22 PM 4/18/2001 +0100
>I am using Tomcat 4 beta 3 to develop a site.
>Every so often if I have the "allow session cookies" option set in my browser,
>My sessions get lost or invalidated or something.
>If I disable this option and let the server use url rewriting 
>my site works fine.
>Does anyone know if this is a server problem or could it be a problem with my code.

Dumb question: are you sure it isn't expiring due to idle time? Does the session 
get lost in the middle of actively clicking through your application, or only when
you turn your attention to something else?

Other factors: what browser/version/platform, are you crossing to/from HTTP/HTTPS?





Re: SOLVED: tomcat 3.2.1 mod_jk.so & apache 1.3.14 problem

2001-04-18 Thread Pae Choi

Welcome to the bleeding edge of the open source projects.
:-)

Pae

-Original Message-
From: J. Doug Brown <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, April 18, 2001 12:31 PM
Subject: SOLVED: tomcat 3.2.1 mod_jk.so & apache 1.3.14 problem


>Thanks for the advice given.  I downloaded the binary distribution for
>tomcat 3.2.1 and also grabbed the mod_jk.so from linux/i386 directory. 
>After I grabbed the sources and rebuild mod_jk.so from scratch apache
>could talk to tomcat.  What a PITA this has been trying to figure this
>one out for 2 days.
>
>  Thanks for the help
>  Doug
>-- 
>  J. Doug Brown - Fairmont, WV
>   Software Engineer @ ProLogic, Inc.
>mailto:[EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
>http://members.citynet.net/kbrown/Doug   http://www.prologic-inc.com




SOLVED: tomcat 3.2.1 mod_jk.so & apache 1.3.14 problem

2001-04-18 Thread J. Doug Brown

Thanks for the advice given.  I downloaded the binary distribution for
tomcat 3.2.1 and also grabbed the mod_jk.so from linux/i386 directory. 
After I grabbed the sources and rebuild mod_jk.so from scratch apache
could talk to tomcat.  What a PITA this has been trying to figure this
one out for 2 days.

  Thanks for the help
  Doug
-- 
 J. Doug Brown - Fairmont, WV
  Software Engineer @ ProLogic, Inc.
mailto:[EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
http://members.citynet.net/kbrown/Doug   http://www.prologic-inc.com



Re: setting up tomcat and apache to run together

2001-04-18 Thread Tim O'Neil

Jeff's right, the links are either not there
or very well hidden. I just happened upon the
rpm's well after I had started using Tomcat
myself.

At 11:38 AM 4/18/2001 -0700, Jeff Kilbride wrote:
>The other problem is that there are very few informative links on either the
>Jakarta or the Tomcat sites. Do you realize that there is no link to the
>documentation anywhere? (or if it's there, it's impossible to find...) There
>are links to the FAQ, to the servlet spec and API, to the sun jsp pages,
>etc... but no link to the Tomcat documentation. Also, I just found out a few
>days ago that rpms are available for most Tomcat installs. However, if you
>don't know where to look for them on the Jakarta site, you'll never find
>them because there aren't any links to them.




How to define a worker for IIS

2001-04-18 Thread Jack Li

Hello,

In "Tomcat IIS HowTo", pre-condition is:

A worker is defined to be a tomcat process that accepts work from the IIS
server.

What is the worker and where and how to difine it for IIS derver?

Thanks a lot,
Jack Li




RE: [ANNOUNCEMENT] Tomcat 3.2.2 beta 3 released

2001-04-18 Thread GOMEZ Henri

Return-path: <[EMAIL PROTECTED]>
Received: from apache.org (h31.sny.collab.net [64.208.42.41])
 by mail.prod-sc.respondtv.com
 (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000))
 with SMTP id <[EMAIL PROTECTED]> for
 caius%prod-sc.respondtv.com@ims-ms-daemon (ORCPT [EMAIL PROTECTED]); Tue,
 17 Apr 2001 09:05:34 -0700 (PDT)
Received: (qmail 71044 invoked by uid 500); Tue, 17 Apr 2001 15:51:49 +
Received: (qmail 84272 invoked from network); Tue, 17 Apr 2001 09:49:06 +
Date: Tue, 17 Apr 2001 11:49:03 +0200
From: GOMEZ Henri <[EMAIL PROTECTED]>
Subject: RE: [ANNOUNCEMENT] Tomcat 3.2.2 beta 3 released
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
MIME-version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
Precedence: bulk
Delivered-to: mailing list [EMAIL PROTECTED]
Delivered-to: moderator for [EMAIL PROTECTED]
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
List-Post: 
List-Unsubscribe: 
List-Help: 

Redhat RPMs are available at :

http://jakarta.apache.org/builds/tomcat/release/v3.2.2-beta-3/rpms/

also mod_jk.so for Linux i386 (STDAPI and EAPI .so )

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

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 





init/destroy counter ??

2001-04-18 Thread H.F.N. den Boer

A slight "problem" with some static variables.
There are a number of servlet apps on my webserver.
With one servlet, I can check the status.
However, it seems the initial values of the static variables are reported, also
when I know for sure that I have one or more instances "in the air".

I'm working with;
Win2K server, build 5.00.2195
IIS 5.0, configured with ISAPI filter
JDK1.3.1beta
Tomcat 3.2.1 running as NT service

Below the code of the servlet.

Any ideas ?

Nico

public class SrvltA extends SrvltApp {
  private static boolean accessible = true;
  private static int instances = 0;

  public void init(ServletConfig config) throws ServletException {
super.init(config);
instances++;
  }

  public void destroy() {
if (instances > 0)  instances--;
if (instances == 0) DbAccess.getDbAccess().dbDisconnect();
super.destroy();
  }

  public static void setAccessible(boolean newAccessible) {
accessible = newAccessible;
  }

  public static boolean isAccessible() {
return accessible;
  }

  public static int getInstances() {
return instances;
  }
}





Date problem with Tomcat/IIS

2001-04-18 Thread H.F.N. den Boer

Made a class to do a number of usefull things.
One of them is to get the prefix string for a custom servlet-log.

In the generated string, the date is correct but the time is always the same.
Example of return value: 18-04-2001 11:12:13 

I'm working with;
Win2K server, build 5.00.2195
IIS 5.0, configured with ISAPI filter
JDK1.3.1beta
Tomcat 3.2.1 running as NT service

Below the code of the servlet.

Any ideas ?

Nico

  public String getLogDateTime() {
StringBuffer retVal = new StringBuffer("");
Date dt = new Date();
cal = Calendar.getInstance();
cal.setTime(dt);

retVal.append(getDateOnlyNumbers(dt));  // add date
retVal.append(" ");
retVal.append(cal.HOUR_OF_DAY); // add hour
retVal.append(":");
retVal.append(cal.MINUTE);  // add minute
retVal.append(":");
retVal.append(cal.SECOND);  // add second
retVal.append(" ");

return retVal.toString();
  }





Re: getting line numbers instead of (compiled code)

2001-04-18 Thread Christoph Kukulies

On Wed, Apr 18, 2001 at 02:05:59PM -0400, CPC Livelink Admin wrote:
> 
> set an environment variable to disable to compiler  - I can never remember
> which one of these two it is, so I just set both (DOS example) :
> 
> SET JAVA_COMP=NONE
> SET JAVA_COMPILER=NONE


Yep, this worked, Im getting now:


java.lang.NullPointerException: 
at Auftr_Baustein.doGet(Auftr_Baustein.java:48)
 ^^

found the error. It was a late change I made when experimenting with
something new. 

Many thanks for helping.

> 
> Then start tomcat from that dos window, and life is good.
> 
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 12:31 PM
> To: [EMAIL PROTECTED]
> Subject: RE: getting line numbers instead of (compiled code)
> 
> 
> 
>   You are getting "Compiled Code" because the JIT engine has compiled
> your code into machine native format and it can't trace back to a line of
> .java code.  I thought there was a command line option like -nojit, but
> checking just now I can't seem to remember how to figure it out.
> 
>   There are two common ways to find out where your problem is:
>   1.  Add lots of println statements (you error is in the doGet
> method, so hopefully that method just calls lots of other methods and its
> code isn't to long)
>   2.  Run Tomcat in a debugger (its Java so it can be done, but its
> very slow)
> 
>   Randy
> 
> 
> > -Original Message-
> > From: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 18, 2001 12:17 PM
> > To: [EMAIL PROTECTED]
> > Subject: getting line numbers instead of (compiled code)
> >
> >
> > I dug out an old example I wrote some time ago
> > and I'm wondering why I'm suddenly getting a Nullpointer Exception:
> >
> > /servlets/servlet/Auftr_Baustein
> >
> > Kuku's RMIJDBC Access Demo
> >
> > Error: 500
> >
> > Location: /servlets/servlet/Auftr_Baustein
> >
> > Internal Servlet Error:
> >
> > java.lang.NullPointerException
> > at Auftr_Baustein.doGet(Compiled Code)
> > at javax.servlet.http.HttpServlet.service(Compiled Code)
> > at javax.servlet.http.HttpServlet.service(Compiled Code)
> > at
> > org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> > at
> > org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> > at
> > org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
> > at javax.servlet.http.HttpServlet.service(Compiled Code)
> > at
> > org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> > at
> > org.apache.tomcat.core.ContextManager.service(Compiled Code)
> > at
> > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> > cessConnection(Compiled Code)
> > at
> > org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> > at java.lang.Thread.run(Compiled Code)
> >
> >
> > I cannot remember when my example ran last time and whether it
> > was before I introduced tomcat as the servlet executor.
> >
> > Anyone I gotta live with the current
> > configuration and have to get my examples running again.
> >
> > Where should I look for? Could it be a security policy
> > problem that I'm trying to open a socket via rmijdbc?
> > Could a .jar file be missing? How can I traceback the error
> > into my code?
> >
> > Help!
> >
> > --
> > Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
> >

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



RE: getting line numbers instead of (compiled code)

2001-04-18 Thread Darrell Porter

But doesn't BSD stand for Basic Standard DOS ?



Darrell


-Original Message-
From: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 11:44 AM
To: [EMAIL PROTECTED]
Subject: Re: getting line numbers instead of (compiled code)


On Wed, Apr 18, 2001 at 02:05:59PM -0400, CPC Livelink Admin wrote:
> 
> set an environment variable to disable to compiler  - I can never remember
> which one of these two it is, so I just set both (DOS example) :

I looked in bin/tomcat.sh where java is started and tried with -nojit
but my java engine (Sun) doesn't have this commandline option.

I will try this stuff below (although I must say: There are other OSs
than DOS window in this world, mine is FreeBSD :-)

> 
> SET JAVA_COMP=NONE
> SET JAVA_COMPILER=NONE
> 
> Then start tomcat from that dos window, and life is good.

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



RE: losing track of sessions

2001-04-18 Thread Gerard Quinn



Tassilo,
I seem to be  having the opposite problem to 
you.
When I 
enforce url rewriting it works fine but when I let the server use session 
cookies occasionally, what seems like
at 
random, the session gets lost.
I am 
running Tomcat 4 beta 3 as a standalone server and it was going like a bomb 
up until now.
I use 
no virtual hosts or anything like that.
 
Thanks 
anyway,
Gerard.

  -Original Message-From: Tassilo Pilati 
  [mailto:[EMAIL PROTECTED]]Sent: 18 April 2001 
  19:20To: [EMAIL PROTECTED]Subject: AW: 
  losing track of sessions
  Interesting... are you using Apache ? I`m running Tomcat 3.2.1 with 
  Apache. When I use URL rewritting I run into problems becuase Apache does not 
  passover the requests to Tomcat. It gets confused with the ;jsessionid string 
  which Tomcat appends to an url to enforce session tracking using url 
  rewritting. Do you use virtual hosts ? Have you inserted any rewrite rules 
  into the http.conf of Apache ?
  
-Ursprüngliche Nachricht-Von: Gerard Quinn 
[mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 18. April 
2001 19:22An: [EMAIL PROTECTED]Betreff: 
losing track of sessions
I am using 
Tomcat 4 beta 3 to develop a site.
Every so often 
if I have the "allow session cookies" option set in my 
browser,
My sessions get 
lost or invalidated or something.
If I disable 
this option and let the server use url rewriting 
my site works 
fine.
Does anyone know 
if this is a server problem or could it be a problem with my 
code.
Thanks in 
advance.
 
Gerard.


Re: getting line numbers instead of (compiled code)

2001-04-18 Thread Jeff Kilbride

Set an environment variable called JAVA_COMPILER to NONE.

SET JAVA_COMPILER=NONE

This will turn off the jit compiler.

--jeff

- Original Message -
From: "Christoph Kukulies" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 9:16 AM
Subject: getting line numbers instead of (compiled code)


> I dug out an old example I wrote some time ago
> and I'm wondering why I'm suddenly getting a Nullpointer Exception:
>
> /servlets/servlet/Auftr_Baustein
>
> Kuku's RMIJDBC Access Demo
>
> Error: 500
>
> Location: /servlets/servlet/Auftr_Baustein
>
> Internal Servlet Error:
>
> java.lang.NullPointerException
> at Auftr_Baustein.doGet(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
> at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
> at org.apache.tomcat.servlets.InvokerServlet.service(Compiled
Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
> at org.apache.tomcat.core.ContextManager.service(Compiled Code)
> at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
> at org.apache.tomcat.service.TcpConnectionThread.run(Compiled
Code)
> at java.lang.Thread.run(Compiled Code)
>
>
> I cannot remember when my example ran last time and whether it
> was before I introduced tomcat as the servlet executor.
>
> Anyone I gotta live with the current
> configuration and have to get my examples running again.
>
> Where should I look for? Could it be a security policy
> problem that I'm trying to open a socket via rmijdbc?
> Could a .jar file be missing? How can I traceback the error into my code?
>
> Help!
>
> --
> Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
>




Re: getInputStream

2001-04-18 Thread Jeff Kilbride

Hi Georges,

There is a very easy to use class for doing file uploads available from
Jason Hunter, who wrote the original oreilly book on servlets, at his
website:

http://www.servlets.com/

Look for the com.oreilly.servlet package. I think it will greatly simplify
what you are trying to do. There's a good deal of documentation available on
the site.

Thanks,
--jeff

- Original Message -
From: "Georges Boutros" <[EMAIL PROTECTED]>
To: "Tomcat (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 8:39 AM
Subject: getInputStream


> hi,
>
> I'm trying to submit a file to a servlet.
> I'm wanna use the request.getInputStream() to get the data of the file
> and  request.getContentType() to get the content type
>
> I'd like to know if it's possible to get the pure content of the file
> without any headers of the multipart/form-data
>
> thanks
>
> Georges
>




Re: getting line numbers instead of (compiled code)

2001-04-18 Thread Christoph Kukulies

On Wed, Apr 18, 2001 at 02:05:59PM -0400, CPC Livelink Admin wrote:
> 
> set an environment variable to disable to compiler  - I can never remember
> which one of these two it is, so I just set both (DOS example) :

I looked in bin/tomcat.sh where java is started and tried with -nojit
but my java engine (Sun) doesn't have this commandline option.

I will try this stuff below (although I must say: There are other OSs
than DOS window in this world, mine is FreeBSD :-)

> 
> SET JAVA_COMP=NONE
> SET JAVA_COMPILER=NONE
> 
> Then start tomcat from that dos window, and life is good.

-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]



Re: setting up tomcat and apache to run together

2001-04-18 Thread Jeff Kilbride

The other problem is that there are very few informative links on either the
Jakarta or the Tomcat sites. Do you realize that there is no link to the
documentation anywhere? (or if it's there, it's impossible to find...) There
are links to the FAQ, to the servlet spec and API, to the sun jsp pages,
etc... but no link to the Tomcat documentation. Also, I just found out a few
days ago that rpms are available for most Tomcat installs. However, if you
don't know where to look for them on the Jakarta site, you'll never find
them because there aren't any links to them.

Isn't that a little odd?

I'll see your 3 cents and raise you a penny...

--jeff


- Original Message -
From: "Darrell Porter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 11:04 AM
Subject: RE: setting up tomcat and apache to run together


> Because
> 1) Not everyone knows about them (unfortunately, Tomcat and Apache
> are downloadable from many places other than apache.org sites)
> 2) The how-to's are missing a few key pieces of information - not
> that they aren't good, but handing a how-to to a novice user is not the
> complete answer, but agreed people should probably start there.
>
> my 3 cents (inflation, don't you know...)
>
> Darrell
>
>
> -Original Message-
> From: Benoît Jacquemont [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 9:11 AM
> To: [EMAIL PROTECTED]
> Subject: RE: setting up tomcat and apache to run together
>
>
> Why does nobody wants to read the HowTo-files ??? Tomcat 3.2.1 comes with
> three VERY usefull files which are :
> tomcat-apache-howto.html
> and
> Tomcat-Workers-HowTo.html
> and
> mod_jk-howto.html
>
> These files are also on the jakarta.apache.org website, so why don't you
> want to read this howto... They have been designed to be read ! A lot of
> people spent nights to write them (;-) ), so, please take a look at
them...
> If you want, I can even send them to you...
>
>
> Benoît
>
> >-Message d'origine-
> >De : Greg Chakmakian [mailto:[EMAIL PROTECTED]]
> >Envoyé : mercredi 18 avril 2001 17:49
> >À : [EMAIL PROTECTED]
> >Objet : setting up tomcat and apache to run together
>
>
> >Bear with me, I know you all have probably already been through this one
> before.  I have Apache (for Darwin/Mac OS X) and
> >Tomcat 3.2.1.  They both run great by themselves; apache on port 80 and
> tomcat on 8080.  I want to setup the two so that if I
> >go to a jsp page on Apache it will use tomcat to process the jsp pages;
> i.e - http://www.apache.org/test.jsp gets processed
> >by tomcat even though its being access through apache.  I know I can turn
> off apache and reconfigure tomcat so that it runs
> >off of port 80, but I would rather do it the other way.  Like I said, I
> know this has probably been discussed and I apologize
> >for being repetitive.  I couldn't find any information on how to do this.
> Any help or direction you all could give would be
> >greatly appreciated.
> >-greg
> >Healant
> >Web Developer
> >[EMAIL PROTECTED]
> >[EMAIL PROTECTED]
> >336-370-0604  x111
>
>




Re: mod_jk - DEAD END! [POSTSCRIPT]

2001-04-18 Thread Jeff Kilbride

Forgive the expression, but bullshit. :)

The mod_jk compilation *is* trivial and since they don't list on the website
what version of Apache or Linux the binary is compiled for, it's pretty much
useless. I'd say the number one problem post I have seen since joining this
list relates to the fact that the binary doesn't work on most people's
systems. If you give somebody with relatively little experience a binary
that's supposed to work and it doesn't, it only confuses the matter that
much more.

By the way, I'd be interested in hearing what your config is, since it
worked for you.

Thanks,
--jeff

- Original Message -
From: "Rui M . Silva Seabra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 6:13 AM
Subject: Re: mod_jk - DEAD END! [POSTSCRIPT]


> On Wed, Apr 18, 2001 at 01:58:19PM +0100, Raj Subramani wrote:
> > Well folks it finally "appears" to work (after endless struggles and
> > news group and e-mail list browsing).
> >
> > Me thinks, there is absolutely no point in downloading the mod_jk.so
> > binaries for LINUX (mod_jk.dll works a treat on NT first time every
time).
> >
> > Build it!
>
> Bullshit. :)
>
> Forgive the expression, but it worked very well with me. Of course, if you
don't have similar enough a system with the one in which mod_jk.so was
compiled, it will not work.
>
> Since windows is one platform with the same libraries, it's almost
deterministic the mod_jk.dll will work.
>
> There is a point in downloading. If it workds, fine, if it doesn't,
compile it.
>
>
> I've had problems because mod_jk.so's compilation is non trivial. The
compiled one worked perfectly.
>
> Hugs, rms
>
> --
> + No matter how much you do, you never do enough -- unknown
> + Whatever you do will be insignificant,
> | but it is very important that you do it -- Ghandi
> + So let's do it...?
>




AW: losing track of sessions

2001-04-18 Thread Tassilo Pilati



Interesting... are you using Apache ? I`m running Tomcat 3.2.1 with 
Apache. When I use URL rewritting I run into problems becuase Apache does not 
passover the requests to Tomcat. It gets confused with the ;jsessionid string 
which Tomcat appends to an url to enforce session tracking using url rewritting. 
Do you use virtual hosts ? Have you inserted any rewrite rules into the 
http.conf of Apache ?

  -Ursprüngliche Nachricht-Von: Gerard Quinn 
  [mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 18. April 2001 
  19:22An: [EMAIL PROTECTED]Betreff: losing 
  track of sessions
  I am using Tomcat 
  4 beta 3 to develop a site.
  Every so often if 
  I have the "allow session cookies" option set in my 
  browser,
  My sessions get 
  lost or invalidated or something.
  If I disable this 
  option and let the server use url rewriting 
  my site works 
  fine.
  Does anyone know 
  if this is a server problem or could it be a problem with my 
  code.
  Thanks in 
  advance.
   
  Gerard.


RE: apache virtual Hosting with tomcat

2001-04-18 Thread Darrell Porter

You may want to check out

http://www.luminas.co.uk/technology/servlet/tomcat_virtual.html

and

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto.
html#virtual_hosting

-Original Message-
From: C.M. Rahman (jr.) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 9:41 AM
To: [EMAIL PROTECTED]
Subject: apache virtual Hosting with tomcat


Hi, I am using unix apache to do virtual hosting. I have recently added
tomcat and trying to configure virtual hosting. Is there anybody on the list
setup a virtual site with tomcat successfully?

I am failing to load servlet from virtual site.

Thanks
&&
C.M. Rahman
Network Engineer
CCS Internet
13740 Research Blvd. Suite O-4
Austin, TX 78758
[EMAIL PROTECTED]



RE: getting line numbers instead of (compiled code)

2001-04-18 Thread CPC Livelink Admin


set an environment variable to disable to compiler  - I can never remember
which one of these two it is, so I just set both (DOS example) :

SET JAVA_COMP=NONE
SET JAVA_COMPILER=NONE

Then start tomcat from that dos window, and life is good.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 12:31 PM
To: [EMAIL PROTECTED]
Subject: RE: getting line numbers instead of (compiled code)



You are getting "Compiled Code" because the JIT engine has compiled
your code into machine native format and it can't trace back to a line of
.java code.  I thought there was a command line option like -nojit, but
checking just now I can't seem to remember how to figure it out.

There are two common ways to find out where your problem is:
1.  Add lots of println statements (you error is in the doGet
method, so hopefully that method just calls lots of other methods and its
code isn't to long)
2.  Run Tomcat in a debugger (its Java so it can be done, but its
very slow)

Randy


> -Original Message-
> From: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: getting line numbers instead of (compiled code)
>
>
> I dug out an old example I wrote some time ago
> and I'm wondering why I'm suddenly getting a Nullpointer Exception:
>
> /servlets/servlet/Auftr_Baustein
>
> Kuku's RMIJDBC Access Demo
>
> Error: 500
>
> Location: /servlets/servlet/Auftr_Baustein
>
> Internal Servlet Error:
>
> java.lang.NullPointerException
> at Auftr_Baustein.doGet(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> at
> org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> at
> org.apache.tomcat.core.ContextManager.service(Compiled Code)
> at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection(Compiled Code)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
>
>
> I cannot remember when my example ran last time and whether it
> was before I introduced tomcat as the servlet executor.
>
> Anyone I gotta live with the current
> configuration and have to get my examples running again.
>
> Where should I look for? Could it be a security policy
> problem that I'm trying to open a socket via rmijdbc?
> Could a .jar file be missing? How can I traceback the error
> into my code?
>
> Help!
>
> --
> Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
>




RE: setting up tomcat and apache to run together

2001-04-18 Thread Darrell Porter

Because
1) Not everyone knows about them (unfortunately, Tomcat and Apache
are downloadable from many places other than apache.org sites)
2) The how-to's are missing a few key pieces of information - not
that they aren't good, but handing a how-to to a novice user is not the
complete answer, but agreed people should probably start there.

my 3 cents (inflation, don't you know...)

Darrell


-Original Message-
From: Benoît Jacquemont [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 9:11 AM
To: [EMAIL PROTECTED]
Subject: RE: setting up tomcat and apache to run together


Why does nobody wants to read the HowTo-files ??? Tomcat 3.2.1 comes with
three VERY usefull files which are :
tomcat-apache-howto.html
and
Tomcat-Workers-HowTo.html
and
mod_jk-howto.html

These files are also on the jakarta.apache.org website, so why don't you
want to read this howto... They have been designed to be read ! A lot of
people spent nights to write them (;-) ), so, please take a look at them...
If you want, I can even send them to you...


Benoît

>-Message d'origine-
>De : Greg Chakmakian [mailto:[EMAIL PROTECTED]]
>Envoyé : mercredi 18 avril 2001 17:49
>À : [EMAIL PROTECTED]
>Objet : setting up tomcat and apache to run together


>Bear with me, I know you all have probably already been through this one
before.  I have Apache (for Darwin/Mac OS X) and
>Tomcat 3.2.1.  They both run great by themselves; apache on port 80 and
tomcat on 8080.  I want to setup the two so that if I
>go to a jsp page on Apache it will use tomcat to process the jsp pages;
i.e - http://www.apache.org/test.jsp gets processed
>by tomcat even though its being access through apache.  I know I can turn
off apache and reconfigure tomcat so that it runs
>off of port 80, but I would rather do it the other way.  Like I said, I
know this has probably been discussed and I apologize
>for being repetitive.  I couldn't find any information on how to do this.
Any help or direction you all could give would be
>greatly appreciated.
>-greg
>Healant
>Web Developer
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>336-370-0604  x111





Re: Getting the query string in a tag handler

2001-04-18 Thread Sam Newman

Its ok, I solved it. I just cast the ServletRequest from pageContext to a
HttpServletRequest

sam
- Original Message -
From: "Sam Newman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 4:52 PM
Subject: Getting the query string in a tag handler


> Does anyone know how I can access the Query String in a tag handler? I can
> access the context of the page, and frm this get a ServletRequest. However
> the queryString is normally accessed from a HttpServletRequest, a
> ServletRequest subclass. Do I jsut try casting the request I get to a
> HttpServletRequest object and get the query string that way?
>
> sam
>




RE: W2000 + apache 1,3 + tomcat 4

2001-04-18 Thread Darrell Porter

Tomcat 3.2.1 (Release)
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38
6/

Tomcat 4 (beta 3)
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b3/

Apache 1.3 Windows 2000 Installation Packages
http://httpd.apache.org/dist/httpd/binaries/win32/

For reference, go to http://www.apache.org for information regarding The
Apache Project
   go to http://jakarta.apache.org for information regarding
Jakarta Project (of which Tomcat is a component)

Darrell


-Original Message-
From: Chelkowski, Tadeusz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 3:51 AM
To: [EMAIL PROTECTED]
Subject: W2000 + apache 1,3 + tomcat 4


I need help:
how to integrate Apchae 1.3 with tomcat 4 on w2000
i got only web_aap.so not dll ?
where can i find it?



RE: Servlet jar files

2001-04-18 Thread DONNIE HALE

Bear in mind that the unpacking of .war files is an implementation detail of Tomcat 
and is thus non-portable. Tomcat 4.0 has an option to not unpack the .war file but to 
execute directly from the .war file. WebSphere can deploy a .war file but unpacks it 
into a somewhat different directory structure. I don't know how other servlet engines 
handle this.

If you want to be able to edit property files and redeploy, you need to make it as 
simple as possible to recreate the .war file.

Donnie


>>> [EMAIL PROTECTED] 04/18/01 01:07PM >>>
Thanks Ed.

I didn't know that it gets unpacked when Tomcat starts up.

-Original Message-
From: Ed Gomolka [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 18, 2001 11:47 AM
To: [EMAIL PROTECTED] 
Subject: Re: Servlet jar files


The WAR file doesn't stay packed. It is simply a deployment mechanism.
At startup Tomcat will take any WAR file that it finds in the webapps 
directory, and unpack it
into a directory which has the name of the WAR file.
For example, lets say that you have an existing context called "oldContext".
If you navigate to that directory, you can then jar everything up into a 
WAR file using
the command "jar cvf newContext.war *".
If you take "newContext.war" and move it down into the webapps directory,
and then restart Tomcat, you will end up with a "newContext" directory
within the webapps directory. Within the webapps directory, you should see:

newContext.war
newContext directory
oldContext directory

Nothing prevents your clients from making changes to files that were 
previously located within the WAR file.
Bear in mind that the deployment only works if there was no pre-existing 
"newContext"
directory on the target machine.
If you previously installed release 1 of your application, and now you want 
to install release 1.1
with the same context name, you will
need to remove the context directory tree if you are deploying a WAR file.

Ed

At 02:38 PM 4/18/01 +0100, you wrote:
>You mean that you deploy servlets on customers machines? I'm not sure how 
>easy it is to access files outside of the WAR file. I suspect you'd have 
>to edit the tomcat.policy file to relax the security sandbox that servlets 
>run it. Byd efault I don't think you can access anything outside the 
>servlets web context. Alternatively you could deply the webapp unpacked 
>(e.g. not use the WAR file). As far as I can see the only benifits of 
>using a .WAR file is it looks a little neater, hides some of the internals 
>and makes deployment a little easier.
>
>sam
>- Original Message -
>From: Rida Ligurs
>To:
'[EMAIL PROTECTED]' 
>Sent: Wednesday, April 18, 2001 1:56 PM
>Subject: RE: Servlet jar files
>
>I was also thinking of using WAR files, but didn't know where to put my 
>properties files.  I don't think I wan't them in the WAR because the 
>customer will need to edit them.  Where should they go?




RE: ** Does Tomcat need Restart **

2001-04-18 Thread Darrell Porter

The only method whereby I have gotten it to repeatedly work correctly is to
stop Tomcat, blow away the work directory and restart Tomcat.

What would be useful is a method in which Tomcat, upon restart,
automatically compiles all the JSPs in its defined contexts.

Darrell


-Original Message-
From: Meir Faraj [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 10:44 AM
To: [EMAIL PROTECTED]
Subject: Re: ** Does Tomcat need Restart **


and for jsp how to do this ?
I've problem in reloading jsp (after few reloading)
even if I delete the created class from the work/ROOT/ dirrectory.
what I need to do ?
- Original Message -
From: "Scott Judd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 4:26 PM
Subject: Re: ** Does Tomcat need Restart **


> I'd like to offer two cents on this topic. I have seen both very
successful
> and very unsuccessful results when using servlet reloading on Tomcat.
First,
> make sure that the servlet classes reside in
/webapps/ROOT/WEB-INF/classes.
> Next, make sure that the web.xml file in the  webapps/ROOT/WEB-INF folder
> contains the appropriate entry to register the servlet. Finally, make sure
> that the reloadable attribute for the given context is set to "true" in
> /conf/server.xml.
>
> Tomcat has demonstrated consistent success in reloading servlets that I
> invoke directly from the CLI of my browser, following the above
> prescription. If I try to vary this formula (place servlets in other
> directories, package servlet classes together, invoke a servlet from
another
> servlet) servlet reloading seems to get hosed and I end up restarting
Tomcat
> in order to "see" the new class files.
>
> scott
>
> G:\tomcat\webapps\ROOT\WEB-INF
>
> From: "Benoit Jacquemont" <[EMAIL PROTECTED]>
> > This feature exists, it is defined by the reloadable parameter for the
> > Context. But it is an alpha version feature, so you always need to
restart
> > Tomcat.
> >
> > Benoit
> >
>
> > > Hi,
> > >
> > > Is there any option in tomcat CONFIGURATION by which, I can
> > > instruct Tomcat
> > > to restart automatically whenever a servlet gets modified (i.e. I
> > > re-compile the servlet).
> > >
> > > I am running Tomcat and Apache on Linux OS.
> > >
> > > Regards,
> > > Marathe
> >
>
>



Re: How to read property files?

2001-04-18 Thread estutes

Thanks all that answered.
I tried several of the suggestions, and here is what I finally came up
with that works for me. I think it is portable enough to use in most
any tomcat situation.

File pf = new File(request.getRealPath("/myapp.properties"));
BufferedInputStream is = new BufferedInputStream(new FileInputStream(pf));
Properties p = new Properties();
try {
 p.load(is);
} catch ( java.io.IOException e ) {
out.print("Can't load the properties file");
return;
}

=eas=
On 18 Apr, Filip Hanik wrote:
> don't mess around with the system classpath. makes your webapp
> non-portable. take advantage of the fact that you are using a war
> structure.
> 
> put the property file under WEB-INF/classes/
> 
> then do this
> 
> java.util.Properties prop = new java.util.Properties();
> prop.load(
> Thread.currentThread().getContextClassLoader().getResourceAsStrea 
> m("mypropertyfile.properties") );
> 
> that should do the trick,
> 
> you may also want to try
> "./mypropertyfile.properties" and "/mypropertyfile.properties" if the
> file doesn't get picked up
> 
> Filip
> 
> ~
> Namaste - I bow to the divine in you
> ~
> Filip Hanik
> Software Architect
> [EMAIL PROTECTED]
> www.filip.net
> 
>> -Original Message-
>> From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, April 18, 2001 8:30 AM
>> To: [EMAIL PROTECTED]
>> Subject: RE: How to read property files?
>>
>>
>> Make sure the directory with the properties file in it is part of
>> your CLASSPATH. Ie add . if the properties is in the current
>> directory.
>>
>>
>> -Original Message-
>> From: Mark [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, April 18, 2001 4:18 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: How to read property files?
>>
>>
>> >> Have you tried doing this from a class inside a .jar file?   I
>> >> have and it didn't work.
>>
>>
>> > Works fine for me? My jar file had a manifest, a class
> 
>> default package )
>> > and a properties file. I added the jar to the CLASSPATH and
>> > executed the class. Voila!
>>
>> The properties file is not in the jar.  Just the class that tries
>> to access it.  I didn't try it with the properties file inside the
>> jar, so it may work.  But I don't want to do that.  I want
>> to make it readily editable.
>>
>> Mark
>>
>> - Original Message -
>> From: "Samson, Lyndon [IT]" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Wednesday, April 18, 2001 10:42 AM
>> Subject: RE: How to read property files?
>>
>>
>> > Works fine for me? My jar file had a manifest, a class
> 
>> default package )
>> > and a properties file. I added the jar to the CLASSPATH and
>> > executed the class. Voila!
>> >
>> > As the InputStream has no concept of file paths there is no easy
>> > way to determine where in the CLASSPATH it was loaded from.
>> > CLASSPATH search order is actually undefined allthough it tends to
>> > left to right. The only way I
>> can think of
>> > is to split System.getProperties().getProperty("java.class.path")
>> > and
>> append
>> > the
>> > properties file name to every path and then checking if that file
>> > is readable. Yuk.
>> >
>> >
>> > -Original Message-
>> > From: Mark [mailto:[EMAIL PROTECTED]]
>> > Sent: Wednesday, April 18, 2001 3:08 PM
>> > To: [EMAIL PROTECTED]
>> > Subject: Re: How to read property files?
>> >
>> >
>> > >
>> > >   InputStream is =
>> > this.getClass().getResourceAsStream("myapp.properties");
>> > >   Properties p = new Properties();
>> > >   try {
>> > > p.load(is);
>> > >   } catch ( java.io.IOException e ) {
>> > > // Can't load props file
>> > >   }
>> > >
>> > > That way the properties file can be anywhere in the classpath.
>> > >
>> > >
>> >
>> >
>> >
>> > > -Original Message-
>> > > From: [EMAIL PROTECTED]
>> > > [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001
>> > > 9:27 PM To: [EMAIL PROTECTED] Subject: How to read
>> > > property files?
>> > >
>> > >
>> > > I would like to put a myapp.properties file in the top level
>> > > directory of my webapp. But I can't figure out what filepath to
>> > > give the Properties.load() method in order to load my servlet
>> > > property object. Can someone help me?
>> > >
>> > > Thanks
>> > >
>> > > =eas=
>> > >
>> >
>>
> 
~~~





losing track of sessions

2001-04-18 Thread Gerard Quinn



I am using Tomcat 4 
beta 3 to develop a site.
Every so often if I 
have the "allow session cookies" option set in my browser,
My sessions get lost 
or invalidated or something.
If I disable this 
option and let the server use url rewriting 
my site works 
fine.
Does anyone know 
if this is a server problem or could it be a problem with my 
code.
Thanks in 
advance.
 
Gerard.


RE: Servlet jar files

2001-04-18 Thread Rida Ligurs
Title: RE: Servlet jar files





Thanks Ed.


I didn't know that it gets unpacked when Tomcat starts up.


-Original Message-
From: Ed Gomolka [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: Servlet jar files



The WAR file doesn't stay packed. It is simply a deployment mechanism.
At startup Tomcat will take any WAR file that it finds in the webapps 
directory, and unpack it
into a directory which has the name of the WAR file.
For example, lets say that you have an existing context called "oldContext".
If you navigate to that directory, you can then jar everything up into a 
WAR file using
the command "jar cvf newContext.war *".
If you take "newContext.war" and move it down into the webapps directory,
and then restart Tomcat, you will end up with a "newContext" directory
within the webapps directory. Within the webapps directory, you should see:


newContext.war
newContext directory
oldContext directory


Nothing prevents your clients from making changes to files that were 
previously located within the WAR file.
Bear in mind that the deployment only works if there was no pre-existing 
"newContext"
directory on the target machine.
If you previously installed release 1 of your application, and now you want 
to install release 1.1
with the same context name, you will
need to remove the context directory tree if you are deploying a WAR file.


Ed


At 02:38 PM 4/18/01 +0100, you wrote:
>You mean that you deploy servlets on customers machines? I'm not sure how 
>easy it is to access files outside of the WAR file. I suspect you'd have 
>to edit the tomcat.policy file to relax the security sandbox that servlets 
>run it. Byd efault I don't think you can access anything outside the 
>servlets web context. Alternatively you could deply the webapp unpacked 
>(e.g. not use the WAR file). As far as I can see the only benifits of 
>using a .WAR file is it looks a little neater, hides some of the internals 
>and makes deployment a little easier.
>
>sam
>- Original Message -
>From: Rida Ligurs
>To: '[EMAIL PROTECTED]'
>Sent: Wednesday, April 18, 2001 1:56 PM
>Subject: RE: Servlet jar files
>
>I was also thinking of using WAR files, but didn't know where to put my 
>properties files.  I don't think I wan't them in the WAR because the 
>customer will need to edit them.  Where should they go?





RE: getting line numbers instead of (compiled code)

2001-04-18 Thread Randy Layman


You are getting "Compiled Code" because the JIT engine has compiled
your code into machine native format and it can't trace back to a line of
.java code.  I thought there was a command line option like -nojit, but
checking just now I can't seem to remember how to figure it out.

There are two common ways to find out where your problem is:
1.  Add lots of println statements (you error is in the doGet
method, so hopefully that method just calls lots of other methods and its
code isn't to long)
2.  Run Tomcat in a debugger (its Java so it can be done, but its
very slow)

Randy


> -Original Message-
> From: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 12:17 PM
> To: [EMAIL PROTECTED]
> Subject: getting line numbers instead of (compiled code)
> 
> 
> I dug out an old example I wrote some time ago
> and I'm wondering why I'm suddenly getting a Nullpointer Exception:
> 
> /servlets/servlet/Auftr_Baustein
> 
> Kuku's RMIJDBC Access Demo
> 
> Error: 500
> 
> Location: /servlets/servlet/Auftr_Baustein
> 
> Internal Servlet Error:
> 
> java.lang.NullPointerException
> at Auftr_Baustein.doGet(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at 
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> at 
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> at 
> org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
> at javax.servlet.http.HttpServlet.service(Compiled Code)
> at 
> org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> at 
> org.apache.tomcat.core.ContextManager.service(Compiled Code)
> at 
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection(Compiled Code)
> at 
> org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
> 
> 
> I cannot remember when my example ran last time and whether it
> was before I introduced tomcat as the servlet executor.
> 
> Anyone I gotta live with the current
> configuration and have to get my examples running again.
> 
> Where should I look for? Could it be a security policy
> problem that I'm trying to open a socket via rmijdbc?
> Could a .jar file be missing? How can I traceback the error 
> into my code?
> 
> Help!
> 
> -- 
> Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
> 



Re: WEB-INF/lib vs. TOMCAT_HOME/lib

2001-04-18 Thread Chris Bailey

I'm on RedHat Linux 6.2 i386, Apache 1.3.19, Tomcat 3.2.1.

On 18 Apr 2001 12:50:31 +0100, [EMAIL PROTECTED] wrote:
> I'm afraid to say its not a problem I've seen here. Which platform are you
> running on?
> 
> sam
> > -Original Message-
> > From: Chris Bailey [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 17, 2001 7:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: WEB-INF/lib vs. TOMCAT_HOME/lib
> >
> >
> > The Tomcat automatic setting of a classpath for a given webapp is not
> > seeming to work for me.  I have my various jar files in .../WEB-INF/lib,
> > for my web app.  But, that fails.  If I however, put them in
> > $TOMCAT_HOME/lib, then they get added to the generic classpath (which is
> > displayed on startup of Tomcat), and things work fine.
> >
> > How do I fix this?
> >
> > --
> > Chris Bailey[EMAIL PROTECTED]
> > Wego Systemshttp://www.wego.com
> >
> >
> > **
> > Information in this email is confidential and may be privileged.
> > It is intended for the addressee only. If you have received it in error,
> > please notify the sender immediately and delete it from your system.
> > You should not otherwise copy it, retransmit it or use or disclose its
> > contents to anyone.
> > Thank you for your co-operation.
> > **
> >
> 
> 

-- 
Chris Bailey[EMAIL PROTECTED]
Wego Systemshttp://www.wego.com




RE: WEB-INF/lib vs. TOMCAT_HOME/lib

2001-04-18 Thread Chris Bailey

My jasper.log file only says what the scratch directory is, and not to
modify any generated servlets.  It doesn't list any classpath stuff.

On 18 Apr 2001 06:28:16 -0400, [EMAIL PROTECTED] wrote:
> I haven't noticed this problem.  I have however noted that when Tomcat 
> starts up it doesn't list the jar for any of my webapps in it's initial 
> classpath.  If, however, I check my jasper.log it does list them.  So you 
> might want to just check that, Tomcat might be working right for you, you 
> just might be looking in the wrong spot to find the classpath it's using.
> 
> At 06:18 AM 4/18/2001, you wrote:
> >I have the same problem and have posted the same thing before with no reply.
> >I actually keep the jars in the WEB-INF/lib directory and add them to the
> >Tomcat classpath with wrapper.properties (I'm starting as an NT service).
> >This means a config change whenever I deploy a webapp which is far from
> >ideal.
> >
> >Maybe someone with superior knowledge about this could shed some light this
> >time?
> >
> >Richard.
> >
> >-Original Message-
> >From: Chris Bailey [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, April 17, 2001 7:32 PM
> >To: [EMAIL PROTECTED]
> >Subject: WEB-INF/lib vs. TOMCAT_HOME/lib
> >
> >
> >The Tomcat automatic setting of a classpath for a given webapp is not
> >seeming to work for me.  I have my various jar files in .../WEB-INF/lib,
> >for my web app.  But, that fails.  If I however, put them in
> >$TOMCAT_HOME/lib, then they get added to the generic classpath (which is
> >displayed on startup of Tomcat), and things work fine.
> >
> >How do I fix this?
> >
> >--
> >Chris Bailey[EMAIL PROTECTED]
> >Wego Systemshttp://www.wego.com
> >
> >
> >**
> >Information in this email is confidential and may be privileged.
> >It is intended for the addressee only. If you have received it in error,
> >please notify the sender immediately and delete it from your system.
> >You should not otherwise copy it, retransmit it or use or disclose its
> >contents to anyone.
> >Thank you for your co-operation.
> >**
> 
> Chad La Joie   "Only a man who can not conquer
> IT Specialist his deficiencies feels the need to
> IS&C - WARD convince the world he has none"
> 
> 

-- 
Chris Bailey[EMAIL PROTECTED]
Wego Systemshttp://www.wego.com




AW: worker.properties

2001-04-18 Thread Tassilo Pilati

Well, this file is in the conf directory of my tomcat installation. But I
don`t get an error message 

-Ursprüngliche Nachricht-
Von: Sam Newman [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. April 2001 15:36
An: [EMAIL PROTECTED]
Betreff: Re: worker.properties


The workers.properties file configures the worker threads that take requests
for servlets/jsp's from apache and processes them appropirately. As such,
when running Tomcat without Apache it will have no effect. You only need to
edit this file when you run Apache and Tomcat together. Infact you'll get a
syntax error on a non-PC platform if you forget to edit this file and try
and include it in the Apache directives. See the workers.properties howto
for more information (its in the Tomcat docs somewhere).

sam
- Original Message -
From: "Tassilo Pilati" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 1:47 PM
Subject: worker.properties


> Hello,
>
> i did not edit my worker.properties file at all. I`m using Tomcat 3.2.1.
It
> is working with Apache and in standalone mode (besides that session
> tracking, using URL rewritting is not working, which is another issue).
> Anyway, I was wondering if I have to edit this file. For example I see in
> the file that the workers.tomcat_home and the workers.java_home is not set
> correclty, as it is configured for the windows plattform. Nevertheless,
> tomcat is starting up and working, so I was just wondering if that is
normal





AW: Tomcat with Apache/URLRewritting and mod_rewrite

2001-04-18 Thread Tassilo Pilati

I`m using mod_jk and apj13, however I tried apj12 as well but it should not
make a difference. Tomcat version is 3.2.1. You probably set the noCookies
parameter to false. Then session tracking is implemented using Cookies and
it probably will work. If you set it to false, then session tracking via URL
rewritting is used instead and you should run into the problem I have. Do
you have the string ";jsessionid=" in you urls, when you are using session
tracking ? You probably don`t...

-Ursprüngliche Nachricht-
Von: Sam Newman [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. April 2001 15:33
An: [EMAIL PROTECTED]
Betreff: Re: Tomcat with Apache/URLRewritting and mod_rewrite



- Original Message -
From: "Tassilo Pilati" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 1:27 PM
Subject: AW: Tomcat with Apache/URLRewritting and mod_rewrite


> But SSL has nothing to do with my problem. The problem I have is that when
> using Tomcat in standalone mode URL rewritting works, however, running
> Tomcat in combination with Apache does not, because Apache does not hand
the
> request over to Tomcat. I think is is stange that there is nothing
mentioned
> about this in the tomcat user guide - section Setting Tomcat up with
Apache.
> I think so many people are using Tomcat with Apache that it is really a
very
> important issue ?! I mean session tracking is fundamental and it should
work
> using URL rewritting. I guess many people use cookies for session tracking
> instead of URL rewritting. Probably with cookies it should work, so maybe
> that`s why this issue hasn`t really come to the attention to the tomcat
> developers ? What do you think ?
>
Just to clarify, are you using jserv or mod_jk? And if you are using mod_jk,
are you using the ajpv13 protocl for connection? I'm using mod_jk and
ajpv13, and am session tracking using the HttpSesession class and it works
fine, as does parameter passing. I don't know too much about URL reqritting
though.

sam




Help with refreshing servletContext please.

2001-04-18 Thread Alex Colic

Hi,

I am implementing a method of caching lists that I want available to all my
web users. I place lists in the servletcontext via:

context.setAttribute("storeroomList",storerooms );

When the lists change I recall my cachelist method which gets the new data
and then put the list back into the session using the above line of code. I
thought that would replace the present list with the new one but
that is not occurring.

Is there another way I am supposed to be replacing attributes?

I thought about using removeAttribute followed by setAttribute but I am
worrying that someone might be accessing a page might need a list just as I
removing the list.

To test the problem I opened up a web page populated with my list and then
went to the database and changed some values in the list. My program then
caught these
changes, and repopulated the lists and then placed them in the context
again. I then opened up another window and the page was populated with the
old data.

Any help in this matter is appreciated.

Alex






Re: open source full-text-search-engines

2001-04-18 Thread Sebastian Schulz

hi,

thank you all for your suggestions!

bAs T.




RE: Servlet jar files

2001-04-18 Thread Rida Ligurs
Title: RE: Servlet jar files



What I 
mean is that our servlet uses property files to determine various 
configuration parameters (logging levels, connection pooling, etc).  If I 
put these property files in the WAR,  how do they edit 
them?

  -Original Message-From: Sam Newman 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 18, 2001 
  9:39 AMTo: [EMAIL PROTECTED]Subject: Re: 
  Servlet jar files
  You mean that you deploy servlets on customers 
  machines? I'm not sure how easy it is to access files outside of the WAR file. 
  I suspect you'd have to edit the tomcat.policy file to relax the security 
  sandbox that servlets run it. Byd efault I don't think you can access anything 
  outside the servlets web context. Alternatively you could deply the webapp 
  unpacked (e.g. not use the WAR file). As far as I can see the only benifits of 
  using a .WAR file is it looks a little neater, hides some of the internals and 
  makes deployment a little easier.
   
  sam
  
- Original Message - 
From: 
Rida 
Ligurs 
To: '[EMAIL PROTECTED]' 

Sent: Wednesday, April 18, 2001 1:56 
PM
Subject: RE: Servlet jar files

I was also thinking of using WAR files, but didn't know 
where to put my properties files.  I don't think I wan't them in the 
WAR because the customer will need to edit them.  Where should they 
go?


Re: ** Does Tomcat need Restart **

2001-04-18 Thread Meir Faraj

and for jsp how to do this ?
I've problem in reloading jsp (after few reloading)
even if I delete the created class from the work/ROOT/ dirrectory.
what I need to do ?
- Original Message -
From: "Scott Judd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 4:26 PM
Subject: Re: ** Does Tomcat need Restart **


> I'd like to offer two cents on this topic. I have seen both very
successful
> and very unsuccessful results when using servlet reloading on Tomcat.
First,
> make sure that the servlet classes reside in
/webapps/ROOT/WEB-INF/classes.
> Next, make sure that the web.xml file in the  webapps/ROOT/WEB-INF folder
> contains the appropriate entry to register the servlet. Finally, make sure
> that the reloadable attribute for the given context is set to "true" in
> /conf/server.xml.
>
> Tomcat has demonstrated consistent success in reloading servlets that I
> invoke directly from the CLI of my browser, following the above
> prescription. If I try to vary this formula (place servlets in other
> directories, package servlet classes together, invoke a servlet from
another
> servlet) servlet reloading seems to get hosed and I end up restarting
Tomcat
> in order to "see" the new class files.
>
> scott
>
> G:\tomcat\webapps\ROOT\WEB-INF
>
> From: "Benoit Jacquemont" <[EMAIL PROTECTED]>
> > This feature exists, it is defined by the reloadable parameter for the
> > Context. But it is an alpha version feature, so you always need to
restart
> > Tomcat.
> >
> > Benoit
> >
>
> > > Hi,
> > >
> > > Is there any option in tomcat CONFIGURATION by which, I can
> > > instruct Tomcat
> > > to restart automatically whenever a servlet gets modified (i.e. I
> > > re-compile the servlet).
> > >
> > > I am running Tomcat and Apache on Linux OS.
> > >
> > > Regards,
> > > Marathe
> >
>
>




apache virtual Hosting with tomcat

2001-04-18 Thread C.M. Rahman (jr.)

Hi, I am using unix apache to do virtual hosting. I have recently added
tomcat and trying to configure virtual hosting. Is there anybody on the list
setup a virtual site with tomcat successfully?

I am failing to load servlet from virtual site.

Thanks
&&
C.M. Rahman
Network Engineer
CCS Internet
13740 Research Blvd. Suite O-4
Austin, TX 78758
[EMAIL PROTECTED]




  1   2   3   >