Context isolation

2001-07-31 Thread Sankaranarayanan Ganapathy

Hi All,

I see that when you run tomcat in a out of procee mode you can do things
like context isolation (i.e running contexts in a different VMs) etc. Is it
possible to do such things when tomcat is run in stand alone mode?

Thanx
Ganesh



RE: please help

2001-07-31 Thread HGhoreishi

Hi  everybody 

In my servlet i have import statement as follow. 
 
  import com.oreilly.servlet.RemoteDaemonHttpServlet;

downloaded & unzipped the jar file from
http://www.servlets.com/con/index.html  in to
c:\hhgg
in my servlet i am using import statement as follow

import hhgh.classes.com.oreilly.servlet.RemoteDaemonHttpServlet;

I see class RemoteDaemonHttpServlet is placed in
c:\hhgg\classes\com\oreilly.servlet.
at compile time i am getting 
cannot resolve symbol class RemoteDaemonHttpServlet.
some thing is wrong with my import statement.
What ? i do not know . can someone please help?

   REGARDS hossein. 



Re: how to prevent recompiling JSP after Tomcat is restarted?

2001-07-31 Thread Jim Cheesman

At 01:00 AM 01/08/01, you wrote:
>is there any way to configure Tomcat so it doesn't recompile every JSP 
>page after the server has been restarted?
>
>if i haven't changed JSP it means that the compiled code is in work 
>directory - there's no reason to recompile that again, it just takes a 
>good amount of time...


Precompile using jspc, and then add to web.xml as if they were normal servlets?




--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  The world's full of 
apathy, but I don't care.





RE: Oracle JDBCRealm

2001-07-31 Thread Ignacio J. Ortega

The first problem :

You need to add your JDBC jars to the wrapper.properties file serach for
the place where the classpath of the JVM is constructed  and add your
jar there..


Second Problem:

Is known bug of 3.2.2 VErsion of JDBCRealm go for 3.2.3 AFAIK it
corrected in that version.., but has to do with a connection problem
when initializing JDBCRealm

