Re: Mozilla and Tomcat

2001-08-24 Thread Lloyd Llewellyn

Speaking of Mozilla -

I've noticed that using Mozilla on Windows to test my web apps seems
rather slow.  It takes a couple seconds to render the pages.

Since I use Mozilla almost exclusively, I thought this was just database
processing on the server.

When one day I happened to use IE, though, I noticed that the same pages
loaded virtually instantaneously - like, BANG, it's there.

I haven't been conscious of this effect on other web sites.  Not sure if
it's because I'm more attuned to performance of my own work than sites I
visit casually, or if there is some bizarre Mozilla interaction going
on...

Has anyone else noticed this?





Re: Mozilla and Tomcat

2001-08-24 Thread Lloyd Llewellyn

So readers, can I assume noone has anything useful to add to why Tomcat
produces: htmlbody/body/html
 
 It might have nothing to do with it, but just yesterday I had Netscape6 produce that 
very page, when it shouldn't have. I was obtaining a personal certificate from Thawte 
and N6 gave me that output after installing the Cert. The certificate got installed, 
but the page source was precisely that.


Something else just occurred to me - Mozilla's view  source on dynamic
pages has been broken for a looong time.






Re: How to unsubscribe ??

2001-08-24 Thread Roberto B.

To remove your address from the list, send a message to:
   [EMAIL PROTECTED]

Roberto.


- Original Message - 
From: Sunil Chandurkar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 7:56 AM
Subject: How to unsubscribe ??


 Hi
 I want quit this list.. anyone of u wud like to tell
 me how to unscribe this
 
 Thanx for cooperation shown till now...
 
 /sunil
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net




RE: Start up Sax exception init param

2001-08-24 Thread Vanlerberghe, Luc

 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
 
 On Thu, 23 Aug 2001, cib wrote:
 
  Date: Thu, 23 Aug 2001 08:54:24 +0200
  From: cib [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED], cib [EMAIL PROTECTED]
  To: Tomcat User Mail List [EMAIL PROTECTED]
  Subject: Start up Sax exception init param
 
  Hi,
  I've upgraded to Cocoon2.0b1 from beta1.
  But since I changed the war old war file to the new one ( 
 I've erased 
  the work directory before, idem for the log files), I get an 
  exception at Tomcat's start. No one answered my question on cocoon 
  mailing list, so I try it here. The exception is:
 
  PARSE error at line 181 column -1
  org.xml.sax.SAXParseException: 
 org.apache.crimson.parser/V-036 web-app 
  init-param
 
 
 This sounds like there might be a problem with your web.xml 
 file at line 181.  In particular, if you have the elements in 
 an order different than what the DTD requires, you will 
 *always* get XML validation errors.
 
 Craig McClanahan
 

If you take a peek inside crimson.jar, you'll find a properties file
(org\apache\crimson\parser\resources\Messages_en.properties) with the full
English messages:

So 'org.apache.crimson.parser/V-036 web-app init-param' actually means
'Element web-app does not allow init-param here.'

There must be a way to get the crimson parser to use these human readable
forms for errors...

Luc Vanlerberghe




Re: How do I make Tomcat include needed jars for my servlet?

2001-08-24 Thread Ju Yan Jery Qin

First thank Vladimir Grishchenko and Rob S. for your help

But in my case, since our product has its own framework and we just do some 
customization. So the directory structure is fixed, it looks like this
d:\vendor\webapp1\codebase\
under this directory there are classes used by webapp1
d:\vendor\webapp1\codebase\
under this directory there are classes used by webapp2
The two webapps has many other directories and also they have many similar classes 
with the same package name.

In our case,
server.xml has these entries:

 Context path=/webapp1
  docBase=d:\vendor\webapp1\codebase
  debug=0
  reloadable=true 
  /Context
 Context path=/webapp2
  docBase=d:\vendor\webapp2\codebase
  debug=0
  reloadable=true 
  /Context
Our developer is used to generate classes in d:\vendor\webapp1\codebase\ and 
d:\vendor\webapp1\codebase\

If I can redirect d:\vendor\webappx\WEB-INF\classes to d:\vendor\webappx\codebase\ 
just like symbolic link under UNIX, this problem will be resolved. So I wonder if 
there is a place where we can define CLASSPATH in our webapp instead of put our 
classes in a fixed place( although it is relavant to our webapp ). I think this is a 
good feature if implemented.



precompiling JSP

2001-08-24 Thread Atanas Michev

Hi,
I would appreciate if someone can tell me how to:
- precompile a JSP file step by step
- precompile more than one JSP file in one Servlet in order to make faster 
their approaching when calling them for the first time.

Many thanks in advance
Atanas

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




Re: Load balancing tomcat and webapp directory location

2001-08-24 Thread David Cassidy

I'm sure a million people are going to say

RTFM

But I'm nice :)

Have a look at mod_jk . It is a very nice module and allows 
apache to send requests through to tomcat.
You can have more than one apache and more than tomcat - depending
on how many machines you have :)

Your webapps setup is a tomcat thing. I tend to copy zero length
files ( ie blank .jsp pages) onto the area that apache serves from
so that it can do the checks for index.jsp etc and be happy !

Happy reading

David


Rick Anderson wrote:
 
 We're using tomcat 3.2.3 at the moment and are attempting to configure
 tomcat so that it can be load balanced behind an apache web server.
 
 Where should the webapps directory be located? Does it need to copied
 onto
 each machine running tomcat or can it be located on the apache server?
 
 I haven't found docs on this yet. If some one could point me in the
 right
 direction I'd appreciate it.
 
 Thanks,
 -Rick Anderson
 
 __
 Rick Anderson   | [EMAIL PROTECTED]
 |_
 Rutgers University, Continuous Education  Outreach
 Consulting System Administrator,  (732)932-3938
 __



Re: precompiling JSP

2001-08-24 Thread Zsolt Horvath

  public void precompileFile(File file) {

  try {
URL precompileURL = new URL(rootURL,
file.getName()+?jsp_precompile=true);
HttpURLConnection conn = (HttpURLConnection)
precompileURL.openConnection();
int responseCode = conn.getResponseCode();

  }catch (Exception exc) {
System.out.println(Exception: +exc.toString()+ for
+startDir+file.getName());
  }
  }

- Original Message -
From: Atanas Michev [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 11:17 AM
Subject: precompiling JSP


 Hi,
 I would appreciate if someone can tell me how to:
 - precompile a JSP file step by step
 - precompile more than one JSP file in one Servlet in order to make faster
 their approaching when calling them for the first time.

 Many thanks in advance
 Atanas

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






A query on Single Sign On

2001-08-24 Thread Shilpa Potnis

Hi

I would like to know about the Single Sign On Facility.

If I have an application running on oracle apps server and one on Tomcat
can I use the single sign On Facility availiable with Apache. Of yes
how.

Shilpa



Trying to start Tomcat without jaxp.jar and parser.jar

2001-08-24 Thread Enric Staromiejski

We need to start Tomcat without having jaxp.jar and parser.jar within de
tomcat/lib directory. When doing this we get exceptions (Segment fault). Our
need comes from the fact that we're trying to start Cocoon 2.0b2 under
Tomcat. We're getting and exception related to the use of jaxp and parser by
Tomcat. All docs, faqs, and list are saying that the solution is removing or
renaming the jaxp.jar and the parser.jar under tomcat/lib and putting there
the Xerces_xxx.jar. But When doing this Tomcat simply is unable to start.


Any help would be appreciated

Enric




Error 500!!!!

2001-08-24 Thread Rupak Joshi

I am very new to Jakarta Tomcat and Using this product with apache. It 
was working fine but after shuting down the computer when I restart the 
Jakarta Tomcat it work .I can see Jakarta Home Page at localost:8080/ 
But when I try to open jsp pages it says.
=20
Error 500=20
Locations: /dir/hello.jsp
Internal Servlet Error.

I am using Linux 6.2
Tomcat 3.1
apache 1.18
What might be the error.
Pls give me the hints.




Re: precompiling JSP

2001-08-24 Thread Atanas Michev

... thanks a lot for ansuering me, but I can't understand where am I 
supposed to put that code ;o)


