Re: Red Hat Tomcat successful user?

2001-01-12 Thread Pete Ehli
Title: Red Hat Tomcat successful user?



I don't use Linux and tomcat (NT and tomcat) but I 
bet you could really use this web sit.
http://www.jammconsulting.com/servlets/com.jammconsulting.servlet.JAMMServlet/ReadingRoomPage
 
Let me know if this does the trick. I plan on 
trying my hand at Linux and would like to know what you think of the install 
directions. -- Pete -- [EMAIL PROTECTED]

  - Original Message - 
  From: 
  kiril 
  
  To: Jakarta (E-mail) 
  Sent: Friday, January 12, 2001 1:24 
  PM
  Subject: Red Hat Tomcat successful 
  user?
  
  Is there anyone out there successfully runnint 
  Tomcat 3.2.1 w/ Apache 1.3 on Red Hat 6.2 or something similar, using AJP13, 
  who could perhaps show me some config files or give me some hints as to why my 
  install isn't working?  Getting a java.net.SocketException whenever 
  trying to serve a .jsp.
  ___ Kiril Savino Software Engineer Higher One, Inc [EMAIL PROTECTED] 



Re: Blending webapps with HTML files

2001-01-12 Thread Geoff Lane

First time posting to the list. So good to meet you all. :)

> David Wall wrote:
> 
> I'm new to Tomcat 3.2.1 and Servlet 2.2 in particular, having just
> come from JRun before webapps made their debut.
> 
> I'm struggling with the "best practices" people are using for storing
> their JSPs and Java class files in the webapps directory, while
> storing images and html files in the web server directory root.
> 
> For example, in Apache 1.3.14, my document root is htdocs and I am
> putting some files there for serving by apache, like:
> 
> htdocs/images/a.gif
> htdocs/images/b.gif
> htdocs/index.jsp <-- empty dummy file workaround so that Apache
> will send a request for "/" to Tomcat's ROOT index.jsp
> htdocs/app.js
> htdocs/app.css
> etc...

I've noticed the same thing with mapping a servlet to an index file (in
my case I mapped it to index.html). I think you have to 'trick' the
webserver into loading a file - if it doesn't find a default file to
load it won't do anything.
 
> And in my webapps under Tomcat I have:
> 
> webapps/ROOT/index.jsp<-- the actual index.jsp served up when I
> enter "/" for apache
> webapps/ROOT/WEB-INF/classes/   (all of my class files needed just by
> the index.jsp file)
> webapps/pub/index.jsp
> webapps/pub/company.jsp
> webapps/pub/news.jsp
> webapps/pub/WEB-INF/classes/   (all the class files needed by 'pub'
> application, even though they are the same as those for ROOT).
> 
> My questions are:
> 
> 1) This separation of the JSP files from stuff like images,
> javascripts, stylesheets when deployed seems like a pain since they
> need to be in the same directory when I'm using my editing tools (like
> Dreamweaver).  Only when I deploy do I need to move the static files
> to the apache locations and the JSPs to the Tomcat webapps area.
> Don't others find this to be a pain, or I am just not doing it right?
> 
> 2) The ROOT and pub applications are really not distinct applications,
> only a separation of JSPs and such from the root to a public
> directory.  I had this subdirectory structure back before webapps, and
> they were done to organize the JSPs into logical groups like how all
> HTML sites are done.  They are not put into separate subdirectories
> because they are separate webapps.  Can a single webapp support
> multiple directories, or at least a directory and all subdirectories?
> Perhaps ROOT is just abnormal because everybody wants a page to be
> displayed when they enter your URL like http://myeastside.com/
> 
> 3) When Java classes are shared by several webapps, they have to
> appear in each of the webapps' WEB-INF/classes directories.  Is that
> what people are doing, or are they JARing them up and then putting
> them in a common location (like Tomcat's 'lib') to be shared by all?

What I found - and prefer - is to put shared JARs in the
$TOMCAT_HOME/lib directory. All of the applications will find them then
and share the same ones. They can also be found/loaded if they are set
in the CLASSPATH (on Unix I have a wrapper script that sets this before
starting Tomcat). One example of something you have to have in the
CLASSPATH and not the lib directory is the j2ee.jar if you access it -
Tomcat won't start with it in the lib directory (probably because it
declares the servlet stuff agina).

> Any thoughts will help.  The separation forced by the webapps concept
> seems broken to me since it seems unlikely that web servers and their
> standard document root processing is not going to go away anytime soon
> (we still have PHP, CGI, images, etc. besides JSPs).
> 
> David

My understanding of webapps is that it is for autoconfiguring things.
But it is completely optional. I'm exploring Tomcat at work and chose to
intentionaly not use webapps so that we would force ourselves to
explicitly control the configuration of the application. So, that being
said, one thing you could do: in your server.xml file create a context
or a virtual host and map it to the directory where the Apache docRoot
lives. E.g.:
(Forgive any errors, this is from memory)



 

Then under c:/htdocs you'll need your WEB-INF directory with it's
web.xml file mapping *.jsp to the JSP engine, etc. I've never done this
with JSPs, but it works with static files and servlets so I don't see
why it wouldn't with them.

Don't know if these are Best Practices, but they're working so far for
me. :)

-- 
---
Geoff Lane  <[EMAIL PROTECTED]>
'For a list of the ways which technology has 
failed to improve our quality of life, press 3.'

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




Blending webapps with HTML files

2001-01-12 Thread David Wall



I'm new to Tomcat 3.2.1 and Servlet 2.2 in 
particular, having just come from JRun before webapps made their 
debut.
 
I'm struggling with the "best practices" people are 
using for storing their JSPs and Java class files in the webapps directory, 
while storing images and html files in the web server directory 
root.
 
For example, in Apache 1.3.14, my document root is 
htdocs and I am putting some files there for serving by apache, 
like:
 
htdocs/images/a.gif
htdocs/images/b.gif
htdocs/index.jsp <-- 
empty dummy file workaround so that Apache will send a request for "/" to 
Tomcat's ROOT index.jsp
htdocs/app.js
htdocs/app.css
etc...
 
And in my webapps under Tomcat I have:
 
webapps/ROOT/index.jsp    <-- the 
actual index.jsp served up when I enter "/" for apache
webapps/ROOT/WEB-INF/classes/   (all of 
my class files needed just by the index.jsp file)
webapps/pub/index.jsp
webapps/pub/company.jsp
webapps/pub/news.jsp
webapps/pub/WEB-INF/classes/   (all the 
class files needed by 'pub' application, even though they are the same as those 
for ROOT).
 
My questions are:
 
1) This separation of the JSP files from stuff like 
images, javascripts, stylesheets when deployed seems like a pain since they need 
to be in the same directory when I'm using my editing tools (like 
Dreamweaver).  Only when I deploy do I need to move the static files to the 
apache locations and the JSPs to the Tomcat webapps area.  Don't others 
find this to be a pain, or I am just not doing it right?
 
2) The ROOT and pub applications are really not 
distinct applications, only a separation of JSPs and such from the root to a 
public directory.  I had this subdirectory structure back before webapps, 
and they were done to organize the JSPs into logical groups like how all HTML 
sites are done.  They are not put into separate subdirectories because they 
are separate webapps.  Can a single webapp support multiple directories, or 
at least a directory and all subdirectories?  Perhaps ROOT is just abnormal 
because everybody wants a page to be displayed when they enter your URL like http://myeastside.com/
 
