Does Tomcat usually run so SLOW?

2001-08-10 Thread [EMAIL PROTECTED]

Hi!

I've got Tomcat 3.2.3 on HP-UX 10.20, and answer responses are -in my
opinion- very slow (5-6 secs.).

Is it normal?

-
This mail was sent through Eoffice: http://www.eoffice.dk




Re: Jakarta crashes simultaneous more connection above 990+

2001-08-10 Thread Santosh Pasi

Hi,

Even changing pools setting like
Increasing the pool size resolved the problem, specifically the
following parameters (neatly copied from the tomcat users guide)

   
 
 

The values were arbitrary - I stuck mine up to max_threads = 200,
max_spare_threads=20, min_spare_threads=20
and lo - the hang problem  went away.

Even I had used options

TOMCAT_OPTS=" -Xms64m"

Didn't solve the problem.

Still same problem.

Regards,
Santosh Pasi

---Original Message--
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>Reply-To: [EMAIL PROTECTED]
>List-Help: 
>List-Unsubscribe: 
>List-Post: 
>To: [EMAIL PROTECTED]
>From: Santosh Pasi<[EMAIL PROTECTED]>
>Cc: 
>Reply-To: Santosh Pasi<[EMAIL PROTECTED]>
>Date: Fri, 10 Aug 2001 10:55:26 +0530
>Subject: Jakarta crashes after 900+ simultaneous connection
>
>Hi everyone,
>
>We are doing some stress testing. My problem is that when number of 
>connections reaches around 940..980, jakarta crashes with following 
messages->SIGSEGV   11*  
segmentation violation
>si_signo [11]: SIGSEGV   11*  segmentation violation
>si_errno [0]: Success
>si_code [0]: SI_USER [pid: 0, uid: 0]
>stackpointer=0x4c558554
>
>Full thread dump Classic VM (1.2.2-L, green threads):
>"ppp202" (TID:0x40fb7190, sys_thread_t:0x8d0dec0, state:R) prio=5
>at java.net.SocketInputStream.socketRead(Native Method)
>at java.net.SocketInputStream.read(SocketInputStream.java:86)
>at java.net.SocketInputStream.read(SocketInputStream.java:67)
>at java.io.InputStreamReader.fill(InputStreamReader.java:159)
>at java.io.InputStreamReader.read(InputStreamReader.java:235)
>at java.io.BufferedReader.fill(BufferedReader.java:133)
>at java.io.BufferedReader.readLine(BufferedReader.java:270)
>at java.io.BufferedReader.readLine(BufferedReader.java:325)
>at IRCClient.run(IRCClient.java:799)
>"bumba174" (TID:0x40f88f90, sys_thread_t:0x8d0b358, state:CW) prio=5
>at java.lang.Thread.sleep(Native Method)
>at IRCClient.run(IRCClient.java:765)
>"sunny1176" (TID:0x40f75b28, sys_thread_t:0x8d0b930, state:CW) 
prio=5>at java.lang.Thread.sleep(Native Method)
>
>
>..
>..
>
>-
>
>We are using redhat 6.2 Linux, kernel 2.2.16, Tomcat-jakarta-3.2.1, 
>apache 1.3.14.
>Hope to get some reply.
>
>Regards,
>Santosh Pasi
>
>




Re: Jakarta crashes after 900+ simultaneous connection

2001-08-10 Thread Dan Garcia

On Fri, 10 Aug 2001, Santosh Pasi wrote:
> -
> We are using redhat 6.2 Linux, kernel 2.2.16, Tomcat-jakarta-3.2.1, 
> apache 1.3.14.

Most importantly, what version of the JDK are you using?  (and are you
running on an SMP system?) - there are some bizarre sigsev violations that
i've made disappear by upgrading to the latest JDK.

The other possible issue you're running into is linux typically has set
limits on the number of file descriptors (which network connections are
a type of) per process, and this number is typically around 1024... 
(and given the other file descriptors that may be open internally for
other purposes - would explain your crashings around the upper 900's)

echo "Upping system limits"
echo 16384 > /proc/sys/fs/file-max
echo 65536 > /proc/sys/fs/inode-max

is what I use on our production servers.  Note - you -may- have to
make a kernel change to go to some of these higher numbers...

Cheers,

--Dg





java.security.cert.X509Certificate

2001-08-10 Thread Keith Ball

Hi,

I have a problem with the following code

java.security.cert.X509Certificate clientCert2 =
(java.security.cert.X509Certificate)
request.getAttribute("javax.servlet.request.X509Certificate");

It appears that java..x509Certificate != javax..x509Certificate and so I
can't cast from the JSSE to the normal Java Security API.

The error thrown is this...

java.lang.ClassCastException:
com.sun.security.cert.internal.x509.X509V1CertImpl

I am running JDK 1.3.0_02, JSSE 1.0.2, Apache 1.3.20 and Tomcat 3.2.3.

Anyone got any ideas???

I believe this to be a problem associated either with Tomcat or the JSSE
API, as I am running the same code perfectly on Netscape's iPlanet 4.1.

Best Regards,

Keith Ball 
Vendor Intergration Engineer 

DIGITAL RUM LTD is the developer of 
a ground-breaking new service that allows 
shoppers to compare and buy brand-name 
goods via their WAP search mobile phones. 

Digital Rum Germany GmbH 
Zweibrueckenstr. 2 
80331 Muenchen 
ph: +49 (89) 210 21 ## 
 
 



JSP Project Problem on apache-Tomcat (Pl respond)

2001-08-10 Thread SriHari

Dear Jakarta.apache.org

We  are using Tomcat 3.2.3 for  our jsp project 
I am able to run the JSP's in webapps/
Our Project contains several sub directories /Folders with in the 
I am able to run only jsp's in the main  
How to configuer the  or any other to Make the jsp's
avaliable with in the subfolders 
and 
How reliable is it to use a Tomcat beta version 4.0b5 for a live project

Is there any sample project on the net avaliable for download which run on
tomcat 
if so Do send me a url information on the same 



Regards
Devineni Sree Hari Sai
Software Executive
Pyxis Technology Solutions Ltd







Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released

2001-08-10 Thread chris brown

A few questions about the downloads :

1./ Windows Installer version
(I assume this is the .exe in the main download folder ; I would have
expected it in the "bin" subfolder...).  What does this file actually do?  I
imagine that it unzips the files and installs Tomcat as a service (using
jk_nt_service) -- am I correct so far?  Does it do anything else, such as
modify "httpd.conf" for Apache or any other server setup files (for IIS or
whatever)?

2./ mod_webapp
- Where's the Windows binary?!  The only version I see is for Linux (at
present).
- Is this connecter "stable" code?
- Is it only for Apache 2.0, or can it be used with 1.3.20, etc.?
- Is there any documentation for mod_webapp (I don't know how to use it...)?
- What's the difference between mod_webapp and mod_jk anyway?!

3./ NT service
I currently use JavaService, available from
http://www.alexandriasc.com/software/JavaService/index.html, to run Tomcat
3.2.3 as a service.  Is this still possible with Tomcat 4.0, or do I need to
use jk_nt_service ?

Thanks,
Chris B.

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, August 10, 2001 8:01 AM
Subject: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released


> A release candidate version of Tomcat 4.0, version "beta 7", has been
> released.  This version conforms to the Proposed Final Draft 3 version of
> the Servlet 2.3 and JSP 1.2 specifications, which will go final soon, and
> incorporates all of the latest bugfixes.
>
> In addition, for users who run Tomcat 4.0 on Windows 9x, this release
> fixes a security vulnerability that allows users to browse the directory
> tree above the web application's context root by using request URIs
> including three or more dots ("/...").  Users running on Win2K and Unix
> systems are *not* susceptible to this vulneratibility.
>
> In addition, as with the previous version, an installer-based version of
> Tomcat 4.0-beta-7 is available for Windows users, as well as native code
> versions of the mod_webapp connector for Apache.
>
> Binary distributions are available at:
>
>   http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/
>
> Source distributions are available at:
>
>   http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/src/
>
> Craig McClanahan
>
>




java.net.SocketException: Connection reset by peer

2001-08-10 Thread Raju Jacob

Hi,
Pelease help..

I'm getting the following error so far using Tomcat 3.2.2 on
Solaris 8, but I get the following error popping out on the
tomcat console randomly after page output is successfully
fed to a client, sometimes it appears, sometimes it doesn't.  
The main problem is server got down after running tomcat overnight.
Some times it will automatically removing all the contexts and got down
the server.
do you have any idea about this problem , what would be the cause of
this. 

The error is 


2001-08-10 04:10:39 - ContextManager: SocketException reading request,
ignored -
 java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAvailable(Native Method)
at java.net.PlainSocketImpl.available(PlainSocketImpl.java:436)
at
java.net.SocketInputStream.available(SocketInputStream.java:141)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:217)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)  




Best Regards,
Raju Jacob



Re: getting the ServerName

2001-08-10 Thread Kazi the P i R @ t {-

I failed to get anything from the link
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet
..wait let me rephrase that... it resulted in a  'sorry, we could not get
the file you requested error'

Thank yoy all by the way for your suggestions... I have yet to try them
out... I'll be back with feedback as soon as i do...

by the the packages are to be used with XSPs, not servlets...

:)

Most Grateful -
kazi

- Original Message -
From: "Heath, Joseph" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 09, 2001 9:51 PM
Subject: RE: getting the ServerName