From: Zsolt Horvath [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: precompiling JSP
Date: Fri, 24 Aug 2001 12:21:15 +0200

   public void precompileFile(File file) {

   try {
 URL precompileURL = new URL(rootURL,
file.getName()+?jsp_precompile=true);
 HttpURLConnection conn = (HttpURLConnection)
precompileURL.openConnection();
 int responseCode = conn.getResponseCode();

   }catch (Exception exc) {
 System.out.println(Exception: +exc.toString()+ for
+startDir+file.getName());
   }
   }

- Original Message -
From: Atanas Michev [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 11:17 AM
Subject: precompiling JSP


  Hi,
  I would appreciate if someone can tell me how to:
  - precompile a JSP file step by step
  - precompile more than one JSP file in one Servlet in order to make 
faster
  their approaching when calling them for the first time.
 
  Many thanks in advance
  Atanas
 
  _
  Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp
 
 



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




IIS5.0 and remote workers / shared webserver

2001-08-24 Thread Steven Ottenhoff


Hi, 

I really need some help here, i've three questions

Question 1:

Why can't i get isapi_redirector.dll loaded into IIS which is a shared
webserver ? I did it on a single webserver without any problems, but with
the shared server i get an error about not being able to load dll, data is
the error.  I have no clues left.


Question 2:

the tomcat server is on a different machine than the IIS server (this is not
the shared ofcourse). I configured the workers.properties to point to the
other machine and added the context to uriworkers.properties file. No
succes. 
Can somebody give me an example configuration for my situation ?


Question 3:

Am i right to assum that a context is the part of the url which should be
handled by the isapi_redirector.dll ?


tnx1.0e06






RE: precompiling JSP

2001-08-24 Thread Randy Layman


You could use JspC when you deploy.  This way your users would never
have to wait for a compile.  The command that I use is:

%TOMCAT_HOME%/bin/jspc -d Path to output your Java Source
-webxml Path to output the web.xml file -webapp  Path to the root of
the web.xml files
Now run javac on the directory you output the source to

I did find it necessary to add the jasper.jar and tomcat_util.jar
file to the classpath for this command under Tomcat 3.3.


I generally try and use Ant to build my WAR files and the general
steps that I use are:
1.  Fetch source from repository (SourceSafe, CVS, etc), this will
get all the JSPs in a temp source directory that has a WEB-INF/source
directory to hold the .java source

2.  Compile JSPs using the following:
!-- Use JspC to compile the JSPs into .java --
java classname=org.apache.jasper.JspC
  arg value=-d /
  arg value=${src}/WEB-INF/source /
  arg value=-webxml /
  arg value=${src}/WEB-INF/source/auto-web.xml /
  arg value=-webapp /
  arg value=${src} /
  classpath
pathelement location=${tomcatRoot}/lib/tomcat.jar /
pathelement
location=${tomcatRoot}/lib/common/servlet.jar /
pathelement location=${tomcatRoot}/lib/container/jasper.jar /
pathelement
location=${tomcatRoot}/lib/container/tomcat_util.jar /
  /classpath
/java

3.  Use javac to compile WEB-INF/source into WEB-INF/classes
4.  Remove the sources (*.jsp, *.java) from the src directory
5.  (Manually) merge the web.xml with the auto-web.xml from jspC
5.  Using JAR command, create a WAR file
6.  FTP the WAR to a temp place on the test and/or production server
7.  (Manually) Run a script that stops Tomcat, removes the expanded
webapp, copies the new WAR file, and starts Tomcat again.

Depending upon how large the source tree is and the speed of the
machine in question, I have found that I can run the script faster than I
can type the respective commands by hand.

Randy

 -Original Message-
 From: Atanas Michev [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 5:17 AM
 To: [EMAIL PROTECTED]
 Subject: precompiling JSP
 
 
 Hi,
 I would appreciate if someone can tell me how to:
 - precompile a JSP file step by step
 - precompile more than one JSP file in one Servlet in order 
 to make faster 
 their approaching when calling them for the first time.
 
 Many thanks in advance
 Atanas
 
 _
 Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp
 



RE: Trying to start Tomcat without jaxp.jar and parser.jar

2001-08-24 Thread Randy Layman


You might try using Tomcat 3.3 - it segments the class loaders off
so that what  Tomcat needs you don't see, allowing multiple implementations
of API, like XML parsers.

Randy


 -Original Message-
 From: Enric Staromiejski [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 6:28 AM
 To: [EMAIL PROTECTED]
 Subject: Trying to start Tomcat without jaxp.jar and parser.jar
 
 
 We need to start Tomcat without having jaxp.jar and 
 parser.jar within de
 tomcat/lib directory. When doing this we get exceptions 
 (Segment fault). Our
 need comes from the fact that we're trying to start Cocoon 2.0b2 under
 Tomcat. We're getting and exception related to the use of 
 jaxp and parser by
 Tomcat. All docs, faqs, and list are saying that the solution 
 is removing or
 renaming the jaxp.jar and the parser.jar under tomcat/lib and 
 putting there
 the Xerces_xxx.jar. But When doing this Tomcat simply is 
 unable to start.
 
 
 Any help would be appreciated
 
 Enric
 



Please help: Problems building tomcat b7, environment variables not recognized

2001-08-24 Thread Levent Gündogdu

Hi everyone,

I installed and compiled all prerequisites for tc b7 but when starting 
the build process, I get the following error:

[...]

build-static:
 [copy] Could not find file 
/var/asf/asf.current/tomcat/tomcat.build.b7/jakarta-tomcat-4.0-b7-src/catalina/${jndi.home}/lib/jndi.jar
 
to copy.
 [copy] Could not find file 
/var/asf/asf.current/tomcat/tomcat.build.b7/jakarta-tomcat-4.0-b7-src/catalina/${jaxp.home}/crimson.jar
 
to copy.

BUILD FAILED

/var/asf/asf.current/tomcat/tomcat.build.b7/jakarta-tomcat-4.0-b7-src/catalina/build.xml:100:
 
/var/asf/asf.current/tomcat/tomcat.build.b7/jakarta-tomcat-4.0-b7-src/catalina/${regexp.home}
 
not found.


Well, JNDI_HOME, JAXP_HOME and REGEXP_HOME are all set. I wonder, why 
the error messages are relative to $TOMCAT_HOME anyway.

Please, if you have any ideas, give me a hint.

I did not have such problems building b5 (didn't try b6 though).


Thank you very much, everyone.

Bye,
 Levo.





RE: precompiling JSP

2001-08-24 Thread Atanas Michev


Many thanks for the help Randy!

From: Randy Layman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: precompiling JSP
Date: Fri, 24 Aug 2001 07:03:30 -0400


   You could use JspC when you deploy.  This way your users would never
have to wait for a compile.  The command that I use is:

   %TOMCAT_HOME%/bin/jspc -d Path to output your Java Source
-webxml Path to output the web.xml file -webapp  Path to the root of
the web.xml files
   Now run javac on the directory you output the source to

   I did find it necessary to add the jasper.jar and tomcat_util.jar
file to the classpath for this command under Tomcat 3.3.


   I generally try and use Ant to build my WAR files and the general
steps that I use are:
   1.  Fetch source from repository (SourceSafe, CVS, etc), this will
get all the JSPs in a temp source directory that has a WEB-INF/source
directory to hold the .java source

   2.  Compile JSPs using the following:
 !-- Use JspC to compile the JSPs into .java --
 java classname=org.apache.jasper.JspC
   arg value=-d /
   arg value=${src}/WEB-INF/source /
   arg value=-webxml /
   arg value=${src}/WEB-INF/source/auto-web.xml /
   arg value=-webapp /
   arg value=${src} /
   classpath
 pathelement location=${tomcatRoot}/lib/tomcat.jar /
   pathelement
location=${tomcatRoot}/lib/common/servlet.jar /
 pathelement location=${tomcatRoot}/lib/container/jasper.jar /
   pathelement
location=${tomcatRoot}/lib/container/tomcat_util.jar /
   /classpath
 /java

   3.  Use javac to compile WEB-INF/source into WEB-INF/classes
   4.  Remove the sources (*.jsp, *.java) from the src directory
   5.  (Manually) merge the web.xml with the auto-web.xml from jspC
   5.  Using JAR command, create a WAR file
   6.  FTP the WAR to a temp place on the test and/or production server
   7.  (Manually) Run a script that stops Tomcat, removes the expanded
webapp, copies the new WAR file, and starts Tomcat again.

   Depending upon how large the source tree is and the speed of the
machine in question, I have found that I can run the script faster than I
can type the respective commands by hand.

   Randy

  -Original Message-
  From: Atanas Michev [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 24, 2001 5:17 AM
  To: [EMAIL PROTECTED]
  Subject: precompiling JSP
 
 
  Hi,
  I would appreciate if someone can tell me how to:
  - precompile a JSP file step by step
  - precompile more than one JSP file in one Servlet in order
  to make faster
  their approaching when calling them for the first time.
 
  Many thanks in advance
  Atanas
 
  _
  Get your FREE download of MSN Explorer at
  http://explorer.msn.com/intl.asp
 


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




Tomcat Performance

2001-08-24 Thread Hari

Hi,

Which JDK gives best performance for TOMCAT 3.2 on Win2k  Linux?  I heard
that IBM jdk will give higher performance but when I run Tomcat  using IBM
Jdk I feel it is slower than Sun's (on Windows 2000).

Kindly advice me in this regard.

- Hari.

=
Hariharasubramanian.R
Developer, iEvents,
Kumaran Systems (Betawave Solutions)
www.kumaran.com
www.betawavesolutions.com
Reinforcing Your Business
Ph: 0091-44-620 2079, 4967 (Extn: 318/328)
E-Mail: [EMAIL PROTECTED]




Re: Any idea?

2001-08-24 Thread Thomas Cherry

Yea, join the developer network you @#$@$, then you get it for free.  
This is a respectable list.  Don't do this sort of thing here.

On Thursday, August 23, 2001, at 06:02  PM, Sasha Tartchinski wrote:

 Has anywone know where can i download and burn Microsoft Office XP.
 Thanks.

--
Don't give in to hate- that leads to the dark side. -Obi-Wan, Jedi Knight



RE: Tomcat Performance

2001-08-24 Thread Aravind Naidu


Maybe it has got something to do with a crappy OS ! Sorry. could'nt resist

On RH 7.1 linux, the IBM JDK 1.3 (latest build) runs like a scaled cat. 

-- Aravind


-Original Message-
From: Hari [mailto:[EMAIL PROTECTED]]
Sent: Friday, 24 August 2001 20:20
To: [EMAIL PROTECTED]
Subject: Tomcat Performance


Hi,

Which JDK gives best performance for TOMCAT 3.2 on Win2k  Linux?  I heard
that IBM jdk will give higher performance but when I run Tomcat  using IBM
Jdk I feel it is slower than Sun's (on Windows 2000).

Kindly advice me in this regard.

- Hari.

=
Hariharasubramanian.R
Developer, iEvents,
Kumaran Systems (Betawave Solutions)
www.kumaran.com
www.betawavesolutions.com
Reinforcing Your Business
Ph: 0091-44-620 2079, 4967 (Extn: 318/328)
E-Mail: [EMAIL PROTECTED]



Re: Tomcat Performance

2001-08-24 Thread Rob S.

Again demonstrating that performance is completely dependant upon the OS, JDK, type of 
web application, etc.  Blanket statements like, Tomcat is faster/slower than some 
other container are *pretty much* (not completely) useless nowadays.

How hard is it to install JDKs and test?  Change the value of JAVA_HOME, restart the 
container, and run your tests again...

- r

On Fri, 24 Aug 2001 17:49:42 +0530 [EMAIL PROTECTED] wrote:
 Hi,
 
 Which JDK gives best performance for TOMCAT 3.2 on Win2k  Linux?  I heard
 that IBM jdk will give higher performance but when I run Tomcat  using IBM
 Jdk I feel it is slower than Sun's (on Windows 2000).
 
 Kindly advice me in this regard.
 
 - Hari.
 
 =
 Hariharasubramanian.R
 Developer, iEvents,
 Kumaran Systems (Betawave Solutions)
 www.kumaran.com
 www.betawavesolutions.com
 Reinforcing Your Business
 Ph: 0091-44-620 2079, 4967 (Extn: 318/328)
 E-Mail: [EMAIL PROTECTED]






RE: Tomcat Performance

2001-08-24 Thread Michael Weissenbacher

i had the best results with the sun jdk 1.3.1 on windows and with ibm jdk
1.3.0 for linux. on some linux machines the sun jdk wouldn't work at all...

-Original Message-
From: Hari [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:20 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Performance


Hi,

Which JDK gives best performance for TOMCAT 3.2 on Win2k  Linux?  I heard
that IBM jdk will give higher performance but when I run Tomcat  using IBM
Jdk I feel it is slower than Sun's (on Windows 2000).

Kindly advice me in this regard.

- Hari.

=
Hariharasubramanian.R
Developer, iEvents,
Kumaran Systems (Betawave Solutions)
www.kumaran.com
www.betawavesolutions.com
Reinforcing Your Business
Ph: 0091-44-620 2079, 4967 (Extn: 318/328)
E-Mail: [EMAIL PROTECTED]




jspc character mangling

2001-08-24 Thread Michael Fuchs

hi,

i am precompiling my jsp pages, otherwise the generated class file names
would be too long (Is this solved in the future ?). 

But if the filename of a jsp page contains an underscore (which is legal
in a java identifier), jspc.sh generates wrong java files, because it
mangles the underscores, too.

Example:
File name: LIST_CHAPTERS.jsp
Generated Java File is LIST_CHAPTERS.java
But the class inside has the name LIST_0005fCHAPTERS.java, so the
compiler
throws an error message.

Does anyone have a solution to this problem ?


3 days trying to make mod_webapp.so !no succes

2001-08-24 Thread Bekkali Hatim - Soamaï

Hi

i have redhat 6.2 with kernel 2.2.18 ( Va linux) , apache 1.3.20 
i tried to use the mod-webapp.so comming from 
webapp-module-1.0-tc40b7-linux.tar.gz
but apache didnt start because of error 
Cannot load /usr/local/apache/libexec/mod_webapp.so into server: 
/lib/libc.so.6: version `GLIBC_2.2' not found (required by 
/usr/local/apache/libexec/mod_webapp.so , my glibc is 
glibc-2.1.3-22.1
glibc-devel-2.1.3-22.1
and for resean dependances i can't upgrade to glibc-2.2


then i tried ( yesterday) to install the source of webapp to compile it , 
from 
CVS , i read the README.TXT , and i follow exactelly the explication :
i can configure , but when  i type make i have this error 
Compiling sources in /app/webapp-module-1.0-tc40b7/apache-1.3...
make[1]: Entering directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
Linking Apache 1.3 WebApp Module
/app/webapp-module-1.0-tc40b7/apr/libtool: mod_webapp.lo: command not found
make[1]: *** [mod_webapp.so] Error 127
make[1]: Leaving directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
make: *** [local-all] Error 2

i read some mails in the archive mailing list and i made a modification in 
the webapp-module-1.0-tc40b7/apache-1.3/Makefile

APXS_LD_SHLIB =  /usr/bin/gcc   

and i have the same error like this one :
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg29867.html

any idea ? any help ?

thanks you a lot

Hatim .



Re: Tomcat 4.0.7b and lib help (FIXED)

2001-08-24 Thread Shawn Evans

I don't know about everyone else, but I got my Oracle classes12.zip in my
lib and it wouldn't work so after looking at my code, wondering what I
messed up (4 hours), I decided to change it to *.jar.  OMG it decided to
work... might want to have TomCat be able to do both zip  jar's in the
lib

just my 2 cents.

Shawn

- Original Message -
From: Jonathan Eric Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Evans, Shawn
[EMAIL PROTECTED]
Sent: Thursday, August 23, 2001 12:52 PM
Subject: Re: Tomcat 4.0.7b and lib help


 My guess is that this may be the same problem that I ran into while trying
 to use JDBCRealm. I think you have to put the .jar file in
 TOMCAT_HOME/server/lib instead of TOMCAT_HOME/lib for low-level .jar files
 that get used by Tomcat itself? I'm not an expert, that just seemed to be
 experience that I had.

 Jon

 - Original Message -
 From: Shawn Evans [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 23, 2001 11:45 AM
 Subject: Tomcat 4.0.7b and lib help


  I have a servlet FBJServlet that uses a DB connection pool, and I have
the
  JDBC driver for Oracle installed as well in the /lib/classes12.jar... I
 open
  the jar and see OracleDataSource... but I get the error below.
  Root Cause:
  java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
  at
com.sterling.util.db.pooling.DBPoolManager.init(DBPoolManager.java:110)
  at com.sterling.util.db.pooling.DBPoolManager.(DBPoolManager.java:17)
  at
 

com.sterling.util.db.pooling.DBPoolManager.getInstance(DBPoolManager.java:23
  )
  at com.sterling.ForceBrowserJ.FBJServlet.init(FBJServlet.java:15)
  at javax.servlet.GenericServlet.init(GenericServlet.java:366)
  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:833)
  at
 

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
  at
 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
  va:214)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  66)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
  va:215)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  66)
  at
 

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
  46)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  64)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
  at
 

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
  )
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  66)
  at
 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  64)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
  :163)
  at
 

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
  66)
  at
 

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
  1000)
  at
 

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
  )
  at java.lang.Thread.run(Thread.java:484)
 
 
 




Re: Tomcat 4.0.7b and lib help (FIXED)

2001-08-24 Thread Dmitri Colebatch

This has come up before...  tomcat follows the spec - loading all jars in
WEB-INF/lib... no mention of zips (o:

On Fri, 24 Aug 2001, Shawn Evans wrote:

 I don't know about everyone else, but I got my Oracle classes12.zip in my
 lib and it wouldn't work so after looking at my code, wondering what I
 messed up (4 hours), I decided to change it to *.jar.  OMG it decided to
 work... might want to have TomCat be able to do both zip  jar's in the
 lib
 
 just my 2 cents.
 
 Shawn
 
 - Original Message -
 From: Jonathan Eric Miller [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; Evans, Shawn
 [EMAIL PROTECTED]
 Sent: Thursday, August 23, 2001 12:52 PM
 Subject: Re: Tomcat 4.0.7b and lib help
 
 
  My guess is that this may be the same problem that I ran into while trying
  to use JDBCRealm. I think you have to put the .jar file in
  TOMCAT_HOME/server/lib instead of TOMCAT_HOME/lib for low-level .jar files
  that get used by Tomcat itself? I'm not an expert, that just seemed to be
  experience that I had.
 
  Jon
 
  - Original Message -
  From: Shawn Evans [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, August 23, 2001 11:45 AM
  Subject: Tomcat 4.0.7b and lib help
 
 
   I have a servlet FBJServlet that uses a DB connection pool, and I have
 the
   JDBC driver for Oracle installed as well in the /lib/classes12.jar... I
  open
   the jar and see OracleDataSource... but I get the error below.
   Root Cause:
   java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
   at
 com.sterling.util.db.pooling.DBPoolManager.init(DBPoolManager.java:110)
   at com.sterling.util.db.pooling.DBPoolManager.(DBPoolManager.java:17)
   at
  
 
 com.sterling.util.db.pooling.DBPoolManager.getInstance(DBPoolManager.java:23
   )
   at com.sterling.ForceBrowserJ.FBJServlet.init(FBJServlet.java:15)
   at javax.servlet.GenericServlet.init(GenericServlet.java:366)
   at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:833)
   at
  
 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
   at
  
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
   va:214)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
   66)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
  
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
   va:215)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
   66)
   at
  
 
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
   46)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
   64)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
  
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
   at
  
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
   )
   at
  
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
   66)
   at
  
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
   64)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
  
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
   :163)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
   66)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
  
 
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
   1000)
   at
  
 
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
   )
   at java.lang.Thread.run(Thread.java:484)
  
  
  
 
 




RE: Trying to start Tomcat without jaxp.jar and parser.jar

2001-08-24 Thread Enric Staromiejski

We've solved it. It seems the problem is the token bug of jdk1.3.1.

We've overpassed it initializing the TOMCAT_OPT to -classic inside the
file tomcat/lib/tomcat.sh

Thanks anyway

Enric


-Mensaje original-
De: Randy Layman [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 24 de agosto de 2001 13:05
Para: [EMAIL PROTECTED]
Asunto: RE: Trying to start Tomcat without jaxp.jar and parser.jar



You might try using Tomcat 3.3 - it segments the class loaders off
so that what  Tomcat needs you don't see, allowing multiple implementations
of API, like XML parsers.

Randy


 -Original Message-
 From: Enric Staromiejski [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 6:28 AM
 To: [EMAIL PROTECTED]
 Subject: Trying to start Tomcat without jaxp.jar and parser.jar


 We need to start Tomcat without having jaxp.jar and
 parser.jar within de
 tomcat/lib directory. When doing this we get exceptions
 (Segment fault). Our
 need comes from the fact that we're trying to start Cocoon 2.0b2 under
 Tomcat. We're getting and exception related to the use of
 jaxp and parser by
 Tomcat. All docs, faqs, and list are saying that the solution
 is removing or
 renaming the jaxp.jar and the parser.jar under tomcat/lib and
 putting there
 the Xerces_xxx.jar. But When doing this Tomcat simply is
 unable to start.


 Any help would be appreciated

 Enric





Re: Tomcat 4.0.7b and lib help (FIXED)

2001-08-24 Thread Shawn Evans

Understand I am an idiot... but oh well... just a suggestion then for people
like me that read... in Developing Applications with Tomcat, in 4.1
Directory Structure... in the lib/ portions, just put a note... 'JAR's only
(No zips)'... I know it says 'JAR files' but I thought zips and jars were
interchangeable... :-)


- Original Message -
From: Dmitri Colebatch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Shawn Evans
[EMAIL PROTECTED]
Sent: Friday, August 24, 2001 9:26 AM
Subject: Re: Tomcat 4.0.7b and lib help (FIXED)


 This has come up before...  tomcat follows the spec - loading all jars in
 WEB-INF/lib... no mention of zips (o:

 On Fri, 24 Aug 2001, Shawn Evans wrote:

  I don't know about everyone else, but I got my Oracle classes12.zip in
my
  lib and it wouldn't work so after looking at my code, wondering what
I
  messed up (4 hours), I decided to change it to *.jar.  OMG it decided to
  work... might want to have TomCat be able to do both zip  jar's in the
  lib
 
  just my 2 cents.
 
  Shawn
 
  - Original Message -
  From: Jonathan Eric Miller [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]; Evans, Shawn
  [EMAIL PROTECTED]
  Sent: Thursday, August 23, 2001 12:52 PM
  Subject: Re: Tomcat 4.0.7b and lib help
 
 
   My guess is that this may be the same problem that I ran into while
trying
   to use JDBCRealm. I think you have to put the .jar file in
   TOMCAT_HOME/server/lib instead of TOMCAT_HOME/lib for low-level .jar
files
   that get used by Tomcat itself? I'm not an expert, that just seemed to
be
   experience that I had.
  
   Jon
  
   - Original Message -
   From: Shawn Evans [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Thursday, August 23, 2001 11:45 AM
   Subject: Tomcat 4.0.7b and lib help
  
  
I have a servlet FBJServlet that uses a DB connection pool, and I
have
  the
JDBC driver for Oracle installed as well in the
/lib/classes12.jar... I
   open
the jar and see OracleDataSource... but I get the error below.
Root Cause:
java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
at
  com.sterling.util.db.pooling.DBPoolManager.init(DBPoolManager.java:110)
at
com.sterling.util.db.pooling.DBPoolManager.(DBPoolManager.java:17)
at
   
  
 
com.sterling.util.db.pooling.DBPoolManager.getInstance(DBPoolManager.java:23
)
at com.sterling.ForceBrowserJ.FBJServlet.init(FBJServlet.java:15)
at javax.servlet.GenericServlet.init(GenericServlet.java:366)
at
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:833)
at
   
  
 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
at
   
  
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
   
  
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
   
  
 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
   
 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
at
   
  
 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
   
 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
   
  
 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
   
  
 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
   
  
 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1000)
at
   
  
 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
)
at java.lang.Thread.run(Thread.java:484)
   
   
   
  
 





Re: Tomcat Performance

2001-08-24 Thread Rob S.

On Fri, 24 Aug 2001 14:43:50 +0200 [EMAIL PROTECTED] wrote:
 i had the best results with the sun jdk 1.3.1 on windows and with ibm jdk
 1.3.0 for linux. on some linux machines the sun jdk wouldn't work at all...

Not to defend it or anything =) but I've run it on suse, redhat, debian, and slackware.

- r




Re: Tomcat 4.0.7b and lib help (FIXED)

2001-08-24 Thread Rob S.

 Understand I am an idiot... but oh well... just a suggestion then for
 people like me that read... in Developing Applications with Tomcat, in 4.1
 Directory Structure... in the lib/ portions, just put a note... 'JAR's only
 (No zips)'... I know it says 'JAR files' but I thought zips and jars were
 interchangeable... :-)

Yeah we went over this problem on the list a few days ago ;)

- r




Re: mod_webapp and make !!!

2001-08-24 Thread Pier Fumagalli

Quoting hatim [EMAIL PROTECTED]:

 Hi
 
 i have redhat 6.2 with kernel 2.2.18 ( Va linux) , apache 1.3.20 
 i tried to use the mod-webapp.so comming from 
 webapp-module-1.0-tc40b7-linux.tar.gz
 but apache didnt start because of error 
 Cannot load /usr/local/apache/libexec/mod_webapp.so into server: 
 /lib/libc.so.6: version `GLIBC_2.2' not found (required by 
 /usr/local/apache/libexec/mod_webapp.so , my glibc is 
 glibc-2.1.3-22.1
 glibc-devel-2.1.3-22.1
 and for resean dependances i can't upgrade to glibc-2.2

You downloaded the wrong version of the binary... There's one for GLIBC 
2.2 and one for GLIBC 2.1


 then i tried ( today) to install the source of webapp to compile it ,
 from 
 CVS , i read the README.TXT , and i follow exactelly the explication :
 i can configure , but when  i type make i have this error 
 Compiling sources in /app/webapp-module-1.0-tc40b7/apache-1.3...
 make[1]: Entering directory `/app/webapp-module-1.0-tc40b7/apache-
1.3'
 Linking Apache 1.3 WebApp Module
 /app/webapp-module-1.0-tc40b7/apr/libtool: mod_webapp.lo: 
command not
 found
 make[1]: *** [mod_webapp.so] Error 127
 make[1]: Leaving directory `/app/webapp-module-1.0-tc40b7/apache-
1.3'
 make: *** [local-all] Error 2
 
 any idea ? any help ?

Your system has a broken APXS support.

Pier



Re: Load balancing tomcat and webapp directory location

2001-08-24 Thread Richard Draucker

In your $TOMCAT_HOME/doc/appdev/ directory is a wonderful doc by Craig 
that fully explains all of this.  

-r 



On Thursday 23 August 2001 05:14 pm, you wrote:
 We're using tomcat 3.2.3 at the moment and are attempting to
 configure tomcat so that it can be load balanced behind an apache web
 server.

 Where should the webapps directory be located? Does it need to copied
 onto each machine running tomcat or can it be located on the apache
 server?

 I haven't found docs on this yet. If some one could point me in the
 right direction I'd appreciate it.

 Thanks,
 -Rick Anderson



 __
 Rick Anderson | [EMAIL PROTECTED]
 |_
 Rutgers University, Continuous Education  Outreach
 Consulting System Administrator,  (732)932-3938
 __




Tomcat Shirts?

2001-08-24 Thread Craig_Reichenbach


Hi, I recently saw someone with a Tomcat T-shirt.  Is there anywhere one
can order Tomcat gear???   Or even Java junk for that matter?  (posters,
izods, mugs)?  I'd love to have a small Java logo poster to hang at work.

Thanks,
Craig




RE: Any idea?

2001-08-24 Thread Deacon Marcus

Hi,

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sasha Tartchinski
 Sent: Friday, August 24, 2001 1:03 AM
 To: [EMAIL PROTECTED]
 Subject: Any idea?


 

 Has anywone know where can i download and burn Microsoft Office XP.
 Thanks.

Lemme think...
First, you must buy MS Office XP.
Then, get some software ripping CDs to .iso files.
Rip the CDs containing MS Office XP to .iso files.
Buy a cd-recorder.
Download Tomcat, preferably 4.0 b7.
Install Tomcat, for example in c:\tomcat
Make directory c:\tomcat\webapps\root\msoffice
Copy .iso files containing MS Office to c:\tomcat\webapps\root\msoffice
Launch your web browser and open http://localhost/msoffice

If you did everything correctly you should get a list of .iso files. You can
now download and burn them.

Easy, isn't it?

Greetings, deacon Marcus






Re: Tomcat Shirts?

2001-08-24 Thread Rob S.

Oh man, i'd eat up some Tomcat shirts.  I wonder if I we'd be able to use the TC logo 
the Pier made?

You can get Java stuff from http://java.sun.com/.  I think it's under java wear and 
books.

- r

On Fri, 24 Aug 2001 09:55:47 -0400 [EMAIL PROTECTED] wrote:
 
 Hi, I recently saw someone with a Tomcat T-shirt.  Is there anywhere one
 can order Tomcat gear???   Or even Java junk for that matter?  (posters,
 izods, mugs)?  I'd love to have a small Java logo poster to hang at work.
 
 Thanks,
 Craig






Newbie question re .war files

2001-08-24 Thread Jon Taylor

Hi,

I'm pretty new to Tomcat and a designer not a developer so sorry if this is
a dum one, but...


I'm trying to get the Dreamweaver UltraDev TagLib extensions flying with our
Tomcat 3.2.1 install.

I've added 2 .war files to the $TOMCAT_HOME/webapps dir as per install
notes but restarting tomcat doesn't affect them and I can't find (yet) any
other info on what I have to do to extract them (they are archives right?).

Any help would save me some grey hairs!

TIA
Jon

FYI 
The whole package is from
http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html

__

Jon Taylor 
Creative Director  
Olive Systems 

e-mail: [EMAIL PROTECTED]

__
visit our site at www.olive.co.uk




error-page not working in TC 3.2

2001-08-24 Thread Jim Urban

Ok, I give up, what am I doing wrong?

I want to provide my own error pages for certain conditions and I can't seem
to get the error-page tag to work.  Here is an example of what I put in my
web.xml file:

 error-page
exception-typejava.sql.SQLException/exception-type
location/mycontext/dberror.html/location
 /error-page
 error-page
error-code404/error-code
location/mycontext/error400.html/location
 /error-page

Thanks,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046





Re: a simple ( irritating) classpath problem

2001-08-24 Thread yap_noel


Just for the record, can you post what you did with ParameterParser (future
archive searchers will appreciate it)?

Thanks,
Noel

HI ALL,
first of all thanks for everybody for your help
those garbled chars you see on your email are chinese characters(big5)
but i already translated it for those  who may not be able to see
(understand)them
it says ParameterParser is not on the right classpath
Any way guys , finally after a lot of trial and error methods i managed to
make my
Tomcat to recognize ParameterParser
However, i am stil confused and didn't understand the logic behind the
classpath setting
because it seems to me that previously i had already done the same
settings,
but it ididn't work
now it works.
So i think the best idea is (as Craig  said)  One suggestion is to set up
your development environment to use Ant 1.3,
and let it take care of class path problems for you
i will try this method, otherwise handling classpath problems is really
wasting time
it takes longer time to set the classpath than developing the real
application
THANKS AGAIN TO EVRYBODY
CHEERS  =)



- Original Message -
From: Dmitri Colebatch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 8:16 AM
Subject: Re: a simple ( irritating) classpath problem


On Thu, 23 Aug 2001, yilmaz wrote:

 D:\tomcat4\jakarta-tomcat-4.0-b7\webapps\ROOT\WEB-INF\classesjavac
gs.java
 gs.java:37: 銝??ParameterParser
 ????辣嚗?\ParameterParser.class
 ??辣?急?嚗om.oreilly.servlet.ParameterParser
 ??餅??&靽∪冽迤蝖桃?classpath????銝?
  ParameterParser parser= new ParameterParser(req);
  ^
 1 ???

What are all those weird characters?  Not sure if they are doing anything
weird... other than that - I'm out of ideas

cheers
dim



áŠÇ(šk§‰Æ­Š‰â±ú+Šwè®f­Š‰Ú–›«¦‹²‰åȋb²z-Š{^×jƧ¡÷Þ®Šì¢XœŠÖ­Š‰ß¢»az›«r¬zŠìjW¨}©ò~)ڝȚ–)춻¦z{h­«ž‡ß‰Èš•Ê'~*æjبž‡ÚŸ+kj{rبœ
   
e™ªäzÚk‰Ç¬u«Zjwh¶«Šwè®f­Š‰Ú­éè·«­©íyÖ¬¶‡(š™^µéÞ²Ê+iÇ.­§2jwZ­ë.n7œ¶Ú…©à{­†‹­ž‹bqà'Éʙéí²Šìµ«^™éí²fz«z)Ý¢z-ç²Æ«Š\«yù^rÛa¢Ç¨|“Ì¢¸œ(Z±à¨ŠÛ,¹»v«‰ëÖŸ~)bj׬


RE: Is there a way to make a default web.xml? --Tomcat 3.x

2001-08-24 Thread Brandon Cruz

Sorry, forgot to mention tomcat version 3.x
-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 9:17 AM
To: [EMAIL PROTECTED]
Subject: Is there a way to make a default web.xml?


Is there a way to make a default web.xml file that will work across all
contexts/virtual hosts?

Brandon






Re: How do I make Tomcat include needed jars for my servlet?

2001-08-24 Thread Vladimir Grishchenko

Well, I think you have 3 options:

1. Switch to Linux and use symlinks
2. Ask Sun to change servlet spec.
3. Write a script that will copy the files in one shot.

Cheers,
--V.

- Original Message -
From: Ju Yan Jery Qin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 1:58 AM
Subject: Re: How do I make Tomcat include needed jars for my servlet?


 First thank Vladimir Grishchenko and Rob S. for your help

 But in my case, since our product has its own framework and we just do
some customization. So the directory structure is fixed, it looks like this
 d:\vendor\webapp1\codebase\
 under this directory there are classes used by webapp1
 d:\vendor\webapp1\codebase\
 under this directory there are classes used by webapp2
 The two webapps has many other directories and also they have many similar
classes with the same package name.

 In our case,
 server.xml has these entries:

  Context path=/webapp1
   docBase=d:\vendor\webapp1\codebase
   debug=0
   reloadable=true 
   /Context
  Context path=/webapp2
   docBase=d:\vendor\webapp2\codebase
   debug=0
   reloadable=true 
   /Context
 Our developer is used to generate classes in d:\vendor\webapp1\codebase\
and d:\vendor\webapp1\codebase\

 If I can redirect d:\vendor\webappx\WEB-INF\classes to
d:\vendor\webappx\codebase\ just like symbolic link under UNIX, this problem
will be resolved. So I wonder if there is a place where we can define
CLASSPATH in our webapp instead of put our classes in a fixed place(
although it is relavant to our webapp ). I think this is a good feature if
implemented.




Re: Newbie question re '.war' files

2001-08-24 Thread Rob S.

 I've added 2 .war files to the $TOMCAT_HOME/webapps dir as per install
 notes but restarting tomcat doesn't affect them and I can't find (yet) any
 other info on what I have to do to extract them (they are archives right?).

Restarting Tomcat should have expanded them into their respectively-named directories.

So if you had jon.war and restarted tomcat, there is now a web app named jon, that 
you can access by requesting http://localhost:8080/jon, providing you've got the 
default Tomcat setup locally on your machine.

- r
 
 Any help would save me some grey hairs!
 
 TIA
 Jon
 
 FYI
 The whole package is from
 http://jakarta.apache.org/taglibs/doc/ultradev4-doc/intro.html
 
 __
 
 Jon Taylor
 Creative Director
 Olive Systems
 
 e-mail: [EMAIL PROTECTED]
 
 __
 visit our site at www.olive.co.uk






bug report: tomcat isapi_redirect not closing http connection

2001-08-24 Thread Karel Haeck

 Hi,

I have a problem with integration tomcat 3.2.1 with IIS.
The setup works ok, but when a try a servlet or jsp the server
does not close the HTTP connection socket, making the browser (IE)
showing a hourglass as if there were more data to come.
This happens with both the examples and my own servlets/jsps.
When I test the servlet directly with Tomcat (on port 8080) everything works
OK.
I have searched the net, but found nothing related to this problem.

Is this a known problem ? Any suggestions are welcome

Regards,

Karel Haeck
EnergyICT







Re: error-page not working in TC 3.2

2001-08-24 Thread Rob S.

 Ok, I give up, what am I doing wrong?

I dunno, what happens in the browser and what's output in the log?

- r




Search for catalinautil.jar

2001-08-24 Thread Stéphane De Jonghe

Hi,

where can i find this jar : catalinautil.jar ?

Stéphane De Jonghe




Re: Is there a way to make a default web.xml? --Tomcat 3.x

2001-08-24 Thread Rob S.

Someone correct me if I'm wrong plz =) but I believe the web.xml in $TOMCAT_HOME/conf 
is applied to all web apps.  I think I read on the dev list (from Larry) that this 
feature was removed in 3.x to increase app portability === that relying on a default 
web.xml reduces the portability of an application.

However, this behavior is indeed present in TC4.

- r

On Fri, 24 Aug 2001 09:22:32 -0500 [EMAIL PROTECTED] wrote:
 Sorry, forgot to mention tomcat version 3.x
 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 9:17 AM
 To: [EMAIL PROTECTED]
 Subject: Is there a way to make a default web.xml?
 
 
 Is there a way to make a default web.xml file that will work across all
 contexts/virtual hosts?
 
 Brandon






Re: How do I make Tomcat include needed jars for my servlet?

2001-08-24 Thread Vladimir Grishchenko

Yet another one:

Place codebase dirs on system classpath, you'll
have to restrat tomcat every time there's a change.

--V.

- Original Message -
From: Vladimir Grishchenko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 7:38 AM
Subject: Re: How do I make Tomcat include needed jars for my servlet?


 Well, I think you have 3 options:

 1. Switch to Linux and use symlinks
 2. Ask Sun to change servlet spec.
 3. Write a script that will copy the files in one shot.

 Cheers,
 --V.

 - Original Message -
 From: Ju Yan Jery Qin [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, August 24, 2001 1:58 AM
 Subject: Re: How do I make Tomcat include needed jars for my servlet?


  First thank Vladimir Grishchenko and Rob S. for your help
 
  But in my case, since our product has its own framework and we just do
 some customization. So the directory structure is fixed, it looks like
this
  d:\vendor\webapp1\codebase\
  under this directory there are classes used by webapp1
  d:\vendor\webapp1\codebase\
  under this directory there are classes used by webapp2
  The two webapps has many other directories and also they have many
similar
 classes with the same package name.
 
  In our case,
  server.xml has these entries:
 
   Context path=/webapp1
docBase=d:\vendor\webapp1\codebase
debug=0
reloadable=true 
/Context
   Context path=/webapp2
docBase=d:\vendor\webapp2\codebase
debug=0
reloadable=true 
/Context
  Our developer is used to generate classes in d:\vendor\webapp1\codebase\
 and d:\vendor\webapp1\codebase\
 
  If I can redirect d:\vendor\webappx\WEB-INF\classes to
 d:\vendor\webappx\codebase\ just like symbolic link under UNIX, this
problem
 will be resolved. So I wonder if there is a place where we can define
 CLASSPATH in our webapp instead of put our classes in a fixed place(
 although it is relavant to our webapp ). I think this is a good feature if
 implemented.
 




RequestDispatcher.forward()?

2001-08-24 Thread yuval

Can you please explain to me how to use RequestDispatcher.forward()?

Regards,

Yuval
Domain The Net Technologies Ltd.
6 Weitzman Blvd.
Ramat-Hasharon
Israel 47211
Tel: 972-3-5474443
Fax: 972-3-5474446
www.DomainTheNet.com

“This email message and any attachments hereto are intended only for use by
the addressee(s) named above, and may contain legally privileged and/or
confidential information. If you are not the intended addressee, you are
hereby kindly notified that any dissemination, distribution or copying of
this email and any attachments hereto is strictly prohibited. If you have
received this email in error, kindly delete it from your computer system,
and notify us at the telephone number or email address appearing above.
Thank you





Re: RequestDispatcher.forward()?

2001-08-24 Thread Rob S.

 Can you please explain to me how to use RequestDispatcher.forward()?

Yikes...  you're better off searching Google or picking up a book on servlets.  Or 
heck, you could read the servlet api javadoc comments =)

- r




Re: a simple ( irritating) classpath problem

2001-08-24 Thread yilmaz

Hi everyone,
i had two problems related with this thread
for the classpath problem the solution i found by chance :) is :
setting the environmental variables through the command window
as :
set
CLASSPATH=c:\jdk1.3;c:\jdk1.3\lib\tools.jar;d:\tomcat4\jakarta-tomcat-4.0-b7
\
mon\lib\servlet.jar;d:\tomcat4\jakarta-tomcat-4.0-b7\common\lib\cos.jar;
as you see  :) i removed all the unnecessary ones ,
servlet.jar is necessary for the tomcat itself
and cos.jar is for my utility classes such as PArametrParser ,
and these are enough.
by setting the env variables through the command window avoids the need for
logging out windows or restrating :)
i spent a lot of time , but i thing it worthed :)
my second problem was inserting chinese characters into the SQL server

if you have nothing to do with chinese chars you can simply ignore the rest
of this message.

after trying all possible methods to force my servlet to insert chinese
chars correctly,  and using trial and error method
Thanks God, at last i found the solution and my servlet works perfectly,
though it was not so easy

here i just wanted to share my experience so that the others may save time
and solve their problems.

the only solution  that worked for me  to insert chinese chars into a
database (at least SQL 2000 and MS Acces 2000 ) is using the ParameterParser
class which is bundled with oreilly package (and can be downloaded from
www.servlets.com) .

The following is the generally used method and is not working for
tomcat(3.2.2 - 4)   with big5 charset.

 String formVariable=req.getParameter(formVariable);
String myVariable=new String(formVariable.getBytes(iso-8859-1),big5);

the following method works  (from Jason's book):
ParameterParser parser=new ParameterParser (req);
parser.setCharacterEncoding(big5);
String myVariable=parser.getStringParameter(formVariable);

hope it helps for those who are having the similar problems
cheers :)


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 10:25 PM
Subject: Re: a simple ( irritating) classpath problem



 Just for the record, can you post what you did with ParameterParser
(future
 archive searchers will appreciate it)?

 Thanks,
 Noel

 HI ALL,
 first of all thanks for everybody for your help
 those garbled chars you see on your email are chinese characters(big5)
 but i already translated it for those  who may not be able to see
 (understand)them
 it says ParameterParser is not on the right classpath
 Any way guys , finally after a lot of trial and error methods i managed to
 make my
 Tomcat to recognize ParameterParser
 However, i am stil confused and didn't understand the logic behind the
 classpath setting
 because it seems to me that previously i had already done the same
 settings,
 but it ididn't work
 now it works.
 So i think the best idea is (as Craig  said)  One suggestion is to set up
 your development environment to use Ant 1.3,
 and let it take care of class path problems for you
 i will try this method, otherwise handling classpath problems is really
 wasting time
 it takes longer time to set the classpath than developing the real
 application
 THANKS AGAIN TO EVRYBODY
 CHEERS  =)



 - Original Message -
 From: Dmitri Colebatch [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, August 24, 2001 8:16 AM
 Subject: Re: a simple ( irritating) classpath problem


 On Thu, 23 Aug 2001, yilmaz wrote:
 
  D:\tomcat4\jakarta-tomcat-4.0-b7\webapps\ROOT\WEB-INF\classesjavac
 gs.java
  gs.java:37: 銝??ParameterParser
  ????辣嚗?\ParameterParser.class
  ??辣?急?嚗om.oreilly.servlet.ParameterParser
  ??餅??&靽∪冽迤蝖桃?classpath????銝?
   ParameterParser parser= new ParameterParser(req);
   ^
  1 ???

 What are all those weird characters?  Not sure if they are doing anything
 weird... other than that - I'm out of ideas

 cheers
 dim



 Nrj~jyj}jjz}}zvz~jjjrrsuyizqjʕz
 ji





Re: Tomcat Shirts?

2001-08-24 Thread Denis Haskin

Well, if someone has a logo, someone could set up a store at www.cafepress.com and 
sell lots of stuff
with Tomcat on it.  Either no profit (sure, cafepress gets some) or I suppose some 
small money back to
Apache.  Does the Apache Foundation have a policy on this?

Anyway, see http://www.cafepress.com/cp/info/help/products.aspx and
http://www.cafepress.com/cp/info/help/images.aspx.

dwh


Rob S. wrote:

 Oh man, i'd eat up some Tomcat shirts.  I wonder if I we'd be able to use the TC 
logo the Pier made?

 You can get Java stuff from http://java.sun.com/.  I think it's under java wear and 
books.




Re: Any idea?

2001-08-24 Thread Levent Guendogdu

 If you did everything correctly you should get a list of .iso files. You can
 now download and burn them.
 
 Easy, isn't it?

ROTFL... Marcus, you're great!!! I just can't stop laughing...








RE: error-page not working in TC 3.2

2001-08-24 Thread Jim Urban

The browser shows the standard error page and the log shows the standard
messages.  Nothing in the log references my error pages.  Its as if TC
ignored the directives in my web.xml (which I'm sure is what is happening).

Jim

-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 9:39 AM
To: [EMAIL PROTECTED]
Subject: Re: error-page not working in TC 3.2


 Ok, I give up, what am I doing wrong?

I dunno, what happens in the browser and what's output in the log?

- r





Re: Tomcat Shirts?

2001-08-24 Thread Lloyd Llewellyn


 Hi, I recently saw someone with a Tomcat T-shirt.  Is there anywhere one
 can order Tomcat gear???   Or even Java junk for that matter?  (posters,
 izods, mugs)?  I'd love to have a small Java logo poster to hang at work.

I think the Tomcat logo is GREAT!






RE: Tomcat Shirts?

2001-08-24 Thread James, Stuart

.aspx, sound's like a Mickey mouse website.

-Original Message-
From: Denis Haskin [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 4:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat Shirts?


Well, if someone has a logo, someone could set up a store at
www.cafepress.com and sell lots of stuff
with Tomcat on it.  Either no profit (sure, cafepress gets some) or I
suppose some small money back to
Apache.  Does the Apache Foundation have a policy on this?

Anyway, see http://www.cafepress.com/cp/info/help/products.aspx and
http://www.cafepress.com/cp/info/help/images.aspx.

dwh


Rob S. wrote:

 Oh man, i'd eat up some Tomcat shirts.  I wonder if I we'd be able to use
the TC logo the Pier made?

 You can get Java stuff from http://java.sun.com/.  I think it's under
java wear and books.


___
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___



Re: mod_webapp and make !!!

2001-08-24 Thread Bekkali Hatim - Soamaï

Le Vendredi 24 Août 2001 13:40, vous avez écrit :
 Quoting hatim [EMAIL PROTECTED]:


 You downloaded the wrong version of the binary... There's one for GLIBC
 2.2 and one for GLIBC 2.1


Where can i find the version for Glibc 2.1 ? i didn't find it ine the 
download section .


  make[1]: *** [mod_webapp.so] Error 127
  make[1]: Leaving directory `/app/webapp-module-1.0-tc40b7/apache-

 1.3'

  make: *** [local-all] Error 2
 
  any idea ? any help ?

 Your system has a broken APXS support.

how can i correct the problem ?
i read many messages in the archive list which talk about this problem , i 
contacted many people who had this problem , and all didn t found solution 
and leaved the instal of the webapp module 

thank you for your help

Hatim




I do not want to use 'webapps'

2001-08-24 Thread Claes Holmerson

Hello!

I am trying to set up Tomcat to work in the environment where we have been
developing another application. In this environment we do not have a webapps
directory. 

The output path for JBuilder is C:\sandbox\development, and this is also
were the classpath points to when we test our builds.

When we started developing servlets etc with JBuilder 4 we also used the
docbase c:\sandbox\development

So it looks something like this: 

C:\Sandbox\development\se\masystem\...
C:\Sandbox\development\web-inf\web.xml etc
C:\Sandbox\development\jsp
C:\Sandbox\development\images
etc..

As you see, no webapps directory. I do not want to change this structure
because many things depend on this. With JBuilder 4, and its integrated
tomcat 3.1 this works.  I can start tomcat and get it to use a classpath
that was in the same level as the docbase. That way I do not have to copy
classes from C:\Sandbox\development to web-inf/classes. 

But now I want to be able to use tomcat independently this way. Is it
possible to configure this? I guess I can do something in server.xml that I
have not figured out yet?

Thanks, 
Claes

--
Claes Holmerson
PipeChain AB
Porfyrvägen 14  +46 (0)46 32 52 42 office phone
SE-224 78 LUND  +46 (0)709 89 52 42   mobile phone
Sweden  +46 (0)46 15 10 74 office fax
   
http://www.pipechain.com/





[OT] Re: Tomcat Shirts?

2001-08-24 Thread Denis Haskin

Fine, be a technology bigot grin.

There's a couple of other web sites that offer similar services.  I just happen
to know about cafepress.

dwh


James, Stuart wrote:

 .aspx, sound's like a Mickey mouse website.




Re: I do not want to use 'webapps'

2001-08-24 Thread Denis Haskin

Yup, just set up a new context in server.xml:

Context path=/mysandbox
 docBase=C:/Sandbox/development
/Context

Which can then be accessed with the url http://localhost:8080/mysandbox (using
the standalone http connector).  Note the use of forward slashes, not backward,
even though you're on Windows...

dwh


Claes Holmerson wrote:

 Hello!

 I am trying to set up Tomcat to work in the environment where we have been
 developing another application. In this environment we do not have a webapps
 directory.

 The output path for JBuilder is C:\sandbox\development, and this is also
 were the classpath points to when we test our builds.




Re: I do not want to use 'webapps'

2001-08-24 Thread Rob S.

See the Context tag in server.xml, esp the docBase attribute.

- r

On Fri, 24 Aug 2001 17:53:26 +0200 [EMAIL PROTECTED] wrote:
 Hello!
 
 I am trying to set up Tomcat to work in the environment where we have been
 developing another application. In this environment we do not have a
 webapps directory.
 
 The output path for JBuilder is C:\sandbox\development, and this is also
 were the classpath points to when we test our builds.
 
 When we started developing servlets etc with JBuilder 4 we also used the
 docbase c:\sandbox\development
 
 So it looks something like this:
 
 C:\Sandbox\development\se\masystem\...
 C:\Sandbox\development\web-inf\web.xml etc
 C:\Sandbox\development\jsp
 C:\Sandbox\development\images
 etc..
 
 As you see, no webapps directory. I do not want to change this structure
 because many things depend on this. With JBuilder 4, and its integrated
 tomcat 3.1 this works.I can start tomcat and get it to use a classpath
 that was in the same level as the docbase. That way I do not have to copy
 classes from C:\Sandbox\development to web-inf/classes.
 
 But now I want to be able to use tomcat independently this way. Is it
 possible to configure this? I guess I can do something in server.xml that I
 have not figured out yet?
 
 Thanks,
 Claes
 
 --
 Claes Holmerson
 PipeChain AB
 Porfyrvägen 14+46 (0)46 32 52 42 office phone
 SE-224 78 LUND+46 (0)709 89 52 42   mobile phone
 Sweden+46 (0)46 15 10 74 office fax
 
 http://www.pipechain.com/
 






RE: Tomcat Performance: scaled cat

2001-08-24 Thread Miles I. Daffin

 Maybe it has got something to do with a crappy OS ! Sorry. could'nt resist

 On RH 7.1 linux, the IBM JDK 1.3 (latest build) runs like a scaled cat.


Is that good or bad? I have never seen a 'scaled cat' so cannot tell.
Sounds like a mutant, so maybe it's got funny legs or something?

Miles


 -Original Message-
 From: Hari [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 24 August 2001 20:20
 To: [EMAIL PROTECTED]
 Subject: Tomcat Performance


 Hi,

 Which JDK gives best performance for TOMCAT 3.2 on Win2k  Linux?  I heard
 that IBM jdk will give higher performance but when I run Tomcat  using IBM
 Jdk I feel it is slower than Sun's (on Windows 2000).

 Kindly advice me in this regard.

 - Hari.

 =
 Hariharasubramanian.R
 Developer, iEvents,
 Kumaran Systems (Betawave Solutions)
 www.kumaran.com
 www.betawavesolutions.com
 Reinforcing Your Business
 Ph: 0091-44-620 2079, 4967 (Extn: 318/328)
 E-Mail: [EMAIL PROTECTED]





server.xml code insert....

2001-08-24 Thread Bob Wilson

I am using TOMCAT 3.2.3 and everything seems to be running fine however in 
the documentation regarding configurations to TOMCAT for auto-generating web 
server config files, I noticed it says to add the following code after the 
AutoWebApp ... / module in the server.xml.  Here is the code...

  Apache mod_jk config:ApacheConfig /
 Def conf file:conf/auto/mod_jk.conf
  Def workers file:conf/jk/workers.properties

In my server.xml file I do not have an entry for AutoWebApp ... / 
anywhere.  The question I have is...Is this something that should have been 
in the file from the beginning when I unpacked it or was this AutoWebApp 
... /  something that I had to manually configure??  If I do have to 
configure this, would anyone have any instructions on how to do so and 
possibly explain 'why' this has to be done??

Thanks,
Bob Wilson.

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




RE: Directory Structure Question

2001-08-24 Thread Miles I. Daffin

 I have a number of servlet class files which I would
 like to put in a separate folder from the rest of the
 servlet files.  This folder could be called
 parent_classes because these are simply parent classes
 of the servlets. Will Tomcat allow me to do this? If
 so, how can I get this to work?  I am currently
 getting different errors depending on my setup.

This is a java rather than TC question. You need to 
do some homework. In the meanwhile:-

To do this type of thing ('Extract Package' I guess)
you would:

1. Create a new dir called 'parentclasses' (no '_' please).
2. Take the java files for these parent (base) classes and
   put them in the new 'parentclasses' dir.
3. Edit the parent class java files to include a package statement
   that reflected their new location in your package tree, e.g
   - package com.plok.anapp.parentclasses;
4. Import this, or classes from this, package in the java files
   for the subclass definitions.
5. Recompile the src for your app.

Miles



Re: Tomcat Performance: scaled cat

2001-08-24 Thread mazzen al-najjar

Miles I. Daffin wrote:
 Aravind Naidu wrote:
  On RH 7.1 linux, the IBM JDK 1.3 (latest build) runs like a scaled cat.

 Is that good or bad? I have never seen a 'scaled cat' so cannot tell.
 Sounds like a mutant, so maybe it's got funny legs or something?

i think it's first cousin to a scalded dog.

mazzy



Re: How do I make Tomcat include needed jars for my servlet?

2001-08-24 Thread Craig R. McClanahan



On Fri, 24 Aug 2001, Ju Yan Jery Qin wrote:

 Date: Fri, 24 Aug 2001 16:58:14 +0800
 From: Ju Yan Jery Qin [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: How do I make Tomcat include needed jars for my servlet?

 First thank Vladimir Grishchenko and Rob S. for your help

 But in my case, since our product has its own framework and we just do some 
customization. So the directory structure is fixed, it looks like this
 d:\vendor\webapp1\codebase\
   under this directory there are classes used by webapp1
 d:\vendor\webapp1\codebase\
   under this directory there are classes used by webapp2
 The two webapps has many other directories and also they have many similar classes 
with the same package name.

 In our case,
 server.xml has these entries:

  Context path=/webapp1
   docBase=d:\vendor\webapp1\codebase
   debug=0
   reloadable=true 
   /Context
  Context path=/webapp2
   docBase=d:\vendor\webapp2\codebase
   debug=0
   reloadable=true 
   /Context
 Our developer is used to generate classes in d:\vendor\webapp1\codebase\ and 
d:\vendor\webapp1\codebase\

 If I can redirect d:\vendor\webappx\WEB-INF\classes to
 d:\vendor\webappx\codebase\ just like symbolic link under UNIX, this
 problem will be resolved. So I wonder if there is a place where we can
 define CLASSPATH in our webapp instead of put our classes in a fixed
 place( although it is relavant to our webapp ). I think this is a good
 feature if implemented.


I would suggest, on the other hand, that your developers should learn to
understand the concepts behind web applications, and the features of your
servlet container, instead.

If you want classes visible to only a single web app, they go inside
/WEB-INF/classes or /WEB-INF/lib for that web app.  A huge advantage is
that this architecture is portable to *all* servlet containers, and doing
something wierd in Tomcat to break it would lock apps into running only on
Tomcat (as well as break the servlet spec).

If you want classes visible to more than one web app, every servlet
container provides mechanisms for this (although they vary in details).
For Tomcat, you've got two choices:

* Put your classes on the system CLASSPATH (Tomcat 3.2 only)

* Put your classes in JAR files in the lib directory under
  Tomcat's top-level directory.  These are automatically
  made visible to all webapps.

Copying files from where they are developed to where they are deployed is
a trivially simple task to automate -- for example, see the deploy
target in the Ant script included in the Application Developer's Guide:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc-exp/appdev/index.html

and the cost of the extra few bytes is trivial compared to the robustness
of the resulting deployment (i.e. you can still compile in your
development directories without breaking existing running apps :-).

Craig McClanahan





RE: How do I make Tomcat include needed jars for my servlet?

2001-08-24 Thread Miles I. Daffin

 Hi all,
   I have read this topics but it still can not resolve my 
 problem.  Your suggestion is to copy application related jar 
 files into %YourWebAppPath%/WEB-INFO/lib dirctory. But my 
 application is under development, so whenever I regenerated jar 
 files for  my web app, I have to copy them to that directory 
 again. If under UNIX, you can use symbolic links, but I use 
 Windows 2000 as my server.  So my question is: is there any way 
 to define CLASSPATH variable for my web application independently 
 so that I don't need to copy them again and again.

Have you tried building your webapp with the Ant build tool 
(like TC it's free from Jakarta: http://jakarta.apache.org/ant).

To use it see TOMCAT_HOME/doc/appdev/index.html

Ant will only copy these jars across if they are not already there
or if there have not been altered (i.e. source jar newer than dest jar). 

The appdev guide (above) is such a good start. You will really benefit
from reading and digesting it.


Miles

   In fact, in my case, I have two web application which are 
 derived from the same base but should be installed independently. 
 So these two web application have many classes with the same 
 package and name. And these classes spreaded in two directory 
 d:\vendor\webapp1 and d:\vendor\webapp2 but not in jar file. So I 
 really need a way to define CLASSPATH in application level 
 instead of copy tons of variable classes into 
 d:\vendor\webapp1\WEB-INFO\classes and 
 d:\vendor\webapp2\WEB-INFO\classes again and again.
 
   Any clue is appreciated!
 
 Best Regards!
 
 Jerry Chin



Re: A query on Single Sign On

2001-08-24 Thread Craig R. McClanahan



On Fri, 24 Aug 2001, Shilpa Potnis wrote:

 Date: Fri, 24 Aug 2001 15:53:30 +0530
 From: Shilpa Potnis [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: A query on Single Sign On

 Hi

 I would like to know about the Single Sign On Facility.

 If I have an application running on oracle apps server and one on Tomcat
 can I use the single sign On Facility availiable with Apache. Of yes
 how.

 Shilpa


Are you speaking of the Single Sign On facility included with Tomcat 4?
The instructions below apply only to Tomcat 4, so you'd have to consult
the Oracle app server docs for how to configure Oracle :-).

Basically, Single Sign On (SSO) lets you share an authenticated user
identity across the set of web applications that are running on a single
virtual host in Tomcat 4.  It is enabled by uncommenting the following
entry in server.xml:

  Valve className=org.apache.catalina.authenticator.SingleSignOn
 debug=0/

The rules of the game go like this:

* All web apps in this virtual host must share the same
  Realm entry -- no Realm entries at the per-web-app
  level.

* All web apps in this virtual host can have security
  constraints that require authentication before access.
  Each of these web apps uses container managed security
  in the usual way (configure your favorite login method,
  and so on).

* The first time that the user accesses *any* protected
  resource in any of the apps, they will be asked to
  authenticate themselves.

* As the user switches to another app and accesses a
  protected resource there, the container will remember
  the user's identity, and not challenge them for
  authentication again.

* As soon as the user logs off from one webapp (i.e. by
  invalidating the session if you are using form based
  login), you are logged off from all of them.

* SSO support uses a cookie to maintain user identity,
  so clients must have cookies enabled.

To get a mental picture of how it works, think of a portal site like
Yahoo.  You're challenged to log on the first time you try to access one
of the apps (mail, chat, etc.), but then Yahoo remembers who you are
across all of the apps.

Craig





Help reqd on Tomcat config on NT

2001-08-24 Thread KASI RAMAN

I am trying to use Tomcat  as my Servlet engine. I think I configured the
Tomcat with IIS(4.0) properly. The example application provided by the
Tomcat is working fine with IIS web server. I have created one web
application using Servlets and some HTML files, and the application is
working fine in JSWDK(1.0) environment(which is having built in webserver
and servlet container, but it is single user system). I  am trying to run
the same application with Tomcat and IIS4.0. It is not running
correctly(some links are referred incorrectly). So I have questions on basic

setup itself and the questions are:
·   Where exactly I have to put my Class files(Servlet files)
·   Where exactly I have to put my HTML files.
·   How to set the context path?
·   Do I have to modify the uriworkermap.properties and web.xml?
·   How to refer the servlets in HTML files?(for me the webserver is
always
adding incorrect runtime path)

Thanks,
Kasi



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




Re: Trying to start Tomcat without jaxp.jar and parser.jar

2001-08-24 Thread Craig R. McClanahan

Sounds like you're trying this on Tomcat 3.2.  This version of Tomcat
*requires* an XML parser in the lib directory (or on the classpath) for
its own internal operations.

Craig

On Fri, 24 Aug 2001, Enric Staromiejski wrote:

 Date: Fri, 24 Aug 2001 12:28:02 +0200
 From: Enric Staromiejski [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Trying to start Tomcat without jaxp.jar and parser.jar

 We need to start Tomcat without having jaxp.jar and parser.jar within de
 tomcat/lib directory. When doing this we get exceptions (Segment fault). Our
 need comes from the fact that we're trying to start Cocoon 2.0b2 under
 Tomcat. We're getting and exception related to the use of jaxp and parser by
 Tomcat. All docs, faqs, and list are saying that the solution is removing or
 renaming the jaxp.jar and the parser.jar under tomcat/lib and putting there
 the Xerces_xxx.jar. But When doing this Tomcat simply is unable to start.


 Any help would be appreciated

 Enric






RE: Trying to start Tomcat without jaxp.jar and parser.jar

2001-08-24 Thread Enric Staromiejski

Yes, you're right. That was precisely our problem. We wanted to use
Xerces_1_4_1.jar insted of the default Tomcat's but when substituting them
with Xerces we had an exception. We've solved this initializing the
TOMCAT_OPT environment variable with -classic. The problem is the jdk1.3.1
token bug under Linux.

Thanks anyway

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En
nombre de Craig R. McClanahan
Enviado el: viernes, 24 de agosto de 2001 18:34
Para: [EMAIL PROTECTED]
Asunto: Re: Trying to start Tomcat without jaxp.jar and parser.jar


Sounds like you're trying this on Tomcat 3.2.  This version of Tomcat
*requires* an XML parser in the lib directory (or on the classpath) for
its own internal operations.

Craig

On Fri, 24 Aug 2001, Enric Staromiejski wrote:

 Date: Fri, 24 Aug 2001 12:28:02 +0200
 From: Enric Staromiejski [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Trying to start Tomcat without jaxp.jar and parser.jar

 We need to start Tomcat without having jaxp.jar and parser.jar within de
 tomcat/lib directory. When doing this we get exceptions (Segment fault).
Our
 need comes from the fact that we're trying to start Cocoon 2.0b2 under
 Tomcat. We're getting and exception related to the use of jaxp and parser
by
 Tomcat. All docs, faqs, and list are saying that the solution is removing
or
 renaming the jaxp.jar and the parser.jar under tomcat/lib and putting
there
 the Xerces_xxx.jar. But When doing this Tomcat simply is unable to start.


 Any help would be appreciated

 Enric






Strange problem with cocoon under Tomcat

2001-08-24 Thread Enric Staromiejski

We're running Tomcat+Apache OK. When invoking a jsp page for example thru
port 80 (i.e., without having to invoke port 8080), , apache gives control
to Tomcat and Tomcat serves the page correctly, but once Cocoon installed,
we still accede to the jsps correctly served by Tomcat but the only way of
getting xml and xsp pages served by Cocoon is thru port 8080 (i.e. using an
URL like http://servername:8080/cocoon/).

Any idea?

thank you
Enric




tomcat -- SSL

2001-08-24 Thread brian luk

I am now using apache web server with SSL already
setup.

that means I can connect to HTTP server using SSL:
https://10.0.0.105:443/
or I can connect to HTTP server w/o SSL
http://10.0.0.105:80

I can make a request to servlet using SSL:
https://10.0.0.105:443/admin/servlet/com.app.Admin
or I can make request to servelt w/o SSL
http://10.0.0.105/admin/servlet/com.app.Admin

Will I get a secure connection between servlet  web
browser if I 

- block all port that can access servlet engine(e.g.
tomcat) from internet (e.g. 80, 8080) except SSL port
443.
- now web browser to apache web server connection is
secure.
- apache server to tomcat is not secure but only
apache can access tomcat, then it means
tomcat(servlet) is secure too??

If the above way is secure. how can I block access to
servlet through port 80?  or block access to a
sepecific web application through port 80?  which
means access is only granted through SSL port 443. (in
tomcat for example)
 
Since i need to send private info up from web browser
to servlet and make sure no one spy it. (
user/password for example )

thanks.


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



Re: Tomcat Performance

2001-08-24 Thread Hari

Hi Rob,

I didn't do comprehensive tests.  Just started tomcat, wait about 20 sec,
and stop tomcat (using the batch files, on Win2K).  I didn't test on Linux.
For this 'test' ;-) Sun JDK responds well than IBM JDK.

- Hari.

- Original Message -
From: Rob S. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 6:10 PM
Subject: Re: Tomcat Performance


 Again demonstrating that performance is completely dependant upon the OS,
JDK, type of web application, etc.  Blanket statements like, Tomcat is
faster/slower than some other container are *pretty much* (not completely)
useless nowadays.

 How hard is it to install JDKs and test?  Change the value of JAVA_HOME,
restart the container, and run your tests again...

 - r

 On Fri, 24 Aug 2001 17:49:42 +0530 [EMAIL PROTECTED] wrote:
  Hi,
 
  Which JDK gives best performance for TOMCAT 3.2 on Win2k  Linux?  I
heard
  that IBM jdk will give higher performance but when I run Tomcat  using
IBM
  Jdk I feel it is slower than Sun's (on Windows 2000).
 
  Kindly advice me in this regard.
 
  - Hari.
 
  =
  Hariharasubramanian.R
  Developer, iEvents,
  Kumaran Systems (Betawave Solutions)
  www.kumaran.com
  www.betawavesolutions.com
  Reinforcing Your Business
  Ph: 0091-44-620 2079, 4967 (Extn: 318/328)
  E-Mail: [EMAIL PROTECTED]







Re: Please help: Problems building tomcat b7, environment variablesnot recognized

2001-08-24 Thread Craig R. McClanahan



On Fri, 24 Aug 2001, Levent Gündogdu wrote:

 Date: Fri, 24 Aug 2001 14:01:39 +0200
 From: Levent Gündogdu [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Jakarta Tomcat User Maillinglist [EMAIL PROTECTED]
 Subject: Please help: Problems building tomcat b7,
  environment variables not recognized

 Hi everyone,

 I installed and compiled all prerequisites for tc b7 but when starting
 the build process, I get the following error:

 [...]

 build-static:
  [copy] Could not find file
 
/var/asf/asf.current/tomcat/tomcat.build.b7/jakarta-tomcat-4.0-b7-src/catalina/${jndi.home}/lib/jndi.jar
 to copy.
  [copy] Could not find file
 
/var/asf/asf.current/tomcat/tomcat.build.b7/jakarta-tomcat-4.0-b7-src/catalina/${jaxp.home}/crimson.jar
 to copy.

 BUILD FAILED

 
/var/asf/asf.current/tomcat/tomcat.build.b7/jakarta-tomcat-4.0-b7-src/catalina/build.xml:100:
 
/var/asf/asf.current/tomcat/tomcat.build.b7/jakarta-tomcat-4.0-b7-src/catalina/${regexp.home}
 not found.


 Well, JNDI_HOME, JAXP_HOME and REGEXP_HOME are all set. I wonder, why
 the error messages are relative to $TOMCAT_HOME anyway.


Environment variables are not used by the current build process -- it
looks for a build.properties file either in your top-level source
directory or in your user home directory.  See the file BUILDING.txt in
the top level directory for the details (Step 13).


 Please, if you have any ideas, give me a hint.

 I did not have such problems building b5 (didn't try b6 though).


 Thank you very much, everyone.

 Bye,
  Levo.



Craig





RE: server.xml code insert....

2001-08-24 Thread Larry Isaacs

Are you sure you are using Tomcat 3.2.3 or looking at the wrong
documentation.  You are citing documentation that exists only in
Tomcat 3.3.

Cheers,
Larry

-Original Message-
From: Bob Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 12:17 PM
To: [EMAIL PROTECTED]
Subject: server.xml code insert


I am using TOMCAT 3.2.3 and everything seems to be running fine however in 
the documentation regarding configurations to TOMCAT for auto-generating web 
server config files, I noticed it says to add the following code after the 
AutoWebApp ... / module in the server.xml.  Here is the code...

  Apache mod_jk config:ApacheConfig /
 Def conf file:conf/auto/mod_jk.conf
  Def workers file:conf/jk/workers.properties

In my server.xml file I do not have an entry for AutoWebApp ... / 
anywhere.  The question I have is...Is this something that should have been 
in the file from the beginning when I unpacked it or was this AutoWebApp 
... /  something that I had to manually configure??  If I do have to 
configure this, would anyone have any instructions on how to do so and 
possibly explain 'why' this has to be done??

Thanks,
Bob Wilson.

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



Re: Search for catalinautil.jar

2001-08-24 Thread Craig R. McClanahan



On Fri, 24 Aug 2001, Stéphane De Jonghe wrote:

 Date: Fri, 24 Aug 2001 16:40:14 +0200
 From: Stéphane De Jonghe [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Search for catalinautil.jar

 Hi,

 where can i find this jar : catalinautil.jar ?


I don't recognize that JAR file name from anything in a standad Tomcat 4
build.  Where did you see a reference to it?

 Stéphane De Jonghe



Craig





Sealing Violation help

2001-08-24 Thread James Higginbotham


Ok, Ok.. You've heard it, written responses, and thought it was wrapped
up and no one would ever have this problem again :)

I'm trying to embed Tomcat 4 beta 6 into my application. I am also using
Castor (http://castor.exolab.org), which requires Xerces. I'm getting
the sealing violation after Castor starts and during the startup of
Catalina. I have basically created a wrapper to invoke the main of the
Bootstrap class for Tomcat. Anyone performed a similiar task?

Most of the archives I see relate to deploying web apps, but I'm not
able to launch Tomcat to even approach this. I tried copying the
tomcat/jasper/jaxp.jar and crimson.jar over to my project's lib
directory that the CLASSPATH references, and even moving jaxp, crimson,
and xerces around in my classpath in combination.

Any ideas? Please don't tell me to RTFM, as I have and still can't get
past the issue. I've tried searching the mailing list archives, but most
threads are related to web apps, as I mentioned earlier. I'm hoping
someone who has done the same thing can give me a cookbook or lessons
learned to assist in getting this to work. I've been using Tomcat 3.x
for some time and really love the product, and want to try to get it
deployed within my application's VM (rather than spawning a separate
process).

Regards,
James

DETAILS

Here is my current CLASSPATH:

LOCALCLASSPATH=3D./lib/activation.jar:./lib/castor-0.9.2-xml.jar:./lib/c=
astor-0.9.2.jar:./lib/jaxp.jar:./lib/crimson.jar:./lib/xerces.jar:./class=
es:./properties:...

Here is the command line launcher:

$JAVACMD -Dcatalina.home=3D./tomcat -classpath $LOCALCLASSPATH
com.myproject.Boot $@

Here is a listing of my jars for byte sizes, just in case:

-rw-r--r--1 jamesNone   295934 Jun 24 23:17 ant-1.3.jar
-rw-r--r--1 jamesNone   241856 Jun 24 23:17 ant-optional.jar
-rw-r--r--1 jamesNone   517501 Jun 24 23:17 castor-0.9.2-xml.jar
-rw-r--r--1 jamesNone  1050741 Jun 24 23:17 castor-0.9.2.jar
-rw-r--r--1 jamesNone   187246 Aug  9 22:08 crimson.jar
-rw-r--r--1 jamesNone28466 Aug  9 22:08 jaxp.jar
-rw-r--r--1 jamesNone   955716 Jun 24 23:18 xerces.jar

/DETAILS




RE: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread dhay



Hi Saritha,

Yep, I understand how to set up my web.xml - if you look at the bottom of the
mail I sent, you'll see it there...

Works fine if I call index.jsp directly, BUT if I place it as my welcome page
using

   welcome-file-list
welcome-fileindex.jsp/welcome-file
   /welcome-file-list

it doesn't work!

Any suggestions?

Dave






Saritha Pula [EMAIL PROTECTED] on 08/21/2001
04:40:41 PM

To:   [EMAIL PROTECTED]
cc:   David_Hay/Lex/Lexmark.LEXMARK@sweeper.lex.lexmark.com (bcc: David
  Hay/Lex/Lexmark)
Subject:  RE: welcome file in web.xml with pre-compiled jsp's?




Hi dhay
   You have to give pre-compiled JSP (i.e servlet )in web.xml
servlet
  servlet-nameindexCheck/servlet-name
  servlet-classindex/servlet-class
/servlet
servlet-mapping
   servlet-nameindexCheck/servlet-name
url-pattern/index.jsp/url-pattern
/servlet-mapping
When you refer to /index.jsp it calls pre-compiled JSP(i.e servlet)using
mapping in web.xml
--Saritha




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 12:00 PM
To: [EMAIL PROTECTED]
Subject: welcome file in web.xml with pre-compiled jsp's?




Hi everyone,

I am pre-compiling my jsp's in my struts web app, and everything works
fine,
except specifying the welcome file in the web.xml.

If I do not pre-compile everything, having index.jsp as the first page
works
great.  However, when I pre-compile index.jsp it doesn't work.  Putting
an
uncompiled index.jsp back in the root directory makes it work again.  I
guess it
is because jsp is not in root directory, but figure I should still be
able to do
this...

Does anyone know if there is something special I have to do, or if there
is
anywhere else I can specify the first page as a servlet?

btw, please copy me into any reply!

Thanks,

Dave

Web.xml:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

!-- web.xml for use with PRE-COMPILED JSP's --
web-app


   !-- The Welcome File List --
   welcome-file-list
!-- call index.jsp as first page --
welcome-fileindex.jsp/welcome-file
   /welcome-file-list

   !-- Action Servlet Configuration --
   servlet
servlet-nameaction/servlet-name
!-- central Action Servlet Controller to use --
servlet-classbeans.AppController/servlet-class
!-- Java class name of the application resources bundle base class
--
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
!-- Context-relative path to the XML resource containing our
configuration
information --
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
!-- The debugging detail level for this servlet, which controls how
much
information is logged. [0] --
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
!-- The debugging detail level for the Digester we utilize in
initMapping(), which logs to System.out instead of the servlet log. [0]
--
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup2/load-on-startup
   /servlet

   !-- Catch any exceptions, and redirect to error page --
   error-page
  exception-typejava.lang.Exception/exception-type
  location/error.jsp/location
   /error-page


   servlet
servlet-name
changeLogFileName
/servlet-name
servlet-class
JspServ.changeLogFileName
/servlet-class
   /servlet

   servlet
servlet-name
chooseDevice
/servlet-name
servlet-class
JspServ.chooseDevice
/servlet-class
   /servlet

   servlet
servlet-name
dataDir
/servlet-name
servlet-class
JspServ.dataDir
/servlet-class
   /servlet

   servlet
servlet-name
dataDirFrame
/servlet-name
servlet-class
JspServ.dataDirFrame
/servlet-class
   /servlet

   servlet
servlet-name
error
/servlet-name
servlet-class
JspServ.error
/servlet-class
   /servlet

   servlet
servlet-name
index
/servlet-name
servlet-class
JspServ.index
/servlet-class
   /servlet

   servlet
servlet-name
indexBar
/servlet-name
servlet-class
JspServ.indexBar
/servlet-class
   /servlet

   servlet
servlet-name
log
/servlet-name
servlet-class
JspServ.log
/servlet-class
   /servlet

   servlet
servlet-name
logFilter
/servlet-name
servlet-class
JspServ.logFilter
/servlet-class
   /servlet

   servlet
servlet-name
logFrame
/servlet-name
servlet-class
JspServ.logFrame
/servlet-class
   /servlet

   servlet
servlet-name
logging
/servlet-name
servlet-class
JspServ.logging
 

RE: Tomcat Performance

2001-08-24 Thread Todd Carmichael

I have found better scalability with IBM, but less stability.
I have had acceptable scalability with JDK and rock solid stability.
My stress tests were done on single and quad servers on win2k.

-Original Message-
From: Hari [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 10:15 AM
To: [EMAIL PROTECTED]; Rob S.
Subject: Re: Tomcat Performance


Hi Rob,

I didn't do comprehensive tests.  Just started tomcat, wait about 20 sec,
and stop tomcat (using the batch files, on Win2K).  I didn't test on Linux.
For this 'test' ;-) Sun JDK responds well than IBM JDK.

- Hari.

- Original Message -
From: Rob S. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 6:10 PM
Subject: Re: Tomcat Performance


 Again demonstrating that performance is completely dependant upon the OS,
JDK, type of web application, etc.  Blanket statements like, Tomcat is
faster/slower than some other container are *pretty much* (not completely)
useless nowadays.

 How hard is it to install JDKs and test?  Change the value of JAVA_HOME,
restart the container, and run your tests again...

 - r

 On Fri, 24 Aug 2001 17:49:42 +0530 [EMAIL PROTECTED] wrote:
  Hi,
 
  Which JDK gives best performance for TOMCAT 3.2 on Win2k  Linux?  I
heard
  that IBM jdk will give higher performance but when I run Tomcat  using
IBM
  Jdk I feel it is slower than Sun's (on Windows 2000).
 
  Kindly advice me in this regard.
 
  - Hari.
 
  =
  Hariharasubramanian.R
  Developer, iEvents,
  Kumaran Systems (Betawave Solutions)
  www.kumaran.com
  www.betawavesolutions.com
  Reinforcing Your Business
  Ph: 0091-44-620 2079, 4967 (Extn: 318/328)
  E-Mail: [EMAIL PROTECTED]






RE: welcome file in web.xml with pre-compiled jsp's?

2001-08-24 Thread Thad Humphries

I think you'll have to add index.jsp to the DirectoryIndex of your Apache 
httpd.conf file, like so:

DirectoryIndex index.html index.jsp

At 12:47 8/24/2001 -0400, you wrote:


Hi Saritha,

Yep, I understand how to set up my web.xml - if you look at the bottom of the
mail I sent, you'll see it there...

Works fine if I call index.jsp directly, BUT if I place it as my welcome page
using

welcome-file-list
 welcome-fileindex.jsp/welcome-file
/welcome-file-list

it doesn't work!

Any suggestions?

Dave






Saritha Pula [EMAIL PROTECTED] on 08/21/2001
04:40:41 PM

To:   [EMAIL PROTECTED]
cc:   David_Hay/Lex/Lexmark.LEXMARK@sweeper.lex.lexmark.com (bcc: David
   Hay/Lex/Lexmark)
Subject:  RE: welcome file in web.xml with pre-compiled jsp's?




Hi dhay
You have to give pre-compiled JSP (i.e servlet )in web.xml
servlet
   servlet-nameindexCheck/servlet-name
   servlet-classindex/servlet-class
/servlet
servlet-mapping
servlet-nameindexCheck/servlet-name
 url-pattern/index.jsp/url-pattern
/servlet-mapping
When you refer to /index.jsp it calls pre-compiled JSP(i.e servlet)using
mapping in web.xml
--Saritha




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 12:00 PM
To: [EMAIL PROTECTED]
Subject: welcome file in web.xml with pre-compiled jsp's?




Hi everyone,

I am pre-compiling my jsp's in my struts web app, and everything works
fine,
except specifying the welcome file in the web.xml.

If I do not pre-compile everything, having index.jsp as the first page
works
great.  However, when I pre-compile index.jsp it doesn't work.  Putting
an
uncompiled index.jsp back in the root directory makes it work again.  I
guess it
is because jsp is not in root directory, but figure I should still be
able to do
this...

Does anyone know if there is something special I have to do, or if there
is
anywhere else I can specify the first page as a servlet?

btw, please copy me into any reply!

Thanks,

Dave

Web.xml:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

!-- web.xml for use with PRE-COMPILED JSP's --
web-app


!-- The Welcome File List --
welcome-file-list
 !-- call index.jsp as first page --
 welcome-fileindex.jsp/welcome-file
/welcome-file-list

!-- Action Servlet Configuration --
servlet
 servlet-nameaction/servlet-name
 !-- central Action Servlet Controller to use --
 servlet-classbeans.AppController/servlet-class
 !-- Java class name of the application resources bundle base class
--
 init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
 /init-param
 !-- Context-relative path to the XML resource containing our
configuration
information --
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 !-- The debugging detail level for this servlet, which controls how
much
information is logged. [0] --
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 !-- The debugging detail level for the Digester we utilize in
initMapping(), which logs to System.out instead of the servlet log. [0]
--
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 load-on-startup2/load-on-startup
/servlet

!-- Catch any exceptions, and redirect to error page --
error-page
   exception-typejava.lang.Exception/exception-type
   location/error.jsp/location
/error-page


servlet
 servlet-name
 changeLogFileName
 /servlet-name
 servlet-class
 JspServ.changeLogFileName
 /servlet-class
/servlet

servlet
 servlet-name
 chooseDevice
 /servlet-name
 servlet-class
 JspServ.chooseDevice
 /servlet-class
/servlet

servlet
 servlet-name
 dataDir
 /servlet-name
 servlet-class
 JspServ.dataDir
 /servlet-class
/servlet

servlet
 servlet-name
 dataDirFrame
 /servlet-name
 servlet-class
 JspServ.dataDirFrame
 /servlet-class
/servlet

servlet
 servlet-name
 error
 /servlet-name
 servlet-class
 JspServ.error
 /servlet-class
/servlet

servlet
 servlet-name
 index
 /servlet-name
 servlet-class
 JspServ.index
 /servlet-class
/servlet

servlet
 servlet-name
 indexBar
 /servlet-name
 servlet-class
 JspServ.indexBar
 /servlet-class
/servlet

servlet
 servlet-name
 log
 /servlet-name
 servlet-class
 JspServ.log
 /servlet-class
/servlet

servlet
 servlet-name
 logFilter
 /servlet-name
 servlet-class

RE: server.xml code insert....

2001-08-24 Thread Bob Wilson

Ooops...my bad.  I was looking at the 3.3 docs and using version 3.2.3.

Sorry!

Is 4.0 the most current full version release??  And, would it be recommended 
for me to upgrade from 3.2??

Bob.


From: Larry Isaacs [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: server.xml code insert
Date: Fri, 24 Aug 2001 13:11:55 -0400

Are you sure you are using Tomcat 3.2.3 or looking at the wrong
documentation.  You are citing documentation that exists only in
Tomcat 3.3.

Cheers,
Larry

-Original Message-
From: Bob Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 12:17 PM
To: [EMAIL PROTECTED]
Subject: server.xml code insert


I am using TOMCAT 3.2.3 and everything seems to be running fine however in
the documentation regarding configurations to TOMCAT for auto-generating 
web
server config files, I noticed it says to add the following code after the
AutoWebApp ... / module in the server.xml.  Here is the code...

   Apache mod_jk config:ApacheConfig /
  Def conf file:conf/auto/mod_jk.conf
   Def workers file:conf/jk/workers.properties

In my server.xml file I do not have an entry for AutoWebApp ... /
anywhere.  The question I have is...Is this something that should have been
in the file from the beginning when I unpacked it or was this AutoWebApp
... /  something that I had to manually configure??  If I do have to
configure this, would anyone have any instructions on how to do so and
possibly explain 'why' this has to be done??

Thanks,
Bob Wilson.

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


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




problem with mod_jk

2001-08-24 Thread Nestor Coppolillo

My platform is ( load balancing with  tomcat ):
Solaris 2.6 ( Sparc )
Apache 1.3.12
Tomcat 3.3.1
mod_jk.
jdk1.3 + hotspot server


When I installed mod_jk module. My problem is ( the tomcat crash with
apache ) ? :

The Tomcat log file:

2001-08-23 12:34:48 - Ajp13Interceptor: Processing connection
org.apache.tomcat.util.net.TcpConnection@752b85 -
java.net.SocketException: Connection reset by peer: Connection reset by
peer
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at
org.apache.tomcat.modules.server.Ajp13.receive(Ajp13.java:647)
at
org.apache.tomcat.modules.server.Ajp13.receiveNextRequest(Ajp13.java:241

)
at
org.apache.tomcat.modules.server.Ajp13Request.receiveNextRequest(Ajp13In

terceptor.java:218)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp1

3Interceptor.java:153)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:43

8)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool

.java:505)
at java.lang.Thread.run(Thread.java:484)


The mod_jk log :


[Wed Aug 22 20:14:32 2001]  [jk_ajp13_worker.c (433)]: In
jk_worker_t::validate,
 resolve failed
[Wed Aug 22 20:14:32 2001]  [jk_ajp13_worker.c (435)]: In
jk_worker_t::validate,
 Error localhost*localhost 8011
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (164)]: wc_create_worker
validate faile
d for djpa1
[Wed Aug 22 20:14:32 2001]  [jk_lb_worker.c (442)]: In
jk_worker_t::validate: Fa
iled to create worker djpa1
[Wed Aug 22 20:14:32 2001]  [jk_lb_worker.c (453)]: In
jk_worker_t::validate: NU
[Wed Aug 22 20:14:32 2001]  [jk_ajp13_worker.c (433)]: In
jk_worker_t::validate,
 resolve failed
[Wed Aug 22 20:14:32 2001]  [jk_ajp13_worker.c (435)]: In
jk_worker_t::validate,
 Error localhost*localhost 8011
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (164)]: wc_create_worker
validate faile
d for djpa1
[Wed Aug 22 20:14:32 2001]  [jk_lb_worker.c (442)]: In
jk_worker_t::validate: Fa
iled to create worker djpa1
[Wed Aug 22 20:14:32 2001]  [jk_lb_worker.c (453)]: In
jk_worker_t::validate: NU
LL Parameters:No more workers in left
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (164)]: wc_create_worker
validate faile
d for loadbalancerdjpa
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (229)]: build_worker_map failed

to crea
te workerloadbalancerdjpa
[Wed Aug 22 20:16:28 2001]  [jk_ajp13_worker.c (433)]: In
jk_worker_t::validate,
 resolve failed
[Wed Aug 22 20:16:28 2001]  [jk_ajp13_worker.c (435)]: In
jk_worker_t::validate,
 Error localhost*localhost 8011
LL Parameters
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (164)]: wc_create_worker
validate faile
d for loadbalancerdjpa
[Wed Aug 22 20:14:32 2001]  [jk_worker.c (229)]: build_worker_map failed

to crea
te workerloadbalancerdjpa



Any Help ? Thanks .








Re: ldap authentication with tomcat

2001-08-24 Thread Boris Niyazov

Depending on your requirements you may want to create a auth servlet that 
authenticates users to ldap server using for ex netscape's ldapjdk package or 
JDNI classes, and then keep users login in the session object. All you protected 
servlets/jsps should assert the session checking if user's info is in the 
session.

Another option: to use JNDIRealm, but I can't advise on this b/c I never used 
it.

  - Boris




Hi,

I am new to the subject:
How can I enforce ldap authentication for certain resources
using tomcat - similar to the

Directory  toProtectResourcePath 
Options FollowSymLinks
AllowOverride None
AuthType Basic
AuthName Authentication
AuthLDAPURL ldap://ldapUrl
require valid-user
/Directory

for apache in order to be able to get user information via
e.g. getRemoteUser() etc. ?

And by the way: Where is a valuable description of the configuration
with server.xml and web.xml?

Thanks.

Astrid






Re: Question working with security realms

2001-08-24 Thread Roland

 Using container managed security means you should *not* do your own
 application-managed security -- it's an either/or thing.  You should
 design your app so that you use one or the other, but not both.

Yes, sure, but my question is, how can I forward the user from the container
security to my application, after he has logged on. This is because my
application needs to know which user is logged on and adjust its behaviour
accordingly!

Thanks Roland





RE: server.xml code insert....

2001-08-24 Thread Larry Isaacs

I'm not sure exactly what you mean by current full version release.
Tomcat 3.2.3 is currently the only final released version of Tomcat.
Tomcat 3.3 and Tomcat 4.0 are both in beta and are upgrades from
Tomcat 3.2.3.

Tomcat 3.2.3 is a reference implementation for the Servlet 2.2/JSP 1.1
specs.  Tomcat 3.3 will continue as a reference implementation to
those same specs.

Tomcat 4.0 is the reference implementation for the Servlet 2.3/JSP 1.2
spec.  As such, it has new features that are supported by the newer
specs.  It also has a completely different architechure, called
Catalina, under the hood driving the web server.

Which one you might upgrade to is up to you and your needs.

Cheers,
Larry


 -Original Message-
 From: Bob Wilson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 2:06 PM
 To: [EMAIL PROTECTED]
 Subject: RE: server.xml code insert
 
 
 Ooops...my bad.  I was looking at the 3.3 docs and using 
 version 3.2.3.
 
 Sorry!
 
 Is 4.0 the most current full version release??  And, would it 
 be recommended 
 for me to upgrade from 3.2??
 
 Bob.
 
 
 From: Larry Isaacs [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' 
 [EMAIL PROTECTED]
 Subject: RE: server.xml code insert
 Date: Fri, 24 Aug 2001 13:11:55 -0400
 
 Are you sure you are using Tomcat 3.2.3 or looking at the wrong
 documentation.  You are citing documentation that exists only in
 Tomcat 3.3.
 
 Cheers,
 Larry
 
 -Original Message-
 From: Bob Wilson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 12:17 PM
 To: [EMAIL PROTECTED]
 Subject: server.xml code insert
 
 
 I am using TOMCAT 3.2.3 and everything seems to be running 
 fine however in
 the documentation regarding configurations to TOMCAT for 
 auto-generating 
 web
 server config files, I noticed it says to add the following 
 code after the
 AutoWebApp ... / module in the server.xml.  Here is the code...
 
Apache mod_jk config:ApacheConfig /
   Def conf file:conf/auto/mod_jk.conf
Def workers file:conf/jk/workers.properties
 
 In my server.xml file I do not have an entry for AutoWebApp ... /
 anywhere.  The question I have is...Is this something that 
 should have been
 in the file from the beginning when I unpacked it or was 
 this AutoWebApp
 ... /  something that I had to manually configure??  If I do have to
 configure this, would anyone have any instructions on how to 
 do so and
 possibly explain 'why' this has to be done??
 
 Thanks,
 Bob Wilson.
 
 _
 Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp
 
 
 _
 Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp
 



RE: Question working with security realms

2001-08-24 Thread Filip Hanik

javax.servlet.http.HttpServletRequest.

public java.security.Principal getUserPrincipal()

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

-Original Message-
From: Roland [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 11:27 AM
To: [EMAIL PROTECTED]
Subject: Re: Question working with security realms


 Using container managed security means you should *not* do your own
 application-managed security -- it's an either/or thing.  You should
 design your app so that you use one or the other, but not both.

Yes, sure, but my question is, how can I forward the user from the 
container
security to my application, after he has logged on. This is because my
application needs to know which user is logged on and adjust its behaviour
accordingly!

Thanks Roland






Re: Load balancing tomcat and webapp directory location

2001-08-24 Thread Rick Anderson


It seems that this is what I was looking for:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/Tomcat-Workers-HowTo.html

I have read the mod_jk document and it does not discuss the details of
load balancing tomcat.

http://www.google.com/search?as_q=tomcatnum=10btnG=Google+Searchas_epq=load+balanceas_oq=as_eq=lr=as_qdr=allas_occt=anyas_dt=ias_sitesearch=jakarta.apache.orgsafe=off

--Rick
__
Rick Anderson   | [EMAIL PROTECTED]
|_
Rutgers University, Continuous Education  Outreach
Consulting System Administrator,  (732)932-3938
__

On Fri, 24 Aug 2001, David Cassidy wrote:

 I'm sure a million people are going to say
 
 RTFM
 
 But I'm nice :)
 
 Have a look at mod_jk . It is a very nice module and allows 
 apache to send requests through to tomcat.
 You can have more than one apache and more than tomcat - depending
 on how many machines you have :)
 
 Your webapps setup is a tomcat thing. I tend to copy zero length
 files ( ie blank .jsp pages) onto the area that apache serves from
 so that it can do the checks for index.jsp etc and be happy !
 
 Happy reading
 
 David
 
 
 Rick Anderson wrote:
  
  We're using tomcat 3.2.3 at the moment and are attempting to configure
  tomcat so that it can be load balanced behind an apache web server.
  
  Where should the webapps directory be located? Does it need to copied
  onto
  each machine running tomcat or can it be located on the apache server?
  
  I haven't found docs on this yet. If some one could point me in the
  right
  direction I'd appreciate it.
  
  Thanks,
  -Rick Anderson
  
  __
  Rick Anderson   | [EMAIL PROTECTED]
  |_
  Rutgers University, Continuous Education  Outreach
  Consulting System Administrator,  (732)932-3938
  __
 




Re: Question working with security realms

2001-08-24 Thread Craig R. McClanahan



On Fri, 24 Aug 2001, Roland wrote:

 Date: Fri, 24 Aug 2001 15:27:22 -0300
 From: Roland [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Question working with security realms

  Using container managed security means you should *not* do your own
  application-managed security -- it's an either/or thing.  You should
  design your app so that you use one or the other, but not both.
 
 Yes, sure, but my question is, how can I forward the user from the container
 security to my application, after he has logged on. This is because my
 application needs to know which user is logged on and adjust its behaviour
 accordingly!


You don't have to do any forwarding.  Consider the various login methods
that might be in use, and assume that the user just requested a protected
resource for the first time:

* BASIC and DIGEST:  The browser will pop up the login dialog.  Once the
  user authenticates correctly, the original request will be honored.

* FORM BASED:  The container will save the original request and display
  the form login page.  After you type in your username and password and
  press submit, the container will automatically return the user to
  the original request.

* CLIENT-CERT:  You will be asked which or your client certificates should
  be sent to the server.  Once it's checked, the original request
  will be honored.

As for how your application can adjust its behavior, look at the javadocs
for HttpServletRequest.getRemoteUser(),
HttpServletRequest.getUserPrincipal(), and
HttpServletRequest.isUserInRole().  These calls can be used to vary the
application's behavior based on who the user is, or what roles they have.
For example, it's real easy to add some extra menu options for a manager:

  out.println(... HTML for the menu options everyone sees ...);
  if (request.isUserInRole(manager))
out.println(... HTML for extra options just for managers ...);

You can experiment with container managed security using the example app.
Just start Tomcat and try to access:

  http://localhost:8080/examples/jsp/security/protected/index.jsp

and you can look at the code there.  You will see that there is absolutely
nothing in the protected page itself that worries about login, because
that is what the container is doing for you.

 Thanks Roland

Craig





Re: Is there a way to make a default web.xml? --Tomcat 3.x

2001-08-24 Thread Jeff Kilbride

Hi Rob,

3.2.x still has web.xml in $TOMCAT_HOME/conf. I haven't tried 3.3 yet.

Thanks,
--jeff

- Original Message -
From: Rob S. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 7:42 AM
Subject: Re: Is there a way to make a default web.xml? --Tomcat 3.x


 Someone correct me if I'm wrong plz =) but I believe the web.xml in
$TOMCAT_HOME/conf is applied to all web apps.  I think I read on the dev
list (from Larry) that this feature was removed in 3.x to increase app
portability === that relying on a default web.xml reduces the portability
of an application.

 However, this behavior is indeed present in TC4.

 - r

 On Fri, 24 Aug 2001 09:22:32 -0500 [EMAIL PROTECTED] wrote:
  Sorry, forgot to mention tomcat version 3.x
  -Original Message-
  From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 24, 2001 9:17 AM
  To: [EMAIL PROTECTED]
  Subject: Is there a way to make a default web.xml?
 
 
  Is there a way to make a default web.xml file that will work across all
  contexts/virtual hosts?
 
  Brandon







response.sendRedirect problems with IE5.5

2001-08-24 Thread Eric Simpson

When I call the response.sendRedirect() function from a Java Bean I get
a response that already has data in it, the only problem
is that the response shouldn't have any data in it already.  I have a
function call before anything is written to the output buffer
that determines if this page should call a response.sendRedirect().

The weird thing is that only IE has the data that shouldn't be returned
in the html page (from the view source option).  Netscape doesn't have
the garbage data when I view source.

What is going on here?

Info:
Tomcat 3.2.3
jdk1.2.2
NT 4.0

### data that shouldn't be returned ###
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
http://www.w3.org/TR/REC-html40/loose.dtd;

html
head

 ... omitted data ...

   CircImage4.src = HTTP/1.1 200 OK
Via: 1.0 MAIL
Connection: Keep-Alive
Content-Length: 1536
Content-Type: text/html
Last-Modified: Thu, 16 Aug 2001 16:54:28 GMT
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java
1.2.2; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)

### page that should be returned ###
html
head
... rest of response ...

### relevent parts of index. jsp ###
/*** session operations ***/
try {
sessionBean.setResponse(response);
sessionBean.setRequest(request);
sessionBean.setIP(request.getRemoteAddr());
sessionBean.setFile(path + name);
sessionBean.log();
}
catch(IOException ignored) { }
catch(SQLException ignored) { }

// output header,nav
application.getRequestDispatcher(/main.jsp).include(request,response);

// output static page if no processing needed on content
if(proc == null || proc.equals(false)) {

application.getRequestDispatcher(/static.jsp).include(request,response);

}
else {
application.getRequestDispatcher(/ +
name).include(request,response);
}

// output footer
application.getRequestDispatcher(/footer.jsp).include(request,response);

%

### relevent portion of SessionBean ###
public void log() {
 ...
 if(visits == 1) {
 res.sendRedirect(/intro.html);
 }
...
}





RE: response.sendRedirect problems with IE5.5

2001-08-24 Thread Randy Layman


Calling response.sendRedirect does not stop the execution of a JSP
page.  You are responsible for returning from the _jspService method after
calling sendRedirect (by placing a return statement in your JSP).  

What is actually happening is that Netscape is thinking that its
smarter than the web developer by ignoring everything after the redirect
command while IE is actually doing the correct thing (for once) and showing
all the HTML returned by the server.

Randy


 -Original Message-
 From: Eric Simpson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 4:42 PM
 To: [EMAIL PROTECTED]
 Subject: response.sendRedirect problems with IE5.5
 
 
 When I call the response.sendRedirect() function from a Java 
 Bean I get
 a response that already has data in it, the only problem
 is that the response shouldn't have any data in it already.  I have a
 function call before anything is written to the output buffer
 that determines if this page should call a response.sendRedirect().
 
 The weird thing is that only IE has the data that shouldn't 
 be returned
 in the html page (from the view source option).  Netscape 
 doesn't have
 the garbage data when I view source.
 
 What is going on here?
 
 Info:
 Tomcat 3.2.3
 jdk1.2.2
 NT 4.0
 
 ### data that shouldn't be returned ###
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 http://www.w3.org/TR/REC-html40/loose.dtd;
 
 html
 head
 
  ... omitted data ...
 
CircImage4.src = HTTP/1.1 200 OK
 Via: 1.0 MAIL
 Connection: Keep-Alive
 Content-Length: 1536
 Content-Type: text/html
 Last-Modified: Thu, 16 Aug 2001 16:54:28 GMT
 Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java
 1.2.2; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)
 
 ### page that should be returned ###
 html
 head
 ... rest of response ...
 
 ### relevent parts of index. jsp ###
 /*** session operations ***/
 try {
 sessionBean.setResponse(response);
 sessionBean.setRequest(request);
 sessionBean.setIP(request.getRemoteAddr());
 sessionBean.setFile(path + name);
 sessionBean.log();
 }
 catch(IOException ignored) { }
 catch(SQLException ignored) { }
 
 // output header,nav
 application.getRequestDispatcher(/main.jsp).include(request,
 response);
 
 // output static page if no processing needed on content
 if(proc == null || proc.equals(false)) {
 
 application.getRequestDispatcher(/static.jsp).include(reques
 t,response);
 
 }
 else {
 application.getRequestDispatcher(/ +
 name).include(request,response);
 }
 
 // output footer
 application.getRequestDispatcher(/footer.jsp).include(reques
 t,response);
 
 %
 
 ### relevent portion of SessionBean ###
 public void log() {
  ...
  if(visits == 1) {
  res.sendRedirect(/intro.html);
  }
 ...
 }
 
 



RE: Is there a way to make a default web.xml? --Tomcat 3.x

2001-08-24 Thread Larry Isaacs

The $TOMCAT_HOME/conf/web.xml is still there (for example purposes?)
but it isn't read.  To avoid confusion, this file has been removed
in Tomcat 3.3.

Larry

 -Original Message-
 From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 24, 2001 3:38 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Is there a way to make a default web.xml? --Tomcat 3.x
 
 
 Hi Rob,
 
 3.2.x still has web.xml in $TOMCAT_HOME/conf. I haven't tried 3.3 yet.
 
 Thanks,
 --jeff
 
 - Original Message -
 From: Rob S. [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, August 24, 2001 7:42 AM
 Subject: Re: Is there a way to make a default web.xml? --Tomcat 3.x
 
 
  Someone correct me if I'm wrong plz =) but I believe the web.xml in
 $TOMCAT_HOME/conf is applied to all web apps.  I think I read 
 on the dev
 list (from Larry) that this feature was removed in 3.x to increase app
 portability === that relying on a default web.xml reduces 
 the portability
 of an application.
 
  However, this behavior is indeed present in TC4.
 
  - r
 
  On Fri, 24 Aug 2001 09:22:32 -0500 
 [EMAIL PROTECTED] wrote:
   Sorry, forgot to mention tomcat version 3.x
   -Original Message-
   From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 24, 2001 9:17 AM
   To: [EMAIL PROTECTED]
   Subject: Is there a way to make a default web.xml?
  
  
   Is there a way to make a default web.xml file that will 
 work across all
   contexts/virtual hosts?
  
   Brandon
 
 
 
 



Changing Tomcat webapps/ROOT

2001-08-24 Thread Sahar Madani

Hi
Could someone tell me how can I change the webapps root ?
I would like to get to my servlets app like this
http://my.url.com/myapp/Hello
instead of http://my.url.com/myapp/servlet/Hello
Thanks
Sahar Madani
*







keytool error: java.security.cert.CertificateException: IOException: Sequencetag error

2001-08-24 Thread ilya . birman

I am getting an error
keytool error: java.security.cert.CertificateException: IOException:
Sequence tag error
when i try to import s sign certificate into the keystore (JDK 1.3 on
Solaris 8) keytool.
 I have seen a lot of posting on this on the web but no resolution Can
anyone help please
Ilya
---
This  message  (including  any  attachments)  is  confidential  and  may be
privileged.  If you have received it by mistake please notify the sender by
return  e-mail  and  delete this message from your system. Any unauthorized
use  or  dissemination  of  this  message  in  whole or in part is strictly
prohibited.  Please  note  that e-mails are susceptible to change. ABN AMRO
Bank  N.V.  (including  its  group  companies)  shall not be liable for the
improper  or  incomplete  transmission of the information contained in this
communication  nor  for  any delay in its receipt or damage to your system.
ABN  AMRO  Bank  N.V.  (or its group companies) does not guarantee that the
integrity   of  this  communication  has  been  maintained  nor  that  this
communication is free of viruses, interceptions or interference.
---




Re: I need run jakarta-tomcat

2001-08-24 Thread Pierre Carette

If it is under Windows I believe there is a Microsoft loopback driver on the
installation cd,

Pierre

- Original Message -
From: Jaime Gomez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 24, 2001 6:05 PM
Subject: I need run jakarta-tomcat


 Hi world
 I have a problem, because I need to run Jakarta-Tomcat over one PC
 without card network, when i try to run tomcat , i have a mistake with
 the socket, anyone known how should resolve this problem
 I think that is possible simulation of card network , but don't known
 any product free

 thanz

 Jaime





Re: Tomcat Performance

2001-08-24 Thread Jeff Hoare

Yep,
I think that with the later glibc you have to limit the stack size available 
to the session you run the sun jdk in. It used to *not* start for me untill 
the stack size was limited to 2meg (ulimit -s 2048), now runs fine.

Jeff


On Friday 24 August 2001 23:31, you wrote:
 On Fri, 24 Aug 2001 14:43:50 +0200 [EMAIL PROTECTED] wrote:
  i had the best results with the sun jdk 1.3.1 on windows and with ibm jdk
  1.3.0 for linux. on some linux machines the sun jdk wouldn't work at
  all...

 Not to defend it or anything =) but I've run it on suse, redhat, debian,
 and slackware.

 - r



OutOfMemory - Set Java Heap Size?

2001-08-24 Thread Max Hugen

I run Linux/Apache/Tomcat plus Oracle on a server with 512Mb of memory. I
have successfully implemented a couple of Internet applications using JSP,
Servlets (plus Oracle) etc.

For each application (and client) I start a new Tomcat session, using a
custom server.xml for each one. All was ok, until I tried increasing Tomcat
sessions from 6 to 7, then I received the java.lang.OutOfMemoryError when
starting the Tomcat sessions.

I've read through many of the posts on this subject, some of which suggest
to increase the heap size. Unfortunately, I'm a newbie to Java (and Linux
and JSP and Oracle g) so I don't know how to either check this heap size,
nor how to permanently set it to a value via a script using a switch
like -Xms256m.

The script I use to start Tomcat follows, plus the console output. Could
anyone advise how to set the heap please?


Many thanks,

Max Hugen   [EMAIL PROTECTED]
Hugen Enterprises Pty Ltd, Sydney, Australia
www.hugen.com.au
Internet Application Developers

Script Start
echo Tomcat Startup ~
echo Start an instance of Tomcat for hugen
/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_he.xml
echo Start an instance of Tomcat for yass3i
/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_yass3i.xml
echo Start an instance of Tomcat for isp
/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_isp.xml
echo Start an instance of Tomcat for im2000i
/usr/local/tomcat/bin/startup.sh -f
/usr/local/tomcat/conf/server_im2000i.xml
echo Start an instance of Tomcat for secure
/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_secure.xml
echo Start an instance of Tomcat for aedo
/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_aedo.xml
echo Start an instance of Tomcat for ncap
/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_ncap.xml
# Give Tomcat time to start before restarting Apache.
echo Waiting 45 secs...
sleep 45
# Restart Apache to register Tomcat properly.
echo Restart Apache
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
sleep 2
echo Ok, we should be in business!
Script End

Console Output Start
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat. Check logs/tomcat.log for error messages

Restart Apache

Exception in thread main java.lang.OutOfMemoryError: unable to create new
native thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.init(ThreadPool.java:465
)
at
org.apache.tomcat.util.ThreadPool.openThreads(ThreadPool.java:360)
at org.apache.tomcat.util.ThreadPool.start(ThreadPool.java:148)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:245)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

Exception in thread main java.lang.OutOfMemoryError: unable to create new
native thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.ThreadPool$MonitorRunnable.init(ThreadPool.java:382
)
at org.apache.tomcat.util.ThreadPool.start(ThreadPool.java:149)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:245)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

Shutting down Web Service: httpd

/etc/rc.d/init.d/httpd: fork: Resource temporarily unavailable
 Web Service: /usr/sbin/httpd

Console Output End




Can't retrieve examples remotely

2001-08-24 Thread Mike Barb Kollier

Hi everyone,

I've just installed tomcat on Linux, my environment is:
Redhat 7.1
tomcat 3.2.3
apache 1.3.19
mod_jk

When I test the tomcat examples on the install machine things go fine.
Testing remotely using either the LAN IP or the internet IP of the
machine I often get an error.  Somewhere between apache and tomcat it is
changing the domain of the request to localhost.localdomain and instead
of retrieving the page I get the error localhost.localdomain could not
be found.  It does this occasionally on the install machine but
obviously this causes no problem.

What do I need to do to remedy this?

Thanks in advance for your help,

Mike





Re: Question working with security realms

2001-08-24 Thread Roland


 You don't have to do any forwarding.  Consider the various login methods
 that might be in use, and assume that the user just requested a protected
 resource for the first time:

 * BASIC and DIGEST:  The browser will pop up the login dialog.  Once the
   user authenticates correctly, the original request will be honored.

 * FORM BASED:  The container will save the original request and display
   the form login page.  After you type in your username and password and
   press submit, the container will automatically return the user to
   the original request.

 * CLIENT-CERT:  You will be asked which or your client certificates should
   be sent to the server.  Once it's checked, the original request
   will be honored.

Where can I find more infor and documentation especially on the FORM BASED
thing?

Thanks...Roland





Re: Changing Tomcat webapps/ROOT

2001-08-24 Thread John Baker

On Friday 24 August 2001 21:25 pm, you wrote:
 Hi
 Could someone tell me how can I change the webapps root ?
 I would like to get to my servlets app like this
 http://my.url.com/myapp/Hello
 instead of http://my.url.com/myapp/servlet/Hello

That's totally different to what you are asking to do. The root is staying 
the same (myapp) but you want to fiddle with mappings in your web.xml file.


-- 
John Baker, BSc CS.
Java Developer, TEAM Slb. (http://www.teamenergy.com/)
The views expressed in this mail are my own.



Please help me on Tomcat config

2001-08-24 Thread KASI RAMAN

My web application is working fine in JSWDK(1.0) environment. I  am trying 
to run the same application with Tomcat and IIS4.0. It is not running 
correctly(some links are referred incorrectly). So I have questions on basic 
setup itself and the questions are:
·   Where exactly I have to put my Class files(Servlet files)
·   Where exactly I have to put my HTML files.
·   How to set the context path?
·   Do I have to modify the “uriworkermap.properties” and web.xml?
·   How to refer the servlets in HTML files?(for me the webserver is always 
adding incorrect runtime path)

Thanks in advance,
Kasi


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




  1   2   >