3) When Java classes are shared by several webapps, 
they have to appear in each of the webapps' WEB-INF/classes directories.  
Is that what people are doing, or are they JARing them up and then putting them 
in a common location (like Tomcat's 'lib') to be shared by all?
 
Any thoughts will help.  The separation forced 
by the webapps concept seems broken to me since it seems unlikely that web 
servers and their standard document root processing is not going to go away 
anytime soon (we still have PHP, CGI, images, etc. besides JSPs).
 
David


Directory going to index.jsp

2001-01-12 Thread David Wall



I'm running Apache 1.3.14 with Tomcat 3.2.1 on 
Linux RH 6.2 and I've noticed some odd behavior finding the index.jsp file when 
a directory name is present.  As before (I was running with JRun before), I 
have this in httpd.conf:
 
DirectoryIndex index.jsp index.html
 
And my Tomcat mounts look like:
 
JkMount /*.jsp ajp12JkMount /servlet/* 
ajp12
 
But when I request my main URL http://localhost/ it doesn't load index.jsp but 
just shows the directory listing.  If I type in http://localhost/index.jsp it runs just 
fine from Tomcat.  What I did discover is that even if I put an empty 
index.jsp file in the Apache htdocs (main directory), then it will serve it 
up.  My guess is that Apache is seeing the directory request, checks to see 
if there's an index.jsp, but it's not there (since it's served through Tomcat's 
webapp).
 
Is this just the way it works, or is there 
something subtle I'm doing wrong?Thanks,
David


Re: problem starting Apache with mod_jk

2001-01-12 Thread Jared

>> if you are using Solaris and Apache 1.3.14 you can download a compiled
>> version of mod_jk.so
>> at http://news.pakana.com/mod_jk.so
> 
> I'll give it a try!

whoops, that's a Sparc binary. I'm running Solaris for Intel.

So, I thought, try rebuilding it - I tried an additional flag to apxs
when building mod_jk.so, and it worked.

Thanks for the help!

cheers,

- Jared


-- 
The world is just filling up with more and more idiots! And the computer is
giving them access to the world! They're spreading their stupidity! At least
they were contained before - now they're on the loose everywhere!


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




Re: problem starting Apache with mod_jk

2001-01-12 Thread Filip Hanik

let me know how it goes

Filip

Filip Hanik
Technical Architect
[EMAIL PROTECTED]


"Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating system
written for a 4 bit processor by a 2 bit company which can not stand 1 bit
of competition."
- Original Message -
From: "Jared" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 8:45 PM
Subject: Re: problem starting Apache with mod_jk


> try to provide some more info on your system
>
> 1. OS
> 2. Apache version
> 3. Tomcat version

sorry.

Solaris 8 for Intel
Apache 1.3.14
Tomcat 3.2

> if you are using Solaris and Apache 1.3.14 you can download a compiled
> version of mod_jk.so
> at http://news.pakana.com/mod_jk.so

I'll give it a try!

cheers,

- Jared


> - Original Message -
> From: "Jared" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 12, 2001 8:25 PM
> Subject: problem starting Apache with mod_jk
>
>
> hello,
>
> I'm trying to get Apache and Tomcat to work together via mod_jk, but I
> am not having much luck.
>
> I have mod_jk.so built and in Apache's libexec directory properly.
>
> In Apache's httpd.conf, for Tomcat I've only included this line:
>
> Include /usr/local/tomcat/conf/mod_jk.conf-auto
>
> However, whenever I try to start Apache with that line in the httpd.conf
> file, I get this message:
>
> 
> Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1:
> /usr/local/apache/bin/httpd: fatal: relocation error: file /us
> r/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not
> found
> bin/apachectl start: httpd could not be started
> 
>
> If I comment that line out, Apache starts up fine.
>
> Am I missing some important detail? Any help would be appreicated.
> Thanks!
>
> cheers,
>
> - Jared
>
>
> --
> Wearing a turtleneck is like being strangled by a really weak guy...
> all day.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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


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




Re: problem starting Apache with mod_jk

2001-01-12 Thread Jared

> try to provide some more info on your system
> 
> 1. OS
> 2. Apache version
> 3. Tomcat version

sorry.

Solaris 8 for Intel
Apache 1.3.14
Tomcat 3.2

> if you are using Solaris and Apache 1.3.14 you can download a compiled
> version of mod_jk.so
> at http://news.pakana.com/mod_jk.so

I'll give it a try!

cheers,

- Jared


> - Original Message -
> From: "Jared" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 12, 2001 8:25 PM
> Subject: problem starting Apache with mod_jk
> 
> 
> hello,
> 
> I'm trying to get Apache and Tomcat to work together via mod_jk, but I
> am not having much luck.
> 
> I have mod_jk.so built and in Apache's libexec directory properly.
> 
> In Apache's httpd.conf, for Tomcat I've only included this line:
> 
> Include /usr/local/tomcat/conf/mod_jk.conf-auto
> 
> However, whenever I try to start Apache with that line in the httpd.conf
> file, I get this message:
> 
> 
> Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1:
> /usr/local/apache/bin/httpd: fatal: relocation error: file /us
> r/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not
> found
> bin/apachectl start: httpd could not be started
> 
> 
> If I comment that line out, Apache starts up fine.
> 
> Am I missing some important detail? Any help would be appreicated.
> Thanks!
> 
> cheers,
> 
> - Jared
> 
> 
> --
> Wearing a turtleneck is like being strangled by a really weak guy...
> all day.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


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




Install the Binary Version of Tomcat

2001-01-12 Thread Shicheng TIAN(CMS)

Hello there,
I followed the instruction below trying to install Tomcat (on Windows 2000),
but failed to do so?!


>How Do I Install the Binary Version of Tomcat?
>Very simple. You should:
>Download the zip/tar.gz/whatever file from
>http://jakarta.apache.org/downloads/binindex.html. 
>Unzip the file into some directory (say foo). This should create a new
>subdirectory named "tomcat". 
>Change directory to "tomcat" and set a new environment variable (TOMCAT_HOME)
>to point to the root directory of your Tomcat hierarchy. 
>On Win32 you should type: 
>"set TOMCAT_HOME=foo\tomcat" 
>On UNIX you should type: 
>for bash/sh "TOMCAT_HOME=foo/tomcat ; export TOMCAT_HOME"
>for tcsh "setenv TOMCAT_HOME foo/tomcat" 
>Set the environment variable JAVA_HOME to point to the root directory of your
>JDK hierarchy, then add the Java interpreter to your PATH environment
>variable. 
>That's it! You can now execute Tomcat and it will run as a stand-alone (type
>1) servlet container. 


As soon as I issued the following commend:

D:\jakarta-tomcat-3.2.1\bin\startup

a new window (Tomcat 3.2) would appear for one/two seconds, then
it killed itself immediately!? in the mean time, some message appeared in the
original window as follow:

>Including all jars in D:\jakarta-tomcat-3.2.1\lib in your CLASSPATH.

>Using CLASSPATH:
>D:\jakarta-tomcat-3.2.1\classes;D:\jakarta-tomcat-3.2.1\lib\ant
>.jar;D:\jakarta-tomcat-3.2.1\lib\jasper.jar;D:\jakarta-tomcat-3.2.1\lib\jaxp.jar
>;D:\jakarta-tomcat-3.2.1\lib\parser.jar;D:\jakarta-tomcat-3.2.1\lib\servlet.jar;
>D:\jakarta-tomcat-3.2.1\lib\webserver.jar;C:\jack\lib\jack.jar;C:\jack\lib\jackd
>ev.jar;;.;C:\JMF21~1.1_B\lib\sound.jar;C:\JMF21~1.1_B\lib\jmf.jar;.;D:\website\a
>pps\jdbc\server;C:\jdk1.3\jre\classes;D:\jakarta-tomcat-3.2.1\lib\ant.jar;D:\jak
>arta-tomcat-3.2.1\lib\jasper.jar;D:\jakarta-tomcat-3.2.1\lib\jaxp.jar;D:\jakarta
>-tomcat-3.2.1\lib\parser.jar;D:\jakarta-tomcat-3.2.1\lib\servlet.jar;D:\jakarta-
>tomcat-3.2.1\lib\webserver.jar;C:\jdk1.3\lib\tools.jar
>
>Starting Tomcat in new window

Any advice, please!

Thanks,

Shicheng






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




Re: problem starting Apache with mod_jk

2001-01-12 Thread Filip Hanik

try to provide some more info on your system

1. OS
2. Apache version
3. Tomcat version

if you are using Solaris and Apache 1.3.14 you can download a compiled
version of mod_jk.so
at http://news.pakana.com/mod_jk.so

Filip


Filip Hanik
Technical Architect
[EMAIL PROTECTED]


"Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating system
written for a 4 bit processor by a 2 bit company which can not stand 1 bit
of competition."
- Original Message -
From: "Jared" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 8:25 PM
Subject: problem starting Apache with mod_jk


hello,

I'm trying to get Apache and Tomcat to work together via mod_jk, but I
am not having much luck.

I have mod_jk.so built and in Apache's libexec directory properly.

In Apache's httpd.conf, for Tomcat I've only included this line:

Include /usr/local/tomcat/conf/mod_jk.conf-auto

However, whenever I try to start Apache with that line in the httpd.conf
file, I get this message:


Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file /us
r/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not
found
bin/apachectl start: httpd could not be started


If I comment that line out, Apache starts up fine.

Am I missing some important detail? Any help would be appreicated.
Thanks!

cheers,

- Jared


--
Wearing a turtleneck is like being strangled by a really weak guy...
all day.


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


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




problem starting Apache with mod_jk

2001-01-12 Thread Jared

hello,

I'm trying to get Apache and Tomcat to work together via mod_jk, but I
am not having much luck.

I have mod_jk.so built and in Apache's libexec directory properly.

In Apache's httpd.conf, for Tomcat I've only included this line:

Include /usr/local/tomcat/conf/mod_jk.conf-auto

However, whenever I try to start Apache with that line in the httpd.conf
file, I get this message:


Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file /us
r/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not
found
bin/apachectl start: httpd could not be started


If I comment that line out, Apache starts up fine.

Am I missing some important detail? Any help would be appreicated.
Thanks!

cheers,

- Jared


-- 
Wearing a turtleneck is like being strangled by a really weak guy...
all day.


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




Re: Setup problems on Debian linux

2001-01-12 Thread Gregory Guthrie

At 08:58 PM 01/12/2001 -0600, Gregory Guthrie wrote:

>-- It is there, but permissions may be wrong; should ti be owned by www-data?
>
>omega:/var/lib/tomcat/conf# ls -l
>total 20
>-rw-r--r--1 root root  345 Nov  5 22:53 iis_redirect.reg-auto
>-rw-r--r--1 root root 3741 Nov  5 22:53 mod_jk.conf-auto
>-rw-r--r--1 root root 2565 Nov  5 22:53 obj.conf-auto
>-rw-r--r--1 root root  900 Dec 12 21:53 tomcat-apache.conf
>-rw-r--r--1 root root 1678 Nov  5 22:53 
>uriworkermap.properties-auto

-- yes, that was at least one problem, need to be owned by www-data.

Now it creates tomcat-auto.

Gregory Guthrie
[EMAIL PROTECTED] (641)472-1125Fax: -1103



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




Re: Setup problems on Debian linux

2001-01-12 Thread Gregory Guthrie

At 03:45 PM 01/12/2001 -0800, Robert Wohleb wrote:
>Look at stcout.log. It looks like init.d script for tomcat is
>redirecting output to that file. Thus, what I was saying about stderr
>telling you something would now be in that file.

-- ok.


>Why is jasper using /usr/share/tomcat/work/localhost_8080%2Fadmin_old
>for srcatch? Shouldn't it be using just /usr/share/tomcat/work/? Why do
>you have an examples context AND a tomcat-examples context?

-- I installed this from a debian package, and I think he switched some 
directories around.


>When it comes to the java.io.FileNotFoundException:
>/usr/share/tomcat/conf/obj.conf-auto error, make sure it is there. If
>not, try adding an empty file with that name and path. Tomcat might not
>be trying to create it when it can't find it. If you create it, it might
>fix it.

-- It is there, but permissions may be wrong; should ti be owned by www-data?

omega:/var/lib/tomcat/conf# ls -l
total 20
-rw-r--r--1 root root  345 Nov  5 22:53 iis_redirect.reg-auto
-rw-r--r--1 root root 3741 Nov  5 22:53 mod_jk.conf-auto
-rw-r--r--1 root root 2565 Nov  5 22:53 obj.conf-auto
-rw-r--r--1 root root  900 Dec 12 21:53 tomcat-apache.conf
-rw-r--r--1 root root 1678 Nov  5 22:53 
uriworkermap.properties-auto



>~Rob


Gregory Guthrie
[EMAIL PROTECTED] (641)472-1125Fax: -1103



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




RE: Managing Processes and Memories

2001-01-12 Thread Kxu

OK, That's explains. So I guess setting the initial and max heap size will
bottle all them up.

Thanks

Ken

-Original Message-
From: Steve Toth [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 4:28 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Managing Processes and Memories


Java doesn't really use that much memory, treat all those processes as
threads,  top/ps show the threads as seperate processes and asll that memory
is being shared between them.

-Original Message-
From: Kxu [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 4:19 PM
To: '[EMAIL PROTECTED]'
Subject: Managing Processes and Memories


Hi,

I just set up a Tomcat server 3.2 to work with Apache web server 1.3 on a
Linux box. I can help to notice that Tomcat started 38 java processed on the
machines and used about 370M of virtual memory. My question is that is it
really necessary to have that much processes running and that much memory
occupied in order for Tomcat to run? or it's just the default setting? 

If it's a setting problem, where can I go to tune down the memory and CPU
usage?

Any comment will be appreciated.

Ken Xu
iVea Technologies Inc.



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

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

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




Re: .war files

2001-01-12 Thread Craig R. McClanahan

Mary McCarthy wrote:

> hi
> anyone know how the .war files in the webapps folder generated?
> Thanks.
>

A web application archive (WAR) file is just a JAR file with a particular
directory structure (as described in the Servlet Specification at
).  So, you can use the
"jar" utility.

For the Tomcat distribution in particular, the WAR files were created with the
help of the Ant build tool ().  You can learn
about using Ant to help you create web applications by reading the Application
Developer's Guide that is included with Tomcat 3.2.1 -- simply point your
browser at file "doc/appdev/index.html" in the Tomcat distribution.

Craig McClanahan



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




Meta -inf folder

2001-01-12 Thread Mary McCarthy

Hi,
Anyone know what the Meta-inf folder is for?
Thanks in advance.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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




.war files

2001-01-12 Thread Mary McCarthy

hi
anyone know how the .war files in the webapps folder generated?
Thanks.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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




Re: PoolMan/Tomcat

2001-01-12 Thread Jon Baer



Java object pooling and caching library.
Its a pooling manager used for Connection pooling but it has the ability
to pool any object type not just java.sql.Connection.
Im not sure but I think it is dropped in favor of javax.sql.* package. 
Bummer their site is down.
- Jon
Cam DeBuck wrote:

When
I try to access that site I get redirected to: http://poolman.sourceforge.net/ Nothing
comes up. BTW, what
exactly is Poolman?  I too use Oracle 8i (8.1.6 and 8.1.7). 
Thanks.  --Cam--

- Original Message -

From:
Gianni
Salvagno

To: [EMAIL PROTECTED]

Sent: Friday, January 12, 2001 6:06
PM

Subject: PoolMan/Tomcat
 I work with Apache-Tomcat
and Oracle8i. My java applications work with PoolMan (codestudio) for the
jdbc connection management.I 
read on  Sun JDBC forum that Tomcat does not support it. Is it true?
Can you help me ?I
try to find http://www.codestudio.com  
but it' losted , I could not contact it !Do
you know my problem is PoolMan/Tomcat ? 
[EMAIL PROTECTED]
  [EMAIL PROTECTED]
Thank you very much!  






Re: PoolMan/Tomcat

2001-01-12 Thread Cam DeBuck



When I try to access that site I get redirected 
to:
 
http://poolman.sourceforge.net/
 
Nothing comes up.
 
BTW, what exactly is Poolman?  I too use 
Oracle 8i (8.1.6 and 8.1.7).  Thanks.
  --Cam--

  - Original Message - 
  From: 
  Gianni 
  Salvagno 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, January 12, 2001 6:06 
  PM
  Subject: PoolMan/Tomcat
  
  
  I work with Apache-Tomcat and Oracle8i. My java 
  applications work with PoolMan (codestudio) for the jdbc connection 
  management.
  I  read on  Sun JDBC forum that Tomcat does 
  not support it. Is it true? Can you help me ?
  I try to find http://www.codestudio.com   but it' losted , I could not contact it 
  !
   
  Do you know my problem is 
  PoolMan/Tomcat ?
   
    [EMAIL PROTECTED]   [EMAIL PROTECTED] 
  
  Thank you very 
  much!    
   


Re: Passing SSL info from Apache to tomcat

2001-01-12 Thread Filip Hanik

can you send us your config files,

Filip

Filip Hanik
Technical Architect
Pakana Corporation
[EMAIL PROTECTED]
415-371 9200 ext 3529

"Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating system
written for a 4 bit processor by a 2 bit company which can not stand 1 bit
of competition."
- Original Message -
From: "Shahed Ali" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 2:54 PM
Subject: Passing SSL info from Apache to tomcat


Hi,

I am using Tomcat 3.2.1 w/Apache 1.3.14. (Stronghold 3.0)

I have set up client certificates on my client (web browser) and set the
Apache directives for
a browser to require client certificates to access the site.

However, when I run the Snoop Servlet, I dont get a request attribute named
"java.security.cert.X509Certificate"

I have added the Jk directives wich are present in the mod_jk.conf-auto file
relating to SSL in my httpd.conf
file.

Can anyone tell me what I am missing ?

Thanks
Shahed.




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


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




PoolMan/Tomcat

2001-01-12 Thread Gianni Salvagno




I work with Apache-Tomcat and Oracle8i. My java 
applications work with PoolMan (codestudio) for the jdbc connection 
management.
I  read on  Sun JDBC forum that Tomcat does not 
support it. Is it true? Can you help me ?
I try to find http://www.codestudio.com   but it' losted , I could not contact it 
!
 
Do you know my problem is 
PoolMan/Tomcat ?
 
  [EMAIL PROTECTED]   [EMAIL PROTECTED] 

Thank you very 
much!    
 


RE: Managing Processes and Memories

2001-01-12 Thread Steve Toth

Java doesn't really use that much memory, treat all those processes as
threads,  top/ps show the threads as seperate processes and asll that memory
is being shared between them.

-Original Message-
From: Kxu [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 4:19 PM
To: '[EMAIL PROTECTED]'
Subject: Managing Processes and Memories


Hi,

I just set up a Tomcat server 3.2 to work with Apache web server 1.3 on a
Linux box. I can help to notice that Tomcat started 38 java processed on the
machines and used about 370M of virtual memory. My question is that is it
really necessary to have that much processes running and that much memory
occupied in order for Tomcat to run? or it's just the default setting? 

If it's a setting problem, where can I go to tune down the memory and CPU
usage?

Any comment will be appreciated.

Ken Xu
iVea Technologies Inc.



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

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




RE: Tomcat Crashing

2001-01-12 Thread Steve Toth

A small note to everyone, if you didn't know, the JDBC-ODBC bridge from Sun
is BETA and unsupported.  Not multithreaded (which is why it is crashing)
and only supports one result set per connection.  See Sun's JDBC Java page
for more information.  If you plan to deploy anything, use mySQL, oracle
(It's free for dev) or buy a real driver.  BTW, access doesn't scale very
well.

-Original Message-
From: Robert Wohleb [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 3:49 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat Crashing


I agree with Jon; get mysql. Your problem might be caused by a bad dll
somewhere os\r buggy software in the JDBC-ODBC bridge. Problems with
dlls cause huge memry leaks and weird crashes like you are experiencing.

~Rob

Jon Baer wrote:
> 
> Sounds like an ODBC/SQL database problem, you should not use JDBC-ODBC
bridge.
> 
>  I would download MySQL (free):
> http://www.mysql.net
> 
> And use the JDBC API for it (Type IV):
> http://www.mysql.net/downloads/api-jdbc.html
> 
> - Jon
> 
> Suleyman Serkan GURDAL wrote:
> 
> >  Hello;
> >
> >  We are 4th year students who are studying at Middle East Technical
> >  University, in the department of Computer Engineering. We are
> >  developing a senior design project named web-based seat reservation
> >  system for large and distributed computer laboratory
> >  environments. We are using the following software;
> >
> >  Java Servlets Technology
> >  Jdk 1.2.2
> >  JDBC Api
> >  MS Access
> >  JDBC-ODBC Bridge Driver
> >  Tomcat (as servlet engine)
> >  Apache (as web-server)
> >
> >  We have a problem. When we run our servlets by using Tomcat.
> >  It crashes down after 4-5 process, like querying the database, updating
> >  some records or inserting some records, that is it crashes down after
2-3
> >  minutes.
> >
> >  When we look at the log messages, because we have caught SQLExceptions
> >  we get "Function Sequence Error" or no error messages. We could not
> >  understand the problem source.
> >
> >  We ask u for help. If you can help us or tell somethings what can be
the
> >  problem about, we will be very grateful.
> >
> >  Thanks in advance...
> >
> >  S. Serkan GURDAL
> >  mail : [EMAIL PROTECTED]
> >  url  : www.ceng.metu.edu.tr/~e109746
> >
> >  Department of Computer Enginnering
> >  Middle East Technical University
> >   Ankara/TURKEY
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
___

 Robert Wohleb
 Web Applications Development Manager
 Parafoil Software, Inc.
___

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

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




Managing Processes and Memories

2001-01-12 Thread Kxu

Hi,

I just set up a Tomcat server 3.2 to work with Apache web server 1.3 on a
Linux box. I can help to notice that Tomcat started 38 java processed on the
machines and used about 370M of virtual memory. My question is that is it
really necessary to have that much processes running and that much memory
occupied in order for Tomcat to run? or it's just the default setting? 

If it's a setting problem, where can I go to tune down the memory and CPU
usage?

Any comment will be appreciated.

Ken Xu
iVea Technologies Inc.



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




Re: Tomcat Crashing

2001-01-12 Thread Robert Wohleb

I agree with Jon; get mysql. Your problem might be caused by a bad dll
somewhere os\r buggy software in the JDBC-ODBC bridge. Problems with
dlls cause huge memry leaks and weird crashes like you are experiencing.

~Rob

Jon Baer wrote:
> 
> Sounds like an ODBC/SQL database problem, you should not use JDBC-ODBC bridge.
> 
>  I would download MySQL (free):
> http://www.mysql.net
> 
> And use the JDBC API for it (Type IV):
> http://www.mysql.net/downloads/api-jdbc.html
> 
> - Jon
> 
> Suleyman Serkan GURDAL wrote:
> 
> >  Hello;
> >
> >  We are 4th year students who are studying at Middle East Technical
> >  University, in the department of Computer Engineering. We are
> >  developing a senior design project named web-based seat reservation
> >  system for large and distributed computer laboratory
> >  environments. We are using the following software;
> >
> >  Java Servlets Technology
> >  Jdk 1.2.2
> >  JDBC Api
> >  MS Access
> >  JDBC-ODBC Bridge Driver
> >  Tomcat (as servlet engine)
> >  Apache (as web-server)
> >
> >  We have a problem. When we run our servlets by using Tomcat.
> >  It crashes down after 4-5 process, like querying the database, updating
> >  some records or inserting some records, that is it crashes down after 2-3
> >  minutes.
> >
> >  When we look at the log messages, because we have caught SQLExceptions
> >  we get "Function Sequence Error" or no error messages. We could not
> >  understand the problem source.
> >
> >  We ask u for help. If you can help us or tell somethings what can be the
> >  problem about, we will be very grateful.
> >
> >  Thanks in advance...
> >
> >  S. Serkan GURDAL
> >  mail : [EMAIL PROTECTED]
> >  url  : www.ceng.metu.edu.tr/~e109746
> >
> >  Department of Computer Enginnering
> >  Middle East Technical University
> >   Ankara/TURKEY
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
___

 Robert Wohleb
 Web Applications Development Manager
 Parafoil Software, Inc.
___

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




Re: Setup problems on Debian linux

2001-01-12 Thread Robert Wohleb

Look at stcout.log. It looks like init.d script for tomcat is
redirecting output to that file. Thus, what I was saying about stderr
telling you something would now be in that file.

Why is jasper using /usr/share/tomcat/work/localhost_8080%2Fadmin_old
for srcatch? Shouldn't it be using just /usr/share/tomcat/work/? Why do
you have an examples context AND a tomcat-examples context?

When it comes to the java.io.FileNotFoundException:
/usr/share/tomcat/conf/obj.conf-auto error, make sure it is there. If
not, try adding an empty file with that name and path. Tomcat might not
be trying to create it when it can't find it. If you create it, it might
fix it.

~Rob

Gregory Guthrie wrote:
> 
> At 02:48 PM 01/12/2001 -0800, Robert Wohleb wrote:
> >Try restarting tomcat and apache in a shell. Anything that might be
> >going to stderr will get displayed. If tomcat is set to put this to log
> >it will be in logs/tomcat.log. Mod_jk might be working fine, tomcat is
> >having a problem with it.
> 
> -- seems fine;
> omega:/etc/init.d# ./tomcat restart
> Stopping Tomcat servlet engine: tomcat.
> Starting Tomcat servlet engine: tomcat.
> omega:/etc/init.d# ./apache restart
> Reloading apache modules.
> /usr/sbin/apachectl stop: httpd stopped
> /usr/sbin/apachectl start: httpd started
> omega:/etc/init.d#
> 
> and:
> ==> /var/log/tomcat/servlet.log <==
> 2001-01-12 05:08:44 - path="/admin_old" :jsp: init
> 2001-01-12 05:08:45 - path="/examples" :jsp: init
> 2001-01-12 05:08:46 - path="" :jsp: init
> 2001-01-12 05:08:47 - path="/tomcat-admin" :jsp: init
> 2001-01-12 05:08:48 - path="/tomcat-examples" :jsp: init
> ==> /var/log/tomcat/jasper.log <==
> 2001-01-12 05:08:44 - Scratch dir for the JSP engine is:
> /usr/share/tomcat/work/localhost_8080%2Fadmin_old
> 2001-01-12 05:08:44 - IMPORTANT: Do not modify the generated servlets
> ==> /var/log/tomcat/stdout.log <==
>  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java)
>  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java)
> Error generating automatic Netscape configuration
> java.io.FileNotFoundException: /usr/share/tomcat/conf/obj.conf-auto
> java.io.FileNotFoundException: /usr/share/tomcat/conf/obj.conf-auto
>  at java.io.FileOutputStream.(FileOutputStream.java)
>  at java.io.FileWriter.(FileWriter.java)
>  at org.apache.tomcat.task.NSConfig.execute(NSConfig.java)
>  at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java)
>  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java)
>  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java)
> ==> /var/log/tomcat/tomcat.log <==
> 2001-01-12 05:08:41 - ContextManager: Adding context Ctx( /admin_old )
> 2001-01-12 05:08:41 - ContextManager: Adding context Ctx( /examples )
> 2001-01-12 05:08:41 - ContextManager: Adding context Ctx(  )
> 2001-01-12 05:08:41 - ContextManager: Adding context Ctx( /tomcat-admin )
> 2001-01-12 05:08:41 - ContextManager: Adding context Ctx( /tomcat-examples )
> 2001-01-12 05:08:48 - PoolTcpConnector: Starting HttpConnectionHandler on 8081
> 2001-01-12 05:08:48 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
> 
> is it a problem that some of these are actually links?
> 
> omega:/usr/share/tomcat/conf# ls -l
> total 4
> lrwxrwxrwx1 root root   42 Dec 13 07:16
> iis_redirect.reg-auto -> /var/lib/tomcat/conf/iis_redirect.reg-auto
> lrwxrwxrwx1 root root   30 Dec 13 07:16 mod_jk.conf-auto ->
> /etc/apache/mod_jk/tomcat-auto
> lrwxrwxrwx1 root root   34 Dec 13 07:16 obj.conf-auto ->
> /var/lib/tomcat/conf/obj.conf-auto
> lrwxrwxrwx1 root root   22 Dec 13 07:16 server.xml ->
> /etc/tomcat/server.xml
> lrwxrwxrwx1 root root   39 Dec 13 07:16 tomcat-apache.conf
> -> /var/lib/tomcat/conf/tomcat-apache.conf
> lrwxrwxrwx1 root root   28 Dec 13 07:16 tomcat-users.xml ->
> /etc/tomcat/tomcat-users.xml
> lrwxrwxrwx1 root root   25 Dec 13 07:16 tomcat.policy ->
> /etc/tomcat/tomcat.policy
> lrwxrwxrwx1 root root   49 Dec 13 07:16
> uriworkermap.properties-auto ->
> /var/lib/tomcat/conf/uriworkermap.properties-auto
> lrwxrwxrwx1 root root   19 Dec 13 07:16 web.xml ->
> /etc/tomcat/web.xml
> lrwxrwxrwx1 root root   37 Dec 13 07:16 workers.properties
> -> /etc/apache/mod_jk/workers.properties
> 
> >~Rob
> >
> >Gregory Guthrie wrote:
> > >
> > > I have installed Tomcat (3.2-4) + Apache(1.3) on Debian linux (2.2).
> > >
> > > I find that Apache works fine, and Tomcat works find on its port, and
> > > serves jsp and servlets on its port, but the Tomcat-Apache link does not
> > > seem to work.
> > >
> > > I don't get any logged errors, or even traffic reports..
> > >
> > > I have the tomcat connection in /etc/apache/httpd.conf:
> > >
> > > LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
> > > ...
> > > 
> > > # The following line is for ap

RE: Installation on Windows 2000

2001-01-12 Thread Craig O'Brien

I just installed Tomcat 3.2  on windows 2000 Server yesterday and it went
rather easily.  Everything works great! :0)

Print out and read the documentation that comes with the download before you
begin.  Also print out the server.xml, tomcat.xml etc all of the
configuration files.  The documentation is good.  There are about 25 steps
or more including modifying your registry so be careful.  Preparation and a
hard copy in hand are the keys.  I would estimate that I could do the entire
procedure now in about 2 hours although it took about a day the first time.
This morning I was able to set up MySQL with tomcat as well.  Sql-Server7
and DB2 to come over the weekend.

I chose to use the isapi_redirect.dll and a stand alone configuration as it
appears to be the most stable and still allows full functionality of the
existing IIS-5. This means several configuration files must be dealt with.
Speed with my personal servlet library seems better then ASP and Visual
Basic. JSP pages will be slow the first time they are run but performance is
very good afterwards. (they must compile)  Tweak the workers.properties file
to get maximum performance.

Don't drink too much caffeine and use a "Zen" approach and it will come
together. Take some time to really learn the directory structure. You can
set directories to automatically reload.

Important files and documents:
readme.txt
A Minimalistic User's guide
tomcat IIS How to
uriworkermap.properties
tomcat.policy
tomcat.properties
workers.properties
server.xml

Good luck,
Craig

-Original Message-
From: Shicheng Tian [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 3:06 PM
To: tomcat-user
Cc: s.tian
Subject: Installation on Windows 2000


Hello there,

I wonder if anyone could advice me on the procedures/install instructions
for installing

Tomcat on the following platforms:

1. Windows 2000;

2. Windows NT 4.0 Workstation.

Thanks,

Shicheng

PS: JRun from Allaire Corporation is an expensive software which supports

JSP; so what is the difference between JRun and Tomcat?



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


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




INTERNAL SERVER ERROR 500???

2001-01-12 Thread Mary McCarthy
Hi I have a problem with my first JSP program. 
I have the .jsp files stored in 
C:\jakarta-tomcat\webapps\mary\jsp 
and BOTH my .java and my .class files stored in 
C:\jakarta-tomcat\webapps\web-inf\Classes 

When I start the server and point my browser to 

http://localhost:8080/mary/jsp/hello.jsp 
I get the following error: 
Error: 500
Location: /mary/jsp/hello.jsp
Internal Servlet Error:org.apache.jasper.JasperException: Bad file argument to include 
	at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java, Compiled Code)
	at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
	at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
	at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
	at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)Could this be a result of not setting my classpath properly? How do you set your class path properly?ANY help at all would be much appreciated.

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

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



Re: Setup problems on Debian linux

2001-01-12 Thread Gregory Guthrie

At 02:48 PM 01/12/2001 -0800, Robert Wohleb wrote:
>Try restarting tomcat and apache in a shell. Anything that might be
>going to stderr will get displayed. If tomcat is set to put this to log
>it will be in logs/tomcat.log. Mod_jk might be working fine, tomcat is
>having a problem with it.

-- seems fine;
omega:/etc/init.d# ./tomcat restart
Stopping Tomcat servlet engine: tomcat.
Starting Tomcat servlet engine: tomcat.
omega:/etc/init.d# ./apache restart
Reloading apache modules.
/usr/sbin/apachectl stop: httpd stopped
/usr/sbin/apachectl start: httpd started
omega:/etc/init.d#

and:
==> /var/log/tomcat/servlet.log <==
2001-01-12 05:08:44 - path="/admin_old" :jsp: init
2001-01-12 05:08:45 - path="/examples" :jsp: init
2001-01-12 05:08:46 - path="" :jsp: init
2001-01-12 05:08:47 - path="/tomcat-admin" :jsp: init
2001-01-12 05:08:48 - path="/tomcat-examples" :jsp: init
==> /var/log/tomcat/jasper.log <==
2001-01-12 05:08:44 - Scratch dir for the JSP engine is: 
/usr/share/tomcat/work/localhost_8080%2Fadmin_old
2001-01-12 05:08:44 - IMPORTANT: Do not modify the generated servlets
==> /var/log/tomcat/stdout.log <==
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java)
Error generating automatic Netscape configuration 
java.io.FileNotFoundException: /usr/share/tomcat/conf/obj.conf-auto
java.io.FileNotFoundException: /usr/share/tomcat/conf/obj.conf-auto
 at java.io.FileOutputStream.(FileOutputStream.java)
 at java.io.FileWriter.(FileWriter.java)
 at org.apache.tomcat.task.NSConfig.execute(NSConfig.java)
 at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java)
==> /var/log/tomcat/tomcat.log <==
2001-01-12 05:08:41 - ContextManager: Adding context Ctx( /admin_old )
2001-01-12 05:08:41 - ContextManager: Adding context Ctx( /examples )
2001-01-12 05:08:41 - ContextManager: Adding context Ctx(  )
2001-01-12 05:08:41 - ContextManager: Adding context Ctx( /tomcat-admin )
2001-01-12 05:08:41 - ContextManager: Adding context Ctx( /tomcat-examples )
2001-01-12 05:08:48 - PoolTcpConnector: Starting HttpConnectionHandler on 8081
2001-01-12 05:08:48 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007

is it a problem that some of these are actually links?

omega:/usr/share/tomcat/conf# ls -l
total 4
lrwxrwxrwx1 root root   42 Dec 13 07:16 
iis_redirect.reg-auto -> /var/lib/tomcat/conf/iis_redirect.reg-auto
lrwxrwxrwx1 root root   30 Dec 13 07:16 mod_jk.conf-auto -> 
/etc/apache/mod_jk/tomcat-auto
lrwxrwxrwx1 root root   34 Dec 13 07:16 obj.conf-auto -> 
/var/lib/tomcat/conf/obj.conf-auto
lrwxrwxrwx1 root root   22 Dec 13 07:16 server.xml -> 
/etc/tomcat/server.xml
lrwxrwxrwx1 root root   39 Dec 13 07:16 tomcat-apache.conf 
-> /var/lib/tomcat/conf/tomcat-apache.conf
lrwxrwxrwx1 root root   28 Dec 13 07:16 tomcat-users.xml -> 
/etc/tomcat/tomcat-users.xml
lrwxrwxrwx1 root root   25 Dec 13 07:16 tomcat.policy -> 
/etc/tomcat/tomcat.policy
lrwxrwxrwx1 root root   49 Dec 13 07:16 
uriworkermap.properties-auto -> 
/var/lib/tomcat/conf/uriworkermap.properties-auto
lrwxrwxrwx1 root root   19 Dec 13 07:16 web.xml -> 
/etc/tomcat/web.xml
lrwxrwxrwx1 root root   37 Dec 13 07:16 workers.properties 
-> /etc/apache/mod_jk/workers.properties


>~Rob
>
>Gregory Guthrie wrote:
> >
> > I have installed Tomcat (3.2-4) + Apache(1.3) on Debian linux (2.2).
> >
> > I find that Apache works fine, and Tomcat works find on its port, and
> > serves jsp and servlets on its port, but the Tomcat-Apache link does not
> > seem to work.
> >
> > I don't get any logged errors, or even traffic reports..
> >
> > I have the tomcat connection in /etc/apache/httpd.conf:
> >
> > LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
> > ...
> > 
> > # The following line is for apacheconfig - DO NOT REMOVE!
> > JkWorkersFile /etc/apache/mod_jk/workers.properties
> > Include /etc/apache/mod_jk/tomcat-auto
> > 
> >
> > I notice that /etc/tomcat/mod_jl/tomcat-auto is empty; is this proper??
> >
> > How do I get a good version of it?
> >
> > -- I also notice the I don't have tomcat/bin/startup.sh, it was changed
> > into /etc/init.d/tomcat to automatically run at startup. Perhaps that 
> is OK.
> >
> > Thanks,
> > Gregory
> > 
> > Gregory Guthrie
> > [EMAIL PROTECTED] (641)472-1125Fax: -1103
> > 
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>--
>___

Installation on Windows 2000

2001-01-12 Thread Shicheng Tian

Hello there,

I wonder if anyone could advice me on the procedures/install instructions
for installing

Tomcat on the following platforms:

1. Windows 2000;

2. Windows NT 4.0 Workstation.

Thanks,

Shicheng

PS: JRun from Allaire Corporation is an expensive software which supports

JSP; so what is the difference between JRun and Tomcat?



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




Re: Tomcat Crashing

2001-01-12 Thread Jon Baer

Sounds like an ODBC/SQL database problem, you should not use JDBC-ODBC bridge.

 I would download MySQL (free):
http://www.mysql.net

And use the JDBC API for it (Type IV):
http://www.mysql.net/downloads/api-jdbc.html

- Jon

Suleyman Serkan GURDAL wrote:

>  Hello;
>
>  We are 4th year students who are studying at Middle East Technical
>  University, in the department of Computer Engineering. We are
>  developing a senior design project named web-based seat reservation
>  system for large and distributed computer laboratory
>  environments. We are using the following software;
>
>  Java Servlets Technology
>  Jdk 1.2.2
>  JDBC Api
>  MS Access
>  JDBC-ODBC Bridge Driver
>  Tomcat (as servlet engine)
>  Apache (as web-server)
>
>  We have a problem. When we run our servlets by using Tomcat.
>  It crashes down after 4-5 process, like querying the database, updating
>  some records or inserting some records, that is it crashes down after 2-3
>  minutes.
>
>  When we look at the log messages, because we have caught SQLExceptions
>  we get "Function Sequence Error" or no error messages. We could not
>  understand the problem source.
>
>  We ask u for help. If you can help us or tell somethings what can be the
>  problem about, we will be very grateful.
>
>  Thanks in advance...
>
>  S. Serkan GURDAL
>  mail : [EMAIL PROTECTED]
>  url  : www.ceng.metu.edu.tr/~e109746
>
>  Department of Computer Enginnering
>  Middle East Technical University
>   Ankara/TURKEY
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Passing SSL info from Apache to tomcat

2001-01-12 Thread Shahed Ali

Hi,

I am using Tomcat 3.2.1 w/Apache 1.3.14. (Stronghold 3.0)

I have set up client certificates on my client (web browser) and set the
Apache directives for
a browser to require client certificates to access the site.

However, when I run the Snoop Servlet, I dont get a request attribute named
"java.security.cert.X509Certificate"

I have added the Jk directives wich are present in the mod_jk.conf-auto file
relating to SSL in my httpd.conf
file.

Can anyone tell me what I am missing ?

Thanks
Shahed.




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




RE: Starting with JSP and Beans. Please help

2001-01-12 Thread George McKInney



>>Internal Servlet 
Error:>>org.apache.jasper.JasperException: Unable to compile class for JSPerror: File /usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes/irina/IndustryGroupData.class does not contain type irina.IndustryGroupData as expected, but type IndustryGroupData. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
leads me to think that the .java source for IndustryGroupData doesn't include a package irina; 
as the 
first executable line of the file.
George McKinney, Developer tantalus communications inc. 500-1122 Mainland Street Vancouver, BC, Canada V6B 5L1 [EMAIL PROTECTED] 
Direct  604.726.6753 Main    604.609.0700 Fax 604.609.0705 
www.tantalus.com "When eBusiness experience counts." 

  -Original Message-From: Irina Pragin 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, January 12, 2001 1:57 
  PMTo: [EMAIL PROTECTED]Subject: Starting 
  with JSP and Beans. Please help
  
  I was able to compile java bean to class, but I 
  am not able to run JSP
   
  JSP location: 
  tomcat/webapps/examples/jsp/irina/getData.jsp
  bean location: 
  tomcat/webapps/examples/WEB-INF/classes/irina/IndustryGroupData(.java and 
  .class)
   
  This is how Bean is called from JSP:
  
   
  I get an error that irina.IndustryGroupData class is expected and is not 
  found...
   
  I suspect there are some vars that need to be 
  set. I am just starting so I am using default setup. I was able to run all 
  given examples.
  When I run the JSP that I created I get the error 
  500. I will include error msg below. Please take a look. I am sure it's 
  something very simple.
   
  Thanks in advance,
  Irina
   
  
  Error: 500
  Location: /examples/jsp/irina/getData.jspInternal Servlet 
  Error:org.apache.jasper.JasperException: Unable to compile class for JSPerror: File /usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes/irina/IndustryGroupData.class does not contain type irina.IndustryGroupData as expected, but type IndustryGroupData. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:69: Class irina.IndustryGroupData not found in type declaration.
irina.IndustryGroupData getData = null;
 ^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:72: Class irina.IndustryGroupData not found in type declaration.
getData= (irina.IndustryGroupData)
   ^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:77: Class irina.IndustryGroupData not found in type declaration.
getData = (irina.IndustryGroupData) Beans.instantiate(this.getClass().getClassLoader(), "irina.IndustryGroupData");
^
4 errors




Tomcat Crashing

2001-01-12 Thread Suleyman Serkan GURDAL


 Hello;
 
 We are 4th year students who are studying at Middle East Technical
 University, in the department of Computer Engineering. We are
 developing a senior design project named web-based seat reservation
 system for large and distributed computer laboratory
 environments. We are using the following software;
 
 Java Servlets Technology
 Jdk 1.2.2
 JDBC Api
 MS Access
 JDBC-ODBC Bridge Driver
 Tomcat (as servlet engine)
 Apache (as web-server)
 
 We have a problem. When we run our servlets by using Tomcat.
 It crashes down after 4-5 process, like querying the database, updating
 some records or inserting some records, that is it crashes down after 2-3
 minutes.
 
 When we look at the log messages, because we have caught SQLExceptions
 we get "Function Sequence Error" or no error messages. We could not
 understand the problem source.
 
 We ask u for help. If you can help us or tell somethings what can be the
 problem about, we will be very grateful.
 
 Thanks in advance...
 
 S. Serkan GURDAL
 mail : [EMAIL PROTECTED]
 url  : www.ceng.metu.edu.tr/~e109746
 
 Department of Computer Enginnering
 Middle East Technical University
  Ankara/TURKEY


   




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




Re: Setup problems on Debian linux

2001-01-12 Thread Robert Wohleb

Try restarting tomcat and apache in a shell. Anything that might be
going to stderr will get displayed. If tomcat is set to put this to log
it will be in logs/tomcat.log. Mod_jk might be working fine, tomcat is
having a problem with it.

~Rob

Gregory Guthrie wrote:
> 
> I have installed Tomcat (3.2-4) + Apache(1.3) on Debian linux (2.2).
> 
> I find that Apache works fine, and Tomcat works find on its port, and
> serves jsp and servlets on its port, but the Tomcat-Apache link does not
> seem to work.
> 
> I don't get any logged errors, or even traffic reports..
> 
> I have the tomcat connection in /etc/apache/httpd.conf:
> 
> LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
> ...
> 
> # The following line is for apacheconfig - DO NOT REMOVE!
> JkWorkersFile /etc/apache/mod_jk/workers.properties
> Include /etc/apache/mod_jk/tomcat-auto
> 
> 
> I notice that /etc/tomcat/mod_jl/tomcat-auto is empty; is this proper??
> 
> How do I get a good version of it?
> 
> -- I also notice the I don't have tomcat/bin/startup.sh, it was changed
> into /etc/init.d/tomcat to automatically run at startup. Perhaps that is OK.
> 
> Thanks,
> Gregory
> 
> Gregory Guthrie
> [EMAIL PROTECTED] (641)472-1125Fax: -1103
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
___

 Robert Wohleb
 Web Applications Development Manager
 Parafoil Software, Inc.
___

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




Re: Dangerous information available at jasper logs

2001-01-12 Thread Trevor Little

Change the verbosity in server.xml to warning

DIEGO RODRIGO wrote:
> 
> Hi,
> I have an app that enforces security through a set of login pages, but I am
> not using Tomcat realms security.
> Now, I have seen that the file jasper.log logs the pages and parameters sent
> to them. Is there any way of avoiding this log file (I don't want the usernames
> and passwords to appear there in plain text !!!) ???
> 
> thanks...
> 
> diego.
> 
> 
> --
> Diego Rodrigo
> Vates S.A.
> [EMAIL PROTECTED]
> +54(11)4346-6658
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




RE: Starting with JSP and Beans. Please help

2001-01-12 Thread Stefan Langer



You 
must import the package in your JSPpage using a line like the 
following
 
<%@ 
page import="irina.*" %> 
 
in 
order for the compiler to have the package available. 
And 
make sure that the bean actually is in the appropriate 
package!
 
Hope 
this helps!
 
Stefan


An error has occurred in the compiler; please file a bug report

2001-01-12 Thread Bob Jones



Got a good one
 
Same jsp works find running Tomcat under Visual 
Age...
 
Trying to run under Tomcat standalone gets 
me
 

Error: 500
Location: /Intranexus/jsp/EpisodeAdmin/index.jspInternal Servlet 
Error:org.apache.jasper.JasperException: Unable to compile class for JSPerror: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
1 error

	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
	at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
 Thanks in advance Bob Jones[EMAIL PROTECTED]


Setup problems on Debian linux

2001-01-12 Thread Gregory Guthrie

I have installed Tomcat (3.2-4) + Apache(1.3) on Debian linux (2.2).

I find that Apache works fine, and Tomcat works find on its port, and 
serves jsp and servlets on its port, but the Tomcat-Apache link does not 
seem to work.

I don't get any logged errors, or even traffic reports..

I have the tomcat connection in /etc/apache/httpd.conf:

LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
...

# The following line is for apacheconfig - DO NOT REMOVE!
JkWorkersFile /etc/apache/mod_jk/workers.properties
Include /etc/apache/mod_jk/tomcat-auto



I notice that /etc/tomcat/mod_jl/tomcat-auto is empty; is this proper??

How do I get a good version of it?

-- I also notice the I don't have tomcat/bin/startup.sh, it was changed 
into /etc/init.d/tomcat to automatically run at startup. Perhaps that is OK.

Thanks,
Gregory

Gregory Guthrie
[EMAIL PROTECTED] (641)472-1125Fax: -1103



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




Starting with JSP and Beans. Please help

2001-01-12 Thread Irina Pragin




I was able to compile java bean to class, but I am 
not able to run JSP
 
JSP location: 
tomcat/webapps/examples/jsp/irina/getData.jsp
bean location: 
tomcat/webapps/examples/WEB-INF/classes/irina/IndustryGroupData(.java and 
.class)
 
This is how Bean is called from JSP:

 
I get an error that irina.IndustryGroupData class is expected and is not 
found...
 
I suspect there are some vars that need to be set. 
I am just starting so I am using default setup. I was able to run all given 
examples.
When I run the JSP that I created I get the error 
500. I will include error msg below. Please take a look. I am sure it's 
something very simple.
 
Thanks in advance,
Irina
 

Error: 500
Location: /examples/jsp/irina/getData.jspInternal Servlet 
Error:org.apache.jasper.JasperException: Unable to compile class for JSPerror: File /usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes/irina/IndustryGroupData.class does not contain type irina.IndustryGroupData as expected, but type IndustryGroupData. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:69: Class irina.IndustryGroupData not found in type declaration.
irina.IndustryGroupData getData = null;
 ^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:72: Class irina.IndustryGroupData not found in type declaration.
getData= (irina.IndustryGroupData)
   ^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:77: Class irina.IndustryGroupData not found in type declaration.
getData = (irina.IndustryGroupData) Beans.instantiate(this.getClass().getClassLoader(), "irina.IndustryGroupData");
^
4 errors




Using WebDav to point to other resources

2001-01-12 Thread Jon Baer

I am still trying to get the hang of WebDav servlet.

Is it possible to point this servlet to other resources on the server other than 
/webdav and to create a password-protected area for those resources?  Say for example 
I have my
context:

/jonbaer/

And I wanted to add /jonbaer/xml to be admined remotely, can this be possible with the 
WebDav servlet (to remotely edit the XML files) and added basic security?  If so, how 
is this
accomplished.  Thanks.

- Jon


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




Dangerous information available at jasper logs

2001-01-12 Thread DIEGO RODRIGO


Hi,
I have an app that enforces security through a set of login pages, but I am
not using Tomcat realms security.
Now, I have seen that the file jasper.log logs the pages and parameters sent
to them. Is there any way of avoiding this log file (I don't want the usernames
and passwords to appear there in plain text !!!) ???

thanks...

diego.


--
Diego Rodrigo
Vates S.A.
[EMAIL PROTECTED]
+54(11)4346-6658

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




Re: Red Hat Tomcat successful user?

2001-01-12 Thread Mark Balster
Title: Red Hat Tomcat successful user?



I am running that configuration.  Does Tomcat 
work on 8080?

  - Original Message - 
  From: 
  kiril 
  
  To: Jakarta (E-mail) 
  Sent: Friday, January 12, 2001 4:24 
  PM
  Subject: Red Hat Tomcat successful 
  user?
  
  Is there anyone out there successfully runnint 
  Tomcat 3.2.1 w/ Apache 1.3 on Red Hat 6.2 or something similar, using AJP13, 
  who could perhaps show me some config files or give me some hints as to why my 
  install isn't working?  Getting a java.net.SocketException whenever 
  trying to serve a .jsp.
  ___ Kiril Savino Software Engineer Higher One, Inc [EMAIL PROTECTED] 



Re: Something wrong with ajp???

2001-01-12 Thread Brian Engel

You can only shutdown tomcat(with shutdown.sh) with the Ajp12 connector. So you must 
have it defined in your server.xml file, in case you may have commented it out like I 
did once. 

Not sure if this is your problem but I hope it helps...



>>> [EMAIL PROTECTED] 01/12/01 11:04AM >>>
I get  this error when trying to run java server pages, and a similar error
(but with Ajp12) when I try to run shutdown.sh...  is there something wrong
with ajp?  is this a bug?  is there some config file I need to fix?  Please
help!
(Red Hat 6.2, Apache 1.3, Tomcat 3.2.1)

java.net.SocketException: Invalid argument
at java.net.PlainSocketImp1.setOption(PlainSocketImp1.java:156)
at java.net.Socket.setSoLinger(Socket.java:106)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:117)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:314)



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




Red Hat Tomcat successful user?

2001-01-12 Thread kiril
Title: Red Hat Tomcat successful user?






Is there anyone out there successfully runnint Tomcat 3.2.1 w/ Apache 1.3 on Red Hat 6.2 or something similar, using AJP13, who could perhaps show me some config files or give me some hints as to why my install isn't working?  Getting a java.net.SocketException whenever trying to serve a .jsp.

___

Kiril Savino

Software Engineer

Higher One, Inc

[EMAIL PROTECTED]





Re: Help on Internal server Error 500??

2001-01-12 Thread Mick Sullivan

Good man, Good man Thanks a million!!

Original Message Follows 
From: "Ramkumar Manoharan" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Subject: Re: Help on Internal server Error 500?? 
Date: Fri, 12 Jan 2001 13:09:55 -0800 

In your JBuider environment, you will be having a project(xxx.jpr) and all 
the java files that use will be under this project(you may to create the 
project if you haven't done already). 
Right click on the xxx.jpr and click properties.You will get a window.Under 
the source tab,u have got to specify the location of the *.java files.In 
most cases you will be having it all in the same folder,but some java files 
may be in a different folder.Make sure that you include all of them. 
Now select your java file that you want to compile and compile it.JBuilder 
will now where to look for the source file when it does the compiling 

Ram 




>From: "Mary McCarthy" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: [EMAIL PROTECTED] 
>Subject: Help on Internal server Error 500?? 
>Date: Fri, 12 Jan 2001 19:31:44 - 
> 

_ 
Get your FREE download of MSN Explorer at http://explorer.msn.com 
<< message3.txt >> 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, email: [EMAIL PROTECTED] 
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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



Re: Calling the same servlet regardless of the URL

2001-01-12 Thread Ramkumar Manoharan

Maybe you can try doing this in the web.xml:



ServletX


ServletX



pathinfo
/home/jim/testFile




You can get this value by using the getInitParameter("paramname") within 
your servlet code

Ram

>From: "Collins, Jim" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Calling the same servlet regardless of the URL
>Date: Fri, 12 Jan 2001 18:57:50 -
>
>Hi,
>
>I have a servlet: servletLaunch which I want to be called regardless of the
>URL (the web app is in the servletLaunch subdirectory of webapps). For
>example if I entered the URL:
>http://myhost:8080/servletLaunch/servlet/servletLaunch/home/jim/testFile
>
>I want the servletLaunch servlet to be started with /home/jim/testFile
>passed to it as pathinfo. At the moment I am getting Not Found (404). I
>believe tomcat is trying to serve the file
>/servletLaunch/servlet/servletLaunch/home/jim/testFile which does not 
>exist.
>I have tried various different configurations for the url-pattern element 
>of
>servlet-mapping, none of which I have managed to get to work.
>
>Any help would be greatly appreciated.
>
>Thanks.
>
>Jim.
>
>
>PLEASE READ: The information contained in this e-mail is confidential
>and intended for the named recipient(s) only. If you are not an intended
>recipient of this email you must not copy, distribute or take any
>further action in reliance on it and you should delete it and notify the
>sender immediately. Email is not a secure method of communication and
>Nomura International plc cannot accept responsibility for the accuracy
>or completeness of this message or any attachment(s).  Please check this
>e-mail for virus infection, for which Nomura International plc accepts
>no responsibility. If verification of this email is sought then please
>request a hard copy. Unless otherwise stated any views or opinions
>presented are solely those of the author and do not represent those of
>Nomura International plc. This email is intended for informational
>purposes only and is not a solicitation or offer to buy or sell
>securities or related financial instruments. Nomura International plc is
>regulated by the Securities and Futures Authority Limited and is a
>member of the London Stock Exchange.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




Problem installing on Win2000 (Part II)

2001-01-12 Thread Marino Vittorio

Tomcat v3.2
Windows 2000
Jdk1.1.8

The server starts properly:

2001-01-12 12:14:50 - ContextManager: Starting endpoint port="8050"
handler="org
.apache.tomcat.service.http.HttpConnectionHandler"
2001-01-12 12:14:50 - ContextManager: Starting endpoint port="8007"
handler="org
.apache.tomcat.service.connector.Ajp12ConnectionHandler"


...but every request lo localhost:8050 results in this error msg:

2001-01-12 12:15:31 - ContextManager: Error reading request, ignored -
java.lang.NullPointerException
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:191)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Thread.java:466)

Any idea? Thanks, Vittorio

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




RE: Problem installing under Win2000

2001-01-12 Thread Marino Vittorio

there's no tomcat script in tomcat v4.0b1 btw I've downloaded v3.2 and now I
can manage to run the server but I get this msg when I send requests:

2001-01-12 11:47:04 - ContextManager: Error reading request, ignored -
java.lang.NullPointerException
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:191)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Thread.java:466)

Hope u can help me out. Thanks anyway, Vittorio

-Original Message-
From: David Oxley [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 11:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Problem installing under Win2000


In your command prompt. cd into %TOMCAT_HOME%\bin and type 'tomcat run'.
This will tell you the error because it starts it in the same window. But
the error is probably that java 1.1 doesn't have a tools.jar, it has a
classes.zip. Add that to your classpath.

Dave.
[EMAIL PROTECTED]

-Original Message-
From: Marino Vittorio [mailto:[EMAIL PROTECTED]]
Sent: 12 January 2001 10:18
To: 'Tomcat-User (E-mail)
Subject: Problem installing under Win2000


This is the message I get when I try to execute the startup script:

Using CLASSPATH: ..\bin\bootstrap.jar;C:\jdk1.1.8\lib\tools.jar

I did set JAVA_HOME, TOMCAT_HOME. I don't have tools.jar with my jdk1.1.8
distribution. The server does not start at all, I see a flashing dos shell
and that's it! Can someone help me? Thanks, Vittorio.

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

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

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




Re: Help on Internal server Error 500??

2001-01-12 Thread Ramkumar Manoharan

In your JBuider environment, you will be having a project(xxx.jpr) and all 
the java files that use will be under this project(you may to create the 
project if you haven't done already).
Right click on the xxx.jpr and click properties.You will get a window.Under 
the source tab,u have got to specify the location of the *.java files.In 
most cases you will be having it all in the same folder,but some java files 
may be in a different folder.Make sure that you include all of them.
Now select your java file that you want to compile and compile it.JBuilder 
will now where to look for the source file when it does the compiling

Ram




>From: "Mary McCarthy" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Help on Internal server Error 500??
>Date: Fri, 12 Jan 2001 19:31:44 -
>

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


Hi Im writing my first little program that will welcome a user once she enters and submits her details into a web page.There is no problem Writing the JSP files but I cannot start a new .java file in Jbuilder, so I write it in Homesite, save it as .java and attempt to compile it to .class in Jbuilder.
Im having difficulty converting the .javafile to .class

I have tried compiling the .java file to a .class in JBuilder, but I keep getting the following warning:

"Warning #908: check sourcepath; source c:\jakarta-tomcat\webapps\mary\Web-inf\Classes\namehandler.java cannot be found on source pathby appending \mary\namehandler.java to each sourcepath entry."
(mary is the name of the package)


When I try to view the program in my browser at http:// localhost etc etc I get the following error 
 



 

Error: 500
Location: /Mary/hellouser.jsp
Internal Servlet Error:org.apache.jasper.JasperException: Bad file argument to include     at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java, Compiled Code)    at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)    at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)    at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)    at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)    at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)    at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)    at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)    at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)    at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)    at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)    at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)    at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)    at java.lang.Thread.run(Thread.java:479)PLEASE PLEASE PLEASE, anyone with help? Get your FREE download of MSN Explorer at http://explorer.msn.com

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





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


Re: FIRST JSP PRGRAM - PLEASE HELP!

2001-01-12 Thread Ramkumar Manoharan

In your JBuider environment, you will be having a project(xxx.jpr) and all 
the java files that use will be under this project(you may to create the 
project if you haven't done already).
Right click on the xxx.jpr and click properties.You will get a window.Under 
the source tab,u have got to specify the location of the *.java files.In 
most cases you will be having it all in the same folder,but some java files 
may be in a different folder.Make sure that you include all of them.
Now select your java file that you want to compile and compile it.JBuilder 
will now where to look for the source file when it does the compiling

Ram


>From: "Mick Sullivan" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: FIRST JSP PRGRAM - PLEASE HELP!
>Date: Fri, 12 Jan 2001 18:48:15 -
>

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


Hi I need help!!
I think this problem will be easy to solve as this is my first attempt at a JSP application.
I am copying a JSP program from the java.sun.com website and attempting to run it on tomcat. The program is a simple one, the user enters his name into a text box and presses submit. His name is then printed up on the screen, i.e. "Hello ".
 
I have created the two .jsp files (hellouser.jsp and response.jsp) and stored them in 
C:\jakarta-tomcat\webapps\Hello\
 
I have created the bean (namehandler.java) as a .java file and stored it in
C:\jakarta-tomcat\webapps\Hello\Web-inf\Classes\
Are these the right folders  to store those files in?
 
I have tried compiling the .java file to a .class in JBuilder, but I keep getting the following warning:
"Warning #908: check sourcepath; source c:\jakarta-tomcatzwebapps\Hello\Web-inf\Classes\namehandler.java cannot be found on source pathby appending  \hello\namehandler.java to each sourcepath entry."
( hello is the name of the package)
I think the problem may be because I cant generate the .class file. Anyone know why this might be?
 
When I try to view the Application while tomcat is running I get this error message:

Error: 500
Location: /Hello/hellouser.jspInternal Servlet Error:org.apache.jasper.JasperException: Bad file argument to include
	at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java, Compiled Code)
	at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
	at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
	at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
	at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
	at java.lang.Thread.run(Thread.java:479)If anyone has any idea at all where the problem may lie please, please help me.Thanks in advance, Mick

 
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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





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


un subscribe me!!!!!

2001-01-12 Thread PAPIREDDY Poreddy



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 8:41 PM
To: [EMAIL PROTECTED]
Subject: RE: Multipart/form-data




I posted a similar message regarding the Oreilly upload package, contacted
the
author of the package, Mr. Jason Hunter, and also did a lot of experiment of
my
own. The conclusion is this is MAYBE a problem between mod_jk and apache.
Here
are the results of my investigation:
 somebody in this list claims tomcat3.1+apache+mod_jserv works;
 J. Hunter said tomcat alone works for him;
 I tried tomcat3.2+mod_jk+apache1.3.14, failed for binary files,
worked only for text file;
 I also tried different clients on different environment, made
sure
this is not a client issue;
 I ported my application to JRun, it works fine without
modification;

Yanbin



|+>
||  Randy Layman  |
||  |
|||
||  01/12/01 07:28 AM |
||  Please respond to |
||  tomcat-user   |
|||
|+>
 
>---
|
  |
|
  |   To: "'[EMAIL PROTECTED]'"
|
  |   <[EMAIL PROTECTED]>
|
  |   cc: (bcc: Yanbin Ma/SYS/NYTIMES)
|
  |   Subject: RE: Multipart/form-data
|
 
>---
|





   An Internal Server Error is caused by an uncaught exception in
your
code.  Probably a NullPointerException, but it could be anything that
extends java.lang.Runtime exception.

   Randy

-Original Message-
From: Saikat Chatterjee [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 12:44 AM
To: [EMAIL PROTECTED]
Subject: Multipart/form-data


Hello,
I have encountered a problem regarding 'multipart/form-data'
encryption
type in a html FORM.
I have written a servlet through which an user uploads file. I am expecting
that the content type coming to the servlet will be of type
'multipart/form-data' . To handle this particular type of data i am using
the
MultipartRequest parser provided by Oreilly.
But everytime i am running the servlet, i am getting a 'Internal Server
Error'.
Why this is so?Is it due to the fact that Tomcat cannot handle the
'multipart/form-data'?
I am using Apache 1.3.12 as webserver and Tomcat 3.2 as servlet
container.

Any help will be highly appreciated.

Thanks,
Saikat




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

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






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

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




Re: Multipart/form-data

2001-01-12 Thread Bill Fox

Saikat-

I had a problem with the O'Reilly MultiPartRequest object as well. 

My error was an IO exception. It was suggested to me on this list 
(by Ed Gomolka) that Ajp13 has some bugs for file uploading, and that 
Ajp12 is more stable.

Change your mod_jk config to use the 
Ajp12 worker and see if the problem clears.

-Bill

Saikat Chatterjee wrote:
> 
> Hello,
> I have encountered a problem regarding 'multipart/form-data' encryption
> type in a html FORM.
> I have written a servlet through which an user uploads file. I am expecting
> that the content type coming to the servlet will be of type
> 'multipart/form-data' . To handle this particular type of data i am using the
> MultipartRequest parser provided by Oreilly.
> But everytime i am running the servlet, i am getting a 'Internal Server Error'.
> Why this is so?Is it due to the fact that Tomcat cannot handle the
> 'multipart/form-data'?
> I am using Apache 1.3.12 as webserver and Tomcat 3.2 as servlet
> container.
> 
> Any help will be highly appreciated.
> 
> Thanks,
> Saikat
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
<<

William J. Fox
Director of Systems Architecture

Eversave.com
Suite 2350
400 West Cummings Park
Woburn, MA 01801
(781) 938-7283 x272

[EMAIL PROTECTED]

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




Re: please unsubscribe

2001-01-12 Thread Robert Wohleb

Everyone makes mistakes, but this has happened more than once in the
last week. Doesn't anyone read the bottom of emails anymore? At the
bottom of every email are the instructions...

~Rob

[EMAIL PROTECTED] wrote:
> 
> would you please unsubscribe [EMAIL PROTECTED] from the list
> [EMAIL PROTECTED]
> 
> Patrick Installé ([EMAIL PROTECTED])
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
___

 Robert Wohleb
 Web Applications Development Manager
 Parafoil Software, Inc.
___

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




Re: need help using bean

2001-01-12 Thread William Brogden



Kervin Pierre wrote:
> 
> Hello,
> 
> I can't seem to get this to work. The bean compiles OK but when I try to
> load it, I get a "Error: 500" below saying that my package couldn't be
> loaded.
> 
> ...
> org.apache.jasper.JasperException: Unable to compile class for
> 
>JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002findex_0002ejspindex_jsp_0.java:15:
> Package edu.fit.eng.networkdb.sqlConnObj not found in import.
> import edu.fit.eng.networkdb.sqlConnObj.*;
> ...
> 
> My jsp page begins like this
> 
> <%@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"%>
> 

When you name your class in the useBean tag you MUST use the 
complete package - it doesn't matter that you imported the package


-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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




please unsubscribe

2001-01-12 Thread pinstall

would you please unsubscribe [EMAIL PROTECTED] from the list
[EMAIL PROTECTED]

Patrick Installé ([EMAIL PROTECTED])




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




Re: Servlet to JSP

2001-01-12 Thread Brian Engel

Yes you can use request.getParameter("Parm Name") in your JSP to get 'get' and 'post' 
data. 
The best way, IMO, is to make a Java Bean that builds this HTML table.  

Kinda off topic but you may want to use a String buffer instead of a String for your 
HTML return var. For large tables this will dramatically speed up creation due to the 
fact the JVM must allocate your HTMLRet String everytime it appends to it where as a 
Stringbuffer appends to a single instance of itself.  I learned this hard way :-) 

Hope this helps.



>>> [EMAIL PROTECTED] 01/11/01 04:05PM >>>
Hi,

I have used JBuilder + JDK 1.3 + JSDK 2.2 + Tomcat 3.2.1
to build only servlets. However, the web designer would
like more easily to format the HTML page. Then, I thought
about using JSP+servlets.

Look at this simple example:

I have a servlet that receives a request and needs to
run a SQL like:
"Select Name,Address From Client Order By Name"
Then, it returns a HTML page with this code:
HTMLRet = "" +
  "NameAddress";
Query.first();
for (i = 0; i < Query.rowCount(); i++) {
  HTMLRet += "" + Query.getString("Name") + "" +
"" + Query.getString("Address") + ""
  Query.next();
}
HTMLRet += ""
// now the normal code to return HTMLRet using out...

The code is something more complex from above, because there is
many places where the HTML code to return is linked to some business
logical, what makes using only JSP very complicated.

Then, imagine webdesigner tells me about changing the font face/size
of "Name" column and font color of "Address". I need to recompile the
code to do this.

I would like to write all business logical into a servlet and send
the "Query" variable to JSP. Then, at JSP, the webdesigner would do
anything into layout. Is it possible to send the Query to JSP ???


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



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




Re: How to map all requests to a JSP...

2001-01-12 Thread Craig R. McClanahan

britt wrote:

> I would like to map >all< incomming requests to a single JSP that will
> include content based on the URI.  I'm currently running Tomcat
> standalone.  I know how to map servlets in web.xml but am not sure about
> JSP pages.  Could someone point me in the right direction?
>

You can use the same mapping approach for JSP pages that you use for servlets:


MyJspPage
/myjsppage.jsp



MyJspPage
/*


>
> Thanks,
> Britt
> [EMAIL PROTECTED]
>

Craig McClanahan



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




Re: jsp:usebean documentation

2001-01-12 Thread Craig R. McClanahan

Shahed Ali wrote:

> Hi,
>
> Where can I find documentation that acctually explains how the jsp:useBean
> tag works ?
>

The best place to start is the specifications that actually define what JSP
pages and servlets actually do.  For example, the discussion of what
 actually does is on pages 61-64 of the JavaServer Pages
Specification, version 1.1, available at:

http://java.sun.com/products/jsp/download.html

Because JSPs and servlets are intimately related, you will also want to get the
Servlet Specification, version 2.2, at:

http://java.sun.com/products/servlet/download.html

>
> The Servlet API / JSP api are very complex. The JSP tag refrence does not
> explain
> the scope of the bean.
>

If the specs are too brief for you (which is quite likely -- they are aimed
primarily at developers of servlet containers), there are a growing number of
books available that cover these types of issues in much more depth.

>
> For example I know that if I have a bean residing in the session and I use
> the usebean tag with
> the scope set to session, jsp will check first if the bean lives in the
> session and only then will it
> try to create it.
>
> What about page/ request and application scope ?
>

This particular rule is true for all of the scopes.  See the spec reference
above for the details.

> I know that some books explain how all this works, or I can look the
> generated servlet code and
> understand, but what my point is where can I find the docs on the Web ?
> java.sun.com does not seem to have the docs explaning what I am looking for.
>
> Thanks
> Shahed.
>
> PS : I found the answer to my questions by look at the book "Professional
> JSP", but I hoped to
> find them online !!
>

Craig McClanahan



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




RE: FIRST JSP PRGRAM - PLEASE HELP!

2001-01-12 Thread Hosahalli, RaghavendraX



Hi 
Mick,
 
Better 
you try compiling the namehandler.java in command line 
"javac".
like 
"javac namehandler.java 
-d  C:\jakarta-tomcat\webapps\Hello\Web-inf\Classes"
this 
should create a directory "hello" for your package under 
"C:\jakarta-tomcat\webapps\Hello\Web-inf\Classes" and namehandler.class should 
reside in that directory.
 
Make 
sure that you have a context for "Hello" in your server.xml 
file.


 docBase="Hello"
 debug="0"
 reloadable="true"
 trusted="false" >

 
This 
adds "/Hello" context to tomcat. Now you should be able to view your *.jsp 
files. 
Hope 
this helps
 
Regds.
Raghu

  -Original Message-From: Mick Sullivan 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, January 12, 2001 10:48 
  AMTo: [EMAIL PROTECTED]Subject: FIRST JSP 
  PRGRAM - PLEASE HELP!
  Hi I need help!!
  I think this problem will be easy to solve as this is my first 
  attempt at a JSP application.
  I am copying a JSP program from the java.sun.com website and 
  attempting to run it on tomcat. The program is a simple one, the user enters 
  his name into a text box and presses submit. His name is then printed up on 
  the screen, i.e. "Hello ".
   
  I have created the two .jsp files (hellouser.jsp and response.jsp) and 
  stored them in 
  C:\jakarta-tomcat\webapps\Hello\
   
  I have created the bean (namehandler.java) as a .java file and stored it 
  in
  C:\jakarta-tomcat\webapps\Hello\Web-inf\Classes\
  Are these the right folders  to store those files in?
   
  I have tried compiling the .java file to a .class in JBuilder, but I keep 
  getting the following warning:
  "Warning #908: check sourcepath; source 
  c:\jakarta-tomcatzwebapps\Hello\Web-inf\Classes\namehandler.java cannot be 
  found on source pathby appending  \hello\namehandler.java to each 
  sourcepath entry."
  ( hello is the name of the package)
  I think the problem may be because I cant generate the .class file. 
  Anyone know why this might be?
   
  When I try to view the Application while tomcat is running I get this 
  error message:
  
  Error: 500
  Location: /Hello/hellouser.jspInternal Servlet Error:org.apache.jasper.JasperException: Bad file argument to include 
	at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java, Compiled Code)
	at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
	at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
	at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
	at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
	at java.lang.Thread.run(Thread.java:479)If anyone has any idea at all where the problem may lie please, please help me.Thanks in advance, Mick

   
   
   
  
  Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
  - 
  To unsubscribe, e-mail: [EMAIL PROTECTED] For 
  additional commands, email: [EMAIL PROTECTED] 



Re: Catalina configuration

2001-01-12 Thread Craig R. McClanahan

Federico Delpino wrote:

> Hi people,
>I just moved to Tomcat 4.
> Servlets examples run well, on the contrary  JSP examples and my JSP pages
> all report the following error:
>

Which build of Tomcat 4 are you using?  I would suggest trying this with beta-1.  I
know that there have been changes to the handlePageException() method, but that was
quite a while ago.  This kind of error might also occur if you've got an old jsdk.jar
or servlet.jar file in your $JAVA_HOME/jre/lib/ext directory.

Craig McClanahan



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




Using a servlet to handle a HTTP PUT

2001-01-12 Thread Brett Perkes

I have Tomcat installed and running nicely but can't get Apache to direct a
PUT to a servlet.

I have a servlet named "attach" which is called with this url
http:///vault/servlet/attach.  The doGet method is being executed
nicely but the doPut method is never executed.

In httpd.conf I have this directive

  Script PUT /vault/servlet/attach


Any suggestions?

Brett Perkes
[EMAIL PROTECTED]




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




Re: Embedding Catalina Engine

2001-01-12 Thread Craig R. McClanahan

Jon Baer wrote:

> I have read the documentation inside class catalina.startup.Embedded but dont
> quite understand the process as I would like to create a seperate method by
> which to *start* and *stop* a server/engine at any time from this GUI.
>

That is not really what the Embedded class is for -- there is a directory "service"
in the source tree that contains the beginnings of an API for
operating-system-independent start and stop type things.  It hasn't been completely
fleshed out yet.

If all you want to do is start and stop an external instance of Tomcat, you don't
need the embedded class at all.  Just fire off a shell process that executes the
appropriate start or stop command.

On the other hand, if you want to start the Tomcat instance that your servlet-based
GUI application is running in, you have something of a chicken-and-egg situation
:-).  I solved this for hot deployment of new webapps by making the "manager"
application a separate webapp.

>
> However, my server application is actually a web application inside (servlets).
> Is there a way or documentation on how to embedded and configure this from
> within another app or can someone show what below means and how I can accomplish
> the same thing.  Thanks.
>

Embedded is best used where you want to start and stop Tomcat, within the context of
an existing (long-running) server process like an application server.

Among others, the J2EE reference implementation will be using this API to start and
stop its web service (which uses Tomcat 4.0) from its command console.  Basicially,
their code looks a lot like the example main() method at the bottom of the Embedded
class, except that the values used come from configuration settings established in
their GUI rather than being constants.  The main() method will actually run, if you
execute

$CATALINA_HOME/bin/catalina.sh embedded

and creates a runtime environment very similar to the one built from the standard
server.xml file.  It will run for two minutes, and then shut down -- in a real world
case, you would probably leave the embedded environment running until you shut down
the surrounding application (or until a command to shut down web serving was given
via the GUI).

Besides the basics of starting and stopping, you might want to consider creating
your own implementation of the Logger interface, and have it write to whatever log
files the rest of your application creates.  The example main() method just uses a
SystemOutLogger to log to standard output.

More details than this depends a lot on the particulars of your requirements.


>
> - Jon
>

Craig McClanahan



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




need help using bean

2001-01-12 Thread Kervin Pierre


Hello,

I can't seem to get this to work. The bean compiles OK but when I try to
load it, I get a "Error: 500" below saying that my package couldn't be
loaded.

...
org.apache.jasper.JasperException: Unable to compile class for
JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002findex_0002ejspindex_jsp_0.java:15:
Package edu.fit.eng.networkdb.sqlConnObj not found in import.
import edu.fit.eng.networkdb.sqlConnObj.*;
...

My jsp page begins like this

<%@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"%>





...

And the bean begins like...

package edu.fit.eng.networkdb.sqlConnObj;

import java.io.*;
import java.sql.*;
import java.beans.*;

public class sqlConnBean
{
...

The bean is in the file
/usr/local/apache/htdocs/networkdb/WEB-INF/classes/edu/fit/eng/networkdb/sqlConnObj/sqlConnBean.java

Any clues would be greatly appreciated.

Thanks,
Kervin

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




Re: WML not served in Tomcat

2001-01-12 Thread Craig R. McClanahan



Note that the  entries you describe below are only used
(by Tomcat) when *static* files are served.  When dynamic files are
served (as they are by Cocoon), it is totally up to the servlet to set
the appropriate content type.
Craig McClanahan
 
 
Ivan wrote:

Hi all!My
question is about how to store WML and XML filestoghether
in a Cocoon working directory served byTomcat.I'm
using Tomcat 3.2 and Cocoon 1.8.I already know
how to tell Cocoon that I would like to serve
XML if the client is a web browser, and WML if the
client is
a Wap Browser (it's not my case because all content
is for
Wap Browser). I only would like to know if it's
posible to store
*.wml files and *.wbmp files under a Cocoon working
directory (it's not under Tomcat Webapp tree)instead
of place wml and wbmp files in a Apache web
directory, and how can I setup up web.inf (if it's
the correct
place) to accept Cocoon and Tomcat to serve wml
and wbmp
files from a Cocoon directory.Nowadays
my Wap Browser sends me 404 error or when Idebug
, it returns me:
'No traslator for content type text/plain' when
I ask for a wbmp file. My web.xml fiel under
the directory (/home/wap/WEB-INF) is like this:This
directory is specified in server.xml and tomcat.conf files. PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN""http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">org.apache.cocoon.Cocoonservlet-name>org.apache.cocoon.Cocoonservlet-class>propertiesparam-name>WEB-INF/cocoon.propertiesparam-value>init-param>servlet> org.apache.cocoon.Cocoonservlet-name>*.xmlurl-pattern>servlet-mapping> wmlextension>text/vnd.wap.wmlmime-type>mime-mapping> wmlsextension>text/vnd.wap.wmlscriptmime-type>mime-mapping> !
!
wbmpextension>image/vnd.wap.wbmpmime-type>mime-mapping> web-app>TIA Iván
Fontán
Technical Department LATINIA
CORPORATION
www.latinia.com Spain
Office
Barcelona
Trav. Gràcia, 342-344
08025 Barcelona (Spain)
Tel.: +34 934 465 026 US
Offices
New York
885 3rd Avenue
Suite 2800
New York, NY 10022 Miami
1210 Brickell Avenue
Suite 430
Miami, FL 33131





How to map all requests to a JSP...

2001-01-12 Thread britt

I would like to map >all< incomming requests to a single JSP that will 
include content based on the URI.  I'm currently running Tomcat 
standalone.  I know how to map servlets in web.xml but am not sure about 
JSP pages.  Could someone point me in the right direction?

Thanks,
Britt
[EMAIL PROTECTED]


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




Help on Internal server Error 500??

2001-01-12 Thread Mary McCarthy
Hi Im writing my first little program that will welcome a user once she enters and submits her details into a web page.There is no problem Writing the JSP files but I cannot start a new .java file in Jbuilder, so I write it in Homesite, save it as .java and attempt to compile it to .class in Jbuilder. 
Im having difficulty converting the .javafile to .class 

I have tried compiling the .java file to a .class in JBuilder, but I keep getting the following warning: 

"Warning #908: check sourcepath; source c:\jakarta-tomcat\webapps\mary\Web-inf\Classes\namehandler.java cannot be found on source pathby appending \mary\namehandler.java to each sourcepath entry." 
(mary is the name of the package) 


When I try to view the program in my browser at http:// localhost etc etc I get the following error 
 



 

Error: 500
Location: /Mary/hellouser.jsp
Internal Servlet Error:org.apache.jasper.JasperException: Bad file argument to include     at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java, Compiled Code)    at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)    at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)    at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)    at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)    at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)    at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)    at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)    at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)    at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)    at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)    at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)    at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)    at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)    at java.lang.Thread.run(Thread.java:479)PLEASE PLEASE PLEASE, anyone with help? Get your FREE download of MSN Explorer at http://explorer.msn.com

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



Calling the same servlet regardless of the URL

2001-01-12 Thread Collins, Jim

Hi,

I have a servlet: servletLaunch which I want to be called regardless of the
URL (the web app is in the servletLaunch subdirectory of webapps). For
example if I entered the URL:
http://myhost:8080/servletLaunch/servlet/servletLaunch/home/jim/testFile

I want the servletLaunch servlet to be started with /home/jim/testFile
passed to it as pathinfo. At the moment I am getting Not Found (404). I
believe tomcat is trying to serve the file
/servletLaunch/servlet/servletLaunch/home/jim/testFile which does not exist.
I have tried various different configurations for the url-pattern element of
servlet-mapping, none of which I have managed to get to work.

Any help would be greatly appreciated.

Thanks.

Jim.


PLEASE READ: The information contained in this e-mail is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s).  Please check this
e-mail for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Securities and Futures Authority Limited and is a
member of the London Stock Exchange.


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




Re: tomcat-user Digest 12 Jan 2001 15:11:28 -0000 Issue 531

2001-01-12 Thread Edilmar Alves

But, how to send the Query processed into Servlet to a Bean.
My servlet has many complex logical and I think its hard to
convert all the code to a Bean.

> Edilmar,
> What  you need to do is create a Bean to hold your "query" data and then
> add it to the session, the request, or the ServletConfig in order to give
> it session, request, or application scope. Then you can reference the
> bean via  scope="session/page/request/application" /> and
> 
> hope this helps
> Matt
>
> Edilmar Alves wrote:
>
> > Hi,
> >
> > I have used JBuilder + JDK 1.3 + JSDK 2.2 + Tomcat 3.2.1
> > to build only servlets. However, the web designer would
> > like more easily to format the HTML page. Then, I thought
> > about using JSP+servlets.
> >
> > Look at this simple example:
> >
> > I have a servlet that receives a request and needs to
> > run a SQL like:
> > "Select Name,Address From Client Order By Name"
> > Then, it returns a HTML page with this code:
> > HTMLRet = "" +
> >   "NameAddress";
> > Query.first();
> > for (i = 0; i < Query.rowCount(); i++) {
> >   HTMLRet += "" + Query.getString("Name") + "" +
> > "" + Query.getString("Address") + ""
> >   Query.next();
> > }
> > HTMLRet += ""
> > // now the normal code to return HTMLRet using out...
> >
> > The code is something more complex from above, because there is
> > many places where the HTML code to return is linked to some business
> > logical, what makes using only JSP very complicated.
> >
> > Then, imagine webdesigner tells me about changing the font face/size
> > of "Name" column and font color of "Address". I need to recompile the
> > code to do this.
> >
> > I would like to write all business logical into a servlet and send
> > the "Query" variable to JSP. Then, at JSP, the webdesigner would do
> > anything into layout. Is it possible to send the Query to JSP ???
> >


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




RE: HELP! JSP and Beans - Error 500

2001-01-12 Thread Kitching Simon

Have you got a
package irina;
declaration in your bean source?

> -Original Message-
> From: Irina Pragin [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 7:52 PM
> To:   [EMAIL PROTECTED]
> Subject:  HELP! JSP and Beans - Error 500
> 
>   Hi all,
>
>   JSP location: tomcat/webapps/examples/jsp/irina/getData.jsp
>   bean location:
> tomcat/webapps/examples/WEB-INF/classes/irina/IndustryGroupData(.java and
> .class)
>
>   This is how Bean is called from JSP:
>scope="session"/>
>
>   I suspect there are some vars that need to be set. I am just
> starting so I am using default setup. I was able to run all given
> examples.
>   When I run the JSP that I created I get the error 500. I will
> include error msg below. Please take a look. I am sure it's something very
> simple.
>
>   Thanks in advance,
>   Irina
>
> 
> 
>   Error: 500
> 
> 
>   Location: /examples/jsp/irina/getData.jsp
> 
>   Internal Servlet Error:
>   
>   org.apache.jasper.JasperException: Unable to compile class for
> JSPerror: File
> /usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes/irina/Ind
> ustryGroupData.class does not contain type irina.IndustryGroupData as
> expected, but type IndustryGroupData. Please remove the file, or make sure
> it appears in the correct subdirectory of the class path.
>   
> /usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0
> 002firina_0002fgetData_0002ejspgetData_jsp_3.java:69: Class
> irina.IndustryGroupData not found in type declaration.
>   irina.IndustryGroupData getData = null;
>^
>   
> /usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0
> 002firina_0002fgetData_0002ejspgetData_jsp_3.java:72: Class
> irina.IndustryGroupData not found in type declaration.
>   getData= (irina.IndustryGroupData)
>  ^
>   
> /usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0
> 002firina_0002fgetData_0002ejspgetData_jsp_3.java:77: Class
> irina.IndustryGroupData not found in type declaration.
>   getData = (irina.IndustryGroupData)
> Beans.instantiate(this.getClass().getClassLoader(),
> "irina.IndustryGroupData");
>   ^
>   4 errors
>   
>   
> 

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




FIRST JSP PRGRAM - PLEASE HELP!

2001-01-12 Thread Mick Sullivan
Hi I need help!!
I think this problem will be easy to solve as this is my first attempt at a JSP application.
I am copying a JSP program from the java.sun.com website and attempting to run it on tomcat. The program is a simple one, the user enters his name into a text box and presses submit. His name is then printed up on the screen, i.e. "Hello ".
 
I have created the two .jsp files (hellouser.jsp and response.jsp) and stored them in 
C:\jakarta-tomcat\webapps\Hello\
 
I have created the bean (namehandler.java) as a .java file and stored it in
C:\jakarta-tomcat\webapps\Hello\Web-inf\Classes\
Are these the right folders  to store those files in?
 
I have tried compiling the .java file to a .class in JBuilder, but I keep getting the following warning:
"Warning #908: check sourcepath; source c:\jakarta-tomcatzwebapps\Hello\Web-inf\Classes\namehandler.java cannot be found on source pathby appending  \hello\namehandler.java to each sourcepath entry."
( hello is the name of the package)
I think the problem may be because I cant generate the .class file. Anyone know why this might be?
 
When I try to view the Application while tomcat is running I get this error message:

Error: 500
Location: /Hello/hellouser.jspInternal Servlet Error:org.apache.jasper.JasperException: Bad file argument to include 
	at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java, Compiled Code)
	at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
	at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
	at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
	at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
	at java.lang.Thread.run(Thread.java:479)If anyone has any idea at all where the problem may lie please, please help me.Thanks in advance, Mick

 
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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



HELP! JSP and Beans - Error 500

2001-01-12 Thread Irina Pragin




  Hi all,
   
  JSP location: 
  tomcat/webapps/examples/jsp/irina/getData.jsp
  bean location: 
  tomcat/webapps/examples/WEB-INF/classes/irina/IndustryGroupData(.java and 
  .class)
   
  This is how Bean is called from JSP:
  
   
  I suspect there are some vars that need to be 
  set. I am just starting so I am using default setup. I was able to run all 
  given examples.
  When I run the JSP that I created I get the error 
  500. I will include error msg below. Please take a look. I am sure it's 
  something very simple.
   
  Thanks in advance,
  Irina
   
  
  Error: 500
  Location: /examples/jsp/irina/getData.jspInternal Servlet 
  Error:org.apache.jasper.JasperException: Unable to compile class for JSPerror: File /usr/local/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes/irina/IndustryGroupData.class does not contain type irina.IndustryGroupData as expected, but type IndustryGroupData. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:69: Class irina.IndustryGroupData not found in type declaration.
irina.IndustryGroupData getData = null;
 ^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:72: Class irina.IndustryGroupData not found in type declaration.
getData= (irina.IndustryGroupData)
   ^
/usr/local/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002firina_0002fgetData_0002ejspgetData_jsp_3.java:77: Class irina.IndustryGroupData not found in type declaration.
getData = (irina.IndustryGroupData) Beans.instantiate(this.getClass().getClassLoader(), "irina.IndustryGroupData");
^
4 errors




RE: mod_jk.so and Apache generates undefined symbol error at runtime

2001-01-12 Thread kiril
Title: RE: mod_jk.so and Apache generates undefined symbol error at runtime






sounds like a bad compile, I got similar errors when I hadn't compiled mod_jk.so properly.  did you get any errors when compiling?


-Original Message-

From: Art Taylor [mailto:[EMAIL PROTECTED]]

Sent: Friday, January 12, 2001 11:36 AM

To: [EMAIL PROTECTED]

Subject: mod_jk.so and Apache generates undefined symbol error at

runtime




Tomcat gurus,


 I've managed to compile the mod_jk.so under Mandrake Linux (RedHat 6.2 and

then some) but when I try to run the module with Apache 1.3.14 I get an

undefined symbol error (see below).I used the Tomcat source in

jakarta-tomcat-3.2.1-src to create the shared object. The following was the

runtime error message from Apache. 


Cannot load /usr/local/apache/libexec/mod_jk.so into server:

/usr/local/apache/libexec/mod_jk.so: undefined symbol: ap_table_elts


Server version: 


Server version: Apache/1.3.14 (Unix)

Server built:   Oct 11 2000 17:17:36


OS version (uname -a):


Linux myHost 2.2.17-21mdk #1 Thu Oct 5 13:16:08 CEST 2000 i686 unknown



Any ideas. I'd really like to get mod_jk.so working. If anyone has a working

version with Apache 1.3.14, I'll take it. I've no real strong desire to compile

it again (and again, and again).


  Thanks,


    -- Art Taylor 



__

Do You Yahoo!?

Yahoo! Photos - Share your holiday photos online!

http://photos.yahoo.com/


-

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, email: [EMAIL PROTECTED]





RE: Tomcat 3.2.1 load balancing with mod_jk

2001-01-12 Thread Jord Sonneveld
Title: RE: Tomcat 3.2.1 load balancing with mod_jk







Hey,


The jvm route is set automatically through both the ajp12 and ajp13 request handler. As example, I will take the org.apache.tomcat.service.connector.Ajp13ConnectorRequest. This class extends RequestImpl, which implements Request. For each incoming request to apache, the load balancing worker encodes the jvm route in the ajp13 requst and sends it to tomcat. Tomcat handles the request, and extracts the jvm route and sets it in the Ajp13ConnectorRequest. The Request object that you get in your jsp/servlet is actually the Ajp13ConnectorRequest. Ofcourse, I'm not 100% positive of this, but this is what it looks like to me. Please correct me if I am wrong.

 

Is this what you wanted to know?



-Original Message-

From: Mathias Herberts [mailto:[EMAIL PROTECTED]]

Sent: Friday, January 12, 2001 12:33 PM

To: Jord Sonneveld

Subject: Re: Tomcat 3.2.1 load balancing with mod_jk



Hi,


this is what I understood of the load balancing process in mod_jk. What I could not figure out in the first place was how the Jvm Route infor

was set up in Tomcat. But I found that by writing a very simple

Interceptor I could set the JvmRoute field of each request as it came in

and therefore force the generated session IDs to be suffixed with the

route therefore bootstraping the sticky session process.


Mathias.


--

Ce message et  toutes les pieces jointes (ci-apres  le "message") sont

confidentiels et etablis a l'intention exclusive de ses destinataires.

Toute  utilisation ou  diffusion  non autorisee  est interdite.   Tout

message  etant  susceptible  d'alteration,  l'emetteur  decline  toute

responsabilite au titre de  ce message  s'il a  ete altere, deforme ou

falsifie.

    ---

This message and any  attachments (the "message") are confidential and

intended  solely   for  the   addressees.  Any  unauthorised   use  or

dissemination is prohibited. As e-mails are susceptible to alteration,

the issuer shall  not be  liable for  the  message if altered, changed

or falsified.






Path to servlets and JSP

2001-01-12 Thread Venkatesh Prasad Ranganath

Hi,

I would like to configure apache+tomcat such that if each user can
create //public_html/servlet-bin directory to store
servlets and jsp code then
http:///~/servlet-bin/ will be handed over to
tomcat.

I understand that I can use context in server.xml to do this on a per
user basis.  How can I instruct tomcat to handle requests of form
/~/servlet-bin?  I am not able to figure out how do I indicate to
tomcat that the *'s in the following context are the same?




waiting for reply,

 - Venkatesh

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




Re: Where IS the tomcat log?

2001-01-12 Thread Robert Wohleb

If you don't specify the path, then it goes to stderr I believe. In my
development environ, this works out great for debugging. I restart httpd
(tomcat is started before apache in the /etc/rc.d/init.d/httpd)
explicitly in a shell though to see the stderr.

~Rob

Troy Landers wrote:
> 
> My tomcat.log is in TOMCAT_HOME/logs.
> 
> It looks like this is specified in my conf/server.xml file where I have the
> following:
> 
>  path="logs/tomcat.log"
> customOutput="yes" />
> 
> Troy
> 
> -Original Message-
> From: kiril [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 9:25 AM
> To: [EMAIL PROTECTED]
> Subject: Where IS the tomcat log?
> 
> I can find mod_jk.log, jasper.log, and servlet.log, but is there a generic
> tomcat log file somewhere?
> Also, anyone who can answer my previous question about
> java.net.SocketException would make me the happiest man alive...  I'd really
> love to get Tomcat to, gosh, work?  :)
> Thanks
> Kiril
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
___

 Robert Wohleb
 Web Applications Development Manager
 Parafoil Software, Inc.
___

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




Re: Portal Authentication via Servlet Security

2001-01-12 Thread Robert Wohleb

I think this suggestion has been made for other questions, and I'll make
it here. You can always extend the simpleRealm or JDBRealm class to
handle such a process.

~Rob


Drasko Kokic wrote:
> 
> Craig, this looks really great (still having some
> minor problems using JDBCRealm instead of the
> SimpleRealm on the security example)
> 
> I was wondering if somebody (you?) have already come
> across the following requirement:
> 
> We have already implemented portal protection
> (multiple sites within same domain) using encripted
> cookies.  The central Authentication Servlet is
> checking and also actualising the cookie credentals.
> A simple JSP code fragment is being included on each
> protected page so that request cannot be made
> directly.
> Reading about the Servlet API 2.3 I have noticed
> something called "filters" which looks very much like
> what we are doing now (except that the URI's don't
> need to look like
> /AuthServlet?page=/some/where/something.jsp anymore)
> 
> Would it be possible in current Tomcat 3.2 to protect
> context with a Realm which would check on cookie and
> pass on to the protected logic the proprietary cookie
> data values?
> 
> Thanks in advance
> 
> Drasko
> 
> --- "Craig R. McClanahan"
> <[EMAIL PROTECTED]> wrote:
> > Jim Urban wrote:
> >
> > > I am running Tomcat with Apache on NT.  I have a
> > servlet context which
> > > contains three servlets and their supporting
> > classes.  All the .class files
> > > have been "jared" and the .jar file placed in the
> > web-inf/lib directory.  I
> > > have set up my web.xml file to find the servlets
> > an pass them init params
> > > just fine.  I now need to limit access to the
> > servlets to different groups
> > > of users.  How do I set this up?  Can someone
> > please send me a sample of
> > > "" section (is this where it
> > gets done?) of a web.xml
> > > file?
> > >
> >
> > The "examples" web application that comes with
> > Tomcat has a  set
> > up on the path
> >
> >
> http://localhost:8080/examples/jsp/security/protected
> >
> > which will trigger form-based login.  See
> > "$TOMCAT_HOME/webapps/examples/WEB-INF/web.xml".
> > The requirements (and another example) are found in
> > the Servlet Specification, version
> > 2.2, at
> >
> .
> >
> > For Tomcat, the default location for information
> > describing users, passwords, and
> > roles is in a text file named
> > $TOMCAT_HOME/conf/tomcat-users.xml.  It is also
> > possible
> > to configure Tomcat to use a database for username
> > lookups (using the JDBCRealm
> > class), or to write your own custom Realm
> > implementation to look anywhere else.
> >
> > NOTE:  If you are running Tomcat behind Apache in
> > the usual fashion (i.e. having
> > Apache serve static resources), *only* the dynamic
> > requests that are actually
> > forwarded to Tomcat will be protected by these
> > constraints.
> >
> > > Jim Urban
> >
> > Craig McClanahan
> >
> 
> __
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
___

 Robert Wohleb
 Web Applications Development Manager
 Parafoil Software, Inc.
___

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




Re: problem accessing admin context

2001-01-12 Thread Robert Wohleb

Make sure you comment out the simpleRealm section. If you don't and you
have both simpleRealm and JDBCRealm defined, they will conflict. Your
problem might be the result. At least in my *nix dist the simpleRealm
definition comes right before the sample JDBCRealm def.

~Rob

[EMAIL PROTECTED] wrote:
> 
>  hi i am niraj
>  i want to access admin context in tomcat
>  but when i am going to admincontext.html
>  asking a user name and password
>  i used values of tomcat-user.xml for use name & password but could not get
> the admincontext.html
> 
>  i used jdbc relam for username and password
>  i follow the documentation and create database in sql
> same given in jdbc realam docs
> 
>  after that i tried to get the admin context i still could not get the page
>  but a message at console of tomcat
>  is shown like
>  2000-06-26 04:54:18 - ContextManager: JDBCRealm: Authentication successful
>  for u
>  ser tomcat
>  2000-06-26 04:54:18 - ContextManager: JDBCRealm: Auth ok, user=tomcat
> 
>  i used user name tomcat and password tomcat
> 
>  but still couldnot get the page
>  please help me
>  have any answer?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
___

 Robert Wohleb
 Web Applications Development Manager
 Parafoil Software, Inc.
___

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




RE: Large Scale Tomcat use

2001-01-12 Thread Michael Wentzel

> 1. Apache -- Firewall -- Standalone Tomcat -- Firewall
> -- DB
> 2. Apache -- Firewall -- Apache/Tomcat -- Firewall --
> DB
> 3. Apache/Tomcat -- Firewall -- Standalone Tomcat --
> Firewall -- DB
> 4. Apache/Tomcat -- Firewall -- Apache/Tomcat --
> Firewall -- DB
> 6. Apache/Tomcat -- Firewall -- Apache/Tomcat --
> Firewall -- DB

I don't think you would have a need for the second firewall
mentioned in the options you listed above.  The only case
where I would see it as necessary is if you have a subnet
on your network that is connected to the internal interface
of the first firewall that you do not want to allow direct
access to some resource below it(in which case I would probably
put that subnet outside the firewall).

 ---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel

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




Re: Large tomcat log

2001-01-12 Thread Robert Wohleb

You can always set the log to show on stderr or /dev/null I think...

~Rob

Pete Ehli wrote:
> 
> I think it is set in the server.xml. Use error. or comment out the use of
> the log. The key words here is "I think" :-)
> -- Pete --
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 11, 2001 8:27 PM
> Subject: Large tomcat log
> 
> > Hello,
> >
> > My tomcat log file gets very large very quickly.  The log level set in the
> registry is "inform".  Where can I find the documentation on changing this
> parameter - or just what are the lower levels of logging?
> >
> > Thanks,
> >
> >  - TC
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 
___

 Robert Wohleb
 Web Applications Development Manager
 Parafoil Software, Inc.
___

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




Re: Possible Jasper/introspecthelper bug...

2001-01-12 Thread Robert Wohleb

Ugh. sorry for all the trouble guys. Yeah, that was it. I guess I
saw the equals sign from the <%=...%> and just associated it with the
INPUT tag. It is still weird that an INPUT tag where the value part was
value"" without an equals sign would generate a value of " " and not a
null within tomcat. I'm not sure if it is the browser or tomcat created
the space.

Thanks for the help...

~Rob

"Muehlmann, Fred" wrote:
> 
> Robert,
> 
> It looks like the  should have an equal sign
> 
>  value"<%=dbBean.ACTION_INTERFACE_ADD_USER%>">
> here ^ making it:
> 
>  value="<%=dbBean.ACTION_INTERFACE_ADD_USER%>">
> 
> Fred
> [EMAIL PROTECTED]
> 
> -Original Message-
> From: Robert Wohleb [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 8:30 PM
> To: tomcat-user listserv
> Subject: Possible Jasper/introspecthelper bug...
> 
> PLEASE HELP ME, TOMCAT DEVELOPERS
> If one of the developers is around please email me. I need help tracking
> this down. Here is the general situation.
> 
> I am running tomcat 3.2 with jdk 1.3 on redhat 6.2...
> 
> I have all JSP pages define a bean with scope=session as
>  class="parafoil.web.custdb.CustDBBean" />
> 
> I have a file called main.jsp in /protected/process/ in the root of my
> web app. All this JSP does is define the bean like above, set all params
> with
> 
> and then forward to a page that the bean defines based upon the params
> passed to it with
> 
> 
> I have a JSP file called main.jsp in /protected/interface/ in the root
> of my web app. All this JSP does is define the bean as above and show a
> form by
> 
>  value"<%=dbBean.ACTION_INTERFACE_ADD_USER%>">
> 
> 
> The ACTION_INTERFACE_ADD_USER public variable of the bean is defined as
> a public final int. I'm using this scheme for enumeration.
> The root of my web app is /custdb/ by the way. All forwards work when
> hardocded using URLs like /protected/interface/main.jsp
> 
> When I hit the button to submit the form I get the 500 error listed
> below. The Jasper Exception does not include a message as with other
> JasperExceptions I have seen. On stderr I get
> 2001-01-11 06:46:43 - Ctx( /custdb ): JasperException: R( /custdb +
> /protected/process/main.jsp + null)
> Using the 500 error listed below, I followed the line numbers into the
> src to the convert function that the instrospectionhelper uses. I now
> print the values for the class type and value to stderr and determined
> the value being passed contains a single space. To double check, I had
> the catch of convert() print a stack trace before throwing the
> JasperException. As I suspected, it was caused by Integer trying to
> convert a " ".
> 
> I checked the HTML from within the browser and it shows
> 
> 
> 
> 
> 
> It's not that the HTML form is passing the space.
> 
> I'm trying to follow the code back to see where the " " in value is
> coming from. If one of the developers has an idea I am open to hear it.
> I am currently using a "build" of the tomcat source so that I can trace
> this problem, so if you need me to test some code on my sys then please
> tell me.
> 
> 
> Error: 500
> 
> Location: /custdb/protected/process/main.jsp
> 
> Internal Servlet Error:
> 
> org.apache.jasper.JasperException:
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibra
> ry.java:215)
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.introspect(JspRuntimeLibrary.jav
> a:157)
> at
> p_00025otected.process._0002fprotected_0002fprocess_0002fmain_0002ejspmain_j
> sp_0._jspService(_0002fprotected_0002fprocess_0002fmain_0002ejspmain_jsp_0.j
> ava:84)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:177)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Ajp12ConnectionHandler.java:166)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.

Large Scale Tomcat use

2001-01-12 Thread A Yang

Hi,

I was just curious - if I wanted to architect a
multi-tier web app environment, what would be the best
approach in terms of scalability, performance and
security:

1. Apache -- Firewall -- Standalone Tomcat -- Firewall
-- DB
2. Apache -- Firewall -- Apache/Tomcat -- Firewall --
DB
3. Apache/Tomcat -- Firewall -- Standalone Tomcat --
Firewall -- DB
4. Apache/Tomcat -- Firewall -- Apache/Tomcat --
Firewall -- DB
5. Apache/Tomcat -- Firewall -- DB
6. Apache/Tomcat -- Firewall -- Apache/Tomcat --
Firewall -- DB

"Apache/Tomcat" refers to Apache w/ mod_jk.so and
Tomcat running on the same machine.

I'm not familiar with the recommended approaches
towards distributing Apache and Tomcat, so some of
these options might not make sense (ok, none of them
might make sense...)

Just thought I'd see if anyone has "best practices" or
experience with doing so - this seemed related to load
balancing, but I thought I'd try a new thread.

Regards,
Andy



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

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




NT/Tomcat/Logout

2001-01-12 Thread Edson Carlos Ericksson Richter

When I do and Logout with Tomcat installed as service, all the things stop
working.

Anyone can help-me?


Edson Richter


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




error

2001-01-12 Thread Pablo Trujillo

I am working with Tomcat and Apache. Now I am trying to install Apache1.3.14
and mod_ssl.
Copy the I module mod_jserv in libexec and add the line include
/apache-tomcat.conf in the file httpd.conf.
it gives me the following error when lifting the Apache:
invalid command LoadModule.

What Happened?
-
Click here for Free Video!!
http://www.gohip.com/free_video/



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




Re: mod_jk.so and Apache generates undefined symbol error at runtime

2001-01-12 Thread Yang A

> I've managed to compile the mod_jk.so under
> Mandrake Linux (RedHat 6.2 and then some) but when I

> try to run the module with Apache 1.3.14 I get an
> undefined symbol error (see below).I used the Tomcat
> source in jakarta-tomcat-3.2.1-src to create the 
> shared object. The following was the runtime error 
> message from Apache. 
> 
> Cannot load /usr/local/apache/libexec/mod_jk.so into
> server: /usr/local/apache/libexec/mod_jk.so: 
> undefined symbol: ap_table_elts
> 
> Server version: 
> 
> Server version: Apache/1.3.14 (Unix)
> Server built:   Oct 11 2000 17:17:36
> 
> OS version (uname -a):
> 
> Linux myHost 2.2.17-21mdk #1 Thu Oct 5 13:16:08 CEST
> 2000 i686 unknown
> 
> 
> Any ideas. I'd really like to get mod_jk.so working.
> If anyone has a working version with Apache 1.3.14, 
> I'll take it. I've no real strong desire to compile
> it again (and again, and again).

Why not? I have been. 8)

I'm no guru - but since I've been mucking around with
this for the last couple of days, it's still
relatively fresh in my memory. 

I ran into similar problems myself - I was trying to
get apache 1.3.14 with mod_jk, mod_ssl and DSO going.

This is the best summary I've seen yet:

http://mikal.org/interests/java/tomcat_users/msg19668.html

The thread also mentions that the info has been posted
at http://www.JAMMConsulting.com somewhere.

I'm not sure exactly what made my installation finally
work - I changed several things this last time through
- most of them mentioned in the above reference:

1. Instead of using IBM's JDK 1.1.8, I downloaded the
latest Blackdown JDK 1.3 and used it instead

2. Instead of hacking into my httpd.conf file as
outlined in the mod_jk HOW-TO at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html,
I followed the advice of the mailing list posting and
just added

   include
/usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto

to the end of the httpd.conf file.

3. Instead of doing a straight compile of jakarta
using apxs directly as outlined in the mod_jk HOW-TO,
I edited/used the Makefile.linux file - also as per
the mailing list posting.

All in all, Neil Aggarwal's document was what pushed
me over the top to get things working.

Of course, now that I need to customize my tomcat
environment, I'm busy breaking it. 8)

Hope this helps - don't know which one (if any - for
all I know, it could have been Jupiter moving into the
house of Mars) made the difference, but perhaps your
experiences might allow us to update the mod_jk
HOW-TO.

Regards,
Andy


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

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




RE: How to detect Tomcat running on linux?/.

2001-01-12 Thread Ed Gomolka
Title: RE: How to detect Tomcat running on linux?/.



Tomcat 
is just another Java process.
You 
need to enter:
 
ps 
-ef|grep java.
 
The 
command output doesn't explicitly tell you that Tomcat is running, but it will 
list whatever options
you 
added to the java command, so you should have enough info to recognize the 
Tomcat process.

  -Original Message-From: kiril 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, January 12, 2001 9:17 
  AMTo: [EMAIL PROTECTED]Subject: RE: How to 
  detect Tomcat running on linux?/. 
  try ps -x |grep tomcat or 
  ps -x |grep Kaffe either of those 
  should work. 
  -Original Message- From: 
  blueless [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, January 11, 2001 11:39 PM To: [EMAIL PROTECTED] Subject: How 
  to detect Tomcat running on linux?/. 
  I would like to know how to get tomcat process running... 
  
  ' ps -ef | grep tomcat ' does not work fine... 
  How can I do it?.. 
  TIA 


RE: Tomcat 3.2.1 load balancing with mod_jk

2001-01-12 Thread Jord Sonneveld
Title: RE: Tomcat 3.2.1 load balancing with mod_jk






Hi Mathias,


I've been playing around a fair amount with the loadbalancing code in mod_jk. 


You might want to read through the jakarta-tomcat/src/native/jk/jk_lb_worker.c file to get a feeling for how it works.


As far as I can tell is that it works like this:

You start up multiple tomcats. They have no clue yet about jvm routes. Then you start up apache, which starts up mod_jk, which reads the workers.properties files, and then assigns the workers in there their jvm route. Now, if a request comes in with a JSESSIONID cookie, or something encoded in the URL, which contains a jvm route, the request is then transferred to the tomcat with that jvm route. This is called sticky sessions. If that tomcat is down, it is then round-robin'ed to a next tomcat. 

I don't think there is any loadbalancing specific stuff in tomcat, apart from the jvm route.


I do not know about the performance impact.


Any further questions, please ask.


Jord.



-Original Message-

From: Mathias Herberts [mailto:[EMAIL PROTECTED]]

Sent: Friday, January 12, 2001 5:56 AM

To: [EMAIL PROTECTED]

Subject: Tomcat 3.2.1 load balancing with mod_jk



Hi,


I've been lurking around the mod_jk and Tomcat 3.2.1 source tree looking

for the load balancing related code.


I've seen that the load balancing possibilities of Apache JServ were

transfered into Tomcat but saw no example of their use.


I did put together a very simplistic Interceptor which sets the JvmRoute

in the request, it seems to work but I would be interested in feedbacks

from other people having tried that out.


Any hints on performance could also be of good help.


My simplistic code is available on demand.


Best regards,


Mathias.


--

Ce message et  toutes les pieces jointes (ci-apres  le "message") sont

confidentiels et etablis a l'intention exclusive de ses destinataires.

Toute  utilisation ou  diffusion  non autorisee  est interdite.   Tout

message  etant  susceptible  d'alteration,  l'emetteur  decline  toute

responsabilite au titre de  ce message  s'il a  ete altere, deforme ou

falsifie.

    ---

This message and any  attachments (the "message") are confidential and

intended  solely   for  the   addressees.  Any  unauthorised   use  or

dissemination is prohibited. As e-mails are susceptible to alteration,

the issuer shall  not be  liable for  the  message if altered, changed

or falsified.




-

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, email: [EMAIL PROTECTED]





RE: Multipart/form-data

2001-01-12 Thread Ed Gomolka

I don't think that there's a nice centralized bug list, but if there is,
I'd like to know the location as well.

Ed

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 10:45 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Multipart/form-data
> 
> 
> 
> 
> Thanks, this is exactly where the problem is. I just switched my 
> application
> from ajp13 to ajp12, it works fine with uploading both binary and 
> text files. I
> never thought it could be the connector problem on the tomcat side.
> 
> Can somebody tell me where to find all the known problems of 
> tomcat, please?
> 
> Yanbin
> 
> 
> 
> |+--->
> ||  "Ed Gomolka" |
> ||   ||  info.com>|
> ||   |
> ||  01/12/01 |
> ||  10:52 AM |
> ||  Please   |
> ||  respond to   |
> ||  tomcat-user  |
> ||   |
> |+--->
>   
> >-
> --|
>   |   
> |
>   |   To: [EMAIL PROTECTED]  
> |
>   |   cc: (bcc: Yanbin Ma/SYS/NYTIMES)
> |
>   |   Subject: RE: Multipart/form-data
> |
>   
> >-
> --|
> 
> 
> 
> 
> If you're using mod_jk with binary multipart/form-data, avoid AJP13,
> as it has a bug. Use AJP12.
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 12, 2001 9:11 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Multipart/form-data
> >
> >
> >
> >
> > I posted a similar message regarding the Oreilly upload package,
> > contacted the
> > author of the package, Mr. Jason Hunter, and also did a lot of
> > experiment of my
> > own. The conclusion is this is MAYBE a problem between mod_jk and
> > apache. Here
> > are the results of my investigation:
> >  somebody in this list claims
> > tomcat3.1+apache+mod_jserv works;
> >  J. Hunter said tomcat alone works for him;
> >  I tried tomcat3.2+mod_jk+apache1.3.14, failed for
> > binary files,
> > worked only for text file;
> >  I also tried different clients on different
> > environment, made sure
> > this is not a client issue;
> >  I ported my application to JRun, it works fine without
> > modification;
> >
> > Yanbin
> >
> >
> >
> > |+>
> > ||  Randy Layman  |
> > ||   > ||  think.com>|
> > |||
> > ||  01/12/01 07:28 AM |
> > ||  Please respond to |
> > ||  tomcat-user   |
> > |||
> > |+>
> >
> > >-
> > --|
> >   |
> > |
> >   |   To: "'[EMAIL PROTECTED]'"
> > |
> >   |   <[EMAIL PROTECTED]>
> > |
> >   |   cc: (bcc: Yanbin Ma/SYS/NYTIMES)
> > |
> >   |   Subject: RE: Multipart/form-data
> > |
> >
> > >-
> > --|
> >
> >
> >
> >
> >
> >An Internal Server Error is caused by an uncaught
> > exception in your
> > code.  Probably a NullPointerException, but it could be anything that
> > extends java.lang.Runtime exception.
> >
> >Randy
> >
> > -Original Message-
> > From: Saikat Chatterjee [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 12, 2001 12:44 AM
> > To: [EMAIL PROTECTED]
> > Subject: Multipart/form-data
> >
> >
> > Hello,
> > I have encountered a problem regarding 'multipart/form-data'
> > encryption
> > type in a html FORM.
> > I have written a servlet through which an user uploads file. I am
> > expecting
> > that the content type coming to the servlet will be of type
> > 'multipart/form-data' . To handle this particular type of data 
> i am using
> > the
> > MultipartRequest parser provided by Oreilly.
> > But everytime i am running the servlet, i am getting a 'Internal Server
> > Error'.
> > Why this is so?Is it due to the fact that Tomcat cannot handle the
> > 'multipart/form-data'?
> > I am using Apache 1.3.12 as webserver and Tomcat 3.2 as servlet
> > container.
> >
> > Any help will be highly appreciated.
> >
> > Thanks,
> > Saikat
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> > 

jsp:usebean documentation

2001-01-12 Thread Shahed Ali

Hi,

Where can I find documentation that acctually explains how the jsp:useBean
tag works ?

The Servlet API / JSP api are very complex. The JSP tag refrence does not
explain
the scope of the bean.

For example I know that if I have a bean residing in the session and I use
the usebean tag with
the scope set to session, jsp will check first if the bean lives in the
session and only then will it
try to create it.

What about page/ request and application scope ?

I know that some books explain how all this works, or I can look the
generated servlet code and
understand, but what my point is where can I find the docs on the Web ?
java.sun.com does not seem to have the docs explaning what I am looking for.

Thanks
Shahed.

PS : I found the answer to my questions by look at the book "Professional
JSP", but I hoped to
find them online !!


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




Un subscribe me............................

2001-01-12 Thread PAPIREDDY Poreddy



-Original Message-
From: fud fudmore [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 10:17 PM
To: [EMAIL PROTECTED]
Subject: Re: howto implement global applications?





>From: Matt Goss <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: howto implement global applications?
>Date: Fri, 12 Jan 2001 09:41:54 -0500
>
>mall,
>add your connection pool object to the ServletContext like so:
>getServletConfig().getServletContext().setAttribute("poolname", pool);
>then when you want to get a connection just get a reference to your pool
>object like so:
>PoolObject mypool =
>(PoolObject)getServletConfig().getServletContext().getAttribute("poolname")
;
>
>peice of cake! :)
>Matt
>
>mall wrote:
>
> > Hi, I've just recently read the JSP and Servlet specifications and I
> > was wondering if there was a way to implement a global applicationin
> > tomcat. I want some of my JSP pages to be able to access an object
> > that manages a pool of database-connected-threads. I trieddeclaring
> > such an object as static but it reloads the object whenever the JSP
> > page gets modified. I've also looked at tomcat'sexplaination of some
> > of the elements in server.xml file and it mentioned something about
> > using Requestinterceptors to implementglobal applications but it
> > doesn't say too much after that.


I will try that but i was under the impression that the servletcontext
would be recreated each time the jsp page was modififed and needed to be
recompiled.

   Thank you for your reply.




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


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

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




Using a servlet to handle a HTTP PUT

2001-01-12 Thread Brett Perkes

I have Tomcat installed and running nicely but can't get Apache to direct a
PUT to a servlet.

I have a servlet named "attach" which is called with this url
http:///vault/servlet/attach.  The doGet method is being executed
nicely but the doPut method is never executed.

In httpd.conf I have this directive

  Script PUT /vault/servlet/attach


Any suggestions?

Brett Perkes
[EMAIL PROTECTED]



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




RE: New User help required

2001-01-12 Thread Samson, Lyndon [IT]

Just as a matter of interest, you don't actually need apache to serve out
http requests. tomcat can do that on
its own. Only if you req the features of apache ( performance/config etc )
should you use it.
If your primary interest is servlets/JSP/taglibs etc just use tomcat on its
own.

lcs


-Original Message-
From: Jason Norton [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 4:25 PM
To: [EMAIL PROTECTED]
Subject: New User help required


Hi,=20

I have just started to use Apache and would like to get Tomcat operational =
and I am having some minor problems. I have both tomcat and apache up and =
running and servicing pages as individuals  (http://localhost and =
http://localhost:8080), but am having some problem getting them to run =
together. My set up is

SuSE Linux 7.0

Apache 1.3.12
Tomcat 3.2.1
JDK1.3
mod_jk.so (my own compile)


Please could someone post for me (or email me) the contents or an example =
of there httpd.conf file and any other key .conf you feel I may be making =
errors in. This is so that I can see how the tomcat (mod_jk.so) intergrates=
 itself as this seems to be my big stumbling block and dont fully =
understand the available documentation.

many thanks in advance


Jason Norton


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

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




wrapper.properties

2001-01-12 Thread Caspar Boekhoudt

Hi I have Tomcat 3.1 and 3.2 installed on different machines. I'm  trying to
run them as a service under windows2000, bu following the file:
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/NT-Service-howto.htm
l
I can't seem to find the wrapper.properties that is mentioned.

Thank you,

Caspar Boekhoudt
Etensity
[EMAIL PROTECTED]
703.770.3767
703.582.9544 cell




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




Tomcat Usage

2001-01-12 Thread Art Taylor


Tomcat-Users,

   I'm in the process of writing a technical book that features the Tomcat
server. I'm looking for stories/testimonials from people (real people) that are
using this server in small to medium-sized production environments,i.e., the
real world.  

   I know that Tomcat is technically a reference implementation, but I've seen
Windoze software in production that's in worse shape than this product. (OK,
maybe that doesn't say much ;)

   My experience with Tomcat in development has been generally positive. (I
understand mod_jk.so is a 'work-in-progress' so I can't complain about that.) I
think it's well-designed, efficient and, like most other open-source, pretty
solid. 

   So let me know how your using Tomcat in something other than a development
environment. Is it 'production-ready'?

Thanks,

  -- Art Taylor 


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

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




Re: howto implement global applications?

2001-01-12 Thread fud fudmore




>From: Matt Goss <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: howto implement global applications?
>Date: Fri, 12 Jan 2001 09:41:54 -0500
>
>mall,
>add your connection pool object to the ServletContext like so:
>getServletConfig().getServletContext().setAttribute("poolname", pool);
>then when you want to get a connection just get a reference to your pool
>object like so:
>PoolObject mypool =
>(PoolObject)getServletConfig().getServletContext().getAttribute("poolname");
>
>peice of cake! :)
>Matt
>
>mall wrote:
>
> > Hi, I've just recently read the JSP and Servlet specifications and I
> > was wondering if there was a way to implement a global applicationin
> > tomcat. I want some of my JSP pages to be able to access an object
> > that manages a pool of database-connected-threads. I trieddeclaring
> > such an object as static but it reloads the object whenever the JSP
> > page gets modified. I've also looked at tomcat'sexplaination of some
> > of the elements in server.xml file and it mentioned something about
> > using Requestinterceptors to implementglobal applications but it
> > doesn't say too much after that.


I will try that but i was under the impression that the servletcontext
would be recreated each time the jsp page was modififed and needed to be
recompiled.

   Thank you for your reply.




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


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




RE: Multipart/form-data

2001-01-12 Thread mayan



Thanks, this is exactly where the problem is. I just switched my application
from ajp13 to ajp12, it works fine with uploading both binary and text files. I
never thought it could be the connector problem on the tomcat side.

Can somebody tell me where to find all the known problems of tomcat, please?

Yanbin



|+--->
||  "Ed Gomolka" |
||  |
||   |
||  01/12/01 |
||  10:52 AM |
||  Please   |
||  respond to   |
||  tomcat-user  |
||   |
|+--->
  >---|
  |   |
  |   To: [EMAIL PROTECTED]  |
  |   cc: (bcc: Yanbin Ma/SYS/NYTIMES)|
  |   Subject: RE: Multipart/form-data|
  >---|




If you're using mod_jk with binary multipart/form-data, avoid AJP13,
as it has a bug. Use AJP12.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 9:11 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Multipart/form-data
>
>
>
>
> I posted a similar message regarding the Oreilly upload package,
> contacted the
> author of the package, Mr. Jason Hunter, and also did a lot of
> experiment of my
> own. The conclusion is this is MAYBE a problem between mod_jk and
> apache. Here
> are the results of my investigation:
>  somebody in this list claims
> tomcat3.1+apache+mod_jserv works;
>  J. Hunter said tomcat alone works for him;
>  I tried tomcat3.2+mod_jk+apache1.3.14, failed for
> binary files,
> worked only for text file;
>  I also tried different clients on different
> environment, made sure
> this is not a client issue;
>  I ported my application to JRun, it works fine without
> modification;
>
> Yanbin
>
>
>
> |+>
> ||  Randy Layman  |
> ||   ||  think.com>|
> |||
> ||  01/12/01 07:28 AM |
> ||  Please respond to |
> ||  tomcat-user   |
> |||
> |+>
>
> >-
> --|
>   |
> |
>   |   To: "'[EMAIL PROTECTED]'"
> |
>   |   <[EMAIL PROTECTED]>
> |
>   |   cc: (bcc: Yanbin Ma/SYS/NYTIMES)
> |
>   |   Subject: RE: Multipart/form-data
> |
>
> >-
> --|
>
>
>
>
>
>An Internal Server Error is caused by an uncaught
> exception in your
> code.  Probably a NullPointerException, but it could be anything that
> extends java.lang.Runtime exception.
>
>Randy
>
> -Original Message-
> From: Saikat Chatterjee [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 12:44 AM
> To: [EMAIL PROTECTED]
> Subject: Multipart/form-data
>
>
> Hello,
> I have encountered a problem regarding 'multipart/form-data'
> encryption
> type in a html FORM.
> I have written a servlet through which an user uploads file. I am
> expecting
> that the content type coming to the servlet will be of type
> 'multipart/form-data' . To handle this particular type of data i am using
> the
> MultipartRequest parser provided by Oreilly.
> But everytime i am running the servlet, i am getting a 'Internal Server
> Error'.
> Why this is so?Is it due to the fact that Tomcat cannot handle the
> 'multipart/form-data'?
> I am using Apache 1.3.12 as webserver and Tomcat 3.2 as servlet
> container.
>
> Any help will be highly appreciated.
>
> Thanks,
> Saikat
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>

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






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

Catalina configuration

2001-01-12 Thread Federico Delpino

Hi people,
   I just moved to Tomcat 4.
Servlets examples run well, on the contrary  JSP examples and my JSP pages
all report the following error:

==
org.apache.jasper.JasperException: Unable to compile class for
JSP..\work\localhost\examples\_0002fjsp_0002fnum_0002fnumguess_0002ejspnumgu
ess_jsp_0.java:153: Incompatible type for method. Explicit cast needed to
convert java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:159)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:171)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:328)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:215)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:251)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:464)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
42)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2041)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161
)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:159)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
818)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
at java.lang.Thread.run(Thread.java:484)


My problem is where may I finf doc or guidelines to properly configure
Catalina, since the documentation in folder ROOT is empty.
My system run Win 2000.
Thanks in advance
federico


--
Federico Delpino   Tel. 39-51-20-95722
Osservatorio Astronomico di BolognaFax. 39-51-20-95700
via Ranzani,1 - 40126 Bologna, Italy   e-mail: [EMAIL PROTECTED]


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




mod_jk.so and Apache generates undefined symbol error at runtime

2001-01-12 Thread Art Taylor


Tomcat gurus,

 I've managed to compile the mod_jk.so under Mandrake Linux (RedHat 6.2 and
then some) but when I try to run the module with Apache 1.3.14 I get an
undefined symbol error (see below).I used the Tomcat source in
jakarta-tomcat-3.2.1-src to create the shared object. The following was the
runtime error message from Apache. 

Cannot load /usr/local/apache/libexec/mod_jk.so into server:
/usr/local/apache/libexec/mod_jk.so: undefined symbol: ap_table_elts

Server version: 

Server version: Apache/1.3.14 (Unix)
Server built:   Oct 11 2000 17:17:36

OS version (uname -a):

Linux myHost 2.2.17-21mdk #1 Thu Oct 5 13:16:08 CEST 2000 i686 unknown


Any ideas. I'd really like to get mod_jk.so working. If anyone has a working
version with Apache 1.3.14, I'll take it. I've no real strong desire to compile
it again (and again, and again).

  Thanks,

-- Art Taylor 


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

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




Re: getInitParameter

2001-01-12 Thread William Brogden



Luk Smolders wrote:
> 
> Hi,
> 
> I'm using the following command in my servlet :
> value = config.getInitParameter("AddressList");
> 
> Can someone tell me how to configure Tomcat to get the value assigned to
> AddressList.
> I don't know where I have to put the information (what file ... ?)
> 
> Thanks,
> 
> Luk
> 

Initialization parameters for servlets go in Web.xml - example:

Questionnaire
   
com.XmlEcomBook.Chap07.QuestionnaireServ
  
 homedir
 e:\scripts\questionnaire
  


-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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




RE: Clarification

2001-01-12 Thread Michael Wentzel

> Sorry I should have been clearer. My example meant the 
> default package, and
> the question was in relation to what would
> happen if classes/packages were the same.
> 
> ie 
> WEB-INF/lib/a.jar
> contains;
>   org.apache.C
> 
> WEB-INF/lib/b.jar
> contains;
>   org.apache.C
> 
> Which C is loaded?

The first class in the classpath Depending on how the filesystem 
on the OS you are working on.  In other words, I believe in
windows it would end up being the a.jar class that is loaded.

The reasoning behind this is found in the following:

javac -classpath .\Classes\A.jar;..\OptClasses\A.jar Something.java

The .\Classes\A.jar class are actually loaded by the classloader
and the OptClasses\A.jar ones are essentially ignored.

I imagine in most cases, Unix flavors included, it would be a.jar that
gets loaded into the class namespace.

An easy way to test this is create two jars(a.jar and b.jar) with the 
same class but the two classes differ in a System.out.println call and 
then create an instance of that class and see which println you get.

Please correct me if I'm wrong anyone?


---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel

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




getInitParameter

2001-01-12 Thread Luk Smolders

Hi,


I'm using the following command in my servlet :
value = config.getInitParameter("AddressList");

Can someone tell me how to configure Tomcat to get the value assigned to
AddressList. 
I don't know where I have to put the information (what file ... ?)

Thanks,

Luk

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




  1   2   >