> Its depends on whether Kazi meant getServerName() or getServletName() .. I
> was assuming he made a spelling mistake (its a frequent compiler warning
on
> my box) ..
> As you cant get access to the Servlet through the ServletContext
(deprecated
> and doesn't work anymore)...
>
> But if you want the ServerName yes do that...;-)
>
> > -Original Message-
> > From: Mills, Theo [mailto:[EMAIL PROTECTED]]
> > Sent: 09 August 2001 14:37
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: getting the ServerName
> >
> >
> > Actually there's a more direct method in
> > javax.servlet.ServletContext.getServerInfo().
> >
> > Check it out:
> >
> > http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet
> > /ServletContex
> > t.html
> >
> > Hope this helps.
> >
> > -Original Message-
> > From: Heath, Joseph [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 09, 2001 5:22 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: getting the ServerName
> >
> >
> > Your classes will not know where they are being run..
> > You have to pass some kind of context in to them..
> > I normally use a ref to the servlet through the constructor
> > eg..
> >
> > public class MyExample {
> >
> > private HttpServlet context;
> >
> > public MyExample(HttpServlet context) {
> > this.context = context;
> > }
> >
> > public void doSomething() {
> > String name = context.getServletName();
> > }
> > }
> > 
> > In the servlet
> >
> > MyExample eg = new MyExample(this);
> >
> > > -Original Message-
> > > From: Kazi the P i R @ t {- [mailto:[EMAIL PROTECTED]]
> > > Sent: 09 August 2001 11:11
> > > To: [EMAIL PROTECTED]
> > > Subject: getting the ServerName
> > >
> > >
> > > how can one of my packages (not a servlet) access the
> > > server's name?? I
> > > attempted to use the HttpServletRequest object in isolation
> > > and using the
> > > function getServletName() to achieve my goals... but it
> > > failed. It was just
> > > a shot in the dark...
> > >
> > > Now i am turning to you all... shed some light on my target
> > >
> > > including
> > > Thank Yous In Advance
> > >
> > > kazi
> > >
> >
>




Multiple tomcat instances launch by two different users and one apache server

2001-08-10 Thread julien coulmeau

Hello everybody,

I am using tomcat 3.2 with apache 1.3.20 on solaris 2.6

i am trying to have two instances of tomcat each serving one particular context and 
run by one unix user

I have only one tomcat directory structure

unix user1 should run tomcat to serve web application webapps/app1
unix user2 should run tomcat to serve web application webapps/app2

user1 use the conf/server_user1.xml file where i defined a connector ajp12_user1 on 
port 8007
user2 use the conf/server_user2.xml file where i defined a connector ajp12_user2 on 
port 8009

I have configure apache to pass /app1/*.jsp (& /app1/servlet/*) url through 
ajp12_user1 connector and to pass
/app2/*.jsp (& /app2/servlet/*) url through ajp12_user2 connector

I have also configure the workers.properties to fully define ajp12_user1 and 
ajp12_user2.

Now my problem is that i don't want the "user1" tomcat interfere with the "user2" 
tomcat. And with my configuration,
the app1 context is added by the "user2" tomcat startup and the same the other way

Can anybody have any tips to provide in order to prevent one tomcat process to add 
context I wish to be added only
by an another tomcat process?

I thought about creating two directories for each user with sub-directories webapps, 
conf, log in order to remain with
only one lib, classes and bin sub-directories under tomcat_home. Is it a good idea?
My concern is about the workers.properties file : should I to duplicate this file in 
the two conf directories as is (with the
two workers ajp12_user1 and ajp12_user2 defined in each) or to have only the worker 
related to the user defined in
each workers.properties file.

Thanks in advance for some help
_
Le journal des abonnés Caramail - http://www.carazine.com




RH Linux 7.1 Java Error

2001-08-10 Thread Allan Kamau

Hi all,
I know this is perhaps not the most appropriate place
to present this question as it is a purely java
installation problem. But I hope you'll bare with
me.Am getting an 'libjvm.so' error.

I am trying to install jdk1.3.0_02 on RH linux 7.1
from the .rpm installation. 
I've used the rpm -ivh  and even the
GnomeRPM after login as root. The installation
completes successfully, and I even query for errors
using the GnomeRPM but shows me nothing.
However when I run the java or the javac programs I
get the following error.

--start
#java somefile
/usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut: No such
file or directory
/usr/java/jdk1.3.0_02/bin/i386/native_threads/java:
error while loading shared libraries: libjvm.so:
cannot load shared object file: No such file or
directory
--end
Indeed the /usr/bin/cut file doesn't exist.
I can't try download the jdk1.3.1 (now downloadable as
one single file) as I am on slow and unrealiable
dial-up link.

Finally, I have the same jdk (jdk1.3.02) installed
from the same .rpm file running flawlessly on a RedHat
6.2 system.

Thank you.
Allan

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



Re: Re: Jakarta crashes after 900+ simultaneous connection

2001-08-10 Thread Santosh Pasi

Hi,

Thanks for prompt reply.

Here is file descriptor properties ... even manually i have increase 
ulimit values of system before starting any services ...
[root@linux /root]# cat /proc/sys/fs/file-max
4096
[root@linux /root]# cat /proc/sys/fs/inode-max
8192
[root@linux /root]#

Btw i have change it to values you specified ... and tested
still same problem ...

For testing it is non SMP

Java is 1.2.2




Thanks again  ... 
Regards

Santosh Pasi


---Original Message--
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>Reply-To: [EMAIL PROTECTED]
>List-Help: 
>List-Unsubscribe: 
>List-Post: 
>Date: Fri, 10 Aug 2001 04:08:00 -0400 (EDT)
>From: Dan Garcia <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED], Santosh Pasi <[EMAIL PROTECTED]>
>Subject: Re: Jakarta crashes after 900+ simultaneous connection
>In-Reply-To: [EMAIL PROTECTED]
>
>On Fri, 10 Aug 2001, Santosh Pasi wrote:
>> -
>> We are using redhat 6.2 Linux, kernel 2.2.16, Tomcat-jakarta-3.2.1, 
>> apache 1.3.14.
>
>Most importantly, what version of the JDK are you using?  (and are you
>running on an SMP system?) - there are some bizarre sigsev violations 
that>i've made disappear by upgrading to the latest JDK.
>
>The other possible issue you're running into is linux typically has set
>limits on the number of file descriptors (which network connections are
>a type of) per process, and this number is typically around 1024... 
>(and given the other file descriptors that may be open internally for
>other purposes - would explain your crashings around the upper 900's)
>
>echo "Upping system limits"
>echo 16384 > /proc/sys/fs/file-max
>echo 65536 > /proc/sys/fs/inode-max
>
>is what I use on our production servers.  Note - you -may- have to
>make a kernel change to go to some of these higher numbers...
>
>Cheers,
>
>--Dg
>
>
>




RE: Double loading when loading servlet on startup

2001-08-10 Thread Alexander Cherinko

Lot of thanks, Larry.
You are absolutely right.
It was due to different contexts.
Thank you!
I actually was in little panic about this problem:)
--Che


> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 08, 2001 10:05 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Double loading when loading servlet on startup
> 
> 
> I tried this scenario with Tomcat 3.2.1 and I only get one call
> to init().  Are you on Windows?  If your "ts" directory is actually
> named "Ts", I think you would get two context's.  What does your
> tomcat log show about contexts being added?
> 
> Larry
> 
> > -Original Message-
> > From: Alexander Cherinko [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 08, 2001 1:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Double loading when loading servlet on startup
> > 
> > 
> > The case:
> > 
> > Nt/Linux v3.2.1,2,3.
> > There is one context:
> >  >  docBase="webapps/ts"
> >  crossContext="true"
> >  debug="1"
> >  reloadable="true"(or false)
> >  trusted="false" >
> > 
> > 
> > The web.xml piece for this context
> > 
> > Loader
> > Loader
> > 1
> > 
> > 
> > jdb shows double classes named Loader loaded with different 
> > instances of
> > org.apache.tomcat.loader.AdaptiveClassLoader12 which have 
> > generation field 2
> > and 4 correspondingly. If I call
> > 
> > Class.forName("MyClass")
> > 
> > in init method of servlet and MyClass is subclass of thread I 
> > have double
> > threads. And so on.
> > gc gets nothing and trying to interrupt threads in servlet's 
> > destroy method
> > gets nothing as well.
> > 
> > And this occurs only when servlet is marked as 
> > load-on-startup. For ordinary
> > servlet there is nothing like this.
> > 
> > --Che
> > 
> > 
> > > -Original Message-
> > > From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 08, 2001 7:58 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: RE: Double loading when loading servlet on startup
> > >
> > >
> > > In the past, the cases of "double loading" I've seen have all been
> > > because an auto-loaded context (created by "AutoSetup" from the
> > > webapps directory) was also manually loaded as a second 
> > context, i.e.
> > >
> > >  > >  docBase="webapps/examples"  ...
> > >
> > > Each context gets its own instance of servlets.  As a result,
> > > init() is called twice, once for each context.
> > >
> > > There isn't enough information below to tell if this is the
> > > source of the double-loading.
> > >
> > > Cheers,
> > > Larry
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, August 08, 2001 12:32 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: Double loading when loading servlet on startup
> > > >
> > > >
> > > > Got the same problem :(( (on v3.2.3 - NT)
> > > >
> > > > -Message d'origine-
> > > > De : Alexander Cherinko [mailto:[EMAIL PROTECTED]]
> > > > Envoye : mercredi 8 aout 2001 16:38
> > > > A : [EMAIL PROTECTED]
> > > > Objet : Double loading when loading servlet on startup
> > > >
> > > >
> > > > Hi
> > > > problem is that when I mark servlets as load-on-startup they
> > > > are loaded
> > > > twice in jvm.
> > > > I want this servlet to serve as initializer i.e. to
> > > > initialize some other
> > > > classes in its init method.
> > > > The worst is that that classes are double loaded too. I.e. I
> > > > want to init
> > > > class which is Thread subclass to perform periodical 
> > custom action. As
> > > > result I have double threads running in jvm and making the
> > > > same things! That
> > > > was obviousely not my real intention.
> > > > From the other hand when I launch that initializer from
> > > > common servlet (not
> > > > loaded on startup) the problem is not present.
> > > > The most strange thing about it is that in both cases all
> > > > classes are loaded
> > > > with the same ClassLoader.
> > > > I cannot understand is it a bug or just I don't 
> > understand something.
> > > > Please help.
> > > > --Che
> > > >
> > >
> > 
> 



Tomcat & Security

2001-08-10 Thread Stefano Bonnin

Hi, I have a problem with the "Tomcat Security".

I have to activate the security option under Tomcat. I have followed the
instructions on the documentation.


I remove the comment and so I have activate the



directive.


Then I run tomcat and the following error is appeared on the screen

Starting Tomcat in new window
Starting tomcat. Check logs/tomcat.log for error messages
cannot process configuration web service using "/examples webapps/examples"
Security init for Context webapps/examples failed
FATAL:java.security.AccessControlException: access denied
(java.lang.RuntimePerm
ission createClassLoader )
java.security.AccessControlException: access denied
(java.lang.RuntimePermission
 createClassLoader )
at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:195)
at
java.security.AccessController.checkPermission(AccessController.java:
403)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at
java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java
:611)
at java.lang.ClassLoader.(ClassLoader.java:236)
at
org.apache.tomcat.loader.AdaptiveClassLoader.(AdaptiveClassLoad
er.java:213)
at
org.apache.tomcat.loader.AdaptiveServletLoader.(AdaptiveServlet
Loader.java:88)
at
org.apache.tomcat.context.LoaderInterceptor.contextInit(LoaderInterce
ptor.java, Compiled Code)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
, Compiled Code)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java,
Compi
led Code)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


Why? (if I run tomcat with -security option all work)

Thanks.




Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released

2001-08-10 Thread chris brown

I've answered some of my own questions, but not all.

Re: 1./
I began using the installer, but didn't find that it offered me much; it
didn't let me choose my preferred JVM.  I resorted instead to the standard
"ZIP" file, which worked just fine.  I'd still welcome more info. about it
though!


Re: 2./ mod_webapp
I found a few answers in RELEASE-NOTES-4.0-B7.txt as supplied with the
distribution.  I still can't find any non-Linux distributions however, (I
require a Win32 binary).  I can't find any detailed documention about it
(what is a warp connection?  I've seen warp.jar in Tomcat, but I don't know
really what it does or how to use it)...

How else can I connect Tomcat 4.0 with an Apache server (1.3.20) ?


Re: 3./ NT Service
JavaService seems to work fine with Tomcat 4. There's no problem in using
it's supplied setup scripts (very easy).


Hope someone can reply to the outstanding questions.  Hope my
comments/questions are of use to others too!

-Chris


- Original Message -
From: "chris brown" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 10, 2001 10:44 AM
Subject: Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released


> A few questions about the downloads :
>
> 1./ Windows Installer version
> (I assume this is the .exe in the main download folder ; I would have
> expected it in the "bin" subfolder...).  What does this file actually do?
I
> imagine that it unzips the files and installs Tomcat as a service (using
> jk_nt_service) -- am I correct so far?  Does it do anything else, such as
> modify "httpd.conf" for Apache or any other server setup files (for IIS or
> whatever)?
>
> 2./ mod_webapp
> - Where's the Windows binary?!  The only version I see is for Linux (at
> present).
> - Is this connecter "stable" code?
> - Is it only for Apache 2.0, or can it be used with 1.3.20, etc.?
> - Is there any documentation for mod_webapp (I don't know how to use
it...)?
> - What's the difference between mod_webapp and mod_jk anyway?!
>
> 3./ NT service
> I currently use JavaService, available from
> http://www.alexandriasc.com/software/JavaService/index.html, to run Tomcat
> 3.2.3 as a service.  Is this still possible with Tomcat 4.0, or do I need
to
> use jk_nt_service ?
>
> Thanks,
> Chris B.
>
> - Original Message -
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, August 10, 2001 8:01 AM
> Subject: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released
>
>
> > A release candidate version of Tomcat 4.0, version "beta 7", has been
> > released.  This version conforms to the Proposed Final Draft 3 version
of
> > the Servlet 2.3 and JSP 1.2 specifications, which will go final soon,
and
> > incorporates all of the latest bugfixes.
> >
> > In addition, for users who run Tomcat 4.0 on Windows 9x, this release
> > fixes a security vulnerability that allows users to browse the directory
> > tree above the web application's context root by using request URIs
> > including three or more dots ("/...").  Users running on Win2K and Unix
> > systems are *not* susceptible to this vulneratibility.
> >
> > In addition, as with the previous version, an installer-based version of
> > Tomcat 4.0-beta-7 is available for Windows users, as well as native code
> > versions of the mod_webapp connector for Apache.
> >
> > Binary distributions are available at:
> >
> >   http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/
> >
> > Source distributions are available at:
> >
> >
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/src/
> >
> > Craig McClanahan
> >
> >
>





Re: Jakarta crashes after 900+ simultaneous connection

2001-08-10 Thread Pier P. Fumagalli

Santosh Pasi at [EMAIL PROTECTED] wrote:
> 
> Hi everyone,
> 
> We are doing some stress testing. My problem is that when number of
> connections reaches around 940..980, jakarta crashes with following
> messages-
> SIGSEGV   11*  segmentation violation
>   si_signo [11]: SIGSEGV   11*  segmentation violation
>   si_errno [0]: Success
>   si_code [0]: SI_USER [pid: 0, uid: 0]
>   stackpointer=0x4c558554
> 
> Full thread dump Classic VM (1.2.2-L, green threads):
>   "ppp202" (TID:0x40fb7190, sys_thread_t:0x8d0dec0, state:R) prio=5
>   at java.net.SocketInputStream.socketRead(Native Method)
>   at java.net.SocketInputStream.read(SocketInputStream.java:86)
>   at java.net.SocketInputStream.read(SocketInputStream.java:67)
>   at java.io.InputStreamReader.fill(InputStreamReader.java:159)
>   at java.io.InputStreamReader.read(InputStreamReader.java:235)
>   at java.io.BufferedReader.fill(BufferedReader.java:133)
>   at java.io.BufferedReader.readLine(BufferedReader.java:270)
>   at java.io.BufferedReader.readLine(BufferedReader.java:325)
>   at IRCClient.run(IRCClient.java:799)
>   "bumba174" (TID:0x40f88f90, sys_thread_t:0x8d0b358, state:CW) prio=5
>   at java.lang.Thread.sleep(Native Method)
>   at IRCClient.run(IRCClient.java:765)
>   "sunny1176" (TID:0x40f75b28, sys_thread_t:0x8d0b930, state:CW) prio=5
>   at java.lang.Thread.sleep(Native Method)
> 
> 
> ..
> ..
> 
> -
> 
> We are using redhat 6.2 Linux, kernel 2.2.16, Tomcat-jakarta-3.2.1,
> apache 1.3.14.
> Hope to get some reply.

>From what I can see here, your problem is not TOMCAT (there's no such thing
as "Jakarta"), but your IRC client.


Pier




Re: Does Tomcat usually run so SLOW?

2001-08-10 Thread Pier P. Fumagalli

[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

> Hi!
> 
> I've got Tomcat 3.2.3 on HP-UX 10.20, and answer responses are -in my
> opinion- very slow (5-6 secs.).
> 
> Is it normal?

Nope... I got way less than that on a 735 w/ PUX 10.20 and JDK 118

Pier




Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released

2001-08-10 Thread Pier P. Fumagalli

chris brown at [EMAIL PROTECTED] wrote:
> 
> Re: 2./ mod_webapp
> I found a few answers in RELEASE-NOTES-4.0-B7.txt as supplied with the
> distribution.  I still can't find any non-Linux distributions however, (I
> require a Win32 binary).  I can't find any detailed documention about it
> (what is a warp connection?  I've seen warp.jar in Tomcat, but I don't know
> really what it does or how to use it)...

Hey... Everyone needs to sleep sometime... I can't prepare binaries if
I'm lying down on my bed with my eyes shut. :)

And anyway, there's not going to be a Win32 binary "today"... As I still
don't have a Win32 C compiler...

> How else can I connect Tomcat 4.0 with an Apache server (1.3.20) ?

Dunno Kill windows, install a decent operating system (such as Solaris
x86, BeOS, Darwin, FreeBSD etc etc etc) to have it working today :)

Pier




Re: RH Linux 7.1 Java Error

2001-08-10 Thread Andrew Robson

Hi,
  Your problem is that 'cut' is in the wrong place. 
Copy it from wherever it is (/bin I think) into /usr/bin/
This will get rid of error message but you're not out of the 
woods yet. See the thread from yesterday about a missing
file - libstd++-libc6.1-1.so.2 I suspect you will get the 
same problem. I searched redhat to find the package this 
file belonged to and installed via rpm. Had to force it 
as believe it is a 'downgrade' of an existing package.
If you get this far you should rid yourself of any error
messages but you may well find that javac and java
just hang when you try to use them. At this point I 
gave up and switched to RH 7.0. I'm sure a couple of days
later I came across something on the web about a fix to 7.1 
to prevent the jvm hanging problem. But I can't remember where
or the details. Search the Redhat support forums would be a good place
to start. It may be something specific to  particular version of 
jdk which you will avoid because you have the latest (?). 

good luck
andrew

On Fri, 10 Aug 2001, you wrote:
> Hi all,
> I know this is perhaps not the most appropriate place
> to present this question as it is a purely java
> installation problem. But I hope you'll bare with
> me.Am getting an 'libjvm.so' error.
> 
> I am trying to install jdk1.3.0_02 on RH linux 7.1
> from the .rpm installation. 
> I've used the rpm -ivh  and even the
> GnomeRPM after login as root. The installation
> completes successfully, and I even query for errors
> using the GnomeRPM but shows me nothing.
> However when I run the java or the javac programs I
> get the following error.
> 
> --start
> #java somefile
> /usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut: No such
> file or directory
> /usr/java/jdk1.3.0_02/bin/i386/native_threads/java:
> error while loading shared libraries: libjvm.so:
> cannot load shared object file: No such file or
> directory
> --end
> Indeed the /usr/bin/cut file doesn't exist.
> I can't try download the jdk1.3.1 (now downloadable as
> one single file) as I am on slow and unrealiable
> dial-up link.
> 
> Finally, I have the same jdk (jdk1.3.02) installed
> from the same .rpm file running flawlessly on a RedHat
> 6.2 system.
> 
> Thank you.
> Allan
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
-- 






is mod_jk.so already corrected?

2001-08-10 Thread Rui Miguel Seabra

Hello,

  There's a bug on mod_jk.so, that causes an internal server error, when
it tries to redirecty a connection to a tomcat worker that is not there.
  Situation:
1. Apache is running and has: JkMount /servlet/* projWorker
2. make a few successfull connections
3. shutdown tomcat, and start it up again
4. make a connection: an internal server error happens
5. after you repeat it a couple of times, mod_jk finally forgets the
old tcp connection and begins a new one, and everything will be alright
from then on.

  This behaviour is not good, and after diggin in the mailing list
archives, I found that it was a known bug, and that someone was working
on a fix. It either doesn't work, or hasn't been applied, does someone
know of anything?

  Apache runs with its own configuration (and does not read the
automatically generated confs but a static mod_jk.conf) and user, and
tomcat is run by each project owner, and they should never touch the
webserver, so this is being a PITA, since I have to give users
authorization to restart apache, which is _bad_, m'kay? ;)

  Ideas?

 Hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

 PGP signature


Can you restart a single application within Tomcat (3.2) ?

2001-08-10 Thread Clifford Lang

Every so often I loose connection with my DataSource, so I'd like to 
restart the application in order to re-initialize everything -- Can this be 
done?  Any examples?

TIA, Cliff


Easy + Automatic = EMATIC
E-commerce enable your web site AND sell your product on ours.  Accept
credit cards with no merchant account.  Free email and hosting.  Do it
all yourself at www.ematic.com.



user and password for Tomcat admin

2001-08-10 Thread Cristian Bortolato

I've insert a new user and password in tomcat-user.xml to enter in tomcat
administration, but it doesn't go...
What ca I do?
tomcat tomcat (original) doesn't go



--
PROSA Tecnologie Informatiche
Via Polanzani, 74
30033 Noale (VE) - Italy
Tel. +39-041-5828434 - Fax +39-041-5801903
http://www.prosa.com






Re: Does Tomcat usually run so SLOW?

2001-08-10 Thread Endre Stølsvik

On Fri, 10 Aug 2001, [EMAIL PROTECTED] wrote:

| Hi!
|
| I've got Tomcat 3.2.3 on HP-UX 10.20, and answer responses are -in my
| opinion- very slow (5-6 secs.).
|
| Is it normal?

If you create a HttpSession, this is a really slow task _the first time_
you do it (for the first user). This because of a SecureRandom class which
is used to make the JSESSION id.

You can configure this in the tomcat config file, so that under devel
settings you can use the normal Random class.


-- 
Mvh,
Endre




RE: problem bringing up pages

2001-08-10 Thread Randy Layman


The default TOMCAT_HOME/conf/uriworkermap.properties file only
allows the /examples/ context to be loaded through IIS.  You will need to
modify this file and restart IIS (using the Services Control Panel) to add
any other contexts.

Randy


> -Original Message-
> From: Nicholson, Robert . [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 5:39 PM
> To: '[EMAIL PROTECTED]'
> Subject: problem bringing up pages
> 
> 
> Hi,
> I have been through every document I could find on your site, 
> but I haven't
> found what I need yet. Here is what the problem is.
> 
> I have set up Tomcat 3.2.3 on my W2K SP2 machine.  I have 
> installed IIS 5.0,
> and used your document located at
> http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-how
> to.html to
> configure Tomcat to work with IIS.  The trouble is, the only 
> page I can get
> to load is the one at 
> http://localhost/examples/jsp/index.html . I have even
> tried to get some of the pages like 
> http://localhost/test/index.html to come
> up, but nothing. Only the examples are showing up.
> 
> Could you please point me in the right direction as to how this can be
> remedied
> 
>   -- Robert Nicholson
>   -- IT Programmer/Analyst
>   -- Utah State Office of Education
>   -- 250 East 500 South
>   -- Salt Lake City, Utah  84111
>   -- http://www.usoe.k12.ut.us
> 
> 



Re: JDBC

2001-08-10 Thread Rick Edwards

MS Excel: application/vnd.ms-excel
MIME-Version: 1.0
Message-Id: <0108100800480H.02041@ricke_linux>
Content-Transfer-Encoding: quoted-printable

No, but you're free to do it yourself.

=46rom the mysql.com site ( http://www.mysql.com/doc/J/a/Java.html )
   http://www.mysql.com/downloads/api-jdbc.html
   or
   http://mmmysql.sourceforge.net/ .

Disclaimer: The only JDBC driver I've used is for Informix.

Best of luck.

Rick

On Thursday 09 August 2001 04:47 pm, you wrote:
> Does Tomcat have all the necessary JDBC drivers installed to successful=
ly
> connect to a mysql database?  I will be installing Tomcat on Linux Mand=
rake
> 8with Apache shortly.  And I will be developing JSP programs that use
> MySql.
>
>
> Thanks,
> Michael
> Johnson
>
> -
> This message was sent using Endymion MailMan.
> http://www.endymion.com/products/mailman/



Re: How to execute a dynamic JSP from a Servlet WITHOUT sending it to disk first ?

2001-08-10 Thread L.Fernando

Thanks a lot for your help Andrey.
I'll be taking a look at the projects you talk about.

Best regards,

Fernando.

- Original Message -
From: "Andrey Aristarkhov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 09, 2001 7:24 PM
Subject: RE: How to execute a dynamic JSP from a Servlet WITHOUT sending it
to disk first ?


> Hi,
>
> it's not good practice since it well be heavy processor load.
> Actually JSP being transformed to servlet, and JspServlet forward incoming
> request to it. JSP is not an interpriter. JSP page need to be compiled
into
> servlet each time its (JSP) source changes on disk if it's the first
request
> to a page. For your situation XML/XSL transformation is better solution.
> Lookup at Xalan or Coccon project at xml.apache.org.
>
> Regards,
> Andrey
>
> > -Original Message-
> > From: L.Fernando [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 10, 2001 1:39 AM
> > To: [EMAIL PROTECTED]
> > Subject: How to execute a dynamic JSP from a Servlet WITHOUT
> > sending it to disk first ?
> >
> >
> > Hi All,
> > I have the following problem:
> >
> > Based on some database data, one Servlet dynamicly generates an JSP page
> > text inside an string buffer.
> >
> > The question is:
> >
> > How to execute that "page" without having to write it to disk before
> > dispatching it ? I mean, how to send that string buffer (with my "page"
> > inside it) directly to the jsp interpreter servlet ?
> >
> > Any help will be welcome !
> >
> > Thanks in advance,
> >
> > Fernando.
> >
> >
> >
> >
>
>




RE: java error window

2001-08-10 Thread Michael Cohen (ETL)


Hi ddr,

I have just come across the same problem with Tomcat 3.2.1,
MS Access running on a dell laptop.

Did you find out the cause/solution..

Many many thanks if you can help,

Mike Cohen
[EMAIL PROTECTED]

 >-Original Message-
 >From: Dwaipayan [mailto:[EMAIL PROTECTED]]
 >Sent: 21 July 2001 19:49
 >To: [EMAIL PROTECTED]
 >Subject: java error window
 >
 >
 >To cause a servlet to load on starting tomcat, i found the 
 > tag has been used in tomcat's default 
 >web.xml in the conf directory.what does  the no. 
 >supplied(-2147483646) stand for?.i used the same no. for my 
 >own servlet and it worked fine.
 >Try this: Can i create a servlet which loads on tomcat 
 >startup,and access database in the init method?if yes--my 
 >server window showed that the servlet retrieved data from 
 >database as expected,but then an illegal operation window 
 >appeared  and my server stopped repeatedly.
 >if this is due memory shortage is it due my 
 >Database,jvm,tomcat being on the same machine(Win98,oracle 
 >personal ed.,tomcat3.2.1,jdk1.2.2). on suggested by 
 >Andrew([EMAIL PROTECTED]) i played with the memory 
 >settings in dos properties frame,but to no 
 >avail.(Incidentally can i use multiple jvms.)
 >this same window appears when i use a jsp page accessing 
 >database.but it disappears if i use only servlets accessing database.
 >the msgbox showed the following:
 >
 >JAVA caused an invalid page fault in
 >module  at :1f6c4269.
 >Registers:
 >EAX=05d706b4 CS=0177 EIP=1f6c4269 EFLGS=00010297
 >EBX=05d709d4 SS=017f ESP=050dfd2c EBP=050dfd4c
 >ECX= DS=017f ESI=05d70080 FS=35d7
 >EDX=05d70080 ES=017f EDI= GS=
 >Bytes at CS:EIP:
 >
 >Stack dump:
 >1f7025d1 06821528  0186 007b1ec0 00679470 
 >  050dfda4 1f702505 05d70080  
 >0010 01866a40 007b1ec0 50472958 
 >
 >this has been a problem too old! please show me a way.(Then i 
 >shall kneel to the divine in u!)
 >thanx
 >
 >
 >
 >[EMAIL PROTECTED]
 >
 >
 >ddr
 >
 >
 >http://www.monsterindia.com - The Best Jobs. For the Best Minds.
 >
 >
 >



[TC4] mod_webapp

2001-08-10 Thread chris brown

> Hey... Everyone needs to sleep sometime... I can't prepare binaries if
> I'm lying down on my bed with my eyes shut. :)

Your time *is* very much appreciated... I can wait, it's still quicker than
writing it myself !


> And anyway, there's not going to be a Win32 binary "today"... As I still
> don't have a Win32 C compiler...

Just wondered if was an oversight... what with sleep deprivation, and so on!
;-)  I'd happily compile it for you if I had a C compiler and knew how to
use it... ;-))


> > How else can I connect Tomcat 4 with an Apache server (1.3.20)?
>
> Dunno Kill windows, install a decent operating system (such as Solaris
> x86, BeOS, Darwin, FreeBSD etc etc etc) to have it working today :)

We already have Linux *and* Windows.  I prefer Linux (and Unix) by a long
way, and use it where possible, but we still "need" Windows for a few other
applications (i.e.: no equivalents for certain applications).  For various
reasons, we also need to deploy with NT/2000 sometimes, so it's nice to know
what's portable and what's not.

I was wondering if I could still use mod_jk...  or if mod_webapp will be the
only way for Tomcat 4.  I've also heard about using a JNI interface with
Apache 2, but I don't know how viable this option is (yet).


> Pier

Just wanted to let you know that your work is appreciated, and that I'm not
a whining Windows user...!





RE: java error window

2001-08-10 Thread Randy Layman


I didn't see the original message come across the list, but I
believe that the problem lies in using the JDBC-ODBC bridge.  As I've said
many times in this forum DON'T USE IT.  Its not thread safe and Sun
classifies it as experimental.  There is a bug in Sun's BugParade where they
describe the problem and the resolution states that since its experimental
they will not fix the threading issue.

For the original poster, use Oracle's Java database drivers.  They
work well from the little experience that I've had.   For the MS Access
poster, I would suggest a real database.  Short of that, you'll have to get
better JDBC-ODBC drivers.  Look on Sun's site for a listing.

Randy

> -Original Message-
> From: Michael Cohen (ETL) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 7:56 AM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: java error window
> 
> 
> 
> Hi ddr,
> 
> I have just come across the same problem with Tomcat 3.2.1,
> MS Access running on a dell laptop.
> 
> Did you find out the cause/solution..
> 
> Many many thanks if you can help,
> 
> Mike Cohen
> [EMAIL PROTECTED]
> 
>  >-Original Message-
>  >From: Dwaipayan [mailto:[EMAIL PROTECTED]]
>  >Sent: 21 July 2001 19:49
>  >To: [EMAIL PROTECTED]
>  >Subject: java error window
>  >
>  >
>  >To cause a servlet to load on starting tomcat, i found the 
>  > tag has been used in tomcat's default 
>  >web.xml in the conf directory.what does  the no. 
>  >supplied(-2147483646) stand for?.i used the same no. for my 
>  >own servlet and it worked fine.
>  >Try this: Can i create a servlet which loads on tomcat 
>  >startup,and access database in the init method?if yes--my 
>  >server window showed that the servlet retrieved data from 
>  >database as expected,but then an illegal operation window 
>  >appeared  and my server stopped repeatedly.
>  >if this is due memory shortage is it due my 
>  >Database,jvm,tomcat being on the same machine(Win98,oracle 
>  >personal ed.,tomcat3.2.1,jdk1.2.2). on suggested by 
>  >Andrew([EMAIL PROTECTED]) i played with the memory 
>  >settings in dos properties frame,but to no 
>  >avail.(Incidentally can i use multiple jvms.)
>  >this same window appears when i use a jsp page accessing 
>  >database.but it disappears if i use only servlets accessing 
> database.
>  >the msgbox showed the following:
>  >
>  >JAVA caused an invalid page fault in
>  >module  at :1f6c4269.
>  >Registers:
>  >EAX=05d706b4 CS=0177 EIP=1f6c4269 EFLGS=00010297
>  >EBX=05d709d4 SS=017f ESP=050dfd2c EBP=050dfd4c
>  >ECX= DS=017f ESI=05d70080 FS=35d7
>  >EDX=05d70080 ES=017f EDI= GS=
>  >Bytes at CS:EIP:
>  >
>  >Stack dump:
>  >1f7025d1 06821528  0186 007b1ec0 00679470 
>  >  050dfda4 1f702505 05d70080  
>  >0010 01866a40 007b1ec0 50472958 
>  >
>  >this has been a problem too old! please show me a way.(Then i 
>  >shall kneel to the divine in u!)
>  >thanx
>  >
>  >
>  >
>  >[EMAIL PROTECTED]
>  >
>  >
>  >ddr
>  >
>  >
>  >http://www.monsterindia.com - The Best Jobs. For the Best Minds.
>  >
>  >
>  >
> 



Re: RH Linux 7.1 Java Error

2001-08-10 Thread Ryan Lubke

Hi,

In regards to the hanging issue, if you stick with
1.3.0_x on RH 7.1 you will need to export LD_ASSUME_KERNEL=2.2.5
or if you upgrade to J2SE 1.3.1 you won't have to export
the above flag.

Regards,

Ryan Lubke

Andrew Robson wrote:

>Hi,
>  Your problem is that 'cut' is in the wrong place. 
>Copy it from wherever it is (/bin I think) into /usr/bin/
>This will get rid of error message but you're not out of the 
>woods yet. See the thread from yesterday about a missing
>file - libstd++-libc6.1-1.so.2 I suspect you will get the 
>same problem. I searched redhat to find the package this 
>file belonged to and installed via rpm. Had to force it 
>as believe it is a 'downgrade' of an existing package.
>If you get this far you should rid yourself of any error
>messages but you may well find that javac and java
>just hang when you try to use them. At this point I 
>gave up and switched to RH 7.0. I'm sure a couple of days
>later I came across something on the web about a fix to 7.1 
>to prevent the jvm hanging problem. But I can't remember where
>or the details. Search the Redhat support forums would be a good place
>to start. It may be something specific to  particular version of 
>jdk which you will avoid because you have the latest (?). 
>
>good luck
>andrew
>
>On Fri, 10 Aug 2001, you wrote:
>
>>Hi all,
>>I know this is perhaps not the most appropriate place
>>to present this question as it is a purely java
>>installation problem. But I hope you'll bare with
>>me.Am getting an 'libjvm.so' error.
>>
>>I am trying to install jdk1.3.0_02 on RH linux 7.1
>>from the .rpm installation. 
>>I've used the rpm -ivh  and even the
>>GnomeRPM after login as root. The installation
>>completes successfully, and I even query for errors
>>using the GnomeRPM but shows me nothing.
>>However when I run the java or the javac programs I
>>get the following error.
>>
>>--start
>>#java somefile
>>/usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut: No such
>>file or directory
>>/usr/java/jdk1.3.0_02/bin/i386/native_threads/java:
>>error while loading shared libraries: libjvm.so:
>>cannot load shared object file: No such file or
>>directory
>>--end
>>Indeed the /usr/bin/cut file doesn't exist.
>>I can't try download the jdk1.3.1 (now downloadable as
>>one single file) as I am on slow and unrealiable
>>dial-up link.
>>
>>Finally, I have the same jdk (jdk1.3.02) installed
>>from the same .rpm file running flawlessly on a RedHat
>>6.2 system.
>>
>>Thank you.
>>Allan
>>
>>__
>>Do You Yahoo!?
>>Make international calls for as low as $.04/minute with Yahoo! Messenger
>>http://phonecard.yahoo.com/
>>





Re: [TC4] mod_webapp

2001-08-10 Thread Pier P. Fumagalli

chris brown at [EMAIL PROTECTED] wrote:
> 
>> Hey... Everyone needs to sleep sometime... I can't prepare binaries if
>> I'm lying down on my bed with my eyes shut. :)
> 
> Your time *is* very much appreciated... I can wait, it's still quicker than
> writing it myself !

Cool..

>> And anyway, there's not going to be a Win32 binary "today"... As I still
>> don't have a Win32 C compiler...
> 
> Just wondered if was an oversight... what with sleep deprivation, and so on!
> ;-)  I'd happily compile it for you if I had a C compiler and knew how to
> use it... ;-))

The problem is building the makefiles :)

>>> How else can I connect Tomcat 4 with an Apache server (1.3.20)?
>> 
>> Dunno Kill windows, install a decent operating system (such as Solaris
>> x86, BeOS, Darwin, FreeBSD etc etc etc) to have it working today :)
> 
> We already have Linux *and* Windows.

Both not my #1 choice, but at least Linux has fork() :)

> I was wondering if I could still use mod_jk...  or if mod_webapp will be the
> only way for Tomcat 4.  I've also heard about using a JNI interface with
> Apache 2, but I don't know how viable this option is (yet).

AFAIK, there is some AJPv14 that is supposed to work with TC4. I never tried
it though... I don't even know if it's working.

The WebApp module is compliant with WatchDog, so meaning that right now I
can ask for compliancy to the servlet spec... And it's coming better every
day...

> Just wanted to let you know that your work is appreciated, and that I'm not
> a whining Windows user...!

:)

Pier




AW: Jakarta crashes after 900+ simultaneous connection

2001-08-10 Thread Ralph Einfeldt

That's a problem of your java vm or the underlying
native libraries. 

You have following options 
- Upgrade to a newer version of the VM.
- Use a VM from a different vendor.
- Upgrade to a newer version of the JDK.

P.S.: You didn't mention which JDK you are using.
(Vendor, Version (from the stacktace: 1.2.2), Revision)

> -Ursprüngliche Nachricht-
> Von: Santosh Pasi [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 10. August 2001 07:25
> An: [EMAIL PROTECTED]
> Betreff: Jakarta crashes after 900+ simultaneous connection
> 
> 
> Hi everyone,
> 
> We are doing some stress testing. My problem is that when number of 
> connections reaches around 940..980, jakarta crashes with 
> following 
> messages-
> SIGSEGV   11*  segmentation violation
> si_signo [11]: SIGSEGV   11*  segmentation violation
> si_errno [0]: Success
> si_code [0]: SI_USER [pid: 0, uid: 0]
> stackpointer=0x4c558554
> 
> Full thread dump Classic VM (1.2.2-L, green threads):
> "ppp202" (TID:0x40fb7190, sys_thread_t:0x8d0dec0, state:R) prio=5
> at java.net.SocketInputStream.socketRead(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:86)
> at java.net.SocketInputStream.read(SocketInputStream.java:67)
> at java.io.InputStreamReader.fill(InputStreamReader.java:159)
> at java.io.InputStreamReader.read(InputStreamReader.java:235)
> at java.io.BufferedReader.fill(BufferedReader.java:133)
> at java.io.BufferedReader.readLine(BufferedReader.java:270)
> at java.io.BufferedReader.readLine(BufferedReader.java:325)
> at IRCClient.run(IRCClient.java:799)
> "bumba174" (TID:0x40f88f90, sys_thread_t:0x8d0b358, 
> state:CW) prio=5
> at java.lang.Thread.sleep(Native Method)
> at IRCClient.run(IRCClient.java:765)
> "sunny1176" (TID:0x40f75b28, sys_thread_t:0x8d0b930, 
> state:CW) prio=5
> at java.lang.Thread.sleep(Native Method)
> 
> 
> ..
> ..
> 
> -
> 
> We are using redhat 6.2 Linux, kernel 2.2.16, Tomcat-jakarta-3.2.1, 
> apache 1.3.14.
> Hope to get some reply.
> 
> Regards,
> Santosh Pasi
> 
> 



RE: Tomcat Server Setup question

2001-08-10 Thread Larry Isaacs

Hi Michael,

I believe the "Java_Home" the service is looking for is
specified by "workers.java_home" in the workers.properties.
Did you modify this one? You only mentioned fixing
"Tomcat installation home". If not, you will need to
uncomment it and set it your JDK directory. Also be sure
to uncomment the appropriate "ps" (path separator) property.
Hope this helps.

Cheers,
Larry

> -Original Message-
> From: Michael Reeves [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 6:08 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat Server Setup question
> 
> 
> Hi,
> 
> I'm beyond newbie, meaning, painfully unaware of how to do 
> this.  I've been
> reading for days the User Guide and all the supporting 
> documents at the
> Jakarta website for days and still can't figure out where/why 
> I'm not doing
> this correctly.
> 
> I'm attempting to install the Tomcat to run with Apache.  
> However, because
> I'm painfully ignorant, I cannot seem to get Tomcat running 
> correctly.  I've
> successfully installed the Service (can see it in my 
> Component Services
> applet), but when I attempt to start the service, it returns 
> "you must set
> Java_Home to point at your java development kit installation."
> 
> Where do I find that configuration file?
> 
> I've modified my wrapper.properties and worker.properties 
> configuration
> files to point at my Tomcat installation home.  I've also set 
> up correctly
> (I think), the jk_nt_service.exe module.
> 
> I'm running Windows 2000 with Tomcat 3.3 and Apache 1.3.
> 
> Any help would be greatly appreciated, especially in this heat.
> 
> Sincerely,
> 
> Michael L. Reeves (c)?(c)
> 
> 
> 



RE: Tomcat Server Setup question

2001-08-10 Thread Mills, Theo

Michael,

Hmmm, in order to get Tomcat runnning on win2k, I didn't have to touch the
"workers.java_home" at all. As someone mentioned before, all I had to do was
add a system wide environmental variable called JAVA_HOME.

-Right click on my computer
-Go down to Properties
-Click the Advanced Tab
-Under the "System Variables" section, click New.
-Name: JAVA_HOME
-Value: [PATH TO JDK] C:\jdk1.2.2



-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 7:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat Server Setup question


Hi Michael,

I believe the "Java_Home" the service is looking for is
specified by "workers.java_home" in the workers.properties.
Did you modify this one? You only mentioned fixing
"Tomcat installation home". If not, you will need to
uncomment it and set it your JDK directory. Also be sure
to uncomment the appropriate "ps" (path separator) property.
Hope this helps.

Cheers,
Larry

> -Original Message-
> From: Michael Reeves [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 6:08 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat Server Setup question
> 
> 
> Hi,
> 
> I'm beyond newbie, meaning, painfully unaware of how to do 
> this.  I've been
> reading for days the User Guide and all the supporting 
> documents at the
> Jakarta website for days and still can't figure out where/why 
> I'm not doing
> this correctly.
> 
> I'm attempting to install the Tomcat to run with Apache.  
> However, because
> I'm painfully ignorant, I cannot seem to get Tomcat running 
> correctly.  I've
> successfully installed the Service (can see it in my 
> Component Services
> applet), but when I attempt to start the service, it returns 
> "you must set
> Java_Home to point at your java development kit installation."
> 
> Where do I find that configuration file?
> 
> I've modified my wrapper.properties and worker.properties 
> configuration
> files to point at my Tomcat installation home.  I've also set 
> up correctly
> (I think), the jk_nt_service.exe module.
> 
> I'm running Windows 2000 with Tomcat 3.3 and Apache 1.3.
> 
> Any help would be greatly appreciated, especially in this heat.
> 
> Sincerely,
> 
> Michael L. Reeves (c)?(c)
> 
> 
> 



Multiple tomcat instances launch by two different users and one apache server

2001-08-10 Thread julien coulmeau

Hello everybody,

I am using tomcat 3.2 with apache 1.3.20 on solaris 2.6

i am trying to have two instances of tomcat each serving one particular context and 
run by one unix user

I have only one tomcat directory structure

unix user1 should run tomcat to serve web application webapps/app1
unix user2 should run tomcat to serve web application webapps/app2

user1 use the conf/server_user1.xml file where i defined a connector ajp12_user1 on 
port 8007
user2 use the conf/server_user2.xml file where i defined a connector ajp12_user2 on 
port 8009

I have configure apache to pass /app1/*.jsp (& /app1/servlet/*) url through 
ajp12_user1 connector and to pass
/app2/*.jsp (& /app2/servlet/*) url through ajp12_user2 connector

I have also configure the workers.properties to fully define ajp12_user1 and 
ajp12_user2.

Now my problem is that i don't want the "user1" tomcat interfere with the "user2" 
tomcat. And with my configuration,
the app1 context is added by the "user2" tomcat startup and the same the other way

Can anybody have any tips to provide in order to prevent one tomcat process to add 
context I wish to be added only
by an another tomcat process?

I thought about creating two directories for each user with sub-directories webapps, 
conf, log in order to remain with
only one lib, classes and bin sub-directories under tomcat_home. Is it a good idea?
My concern is about the workers.properties file : should I to duplicate this file in 
the two conf directories as is (with the
two workers ajp12_user1 and ajp12_user2 defined in each) or to have only the worker 
related to the user defined in
each workers.properties file.

Thanks in advance for some help
__
Boîte aux lettres - Caramail - http://www.caramail.com




RE: Tomcat and Apache

2001-08-10 Thread Mills, Theo

Bob,

I think if you don't have to go explicitly through port 8080, then they're
working together.

-Original Message-
From: Bob Wilson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 6:03 PM
To: [EMAIL PROTECTED]
Subject: Tomcat and Apache


How can you tell if you have both Apache(1.3.20) and Tomcat(3.2.3) talking 
to one another correctly??  I installed everything as per the documentation 
on Apache and Tomcat using mod_jk.so and NOT mod_jserv.  I am also using the

mod_jk.conf-auto suggestion and made the appropriate changes to do so.

After making all the configuration changes I rebooted, stopped Tomcat,
stopped Apache and restarted all in the following order...started Tomcat
FIRST and then started Apache.  And I can see both default home pages.

But how do I know if both are communicating via mod_jk?? Is there any way I 
can tell??

Regards,
Bob Wilson.


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



RE: problem bringing up pages

2001-08-10 Thread Larry Isaacs

Hi Robert,

Sorry the tomcat-iis_howto.html was never updated to reflect
improvements in the auto-configuration feature of Tomcat 3.2.x
over what was in 3.2.

The mapping of which requests should go to Tomcat is controlled
by the "uriworkermap" file.  Tomcat 3.2.3 comes with a "sample"
uriworkermap.properties file which only maps the "/examples"
context.

When starting Tomcat 3.2.3, two auto-configuration files
are written for IIS, iis_redirect.reg-auto and
uriworkermap.properties-auto. The intent is that you would
rename the iis_redirect.reg-auto to iss_redirect.reg and
execute it to create or update the registry settings needed
by the isapi_redirect.dll.  However, the default "uriworkermap"
file specified in this registry file is the "sample"
uriworkermap.properties.  My guess is that this is why
you only get "/examples" to work.

Modify the iis_redirect.reg file to use uriworkermap.properties-auto
and update your registry.  After restarting IIS you should
be able to see the other contexts.

Cheers,
Larry

> -Original Message-
> From: Nicholson, Robert . [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 5:39 PM
> To: '[EMAIL PROTECTED]'
> Subject: problem bringing up pages
> 
> 
> Hi,
> I have been through every document I could find on your site, 
> but I haven't
> found what I need yet. Here is what the problem is.
> 
> I have set up Tomcat 3.2.3 on my W2K SP2 machine.  I have 
> installed IIS 5.0,
> and used your document located at
> http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-how
to.html to
configure Tomcat to work with IIS.  The trouble is, the only page I can get
to load is the one at http://localhost/examples/jsp/index.html . I have even
tried to get some of the pages like http://localhost/test/index.html to come
up, but nothing. Only the examples are showing up.

Could you please point me in the right direction as to how this can be
remedied

-- Robert Nicholson
-- IT Programmer/Analyst
-- Utah State Office of Education
-- 250 East 500 South
-- Salt Lake City, Utah  84111
-- http://www.usoe.k12.ut.us




Trouble with logging

2001-08-10 Thread JBrawner

In my servlet I use the log() method which logged to servlet.log.  I have
recently moved my context out of the webapps directory and into my own
directory not in tomcat's directory structure.  Now, everything works ok
except nothing gets logged to servlet.log.   Anybody know how to fix this?

Thanks,
JEB




RE: Tomcat Server Setup question

2001-08-10 Thread Larry Isaacs

Yes, thats true.  Though some of us don't have the luxury of
being able to using only one JDK.  We have to test using
multiple JDK's and can't make one global. :(

Larry

> -Original Message-
> From: Mills, Theo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 9:03 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Tomcat Server Setup question
> 
> 
> Michael,
> 
> Hmmm, in order to get Tomcat runnning on win2k, I didn't have 
> to touch the
> "workers.java_home" at all. As someone mentioned before, all 
> I had to do was
> add a system wide environmental variable called JAVA_HOME.
> 
> -Right click on my computer
> -Go down to Properties
> -Click the Advanced Tab
> -Under the "System Variables" section, click New.
> -Name: JAVA_HOME
> -Value: [PATH TO JDK] C:\jdk1.2.2
> 
> 
> 
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 7:56 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Tomcat Server Setup question
> 
> 
> Hi Michael,
> 
> I believe the "Java_Home" the service is looking for is
> specified by "workers.java_home" in the workers.properties.
> Did you modify this one? You only mentioned fixing
> "Tomcat installation home". If not, you will need to
> uncomment it and set it your JDK directory. Also be sure
> to uncomment the appropriate "ps" (path separator) property.
> Hope this helps.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Michael Reeves [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 09, 2001 6:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat Server Setup question
> > 
> > 
> > Hi,
> > 
> > I'm beyond newbie, meaning, painfully unaware of how to do 
> > this.  I've been
> > reading for days the User Guide and all the supporting 
> > documents at the
> > Jakarta website for days and still can't figure out where/why 
> > I'm not doing
> > this correctly.
> > 
> > I'm attempting to install the Tomcat to run with Apache.  
> > However, because
> > I'm painfully ignorant, I cannot seem to get Tomcat running 
> > correctly.  I've
> > successfully installed the Service (can see it in my 
> > Component Services
> > applet), but when I attempt to start the service, it returns 
> > "you must set
> > Java_Home to point at your java development kit installation."
> > 
> > Where do I find that configuration file?
> > 
> > I've modified my wrapper.properties and worker.properties 
> > configuration
> > files to point at my Tomcat installation home.  I've also set 
> > up correctly
> > (I think), the jk_nt_service.exe module.
> > 
> > I'm running Windows 2000 with Tomcat 3.3 and Apache 1.3.
> > 
> > Any help would be greatly appreciated, especially in this heat.
> > 
> > Sincerely,
> > 
> > Michael L. Reeves (c)?(c)
> > 
> > 
> > 
> 



Re: Jakarta crashes after 900+ simultaneous connection

2001-08-10 Thread Denis Haskin

I would definitely upgrade your JVM to the most current version (I'm at 
1.3.1-b24, but that's on Solaris and Win2k).

I had segment violation crashes related to networking in earlier Java 2 
versions, although I don't know that they were exactly this problem.  I 
don't know much about Linux but I would make sure there aren't any 
patches you need there.  We also had to make some Solaris patches.

Just my 2 bits...

dwh


Santosh Pasi wrote:

>
>Java is 1.2.2
>





Re: How to execute a dynamic JSP from a Servlet WITHOUT sending it to disk first ?

2001-08-10 Thread L.Fernando

That´s a good aproach
Thanks for your help, Jim.

Fernando.

- Original Message -
From: "Jim Seach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 09, 2001 8:23 PM
Subject: Re: How to execute a dynamic JSP from a Servlet WITHOUT sending it
to disk first ?


> Fernando,
>
> Why do you need to create the JSP page itself dynamically?  Couldn't
> you just create one or several JSP pages, then in your servlet, get the
> data, put it into request attributes, and call the proper JSP page to
> display the data?  The JSP page would then take the data from the
> request attributes and display what is needed.
>
> Hope this helps,
>
> Jim
>
> --- "L.Fernando" <[EMAIL PROTECTED]> wrote:
> > Hi All,
> > I have the following problem:
> >
> > Based on some database data, one Servlet dynamicly generates an JSP
> > page
> > text inside an string buffer.
> >
> > The question is:
> >
> > How to execute that "page" without having to write it to disk before
> > dispatching it ? I mean, how to send that string buffer (with my
> > "page"
> > inside it) directly to the jsp interpreter servlet ?
> >
> > Any help will be welcome !
> >
> > Thanks in advance,
> >
> > Fernando.
> >
> >
> >
>
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>




RE: xalan and problem with locating custom libraries

2001-08-10 Thread Larry Isaacs

Because of the way Tomcat 3.2.x sets up its classloader
hierarchy, you are stuck.  I'm not aware of any tricks
to allow your library to remain in /WEB-INF/lib and
xerces and xalan to remain in the "application" classloader.
However, this issue is addressed in Tomcat 3.3 and
Tomcat 4.0.

In Tomcat 3.3, a more complex classloader hierarchy is
built which separates the server classes (which includes
the server's XML parser) from the web application's classes.
Now web applications can have their own XML parser.

In Tomcat 4.0, per the servlet 2.3 spec, classloaders
try to load the class first before delagating to their
parent.  Thus, an XML parser in /WEB-INF/lib would
"override" an XMP parser in a parent classloader.
There is probably more to this story for Tomcat 4.0, but
I will let someone with more experience than me
elaborate.

Cheers,
Larry

> -Original Message-
> From: Dmitry Beransky [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 09, 2001 7:43 PM
> To: [EMAIL PROTECTED]
> Subject: xalan and problem with locating custom libraries
> 
> 
> Hi,
> 
> I need to use XSLT from inside jsp.  I decided to go with 
> Xalan/Xerces and 
> in order to make them work under Tomcat (3.2.2), I replaced 
> jaxp.jar and 
> parser.jar with xalan.jar and xerces.jar in tomcat's lib 
> directory.  Everything works fine, until  in my stylesheets I 
> try to make 
> use of custom Java extension functions.  These extension 
> functions are 
> specific to the application (context) in which they are 
> running and are 
> defined in a jar file located in /WEB-INF/lib of the same 
> context as the 
> jsp files that initiate XSLT processing.
> 
> The problem is that the xsl engine doesn't see my libraries.  
> And it makes 
> sense, since the engine sits in xalan.jar which is loaded at 
> startup and my 
> application libraries are loaded later by a different class 
> loader.  An 
> obvious work-around would be to have these libraries loaded 
> at startup 
> too.  But I REALLY, really hate doing this, because they simply don't 
> belong there.  This doesn't strike me as neither a secure nor 
> a scaleable 
> solution.  But it's the only solution I can think of.
> 
> Is there something else I can do?
> 
> Regards
> Dmitry
> 



RE: java.net.SocketException: Connection reset by peer

2001-08-10 Thread Larry Isaacs

This can be normal.  I have seen IIS, after determining that
a resource it has cached hasn't been updated, simply close the
connection rather that continue reading the response.  This
would result an error like what you are seeing.

Larry

> -Original Message-
> From: Raju Jacob [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 4:46 AM
> To: [EMAIL PROTECTED]
> Subject: java.net.SocketException: Connection reset by peer
> 
> 
> Hi,
>   Pelease help..
> 
>   I'm getting the following error so far using Tomcat 3.2.2 on
> Solaris 8, but I get the following error popping out on the
> tomcat console randomly after page output is successfully
> fed to a client, sometimes it appears, sometimes it doesn't.  
> The main problem is server got down after running tomcat overnight.
> Some times it will automatically removing all the contexts 
> and got down
> the server.
> do you have any idea about this problem , what would be the cause of
> this. 
> 
> The error is 
> --
> --
> 
> 2001-08-10 04:10:39 - ContextManager: SocketException reading request,
> ignored -
>  java.net.SocketException: Connection reset by peer
> at java.net.PlainSocketImpl.socketAvailable(Native Method)
> at 
> java.net.PlainSocketImpl.available(PlainSocketImpl.java:436)
> at
> java.net.SocketInputStream.available(SocketInputStream.java:141)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
> n(HttpConnectionHandler.java:217)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
> Code)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)  
> --
> --
> 
> 
> 
> Best Regards,
> Raju Jacob
> 



ELF data encoding not big-endian

2001-08-10 Thread Jonathon Wallen

Hi all,
I've got tomcat running fine independent of apache and now I want the 
two to work together... I've downloaded the binary of mod_jk.so and 
put it in the libexec directory, edited the server.xml file and got 
the mod_jk.conf-auto thing happening.. now, after starting tomcat, 
when I try to start apache it dies with this error -

Cannot load /usr/local/apache/libexec/mod_jk.so into server: 
/usr/local/apache/libexec/mod_jk.so: ELF file data encoding not 
big-endian

I'm using Suse7.0 ppc on a macintosh blue & white G3, apache 1.3.20 
and tomcat-3.2.3

can anyone help with this?

many thanks,
-- 

- 
- Jonathon Wallen
- B,DES College of Fine Arts, UNSW
- [EMAIL PROTECTED]
- 



RE: include and forward error

2001-08-10 Thread Larry Isaacs

Its not clear if you tried getting this to work directly
in Tomcat, i.e. http://localhost:8080/example/file1.jsp
If not, try this to see if the problem is strickly within
Tomcat.

Note that if your file was named "incFile.jsp" instead of
"incfile.jsp" you would get this error due to case sensitivity
of URL's.

Larry

> -Original Message-
> From: Kishor K [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 6:00 AM
> To: Tomcat User Mailing List; A mailing list about Java Server Pages
> specification and reference
> Subject: include and forward error
> 
> 
> hi,
> I need clarification two errors I am getting.
> i am using apache 1.3.20 with tomcat 3.2.3.
> 
> i have the following directory structure
> 
> ROOT-> example
> 
> there is a file file1.jsp in example directory
> in this file i am trying to include a file incfile.jsp in the 
> ROOT directory
> using
> 
> <%@ include file="../incfile.jsp"%>
> in this case i am getting the following error
> 
> 
> org.apache.jasper.compiler.CompileException:
> D:\jakarta-tomcat\webapps\ROOT\example\file1.jsp(43,0) Bad 
> file argument to
> include
> at
> org.apache.jasper.compiler.JspParseEventListener.handleDirecti
> ve(JspParseEve
> ntListener.java:728)
> at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(
> DelegatingList
> ener.java:116)
> at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
> at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
> at
> org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
> at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader1
> 2.java:146)
> at 
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspSe
> rvlet.java:258)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:268)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:429)
> at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:81
> 2)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:166)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:501)
> at java.lang.Thread.run(Thread.java:484)
> 
> and
> 
> there is another file file2.jsp in example directory
> in this file i am trying to forward to a file forwfile.jsp in the ROOT
> directory using
> 
> 
> 
> 
> in this case i am getting the following error.
> 
> Original request: /example /../forwfile.jsp
> Not found request: /example /../forwfile.jsp
> 
> Can anyone out thr help me with these ?
> 
> Thanx in advance
> Kishor
> 
> 
> 
> _
> 
> Do You Yahoo!?
> 
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> 



Re: user and password for Tomcat admin

2001-08-10 Thread L.Fernando

Cristian,
Insert a new line like this

in your TOMCAT_HOME/conf/tomcat-users.xml file, restart tomcat and log in as
the new user "admin" you just created.
It should works.

Cheers,

Fernando.

- Original Message -
From: "Cristian Bortolato" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 10, 2001 8:24 AM
Subject: user and password for Tomcat admin


> I've insert a new user and password in tomcat-user.xml to enter in tomcat
> administration, but it doesn't go...
> What ca I do?
> tomcat tomcat (original) doesn't go
>
>
>
> --
> PROSA Tecnologie Informatiche
> Via Polanzani, 74
> 30033 Noale (VE) - Italy
> Tel. +39-041-5828434 - Fax +39-041-5801903
> http://www.prosa.com
>
>
>
>




A Final Plea for Help (tomcat 3.2.2 and Apache 1.1.19)

2001-08-10 Thread Nance, Michael

I am using Tomcat 3.2.2 and Apache 1.1.19
For a couple days I have asked for help because I am 
seriously stuck.  When I start Tomcat then apache
my connectors Ajp12 and Ajp13 won't start.  I do a netstat
and they (8007 and 8009) are not there.

We are switching from Mod_JServ to Mod_JK and when I run the
JServ version the AJp12 starts fine (AJp13 not used)

This is from my server.xml


   








   
   
   
   
   






Also
Second

our dir structure is something like this

../src/common/...  path to all classes etc
../src/public_html/..   path to all jsp's

in my server.xml I have a line



I believe that will take care of my jsps but not a path to my Servlets
How can I fix this?

Thanks in advance



RE: ELF data encoding not big-endian

2001-08-10 Thread William Kaufman

The Apache folks don't seem to distribute Linux/PPC libraries, just
Linux/Intel; and SuSE doesn't package Apache/Tomcat on PPC.

So, while you can use the Java classes and any other files you've already
downloaded, you'll need to build mod_jk.so (and any other libraries you
need) yourself.

You can get the source at,

  http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/src/

and compile the right mod_jk.c for your version of Apache.

-- Bill K. 

> -Original Message-
> From: Jonathon Wallen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 6:57 AM
> To: [EMAIL PROTECTED]
> Subject: ELF data encoding not big-endian
> 
> 
> Hi all,
> I've got tomcat running fine independent of apache and now I want the 
> two to work together... I've downloaded the binary of mod_jk.so and 
> put it in the libexec directory, edited the server.xml file and got 
> the mod_jk.conf-auto thing happening.. now, after starting tomcat, 
> when I try to start apache it dies with this error -
> 
> Cannot load /usr/local/apache/libexec/mod_jk.so into server: 
> /usr/local/apache/libexec/mod_jk.so: ELF file data encoding not 
> big-endian
> 
> I'm using Suse7.0 ppc on a macintosh blue & white G3, apache 1.3.20 
> and tomcat-3.2.3
> 
> can anyone help with this?
> 
> many thanks,
> -- 
> 
> - 
> - Jonathon Wallen
> - B,DES College of Fine Arts, UNSW
> - [EMAIL PROTECTED]
> - 
> 



Re: Tomcat Server Setup question

2001-08-10 Thread Greg Fasnacht

Tom,

You're still one step (at least one). How did you get Tomcat set up as a
service? I'm trying to0 do the same thing on win2k with 4.0b6.  I found
jk_nt_service.exe but not the wrapper file it's supposed to require.

Greg Fasnacht

- Original Message -
From: "Michael Reeves" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 09, 2001 6:07 PM
Subject: Tomcat Server Setup question


> Hi,
>
> I'm beyond newbie, meaning, painfully unaware of how to do this.  I've
been
> reading for days the User Guide and all the supporting documents at the
> Jakarta website for days and still can't figure out where/why I'm not
doing
> this correctly.
>
> I'm attempting to install the Tomcat to run with Apache.  However, because
> I'm painfully ignorant, I cannot seem to get Tomcat running correctly.
I've
> successfully installed the Service (can see it in my Component Services
> applet), but when I attempt to start the service, it returns "you must set
> Java_Home to point at your java development kit installation."
>
> Where do I find that configuration file?
>
> I've modified my wrapper.properties and worker.properties configuration
> files to point at my Tomcat installation home.  I've also set up correctly
> (I think), the jk_nt_service.exe module.
>
> I'm running Windows 2000 with Tomcat 3.3 and Apache 1.3.
>
> Any help would be greatly appreciated, especially in this heat.
>
> Sincerely,
>
> Michael L. Reeves (c)?(c)
>
>
>
>



Configuring Tomcat 3.2.3 to use EJB

2001-08-10 Thread Steven Caswell

I understand that Tomcat does not "support" EJB in the
sense that it does not provide a container.  However,
I'm trying to access an EJB being served by Sun's
Reference Implementation.  I can't figure out how to
get Tomcat to find the com.sun classes necessary to
create the JNDI initial context.  If I put the
j2ee.jar in the webapp's WEB-INF\lib path, Tomcat
simply can't find the right classes.  If I put
j2ee.jar in Tomcat's lib path, Tomcat won't start.  Is
there a simple way for me to configure either Tomcat
or my webapp to find the appropriate JNDI classes?
TIA

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



RE: A Final Plea for Help (tomcat 3.2.2 and Apache 1.1.19)

2001-08-10 Thread Larry Isaacs

Tried your  entries in my Tomcat 3.2.2 server.xml
and the worked fine for me.  Note that you may not see the
ports unless you execute "netstat -a".

Since Tomcat 3.2.2 is an implementation of the servlet 2.2
spec, your servlets would normally be part of the
web application, i.e. under "public_html/WEB-INF/classes"
or in a jar in "public_html/WEB-INF/lib".  This directory
structure is mandated by the spec.

You can put your servlets on the CLASSPATH and make them
available to all web applications.  However, putting your
servlets on the CLASSPATH will mean the servlets can not
access classes found in the WEB-INF/classes and WEB-INF/lib
of your web applications.

Hope this helps.

Larry


> -Original Message-
> From: Nance, Michael [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 10:02 AM
> To: '[EMAIL PROTECTED]'
> Subject: A Final Plea for Help (tomcat 3.2.2 and Apache 1.1.19)
> 
> 
> I am using Tomcat 3.2.2 and Apache 1.1.19
> For a couple days I have asked for help because I am 
> seriously stuck.  When I start Tomcat then apache
> my connectors Ajp12 and Ajp13 won't start.  I do a netstat
> and they (8007 and 8009) are not there.
> 
> We are switching from Mod_JServ to Mod_JK and when I run the
> JServ version the AJp12 starts fine (AJp13 not used)
> 
> This is from my server.xml
> 
> 
> className="org.apache.tomcat.service.PoolTcpConnector">
>  value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
> 
> 
> 
> 
> 
> 
>  className="org.apache.tomcat.service.PoolTcpConnector">
> value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
>
>
>
>
> 
> 
>  docBase="../../../../src/public_html" debug="0"
> reloadable="true" >
> 
> 
> 
> Also
> Second
> 
> our dir structure is something like this
> 
> ../src/common/...  path to all classes etc
> ../src/public_html/..   path to all jsp's
> 
> in my server.xml I have a line
> 
> 
> 
> I believe that will take care of my jsps but not a path to my 
> Servlets
> How can I fix this?
> 
> Thanks in advance
> 



RE: ELF data encoding not big-endian

2001-08-10 Thread Jonathon Wallen

>The Apache folks don't seem to distribute Linux/PPC libraries, just
>Linux/Intel; and SuSE doesn't package Apache/Tomcat on PPC.
>
>So, while you can use the Java classes and any other files you've already
>downloaded, you'll need to build mod_jk.so (and any other libraries you
>need) yourself.
>
>You can get the source at,
>
>   http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/src/
>
>and compile the right mod_jk.c for your version of Apache.
>
> -- Bill K.


Thanks Bill for your prompt reply,
At the URL you've given I can see the source for tomcat and the API 
but not mod_jk.. is the source for mod_jk bundled within the tomcat 
file? Will I need to build tomcat as well or just mod_jk?

again, many thanks.
-- 

- 
- Jonathon Wallen
- B,DES College of Fine Arts, UNSW
- [EMAIL PROTECTED]
- 



install problem on Solaris7

2001-08-10 Thread BERGER David, SETRA/CITS

Hi all

I'm trying to install Tomcat 3.2 with Apache 1.3.12 and JRE1.3 on Solaris 7.
I did install the last patches for Solaris to get JRE working.
I've followed the instructions of the
<> web
page. (compiling Apache with mod_so, building mod_jk for Solaris, modifying
Apache's httpd.conf to refer to mod_jk.conf, modifying mod_jk.conf, and
workers.properties files)
I've started Tomcat before Apache with no error message.
Everything seemed fine so far, but I get an ERROR 500 with the JSP examples
files provided with tomcat. (in examples/jsp/).

Anyone can help me with this?

If it can help, i pasted below the error message i get with one of the JSP
example.

David Berger
SETRA - France


Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
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.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Root cause: 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
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.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)




RE: install problem on Solaris7

2001-08-10 Thread Larry Isaacs

You need a JDK instead of a JRE to get the tools.jar file
which is needed to compile the JSP's java file into a class.
/lib/tools.jar needs to be on the classpath.

Larry

> -Original Message-
> From: BERGER David, SETRA/CITS 
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 11:22 AM
> To: '[EMAIL PROTECTED]'
> Subject: install problem on Solaris7
> 
> 
> Hi all
> 
> I'm trying to install Tomcat 3.2 with Apache 1.3.12 and 
> JRE1.3 on Solaris 7.
> I did install the last patches for Solaris to get JRE working.
> I've followed the instructions of the
> < .html>> web
> page. (compiling Apache with mod_so, building mod_jk for 
> Solaris, modifying
> Apache's httpd.conf to refer to mod_jk.conf, modifying 
> mod_jk.conf, and
> workers.properties files)
> I've started Tomcat before Apache with no error message.
> Everything seemed fine so far, but I get an ERROR 500 with 
> the JSP examples
> files provided with tomcat. (in examples/jsp/).
> 
> Anyone can help me with this?
> 
> If it can help, i pasted below the error message i get with 
> one of the JSP
> example.
> 
> David Berger
> SETRA - France
> 
> 
> Error: 500
> Location: /examples/jsp/num/numguess.jsp
> Internal Servlet Error:
> javax.servlet.ServletException: sun/tools/javac/Main
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
>   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(ContextM
> anager.java:79
> 7)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>   at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:166)
>   at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
>   at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
>   at java.lang.Thread.run(Thread.java:484)
> Root cause: 
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>   at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
> iler.java:128)
>   at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
>   at
> org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
>   at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader1
> 2.java:146)
>   at 
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspSe
> rvlet.java:152)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:164)
>   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(ContextM
> anager.java:79
> 7)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>   at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:166)
>   at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
>   at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
>   at java.lang.Thread.run(Thread.java:484)
> 



RE: ELF data encoding not big-endian

2001-08-10 Thread William Kaufman

> Thanks Bill for your prompt reply,
> At the URL you've given I can see the source for tomcat and the API 
> but not mod_jk.. is the source for mod_jk bundled within the tomcat 
> file?

Sorry, it's in jakarta-tomcat-3.2.3-src.*, under src/native/ .

> Will I need to build tomcat as well or just mod_jk?

You should only have to rebuild native executable code--i.e., the *.c
files--not Java classes or other files.  The Makefile in each directory
containing a *.c file should work for you.

-- Bill K. 

> -Original Message-
> From: Jonathon Wallen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 8:17 AM
> To: [EMAIL PROTECTED]
> Subject: RE: ELF data encoding not big-endian
> 
> 
> >The Apache folks don't seem to distribute Linux/PPC libraries, just
> >Linux/Intel; and SuSE doesn't package Apache/Tomcat on PPC.
> >
> >So, while you can use the Java classes and any other files 
> you've already
> >downloaded, you'll need to build mod_jk.so (and any other 
> libraries you
> >need) yourself.
> >
> >You can get the source at,
> >
> >   
> http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/src/
> >
> >and compile the right mod_jk.c for your version of Apache.
> >
> > -- Bill K.
> 
> 
> Thanks Bill for your prompt reply,
> At the URL you've given I can see the source for tomcat and the API 
> but not mod_jk.. is the source for mod_jk bundled within the tomcat 
> file? Will I need to build tomcat as well or just mod_jk?
> 
> again, many thanks.
> -- 
> 
> - 
> - Jonathon Wallen
> - B,DES College of Fine Arts, UNSW
> - [EMAIL PROTECTED]
> - 
> 



Re: java.security.cert.X509Certificate

2001-08-10 Thread Craig R. McClanahan



On Fri, 10 Aug 2001, Keith Ball wrote:

> Hi,
> 
> I have a problem with the following code
> 
> java.security.cert.X509Certificate clientCert2 =
> (java.security.cert.X509Certificate)
> request.getAttribute("javax.servlet.request.X509Certificate");
> 
> It appears that java..x509Certificate != javax..x509Certificate and so I
> can't cast from the JSSE to the normal Java Security API.
> 

That's correct ... you cannot cast it.  Tomcat should be doing the
conversion for you (Tomcat 4 does this) -- if Tomcat 3.2.3 is not doing
that, it's a bug.  Could you please report it to:

  http://nagoya.apache.org/bugzilla/

Craig


> The error thrown is this...
> 
> java.lang.ClassCastException:
> com.sun.security.cert.internal.x509.X509V1CertImpl
> 
> I am running JDK 1.3.0_02, JSSE 1.0.2, Apache 1.3.20 and Tomcat 3.2.3.
> 
> Anyone got any ideas???
> 
> I believe this to be a problem associated either with Tomcat or the JSSE
> API, as I am running the same code perfectly on Netscape's iPlanet 4.1.
> 
> Best Regards,
> 
> Keith Ball 
> Vendor Intergration Engineer 
> 
> DIGITAL RUM LTD is the developer of 
> a ground-breaking new service that allows 
> shoppers to compare and buy brand-name 
> goods via their WAP search mobile phones. 
> 
> Digital Rum Germany GmbH 
> Zweibrueckenstr. 2 
> 80331 Muenchen 
> ph: +49 (89) 210 21 ## 
>  
>  
> 




Re: JSP Project Problem on apache-Tomcat (Pl respond)

2001-08-10 Thread Craig R. McClanahan



On Fri, 10 Aug 2001, SriHari wrote:

> Dear Jakarta.apache.org
> 
> We  are using Tomcat 3.2.3 for  our jsp project 
> I am able to run the JSP's in webapps/
> Our Project contains several sub directories /Folders with in the  folder>
> I am able to run only jsp's in the main  
> How to configuer the  or any other to Make the jsp's
> avaliable with in the subfolders 
> and 
> How reliable is it to use a Tomcat beta version 4.0b5 for a live project
> 
> Is there any sample project on the net avaliable for download which run on
> tomcat 
> if so Do send me a url information on the same 
> 

Tomcat 4.0 beta 7 was released last night, with bug fixes over beta 5.  It
is quite stable.

There are tons of webapps around that run on various versions of Tomcat --
one set that I'm familiar with is the documentation and examples that come
with the Struts framework .  Just drop
the WAR files in the "webapps" directory into your Tomcat
"webapps" directory, restart Tomcat, and go.

> 
> 
> Regards
> Devineni Sree Hari Sai
> Software Executive
> Pyxis Technology Solutions Ltd
> 
> 
> 
> 
> 
Craig





Re: install problem on Solaris7

2001-08-10 Thread Boris Niyazov

You probably need j2sdk (you can grab one for solaris on sun's website). It has 
development tools like tools.jar in its lib folder. Make sure you JAVA_HOME is 
set in order for tomcat to find required jars in the JAVA_HOME/lib

hth
  - Boris



>MIME-Version: 1.0
>X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
>
>Hi all
>
>I'm trying to install Tomcat 3.2 with Apache 1.3.12 and JRE1.3 on Solaris 7.
>I did install the last patches for Solaris to get JRE working.
>I've followed the instructions of the
><> web
>page. (compiling Apache with mod_so, building mod_jk for Solaris, modifying
>Apache's httpd.conf to refer to mod_jk.conf, modifying mod_jk.conf, and
>workers.properties files)
>I've started Tomcat before Apache with no error message.
>Everything seemed fine so far, but I get an ERROR 500 with the JSP examples
>files provided with tomcat. (in examples/jsp/).
>
>Anyone can help me with this?
>
>If it can help, i pasted below the error message i get with one of the JSP
>example.
>
>David Berger
>SETRA - France
>
>
>Error: 500
>Location: /examples/jsp/num/numguess.jsp
>Internal Servlet Error:
>javax.servlet.ServletException: sun/tools/javac/Main
>   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
>   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.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>   at java.lang.Thread.run(Thread.java:484)
>Root cause: 
>java.lang.NoClassDefFoundError: sun/tools/javac/Main
>   at
>org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
>   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
>   at
>org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
>   at
>org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
>   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
>   at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
>rvlet.java:152)
>   at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
>va:164)
>   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.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>   at java.lang.Thread.run(Thread.java:484)
>




Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released

2001-08-10 Thread Craig R. McClanahan



On Fri, 10 Aug 2001, chris brown wrote:

> A few questions about the downloads :
> 
> 1./ Windows Installer version
> (I assume this is the .exe in the main download folder ; I would have
> expected it in the "bin" subfolder...).  What does this file actually do?  I
> imagine that it unzips the files and installs Tomcat as a service (using
> jk_nt_service) -- am I correct so far?  Does it do anything else, such as
> modify "httpd.conf" for Apache or any other server setup files (for IIS or
> whatever)?
> 

The ".exe" version is an all-in-one installer (for Windows only) that
installs and configures Tomcat for you (including optionally setting it up
to run as an NT service).  The "bin" directory will contain mod_webapp
binaries for various platforms.

> 2./ mod_webapp
> - Where's the Windows binary?!  The only version I see is for Linux (at
> present).

Pier just got done adding binaries for Mac OSX and Solaris 8 Sparc, and is
working on Solaris 8 Intel and HP/UX 10.20.  We need someone with an
appropriate C compiler to build for Windows ... volunteers?

> - Is this connecter "stable" code?

It's a *lot* better than before, but still beta code.  There are some
known issues mentioned in the release notes.

> - Is it only for Apache 2.0, or can it be used with 1.3.20, etc.?

In fact, it's only for Apache 1.3.

> - Is there any documentation for mod_webapp (I don't know how to use it...)?

The Linux .so file has just been repackaged with documentation (also
included with the other versions).

> - What's the difference between mod_webapp and mod_jk anyway?!

Technically, they are completely different on the inside.  From the user
perspective, mod_webapp was designed to understand what a "web
application" (in the servlet spec's definition) is -- hence the name
:-)  Unlike mod_jk, where you have to configure everything twice (or hope
that the auto-generated config files take care of everything for you),
adding a web app to Apache's httpd.conf file boils down to one statement:

  WebAppDeploy  examples  warpConnection  /examples/

and the connector will configure itself from the web.xml file for the
"/examples" web app (included with Tomcat).

In this version, the connector still hands over all requests for this web
app to Tomcat (including static files).  When final release happens, it
will automatically figure out which requests can be served by Apache
(basically, all static files that are not subject to filtering or a
security constraint) and pass to Tomcat only the required ones.

Since mod_jk is much more mature than mod_webapp at the moment, it has
several other features that mod_webapp does not yet possess (like load
balancing).  These features will be added in later versions of mod_webapp.

> 
> 3./ NT service
> I currently use JavaService, available from
> http://www.alexandriasc.com/software/JavaService/index.html, to run Tomcat
> 3.2.3 as a service.  Is this still possible with Tomcat 4.0, or do I need to
> use jk_nt_service ?
> 

If you use the Windows installer, you get this option automatically.

> Thanks,
> Chris B.
> 

Craig McClanahan




Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released

2001-08-10 Thread Craig R. McClanahan



On Fri, 10 Aug 2001, chris brown wrote:

> How else can I connect Tomcat 4.0 with an Apache server (1.3.20) ?
> 

You can in fact use mod_jk if you want to -- on the Apache side it's
identical to the mod_jk used for Tomcat 3.x.  Instructions for configuring
this can be found in the "jakarta-tomcat-connectors" CVS repository.  I'll
take a look at packaging things up (but mod_webapp has been my personal
focus).

Craig




JNDI bound in tomcat

2001-08-10 Thread Papo Napolitano

I'm trying to use JNDI in tomcat but it doesn't work!!!

I deployed this code with the deploytool and run ok in J2EE server in
localhost:

InitialContext ctx = new InitialContext();
Object objref = ctx.lookup("usermanager");
UserManagerHome homeuser =
(UserManagerHome)PortableRemoteObject.narrow(objref, UserManagerHome.class);
UserManager UsrMgr = homeuser.create();

Now, I'm trying to make the deploy with ant application and run it in Tomcat
Server (remote host). And I get the following error:

javax.servlet.ServletException: Name usermanager is not bound in this
Context
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:452)
at
org.apache.jsp._0002fuserfunc_jsp._jspService(_0002fuserfunc_jsp.java:121)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServl.
.
.
.

I don't know where must I bound the usermanager Bean. Any XML file example
???

Regards
Papo




RE: xalan and problem with locating custom libraries

2001-08-10 Thread Craig R. McClanahan



On Fri, 10 Aug 2001, Larry Isaacs wrote:

> Because of the way Tomcat 3.2.x sets up its classloader
> hierarchy, you are stuck.  I'm not aware of any tricks
> to allow your library to remain in /WEB-INF/lib and
> xerces and xalan to remain in the "application" classloader.
> However, this issue is addressed in Tomcat 3.3 and
> Tomcat 4.0.
> 
> In Tomcat 3.3, a more complex classloader hierarchy is
> built which separates the server classes (which includes
> the server's XML parser) from the web application's classes.
> Now web applications can have their own XML parser.
> 

One "heads up" related to this for both 3.3 and 4.0 is important.  In 3.2,
Tomcat exposed an XML parser to all webapps, so that they didn't have to
provide one of their own.  This is *not* true for 3.3 or 4.0 -- you have
to either put one in the global library directory ($TOMCAT_HOME/lib) or
include the parser in /WEB-INF/lib of your web app.

> In Tomcat 4.0, per the servlet 2.3 spec, classloaders
> try to load the class first before delagating to their
> parent.  Thus, an XML parser in /WEB-INF/lib would
> "override" an XMP parser in a parent classloader.
> There is probably more to this story for Tomcat 4.0, but
> I will let someone with more experience than me
> elaborate.
> 

Nah, you got it just right, other than "XMP" instead of "XML" :-).

> Cheers,
> Larry
> 

Craig




Re: Configuring Tomcat 3.2.3 to use EJB

2001-08-10 Thread Craig R. McClanahan



On Fri, 10 Aug 2001, Steven Caswell wrote:

> I understand that Tomcat does not "support" EJB in the
> sense that it does not provide a container.  However,
> I'm trying to access an EJB being served by Sun's
> Reference Implementation.  I can't figure out how to
> get Tomcat to find the com.sun classes necessary to
> create the JNDI initial context.  If I put the
> j2ee.jar in the webapp's WEB-INF\lib path, Tomcat
> simply can't find the right classes.  If I put
> j2ee.jar in Tomcat's lib path, Tomcat won't start.  Is
> there a simple way for me to configure either Tomcat
> or my webapp to find the appropriate JNDI classes?
> TIA
> 

To use EJBs inside the J2EE RI, you'll need to run your web apps inside
the RI's servlet container (which happens to be Tomcat -- J2EE RI 1.2 has
a modified version of Tomcat 3.0, while J2EE RI 1.3 includes Tomcat 4.0).

Craig McClanahan




RE: A Final Plea for Help (tomcat 3.2.2 and Apache 1.1.19)

2001-08-10 Thread Nance, Michael

Thanks you Larry for your reply...I am doing a netstat -a and for some
reason the
don't start... thanks for testing it.

Also thanks for you answer on the classpath...it is appreciated!

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 8:04 AM
To: '[EMAIL PROTECTED]'
Subject: RE: A Final Plea for Help (tomcat 3.2.2 and Apache 1.1.19)


Tried your  entries in my Tomcat 3.2.2 server.xml
and the worked fine for me.  Note that you may not see the
ports unless you execute "netstat -a".

Since Tomcat 3.2.2 is an implementation of the servlet 2.2
spec, your servlets would normally be part of the
web application, i.e. under "public_html/WEB-INF/classes"
or in a jar in "public_html/WEB-INF/lib".  This directory
structure is mandated by the spec.

You can put your servlets on the CLASSPATH and make them
available to all web applications.  However, putting your
servlets on the CLASSPATH will mean the servlets can not
access classes found in the WEB-INF/classes and WEB-INF/lib
of your web applications.

Hope this helps.

Larry


> -Original Message-
> From: Nance, Michael [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 10:02 AM
> To: '[EMAIL PROTECTED]'
> Subject: A Final Plea for Help (tomcat 3.2.2 and Apache 1.1.19)
> 
> 
> I am using Tomcat 3.2.2 and Apache 1.1.19
> For a couple days I have asked for help because I am 
> seriously stuck.  When I start Tomcat then apache
> my connectors Ajp12 and Ajp13 won't start.  I do a netstat
> and they (8007 and 8009) are not there.
> 
> We are switching from Mod_JServ to Mod_JK and when I run the
> JServ version the AJp12 starts fine (AJp13 not used)
> 
> This is from my server.xml
> 
> 
> className="org.apache.tomcat.service.PoolTcpConnector">
>  value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
> 
> 
> 
> 
> 
> 
>  className="org.apache.tomcat.service.PoolTcpConnector">
> value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
>
>
>
>
> 
> 
>  docBase="../../../../src/public_html" debug="0"
> reloadable="true" >
> 
> 
> 
> Also
> Second
> 
> our dir structure is something like this
> 
> ../src/common/...  path to all classes etc
> ../src/public_html/..   path to all jsp's
> 
> in my server.xml I have a line
> 
> 
> 
> I believe that will take care of my jsps but not a path to my 
> Servlets
> How can I fix this?
> 
> Thanks in advance
> 



Re: JNDI bound in tomcat

2001-08-10 Thread Craig R. McClanahan

On Fri, 10 Aug 2001, Papo Napolitano wrote:

> I'm trying to use JNDI in tomcat but it doesn't work!!!
> 
> I deployed this code with the deploytool and run ok in J2EE server in
> localhost:
> 
> InitialContext ctx = new InitialContext();
> Object objref = ctx.lookup("usermanager");
> UserManagerHome homeuser =
> (UserManagerHome)PortableRemoteObject.narrow(objref, UserManagerHome.class);
> UserManager UsrMgr = homeuser.create();
> 
> Now, I'm trying to make the deploy with ant application and run it in Tomcat
> Server (remote host). And I get the following error:
> 
> javax.servlet.ServletException: Name usermanager is not bound in this
> Context
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:452)
> at
> org.apache.jsp._0002fuserfunc_jsp._jspService(_0002fuserfunc_jsp.java:121)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServl.
> .
> .
> .
> 
> I don't know where must I bound the usermanager Bean. Any XML file example
> ???
> 
> Regards
> Papo
> 
> 

What kind of object is UserManager supposed to be?  Where are you trying
to load it from?  If it is supposed to be an EJB, you will need to be
using a J2EE server (like the J2EE reference implementation from Sun, or
JBoss, or ...), not Tomcat by itself.

Craig






can't restart Tomcat "Address in use"

2001-08-10 Thread Eamonn Maher

Hi folks
occasionally I get this error when I shut down Tomcat and start it again...

"FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
 at java.net.ServerSocket.(ServerSocket.java:170)
 at java.net.ServerSocket.(ServerSocket.java:121)
 at 
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
 at 
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
 at 
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
 at 
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)"


fport reveals that the ports 8080 and 8007 are still in use.
"2 System ->  8007  TCP
2 System ->  8080  TCP"

The setup is as follows
Tomcat 3.2.2. on WinNT SP 6 running as a standalone servlet container.
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode).

Anybody ever see something like this before?
Thanks
Eamonn

  



-
Baltimore Technologies plc will not be liable for direct,  special,  indirect 
or consequential  damages  arising  from  alteration of  the contents of this
message by a third party or as a result of any virus being passed on.

In addition, certain Marketing collateral may be added from time to time to
promote Baltimore Technologies products, services, Global e-Security or
appearance at trade shows and conferences.

This footnote confirms that this email message has been swept by
Baltimore MIMEsweeper for Content Security threats, including
computer viruses.
   http://www.baltimore.com




Unable to compile class for JSP

2001-08-10 Thread [EMAIL PROTECTED]

BeanTest.jsp



Message: 


SimpleBean.java
===
public class SimpleBean {
  private String message = "No message specified";
  public String getMessage() {
return(message);
  }
  public void setMessage(String message) {
this.message = message;
  }
}

-

I've got 'BeanTest.jsp' on 'webapps/ROOT', and 'SimpleBean.java' and
'SimpleBean.class' on 'webapps/ROOT/WEB-INF/classes'.

But I get this message:

org.apache.jasper.JasperException: Unable to compile class for JSP

What am I doing wrong?


-
This mail was sent through Eoffice: http://www.eoffice.dk




Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released

2001-08-10 Thread chris brown

I've had a look at Tomcat 4's server.xml file.  Seems straightforward
enough.  Following on from your comments about still being able to use
mod_jk with Tomcat 4, can I simply copy over my  settings from
my server.xml file for Tomcat 3.2.x ?


 
 


Do I still need both an AJP12 connector (for shutdown) *and* AJP13 connector
(for main communication) ?

Thanks again,
Chris


- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "tomcat-user" <[EMAIL PROTECTED]>
Sent: Friday, August 10, 2001 5:54 PM
Subject: Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released


> You can in fact use mod_jk if you want to -- on the Apache side it's
> identical to the mod_jk used for Tomcat 3.x.  Instructions for configuring
> this can be found in the "jakarta-tomcat-connectors" CVS repository.  I'll
> take a look at packaging things up (but mod_webapp has been my personal
> focus).
>
> Craig





Re: Configuring Tomcat 3.2.3 to use EJB

2001-08-10 Thread Steven Caswell

So there is no easy way to access an EJB server from
within a standalong Tomcat.  That stinks.  So can
anyone tell me how to run the Tomcat that is in the
1.2 RI?  I've not seen anything in the documentation
that tells how to do that.  TIA

--- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> 
> 
> On Fri, 10 Aug 2001, Steven Caswell wrote:
> 
> > I understand that Tomcat does not "support" EJB in
> the
> > sense that it does not provide a container. 
> However,
> > I'm trying to access an EJB being served by Sun's
> > Reference Implementation.  I can't figure out how
> to
> > get Tomcat to find the com.sun classes necessary
> to
> > create the JNDI initial context.  If I put the
> > j2ee.jar in the webapp's WEB-INF\lib path, Tomcat
> > simply can't find the right classes.  If I put
> > j2ee.jar in Tomcat's lib path, Tomcat won't start.
>  Is
> > there a simple way for me to configure either
> Tomcat
> > or my webapp to find the appropriate JNDI classes?
> > TIA
> > 
> 
> To use EJBs inside the J2EE RI, you'll need to run
> your web apps inside
> the RI's servlet container (which happens to be
> Tomcat -- J2EE RI 1.2 has
> a modified version of Tomcat 3.0, while J2EE RI 1.3
> includes Tomcat 4.0).
> 
> Craig McClanahan
> 


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



Tomcat 3.2.3. getPathInfo() escape problem

2001-08-10 Thread Ross Inglis

Hi All.

I recently decided it was time to upgrade my servlet based web-server. After
checking the
latest versions etc I went with Apache 1.3.20, Tomcat 3.2.3 and Cocoon
2.0b2. (I'm running
Windows NT).  I figured I'd get all the grief over with in one go! :-)

(For the record, I was previously running Apache JServ 1.1.2 & Cocoon 1.7.4)

After the expected problems working out the new configuration techniques,
moving and
tweaking servlets and editing XML, I got everything up and running pretty
well.

One new problem has appeared however, that my previous setup did not show.

I have a servlet (ServletA) that generates a URL as part of a generated web
page. It includes
a file path on the server, and the URL generated looks like this:

http://myserver/context/servlet/ServletB/file/path/file.xyz

This URL directs another servlet (ServletB) to read the file
"file/path/file.xyz".  This all worked
just fine until ServletA found a file named "file/path/broken+.xyz" and
generated a URL with
a '+' sign in it..  ServletB calls getPathInfo() on this and gets
"file/path/broken .xyz" (+ replaced by space).

OK. No problem I thought, I have forgotten to escape the '+' to %2b when I
generate the URL.
Some quick servlet code changes later, I tried again.  Now the URL was
generated as:

http://myserver/context/servlet/ServletB/file/path/broken%2b.xyz

But on the ServletB side getPathInfo() STILL returns "broken .xyz" (with the
damn space!)

I even tried double-escaping to:

http://myserver/context/servlet/ServletB/file/path/broken%252b.xyz

but that apparently blew away Tomcats (or Apache's) URL pattern matching and
just returned
Error 404.

Anyone know whats going on here? It looks suspicously like something has
unescaped the path
information twice. Or am I getting confused about who whould escape that bad
file name?

 I found nothing similar in the mailing lists or Apache bug database.

Ross.

(Spam protected email return.remove nospam)





Encoding problem in Opera browser

2001-08-10 Thread Evgeniy Strokin

I use TC 3.2.3 (Actually in TC 4b7 he same problem)
I have all pages in UTF-8 encoding.
I trying get values from parameters.
I have this code:
String param=_request.getParameter(name);
param=new String(param.getBytes("iso-8859-1"),"UTF-8");
In IE and NS every things fine.
But from Opera I getting value shorter (for example  from IE and ?? from
Opera)
and after
param=new String(param.getBytes("iso-8859-1"),"UTF-8");
all not Latin symbols cut.
Please help.


NetZero Platinum
Sign Up Today - Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97



Re: Unable to compile class for JSP

2001-08-10 Thread Craig R. McClanahan

If you use beans that are not in a Java package, you have to explicitly
import them.  When your bean is in a package and you use the fully
qualified name (strongly recommended), this is not needed.

Craig


On Fri, 10 Aug 2001, [EMAIL PROTECTED] wrote:

> BeanTest.jsp
> 

Add here: <%@ page import="SimpleBean" %>

> 
> 
> Message:  />
> 
> 
> SimpleBean.java
> ===
> public class SimpleBean {
>   private String message = "No message specified";
>   public String getMessage() {
> return(message);
>   }
>   public void setMessage(String message) {
> this.message = message;
>   }
> }
> 
> -
> 
> I've got 'BeanTest.jsp' on 'webapps/ROOT', and 'SimpleBean.java' and
> 'SimpleBean.class' on 'webapps/ROOT/WEB-INF/classes'.
> 
> But I get this message:
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> What am I doing wrong?
> 
> 
> -
> This mail was sent through Eoffice: http://www.eoffice.dk
> 
> 




Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released

2001-08-10 Thread Craig R. McClanahan



On Fri, 10 Aug 2001, chris brown wrote:

> I've had a look at Tomcat 4's server.xml file.  Seems straightforward
> enough.  Following on from your comments about still being able to use
> mod_jk with Tomcat 4, can I simply copy over my  settings from
> my server.xml file for Tomcat 3.2.x ?
> 
> 
>   value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
>  
> 
> 

This won't work "as is", because the Ajp13ConnectionHandler class is not
part of the standard Tomcat 4 distribution.  You'll need to follow the
instructions in the "jakarta-tomcat-connectors" CVS repository to build
and install the necessary pieces on both sides.

> Do I still need both an AJP12 connector (for shutdown) *and* AJP13 connector
> (for main communication) ?
> 
> Thanks again,
> Chris
> 

Craig

> 
> - Original Message -
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: "tomcat-user" <[EMAIL PROTECTED]>
> Sent: Friday, August 10, 2001 5:54 PM
> Subject: Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released
> 
> 
> > You can in fact use mod_jk if you want to -- on the Apache side it's
> > identical to the mod_jk used for Tomcat 3.x.  Instructions for configuring
> > this can be found in the "jakarta-tomcat-connectors" CVS repository.  I'll
> > take a look at packaging things up (but mod_webapp has been my personal
> > focus).
> >
> > Craig
> 
> 
> 




RE: Unable to compile class for JSP

2001-08-10 Thread Larry Isaacs

Tried your files in Tomcat 3.3 and Tomcat 3.2.3 as described
and they worked fine for me.  Please supply more of the error
message that gives what the compile error was.

Larry

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 12:33 PM
> To: [EMAIL PROTECTED]
> Subject: Unable to compile class for JSP
> 
> 
> BeanTest.jsp
> 
> 
> 
> Message:  />
> 
> 
> SimpleBean.java
> ===
> public class SimpleBean {
>   private String message = "No message specified";
>   public String getMessage() {
> return(message);
>   }
>   public void setMessage(String message) {
> this.message = message;
>   }
> }
> 
> -
> 
> I've got 'BeanTest.jsp' on 'webapps/ROOT', and 'SimpleBean.java' and
> 'SimpleBean.class' on 'webapps/ROOT/WEB-INF/classes'.
> 
> But I get this message:
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> What am I doing wrong?
> 
> 
> -
> This mail was sent through Eoffice: http://www.eoffice.dk
> 



Re: Configuring Tomcat 3.2.3 to use EJB

2001-08-10 Thread Craig R. McClanahan



On Fri, 10 Aug 2001, Steven Caswell wrote:

> So there is no easy way to access an EJB server from
> within a standalong Tomcat.  That stinks.

Tomcat has no EJB container.

>  So can
> anyone tell me how to run the Tomcat that is in the
> 1.2 RI?  I've not seen anything in the documentation
> that tells how to do that.  TIA
> 

You just start up the j2ee server, following the instructions in the RI
download -- Tomcat is built in already.  It makes a non-SSL HTTP connector
available on port 8000, and an SSL connector on port 7000.

Note that you'll also have to follow the procedures described in the
documentation for packaging and deploying your apps.  In particular,
that's where the linkage between a particular JNDI name for an EJB, and
the actual implementation of the bean, is managed.

Craig

PS:  If you're just starting out and using this for education, I'd suggest
downloading J2EE 1.3-beta-2 instead of 1.2.  That way, you won't have to
relearn all the things that have changed between 1.2 and 1.3.


> --- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > On Fri, 10 Aug 2001, Steven Caswell wrote:
> > 
> > > I understand that Tomcat does not "support" EJB in
> > the
> > > sense that it does not provide a container. 
> > However,
> > > I'm trying to access an EJB being served by Sun's
> > > Reference Implementation.  I can't figure out how
> > to
> > > get Tomcat to find the com.sun classes necessary
> > to
> > > create the JNDI initial context.  If I put the
> > > j2ee.jar in the webapp's WEB-INF\lib path, Tomcat
> > > simply can't find the right classes.  If I put
> > > j2ee.jar in Tomcat's lib path, Tomcat won't start.
> >  Is
> > > there a simple way for me to configure either
> > Tomcat
> > > or my webapp to find the appropriate JNDI classes?
> > > TIA
> > > 
> > 
> > To use EJBs inside the J2EE RI, you'll need to run
> > your web apps inside
> > the RI's servlet container (which happens to be
> > Tomcat -- J2EE RI 1.2 has
> > a modified version of Tomcat 3.0, while J2EE RI 1.3
> > includes Tomcat 4.0).
> > 
> > Craig McClanahan
> > 
> 
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 




Re: Encoding problem in Opera browser

2001-08-10 Thread Craig R. McClanahan

On Fri, 10 Aug 2001, Evgeniy Strokin wrote:

> I use TC 3.2.3 (Actually in TC 4b7 he same problem)
> I have all pages in UTF-8 encoding.
> I trying get values from parameters.
> I have this code:
> String param=_request.getParameter(name);
> param=new String(param.getBytes("iso-8859-1"),"UTF-8");
> In IE and NS every things fine.
> But from Opera I getting value shorter (for example  from IE and ?? from
> Opera)
> and after
> param=new String(param.getBytes("iso-8859-1"),"UTF-8");
> all not Latin symbols cut.
> Please help.
> 

In Servlet 2.3 (and therefore in Tomcat 4b7 but not 3.2.3) there is a new
request.setCharacterEncoding() call that you can use to tell Tomcat to do
this transformation for you before returning the parameter in the first
place.

Craig




RE: Tomcat 3.2.3. getPathInfo() escape problem

2001-08-10 Thread Larry Isaacs



> -Original Message-
> From: Ross Inglis [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 10, 2001 1:06 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.2.3. getPathInfo() escape problem
> 
> 
> Hi All.
> 
> I recently decided it was time to upgrade my servlet based 
> web-server. After
> checking the
> latest versions etc I went with Apache 1.3.20, Tomcat 3.2.3 and Cocoon
> 2.0b2. (I'm running
> Windows NT).  I figured I'd get all the grief over with in one go! :-)
> 
> (For the record, I was previously running Apache JServ 1.1.2 
> & Cocoon 1.7.4)
> 
> After the expected problems working out the new configuration 
> techniques,
> moving and
> tweaking servlets and editing XML, I got everything up and 
> running pretty
> well.
> 
> One new problem has appeared however, that my previous setup 
> did not show.
> 
> I have a servlet (ServletA) that generates a URL as part of a 
> generated web
> page. It includes
> a file path on the server, and the URL generated looks like this:
> 
> http://myserver/context/servlet/ServletB/file/path/file.xyz
> 
> This URL directs another servlet (ServletB) to read the file
> "file/path/file.xyz".  This all worked
> just fine until ServletA found a file named 
> "file/path/broken+.xyz" and
> generated a URL with
> a '+' sign in it..  ServletB calls getPathInfo() on this and gets
> "file/path/broken .xyz" (+ replaced by space).

The servlet spec specifies that getPathInfo() returns a decoded string,
so this is correct behavior.

> 
> OK. No problem I thought, I have forgotten to escape the '+' 
> to %2b when I
> generate the URL.
> Some quick servlet code changes later, I tried again.  Now the URL was
> generated as:
> 
> 
> http://myserver/context/servlet/ServletB/file/path/broken%2b.xyz
> 
> But on the ServletB side getPathInfo() STILL returns "broken 
> .xyz" (with the
> damn space!)

I don't see how Tomcat or Apache could incorrectly decode %2b into
a space.  Could there be some caching going on and the old URL
is being used.  Can you check some logs to verify the request is
coming in with %2b?

> 
> I even tried double-escaping to:
> 
> http://myserver/context/servlet/ServletB/file/path/broken%252b.xyz
> 
> but that apparently blew away Tomcats (or Apache's) URL 
> pattern matching and
> just returned
> Error 404.

For security reasons, Tomcat 3.2.3, 3.3, and 4.0 no longer allow '%'
to be escaped (i.e. %25) in a URL.  Preventing something like
"myjsp%252Ejsp" (%252E = double escaped '.') from serving up JSP source
proved impractical otherwise.

> 
> Anyone know whats going on here? It looks suspicously like 
> something has
> unescaped the path
> information twice. Or am I getting confused about who whould 
> escape that bad
> file name?
> 
>  I found nothing similar in the mailing lists or Apache bug database.
> 
> Ross.
> 
> (Spam protected email return.remove nospam)
> 
> 



Question regarding servlet/jsp mapping using uriworkermap.properties

2001-08-10 Thread Eric Wu

I have a question regarding mapping with uriworkermap.properties.
We have Tomcat running with IIS and I would like to set things up so that
IIS serves up static content (html files) leaving Tomcat to handle JSP and
Struts.

My question is this:  if the directories holding the JSPs are structured as
follows:

\myContext\jsp\a1\b1\ {some JSP files}
\myContext\jsp\a1\b2\ {some JSP files}
\myContext\jsp\a2\c1\ {some JSP files}
\myContext\jsp\a3\c2\ {some JSP files}

Can I map these to Tomcat using the following entries in
uriworkermap.properties?
\myContext\jsp\*.jsp=ajp12

Or will I need to specify a rule for each directory?
\myContext\jsp\a1\b1\*.jsp=ajp12
\myContext\jsp\a1\b2\*.jsp=ajp12
\myContext\jsp\a2\c1\*.jsp=ajp12
\myContext\jsp\a3\c2\*.jsp=ajp12



Eric Wu  
Java Architect   
GlobalMedic Inc., a Canadian Medical Association subsidiary

8200 Decarie Blvd., Suite 205
Montreal, Qc.
Canada, H4P 2P5
Tel: (514) 738-6770 Ext. 239
Fax: (514) 738-4827
Email: [EMAIL PROTECTED] 
Web:  
Gold Medal Winner at the 2000 WWW Health Awards





RE: Strange bug - XSLT filter on Tomcat 4.0 b6

2001-08-10 Thread Stuart Halloway

Tom, Craig,

Thanks for pointing out the bug in the filter example on the JDC Tech Tips.
A fixed version of the tip will be up shortly.

Stuart Halloway
http://staff.develop.com/halloway


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 2:38 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Strange bug - XSLT filter on Tomcat 4.0 b6




On Wed, 1 Aug 2001, HEBBRON,TOM (HP-UnitedKingdom,ex2) wrote:

>
> Hi - I've been writing an XSLT filter using the servlet 2.3 filter
> mechanism, and have come across this bug several times, including in the
> example xslt filter at suns JDC
>
(http://developer.java.sun.com/developer/JDCTechTips/2001/tt0626.html#tip2)
>
> Basically, if the size of the transformation result is greater than the
> source xml file size, the output will be truncated.
> So, if I serve index.xml (599bytes) using the filter, and an xsl file
which
> adds quite a lot of fancy html around the data from index.xml, I wil only
> get the first 599bytes of the output - although printing this output to
> System.out just after calling transformer.transform will yield the
complete
> result stream.
>

There is a corresponding problem if the transformed size is *smaller* than
the original size.  In that case, your filter will be writing fewer bytes
than the container expects.

It is your responsibility to call response.setContentLength() on the
"real" response in your filter if you change the content length of the
content provided by the original servlet.  The value your filter sets must
match the number of bytes your filter is actually going to write to the
"real" response's output stream.

> The code I am using is published at the above URL.
>

Looks like a bug in this code ... i'll send feedback to the author.

> I have also tried a couple of other example XSLT filters, and all of them
> have either come up with this error, or failed to work completely.
>
> Is this a problem with adding to the size of the servlet response - is it
a
> fixed size?
>

Without using filters, your servlet is responsible for settting the
"Content-Length" header of the response (normally this is done by calling
setContentLength()), and then writing exactly that many bytes.  If the
servlet does *not* set the content length explicitly, the container will
deal with it (for example, if you're using HTTP/1.1 persistent
connections, it will switch to chunked output mode).

However, if the servlet *did* set the content length of the response, and
a filter post-processes the response data to change the length, then it is
the filter's responsibility to update the content length on the
"real" response to match the number of bytes that it actually writes.

The filter code could be modified to do this.  It would involve capturing
the output of the transform into a ByteArrayOutputStream (or perhaps to a
temporary file if you're doing big transforms), counting the bytes,
calling response.setContentLength(), and then copying the bytes to the
response output stream.

> Thanks for any help/suggestions - I felt sure that someone else must have
> discovered this as well, but couldn't see anything on the web or mail
> archives.
>

> Tom Hebbron Tel: + 44 (0) 11731 29300
> hp BCO e-business   Fax: + 44 (0) 11731 29923
> [EMAIL PROTECTED]
>

Craig McClanahan





enabling all users for .jsp

2001-08-10 Thread David Bishop

I have a bunch of users that do the ~username convention to publish out of
their home directory.  My question is, how do I let them use .jsp without
going through and manually mounting each directory?  In my mod_jk.conf I have
JkMount /*.jsp ajp12 which, according to my understanding, means "if it has a
.jsp extension, pass it to tomcat who will automagically take care of it".
However, it doesn't work out that way ;-)  Any attempts to his something like
foo.com/~username/helloworld.jsp, results in the infamous 404 from tomcat.
It appears apache is passing it over readily enough, but tomcat doesn't know
how to expand ~user to /u/user/public_html.  Please help, as this is the last
thing I need to get going before it is working perfectly.

If it matters:
Solaris 7, Ultra60
Apache 1.3.14
Tomcat 3.2.3
mod_jk 3.3-b1

Thanks in advance!

D.A.Bishop

 PGP signature


RE: Encoding problem in Opera browser

2001-08-10 Thread Evgeniy Strokin

Still problem.
In TC4b7 I set request to UTF-8 encoding also (I use
filters.SetCharacterEncodingFilter
encoding in web.xml and request.setCharacterEncoding())
I removed
param=new String(param.getBytes("iso-8859-1"),"UTF-8");
and leaved only
String param=_request.getParameter(name);
Exactly the same result: in IE and NS every things fine from Opera value is
cut.


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problem in Opera browser


On Fri, 10 Aug 2001, Evgeniy Strokin wrote:

> I use TC 3.2.3 (Actually in TC 4b7 he same problem)
> I have all pages in UTF-8 encoding.
> I trying get values from parameters.
> I have this code:
> String param=_request.getParameter(name);
> param=new String(param.getBytes("iso-8859-1"),"UTF-8");
> In IE and NS every things fine.
> But from Opera I getting value shorter (for example  from IE and ??
from
> Opera)
> and after
> param=new String(param.getBytes("iso-8859-1"),"UTF-8");
> all not Latin symbols cut.
> Please help.
>

In Servlet 2.3 (and therefore in Tomcat 4b7 but not 3.2.3) there is a new
request.setCharacterEncoding() call that you can use to tell Tomcat to do
this transformation for you before returning the parameter in the first
place.

Craig


NetZero Platinum
Sign Up Today - Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97



RE: xalan and problem with locating custom libraries

2001-08-10 Thread Dmitry Beransky

At 06:40 AM 8/10/2001, Larry Isaacs wrote:
>In Tomcat 3.3, a more complex classloader hierarchy is
>built which separates the server classes (which includes
>the server's XML parser) from the web application's classes.
>Now web applications can have their own XML parser.

Thanks for this tidbit! Fortunately, I run a development server, so going 
to 3.3 or 4.0 isn't a problem for me.

Although, I must say, this solution doesn't strike me as the most 
elegant.  At least in the case of an xml parser.  Why should we have 
multiple copies of the same damn thing taking up extra resources?  I feel, 
that the real solution must come from xalan itself.  It should be possible 
to hand Xalan a list of class loaders that it can use to load extension 
functions and elements (actually, most libraries that for whatever reason 
do their own class loading should provide such an option).

Regards
Dmitry




RE: Encoding problem in Opera browser

2001-08-10 Thread Craig R. McClanahan



On Fri, 10 Aug 2001, Evgeniy Strokin wrote:

> Still problem.
> In TC4b7 I set request to UTF-8 encoding also (I use
> filters.SetCharacterEncodingFilter
> encoding in web.xml and request.setCharacterEncoding())
> I removed
> param=new String(param.getBytes("iso-8859-1"),"UTF-8");
> and leaved only
> String param=_request.getParameter(name);
> Exactly the same result: in IE and NS every things fine from Opera value is
> cut.
> 

I don't use Opera, so I don't know if this is a stupid question, but ...
are you sure Opera is really encoding the parameters in UTF-8 like you
expect it to?

Craig