hth 

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Joe Clem [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles 1 de agosto de 2001 8:06
> Para: [EMAIL PROTECTED]
> Asunto: Oracle JDBCRealm
> 
> 
> Here it goes.
> 
> Tomcat 3.2.2
> Tomcat running on NT using IIS
> I am using oracle8i on a unix server
> put classes111.zip in TOMCAT_HOME/lib and renamed to classes111.jar
> I have verified that this jdbc driver is compatible with the oracle8i
> server.
> 
> The following is in my server.xml file
>className="org.apache.tomcat.request.JDBCRealm"
>   debug="0"
>   driverName="oracle.jdbc.driver.OracleDriver"
>   connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
>   connectionName="doej"
>   connectionPassword="pass"
>   userTable="users" userNameCol="username"
> userCredCol="password"
>   userRoleTable="user_roles" roleNameCol="role_name" />
> 
> When I try to start my jakarta service I get a 
> ClassNotFoundError and it
> will not start.  I am assuming it cannot find the class.  I checked
> classes111.jar and the class "oracle.jdbc.driver.OracleDriver" does
> exist.
> 
> I then, for fun, ran tomcat from a dos window.  There I get a 
> different
> error: "MissingResourceException:  Can't find resource for bundle
> java.util.PropertyResourceBundle, key
> jdbcRealm.checkConnectionSQLException.
> 
> When I tried to access jsp files from a browser on a 
> different machine I
> could get to the tomcat example jsp's, so tomcat was indeed up and
> running.  The authentication stuff wasn't working.
> 
> Can anybody help?  I am very confused about the 2 different errors.  I
> am actually confused that I get any errors.
> 
> Any help would be appreciated.
> 
> Thanks.
> 
> Joe
> 
> 



Re: *.properties files

2001-07-31 Thread Jim Cheesman

At 10:56 PM 31/07/01, you wrote:

>Where does tomcat expect to find the *.properties files.  I've got a class
>that fails with it's ResourceBundle call to a properties file.  I've tried
>it in the WEB-INF and WEB-INF/classes directories for the specific web app.


In tomcat 4.0b6 on Win2000 I'm using properties files that are in a jar 
file in WEB-INF/lib.



Jim


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  The world's full of 
apathy, but I don't care.





Oracle JDBCRealm

2001-07-31 Thread Joe Clem

Here it goes.

Tomcat 3.2.2
Tomcat running on NT using IIS
I am using oracle8i on a unix server
put classes111.zip in TOMCAT_HOME/lib and renamed to classes111.jar
I have verified that this jdbc driver is compatible with the oracle8i
server.

The following is in my server.xml file


When I try to start my jakarta service I get a ClassNotFoundError and it
will not start.  I am assuming it cannot find the class.  I checked
classes111.jar and the class "oracle.jdbc.driver.OracleDriver" does
exist.

I then, for fun, ran tomcat from a dos window.  There I get a different
error: "MissingResourceException:  Can't find resource for bundle
java.util.PropertyResourceBundle, key
jdbcRealm.checkConnectionSQLException.

When I tried to access jsp files from a browser on a different machine I
could get to the tomcat example jsp's, so tomcat was indeed up and
running.  The authentication stuff wasn't working.

Can anybody help?  I am very confused about the 2 different errors.  I
am actually confused that I get any errors.

Any help would be appreciated.

Thanks.

Joe




build mod_jk.so on solaris

2001-07-31 Thread Robert Parker

Hi

Im trying to build  mod_jk.so on solaris. Ive dowloaded the source 3.2.3 and tried 
using the following command...

  $APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include 
-I/usr/java/include/solaris -c *.c ../jk/*.c

  with the appropriate directories etc. The source seems to compile, but the ../jk/*.c 
output seems to go to the current working directory. Hence at what appears to be the 
link stage, gcc complains that it can't find the *.o files because its looking for 
them in ../jk

  Can anyone explain to me where I can reconfig this behaviour?

  regrads

  Rob



Servlets

2001-07-31 Thread AN Sathe

I tried as suggested to run servlets fronm the test directory . I have
inserted the follwoing lines in web.xml of the test/web-inf/ directory

  

Courses


Courses

  

I tried http://localhost:8080/servlet/Courses I get a 405 error : Resource
not allowed. What does that mean and how can i continue

thanks

amit


The sub-directory in your url is controlled by the mapping in your
server.xml
file under the tomcat/conf directory.  Look in server.xml, near the bottom.
You must have a mapping (servlet context) setup for satheonline or Tomcat
won't be able to find the servlet.
If you have no mappings setup, i.e. you're using the default, just get rid
of
the satheonline in your url and it should find the servlet just fine.
Also, Tomcat comes with a "test" context that contains their
HelloWorldExample.  If that is the example you're trying to run, then just
replace satheonline part of the url with "test"



On Monday 30 July 2001 03:31 am, you wrote:
> hi
> I m using tomcat 3.1 but I am unable to run servlets in tomcat
>
> Is there any configuration problem.
>
> I have added the following line in my /tomcat/binary/conf/server.xml file
> and created a webapp "satheonline " under /tomcat/binary/webapps/
>
>  reloadable="true" >
> 
>
> Then I have created the following directory structure under sathonline:
>
> satheonline(contains all html files )--Meta-inf
>  --web-infclasses (contains
> servlet class files)
>
> Besides the web.xml file in web-inf contains the following
>
>  
> 
>helloworldexample
> 
> 
> HelloWorldExample
> 
> 
>
> The server starts fine. But when I type
> http://localhost:8080/satheonline/servlet/HelloWorldExample it gives a 404
> error
>
> what is missing ?
>
> thanks
>
> amit sathe

--
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




403: forbidden error

2001-07-31 Thread raghu

> Hello guys,
> I am running tomcat 3.2.2 with apache 1.3.11 on SuSE Linux 7.1,and
> communication between them is thro' mod_jk.so
> I compiled the src of tomcat and copied the mod_jk.so in my
/apache/libexec.
> I have also installed jetspeed and cocoon within my webapps.
> The problems i am facing are,
> 1.  When i access tomcat standalone , everything works fine.  But when i
> access cocoon or jetspeed(or for that matter examples, test of tomcat)
thru
> apache  http://localhost/cocoon , i get a 403: forbidden error.
> Forbidden
> You don't have permission to access /cocoon/ on this server.
>
> Apache/1.3.11 Server at stonebox Port 80
>
>
>
>
>   Also my mod_jk.log shows the following lines repeatedly,
>
> [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL
> par
> ameter
> [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL
> par
> ameter
> [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
>
>
> 2.  Is my mod_jk.so working properly?
> I have asked this questions already on the mailing list,  but i haven't
got
> any answers


"black holes are,
when GOD is dividing by zero" 




RE: installing Tomcat on Apache 1.3.20 /win2000

2001-07-31 Thread

> -Original Message-
> From: Niels Barlach [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 2:57 PM
> To: [EMAIL PROTECTED]
> Subject: SV: installing Tomcat on Apache 1.3.20 /win2000
> 
> 
> 
> 
> 
> 
> > Hi
> > I've installed Apache 1.3.20 on a win2000 pc and it works
> > fine. Now i want
> > Tomcat on it aswell. But the modules in Apache 1.3.20 (and
> > 2.0) are *.so
> > files and the mod_jk from Tomcat (win binaries)is a *.dll
> > file ?!?! I can't
> > find any howto's that describes installing Tomcat any other
> > way than with
> > the *.dll.
> > Is there anybody who knows how to install Tomcat on the
> > latest Apache on a
> > Win2000 ?? Or do i have to install an old Apache that uses 
> modules in
> > *.dll??
> >
> >
> > Niels Barlach
> >
> > [EMAIL PROTECTED]
> >
> 
> Don't worry about it, just drop in the mod_jk.dll into the
> %APACHE_HOME%\modules and follow the mod_jk-howto.html as it is.
> 
> I have the exact same setup on one of the machines and it
> works like a charm.
> 
> Regards,
> 
> 
> 
> Emir.
> 
> but when i do that it comes with an error msg saying "failed starting
> Apache" And something about it not being EAPI ?
> 
> -Niels
> 

OK, I have Apache 1.3.20 and Tomcat 3.2.1 on a stock Windows 2000 machine
(no SPs).

First thing you do is test them each individually to see if they're both
functional.  Start Apache, go to http://127.0.0.1/ and see if you get the
Apache welcome page.  Stop Apache.  Now start-up Tomcat, go to
http://127.0.0.1:8080/ and see if you get the Tomcat welcome page.  Stop
Tomcat.

By now, your Tomcat start-up would have created a "mod_jk.conf-auto" so all
you do is include it in your Apache's httpd.conf
(%APACHE_HOME%\conf\httpd.conf).  Simply add the following line (no quotes):
"include %TOMCAT_HOME%/conf/mod_jk.conf-auto".  Caveats:

1. The word "include" must be lowercase (don't ask why, it just doesn't work
if you capitalise it)
2. Replace %TOMCAT_HOME% with full path, e.g.
"D:/Jakarta/jakarta-tomcat-3.2.1/"
3. Yes, these are *forward* slashes (/), not the backslashes (\) as is
common on Windows

When you're done with this and it works fine, let me know and I'll tell you
how to further ease your life with a few automations for startup/shutdown.
Until then

Regards,



Emir.


DISCLAIMER: The content of the preceding message is exclusively
the personal opinion of the author, i.e. myself. Under no
circumstances should the content be attributed to my employer.



RE: How to increase HTTP timeout?

2001-07-31 Thread Andrew Jarman

Sorry, I should have been more clear. 

I am not having problem with my *session* timing out, I am having problems
with the actual connection timing out.

Here's the scenario:

1.  Client does a POST, sending in an XML document (using the MSXML3 DOM on
a MS client).
2.  Server parses the XML, writes some data to a database, then calls an
Oracle Report server to generate a PDF file based on the information.  
3.  The thread waits for the report to be completed, then it retrieves the
PDF file and stores it on a NFS volume.
4.  The servlet thread then returns an XML response that contains a
reference to where the PDF file can be picked up.
5.  The client then retrieves the file using a HTTP GET method, going
through the normal Apache server, which can access the NFS volume.  

This architecture works fairly well, and most reports return fairly quickly
(30 - 120 sec).  Also, having the client retrieve the report using an HTTP
GET gets around a bunch of issues with the Acrobat reader and IE5 (did you
know that IE+Acrobat+SSL != good_experience?)

The problem is that a long running report can make step (3) wait for more
than 5 minutes, at which time TomCat gives up and closes the connection with
an error.  This means that any report that takes longer than 5 min will not
work.

I fully understand the deficiencies of this design, and while I don't like
it, it was possible to implement very quickly and in time for our next
production release.  We will further address the problem in a future build
when we have a few other infrastructure pieces in place, like an "inbox"
queue so users can see when reports have completed.

So, my question remains - how can I increase this timeout from 5 min to
something longer?

Regards,
Andrew


-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 5:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How to increase HTTP timeout?


You should be able to set this in your web.xml file, with the
 tag.

Take a look at the servlet spec, at
http://java.sun.com/products/servlet/download.html .


-- Bill K. 

> -Original Message-
> From: Andrew Jarman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 3:57 PM
> To: '[EMAIL PROTECTED]'
> Subject: How to increase HTTP timeout?
> 
> 
> 
> I'm using Tomcat 3.2.3, and I would like to increase the HTTP 
> timeout from 5
> min to something a bit longer.
>  
> I have an application that sends XML to the server, which generates a
> report.  Sometimes the server takes a long time to generate 
> the file, which
> results in an aborted report.  The XML requester on the 
> client has a 1 hour
> timeout, so I have no problem there right now.
>  
> I realize this isn't an ideal setup, but I need to deploy what I have
> working now, and fix the architecture later.  
>  
> How can I do this without hacking the source code, or is this 
> the only way.
>  
> BTW, I'm using the HTTP listener, not AJP12 or AJP13.  I have a load
> balancer that will direct servlet requests to my TomCat 
> servers, and static
> content to Apache servers.
>  
> Thanks,
> Andrew
> 
>  
>  Andrew Jarman, P.Eng, Internet Infrastructure Manager
>  Exceedia, Inc.
>direct tel:780.699.5803   tel:780.413.1521   fax:780.413.0474
>"Exceedia -- Track labor, equipment and materials more 
> efficiently." 
>   www.exceedia.com
> 



RE: How to configure a custom page for JSP 404 errors?

2001-07-31 Thread Gautam Sinha

Pierce Courtney wrote:

Thanks for your replies, but this simply does not work for me ..
.. .. ..
If anyone has actually gotten this to work on Tomcat 3.2.2,
Please let me know how you did it.

--
Since I needed to display a customized error page, and have it 
working for Tomcat 3.2.1, here are the steps:

Platform: Tomcat 3.2.1 on Windows 2000

1.Create a Java Server Page like below and
  place it in your web app context.
  Lets call it errorHandler.jsp.
  Lets put it in tomcat_home/webapps/myApp/errorHandler.jsp.

<%@ page language="java" %>
<%@ page isErrorPage="true" %>



This is a custom message



2. Add to your context specific web.xml the following
lines anywhere between the  and  tags.
(Not in tomcat_home/conf/web.xml).  If you do not have a
web.xml in your context, copy and paste the following code
in between  and  tags and create a 
tomcat_home/webapps/myApp/WEB-INF/web.xml, where your context
is called myApp.

  
  
404
/errorHandler.jsp
  

3. Restart tomcat. Type a non-existent URL using your context
(say http://localhost:8080/myApp/non-exist.jsp) which you are sure
results in an error code 404 File Not Found, and check that the custom
message appears instead.

Note: If you prefer, you may use a servlet instead of a JSP.  Make
sure you have the servlet defined and do not use the preceding "/"
in the  tag.  Use the servlet name instead of the JSP name.
Initially I implemented this using a servlet, but replaced it with a JSP.
I could not get this to work with plain html files.

You may also append the alternate form below if you want to replace
pages with errors resulting from servlet exceptions:

  
java.lang.Exception
/errorHandler.jsp
  

Hope that helps,

Gautam




Help with servlet context

2001-07-31 Thread Tia Haenni

This is a repost. Does anyone know how to do this? There used to be methods
for this in ServletContext (getServlets() and getServletNames()), but they
have been deprecated with no replacements.


I have a servlet which dispatches to other servlets in the same context
through a RequestDispatcher object. I want to provide some "guard-rails" by
checking if the class file for the receiving servlet exists in the context.
Any direction/advice is much appreciated. TIA
Tia




RE: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc bri dge on linux)

2001-07-31 Thread Tim O'Neil

At 04:02 AM 7/31/2001, you wrote:
>At 12:32 PM 31/07/01, you wrote:
>> >  - text/x-vcard
>
>
>What, no vcards??? I used to be able to waste hours tracking down and 
>deleting the little buggers from my hard drive! Now what am I going to do 
>on a Friday afternoon... after defrag, anti-virus, cleanup etc.

Hey, those vcards things I actually find useful. If a guy or
gal whose info I want to put into my palm V has one of those,
I can just drag it onto the latest palm desk top and it will
get loaded into the palm on the next sync. Very handy imo.
Would never use them for Outlook though, since I never use
Outlook, or Virus Construction Kit v... what are they up to,
"2000" or something? That's a lot of virii...





Can't create bean

2001-07-31 Thread Michael Burke

I modified the NumberGuessBean example put my jsp page can't create the modified bean 
now any suggestions would be appreciated.
The modified  jsp is:

<%@ page import = "num.NumberGuessBean" %>





Number Guess



<% if (numguess.getSuccess()) { %>

  Congratulations!  You got it.
  And after just <%= numguess.getNumGuesses() %> tries.

  <% numguess.reset(); %>

  Care to try again?

<% } else if (numguess.getNumGuesses() == 0) { %>

  Welcome to the Number Guess game.

  Play with default limits ( a number between 0 and 100)
  or enter upper and lower limits.
  
  
  Play with defaults?: Yes
  No
   <\form>
   
   <%  if (numguess.getRadio().equals("no")) { %>
   
   
   Enter upper limit:
   Enter lower limit:
   <\form>
   
   <% numguess.reset(); %>
   
   <% } %>
   
  
  What's your guess? 
  
  

<% } else { %>

  Good guess, but nope.  Try <%= numguess.getHint() %>.

  You have made <%= numguess.getNumGuesses() %> guesses.

  I'm thinking of a number between  and .

  
  What's your guess? 
  
  

<% } %>






The modified bean which compiles cleanly is:
/*
 * 
 *
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 1999 The Apache Software Foundation.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *notice, this list of conditions and the following disclaimer in
 *the documentation and/or other materials provided with the
 *distribution.
 *
 * 3. The end-user documentation included with the redistribution, if
 *any, must include the following acknowlegement:
 *   "This product includes software developed by the
 *Apache Software Foundation (http://www.apache.org/)."
 *Alternately, this acknowlegement may appear in the software itself,
 *if and wherever such third-party acknowlegements normally appear.
 *
 * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
 *Foundation" must not be used to endorse or promote products derived
 *from this software without prior written permission. For written
 *permission, please contact [EMAIL PROTECTED]
 *
 * 5. Products derived from this software may not be called "Apache"
 *nor may "Apache" appear in their names without prior written
 *permission of the Apache Group.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * 
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * .
 *
 */

/*
 * Originally written by Jason Hunter, http://www.servlets.com.
 */

package num;

import java.util.*;

public class NumberGuessBean {

  int answer;
  boolean success;
  String hint;
  int numGuesses;
 String radiochoice;
 int lowerLimit=0;
 int upperLimit=100;
 String error;

  public NumberGuessBean() {
reset();
  }

  public void setGuess(String guess) {
numGuesses++;

int g;
try {
  g = Integer.parseInt(guess);
}
catch (NumberFormatException e) {
  g = -1;
}

if (g == answer) {
  success = true;
}
else if (g == -1) {
  hint = "a number next time";
}
else if (g < answer) {
  hint = "higher";
}
else if (g > answer) {
  hint = "lower";
}
  }

public void setRadio(String s) {
 radiochoice=s;
}

public String getRadio() {
 return radiochoice;
}

public void setLowerLimit( int lowerLimit) {
 this.lowerLimit=lowerLimit;
}

public int getLowerLimit() {
 return lowerLimit;
}

public void setUpperLimit(int upperLimit) {
 this.upperLimit=upperLimit;
}

public int getUpperLimit() {
 return upperLimit;
}

  public boolean getSuccess() {
return success;
  }

  public String getHint() {
return "" + hint;
  }

public String getErr

Re: JEFF JOCKEL FROM RATIONAL SOFTWARE: TOMCAT SERVICE WILL NOT STARTON NT

2001-07-31 Thread W. A. Sanchez

check the log files. also check if the required libraries/jar files exist
 
--

On Tue, 31 Jul 2001 13:37:43  
 Jockel, Jeff wrote:
>My name is Jeff Jockel and I am a tech rep with Rational Software.
>We have a product called Requsite Pro which uses TOMCAT 3.2.1 for its Web
>add in.
>
>I tried installing this application on a client's NT SP6 box and upon trying
>to start the Jakarta NT service (called RqTomcat) I received an NT 2140
>error, could not start service.
>
>The wrapper.properties file contains the following two mappings:
>
>wrapper.tomcat_home=c:\progra~1\rational\jakart~1
>
>
>wrapper.java_home=C:\progra~1\rational\common\java\jre1.2.2
>
>
>We think that the reason we are getting this error is that the cleints NT
>box's NTFS file system does not create short file names and these mappings
>are short names. (The client has purposefully set this registry setting so
>short names cannot be read...for security purposes)
>
>   We tried to simple change the 2 mappings to long form, however we
>still received the error. Can tomcat only read short form? If so...can you
>see anyway to fix this problem?
>
>ps: we HAVE been able to run the sevice as an executible and it works just
>fine
>
>please let me know if you have any further questions
>thank you  for your help
>
>Jeff Jockel
>703-288-7722
>
>
>


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/



Java Beans and JSP Question

2001-07-31 Thread Shawn
Dear Dan,

I believe I'm familiar with the problem you're having and think it's related
to Forte.   In my case, either Tomcat or Forte complained about methods that
were clearly there.  What I've had to do is take my bean and put it in two
places.  Within Explorer in Forte which shows my filesystems I have
c:\tomcat\webapps\myApp\WEB-INF\classes\com\koyuru.  I have also had to
directly mount com\koyuru as a filesystem within Forte as well.  If I modify
a bean in one, I must copy it to the other, otherwise either Tomcat or Forte
will complain.

In my case I was using examples from the jspBook and tried to modify them
but Forte claimed my new method wasn't there. It didn't seem so related to
overloading as much as the filesystem.  That shut it up though.

Shawn


I have a standard java bean.  The different thing about it is that I
usually have two overloaded set methods per attribute.  For example,

public class MyBean {
private int a;

public setA (int a) throws Exception {
if (a > 100) throw new Exception ("Must be less than 100");
}

public setA (String a) throws Exception {
try {
setA(Integer.parseInt(a));
} catch (NumberFormat Exception exception) {
throw new Exception ("Format incorrect.");
}
}

//I usually have one getA
public int getA() {
return a;
}
}

Now when I use this bean in a JSP that is stored in the request scope,
at times the compiler will complain that it cannot find a get method for
"A".  Even though one get method for that particular attribute is
clearly there.

Some added information, I use Forte Community Edition 2, and Tomcat.
Forte's compiler complains about one attribute while Tomcat complains
about another completely different attribute it cannot find the get
method for.  Which makes me itch with anger.  The note is my example
above is very simple. I used it just to explain my problem.  My actual
bean has about 17 attributes all with 2 setter methods each and 1 get
method each.

Does anyone know how to resolve this issue?

Thanks for your help.
Dan Hinojosa


RE: AW: How to "alias out" port 8080?

2001-07-31 Thread Bryan Rood

I agree!

-Original Message-
From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 5:06 PM
To: [EMAIL PROTECTED]
Subject: Re: AW: How to "alias out" port 8080?


Nikolic Branislav at [EMAIL PROTECTED] wrote:

> UNSUBSCRIBE!!!

Definitely an idiot...

Pier



Re: AW: How to "alias out" port 8080?

2001-07-31 Thread Pier P. Fumagalli

Nikolic Branislav at [EMAIL PROTECTED] wrote:

> UNSUBSCRIBE!!!

Definitely an idiot...

Pier




RE: How to increase HTTP timeout?

2001-07-31 Thread William Kaufman

You should be able to set this in your web.xml file, with the
 tag.

Take a look at the servlet spec, at
http://java.sun.com/products/servlet/download.html .


-- Bill K. 

> -Original Message-
> From: Andrew Jarman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 3:57 PM
> To: '[EMAIL PROTECTED]'
> Subject: How to increase HTTP timeout?
> 
> 
> 
> I'm using Tomcat 3.2.3, and I would like to increase the HTTP 
> timeout from 5
> min to something a bit longer.
>  
> I have an application that sends XML to the server, which generates a
> report.  Sometimes the server takes a long time to generate 
> the file, which
> results in an aborted report.  The XML requester on the 
> client has a 1 hour
> timeout, so I have no problem there right now.
>  
> I realize this isn't an ideal setup, but I need to deploy what I have
> working now, and fix the architecture later.  
>  
> How can I do this without hacking the source code, or is this 
> the only way.
>  
> BTW, I'm using the HTTP listener, not AJP12 or AJP13.  I have a load
> balancer that will direct servlet requests to my TomCat 
> servers, and static
> content to Apache servers.
>  
> Thanks,
> Andrew
> 
>  
>  Andrew Jarman, P.Eng, Internet Infrastructure Manager
>  Exceedia, Inc.
>direct tel:780.699.5803   tel:780.413.1521   fax:780.413.0474
>"Exceedia -- Track labor, equipment and materials more 
> efficiently." 
>   www.exceedia.com
> 



RE: How to "alias out" port 8080?

2001-07-31 Thread Deacon Marcus

Couldn't you just filter this list out, SPAMMER ? dM

> -Original Message-
> From: Nikolic Branislav [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 01, 2001 1:05 AM
> To: [EMAIL PROTECTED]
> Subject: AW: How to "alias out" port 8080?
>
>
> UNSUBSCRIBE!!!
>
> -Ursprüngliche Nachricht-
> Von: Michael Wentzel [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 31. Juli 2001 21:57
> An: '[EMAIL PROTECTED]'
> Betreff: RE: How to "alias out" port 8080?
>
>
> > I have the similar question: What if we have Apache run on
> > port 80 and don't
> > want to config Apache to work with Tomcat? So can we have
> > both Apache and Tomcat
> > standalone run on port 80 so users don't need to type the
> > port number? Thanks.
>
> Nope.
>
> ---
> Michael Wentzel
> Software Developer
> Software As We Think - http://www.aswethink.com
>
>




Random SLOW response time

2001-07-31 Thread Brandon Cruz

I have a setup with Apache 1.3.x, tomcat 3.2.1, on some very random
occasions, the response times will be veeerrryyy slow.  So slow that it
takes almost two minutes before the pages will switch.  Does anyone know
what may be causing this, or has anyone had similar experience?  Any info
would be greatly appreciated!

Thanks!

Brandon Cruz




AW: How to "alias out" port 8080?

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprüngliche Nachricht-
Von: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 21:57
An: '[EMAIL PROTECTED]'
Betreff: RE: How to "alias out" port 8080?


> I have the similar question: What if we have Apache run on
> port 80 and don't
> want to config Apache to work with Tomcat? So can we have
> both Apache and Tomcat
> standalone run on port 80 so users don't need to type the
> port number? Thanks.

Nope.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com




AW: How to "alias out" port 8080?

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprungliche Nachricht-
Von: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 22:48
An: [EMAIL PROTECTED]
Betreff: Re: How to "alias out" port 8080?


Tim O'Neil at [EMAIL PROTECTED] wrote:

> At 12:48 PM 7/31/2001, you wrote:
>> I have the similar question: What if we have Apache run on port 80 and
don't
>> want to config Apache to work with Tomcat? So can we have both Apache and
>> Tomcat
>> standalone run on port 80 so users don't need to type the port number?
>> Thanks.
>
> Can't do that. You can't have both processes use the same
> port at the same time. You can write/find a proxy server/
> load balancer that will forward requests to the appropriate
> process however.

Unless you bind to two different IP addresses on the same machine.

Pier




AW: *.properties files

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprüngliche Nachricht-
Von: Jay Wright [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 22:57
An: '[EMAIL PROTECTED]'
Betreff: *.properties files



Where does tomcat expect to find the *.properties files.  I've got a class
that fails with it's ResourceBundle call to a properties file.  I've tried
it in the WEB-INF and WEB-INF/classes directories for the specific web app.


I have tomcat running as a standalone server on a solaris box.

Thanks-Jay




AW: How to "alias out" port 8080?

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprungliche Nachricht-
Von: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 23:02
An: [EMAIL PROTECTED]
Betreff: RE: How to "alias out" port 8080?


At 12:43 PM 7/31/2001, you wrote:

> No.  You can think of it as having two butlers trying to answer
the
>same door - it just doesn't work because they fight with each other to
>answer the door.  (Its not quite that straight forward, but you probably
get
>the idea)

Actually, it is that strait forward. Ports are locked once
claimed by a process. That's it.




AW: JkLogLevel

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprungliche Nachricht-
Von: Tsinwah Lee [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 23:04
An: [EMAIL PROTECTED]
Betreff: JkLogLevel


Hi, I read the mod_jk-howto documentation, it says "Possible log levels
are debug, info, error and emerg". But I saw the Apache httpd.conf file
of our system,  the JkLogLevel is "warn". So is "warn" a possible log
level too? Thanks in advance.

T.




AW: How to ensure Tomcat to load multiple instances of a servlet, to handle simultaneously multiple request ?

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprüngliche Nachricht-
Von: Greg Trasuk [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 23:08
An: [EMAIL PROTECTED]
Betreff: RE: How to ensure Tomcat to load multiple instances of a
servlet, to handle simultaneously multiple request ?


How are you handling the database connections?  JDBC drivers are required
to be re-entrant, but not necessarily concurrent.  What this means is that
if you have multiple threads trying to use the same Connection object, then
a query from thread B will wait until the query from Thread A completes.
You need to either open a new connection for each request (which can be very
slow) or use a connection pool.

To test whether this is problem, comment out the database accesses in your
servlet and simply place a Thread.sleep(1) in the service method, then
see if you still get this serialized behaviour.

Cheers,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

-Original Message-
From: grégoire nogier [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 5:41 AM
To: [EMAIL PROTECTED]
Subject: How to ensure Tomcat to load multiple instances of a servlet,
to handle simultaneously multiple request ?


How to ensure Tomcat to load multiple instances of a servlet, to handle
simultaneously multiple request ?

I'v developed a servlet application in tomcat/apache, on NT.
I tried a very simple load test :
   - 1) from a first pc, I send a request which neeed a very long database
access (3 minutes),
   - 2) from another pc, I send a very simple request (which should be
traited immediately)
   => the result is that the second request wait 3 minutes before receiving
its response. The requests are served the one after the other.

I'm not sure to understand how tomcat works, but I imagined that it should
be possible to load multiple servlet process, to handle 20 request
simultaneously.
It seems not.

- should I duplicate the servlet in the file web.xml ?
- should I duplicate the servlet context ?
- should I define more workers ? (how to ?)
- should I use some other connector, or RequestInterceptor ?

Here is a short description of the configuration used :
- tomcat-v3.2.2, apache-v1.3
- the Servlet implements SinglethreadModel,
- the file : mod_jk.conf mount the servlet-path with the ajp13 worker,
- the file : server.xml defines a PoolTcpConnector Ajp13ConnectionHandler
(parameters are: max_threads=50, max_spare_threads=25,
min_spare_threads=10),
- the file : workers.properties defines two workers
(worker.list=ajp13,loadbalancer)
- the file : web.xml defines two servlet (only one seems to be used...)

I need some help !

Gregoire Nogier





AW: How to alias 8080

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprüngliche Nachricht-
Von: Matt Barre [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 01. August 2001 00:12
An: [EMAIL PROTECTED]
Betreff: How to alias 8080


I could be wrong on this, but I think you could use the Listen and Bind
directives in
apache's httpd.conf to bind it to individual ip addresses, and in tomcat 4
you can use the
address parameter in the service decriptor. Basically they would be on the
same port, but
different ip addresses.

Matt




AW: redux -- Tomcat 3.2 & apache, 2 boxes, mod_jk

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprungliche Nachricht-
Von: Maureen Fisher [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 23:20
An: [EMAIL PROTECTED]
Betreff: redux -- Tomcat 3.2 & apache, 2 boxes, mod_jk


I've been going through the archives and I am still stuck. While I can do
this using mod_jserv, I have recently set up a box with ajpv13 and mod_jk. I
have several contexts on the same machine that are mounted and operating.
However I have been asked to mount a context from another machine.

I added the info to the workers.properties like so
# CyberTower
worker.cybert12.port=8507
worker.cybert12.host= (I really have a valid IP there) ;-)
worker.cybert12.type=ajp12


and then in my httpd.conf
# CyberTower test
JkMount /admin/* cybert12

However I get a 500 error.

Ideas? Suggestions? URL's? I can't get into cvs.apache.org to get latest
docs.

Maureen Fisher, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Treat people as if they were what they ought to be and you help them
to become what they are capable of being.
--Johann Wolfgang von Goethe




AW: How to "alias out" port 8080?

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprungliche Nachricht-
Von: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 23:31
An: [EMAIL PROTECTED]
Betreff: Re: How to "alias out" port 8080?


At 01:47 PM 7/31/2001, Pier P. Fumagalli wrote:
>Unless you bind to two different IP addresses on the same machine.

If he has a multi homed machine, which was not mentioned and
is effectively two different machines anyway, as far as IP is
concerned.




AW: SAX 2.0, sealing, Tomcat 3.2.3

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprungliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 23:35
An: '[EMAIL PROTECTED]'
Betreff: RE: SAX 2.0, sealing, Tomcat 3.2.3


On Tue, 31 Jul 2001, Bryan Rood wrote:

> Pier,
> 
> I am interested in using a 4.0.something tomcat build.
> 
> Are there official sources at apache that can confirm the "VERY_stable"
> declaration that you have made?
> My company won't let me use anything but a stable production release.
> Is the 4.0 the same as prod quality?
> thanks so much,
> 

I'm one of the primary authors of Tomcat 4.0, so I've got some thoughts
about this (and undoubtedly some bias as well :-).

The only reason that 4.0 has not been declared final yet is that the
underlying specifications it is based on (Servlet 2.3 and JSP 1.2) are not
yet final.  In fact, small changes and clarifications are still going on,
and it would be pretty silly to declare 4.0 "final" and then have to go
change it because the specs changed underneath.

There will shortly be a "beta 7" release, to pick up the most recent
specification-related changes.  It should be considered a "release
candidate", and development efforts between now and release day will be
focused on bug fixes (at the moment, there are very few bugs recorded
against Tomcat 4 in the bug tracking system at
) and improved documentation.

Craig McClanahan



> Bryan
> 
> -Original Message-
> From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 9:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: SAX 2.0, sealing, Tomcat 3.2.3
> 
> 
> Andrew Cooke at [EMAIL PROTECTED] wrote:
> >
> > I don't want to use 4.0 as it's beta.
> 
> Don't worry about being a beta... It's stable, _VERY_ stable.
> 
> Pier
> 





AW: Java Beans and JSP Question.

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprungliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 23:52
An: [EMAIL PROTECTED]
Betreff: Re: Java Beans and JSP Question.


On Tue, 31 Jul 2001, Dan Hinojosa wrote:

> I have a standard java bean.  The different thing about it is that I
> usually have two overloaded set methods per attribute.

Doing this violates the design patterns for getters and setters listed in
the JavaBeans specification.  Therefore, the JDK's introspection logic
will not recognize this as a property.

You need to either have only one setter (with a type that matches the
corresponding getter), or you must define a BeanInfo class that
specifically lists the method names and parameter types of your getter and
setter methods.

Craig McClanahan




AW: Tomcat-Solaris-JSP doesn't work.

2001-07-31 Thread Nikolic Branislav

UNSUBSCRIBE!!!

-Ursprüngliche Nachricht-
Von: Bokin, Vadim D. [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 23:53
An: '[EMAIL PROTECTED]'
Betreff: Tomcat-Solaris-JSP doesn't work.




Here's my system:  Solaris 8, Tomcat 3.2.3.  Trying to get a simple JSP page
to work (tomcat examples, or my own).  What happens is that the browser
never moves on, but in the tomcat directory  $TOMCAT_HOME/work, there
generates a HUGE java file, named "_0002F...name of theJSPfile.dot.java"
that contains normal headings and then the FIRST line of my JSP file
repeated OVER AND OVER in an out.println("First line of my code") statement.
And this file will get as big as it's allowed by HD space (in gigabites).
If I stop tomcat, it stops filling up.

Problem 1) How do I get JSP pages to work
 2) How to prevent this *.java file from getting bloated.  The 2
are probably related.

>From the tomcat examples page, the "Servlets" work, but "JSP" don't.  I
have
tools.jar, and all the other *.jar files in the classpath. I've also started
the Apache server before and after starting tomcat.  I'm out of ideas.

Thanks for any help!




how to prevent recompiling JSP after Tomcat is restarted?

2001-07-31 Thread Andrei Rusakou

is there any way to configure Tomcat so it doesn't recompile every JSP page 
after the server has been restarted?

if i haven't changed JSP it means that the compiled code is in work 
directory - there's no reason to recompile that again, it just takes a good 
amount of time...

andrei

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




How to increase HTTP timeout?

2001-07-31 Thread Andrew Jarman


I'm using Tomcat 3.2.3, and I would like to increase the HTTP timeout from 5
min to something a bit longer.
 
I have an application that sends XML to the server, which generates a
report.  Sometimes the server takes a long time to generate the file, which
results in an aborted report.  The XML requester on the client has a 1 hour
timeout, so I have no problem there right now.
 
I realize this isn't an ideal setup, but I need to deploy what I have
working now, and fix the architecture later.  
 
How can I do this without hacking the source code, or is this the only way.
 
BTW, I'm using the HTTP listener, not AJP12 or AJP13.  I have a load
balancer that will direct servlet requests to my TomCat servers, and static
content to Apache servers.
 
Thanks,
Andrew

 
 Andrew Jarman, P.Eng, Internet Infrastructure Manager
 Exceedia, Inc.
   direct tel:780.699.5803   tel:780.413.1521   fax:780.413.0474
   "Exceedia -- Track labor, equipment and materials more efficiently." 
  www.exceedia.com



Tomcat-IIS

2001-07-31 Thread Marko Viitanen

Hi, 
I followed the instructions in the tomcat-iis how-to file. I have now
started over about 10 times, and I just can't get it to work. 
I am running Windows 2000 professional, JDK 1.3.1, Tomcat 3.2.3 
Here is my registry:

 <<...OLE_Obj...>> 

Here is the isapi filter location

 <<...OLE_Obj...>> 


Here is the jakarta virtual path  properties:

 <<...OLE_Obj...>> 




Here is the filter properties:

 <<...OLE_Obj...>> 




I think I have done everything as it says in the how-to. However I just
can't get it to work. Can you see something obvious that I am doing wrong? I
have tried the registry key values with and without surrounding parentheses.
Neither works.

I don't even get an isapi.log log.

Web server log is like this:

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2001-07-31 22:39:39
#Fields: time c-ip cs-method cs-uri-stem sc-status 
22:39:39 127.0.0.1 GET /examples/servlet/HelloWorldExample 404


THank you for your help


Marko







Re: Tomcat 4.05b - recompile required for SSL?

2001-07-31 Thread Lloyd Llewellyn



> It is "drop-in" in the sense that any app that works under b5 should work
> unchanged under b6.  However, I would never ever ever ever :-) try to
> install Tomcat or any other package "on top of" an existing directory
> containing a different version.  That's just asking for weird and wild
> bugs caused by directory structure reorganizations between versions.
> 
> Do yourself a favor and install b6 into a new directory, and copy your
> webapps (and server.xml file, if needed) over.

Generally good advice, but considering that this is an "upgrade" from
version 4.0b5 to 4.0b6, it's not unreasonable to consider that
architectural elements like directory structure have remained the
same...  Quite possible that nothing but the class files have been
changed.






Java Beans and JSP Question.

2001-07-31 Thread Shawn

Dear Dan,

I believe I'm familiar with the problem you're having and think it's related to Forte. 
  In my case, either Tomcat or Forte complained about methods that were clearly there. 
 What I've had to do is take my bean and put it in two places.  Within Explorer in 
Forte which shows my filesystems I have 
c:\tomcat\webapps\myApp\WEB-INF\classes\com\koyuru.  I have also had to directly mount 
com\koyuru as a filesystem within Forte as well.  If I modify a bean in one, I must 
copy it to the other, otherwise either Tomcat or Forte will complain.

In my case I was using examples from the jspBook and tried to modify them but Forte 
claimed my new method wasn't there. It didn't seem so related to overloading as much 
as the filesystem.  That shut it up though.

Shawn


I have a standard java bean.  The different thing about it is that I
usually have two overloaded set methods per attribute.  For example,

public class MyBean {
private int a;

public setA (int a) throws Exception {
if (a > 100) throw new Exception ("Must be less than 100");
}

public setA (String a) throws Exception {
try {
setA(Integer.parseInt(a));
} catch (NumberFormat Exception exception) {
throw new Exception ("Format incorrect.");
}
}

//I usually have one getA
public int getA() {
return a;
}
}

Now when I use this bean in a JSP that is stored in the request scope,
at times the compiler will complain that it cannot find a get method for
"A".  Even though one get method for that particular attribute is
clearly there.

Some added information, I use Forte Community Edition 2, and Tomcat.
Forte's compiler complains about one attribute while Tomcat complains
about another completely different attribute it cannot find the get
method for.  Which makes me itch with anger.  The note is my example
above is very simple. I used it just to explain my problem.  My actual
bean has about 17 attributes all with 2 setter methods each and 1 get
method each.

Does anyone know how to resolve this issue?

Thanks for your help.
Dan Hinojosa




Tomcat-Solaris-JSP doesn't work.

2001-07-31 Thread Bokin, Vadim D.



Here's my system:  Solaris 8, Tomcat 3.2.3.  Trying to get a simple JSP page
to work (tomcat examples, or my own).  What happens is that the browser
never moves on, but in the tomcat directory  $TOMCAT_HOME/work, there
generates a HUGE java file, named "_0002F...name of theJSPfile.dot.java"
that contains normal headings and then the FIRST line of my JSP file
repeated OVER AND OVER in an out.println("First line of my code") statement.
And this file will get as big as it's allowed by HD space (in gigabites).
If I stop tomcat, it stops filling up.  
 
Problem 1) How do I get JSP pages to work
 2) How to prevent this *.java file from getting bloated.  The 2
are probably related.
 
>From the tomcat examples page, the "Servlets" work, but "JSP" don't.  I have
tools.jar, and all the other *.jar files in the classpath. I've also started
the Apache server before and after starting tomcat.  I'm out of ideas. 
 
Thanks for any help!



Re: Java Beans and JSP Question.

2001-07-31 Thread Craig R. McClanahan

On Tue, 31 Jul 2001, Dan Hinojosa wrote:

> I have a standard java bean.  The different thing about it is that I
> usually have two overloaded set methods per attribute.

Doing this violates the design patterns for getters and setters listed in
the JavaBeans specification.  Therefore, the JDK's introspection logic
will not recognize this as a property.

You need to either have only one setter (with a type that matches the
corresponding getter), or you must define a BeanInfo class that
specifically lists the method names and parameter types of your getter and
setter methods.

Craig McClanahan




Tomcat-Solaris-JSP doesn't work.

2001-07-31 Thread Bokin, Vadim D.

Here's my system:  Solaris 8, Tomcat 3.2.3.  Trying to get a simple JSP page
to work (tomcat examples, or my own).  What happens is that the browser
never moves on, but in the tomcat directory  $TOMCAT_HOME/work, there
generates a HUGE java file, named "_0002F...name of theJSPfile.dot.java"
that contains normal headings and then the FIRST line of my JSP file
repeated OVER AND OVER in an out.println("First line of my code") statement.
And this file will get as big as it's allowed by HD space (in gigabites).
If I stop tomcat, it stops filling up.  
 
Problem 1) How do I get JSP pages to work
 2) How to prevent this *.java file from getting bloated.  The 2
are probably related.
 
>From the tomcat examples page, the "Servlets" work, but "JSP" don't.  I have
tools.jar, and all the other *.jar files in the classpath. I've also started
the Apache server before and after starting tomcat.  I'm out of ideas. 
 
Thanks for any help!



RE: SAX 2.0, sealing, Tomcat 3.2.3

2001-07-31 Thread Craig R. McClanahan

On Tue, 31 Jul 2001, Bryan Rood wrote:

> Pier,
> 
> I am interested in using a 4.0.something tomcat build.
> 
> Are there official sources at apache that can confirm the "VERY_stable"
> declaration that you have made?
> My company won't let me use anything but a stable production release.
> Is the 4.0 the same as prod quality?
> thanks so much,
> 

I'm one of the primary authors of Tomcat 4.0, so I've got some thoughts
about this (and undoubtedly some bias as well :-).

The only reason that 4.0 has not been declared final yet is that the
underlying specifications it is based on (Servlet 2.3 and JSP 1.2) are not
yet final.  In fact, small changes and clarifications are still going on,
and it would be pretty silly to declare 4.0 "final" and then have to go
change it because the specs changed underneath.

There will shortly be a "beta 7" release, to pick up the most recent
specification-related changes.  It should be considered a "release
candidate", and development efforts between now and release day will be
focused on bug fixes (at the moment, there are very few bugs recorded
against Tomcat 4 in the bug tracking system at
) and improved documentation.

Craig McClanahan



> Bryan
> 
> -Original Message-
> From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 9:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: SAX 2.0, sealing, Tomcat 3.2.3
> 
> 
> Andrew Cooke at [EMAIL PROTECTED] wrote:
> >
> > I don't want to use 4.0 as it's beta.
> 
> Don't worry about being a beta... It's stable, _VERY_ stable.
> 
> Pier
> 





Re: How to "alias out" port 8080?

2001-07-31 Thread Tim O'Neil

At 01:47 PM 7/31/2001, Pier P. Fumagalli wrote:
>Unless you bind to two different IP addresses on the same machine.

If he has a multi homed machine, which was not mentioned and
is effectively two different machines anyway, as far as IP is
concerned.




redux -- Tomcat 3.2 & apache, 2 boxes, mod_jk

2001-07-31 Thread Maureen Fisher

I've been going through the archives and I am still stuck. While I can do this using 
mod_jserv, I have recently set up a box with ajpv13 and mod_jk. I have several 
contexts on the same machine that are mounted and operating.
However I have been asked to mount a context from another machine. 

I added the info to the workers.properties like so
# CyberTower
worker.cybert12.port=8507
worker.cybert12.host= (I really have a valid IP there) ;-)
worker.cybert12.type=ajp12


and then in my httpd.conf
# CyberTower test
JkMount /admin/* cybert12

However I get a 500 error.

Ideas? Suggestions? URL's? I can't get into cvs.apache.org to get latest docs.

Maureen Fisher, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Treat people as if they were what they ought to be and you help them 
to become what they are capable of being.
--Johann Wolfgang von Goethe




How to alias 8080

2001-07-31 Thread Matt Barre

I could be wrong on this, but I think you could use the Listen and Bind directives in
apache's httpd.conf to bind it to individual ip addresses, and in tomcat 4 you can use 
the
address parameter in the service decriptor. Basically they would be on the same port, 
but
different ip addresses.

Matt




RE: How to ensure Tomcat to load multiple instances of a servlet, to handle simultaneously multiple request ?

2001-07-31 Thread Greg Trasuk

How are you handling the database connections?  JDBC drivers are required
to be re-entrant, but not necessarily concurrent.  What this means is that
if you have multiple threads trying to use the same Connection object, then
a query from thread B will wait until the query from Thread A completes.
You need to either open a new connection for each request (which can be very
slow) or use a connection pool.

To test whether this is problem, comment out the database accesses in your
servlet and simply place a Thread.sleep(1) in the service method, then
see if you still get this serialized behaviour.

Cheers,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

-Original Message-
From: grégoire nogier [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 5:41 AM
To: [EMAIL PROTECTED]
Subject: How to ensure Tomcat to load multiple instances of a servlet,
to handle simultaneously multiple request ?


How to ensure Tomcat to load multiple instances of a servlet, to handle
simultaneously multiple request ?

I'v developed a servlet application in tomcat/apache, on NT.
I tried a very simple load test :
   - 1) from a first pc, I send a request which neeed a very long database
access (3 minutes),
   - 2) from another pc, I send a very simple request (which should be
traited immediately)
   => the result is that the second request wait 3 minutes before receiving
its response. The requests are served the one after the other.

I'm not sure to understand how tomcat works, but I imagined that it should
be possible to load multiple servlet process, to handle 20 request
simultaneously.
It seems not.

- should I duplicate the servlet in the file web.xml ?
- should I duplicate the servlet context ?
- should I define more workers ? (how to ?)
- should I use some other connector, or RequestInterceptor ?

Here is a short description of the configuration used :
- tomcat-v3.2.2, apache-v1.3
- the Servlet implements SinglethreadModel,
- the file : mod_jk.conf mount the servlet-path with the ajp13 worker,
- the file : server.xml defines a PoolTcpConnector Ajp13ConnectionHandler
(parameters are: max_threads=50, max_spare_threads=25,
min_spare_threads=10),
- the file : workers.properties defines two workers
(worker.list=ajp13,loadbalancer)
- the file : web.xml defines two servlet (only one seems to be used...)

I need some help !

Gregoire Nogier





JkLogLevel

2001-07-31 Thread Tsinwah Lee

Hi, I read the mod_jk-howto documentation, it says "Possible log levels
are debug, info, error and emerg". But I saw the Apache httpd.conf file
of our system,  the JkLogLevel is "warn". So is "warn" a possible log
level too? Thanks in advance.

T.




RE: How to "alias out" port 8080?

2001-07-31 Thread Tim O'Neil

At 12:43 PM 7/31/2001, you wrote:

> No.  You can think of it as having two butlers trying to answer the
>same door - it just doesn't work because they fight with each other to
>answer the door.  (Its not quite that straight forward, but you probably get
>the idea)

Actually, it is that strait forward. Ports are locked once
claimed by a process. That's it.




*.properties files

2001-07-31 Thread Jay Wright


Where does tomcat expect to find the *.properties files.  I've got a class
that fails with it's ResourceBundle call to a properties file.  I've tried
it in the WEB-INF and WEB-INF/classes directories for the specific web app.


I have tomcat running as a standalone server on a solaris box.  

Thanks-Jay



Re: How to "alias out" port 8080?

2001-07-31 Thread Pier P. Fumagalli

Tim O'Neil at [EMAIL PROTECTED] wrote:

> At 12:48 PM 7/31/2001, you wrote:
>> I have the similar question: What if we have Apache run on port 80 and don't
>> want to config Apache to work with Tomcat? So can we have both Apache and
>> Tomcat
>> standalone run on port 80 so users don't need to type the port number?
>> Thanks.
> 
> Can't do that. You can't have both processes use the same
> port at the same time. You can write/find a proxy server/
> load balancer that will forward requests to the appropriate
> process however.

Unless you bind to two different IP addresses on the same machine.

Pier




RE: How to "alias out" port 8080?

2001-07-31 Thread Michael Wentzel

> I have the similar question: What if we have Apache run on 
> port 80 and don't
> want to config Apache to work with Tomcat? So can we have 
> both Apache and Tomcat
> standalone run on port 80 so users don't need to type the 
> port number? Thanks.

Nope.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: How to "alias out" port 8080?

2001-07-31 Thread Pete Freitag

You have to configure Apache to work with tomcat if you want them both to
cooperate.


Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM
ColdFusion Developers Resources
http://www.cfdev.com/

-Original Message-
From: Tsinwah Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 3:49 PM
To: [EMAIL PROTECTED]
Subject: Re: How to "alias out" port 8080?


I have the similar question: What if we have Apache run on port 80 and don't
want to config Apache to work with Tomcat? So can we have both Apache and
Tomcat
standalone run on port 80 so users don't need to type the port number?
Thanks.

T.

Barry Draper wrote:

> Here's one way to do it.
> If you don't need to use port 80 (the default port for an HTTP server)
> for another HTTP (aka web) server, change the port number in the file
> TOMCAT_HOME/conf/server.xml from 8080 to 80.
> Here's the snippet of code where I changed this on my Tomcat 3.2.1
> installation.
> Note that I changed mine to 8081 to avoid conflict with another Tomcat
> server
> listening on 8080.
>
>  
>
> 
> 
> 
> value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
>  value="8081"/>
> 
>
>Note that if you are running a regular HTTP server like Apache or IIS,
>it would listen by default on port 80. If you run Tomcat with Apache,
>Tomcat listens by default on 8007 and Apache (listening by default on
80)
>dispatches/routes servlet requests to Tomcat.
>
> Barry Draper
> IBM Informix
> Oakland, CA
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: Ali Manji [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 31, 2001 11:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: How to "alias out" port 8080?
> >
> >
> >
> > Hi,
> >
> > I am trying out a Tomcat 4.0 beta and was wondering if there
> > is a way to
> > "alias out" the port.  So for instance, I would like to enter:
> >
> > http://myorg.org/stuff instead of
> >
> > http://myorg.org:8080/stuff
> >
> > Is this possible?
> >
> > Thanks in advance for any help!
> >
> >
> > *
> > Ali M. Manji
> > *
> >
> >
> > _
> > Get your FREE download of MSN Explorer at
> > http://explorer.msn.com/intl.asp
> >





RE: IIS ?

2001-07-31 Thread Randy Layman


Read the mailing list archives.  I personally have answered this
twice already TODAY!

Randy

> -Original Message-
> From: Vassallo, Carlos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 2:10 PM
> To: '[EMAIL PROTECTED]'
> Subject: IIS ?
> 
> 
> I make all the steps described in the paper: Working with the 
> Jakarta NT
> Service and I can´t stand up the Tomcat service. My NT 
> reports error 2140
> when I try to do that.
> 
> Could you help me ?
> Thanks.
>   Carlos Vassallo.-
> 



RE: How to "alias out" port 8080?

2001-07-31 Thread Randy Layman


You need to reconfigure Tomcat to listen on port 80.  This will
cause problems on computers that already have a web server (Apache, IIS,
iPlanet, etc) running.  Also, unless you are the root user this is not
allowed on Unix computers.

Randy

> -Original Message-
> From: Ali Manji [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: How to "alias out" port 8080?
> 
> 
> 
> Hi,
> 
> I am trying out a Tomcat 4.0 beta and was wondering if there 
> is a way to
> "alias out" the port.  So for instance, I would like to enter:
> 
> http://myorg.org/stuff instead of
> 
> http://myorg.org:8080/stuff
> 
> Is this possible?
> 
> Thanks in advance for any help!
> 
> 
> *
> Ali M. Manji
> *
> 
> 
> _
> Get your FREE download of MSN Explorer at 
> http://explorer.msn.com/intl.asp
> 



RE: JEFF JOCKEL FROM RATIONAL SOFTWARE: TOMCAT SERVICE WILL NOT START ON NT

2001-07-31 Thread Randy Layman


The jk_nt_service can not deal with spaces in file names.  Long
names are fine, but short names are a problem.  I would suggest that you
move the products to different directories (i.e. C:\Rational as opposed to
C:\Program Files\Rational).

Randy

> -Original Message-
> From: Jockel, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 1:38 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: JEFF JOCKEL FROM RATIONAL SOFTWARE: TOMCAT SERVICE WILL NOT
> START ON NT
> 
> 
> My name is Jeff Jockel and I am a tech rep with Rational Software.
> We have a product called Requsite Pro which uses TOMCAT 3.2.1 
> for its Web
> add in.
> 
> I tried installing this application on a client's NT SP6 box 
> and upon trying
> to start the Jakarta NT service (called RqTomcat) I received 
> an NT 2140
> error, could not start service.
> 
> The wrapper.properties file contains the following two mappings:
> 
> wrapper.tomcat_home=c:\progra~1\rational\jakart~1
> 
> 
> wrapper.java_home=C:\progra~1\rational\common\java\jre1.2.2
> 
> 
> We think that the reason we are getting this error is that 
> the cleints NT
> box's NTFS file system does not create short file names and 
> these mappings
> are short names. (The client has purposefully set this 
> registry setting so
> short names cannot be read...for security purposes)
> 
>   We tried to simple change the 2 mappings to long form, 
> however we
> still received the error. Can tomcat only read short form? If 
> so...can you
> see anyway to fix this problem?
> 
> ps: we HAVE been able to run the sevice as an executible and 
> it works just
> fine
> 
> please let me know if you have any further questions
> thank you  for your help
> 
> Jeff Jockel
> 703-288-7722
> 
> 



RE: How to ensure Tomcat to load multiple instances of a servlet, to handle simultaneously multiple request ?

2001-07-31 Thread Randy Layman


This is most definitely a problem with either your database or your
database access architecture.  Tomcat, using one servlet instance, can
handles hundred and even thousands of concurrent requests - each request
runs in a thread that executes the appropriate method of the servlet.

I would look at your database architecture, possibly your JDBC
drivers - even Access allows you to do multiple things at once (even though
you are shooting yourself in the foot as you do so).  Is there any code in
there that is synchronized or in some other manner queued to allow only one
request at a time?  Also, you might want to look into your database's
locking methodology - the long query might be getting locks on the tables
that the quicker one wants, thus causing the wait.

Randy

> -Original Message-
> From: Jim Rueschhoff [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 9:43 AM
> To: [EMAIL PROTECTED]
> Subject: RE: How to ensure Tomcat to load multiple instances of a
> servlet, to handle simultaneously multiple request ?
> 
> 
> What database are you using?  This type of behavior is 
> frequently associated
> with people trying to use Access as a database for a website. 
>  A database
> designed for use in a multiuser multithread environment 
> should not have this
> problem.  The problem is a database problem, not a JSP problem, in my
> opinion.
> 
> 
> 
> -Original Message-
> From: Hariharasubramanian Ranganathan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 3:14 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to ensure Tomcat to load multiple instances of a
> servlet, to handle simultaneously multiple request ?
> 
> 
> > - the Servlet implements SinglethreadModel,
> 
> Donot implement SingleThreadedModel interface which synchronizes the
> servlet.
> 
> Hari
> 
> 
> - Original Message -
> From: "grégoire nogier" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 31, 2001 3:11 PM
> Subject: How to ensure Tomcat to load multiple instances of a 
> servlet, to
> handle simultaneously multiple request ?
> 
> 
> > How to ensure Tomcat to load multiple instances of a 
> servlet, to handle
> > simultaneously multiple request ?
> >
> > I'v developed a servlet application in tomcat/apache, on NT.
> > I tried a very simple load test :
> >- 1) from a first pc, I send a request which neeed a 
> very long database
> > access (3 minutes),
> >- 2) from another pc, I send a very simple request 
> (which should be
> > traited immediately)
> >=> the result is that the second request wait 3 minutes before
> receiving
> > its response. The requests are served the one after the other.
> >
> > I'm not sure to understand how tomcat works, but I imagined 
> that it should
> > be possible to load multiple servlet process, to handle 20 request
> > simultaneously.
> > It seems not.
> >
> > - should I duplicate the servlet in the file web.xml ?
> > - should I duplicate the servlet context ?
> > - should I define more workers ? (how to ?)
> > - should I use some other connector, or RequestInterceptor ?
> >
> > Here is a short description of the configuration used :
> > - tomcat-v3.2.2, apache-v1.3
> > - the Servlet implements SinglethreadModel,
> > - the file : mod_jk.conf mount the servlet-path with the 
> ajp13 worker,
> > - the file : server.xml defines a PoolTcpConnector 
> Ajp13ConnectionHandler
> > (parameters are: max_threads=50, max_spare_threads=25,
> > min_spare_threads=10),
> > - the file : workers.properties defines two workers
> > (worker.list=ajp13,loadbalancer)
> > - the file : web.xml defines two servlet (only one seems to 
> be used...)
> >
> > I need some help !
> >
> > Gregoire Nogier
> >
> >
> 



RE: jk_nt_service doesn't work like in the description

2001-07-31 Thread Randy Layman


First, you probably want to send your message in text only format,
sending in HTML or RTF will cause you message to appear very similar to
jibberish on those people who use mail readers that can't read your message,
thus limiting your audience which you probably don't want.

Your problem is because of one of the following:
1.  Spaces in paths.  jk_nt_service can't deal with spaces in any
path names that it deals with
2.  Invalid configuration file that doesn't point to the jvm
correctly
3.  Some other problem indicated in your jvm.stderr/jvm.stdout log
files

Randy

-Original Message-
From: Simone Bortolaso [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 5:40 AM
To: [EMAIL PROTECTED]
Subject: jk_nt_service doesn't work like in the description


I follow all the instructions but when i start the service the answer is:
Impossible start the service write NET HELPMSG 3534 to obtain most
information.
Simone
  



RE: How to "alias out" port 8080?

2001-07-31 Thread Randy Layman


No.  You can think of it as having two butlers trying to answer the
same door - it just doesn't work because they fight with each other to
answer the door.  (Its not quite that straight forward, but you probably get
the idea)

Randy

> -Original Message-
> From: Tsinwah Lee [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 3:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to "alias out" port 8080?
> 
> 
> I have the similar question: What if we have Apache run on 
> port 80 and don't
> want to config Apache to work with Tomcat? So can we have 
> both Apache and Tomcat
> standalone run on port 80 so users don't need to type the 
> port number? Thanks.
> 
> T.
> 
> Barry Draper wrote:
> 
> > Here's one way to do it.
> > If you don't need to use port 80 (the default port for an 
> HTTP server)
> > for another HTTP (aka web) server, change the port number 
> in the file
> > TOMCAT_HOME/conf/server.xml from 8080 to 80.
> > Here's the snippet of code where I changed this on my Tomcat 3.2.1
> > installation.
> > Note that I changed mine to 8081 to avoid conflict with 
> another Tomcat
> > server
> > listening on 8080.
> >
> >  
> >
> > 
> >  className="org.apache.tomcat.service.PoolTcpConnector">
> >  >
> > value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
> >  > value="8081"/>
> > 
> >
> >Note that if you are running a regular HTTP server like 
> Apache or IIS,
> >it would listen by default on port 80. If you run Tomcat 
> with Apache,
> >Tomcat listens by default on 8007 and Apache (listening 
> by default on 80)
> >dispatches/routes servlet requests to Tomcat.
> >
> > Barry Draper
> > IBM Informix
> > Oakland, CA
> > [EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: Ali Manji [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, July 31, 2001 11:08 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: How to "alias out" port 8080?
> > >
> > >
> > >
> > > Hi,
> > >
> > > I am trying out a Tomcat 4.0 beta and was wondering if there
> > > is a way to
> > > "alias out" the port.  So for instance, I would like to enter:
> > >
> > > http://myorg.org/stuff instead of
> > >
> > > http://myorg.org:8080/stuff
> > >
> > > Is this possible?
> > >
> > > Thanks in advance for any help!
> > >
> > >
> > > *
> > > Ali M. Manji
> > > *
> > >
> > >
> > > _
> > > Get your FREE download of MSN Explorer at
> > > http://explorer.msn.com/intl.asp
> > >
> 



Re: How to "alias out" port 8080?

2001-07-31 Thread Tim O'Neil

At 12:48 PM 7/31/2001, you wrote:
>I have the similar question: What if we have Apache run on port 80 and don't
>want to config Apache to work with Tomcat? So can we have both Apache and 
>Tomcat
>standalone run on port 80 so users don't need to type the port number? Thanks.

Can't do that. You can't have both processes use the same
port at the same time. You can write/find a proxy server/
load balancer that will forward requests to the appropriate
process however.




Re: How to "alias out" port 8080?

2001-07-31 Thread Tsinwah Lee

I have the similar question: What if we have Apache run on port 80 and don't
want to config Apache to work with Tomcat? So can we have both Apache and Tomcat
standalone run on port 80 so users don't need to type the port number? Thanks.

T.

Barry Draper wrote:

> Here's one way to do it.
> If you don't need to use port 80 (the default port for an HTTP server)
> for another HTTP (aka web) server, change the port number in the file
> TOMCAT_HOME/conf/server.xml from 8080 to 80.
> Here's the snippet of code where I changed this on my Tomcat 3.2.1
> installation.
> Note that I changed mine to 8081 to avoid conflict with another Tomcat
> server
> listening on 8080.
>
>  
>
> 
> 
> 
> value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
>  value="8081"/>
> 
>
>Note that if you are running a regular HTTP server like Apache or IIS,
>it would listen by default on port 80. If you run Tomcat with Apache,
>Tomcat listens by default on 8007 and Apache (listening by default on 80)
>dispatches/routes servlet requests to Tomcat.
>
> Barry Draper
> IBM Informix
> Oakland, CA
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: Ali Manji [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 31, 2001 11:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: How to "alias out" port 8080?
> >
> >
> >
> > Hi,
> >
> > I am trying out a Tomcat 4.0 beta and was wondering if there
> > is a way to
> > "alias out" the port.  So for instance, I would like to enter:
> >
> > http://myorg.org/stuff instead of
> >
> > http://myorg.org:8080/stuff
> >
> > Is this possible?
> >
> > Thanks in advance for any help!
> >
> >
> > *
> > Ali M. Manji
> > *
> >
> >
> > _
> > Get your FREE download of MSN Explorer at
> > http://explorer.msn.com/intl.asp
> >




RE: How to "alias out" port 8080?

2001-07-31 Thread Barry Draper

Here's one way to do it.
If you don't need to use port 80 (the default port for an HTTP server)
for another HTTP (aka web) server, change the port number in the file
TOMCAT_HOME/conf/server.xml from 8080 to 80.
Here's the snippet of code where I changed this on my Tomcat 3.2.1
installation.
Note that I changed mine to 8081 to avoid conflict with another Tomcat
server
listening on 8080.

 






 
   Note that if you are running a regular HTTP server like Apache or IIS,
   it would listen by default on port 80. If you run Tomcat with Apache,
   Tomcat listens by default on 8007 and Apache (listening by default on 80)
   dispatches/routes servlet requests to Tomcat.

Barry Draper
IBM Informix
Oakland, CA
[EMAIL PROTECTED]

> -Original Message-
> From: Ali Manji [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 11:08 AM
> To: [EMAIL PROTECTED]
> Subject: How to "alias out" port 8080?
> 
> 
> 
> Hi,
> 
> I am trying out a Tomcat 4.0 beta and was wondering if there 
> is a way to
> "alias out" the port.  So for instance, I would like to enter:
> 
> http://myorg.org/stuff instead of
> 
> http://myorg.org:8080/stuff
> 
> Is this possible?
> 
> Thanks in advance for any help!
> 
> 
> *
> Ali M. Manji
> *
> 
> 
> _
> Get your FREE download of MSN Explorer at 
> http://explorer.msn.com/intl.asp
> 



RE: How to "alias out" port 8080?

2001-07-31 Thread Pete Freitag

If you change your config to run the server on port 80 instead of 8080 your
web browser will assume http://myorg.org:80/ when you type http://myorg.org/
since port 80 is the default port for http.


Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM
Web Developers Resources
http://www.cfdev.com/index.cfm?ref=126

-Original Message-
From: Ali Manji [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: How to "alias out" port 8080?



Hi,

I am trying out a Tomcat 4.0 beta and was wondering if there is a way to
"alias out" the port.  So for instance, I would like to enter:

http://myorg.org/stuff instead of

http://myorg.org:8080/stuff

Is this possible?

Thanks in advance for any help!


*
Ali M. Manji
*


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





IIS ?

2001-07-31 Thread Vassallo, Carlos

I make all the steps described in the paper: Working with the Jakarta NT
Service and I can´t stand up the Tomcat service. My NT reports error 2140
when I try to do that.

Could you help me ?
Thanks.
Carlos Vassallo.-



Re: How to ensure Tomcat to load multiple instances of a servlet, to handle simultaneously multiple request ?

2001-07-31 Thread Nils O. Selåsdal

On Tuesday 31 July 2001 10:41 am, you wrote:

> Here is a short description of the configuration used :
> - tomcat-v3.2.2, apache-v1.3
> - the Servlet implements SinglethreadModel,
Font implement the singlethread model, then you can take as many concurrent 
requests as the machine can handle..
Just be aware of all the common 'problems' with multithreading.
e.g. if you have member variables in your servlet class (dont), that can 
cause trouble with concurrent access, you  must synchronize on access to the 
variabel, or find a better way on doing it.
(remember that each thread gets its own copy of local variables, so you dont 
have to worry about concurrent access to variables you declae inside the body 
of a method)
 

-- 
Nils O. Selåsdal



How to "alias out" port 8080?

2001-07-31 Thread Ali Manji


Hi,

I am trying out a Tomcat 4.0 beta and was wondering if there is a way to
"alias out" the port.  So for instance, I would like to enter:

http://myorg.org/stuff instead of

http://myorg.org:8080/stuff

Is this possible?

Thanks in advance for any help!


*
Ali M. Manji
*


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




How to get everyone to use one config

2001-07-31 Thread Brandon Cruz

I have a system set up on tomcat 3.2.1, linux, apache...

I have several virtual hosts that are all using the same web application.
This application consists of a bunch of class files that are stored in
$tomcat_home$/classes and packages stored in $tomcat_home$/lib.  I would
like to be able to set up things in web.xml such as custom error pages and
the like.  Is there a way I can make all these hosts use the same error
pages?  I don't care if it looks the same across all sites when an error
pops up.

On another note, what if I decide that I want to create a custom web
application for just one of my virtual hosts?  Is this possible?  Can I just
create it as I normally would for a web application?  If I have classes with
the same name, will it find the ones in tomcat_home/classes or
web-inf/classes first?

For either of these, if someone can just tell me it is documented somewhere
I have not been able to find so far, that would be appreciated!
Thank You!

Brandon Cruz




RE: Customize Url Rewriting + QUESTION

2001-07-31 Thread Ashish Bajpai


HI!
I looked at the apache rewrite stuff, however that is not
exactly what i was looking for. Let me explain it again
so that the requirement is more clear,
See when we are using the Url rewriting for session tracking
in Tomcat, each url in the page has got jsessionId appended
to it, my requirement is that can i extend this so that I can also
manipulate the url while the page is being served to the user.


thanks in anticipation

ashish


   

Loïc Lefèvre   

  

ia.com>  cc:   

 Subject: RE: Customize Url Rewriting + 
QUESTION   
07/30/2001 

12:33 PM   

Please 

respond to 

tomcat-user

   

   





Okay, let's speak ;)

here is my mod_jk.conf:
##
# TOMCAT mod_jk.so MODULE CONFIGURATION FILE #
##

JkWorkersFile
/usr/local/tomcat/jakarta-tomcat-3.2.3/conf/workers.properties
JkLogFile  /usr/local/tomcat/log/mod_jk.log

#
# Log level to be used by mod_jk
# debug / error / warn / info / fatal
#
JkLogLevel debug

NameVirtualHost 192.1.1.128



ServerName lol.fivia.com

# Répertoire ou commence le site, pour les fichiers statiques
DocumentRoot /usr/local/tomcat/jakarta-tomcat-3.2.3/webapps/lol

JkMount /lol/* ajp12
JkMount /*.jsp ajp12

RedirectMatch /index.html $1/start/index.html

ErrorLog /usr/local/tomcat/log/lol_error_html.log
TransferLog /usr/local/tomcat/log/lol_access_html.log

RewriteEngine on
RewriteLog /usr/local/tomcat/log/lol_rewrite.log
RewriteLogLevel 9

# Seen in a faq (: http://www.jguru.com/faq/view.jsp?EID=53878)
RewriteRule  ^(/.*;jsessionid=.*)$  $1 [T=jserv-servlet,PT]

RewriteCond %{REQUEST_URI} ^/servlet* [NC]
RewriteRule ^/servlet/(.*) /lol/$1 [PT]

RewriteCond %{REQUEST_URI} !^/lol* [NC]
RewriteCond %{REQUEST_URI} !^/Image* [NC]
RewriteCond %{REQUEST_URI} !^/Elemtech* [NC]
RewriteCond %{REQUEST_URI} !^/Erreur* [NC]
RewriteCond %{REQUEST_URI} ^/.*/.*
RewriteRule ^/(.*) /lol/AdFront?access=/$1 [PT,QSA]

#RewriteRule ^/Image/(.*)   /Image/$1[L,NC]
#RewriteRule ^/Erreur/(.*)  /Erreur/$1   [L,NC]
#RewriteRule ^/Elemtech/(.*)/Elemtech/$1 [L,NC]
#RewriteRule ^/servlet/(.*) /lol/$1 [PT]
#RewriteCond %{REQUEST_URI} ^/.*/.*
#RewriteRule ^/(.*) /lol/AdFront?access=/$1 [QSA]



here is the code of my URLRewriter:
package com.fivia.adfront.sales;

import com.fivia.adfront.sales.kernel.*;
import com.fivia.adfront.sales.util.*;

import java.io.*;
import java.sql.*;
import java.util.*;
import java.text.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.StringTokenizer;
import java.util.Date;

public class AdURLRewriter extends HttpServlet
{
   public static AdFront application = null;
   public static int p = 0;


//
   /* Initialisation
*/

//
   public void init(ServletConfig config)
   throws ServletException
   {
 System.out.println("Initialisation d'AdURLRewriter en
cours...");
 super.init(config);

 // Instanciation de l'application (static !)
 if( application == null )
 {
   application = new AdFront();
   application.init(config);
 }
   }


//
   /* Destroy
  */

//
   public void destroy()
   {
 System.out.println("Destruction d'

Something wrong with nt service

2001-07-31 Thread 林修名 Nigel H. Lin

Dear Sir:

I try to set Jakarta for nt service.
But, the service never starts.
My system is win2000 server and tomcat version is 3.2.2.
Please help me with that.
Thank you for your greate help.

Sincerely,

Nigel

ps. I have done everything 


RE: jk_nt_service: New Version

2001-07-31 Thread Ignacio J. Ortega

> 
> Anyway, if anyone wants a copy, just let me know.  (I also 
> modified the
> documentation.)  Comments, suggestions, and bug reports are welcome.
> 
> *** Also, could someone in the know give me a hand submitting 
> this code back
> to the Jakarta project?


I'll be glad to review and commit it.. please send apatch following
guidelines at  basically

> 
> Thanks.
> Michael Weir
> 


Saludos ,
Ignacio J. Ortega




Re:subscribe to mail-list

2001-07-31 Thread Dwaipayan

please subscribe me.

_
For Rs. 2,000,000 worth of Aptech scholarships click below
http://events.rediff.com/aptechsch/scholarship.htm






JEFF JOCKEL FROM RATIONAL SOFTWARE: TOMCAT SERVICE WILL NOT START ON NT

2001-07-31 Thread Jockel, Jeff

My name is Jeff Jockel and I am a tech rep with Rational Software.
We have a product called Requsite Pro which uses TOMCAT 3.2.1 for its Web
add in.

I tried installing this application on a client's NT SP6 box and upon trying
to start the Jakarta NT service (called RqTomcat) I received an NT 2140
error, could not start service.

The wrapper.properties file contains the following two mappings:

wrapper.tomcat_home=c:\progra~1\rational\jakart~1


wrapper.java_home=C:\progra~1\rational\common\java\jre1.2.2


We think that the reason we are getting this error is that the cleints NT
box's NTFS file system does not create short file names and these mappings
are short names. (The client has purposefully set this registry setting so
short names cannot be read...for security purposes)

We tried to simple change the 2 mappings to long form, however we
still received the error. Can tomcat only read short form? If so...can you
see anyway to fix this problem?

ps: we HAVE been able to run the sevice as an executible and it works just
fine

please let me know if you have any further questions
thank you  for your help

Jeff Jockel
703-288-7722





Re: Java Beans and JSP Question.

2001-07-31 Thread Pritchard

I spent some time chasing the same problem.  It
appeared to me that the Introspector was getting
get/set methods in pairs based on the property name,
parameter list, and return type.  It seemed to expect
that you adhered to the Java beans standard of 
void setA(int a){}
int getA(){}
where the return type of the getter matched the input
parameter of the setter.  It matched up get/set method
pairs that way.

So in your case the pair would be
void setA(int a)
int getA()

void setA(String a)
null  

It then iterated through the list of methods looking
for one that matched the *name* I had requested.  It
sometimes found the pair where the getter was null
before finding the other pair and caused the error
you've found.

I fixed it by renaming my method to setAasString() or
something like that.  A bit ugly, but I couldn't find
another way to make the introspector behave.

Sean
 
> 
> -Original Message-
> From: Dan Hinojosa [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 12:40 PM
> To: [EMAIL PROTECTED]
> Subject: Java Beans and JSP Question.
> 
> 
> I have a standard java bean.  The different thing
> about it is that I
> usually have two overloaded set methods per
> attribute.  For example,
> 
> public class MyBean {
> private int a;
> 
> public setA (int a) throws Exception {
> if (a > 100) throw new Exception ("Must be
> less than 100");
> }
> 
> public setA (String a) throws Exception {
> try {
> setA(Integer.parseInt(a));
> } catch (NumberFormat Exception exception) {
> throw new Exception ("Format
> incorrect.");
> }
> }
> 
> //I usually have one getA
> public int getA() {
> return a;
> }
> }
> 
> 
> Now when I use this bean in a JSP that is stored in
> the request scope,
> at times the compiler will complain that it cannot
> find a get method for
> "A".  Even though one get method for that particular
> attribute is
> clearly there.
> 
> Some added information, I use Forte Community
> Edition 2, and Tomcat.
> Forte's compiler complains about one attribute while
> Tomcat complains
> about another completely different attribute it
> cannot find the get
> method for.  Which makes me itch with anger.  The
> note is my example
> above is very simple. I used it just to explain my
> problem.  My actual
> bean has about 17 attributes all with 2 setter
> methods each and 1 get
> method each.
> 
> Does anyone know how to resolve this issue?
> 
> Thanks for your help.
> Dan Hinojosa
> 
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Dumb question of the day

2001-07-31 Thread Richard Draucker

Does anyone know where I can get a little tomcat .xpm icon for my Linux 
desktop?

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




Tomcat 4.0 stability (Was: Re: SAX 2.0, sealing, Tomcat 3.2.3)

2001-07-31 Thread Pier P. Fumagalli

Bryan Rood at [EMAIL PROTECTED] wrote:

> Pier,
> 
> I am interested in using a 4.0.something tomcat build.

Good...

> Are there official sources at apache that can confirm the "VERY_stable"
> declaration that you have made?

Never seen a complaint about 4.0b6 running in stand-alone mode.

> My company won't let me use anything but a stable production release.
> Is the 4.0 the same as prod quality?

I would assert that 4.0b6 is at least as stable as 3.2.3 when running with
the HTTP connector in stand alone mode. I'm working on the webapp connector
for Apache for it, and that cannot be considered qualitable as the built in
HTTP.

But let's ask to the master of TC4.0... Craig?

Pier




RE: Help!! Apache won't redirect to tomcat

2001-07-31 Thread Andrew Inggs

Nance, Michael wrote:
> Are you saying it does NOT use web.xml?  Then what does it use?

Correct, it does *not* use TOMCAT_HOME/conf/web.xml.
But, it *does* use PATH-TO-YOUR-WEB-APP/WEB-INF/web.xml.
And, it *does* use TOMCAT_HOME/conf/server.xml.

You seem to be missing the whole web app setup.  The way to
setup a web app is to create the following directory hierarchy
(typically in TOMCAT_HOME/webapps/MYWEBAPP, where MYWEBAPP is
the name of your web app):

WEB-INF/web.xml  <-- config for your web app
WEB-INF/classes  <-- root of the Java classes hierarchy
index.html   <-- static welcome page (not required)

If this is in a subdirectory of TOMCAT_HOME/webapps then it is
automatically configured and you should be able to access the
servlets with something like

http://localhost:8080/MYWEBAPP/MyServlet

If it is not a subdirectory of TOMCAT_HOME/webapps, you need to
add a context in TOMCAT_HOME/conf/server.xml.

> I did rename it and got the same error...so now I am very confused.
> Also in server.xml
> I have this
> debug="0"
> reloadable="true" >
> 
> which points to the location of my servlets

OK, so based what I have above, you have added a root context
(path is blank) to server.xml which points to a directory
(docBase):
../../../../src/public_html

That's fine, now you need these:

../../../../src/public_html/WEB-INF/web.xml  <-- config file
../../../../src/public_html/WEB-INF/classes  <-- Java class files

Inside this web.xml you need to define the servlets you want to
have visible and the URL patterns that should be directed to
them (see one of my previous posts in this thread for an example).

I hope this helps to clear things up for you :-).

-- Andrew



Java Beans and JSP Question.

2001-07-31 Thread Dan Hinojosa

I have a standard java bean.  The different thing about it is that I
usually have two overloaded set methods per attribute.  For example,

public class MyBean {
private int a;

public setA (int a) throws Exception {
if (a > 100) throw new Exception ("Must be less than 100");
}

public setA (String a) throws Exception {
try {
setA(Integer.parseInt(a));
} catch (NumberFormat Exception exception) {
throw new Exception ("Format incorrect.");
}
}

//I usually have one getA
public int getA() {
return a;
}
}


Now when I use this bean in a JSP that is stored in the request scope,
at times the compiler will complain that it cannot find a get method for
"A".  Even though one get method for that particular attribute is
clearly there.

Some added information, I use Forte Community Edition 2, and Tomcat.
Forte's compiler complains about one attribute while Tomcat complains
about another completely different attribute it cannot find the get
method for.  Which makes me itch with anger.  The note is my example
above is very simple. I used it just to explain my problem.  My actual
bean has about 17 attributes all with 2 setter methods each and 1 get
method each.

Does anyone know how to resolve this issue?

Thanks for your help.
Dan Hinojosa






RE: SAX 2.0, sealing, Tomcat 3.2.3

2001-07-31 Thread Bryan Rood

Pier,

I am interested in using a 4.0.something tomcat build.

Are there official sources at apache that can confirm the "VERY_stable"
declaration that you have made?
My company won't let me use anything but a stable production release.
Is the 4.0 the same as prod quality?
thanks so much,

Bryan

-Original Message-
From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 9:33 AM
To: [EMAIL PROTECTED]
Subject: Re: SAX 2.0, sealing, Tomcat 3.2.3


Andrew Cooke at [EMAIL PROTECTED] wrote:
>
> I don't want to use 4.0 as it's beta.

Don't worry about being a beta... It's stable, _VERY_ stable.

Pier



Re: SAX 2.0, sealing, Tomcat 3.2.3

2001-07-31 Thread Pier P. Fumagalli

Andrew Cooke at [EMAIL PROTECTED] wrote:
>
> I don't want to use 4.0 as it's beta.

Don't worry about being a beta... It's stable, _VERY_ stable.

Pier




Application Scope

2001-07-31 Thread crabcorn

Hi,

  If I declare a bean of scope="application"
can I use this bean again on another JSP?
Basically I want to instantiate a class
for the whole app and then from different
pages access that class. Is this possible?
Because you have to put the bean declaration
in the JSP to be able to use it. And if
I dont redeclare it it complains that my
class is not defined. Can you not access
application defined beans from more than
one page?

  Thanks so much for your help

  

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



SV: APACHE & NT 4

2001-07-31 Thread Niels Barlach

Carlos

it's the same problem i wrote about earlier today.
apache 1.3.20 uses modules with the extension *.so and won't accept a *.dll
(i used mod_jk.dll).
It then fails to load Apache a says something about not being EAPI.

I gave up for now and installed an old Apache where it works.

But i'm still interested if somebody has a solution

-niels

-Oprindelig meddelelse-
Fra: Mark Gash [mailto:[EMAIL PROTECTED]]
Sendt: Tuesday, July 31, 2001 18:17
Til: '[EMAIL PROTECTED]'
Emne: RE: APACHE & NT 4


Carlos,

Where are you putting the ApacheModuleJServ.dll?? It should go in the
apache\modules directory?


Kind Regards,

Mark Gash
Consultant
TriSystems Ltd.
020 7264 0440
[EMAIL PROTECTED]



-Original Message-
From: Carlos Eduardo Mariolani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 7:42 PM
To: [EMAIL PROTECTED]
Subject: APACHE & NT 4


Hi

I have download the file

  apache_1.3.20-win32-no_src-r2.msi..msi

and install apache in my NT (4.0 and sp 6)


I have a

  jakarta-tomcat-3.2.3and a

  jdk1.3.1 in that NT



I put the line

 Include e:\tomcat\jakarta-tomcat-3.2.3\conf\tomcat-apache.conf

in my httpd.conf


but the first line of the tomcat-apache.conf :

 LoadModule jserv_module modules/ApacheModuleJServ.dll

don't work


I try 4 or 5 versions of ApacheModuleJServ.dll from

http://java.apache.org/jserv/dist/old/dll/


and it do not work


help please!





---
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




RE: image resize

2001-07-31 Thread Pete Freitag

I wouldn't say its "Beyond the Scope of Servlets" there are several usages
for server side image manipulation in web applications, and many other web
development languages have components for doing so.  For instance
- automatically resizing images when they are uploaded so that they are all
the same size.
- automatically generating thumbnails
- In some very specific cases, creating dynamic images with text

Though I can see where you are coming from it IS beyond the scope of
servlets to make a server side PhotoShop.


Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM
Web Developers Resources
http://www.cfdev.com/

-Original Message-
From: Richard Draucker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 12:08 PM
To: [EMAIL PROTECTED]
Subject: Re: image resize


Can you be more specific what you mean by "resize"?
Html will allow you to set the displayable height/width of an image.  If
your
servlet is outputting html, just add a height or width attribute.
However, if you want to "manipulate" the image itself that's beyond the
scope
of tomcat or servlets in general... use your favorite image editor and serve
the resulting image from the servlet.



On Tuesday 31 July 2001 11:12 am, you wrote:
> Hi,
> this is probably a bit of topic...
> What would be the best way to resize images with servlet ?
> I have .jpgs and .gifs in files (not kept in database) and I need to
> create new files in different sizes from those images.
> Is anyone willing to give me a hint (or more :) on how to do it.
>
> thanx
> -r

--
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers





RE: APACHE & NT 4

2001-07-31 Thread Mark Gash

Carlos,
 
Where are you putting the ApacheModuleJServ.dll?? It should go in the
apache\modules directory?
 

Kind Regards, 

Mark Gash 
Consultant 
TriSystems Ltd. 
020 7264 0440 
[EMAIL PROTECTED] 

 

-Original Message-
From: Carlos Eduardo Mariolani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 7:42 PM
To: [EMAIL PROTECTED]
Subject: APACHE & NT 4


Hi
 
I have download the file
 
  apache_1.3.20-win32-no_src-r2.msi..msi
 
and install apache in my NT (4.0 and sp 6)
 

I have a 
 
  jakarta-tomcat-3.2.3and a 
  
  jdk1.3.1 in that NT
 
 
 
I put the line
 
 Include e:\tomcat\jakarta-tomcat-3.2.3\conf\tomcat-apache.conf 
 
in my httpd.conf
 

but the first line of the tomcat-apache.conf :
 
 LoadModule jserv_module modules/ApacheModuleJServ.dll
 
don't work
 

I try 4 or 5 versions of ApacheModuleJServ.dll from
 
http://java.apache.org/jserv/dist/old/dll/
 
 
and it do not work
 

help please!





---
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.



Re: Tomcat 4.05b - recompile required for SSL?

2001-07-31 Thread Craig R. McClanahan



On 31 Jul 2001, Lloyd Llewellyn wrote:

> 
> > Also, you should really download "beta 6" instead -- a boatload of bugs
> > have been fixed since "beta 5".
> 
> Thanks, I'll do that.  Is it a drop-in replacement for b5 (just copy
> over class files)?

It is "drop-in" in the sense that any app that works under b5 should work
unchanged under b6.  However, I would never ever ever ever :-) try to
install Tomcat or any other package "on top of" an existing directory
containing a different version.  That's just asking for weird and wild
bugs caused by directory structure reorganizations between versions.

Do yourself a favor and install b6 into a new directory, and copy your
webapps (and server.xml file, if needed) over.

Craig McClanahan




RE: SAX 2.0, sealing, Tomcat 3.2.3

2001-07-31 Thread Andrew Inggs

Andrew Cooke wrote:
> Excellent - thanks!  That URL even has the "rename file to 
> zparser.jar" meme that my boss keeps swearing is the
> solution... :-)

:-)

Please let us know what you do and whether it works.  Also,
I'm not sure what platform you're on, but on Windows, if the
path to the directory that Tomcat is installed in has any
spaces in it (e.g., C:\Program Files\jakarta-tomcat-3.2.3)
then the startup.bat script *can't* automatically include the
jars in TOMCAT_HOME/lib, so in this case you will have to
modify startup.bat manually (actually tomcat.bat).

You should know if you have to make the manual change if you
see this message printed when you start Tomcat:
  Unable to set CLASSPATH dynamically.

-- Andrew



RE: image resize

2001-07-31 Thread Pete Freitag

Resizing with the IMG tag does work for slight scaling. In the case where
you are generating thumbnails, you would still be downloading the full sized
image, and would defeat the purpose of having thumbnails.

I've been working on a server side solution for this also, but have run into
a couple of problems, the main problem is the reading an image in from a
file.  I've been using:

Image img = Toolkit.getDefaultToolkit().createImage("img.jpg");
or
Image img = Toolkit.getDefaultToolkit().getImage("img.jpg");

but it hangs.

I've narrowed it down to Toolkit.getDefaultToolkit() hanging, and I haven't
been able to find another way to do it. It works fine, but I can't get it to
terminate without killing the JVM, or calling a System.exit(0); I'm running
Windows 2000 with JDK 1.3



Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM
WEB Developers Resources
http://www.cfdev.com/

-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 11:50 AM
To: '[EMAIL PROTECTED]'
Subject: RE: image resize


There's also the possibility of letting the browser resize it for you, by
setting the width and height attributes of the  tag.  Browsers don't
scale images well, but it's a whole lot easier than doing it yourself.

(Also note that AWT can't run on Unix without an X server, nor can it run if
the server is locked.  Look through the Tomcat archives for more
information.)

-- Bill K.

> -Original Message-
> From: Cory Powers [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 8:21 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: image resize
>
>
> I'm not sure, but there is good info on working with images
> on the jguru
> site. Try http://www.jguru.com/faq/home.jsp?topic=Media
>
>
> -Original Message-
> From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: image resize
>
>
> Hi,
> this is probably a bit of topic...
> What would be the best way to resize images with servlet ?
> I have .jpgs and .gifs in files (not kept in database) and I need to
> create new files in different sizes from those images.
> Is anyone willing to give me a hint (or more :) on how to do it.
>
> thanx
> -r
>




Re: The relationship between Tomcat security mechanism and JAAS?

2001-07-31 Thread Francis Pallini

Hello,

I had the same problem, but I never managed to get the LDAP login module at 
work. In theory, you can use this JAAS module to check user authentication 
and get user roles from the LDAP server with a very few code. JNDI login 
module is very poorly documented...

By now, the following code works for what I have to do, event if it is not 
very elegant :

 String buf = "alias=zorglub,ou=employee,o=XXX,c=AN";
 Hashtable env = new Hashtable();
 out.println("String: "+buf);
 env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
 env.put(Context.PROVIDER_URL, "ldap://ldap.xxx.com:389/o=xxx,c=an";);
 env.put(Context.SECURITY_AUTHENTICATION, "simple");
 env.put(Context.SECURITY_PRINCIPAL, buf.toString());
//env.put(Context.SECURITY_CREDENTIALS, "toto");

 try{
   DirContext ctx = new InitialDirContext(env);
   out.println("Authenticated");
 }
 catch (NamingException ae) {
   out.println("Not Authenticated");
 }

Regards,

Francis Pallini

At 03:59 PM 7/31/01 +0530, you wrote:
>hi Francis !
>i too have a query regards security..in particular authentication.
>my intranet has LDAP where as one of my applications...i.e "jetspeed"
>maintains a databse for user-authentication
>   so a user has to authenticate himself again if he comes to jetspeed from
>his INTRANET page...
>   is there a way we can have a common authntication?...more
>specifically...how can i enable my LDAP to talk to my jetspeed or vice
>versa.  how can JAAS help me in this regard ?
>
>Please help.
>
>TIA
>
>sumit ranjan




RE: SAX 2.0, sealing, Tomcat 3.2.3

2001-07-31 Thread Ignacio J. Ortega

Another way ( easy way at least ) is to get Tomcat 3.3 Beta 1 and use
it..

It implaments too a isolated classloader schema for webapps and
internals..


Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Andrew Cooke [mailto:[EMAIL PROTECTED]]
> Enviado el: martes 31 de julio de 2001 15:42
> Para: [EMAIL PROTECTED]
> Asunto: SAX 2.0, sealing, Tomcat 3.2.3
> 
> 
> 
> Hi,
> 
> I've spent most of the day reading through various mailing list
> entries and other pages on the net and am still confused.  Is there a
> FAQ anywhere that clearly summarizes the issues involved and answers
> the questions below?  If not, can someone please tell me:
> 
> - Should Tomcat 3.2.3 work with JSP pages that use JAXP 1.1 and
> crimson (the XML support from Sun)?
> 
> - If so, how do I get it to work?
> -- Someone here says that it depends on the order of jars in the
> classpath.  Doesn't seem to make any difference to me - any comments?
> -- I have managed to get past the sealed jar problems by unsealing
> jars, but then get an error suggesting that the code in Tomcat is SAX
> 1.0 (getXmlReader in org.xml.sax.XMLReader doesn't appear to exist,
> which is a SAX 2.0 method?).
> 
> - If not, what other choices do I have?
> -- Will Tomcat 4.0 work?
> -- Will Tomcat 4.0 still give errors with sealed jars?  Is there a
> work-round?
> 
> In particular, our code gives the "usual" sealed jar exception unless
> I unseal our copy of xalan.jar, at which point I get a NoSuchMethod
> call when executing
>   SAXParserFactory factory = SAXParserFactory.newInstance()
> in our code.
> 
> Thanks,
> Andrew
> 
> 



Re: image resize

2001-07-31 Thread Richard Draucker

Can you be more specific what you mean by "resize"?
Html will allow you to set the displayable height/width of an image.  If your 
servlet is outputting html, just add a height or width attribute. 
However, if you want to "manipulate" the image itself that's beyond the scope 
of tomcat or servlets in general... use your favorite image editor and serve 
the resulting image from the servlet. 



On Tuesday 31 July 2001 11:12 am, you wrote:
> Hi,
> this is probably a bit of topic...
> What would be the best way to resize images with servlet ?
> I have .jpgs and .gifs in files (not kept in database) and I need to
> create new files in different sizes from those images.
> Is anyone willing to give me a hint (or more :) on how to do it.
>
> thanx
> -r

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




RE: image resize

2001-07-31 Thread William Kaufman

There's also the possibility of letting the browser resize it for you, by
setting the width and height attributes of the  tag.  Browsers don't
scale images well, but it's a whole lot easier than doing it yourself.

(Also note that AWT can't run on Unix without an X server, nor can it run if
the server is locked.  Look through the Tomcat archives for more
information.)

-- Bill K. 

> -Original Message-
> From: Cory Powers [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 8:21 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: image resize
> 
> 
> I'm not sure, but there is good info on working with images 
> on the jguru
> site. Try http://www.jguru.com/faq/home.jsp?topic=Media
> 
> 
> -Original Message-
> From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 31, 2001 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: image resize
> 
> 
> Hi, 
> this is probably a bit of topic...
> What would be the best way to resize images with servlet ?
> I have .jpgs and .gifs in files (not kept in database) and I need to
> create new files in different sizes from those images.
> Is anyone willing to give me a hint (or more :) on how to do it. 
> 
> thanx
> -r
> 



Tomcat question!

2001-07-31 Thread Gustavo Mejia

Hello everyone,

I need to evaluate Tomcat, but I can't find the characteristics of this,

like, how manage the memory ?, max number of users connected, .. ?
things like these, do you know wher I can find them ?

Thanks a lot !

--
Gustavo Mejía Mora
INFOTEC
Tel: 5624 28 00
Ext: 253





RE: How can I logoff

2001-07-31 Thread djhutchison

I'm using form authentication and used session.invalidate(). This works
great but the browser may be cacheing your logoff page, in which case you
may get some unexpected results if you logoff and back in more than once.
You need to disable the page cacheing. I used the following in the head
section of my page.




Hopefully this little tidbit will help someone else avoid a few hours of debugging 
that I went through. :o)

Dave





Re: install/start tomcat-mod_jk-apache

2001-07-31 Thread Sampath K Settipalli

No. that was  a error in typing in this mail. It points correctly.

Thanks,
Sampath

Loïc Lefèvre wrote:

> I think your directory could be the error:
>
> Syntax error on line 8 of
> /usr/home//tomcat/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto:
> Can't locate API module structure `jk_module' in file
>
> because of the 2 slashs /usr/home//tomcat/...
>
> -Message d'origine-
> De : Sampath K Settipalli [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 31 juillet 2001 17:16
> À : [EMAIL PROTECTED]
> Objet : install/start tomcat-mod_jk-apache
>
> Hi,
>
>   I've installed Apache 1.3.20 (built with source) &  binary version of
> tomcat 3.2.3  on solaris. To build mod_jk I used source of tomcat 3.2.3
> (src/native/jk library) and created mod_jk.so . It created with some
> warnings: I copied the mod_jk.so to apache/libexec and added a Include
> statement at end of httpd.conf for mod_jk.conf-auto which was created
> when  tomcat was started.
> I followed these steps as per mod_jk-howto.html Auto-Config.
>
> Now when I start apache it says:::
> 
> /apache_1.3.20 > apachectl start
> Syntax error on line 8 of
> /usr/home//tomcat/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto:
> Can't locate API module structure `jk_module' in file
> /usr/home//apache_1.3.20/libexec/mod_jk.so: ld.so.1:
> /usr/home/apache_1.3.20/bin/httpd: fatal: jk_module: can't find symbol
> /usr/home/apache_1.3.20/bin/apachectl start: httpd could not be started
> --
> Line 8 of mod_jk.conf-auto is " LoadModule jk_module libexec/mod_jk.s "
>
> Can someone please suggest what do I need to do to APache find
> jk_module/ overcome this. Do I need to do some other steps in
> installing/configuring Apache-tomcat-mod_jk
>
> Thanks in Advance,
> Sampath
>
> Just incase if you want to check if mo_jk was created correctly  this is
> the the display I got when mod_jk.so was created with apxs
> ---
> >
> $APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -c *.c ../jk/*.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_ajp12_worker.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_ajp13.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_ajp13_worker.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_connect.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_jni_worker.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_lb_worker.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_map.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_msg_buff.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_nwmain.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_pool.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_sockbuf.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_uri_worker_map.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS  -c jk_util.c
> gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE
>
> -I/usr/home/apache_1.3.20/include -I../jk
> -I/usr/java1.2/include
> -I/usr/java1.2/include/solaris -DSOLARIS 

fault tolerance tomcat4

2001-07-31 Thread Matt Barre

I am hosting several sites on a Solaris 8 SPARC box. I would like to use tomcat4 b6+ to
take care of all my serving. I've load tested it using JMeter and it performs more than
admirably for my uses. My question is how to replicate the fault tolerance I used to 
have
with apache + tomcat where I had a loadbalanced worker. Will I have to use apache to do
this or is there another way?

Matt




Re: white space in JSP

2001-07-31 Thread Rodney J. Lucas

thanks but that didn't work.  This has the same problem on Windows2000.


Hariharasubramanian Ranganathan wrote:

> Check for any "null" character (ascii 0) that might be placed in your JSP
> file accidently.
> 
> - Hari.
> 
> - Original Message -
> From: "Rodney J. Lucas" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 31, 2001 5:57 PM
> Subject: white space in JSP
> 
> 
> 
>>using Tomcat 4.0b5, Java 1.3.1 on Solaris
>>
>>I ran across a problem while trying to learn how to program with
>>tomcat/jsp.  Any comments or advice would be welcome
>>
>>I was running a simple case statement and got an error stating
>>"Statement
>>not reached".
>>=
>>Error: 500
>>Location: /lucas/switch.jsp
>>Internal Servlet Error:
>>
>>org.apache.jasper.JasperException: Unable to compile class for
>>
>>
> JSPC:\bin\tomcat\3.2.3\work\localhost_8080%2Flucas\_0002fswitch_0002ejspswit
> 
>>ch_jsp_3.java:74: Statement not reached.
>>out.write("\t\r\n\r\n");
>>^
>>===
>>
>>I couldn't figure this out for a while until I understood out how to
>>view
>>the java produced by the jsp code.  Because my case statement had
>>whitespaces between jsp tags the jasper engine decided to produce
>>out.write
>>statements in the wrong place.
>>
>>I modified my jsp to work but I wanted to ask if this was a bug.
>>I can just format my code differently, but it seems like a error other
>>newbies would make and I am sure it can get a bit nastier with more
>>complicated code. Is this behaviour part of the spec or can I expect
>>different implementations to behave differently.
>>
>>Rodney
>>
>>Here is a listing to reproduce the error.  I have fixed most of the
>>whitespace problem expect for the case statement just before monday.
>>
>>==
>><%!
>>java.util.Calendar todaysDate= java.util.Calendar.getInstance();
>>int myDay = todaysDate.get(todaysDate.DAY_OF_WEEK);
>>%>
>>
>>
>>
>>SWITCH
>>
>>
>>
>>
>>
>>
>>
>><% switch (myDay) {
>>case 1: %>
>>Today is Sunday
>><%  break; %>
>>
>><%  case 2: %>
>>Today is Monday
>><%  break;
>>
>>case 3: %>
>>Today is Tuesday
>><%  break;
>>case 4: %>
>>Today is Wednesday
>><%  break;
>>case 5:%>
>>Today is Thursday
>><%  break;
>>case 6: %>
>>Today is Friday
>><%  break;
>>case 7: %>
>>Today is Saturday
>><%  break;
>>default: %>
>>Invalid day of the week:
>><%  break;
>>} %>
>>
>>
>>
>>
>>
> 
> 





RE: Help!! Apache won't redirect to tomcat

2001-07-31 Thread Nance, Michael

Are you saying it does NOT use web.xml?  Then what does it use?

I did rename it and got the same error...so now I am very confused.
Also in server.xml
I have this
   

which points to the location of my servlets



-Original Message-
From: Andrew Inggs [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 11:59 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Help!! Apache won't redirect to tomcat


Nance, Michael wrote:
> I don't have a /buy at all it is  just a Virtual Name

In this case maybe it would help if you explained your directory
layout.

Also I think you might be looking at the web.xml in the
TOMCAT_HOME/conf directory, e.g., on my machine
C:\jakarta-tomcat-3.2.2\conf\web.xml
but this file is not used by Tomcat at all (try renaming or
moving it and you will see).  Hope that helps.

-- Andrew



RE: install/start tomcat-mod_jk-apache

2001-07-31 Thread Loïc Lefèvre

I think your directory could be the error:

Syntax error on line 8 of
/usr/home//tomcat/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto:
Can't locate API module structure `jk_module' in file

because of the 2 slashs /usr/home//tomcat/...

-Message d'origine-
De : Sampath K Settipalli [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 31 juillet 2001 17:16
À : [EMAIL PROTECTED]
Objet : install/start tomcat-mod_jk-apache


Hi,

  I've installed Apache 1.3.20 (built with source) &  binary version of
tomcat 3.2.3  on solaris. To build mod_jk I used source of tomcat 3.2.3
(src/native/jk library) and created mod_jk.so . It created with some
warnings: I copied the mod_jk.so to apache/libexec and added a Include
statement at end of httpd.conf for mod_jk.conf-auto which was created
when  tomcat was started.
I followed these steps as per mod_jk-howto.html Auto-Config.

Now when I start apache it says:::

/apache_1.3.20 > apachectl start
Syntax error on line 8 of
/usr/home//tomcat/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto:
Can't locate API module structure `jk_module' in file
/usr/home//apache_1.3.20/libexec/mod_jk.so: ld.so.1:
/usr/home/apache_1.3.20/bin/httpd: fatal: jk_module: can't find symbol
/usr/home/apache_1.3.20/bin/apachectl start: httpd could not be started
--
Line 8 of mod_jk.conf-auto is " LoadModule jk_module libexec/mod_jk.s "


Can someone please suggest what do I need to do to APache find
jk_module/ overcome this. Do I need to do some other steps in
installing/configuring Apache-tomcat-mod_jk

Thanks in Advance,
Sampath

Just incase if you want to check if mo_jk was created correctly  this is
the the display I got when mod_jk.so was created with apxs
---
>
$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -c *.c ../jk/*.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_ajp12_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_ajp13.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_ajp13_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_connect.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_jni_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_lb_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_msg_buff.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_nwmain.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_pool.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_sockbuf.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_uri_worker_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_util.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.

RE: image resize

2001-07-31 Thread Cory Powers

I'm not sure, but there is good info on working with images on the jguru
site. Try http://www.jguru.com/faq/home.jsp?topic=Media


-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: image resize


Hi, 
this is probably a bit of topic...
What would be the best way to resize images with servlet ?
I have .jpgs and .gifs in files (not kept in database) and I need to
create new files in different sizes from those images.
Is anyone willing to give me a hint (or more :) on how to do it. 

thanx
-r




image resize

2001-07-31 Thread Reynir Hübner

Hi, 
this is probably a bit of topic...
What would be the best way to resize images with servlet ?
I have .jpgs and .gifs in files (not kept in database) and I need to
create new files in different sizes from those images.
Is anyone willing to give me a hint (or more :) on how to do it. 

thanx
-r





install/start tomcat-mod_jk-apache

2001-07-31 Thread Sampath K Settipalli

Hi,

  I've installed Apache 1.3.20 (built with source) &  binary version of
tomcat 3.2.3  on solaris. To build mod_jk I used source of tomcat 3.2.3
(src/native/jk library) and created mod_jk.so . It created with some
warnings: I copied the mod_jk.so to apache/libexec and added a Include
statement at end of httpd.conf for mod_jk.conf-auto which was created
when  tomcat was started.
I followed these steps as per mod_jk-howto.html Auto-Config.

Now when I start apache it says:::

/apache_1.3.20 > apachectl start
Syntax error on line 8 of
/usr/home//tomcat/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto:
Can't locate API module structure `jk_module' in file
/usr/home//apache_1.3.20/libexec/mod_jk.so: ld.so.1:
/usr/home/apache_1.3.20/bin/httpd: fatal: jk_module: can't find symbol
/usr/home/apache_1.3.20/bin/apachectl start: httpd could not be started
--
Line 8 of mod_jk.conf-auto is " LoadModule jk_module libexec/mod_jk.s "


Can someone please suggest what do I need to do to APache find
jk_module/ overcome this. Do I need to do some other steps in
installing/configuring Apache-tomcat-mod_jk

Thanks in Advance,
Sampath

Just incase if you want to check if mo_jk was created correctly  this is
the the display I got when mod_jk.so was created with apxs
---
>
$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -c *.c ../jk/*.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_ajp12_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_ajp13.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_ajp13_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_connect.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_jni_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_lb_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_msg_buff.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_nwmain.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_pool.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_sockbuf.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_uri_worker_map.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_util.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c jk_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp12_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp13.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include -I../jk
-I/usr/java1.2/include
-I/usr/java1.2/include/solaris -DSOLARIS  -c ../jk/jk_ajp13_worker.c
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE

-I/usr/home/apache_1.3.20/include

  1   2   >