Re: Informix connection pooling via JNDI resource

2002-03-21 Thread Lev Assinovsky

Current connection pool (Tyrex) provides just straight connections.
Try  DBCP. It's not released yet but works.
You need three subprojects: collections, pool, and dbcp. All are under 
commons. Take nightly builds (collections is released) and put all three
jars into $CATALINA_HOME/common/lib.
In Jndi resource for your pool add:
parameternamefactory/name
  
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter

The next question is where are going to create pool.
To share connections you need something with application scope.
I use bean with scope=application.
As soon you destroy your datasource you lose your connection pool. 
[EMAIL PROTECTED] wrote:
 
 Hi,
 
 Does anybody have experience with jakarta-tomcat-4.0.2 and connection pooling
 setup as a jndi resource (server.xml) for Informix DB (vIDS2000)
 
 I use the informix jdbc driver (ifxjdbc.jar).
 
 In fact everything works, I get no errors, except that the application keeps
 opening and closing the database connectinos which is not the meaning of
 connection pooling.
 
 I didn't experience this behaviour with the same config and application for eg
 Oracle, My Sql ... so I think it isn't the configuration.
 
 did anyone manage to setup a working connection pooling for informix via jndi
 resource, or experienced the same problems?
 
 greetings,
 
 Erwin Ravau
 
 -
 This mail sent through Tiscali Webmail (http://webmail.tiscali.be)
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: problems running tomcat4.04b1 under cygwin - RECOMMENDATION

2002-03-21 Thread tek1

before, i had problems running the both startup.sh and catalina.sh files as 
they were under cygwin.

however, i made the below changes and everything is working ok.  is it 
possible to update the below files in the distribution to includes the 
following changes?


startup.sh


 ADD THE BELOW LINES AT THE BEGINNING OF THE FILE AFTER THE COMMENTS SECTION

cygwin=false
case `uname` in
CYGWIN*) cygwin=true;;
esac
echo CYGWIN usage: $cygwin



 MODIFY LAST LINE TO READ

if $cygwin ; then
   exec $PRGDIR/$EXECUTABLE run $@
else
   exec $PRGDIR/$EXECUTABLE start $@
fi







catalina.sh
-

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
   JAVA_HOME=`cygpath --path --windows $JAVA_HOME`
   CATALINA_HOME=`cygpath --path --windows $CATALINA_HOME`
   CLASSPATH=`cygpath --path --windows $CLASSPATH`
   JSSE_HOME=`cygpath --path --windows $JSSE_HOME`

   
    ADD THE BELOW 2 LINES
   
   CATALINA_BASE=`cygpath --path --windows $CATALINA_BASE`
   CATALINA_TMPDIR=`cygpath --path --windows $CATALINA_TMPDIR`
fi




after making the above changes, tomcat runs fine under cygwin when executed 
as follows:

[TOMCAT_HOME]/bin/startup.sh



alexander, thanks for your help!  :)



At 11:09 02/03/20 +0100, you wrote:
Hi Tek,

Why are you using cygwin? I mean, I know the Windows command line sucks, but
you are not using it with tomcat, you are basically just starting the
tomcat main class with it. So there is not need for an advanced shell as far
as I can see.

  i'm trying to run tomcat on windows2000 using cygwin.  i've set my
  JAVA_HOME and TOMCAT_HOME environment variables (in /home/user/.bashrc),
  and are as follows:
  java runs fine whenever i type java   however, when i change to the
  TOMCAT_HOME/bin directory and type startup.sh, the following is
  displayed
  and nothing else happens.
  $ bin/startup.sh
  Using CATALINA_BASE:   /cygdrive/c/java/tomcat/404b1
  Using CATALINA_HOME:   c:\java\tomcat\404b1
  Using CATALINA_TMPDIR: /cygdrive/c/java/tomcat/404b1/temp
  Using JAVA_HOME:   c:\java\j2se\sun\131_02

At this moment startup.sh wants to open a new Window. Probably this doesn't
work using cygwin. I recommend using startup.bat on windows and startup.sh
when using unix. At least as long as you are not the ultimate cygwin crack
who knows how to debug shell scripts and find a workaround here.

Addition: The problem cease to exists if startup.sh run whould pass on the
run parameter to catalina.sh, which - at least in the .bat version - it
doesn't do, though IMHO it should...

Addition 2: Try using catalina.sh run instead of startup, this does not
open a new window (look at startup.sh first to see what it does before
calling catalina.sh and include this to catalina.sh if needed)

Hope that helps,
Alexander


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.0.2 Macintosh Bug VERIFIED and KILLED

2002-03-21 Thread Anders Rundgren

In:

org.apache.catalina.util.CookieTools.java

a flag Secure is added to JSESSIONIDs for SSL sessions.

This is incompatible with Mac IE 5.0.  RFC-compliant though

What is the *future* way to handle this?
We of course patched our TC.  Open Source is just GREAT!

Best Regards
Anders Rundgren



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TC 4 - URLRewrite :: repost

2002-03-21 Thread Reynir Hübner

yes.. I am interested in that.
thanx
-reynir





 -Original Message-
 From: James Williamson [mailto:[EMAIL PROTECTED]]
 Sent: 20. mars 2002 20:55
 To: Tomcat Users List
 Subject: Re: TC 4 - URLRewrite :: repost
 
 
 Hi Reynir,
 
 I looked into this quite deeply, it seems like you can't get 
 a handle on the
 url requested (to change) unless
 you go very deep into Tomcat's internals. As it happens I'm testing a
 modified mod_webapp which
 appears to work quite nicely letting you use Apache's rewrite 
 mechanism
 (which mod_webapp normally ignores completely).
 I should have finished my tests by this evening is you want 
 to give it a
 try.
 
 Regards,
 
 James Williamson
 www.nameonthe.net
 
 - Original Message -
 From: Reynir Hübner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 20, 2002 7:35 PM
 Subject: RE: TC 4 - URLRewrite :: repost
 
 
  thanx james...
 
  Client side redirect is not good enough... for what I was thinking.
 
  I am not really understanding your comment on how to do it 
 internally.
  If I understand it correctly I might want to write a 
 Connector that does
  the URLrewriting for me, (something like mod_webapp or
  coyote+urlrewrite).
 
  or is it easyer (and more portable onto other servers) to 
 write a filter
  that uses requestDispatcher.redirect(new/path)? (sorry I 
 don't know
  the filters api very well)
 
  hmm I also noticed a function within Defaultservlet 
 ds.rewrite(path)...
  is it possible somehow to work with this ?
 
 
  thanx again..
  -r
 
 
 
   -Original Message-
   From: James Williamson [mailto:[EMAIL PROTECTED]]
   Sent: 20. mars 2002 19:08
   To: Tomcat Users List
   Subject: Re: TC 4 - URLRewrite :: repost
  
  
   Hi Reynir,
  
   I had a look at doing this, from having a look at the code,
   the only thing
   you can do
   is a client side redirect (i.e. sending back a HTTP 302 to
   the redirected
   page). From what
   I gathered you've got to start going right up the food chain
   within Tomcat
   to do it internally,
   i.e. Filter-Value-Container-Connector
  
   Regards,
  
   James Williamson
   www.nameonthe.net
   - Original Message -
   From: Reynir Hubner [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Wednesday, March 20, 2002 6:18 PM
   Subject: RE: TC 4 - URLRewrite :: repost
  
  
hey guys, I got no replies.. so this is a repost of the 
 same message
from early this morning.. (hope someone will notice it this
   time.. ).
   
   
 Hi,

 I'm looking for the best way of writing a URLRewrite for
   tomcat that
 works similar to mod_rewrite in apache.
 Does anyone have an opinion on this matter, should I
   write a filter or
 extend some of the Tomcat base servlets such as 
 DefaultServlet or
 InvokerServlet, or even write some kind of an addition
   onto coyote.

 I think filter is the correct way to do it.. what's 
 your opinion ?

 thanx...
 [EMAIL PROTECTED]









 --
 To unsubscribe:
   mailto:[EMAIL PROTECTED]
 For additional commands:
   mailto:[EMAIL PROTECTED]
 Troubles with the list:
   mailto:[EMAIL PROTECTED]


   
--
To unsubscribe:
   mailto:[EMAIL PROTECTED]
For additional commands:
   mailto:[EMAIL PROTECTED]
Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
  
  
   --
   To unsubscribe:   
mailto:[EMAIL PROTECTED]
  For additional commands:
mailto:[EMAIL PROTECTED]
  Troubles with the list:
mailto:[EMAIL PROTECTED]
 
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Of topic: When to use J2EE

2002-03-21 Thread AMRAN121

Hi

I normally program using JSP and Java Beans. I wanted to know why you need to 
program using EJB. I have read information at the Sun site but I really would 
like someone to share their personal experience of a situation where you 
would need to use it (Does it offer more security? Is their a good mailing 
list that I can join?). 
I have seen Tomcat does not do EJB so I have decided to  look at JBoss which 
is mentioned often in this mailing list are there anymore free EJB servers 
with good support. Any advice is most appreciated.

Thanxs in advance
Amran



Tomcat 4.0.4 and IIS please help?...........

2002-03-21 Thread Carlos Martins

Hello,

Could anyone please help me configure this setup?
ISS calling Tomcat. 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Unable to create jar cache

2002-03-21 Thread Yu-Meng Chong

Hi All !

I downloaded the latest version, Tomcat 4.0.3 for Linux and untarred it.
When I launch it, I get an error that says :  Error unable to create jar
cache in /tmp directory. I never encountered this error in any of the
previous versions of Tomcat I have downloaded and used, so this came as a
surprise to me. Obviously, Tomcat cannot write a jar cache file to the /tmp
directory. I checked my file permissions to /tmp and everything seems OK
(i.e. readable, writeable globally.). So, anybody enocuntered the same error
before ? It doesn't affect any of the samples, or my previous servlets, but
it may cause problems down the road -- I'm not sure...

Tomcat was run on a clean Turbolinux Workstation 7.0 install, on a Dell
system. Any help would be deeply appreciated.

Regards,
pascal chong




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Unable to create jar cache

2002-03-21 Thread James Williamson

You sure you haven't run out of disk space?

James Williamson
www.nameonthe.net
- Original Message -
From: Yu-Meng Chong [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 10:28 AM
Subject: Unable to create jar cache


 Hi All !

 I downloaded the latest version, Tomcat 4.0.3 for Linux and untarred it.
 When I launch it, I get an error that says :  Error unable to create jar
 cache in /tmp directory. I never encountered this error in any of the
 previous versions of Tomcat I have downloaded and used, so this came as a
 surprise to me. Obviously, Tomcat cannot write a jar cache file to the
/tmp
 directory. I checked my file permissions to /tmp and everything seems OK
 (i.e. readable, writeable globally.). So, anybody enocuntered the same
error
 before ? It doesn't affect any of the samples, or my previous servlets,
but
 it may cause problems down the road -- I'm not sure...

 Tomcat was run on a clean Turbolinux Workstation 7.0 install, on a Dell
 system. Any help would be deeply appreciated.

 Regards,
 pascal chong




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4 with Apache 1.3

2002-03-21 Thread Arnaud Heritier

Hi robert !

I wrote this e-mail this morning.
It could help you !

good luck.


==


Firstly I think it is better to get tomcat 4.0.1 or higher because the ajp module 
isn't packaged in the 4.0.
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/
After that you need the module mod_jk for apache. You can downlaod the .dll for 
windows or the .so for unixes from the Tomcat 3.3 distrib :
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/

Tomcat configuration :
-edit the conf/server.xml
-uncomment the AJP 1.3 connector :
!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

Apache configuration :
-copy the mod_jk module under the directory modules (for windows) or libexec (for 
unixes)
-copy the workers.properties attached to this mail in the conf directory.
-Edit it and modify the values of : workers.tomcat_home, workers.java_home and ps
-Edit your httpd.cong file.
- Add at the bottom this lines :

#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll

JkWorkersFile C:/Programs/Apache1.3.22/conf/workers.properties
JkLogFile C:/Programs/Apache1.3.22/logs/mod_jk.log

#
# Log level to be used by mod_jk
#
JkLogLevel error

###
# SSL configuration   #
# 
# By default mod_jk is configured to collect SSL information from
# the apache environment and send it to the Tomcat workers. The
# problem is that there are many SSL solutions for Apache and as
# a result the environment variable names may change.
#
# The following (commented out) JK related SSL configureation
# can be used to customize mod_jk's SSL behaviour.
# 
# Should mod_jk send SSL information to Tomact (default is On)
# JkExtractSSL Off
# 
# What is the indicator for SSL (default is HTTPS)
# JkHTTPSIndicator HTTPS
# 
# What is the indicator for SSL session (default is SSL_SESSION_ID)
# JkSESSIONIndicator SSL_SESSION_ID
# 
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
# JkCIPHERIndicator SSL_CIPHER
# 
# What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT)
# JkCERTSIndicator SSL_CLIENT_CERT
# 
# #
###

#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

#
# Auto configuration for the /examples context starts.
#

#
# The following line makes apache aware of the location of the /examples context
#
Alias /examples C:/Programs/Tomcat4.0.1/webapps/examples
Directory C:/Programs/Tomcat4.0.1/webapps/examples
Options Indexes FollowSymLinks
/Directory

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13

#
# The following line prohibits users from directly accessing WEB-INF
#
Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory C:/Programs/Tomcat4.0.1/webapps/examples/WEB-INF/
AllowOverride None
deny from all
/Directory

#
# The following line prohibits users from directly accessing META-INF
#
Location /examples/META-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory C:/Programs/Tomcat4.0.1/webapps/examples/META-INF/
AllowOverride None
deny from all
/Directory

###
# Auto configuration for the /examples context ends.
###

#
# Auto configuration for the /admin context starts.
#

#
# The following line makes apache aware of the location of the /admin context
#
Alias /admin C:/Programs/Tomcat4.0.1/webapps/admin
Directory C:/Programs/Tomcat4.0.1/webapps/admin
Options Indexes FollowSymLinks
/Directory

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /admin/servlet/* ajp13
JkMount /admin/*.jsp ajp13

#
# The following line prohibits users from directly accessing WEB-INF
#
Location /admin/WEB-INF/
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory C:/Programs/Tomcat4.0.1/webapps/admin/WEB-INF/
AllowOverride None
deny from all
/Directory

#
# The following line prohibits users from 

RE: Tomcat 4.0.4 and IIS please help?...........

2002-03-21 Thread Carlos Martins

Most helpful!! 
many thanks!
Carlos

-Original Message-
From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 21 de Março de 2002 10:21
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 4.0.4 and IIS please help?...


Check this link: http://www.vacodi.com/howto/tomcat/iisnt/

***
Pedro Gaspar
PT Prime
DMK / GSV
Tel:  +351 21 500 41 43
Fax: +351 21 500 45 85
Email: [EMAIL PROTECTED]
***

 [EMAIL PROTECTED] 03/21/02 09:40 
Hello,

Could anyone please help me configure this setup?
ISS calling Tomcat. 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Unable to create jar cache

2002-03-21 Thread Yu-Meng Chong

Hmm... well, according to df it says that only 4% of the /tmp partition is
being used up.

Thanks and Regards,
pascal chong


- Original Message -
From: James Williamson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 6:21 PM
Subject: Re: Unable to create jar cache


 You sure you haven't run out of disk space?

 James Williamson
 www.nameonthe.net
 - Original Message -
 From: Yu-Meng Chong [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, March 21, 2002 10:28 AM
 Subject: Unable to create jar cache


  Hi All !
 
  I downloaded the latest version, Tomcat 4.0.3 for Linux and untarred it.
  When I launch it, I get an error that says :  Error unable to create
jar
  cache in /tmp directory. I never encountered this error in any of the
  previous versions of Tomcat I have downloaded and used, so this came as
a
  surprise to me. Obviously, Tomcat cannot write a jar cache file to the
 /tmp
  directory. I checked my file permissions to /tmp and everything seems OK
  (i.e. readable, writeable globally.). So, anybody enocuntered the same
 error
  before ? It doesn't affect any of the samples, or my previous servlets,
 but
  it may cause problems down the road -- I'm not sure...
 
  Tomcat was run on a clean Turbolinux Workstation 7.0 install, on a Dell
  system. Any help would be deeply appreciated.
 
  Regards,
  pascal chong
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Odp: Re: Unable to create jar cache

2002-03-21 Thread tszacon


Hi !

I've changed VM from Sun to IBM and now i have exactly the same problem, so
maybe it is not tomcat false.

Any other suggestions ?

Tom


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: problems running tomcat4.04b1 under cygwin - RECOMMENDATION

2002-03-21 Thread Alexander Reifinger

[tomcat on cygwin]
 alexander, thanks for your help!  :)

Oh, did I?
I just pointed out the opening window, the honor is yours ;-)
Thanks anyway!

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Re: Unable to create jar cache

2002-03-21 Thread Yu-Meng Chong

Hey ! You could be on to something here !! I'm using the IBM JDK as well !!
I'm going to check this out right now ...

Regards,
pascal chong


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 7:35 PM
Subject: Odp: Re: Unable to create jar cache



 Hi !

 I've changed VM from Sun to IBM and now i have exactly the same problem,
so
 maybe it is not tomcat false.

 Any other suggestions ?

 Tom


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache/Tomcat security issue -- URGENT

2002-03-21 Thread Surya Suravarapu

I didn't get any responses, so I'm reposting with some summary. I'm 
pretty sure some body might have a solution for this.

Summary:
Is it possible to protect a resource in a particular folder which is 
under web application context? By protection I mean, only my 
application has to use that resource and if any body else accesses it 
manually he must either get access denied or a dialog box with 
username and password.

Please see below for more details.

Thanks.
-Surya

- Original Message -
From: Surya Suravarapu [EMAIL PROTECTED]
Date: Wednesday, March 20, 2002 8:57 pm
Subject: Apache/Tomcat security issue -- URGENT

 I'm using Apache 1.3.22 and Tomcat 4.0.2 on Windows NT/2000.
 
 I've a context called WebApp whose docBase=E:\WebApp. So, when I 
 point my browser to http://localhost/WebApp/main it will take me 
 to the 
 login screen of the application.
 
 There is a folder called Reports in my E:\WebApp. Some part of 
 my 
 application is using Response.sendRedirect() and displaying the 
 requested file (from the Reports folder) to the browser. That's 
 fine. I 
 want to show the files from that folder only through the 
 application 
 and I have to configure my web server in such a way that it denies 
 requests if a User enters the file name manually like 
 http://localhost/WebApp/Reports/some-file.xls. Please help me if 
 you 
 have a solution for this.
 
 Thanks.
 -Surya
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: petstore 1.3 on Tomcat 4 as J2EE server

2002-03-21 Thread Randy Layman



 -Original Message-
 From: robert rowntree [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 12:17 AM
 To: [EMAIL PROTECTED]
 Subject: petstore 1.3 on Tomcat 4 as J2EE server
 
 
 without running the J2EE server that comes with the 
 J2SDKEE1.3 download, I tried deploying the Petstore app. 
 directly to a running instance of Tomcat 4.04. and got ANT 
 1.4.1 deployment errors like:


snip

 
 Isn't enough of the J2EE stuff  built in Tomcat4 so that I 
 could just use the localhost instance of tomcat in place of 
 the J2EE server that is bundled with the Petstore. I checked 
 docs. for Tomcat and for config attrs. like useNaming that 
 allude to built in J2EE stuff in the InitialContexts from the 
 container. 
 
 My question is what options do i have to run J2EE sample 
 apps. directly on Tomcat4.0.4 as a J2EE implementation?

None.  You need an J2EE server to run enterprise beans, etc.  Tomcat only
supports JSPs and Servlets (and includes a few other APIs like JNDI and
JavaMail), but doesn't include support for the full environment.  You will
need another package (like the Sun's J2EE implementation, JBoss, WebSphere,
Weblogic, etc).

Randy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Re: Unable to create jar cache

2002-03-21 Thread Yu-Meng Chong

You are absolutely right !!! Looks like 13 is the unlucky number for IBM
(their most recent release is SR13). I reverted back to the January Service
Release of IBM's JDK and the error disappeared. I guess I'll have to
feedback this bug on the IBM newsgroup...

Thanks a million, Tom !! You saved me a LOT of time !!

Regards,
pascal chong


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 7:35 PM
Subject: Odp: Re: Unable to create jar cache



 Hi !

 I've changed VM from Sun to IBM and now i have exactly the same problem,
so
 maybe it is not tomcat false.

 Any other suggestions ?

 Tom


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Apache/Tomcat security issue -- URGENT

2002-03-21 Thread Barney Hamish

I had a similar problem. I kept the files out of the webapps folder. I wrote
a servlet that checks the username before serving up the file. If the user
has access to the file then it sends it otherwise it blocks access.

Hamish

-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 1:18 PM
To: Tomcat Users List
Subject: Re: Apache/Tomcat security issue -- URGENT


I didn't get any responses, so I'm reposting with some summary. I'm 
pretty sure some body might have a solution for this.

Summary:
Is it possible to protect a resource in a particular folder which is 
under web application context? By protection I mean, only my 
application has to use that resource and if any body else accesses it 
manually he must either get access denied or a dialog box with 
username and password.

Please see below for more details.

Thanks.
-Surya

- Original Message -
From: Surya Suravarapu [EMAIL PROTECTED]
Date: Wednesday, March 20, 2002 8:57 pm
Subject: Apache/Tomcat security issue -- URGENT

 I'm using Apache 1.3.22 and Tomcat 4.0.2 on Windows NT/2000.
 
 I've a context called WebApp whose docBase=E:\WebApp. So, when I 
 point my browser to http://localhost/WebApp/main it will take me 
 to the 
 login screen of the application.
 
 There is a folder called Reports in my E:\WebApp. Some part of 
 my 
 application is using Response.sendRedirect() and displaying the 
 requested file (from the Reports folder) to the browser. That's 
 fine. I 
 want to show the files from that folder only through the 
 application 
 and I have to configure my web server in such a way that it denies 
 requests if a User enters the file name manually like 
 http://localhost/WebApp/Reports/some-file.xls. Please help me if 
 you 
 have a solution for this.
 
 Thanks.
 -Surya
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Servlet wierd behaviour regarding concurrency in tomcat 4.0.1(Sorry if i sent it twice)

2002-03-21 Thread Achilleus Mantzios

Hi,
I have seen a strange threading behaviour in catalina engine.
For servlets that
a) Dont implement SingleThreadModel
b) Dont synchronize over resources
c) Dont have service methods synchronized,

the server serves 2 concurrent requests to 2 clients requesting the same URL
sequentially.
Suppose the following servlet is mapped to /servlet/ThreadTest.

When i invoke from 2 clients
http://myserver/servlet/ThreadTest?foo1=bar1foo2=bar2 and
http://myserver/servlet/ThreadTest?foo2=bar2foo1=bar1 respectively

the server seems to spawn 2 threads running the service method of the servlet
as expected.

However when i invoke the following 2 urls (or in general IDENTICAL URLS)
e.g.

http://myserver/servlet/ThreadTest?foo1=bar1foo2=bar2 and
http://myserver/servlet/ThreadTest?foo1=bar1foo2=bar2 respectively

then the threads (thread?) run as if i had synchronized the service method.

This looks like a bug, here is the source of the simple servlet.

The servlet is as follows
/*/
import javax.servlet.*;
import javax.servlet.http.*;

public class ThreadTest extends HttpServlet {  
public void init(ServletConfig config) throws ServletException {
super.init(config);
}

protected void processRequest(HttpServletRequest,HttpServletResponse 
response)
throws ServletException, java.io.IOException {
response.setContentType(text/html);
System.out.println(In the begin damnit);
try {
Thread.sleep(1);
}
catch (Exception e) {}
} 

protected void doGet(HttpServletRequest request, HttpServletResponse 
response)
throws ServletException, java.io.IOException {
processRequest(request, response);
} 
protected void doPost(HttpServletRequest request, HttpServletResponse 
response)
throws ServletException, java.io.IOException {
processRequest(request, response);
}
}

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel:+30-10-8981112
fax:+30-10-8981877
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.1 to 4.0.3 upgrade problem

2002-03-21 Thread Cox, Charlie

compile your sources with debug turned on. This will give you line numbers

This is a problem in your MnvuPage class. Some object is null and you don't
check for null before using it.

Charlie

 -Original Message-
 From: Joel Sather [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 20, 2002 2:32 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat 4.0.1 to 4.0.3 upgrade problem
 
 
 
 This is some more info about this problem.  The error I get from the
 servlet is this:
 
 java.lang.NullPointerException
   at mnvu.MnvuPage.(Unknown Source)
   at mnvu.MnvuServlet.doGet(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
 ...
 
 Since it does work when I call it directly via Tomcat, is there some
 sort of a context problem?  I believe the problem stems from a servlet
 initialization failure when called via Apache, but I'm having some
 problems finding exactly where to look.  Note that this does work fine
 under Tomcat 4.0.1, but not 4.0.2 or 4.0.3.  I'm almost tempted to
 believe that the servlet isn't getting the request/response values in
 the doGet() method--any idea what causes Unknown Source at that level?
 
 Thanks,
 Joel
 
 
 Joel Sather
 email: [EMAIL PROTECTED]
 phone: 651-917-4719
 
  [EMAIL PROTECTED] 03/19/02 05:29PM 
 
 Hi, I'm having a problem getting one webapp to work when I upgrade to
 4.0.3.  Although the webapp responds normally under the Tomcat port,
 when I try to access it via Apache (AJP1.3 connector), it somehow gets
 a
 null pointer error.  The strange thing is that there are two other
 apps
 that have identical frameworks that work just fine via Apache.  The
 problem app also has some JSP files and they work just fine--it is
 just
 the servlets that fail.  Does Apache somehow trash the request header
 in
 4.0.3 or something?  Any help would be great, I've been messing with
 this all day.  Also, it failed in the same way under 4.0.2.
 
 Working system: Apache 1.3.20 w/ AJP1.3 and Tomcat 4.0.1 (self built)
 Failing systems: Apache 1.3.20 w/ AJP1.3 and Tomcat 4.0.2 or 3 binary
 builds
 Configurations: Same WAR deployments and server.xml, web.xml configs
 all around.  Apache is tweaked to point to the modified
 workers.properties file.
 System: Sun Solaris (SunOS 5.7--forget what that is in Solaris
 numbers).
 
 Let me know what other info I can provide about the system.  The
 reason
 I need to upgrade is due to some problems with Tomcat 4.0.1 hanging
 under heavy load.
 
 Thanks,
 Joel
 
 
 Joel Sather
 email: [EMAIL PROTECTED] 
 phone: 651-917-4719
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




using jsp:getProperty with session scope

2002-03-21 Thread Isak Rickyanto

Please help me learn about getProperty ...

My first page is :

%@ page language=java session=true %
jsp:useBean id=status class=learnjsp.Status scope=session /
Set The property
jsp:setProperty name=status property=name value=Isak Rickyanto /
jsp:setProperty name=status property=married value=true /

View name and statushr
Name : jsp:getProperty name=status property=name /br
Has Married ? : jsp:getProperty name=status property=married /

Then the second page :
%@ page language=java session=true %
jsp:useBean id=status class=learn.Status scope=session /

View name and statushr
Name : jsp:getProperty name=status property=nama /br
Has Married ? : jsp:getProperty name=status property=married /

I found that in the second page, property name and married can't get the
properti from the first page.
Why? Anybody can explain this ??
The bean is saved in the session in the first page and in the second page I
have defined in the jsp:useBean that the scope is session.
Why the getProperty view the empty value ??



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Please help me found Jar file needed to compile Tag Handler

2002-03-21 Thread Isak Rickyanto

Hello all please help me... OK...

I try to compile Java program to make simple custom tag
I found error when compile it... I think because it doesn't found the jar
file needed to compile..
I found that the jar file needed to compile in Tomcat 3 is servlet.jar
but I use Tomcat 4.0.1 now... and I have set PATH, CLASSPATH in my
autoexec.bat like this :

set
CLASSPATH=c:\tomcat4\server\lib\catalina.jar;tomcat4\server\lib\servlets-def
ault.jar
set CATALINA_HOME=c:\tomcat4
set JAVA_HOME=c:\jdk1.3.1

PATH c:\jdk1.3.1\bin;c:\tomcat4\lib

Is it right ? I don't know the jar file needed...
so I can import this :

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.http.HttpServletRequest;

Thank's for your attention



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: using jsp:getProperty with session scope

2002-03-21 Thread Ralph Einfeldt

Probably because you lost your session between the pages.

Print out the session id.

Make shure that you have cookies enabled in the browser or
that you use response.encodeUrl() to create the link between 
the two pages.

 -Ursprüngliche Nachricht-
 Von: Isak Rickyanto [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 21. März 2002 15:05
 An: Tomcat User Group
 Betreff: using jsp:getProperty with session scope
snip/ 
 I found that in the second page, property name and married 
 can't get the properti from the first page.
 Why? Anybody can explain this ??
snip/ 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




SV: Please help me found Jar file needed to compile Tag Handler

2002-03-21 Thread Klosa Uwe


smime.p7m
Description: application/pkcs7-mime


Re: Load Balacing Apache-Tomcat

2002-03-21 Thread Bernd Koecke

mod_jk from jakarta-tomcat-connectors should do the trick with the lb 
worker. When the lb-factor is set to the same value for all workers, it 
should work with round-robin and sticky sessions.

Bye

Bernd

Chris Ruegger wrote:
 We are using Apache as a front-end proxy to multiple tomcat instances
 running on
 back-end machines. We would like to get Apache to do simple round-robin
 load balancing to the Tomcat instances. Is there a module out there for
 Apache
 that would let us do this?
 Thanks
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



-- 
Dipl.-Inform. Bernd Koecke
UNIX-Entwicklung
Schlund+Partner AG
Fon: +49-721-91374-0
E-Mail: [EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.0 / Apache

2002-03-21 Thread l.marot

I've been playing for several months with tomcat as a standalone server and
it works fine but i'd like now to make it work with apache.

I've heard a lot about difficulties using mod_webapp, mod_jk, mod_jserv
could someone show me the right way ?

my conf : Apache 1.3.23 / tomacat 4.0 / Win2K


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat4.0.3 init startup script for solaris 8?

2002-03-21 Thread C Cayetano

All,

Does anyone have a stable init startup script for Tomcat 4.0.3 under Solaris
8? I've made serveral efforts to create one, but have been unsuccessful.

Thanks


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Servlet wierd behaviour regarding concurrency in tomcat 4.0.1

2002-03-21 Thread Achilleus Mantzios

Hi,
I have seen a strange threading behaviour in catalina engine.
For servlets that
a) Dont implement SingleThreadModel
b) Dont synchronize over resources
c) Dont have service methods synchronized,

the server serves 2 concurrent requests to 2 clients requesting the same URL
sequentially.
Suppose the following servlet is mapped to /servlet/ThreadTest.

When i invoke from 2 clients
http://myserver/servlet/ThreadTest?foo1=bar1foo2=bar2 and
http://myserver/servlet/ThreadTest?foo2=bar2foo1=bar1 respectively

the server seems to spawn 2 threads running the service method of the servlet
as expected.

However when a invoke the follwing 2 urls (or in general IDENTICAL URLS)
e.g.

http://myserver/servlet/ThreadTest?foo1=bar1foo2=bar2 and
http://myserver/servlet/ThreadTest?foo1=bar1foo2=bar2 respectively

then the threads (thread?) run as if i had synchronized the service method.

This looks like a bug, here is the source of the simple servlet.

The servlet is as follows
/*/
import javax.servlet.*;
import javax.servlet.http.*;

public class ThreadTest extends HttpServlet {  
public void init(ServletConfig config) throws ServletException {
super.init(config);
}

protected void processRequest(HttpServletRequest,HttpServletResponse 
response)
throws ServletException, java.io.IOException {
response.setContentType(text/html);
System.out.println(In the begin damnit);
try {
Thread.sleep(1);
}
catch (Exception e) {}
} 

protected void doGet(HttpServletRequest request, HttpServletResponse 
response)
throws ServletException, java.io.IOException {
processRequest(request, response);
} 
protected void doPost(HttpServletRequest request, HttpServletResponse 
response)
throws ServletException, java.io.IOException {
processRequest(request, response);
}
}

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel:+30-10-8981112
fax:+30-10-8981877
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache/Tomcat security issue -- URGENT

2002-03-21 Thread todd tredeau

This is sort of easy... of course you run your site through Apache... 
which in turns does this connection

deny from all somedirectory

in your application or code...

include something from somedirectory

todd
http://www.wiserlabz.com
collaborative effort to promote Novell and Open Source solutions
include ... www.link-tool.com on your site

Surya Suravarapu wrote:

I'm using Apache 1.3.22 and Tomcat 4.0.2 on Windows NT/2000.

I've a context called WebApp whose docBase=E:\WebApp. So, when I 
point my browser to http://localhost/WebApp/main it will take me to the 
login screen of the application.

There is a folder called Reports in my E:\WebApp. Some part of my 
application is using Response.sendRedirect() and displaying the 
requested file (from the Reports folder) to the browser. That's fine. I 
want to show the files from that folder only through the application 
and I have to configure my web server in such a way that it denies 
requests if a User enters the file name manually like 
http://localhost/WebApp/Reports/some-file.xls. Please help me if you 
have a solution for this.

Thanks.
-Surya


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.4-b1 does not work Help Help..................

2002-03-21 Thread todd tredeau

download a build older than 3-7-2002

greetings

todd


Uma Munugala wrote:

Hi


I have written a servlet which implements SingleThreadModel
and used already existing public static syncronized classes to access
database.
these classes were used for standalone application.
does static synchronized has any problem with servlets

when I deployment my servlet and try to  run it gives me error, its stack
trace is below.

when login reaches to access static synchronized class member or static
synchronized class method Iam getting
problem.

Funny thing is sames servlet and same code works in java web server. Do I
need to do some thing else in
tomcat 4.0.4-b1 to make it work. I tried with tomcat 4.0.3 also.
I have seen similar problem in archives but that work around does not work
for me.

__  Error _

javax.servlet.ServletException: Invoker service() exception
at

org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java

:508)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:247)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:213)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:213)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:193)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

va:243)
at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
at

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

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

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja

va:190)
at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase

.java:475)
at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2

46)
at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
at

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

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180

)
at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.

java:170)
at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170

)
at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
at

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

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

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java

:174)
at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
at

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

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

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:

1017)
at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1115

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


root cause

java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection

(Illegal

Variable name )
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo

ader.java:1643)
at

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav

a:937)
at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav

a:1372)
at


Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

I am just restarting this thread. My problem remains
unsolved. I am running Tomcat4.01/NT. The setup should
be OK as the examples run.
I am trying to deploy the HelloWorldExample. 
My directory structure is-
Tomcat4\webapps\search\WEB-INF\classes
I have my .htm file in the \search directory and my
class in the \classes and my web.xml in the \WEB-INF.
My web.xml looks like this- I have used the example
file to create it-
servlet
  servlet-nameHelloWorld/servlet-name
  description
HelloWorld
  /description
  servlet-classHelloWorldExample/servlet-class
/servlet
servlet-mapping
  servlet-nameHelloWorld/servlet-name
  url-pattern/hello/url-pattern
/servlet-mapping
Is this web.xml correct?

I have not been able to execute my servelt any which
way:
/hello
http://localhost:8080/search/servlet/HelloWorldExample
http://localhost:8080/search/servlet/HelloWorld
http://localhost:8080/search/HelloWorld
I either get a resource not found or 
java.util.MissingResourceException: Can't find bundle
for base name LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at
java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(Unknown Source)

 My question is how do I exceute it- from the /search
directory or from anywhere else using a full url path.
Thanks a lot,
Sanjay

__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Distribution of production systems??

2002-03-21 Thread Brown Bay

I have an application that is ready to ship and uses basically servlets and
JSPs. Our preferred system of choice is Tomcat/Apache, but there might be
scenarios where customers would like to choose Websphere or BEA or . In
this case we are considering packaging the application as a .war file and
sending this accross.

I tried the .war file generated with BEA yesterday and it did not work , but
the same war file worked with Websphere Studio. So my question is what are
the distribution methods that developers out there use to distribute their
web applications.

2nd question is what are EAR files and how do they differ from WAR files.

Thanks in advance.

TP

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0 / Apache

2002-03-21 Thread Chris Pheby

Here are my notes on Tomcat 4 / Apache / MySQL / Netbeans / Mozilla...

Perhaps someone wants to tell me of a suitable place (on Jakarta?) to host
documents like this.


Chris

-

1) Install Apache

Install Apache_1.3.22-win32-x86.exe (Windows Installer of latest stable
release) to c:\server\apache (actually places it in Apache subdirectory).
During installation select the Run as Service for all Users option.

Verify the installation in Control Panel / Services by checking for Apache.

2) Install MySQL

Install mysql-max-3.23.49-win.zip by unzipping and running setup.exe

Recommend installing to c:\server\mysql

Create c:\winnt\my.ini with the following contents:

[mysqld]
basedir=C:/projects/mysql
datadir=C:/projects/mysql/data

When you are done add c:\server\mysql\bin to the path environment variable.

You can get MySQL-Front from www.mysqlfront.de if you need a graphical front
end for the database.

Also available is MyODBC, which allows MySQL to be connected to by
applications utilising ODBC.


3) Install Java 2 Standard Edition 1.4

Run the J2SE installer, and choose to install to c:\Program Files\Java\J2SE.
Install all components and set it as a plugin for all browsers

Add the following to the PATH variable:

c:\Progra~1\J2SE\bin.
Install Tomcat 4.0.4 beta 1 LE
Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and run the installer. Take
care to install Tomcat as a Service when offered the option by the
installer.

Set the following environment variables:

JAVA_HOME - c:\Progra~1\Java\J2SE
CATALINA_HOME - c:\Progra~1\Java\Tomcat
Integrate Tomcat and Apache
Stop the Tomcat and Apache services. Then download mod_webapp from
jakarta.apache.org. Extract libapr.dll to c:\winnt\system32. Also extract
libapr.dll and mod_webapp.so to c:\server\apache\modules.

Add the following lines to httpd.conf:

LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
You need to configure a connector in httpd.conf (examples shown for the
modules you can export initially - remove the comments to enable them):

IfModule mod_webapp.c
WebAppConnection warpConnection warp localhost:8008
WebAppInfo /webapp-info
#WebAppDeploy examples warpConnection /examples
#WebAppDeploy webdav warpConnection /webdav
/IfModule
Before restarting Apache download Service+ from ActivePlus and use it to set
Apache as depending on Tomcat. Then restart Apache (Tomcat will restart
automatically).

4) Install JDBC Driver for MySQL

Download the MySQL JDBC driver.

Open the file (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip and extract
mm.mysql-2.0.11-bin.jar and place it in c:\program
files\java\j2se\jre\lib\ext. It will now be automatically available to Java
programs, without needing to add it to the classpath.

5) Install Mozilla Plugin

Copy the np* files from C:\Program Files\Java\J2SE\jre\bin to C:\Program
Files\Mozilla\Plugins.

Restart Mozilla

6) Install NetBeans

Install NetBeans to c:\Program Files\Java\NetBeans. The installer will
automatically detect the JDK.

Netbeans can debug Tomcat, if you want to enable this first remove the
existing Tomcat Service:

net stop Apache Tomcat
c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall Apache Tomcat
Next install the modified Tomcat service which is enabled for debugging:

Tomcat.exe -install Apache Tomcat
c:\progra~1\java\j2se\jre\bin\server\jvm.dll -Djava.class.path=c:\progra~1\j
ava\tomcat\bin\bootstrap.jar;c:\progra~1\java\tomcat\bin\servlet.jar;C:\Prog
ra~1\Java\J2SE\lib\tools.jar -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_
socket,server=y,address=12999,suspend=n -Dcatalina.home=c:\progra~1\java\tom
cat\ -start org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out
c:\progra~1\java\tomcat\logs\stdout.log -err
c:\progra~1\java\tomcat\logs\stderr.log
Make the service depend on MySQL as before

Once Tomcat has been restarted go to Netbeans, and select the Debug / Attach
menu. Seelect JPDA as the Debugger Type, Socket Attach, the hostname of the
machine Tomcat is on, and 12999 as the port. It is now possible to debug the
running Tomcat server.

To assist debugging mount the Tomcat Sources in the Netbeans explorer:

C:\Program Files\Java\J2SE\src
C:\Program Files\Java\Tomcat\src\catalina\src\share
C:\Program Files\Java\Tomcat\src\catalina\src\test
C:\Program Files\Java\Tomcat\src\jasper\src\share

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of l.marot
Sent: 21 March 2002 08:08
To: Tomcat Users List
Subject: Tomcat 4.0 / Apache


I've been playing for several months with tomcat as a standalone server and
it works fine but i'd like now to make it work with apache.

I've heard a lot about difficulties using mod_webapp, mod_jk, mod_jserv
could someone show me the right way ?

my conf : Apache 1.3.23 / tomacat 4.0 / Win2K


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





RE: Servlet Deploy Problem Help

2002-03-21 Thread Randy Layman


The stack trace you included indicates that you are running the
servlet, but its throwing an exception.

 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 9:21 AM
 To: [EMAIL PROTECTED]
 Subject: Servlet Deploy Problem Help
 
 
 I either get a resource not found or 
 java.util.MissingResourceException: Can't find bundle
 for base name LocalStrings, locale en_US
   at
 java.util.ResourceBundle.throwMissingResourceException(Resourc
 eBundle.java:707)
   at
 java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
   at
 java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
   at HelloWorldExample.doGet(Unknown Source)
 

If your servlet wasn't being called then you wouldn't see it in the
stack trace.  I would suggest that you look at how you are loading resources
in your servlet (they are probably not in the classpath).

Randy

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Servlet Deploy Problem Help

2002-03-21 Thread Lance Smith

In you're web.xml change:
servlet-mapping
  servlet-nameHelloWorld/servlet-name
  url-pattern/hello/url-pattern
/servlet-mapping

to :
servlet-mapping
  servlet-nameHelloWorld/servlet-name
  url-pattern/hello/*/url-pattern
/servlet-mapping

Then you  should be able to call it like:
http://localhost:8080/search/hello/anything

Hope this helps
Lance


-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 8:21 AM
To: [EMAIL PROTECTED]
Subject: Servlet Deploy Problem Help


I am just restarting this thread. My problem remains
unsolved. I am running Tomcat4.01/NT. The setup should
be OK as the examples run.
I am trying to deploy the HelloWorldExample.
My directory structure is-
Tomcat4\webapps\search\WEB-INF\classes
I have my .htm file in the \search directory and my
class in the \classes and my web.xml in the \WEB-INF.
My web.xml looks like this- I have used the example
file to create it-
servlet
  servlet-nameHelloWorld/servlet-name
  description
HelloWorld
  /description
  servlet-classHelloWorldExample/servlet-class
/servlet
servlet-mapping
  servlet-nameHelloWorld/servlet-name
  url-pattern/hello/url-pattern
/servlet-mapping
Is this web.xml correct?

I have not been able to execute my servelt any which
way:
/hello
http://localhost:8080/search/servlet/HelloWorldExample
http://localhost:8080/search/servlet/HelloWorld
http://localhost:8080/search/HelloWorld
I either get a resource not found or
java.util.MissingResourceException: Can't find bundle
for base name LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
07)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at
java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(Unknown Source)

 My question is how do I exceute it- from the /search
directory or from anywhere else using a full url path.
Thanks a lot,
Sanjay

__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards.
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




many java processes

2002-03-21 Thread Dean Hiller

On linux did anybody ever get a linux patch for fixing the problem of one process per 
java thread.  I read on the sun bug parade they were going to port to a new threading 
model but we needed to update the linux threading  I have seen many e-mails 
complaining about how tomcat creates s many processes and this is due to a JVM 
thing not tomcat.  Does anybody know or is everyone just sitting by with many many 
java processes on their linux?
Any help, pointers you could give me would be great,
thanks,
Dean


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Log4j initialization problem

2002-03-21 Thread Sriram N

Hello,

Here's an idea, thouh I'm not sure it's a clean one...
1. In the contextStarted, get hold of the real path from the servlet context.
Let's say you get /var/tomcat/webapps/myapp/.
2. Set this to a System property
e.g. String currentWebAppPath = /var/tomcat/webapps/myapp/;
System.setProperty(myapp.LogFolder,currentWebAppPath+logs;
3. In the log4j.properties file, specify the file path as
log4j.appender.A1.File=${myapp.LogFolder}/LogMessages.txt
4. You'll now find all your logs being stored to this folder. You have to have
created this folder first ;-) You could always use File.mkdirs() in the
contextInitialized...

Now when you change your webapp's foldername, you'll find the logs going to the
right location...

Note: I don't have access to my comp, so there might be some syntax errors,
etc...

By the way, have you considered that the servlet container need not expand your
app's war ? I run my webapps this way lots of times. If the .war is not going
to be expanded, then the logs wont go to the sub folder...

And yes, you should post log4J configuration queries to the log4J interest
list, after first searching the archives ;-) There's active development going
on right now, and you just might get ideas from the developers themselves.

Sriram


Sriram
--- James Adams [EMAIL PROTECTED] wrote:
 Hello,
 
 I have tried the ServletContextListener approach suggested below by
 Sriram (thanks !) and I am still having the same problem, i.e. I get the
 log file (specified in my log4j.properties file) created under whatever
 directory I am at when I issue the tomcat start command.  It appears
 that the log file is being created and placed in the current working
 directory if I specify only the file name in the log4j.properties
 File entry.  If I specify the full path, such as
 
 log4j.appender.A1.File=/var/tomcat/webapps/myapp/LogMessages.txt
 
 then it creates and places the file exactly where it the entry
 specifies.  But I want to just specify the filename and have it created
 under the webapp's context directory, that way I won't have to remember
 to change the log4j.properties entry whenever the webapp is moved to
 another context directory or installed on another machine which might
 have a different webapps directory path.
 
 So is there a way to get the log file to be created and placed under its
 webapp's context directory ?
 
 Also would it be more appropriate to post this topic/thread to the log4j
 user group ([EMAIL PROTECTED]) ?
 
 Thanks in advance for any suggestions or clues.
 
 
 -James


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: many java processes

2002-03-21 Thread D. Jay Newman

 On linux did anybody ever get a linux patch for fixing the problem of one process 
per java thread.  I read on the sun bug parade they were going to port to a new 
threading model but we needed to update the linux threading  I have seen many 
e-mails complaining about how tomcat creates s many processes and this is due to 
a JVM thing not tomcat.  Does anybody know or is everyone just sitting by with many 
many java processes on their linux?
 Any help, pointers you could give me would be great,

As near as I can tell, Linux *doesn't* create multiple processes. If you
look closely at the output of ps all the java processes exist in the
same processes.

Linux (at least RedHat) comes with a ps that reports threads as well
as processes.
-- 
D. Jay Newman  !  All:  There's nothing we can't face...
[EMAIL PROTECTED]!  Anya: Except for bunnies...
http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problems with Database Connections

2002-03-21 Thread Andreas Metz


Hello, 

i hope you can help me here. I will make a Database Connection with the J2EE. In my 
Java File i make following procedure.

 Context beanCtx = new InitialContext();
 DataSource ds = (DataSource)beanCtx.lookup(java:/comp/env/Sprachdaten);
 dbConnection = ds.getConnection();
 dbStatement = dbConnection.createStatement();

know i want to know what files i also must edit that i can connect to my database at 
this way. 
I hope you can give me good links for docus that i can read what i have to do. I have 
read many bocks and was looking on many pages but
dont find anything helpfully for me. I hope you know what i mean. I know i must edit 
the server.xml file in the tomcat folder. But not how.
I will also use the sun.jdbc.odbc.JdbcOdbcDriver.

Thanxs for your help.

Mfg,
Andreas Metz

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Redirecting std err on win2000 to catalina.out

2002-03-21 Thread john bell


Sorry logging again.


My Tomact 4 std error stream on Win2000 is not directed at 
$CATALINA_HOME/logs/catalina.out
in the catalina.bat file.

Could anyone tell me the syntax to use please.

In addition within a servlet I use log(some message) and I cannot find where this is 
going to.


John



RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Thanks of the insight. The servlet is a HelloWorld
example. The only imports in the class are:
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
I would easily suppose these should be available to
Tomcat. If not what do I do.
Thanks
Sanjay
--- Randy Layman [EMAIL PROTECTED] wrote:
 
   The stack trace you included indicates that you are
 running the
 servlet, but its throwing an exception.
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 9:21 AM
  To: [EMAIL PROTECTED]
  Subject: Servlet Deploy Problem Help
  
  
  I either get a resource not found or 
  java.util.MissingResourceException: Can't find
 bundle
  for base name LocalStrings, locale en_US
  at
 

java.util.ResourceBundle.throwMissingResourceException(Resourc
  eBundle.java:707)
  at
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
  at
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
  at HelloWorldExample.doGet(Unknown Source)
  
 
   If your servlet wasn't being called then you
 wouldn't see it in the
 stack trace.  I would suggest that you look at how
 you are loading resources
 in your servlet (they are probably not in the
 classpath).
 
   Randy
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Servlet Deploy Problem Help

2002-03-21 Thread Randy Layman


Your problem isn't in the loaded classes (that would be a class not
found).  Instead look at where you are calling the method
java.util.ResourceBundle.getBundle.  The parameter you are passing in
references a resource that Tomcat can't find.

Randy

 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 9:56 AM
 To: Tomcat Users List
 Subject: RE: Servlet Deploy Problem Help
 
 
 Thanks of the insight. The servlet is a HelloWorld
 example. The only imports in the class are:
 import java.io.*;
 import java.text.*;
 import java.util.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 I would easily suppose these should be available to
 Tomcat. If not what do I do.
 Thanks
 Sanjay
 --- Randy Layman [EMAIL PROTECTED] wrote:
  
  The stack trace you included indicates that you are
  running the
  servlet, but its throwing an exception.
  
   -Original Message-
   From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, March 21, 2002 9:21 AM
   To: [EMAIL PROTECTED]
   Subject: Servlet Deploy Problem Help
   
   
   I either get a resource not found or 
   java.util.MissingResourceException: Can't find
  bundle
   for base name LocalStrings, locale en_US
 at
  
 
 java.util.ResourceBundle.throwMissingResourceException(Resourc
   eBundle.java:707)
 at
  
 
 java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
 at
  
 
 java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
 at HelloWorldExample.doGet(Unknown Source)
   
  
  If your servlet wasn't being called then you
  wouldn't see it in the
  stack trace.  I would suggest that you look at how
  you are loading resources
  in your servlet (they are probably not in the
  classpath).
  
  Randy
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards®
 http://movies.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: using jsp:getProperty with session scope

2002-03-21 Thread Isak Rickyanto

Thank's very much.. I found the problem is I disable cookie.. ;

Make shure that you have cookies enabled in the browser or
that you use response.encodeUrl() to create the link between 
the two pages.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Lance Thanks.
What does servlet-mapping mean- is it directory
structure or an alias to a servlet.I was trying to use
/hello as an alias for the HelloWorld servlet and try
calling it by /hello or by full URL /hello- am I
completely off on this. and what is this anything?
Thanks again


servlet-mapping
  servlet-nameHelloWorld/servlet-name
  url-pattern/hello/*/url-pattern
/servlet-mapping

Then you  should be able to call it like:
http://localhost:8080/search/hello/anything

--- Lance Smith [EMAIL PROTECTED]
wrote:
 In you're web.xml change:
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/url-pattern
 /servlet-mapping
 
 to :
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/*/url-pattern
 /servlet-mapping
 
 Then you  should be able to call it like:
 http://localhost:8080/search/hello/anything
 
 Hope this helps
 Lance
 
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 8:21 AM
 To: [EMAIL PROTECTED]
 Subject: Servlet Deploy Problem Help
 
 
 I am just restarting this thread. My problem remains
 unsolved. I am running Tomcat4.01/NT. The setup
 should
 be OK as the examples run.
 I am trying to deploy the HelloWorldExample.
 My directory structure is-
 Tomcat4\webapps\search\WEB-INF\classes
 I have my .htm file in the \search directory and my
 class in the \classes and my web.xml in the
 \WEB-INF.
 My web.xml looks like this- I have used the example
 file to create it-
 servlet
   servlet-nameHelloWorld/servlet-name
 description
   HelloWorld
 /description
  
 servlet-classHelloWorldExample/servlet-class
 /servlet
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/url-pattern
 /servlet-mapping
 Is this web.xml correct?
 
 I have not been able to execute my servelt any which
 way:
 /hello

http://localhost:8080/search/servlet/HelloWorldExample
 http://localhost:8080/search/servlet/HelloWorld
 http://localhost:8080/search/HelloWorld
 I either get a resource not found or
 java.util.MissingResourceException: Can't find
 bundle
 for base name LocalStrings, locale en_US
   at

java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
 07)
   at

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
   at

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
   at HelloWorldExample.doGet(Unknown Source)
 
  My question is how do I exceute it- from the
 /search
 directory or from anywhere else using a full url
 path.
 Thanks a lot,
 Sanjay
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards.
 http://movies.yahoo.com/
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JNDI - Custom Factory

2002-03-21 Thread Elisabeth Julg

Hi,

  I have a problem with NamingException : Cannot create resource instance
with code :

initCtx = new InitialContext(); }
envCtx = (Context) initCtx.lookup(java:comp/env);
System.out.println(envCtx.lookup(bean/MemoireFactory));
 ||
  NamingException : Cannot create resource instance

Have you an idea to correct this ?



Configuration :
---
 web.xml :
  resource-env-ref
resource-env-ref-namebean/MemoireFactory/resource-env-ref-name
resource-env-ref-typepastel.jsp.HD_Exemple/resource-env-ref-type
  /resource-env-ref

 server.xml :
  context 
Resource name=bean/MemoireFactory auth=Container
type=pastel.jsp.HD_Exemple/
ResourceParams name=bean/MemoireFactory
  parameter
namefactory/name
valuepastel.jsp.MemoireFactory/value
  /parameter
  /ResourceParams
/Context

MemoireFactory :

public class MemoireFactory implements ObjectFactory
{
  public MemoireFactory() {System.out.println(
MemoireFactory.constructeur);}
  public Object getObjectInstance(Object obj,Name name, Context nameCtx,
Hashtable environment)
throws NamingException
  {
// Acquire an instance of our specified bean class
HD_Exemple bean = new HD_Exemple();

// Customize the bean properties from our attributes
Reference ref = (Reference) obj;
Enumeration addrs = ref.getAll();
while (addrs.hasMoreElements())
{
  RefAddr addr = (RefAddr) addrs.nextElement();
  String nom = addr.getType();
  String value = (String) addr.getContent();
  System.out.println(MemoireFactory +nom+=+value);
}

// Return the customized instance
return (bean);
  }
}

I have read the Tomcat's HowTo about JNDI Resources.
The version of Tomcat is : 4.0.2.

Thanks for your help,

Elisabeth
Toulouse - France


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: many java processes

2002-03-21 Thread Dean Hiller

than why do they all have a different process id??  Also, how what would the option be 
to turn off viewing of threads and just view processes?
thanks for your help Jay,
Dean

D. Jay Newman wrote:

  On linux did anybody ever get a linux patch for fixing the problem of one process 
per java thread.  I read on the sun bug parade they were going to port to a new 
threading model but we needed to update the linux threading  I have seen many 
e-mails complaining about how tomcat creates s many processes and this is due to 
a JVM thing not tomcat.  Does anybody know or is everyone just sitting by with many 
many java processes on their linux?
  Any help, pointers you could give me would be great,

 As near as I can tell, Linux *doesn't* create multiple processes. If you
 look closely at the output of ps all the java processes exist in the
 same processes.

 Linux (at least RedHat) comes with a ps that reports threads as well
 as processes.
 --
 D. Jay Newman  !  All:  There's nothing we can't face...
 [EMAIL PROTECTED]!  Anya: Except for bunnies...
 http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Apache Tomcat response.setHeader(WWW-Authenticate,BASIC

2002-03-21 Thread mh

I use Apache 1.3.19  Tomcat 4.0.1 via mod_jk on Linux platform.

I try to do this in a servlet :

String authHeader = request.getHeader(Authorization);
if (authHeader != null) {
 AuthInternaute ai = new AuthInternaute(authHeader);
 String username = ai.getUsername();
 String password = ai.getPassword();
 allow = (validUsername.equals(username)  validPassword.equals(password));
}
else
{
 response.setHeader(WWW-Authenticate, BASIC realm=\+realm+\);
 response.sendError(response.SC_UNAUTHORIZED, Identification required / Autorisation 
nécessaire.); 
}

but Apache doesn't respond correctly and send an Internal Server Error instead of 
authentication dialog box.

It works fine with tomcat standalone. Perhaps a mod_jk problem, I don't know how to 
solve this problem.

Can someone have ideas ?

M.H.



Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC

2002-03-21 Thread David Cassidy

can you send the full set of headers that you get back ?

wget -s
will do this ..

D



mh wrote:

I use Apache 1.3.19  Tomcat 4.0.1 via mod_jk on Linux platform.

I try to do this in a servlet :

String authHeader = request.getHeader(Authorization);
if (authHeader != null) {
 AuthInternaute ai = new AuthInternaute(authHeader);
 String username = ai.getUsername();
 String password = ai.getPassword();
 allow = (validUsername.equals(username) 
validPassword.equals(password));
}
else
{
 response.setHeader(WWW-Authenticate, BASIC realm=\+realm+\);
 response.sendError(response.SC_UNAUTHORIZED, Identification required /
Autorisation nécessaire.); 
}

but Apache doesn't respond correctly and send an Internal Server Error
instead of authentication dialog box.

It works fine with tomcat standalone. Perhaps a mod_jk problem, I don't
know how to solve this problem.

Can someone have ideas ?

M.H.




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: many java processes

2002-03-21 Thread D. Jay Newman

I looked at my ps output, and they do seem to each have a different pid.

However, I will look into this. I *think* that I have native threads on
this machine.

I don't know ps well enough to find the right option, but there is always
man ps...

 than why do they all have a different process id??  Also, how what would the option 
be to turn off viewing of threads and just view processes?
 thanks for your help Jay,
 Dean
 
 D. Jay Newman wrote:
 
   On linux did anybody ever get a linux patch for fixing the problem of one 
process per java thread.  I read on the sun bug parade they were going to port to a 
new threading model but we needed to update the linux threading  I have seen many 
e-mails complaining about how tomcat creates s many processes and this is due to 
a JVM thing not tomcat.  Does anybody know or is everyone just sitting by with many 
many java processes on their linux?
   Any help, pointers you could give me would be great,
 
  As near as I can tell, Linux *doesn't* create multiple processes. If you
  look closely at the output of ps all the java processes exist in the
  same processes.
 
  Linux (at least RedHat) comes with a ps that reports threads as well
  as processes.
  --
  D. Jay Newman  !  All:  There's nothing we can't face...
  [EMAIL PROTECTED]!  Anya: Except for bunnies...
  http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


-- 
D. Jay Newman  !  All:  There's nothing we can't face...
[EMAIL PROTECTED]!  Anya: Except for bunnies...
http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC

2002-03-21 Thread mh

--16:17:44--  http://dev.cerib.reflexe.fr/cerib_BD
   = `cerib_BD'
Connexion vers dev.cerib.reflexe.fr:80...Connecté!
requête HTTP transmise, en attente de la réponse...302 Found
2 Date: Thu, 21 Mar 2002 15:17:44 GMT
3 Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk PHP/4.0.1pl2
mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 mod_gzip/1.3.19.1a
4 Location: http://dev.cerib.reflexe.fr/cerib/cerib_BD
5 Connection: close
6 Content-Type: text/html; charset=iso-8859-1
7
Location: http://dev.cerib.reflexe.fr/cerib/cerib_BD [suivant]
--16:17:44--  http://dev.cerib.reflexe.fr/cerib/cerib_BD
   = `cerib_BD'
Connexion vers dev.cerib.reflexe.fr:80...Connecté!
requête HTTP transmise, en attente de la réponse...500 Internal Server Error
2 Date: Thu, 21 Mar 2002 15:17:44 GMT
3 Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk PHP/4.0.1pl2
mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 mod_gzip/1.3.19.1a
4 Connection: close
5 Content-Type: text/html; charset=iso-8859-1
6
16:17:44 ERREUR 500: Internal Server Error.


- Original Message -
From: David Cassidy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 4:11 PM
Subject: Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC


 can you send the full set of headers that you get back ?

 wget -s
 will do this ..

 D



 mh wrote:

 I use Apache 1.3.19  Tomcat 4.0.1 via mod_jk on Linux platform.
 
 I try to do this in a servlet :
 
 String authHeader = request.getHeader(Authorization);
 if (authHeader != null) {
  AuthInternaute ai = new AuthInternaute(authHeader);
  String username = ai.getUsername();
  String password = ai.getPassword();
  allow = (validUsername.equals(username) 
 validPassword.equals(password));
 }
 else
 {
  response.setHeader(WWW-Authenticate, BASIC realm=\+realm+\);
  response.sendError(response.SC_UNAUTHORIZED, Identification required /
 Autorisation nécessaire.);
 }
 
 but Apache doesn't respond correctly and send an Internal Server Error
 instead of authentication dialog box.
 
 It works fine with tomcat standalone. Perhaps a mod_jk problem, I don't
 know how to solve this problem.
 
 Can someone have ideas ?
 
 M.H.
 



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: many java processes

2002-03-21 Thread Jean-Luc BEAUDET

D. Jay Newman a écrit :

 I looked at my ps output, and they do seem to each have a different pid.

 However, I will look into this. I *think* that I have native threads on
 this machine.

 I don't know ps well enough to find the right option, but there is always
 man ps...

  than why do they all have a different process id??  Also, how what would the 
option be to turn off viewing of threads and just view processes?
  thanks for your help Jay,
  Dean
 
  D. Jay Newman wrote:
 
On linux did anybody ever get a linux patch for fixing the problem of one 
process per java thread.  I read on the sun bug parade they were going to port to a 
new threading model but we needed to update the linux threading  I have seen many 
e-mails complaining about how tomcat creates s many processes and this is due to 
a JVM thing not tomcat.  Does anybody know or is everyone just sitting by with many 
many java processes on their linux?
Any help, pointers you could give me would be great,
  
   As near as I can tell, Linux *doesn't* create multiple processes. If you
   look closely at the output of ps all the java processes exist in the
   same processes.
  
   Linux (at least RedHat) comes with a ps that reports threads as well
   as processes.
   --
   D. Jay Newman  !  All:  There's nothing we can't face...
   [EMAIL PROTECTED]!  Anya: Except for bunnies...
   http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 D. Jay Newman  !  All:  There's nothing we can't face...
 [EMAIL PROTECTED]!  Anya: Except for bunnies...
 http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

It's a strange way of Linux to associate the threads binded to the Tomcat process as 
process themself.

I don't work on Linux but on Solaris. Just give an output exerpt of yur ps and let see 
if a ps .. | grep may do the tricK.

Jean-Luc B :O)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: many java processes

2002-03-21 Thread Cato, Christopher

pstree -p might help to show what get's started by what

For the processes, they aren't really processes as someone has said earlier
but rather the LINUX representation of threads. Threads are shown as
processes. 

Does the fact that threads are shown as processes in PS cause you any
problems? If not, just ignore it. Linus will probably fix that sometime.

 -Original Message-
 From: D. Jay Newman [mailto:[EMAIL PROTECTED]]
 Sent: den 21 mars 2002 15:51
 To: [EMAIL PROTECTED]
 Subject: Re: many java processes
 
 
 I looked at my ps output, and they do seem to each have a 
 different pid.
 
 However, I will look into this. I *think* that I have native 
 threads on
 this machine.
 
 I don't know ps well enough to find the right option, but 
 there is always
 man ps...
 
  than why do they all have a different process id??  Also, 
 how what would the option be to turn off viewing of threads 
 and just view processes?
  thanks for your help Jay,
  Dean
  
  D. Jay Newman wrote:
  
On linux did anybody ever get a linux patch for fixing 
 the problem of one process per java thread.  I read on the 
 sun bug parade they were going to port to a new threading 
 model but we needed to update the linux threading  I have 
 seen many e-mails complaining about how tomcat creates s 
 many processes and this is due to a JVM thing not tomcat.  
 Does anybody know or is everyone just sitting by with many 
 many java processes on their linux?
Any help, pointers you could give me would be great,
  
   As near as I can tell, Linux *doesn't* create multiple 
 processes. If you
   look closely at the output of ps all the java 
 processes exist in the
   same processes.
  
   Linux (at least RedHat) comes with a ps that reports 
 threads as well
   as processes.
   --
   D. Jay Newman  !  All:  There's 
 nothing we can't face...
   [EMAIL PROTECTED]!  Anya: Except for bunnies...
   http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical
  
   --
   To unsubscribe:   
 mailto:[EMAIL PROTECTED]
   For additional commands: 
 mailto:[EMAIL PROTECTED]
   Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 
 -- 
 D. Jay Newman  !  All:  There's nothing 
 we can't face...
 [EMAIL PROTECTED]!  Anya: Except for bunnies...
 http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: many java processes

2002-03-21 Thread Furmaniak Christophe

 
 pstree -p might help to show what get's started by what
 

and if you prefer to have a true ps output, just try ps -faux


CF


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Of topic: When to use J2EE

2002-03-21 Thread AMRAN121


REpost

I normally program using JSP and Java Beans. I wanted to know why you need to 
program using EJB. I have read information at the Sun site but I really would 
like someone to share their personal experience of a situation where you 
would need to use it (Does it offer more security? Is their a good mailing 
list that I can join?). 
I have seen Tomcat does not do EJB so I have decided to  look at JBoss which 
is mentioned often in this mailing list are there anymore free EJB servers 
with good support. Any advice is most appreciated.

Thanxs in advance
Amran




can I use only tomcat with out Apache httpd server

2002-03-21 Thread Uma Munugala

Hi 
  I installed tomcat 4.0.4b1 and apache httpd sever.
My question is can tomcat work without starting apache httpd, do I have to
start both of them and some how link them.

I tried to start tomcat alone and its examples working but when I run my
servlet iam getting error 


java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal
Variable name )


Any help is very much appreciated.



Thanks
Umamaheswar


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Struggling for one week please Help Help..................

2002-03-21 Thread Daniel Hinojosa



Uma Munugala wrote:

Hi Daniel
   I double checked that compiler, 
iam using jdk1.3 for compiling my source codee and tomcat uses jdk1.3.
classes are located in /WEB-INF/classes.

Thanks
Uma

  

-Original Message-
From: Daniel Hinojosa [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 4:14 PM
To: Tomcat Users List
Subject: Re: Struggling for one week please Help Help..




Uma Munugala wrote:

Hi


I have written a servlet which implements SingleThreadModel
and used already existing public static syncronized classes to access
database.
these classes were used for standalone application.
does static synchronized has any problem with servlets

when I deployment my servlet and try to  run it gives me error, its stack
trace is below.

when login reaches to access static synchronized class member or static
synchronized class method Iam getting
problem.

Quick simple checks

 Is your compiler the same version as Tomcat?  Another check is your 
editor putting characters that you cannot see?  Open it with another 
editor and recompile.  I fell victim to that sometime ago, and it is 
frustrating.

where are these classes located in the /WEB-INF/classes or the /WEB-INF/lib
directory?

Just make sure that if you are using Tomcat 4. It is better to store 
dependent files in the /WEB-INF/lib directory.

-- 
Daniel Hinojosa
Java  XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: many java processes

2002-03-21 Thread Dean Hiller

thanks all for the help, I have a much better understanding of what is going on.  Our 
customers were complaining about that.  I will contact redhat as to see if they are 
going to fix that or not.
thanks,
Dean

Furmaniak Christophe wrote:

 
  pstree -p might help to show what get's started by what
 

 and if you prefer to have a true ps output, just try ps -faux

 CF

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC

2002-03-21 Thread David Cassidy


What do you get if you connect to the tomcat 8080 port and
do the same thing ?

D


mh wrote:

--16:17:44--  http://dev.cerib.reflexe.fr/cerib_BD
   = `cerib_BD'
Connexion vers dev.cerib.reflexe.fr:80...Connecté!
requête HTTP transmise, en attente de la réponse...302 Found
2 Date: Thu, 21 Mar 2002 15:17:44 GMT
3 Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk PHP/4.0.1pl2
mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 mod_gzip/1.3.19.1a
4 Location: http://dev.cerib.reflexe.fr/cerib/cerib_BD
5 Connection: close
6 Content-Type: text/html; charset=iso-8859-1
7
Location: http://dev.cerib.reflexe.fr/cerib/cerib_BD [suivant]
--16:17:44--  http://dev.cerib.reflexe.fr/cerib/cerib_BD
   = `cerib_BD'
Connexion vers dev.cerib.reflexe.fr:80...Connecté!
requête HTTP transmise, en attente de la réponse...500 Internal Server Error
2 Date: Thu, 21 Mar 2002 15:17:44 GMT
3 Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk PHP/4.0.1pl2
mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 mod_gzip/1.3.19.1a
4 Connection: close
5 Content-Type: text/html; charset=iso-8859-1
6
16:17:44 ERREUR 500: Internal Server Error.


- Original Message -
From: David Cassidy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 4:11 PM
Subject: Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC


can you send the full set of headers that you get back ?

wget -s
will do this ..

D



mh wrote:

I use Apache 1.3.19  Tomcat 4.0.1 via mod_jk on Linux platform.

I try to do this in a servlet :

String authHeader = request.getHeader(Authorization);
if (authHeader != null) {
AuthInternaute ai = new AuthInternaute(authHeader);
String username = ai.getUsername();
String password = ai.getPassword();
allow = (validUsername.equals(username) 
validPassword.equals(password));
}
else
{
response.setHeader(WWW-Authenticate, BASIC realm=\+realm+\);
response.sendError(response.SC_UNAUTHORIZED, Identification required /
Autorisation nécessaire.);
}

but Apache doesn't respond correctly and send an Internal Server Error
instead of authentication dialog box.

It works fine with tomcat standalone. Perhaps a mod_jk problem, I don't
know how to solve this problem.

Can someone have ideas ?

M.H.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: many java processes

2002-03-21 Thread Jason Koeninger

I missed a lot of this thread, but given some of the comments made,
I thought I should post some information.  FWIW, these discussions
take place frequently and can be found in the list archives.

The Linux thread implementation represents a thread as a process.
That's why you see tons of processes when any Java application is
running.  Unlike a normal  process, though, all of these processes
share the same address space so the memory use you see in ps
or top is really shared across all of the processes.

As far as Sun fixing something, I'm not sure there's something to
fix, but I do believe some JVM's have a green threads implementation
that runs multiple threads on a single Linux thread.  There may also be 
other threading models under development for Linux.  I  know IBM was
working on a more Solaris-like MxN threading scheme, but I don't
keep up with Linux enough to know the specifics of any of those projects.

HTH

Best Regards,

Jason Koeninger
JJ Computer Consulting
http://www.jjcc.com

On Thu, 21 Mar 2002 16:23:22 +0100, Jean-Luc BEAUDET wrote:

D. Jay Newman a ‚crit :

 I looked at my ps output, and they do seem to each have a different pid.

 However, I will look into this. I *think* that I have native threads on
 this machine.

 I don't know ps well enough to find the right option, but there is always
 man ps...

  than why do they all have a different process id??  Also, how what would the 
option be to turn off viewing of threads and just view processes?
  thanks for your help Jay,
  Dean
 
  D. Jay Newman wrote:
 
On linux did anybody ever get a linux patch for fixing the problem of one 
process per java thread.  I read on the sun bug parade they were going to port to a 
new threading model but we needed to update the linux threading  I have seen many 
e-mails complaining about how tomcat creates s many processes and this is due to 
a JVM thing not tomcat.  Does anybody know or is everyone just sitting by with many 
many java processes on their linux?
Any help, pointers you could give me would be great,
  
   As near as I can tell, Linux *doesn't* create multiple processes. If you
   look closely at the output of ps all the java processes exist in the
   same processes.
  
   Linux (at least RedHat) comes with a ps that reports threads as well
   as processes.
   --
   D. Jay Newman  !  All:  There's nothing we can't face...
   [EMAIL PROTECTED]!  Anya: Except for bunnies...
   http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 D. Jay Newman  !  All:  There's nothing we can't face...
 [EMAIL PROTECTED]!  Anya: Except for bunnies...
 http://www.sprucegrove.com/~jay/   !-- Buffy, the Musical

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

It's a strange way of Linux to associate the threads binded to the Tomcat process as 
process themself.

I don't work on Linux but on Solaris. Just give an output exerpt of yur ps and let 
see if a ps .. | grep may do the tricK.

Jean-Luc B :O)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC

2002-03-21 Thread mh

It works fine with tomcat standalone tomcat port 8080

- Original Message -
From: David Cassidy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 4:40 PM
Subject: Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC



 What do you get if you connect to the tomcat 8080 port and
 do the same thing ?

 D


 mh wrote:

 --16:17:44--  http://dev.cerib.reflexe.fr/cerib_BD
= `cerib_BD'
 Connexion vers dev.cerib.reflexe.fr:80...Connecté!
 requête HTTP transmise, en attente de la réponse...302 Found
 2 Date: Thu, 21 Mar 2002 15:17:44 GMT
 3 Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk PHP/4.0.1pl2
 mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 mod_gzip/1.3.19.1a
 4 Location: http://dev.cerib.reflexe.fr/cerib/cerib_BD
 5 Connection: close
 6 Content-Type: text/html; charset=iso-8859-1
 7
 Location: http://dev.cerib.reflexe.fr/cerib/cerib_BD [suivant]
 --16:17:44--  http://dev.cerib.reflexe.fr/cerib/cerib_BD
= `cerib_BD'
 Connexion vers dev.cerib.reflexe.fr:80...Connecté!
 requête HTTP transmise, en attente de la réponse...500 Internal Server
Error
 2 Date: Thu, 21 Mar 2002 15:17:44 GMT
 3 Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk PHP/4.0.1pl2
 mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 mod_gzip/1.3.19.1a
 4 Connection: close
 5 Content-Type: text/html; charset=iso-8859-1
 6
 16:17:44 ERREUR 500: Internal Server Error.
 
 
 - Original Message -
 From: David Cassidy [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, March 21, 2002 4:11 PM
 Subject: Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC
 
 
 can you send the full set of headers that you get back ?
 
 wget -s
 will do this ..
 
 D
 
 
 
 mh wrote:
 
 I use Apache 1.3.19  Tomcat 4.0.1 via mod_jk on Linux platform.
 
 I try to do this in a servlet :
 
 String authHeader = request.getHeader(Authorization);
 if (authHeader != null) {
 AuthInternaute ai = new AuthInternaute(authHeader);
 String username = ai.getUsername();
 String password = ai.getPassword();
 allow = (validUsername.equals(username) 
 validPassword.equals(password));
 }
 else
 {
 response.setHeader(WWW-Authenticate, BASIC realm=\+realm+\);
 response.sendError(response.SC_UNAUTHORIZED, Identification required /
 Autorisation nécessaire.);
 }
 
 but Apache doesn't respond correctly and send an Internal Server
Error
 instead of authentication dialog box.
 
 It works fine with tomcat standalone. Perhaps a mod_jk problem, I don't
 know how to solve this problem.
 
 Can someone have ideas ?
 
 M.H.
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC

2002-03-21 Thread David Cassidy


Can I see the headers ?

mh wrote:

It works fine with tomcat standalone tomcat port 8080

- Original Message -
From: David Cassidy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 4:40 PM
Subject: Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC


What do you get if you connect to the tomcat 8080 port and
do the same thing ?

D


mh wrote:

--16:17:44--  http://dev.cerib.reflexe.fr/cerib_BD
  = `cerib_BD'
Connexion vers dev.cerib.reflexe.fr:80...Connecté!
requête HTTP transmise, en attente de la réponse...302 Found
2 Date: Thu, 21 Mar 2002 15:17:44 GMT
3 Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk PHP/4.0.1pl2
mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 mod_gzip/1.3.19.1a
4 Location: http://dev.cerib.reflexe.fr/cerib/cerib_BD
5 Connection: close
6 Content-Type: text/html; charset=iso-8859-1
7
Location: http://dev.cerib.reflexe.fr/cerib/cerib_BD [suivant]
--16:17:44--  http://dev.cerib.reflexe.fr/cerib/cerib_BD
  = `cerib_BD'
Connexion vers dev.cerib.reflexe.fr:80...Connecté!
requête HTTP transmise, en attente de la réponse...500 Internal Server

Error

2 Date: Thu, 21 Mar 2002 15:17:44 GMT
3 Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk PHP/4.0.1pl2
mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 mod_gzip/1.3.19.1a
4 Connection: close
5 Content-Type: text/html; charset=iso-8859-1
6
16:17:44 ERREUR 500: Internal Server Error.


- Original Message -
From: David Cassidy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 4:11 PM
Subject: Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC


can you send the full set of headers that you get back ?

wget -s
will do this ..

D



mh wrote:

I use Apache 1.3.19  Tomcat 4.0.1 via mod_jk on Linux platform.

I try to do this in a servlet :

String authHeader = request.getHeader(Authorization);
if (authHeader != null) {
AuthInternaute ai = new AuthInternaute(authHeader);
String username = ai.getUsername();
String password = ai.getPassword();
allow = (validUsername.equals(username) 
validPassword.equals(password));
}
else
{
response.setHeader(WWW-Authenticate, BASIC realm=\+realm+\);
response.sendError(response.SC_UNAUTHORIZED, Identification required /
Autorisation nécessaire.);
}

but Apache doesn't respond correctly and send an Internal Server

Error

instead of authentication dialog box.

It works fine with tomcat standalone. Perhaps a mod_jk problem, I don't
know how to solve this problem.

Can someone have ideas ?

M.H.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC

2002-03-21 Thread mh

I do : wget -s and I see this :

--16:57:34--  http://dev.cerib.reflexe.fr/cerib_BDAdmin
   = `cerib_BDAdmin'
Connexion vers dev.cerib.reflexe.fr:80...Connecté!
requête HTTP transmise, en attente de la réponse...302 Found
Location: http://dev.cerib.reflexe.fr/cerib/cerib_BDAdmin [suivant]
--16:57:34--  http://dev.cerib.reflexe.fr/cerib/cerib_BDAdmin
   = `cerib_BDAdmin'
Connexion vers dev.cerib.reflexe.fr:80...Connecté!
requête HTTP transmise, en attente de la réponse...500 Internal Server Error
16:57:34 ERREUR 500: Internal Server Error.


- Original Message -
From: mh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 4:10 PM
Subject: Apache Tomcat response.setHeader(WWW-Authenticate,BASIC


I use Apache 1.3.19  Tomcat 4.0.1 via mod_jk on Linux platform.

I try to do this in a servlet :

String authHeader = request.getHeader(Authorization);
if (authHeader != null) {
 AuthInternaute ai = new AuthInternaute(authHeader);
 String username = ai.getUsername();
 String password = ai.getPassword();
 allow = (validUsername.equals(username)  validPassword.equals(password));
}
else
{
 response.setHeader(WWW-Authenticate, BASIC realm=\+realm+\);
 response.sendError(response.SC_UNAUTHORIZED, Identification required /
Autorisation nécessaire.);
}

but Apache doesn't respond correctly and send an Internal Server Error
instead of authentication dialog box.

It works fine with tomcat standalone. Perhaps a mod_jk problem, I don't know
how to solve this problem.

Can someone have ideas ?

M.H.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.0.3. is not unpacking my WAR file

2002-03-21 Thread Jeff Larsen

Tomcat 4.0.3 is NOT unpacking my WAR file and my application
is not getting loaded. Is this a bug or is there a configuration
issue that I am missing.

If I run without unpacking the war (i.e., docBase=online.war), the 
application runs just fine, but then I can't have Apache httpd serve
my static html and images.

Here's the Host section of my server.xml

Host name=localhost debug=0 appBase=webapps unpackWARs=true
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=access. suffix=.log
 pattern=common timestamp=true/

  Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost. suffix=.log
  timestamp=false/

  Context path=/online docBase=online debug=0
   reloadable=false crossContext=false useNaming=false
Logger className=org.apache.catalina.logger.FileLogger
prefix=online. suffix=.log timestamp=true/
  /Context
/Host


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




?Different process/jvm for each webapp?

2002-03-21 Thread tomcat raymond


 tomcat and webapps
is every webapp/application in tomcat run in its own jvm/address space/process?
i see a number of webapplications, accessing a different application scoped variable 
with
the same name.
regards all,
vj



-
Do You Yahoo!?
Get personalised at My Yahoo!.


Re: Of topic: When to use J2EE

2002-03-21 Thread Markus Spath



[EMAIL PROTECTED] wrote:

 REpost
 
 I normally program using JSP and Java Beans. I wanted to know why you need to 
 program using EJB. I have read information at the Sun site but I really would 
 like someone to share their personal experience of a situation where you 
 would need to use it (Does it offer more security? Is their a good mailing 
 list that I can join?). 
 I have seen Tomcat does not do EJB so I have decided to  look at JBoss which 
 is mentioned often in this mailing list are there anymore free EJB servers 
 with good support. Any advice is most appreciated.
 


- there is no need to use EJBs/J2EE, you might want to consider using them, if 
you are building larger scale, distributed enterprise applications, the 
application server takes care of a lot of stuff, you have to do quite some 
configuration activities though.

- JBoss is a good choice, there is a bundle with Tomcat available, it has a 
good forum and its easy to start with.

a site with a lot of information: http://www.theserverside.com

hth,
markus





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: can I use only tomcat with out Apache httpd server

2002-03-21 Thread Huy K Dung

I believe Tomcat can work as a httpd server as well as app server. The
reason one would use Apache with Tomcat is because Apache is a better httpd
server than Tomcat.

The reason Tomcat doesn't work for you is because of misconfigurations
somewhere.

I've been using Tomcat alone for development purposes and it works fine
alone.

-Original Message-
From: Uma Munugala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 10:32 AM
To: '[EMAIL PROTECTED]'
Subject: can I use only tomcat with out Apache httpd server


Hi
  I installed tomcat 4.0.4b1 and apache httpd sever.
My question is can tomcat work without starting apache httpd, do I have to
start both of them and some how link them.

I tried to start tomcat alone and its examples working but when I run my
servlet iam getting error


java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal
Variable name )


Any help is very much appreciated.



Thanks
Umamaheswar


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Lance,
So in other words if I may to /hello/* I would be able
to call my servelet with /hello? or the full URL
http://localhost:8080/search/hello? I tried it did not
work- requested resource (/hello) is not available.

Thanks a lot,
Sanjay
--- Lance Smith [EMAIL PROTECTED]
wrote:
 Sanjay,
 The servlet-mapping is a tag that allows you to map
 a specified pattern to the specified servlet. Don't
 get me started on the pattern syntax I still haven't
 taken the time to fully comprehend it. So basically
 what we told the server was that anytime it sees the
 pattern /hello/ in the context of this app send it
 to the HelloWorld servlet. The anything means
 anything
 you want to type after the /hello/ since we told
 it to
 match on the /hello/.
 Lance
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 9:01 AM
 To: Tomcat Users List
 Subject: RE: Servlet Deploy Problem Help
 
 
 Lance Thanks.
 What does servlet-mapping mean- is it directory
 structure or an alias to a servlet.I was trying to
 use
 /hello as an alias for the HelloWorld servlet and
 try
 calling it by /hello or by full URL /hello- am I
 completely off on this. and what is this anything?
 Thanks again
 
 
 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/*/url-pattern
 /servlet-mapping
 
 Then you  should be able to call it like:
 http://localhost:8080/search/hello/anything
 
 --- Lance Smith [EMAIL PROTECTED]
 wrote:
  In you're web.xml change:
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/url-pattern
  /servlet-mapping
 
  to :
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/*/url-pattern
  /servlet-mapping
 
  Then you  should be able to call it like:
  http://localhost:8080/search/hello/anything
 
  Hope this helps
  Lance
 
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 8:21 AM
  To: [EMAIL PROTECTED]
  Subject: Servlet Deploy Problem Help
 
 
  I am just restarting this thread. My problem
 remains
  unsolved. I am running Tomcat4.01/NT. The setup
  should
  be OK as the examples run.
  I am trying to deploy the HelloWorldExample.
  My directory structure is-
  Tomcat4\webapps\search\WEB-INF\classes
  I have my .htm file in the \search directory and
 my
  class in the \classes and my web.xml in the
  \WEB-INF.
  My web.xml looks like this- I have used the
 example
  file to create it-
  servlet
servlet-nameHelloWorld/servlet-name
description
  HelloWorld
/description
 
  servlet-classHelloWorldExample/servlet-class
  /servlet
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/url-pattern
  /servlet-mapping
  Is this web.xml correct?
 
  I have not been able to execute my servelt any
 which
  way:
  /hello
 

http://localhost:8080/search/servlet/HelloWorldExample
  http://localhost:8080/search/servlet/HelloWorld
  http://localhost:8080/search/HelloWorld
  I either get a resource not found or
  java.util.MissingResourceException: Can't find
  bundle
  for base name LocalStrings, locale en_US
  at
 

java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
  07)
  at
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
  at
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
  at HelloWorldExample.doGet(Unknown Source)
 
   My question is how do I exceute it- from the
  /search
  directory or from anywhere else using a full url
  path.
  Thanks a lot,
  Sanjay
 
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards.
  http://movies.yahoo.com/
 
  --
  To unsubscribe:
 
 mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:
 
 mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards.
 http://movies.yahoo.com/
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Randy,
Yes that was the problem.Now when I give the complete
path-http://localhost:8080/search/servlet/HelloWorldExample
I can execute the class. 
But I still can not execute the class with:
/hello or http://localhost:8080/search/HelloWorld
or http://localhost:8080/search/servlet/HelloWorld
Thanks very much again,
Sanjay
--- Randy Layman [EMAIL PROTECTED] wrote:
 
   Your problem isn't in the loaded classes (that
 would be a class not
 found).  Instead look at where you are calling the
 method
 java.util.ResourceBundle.getBundle.  The parameter
 you are passing in
 references a resource that Tomcat can't find.
 
   Randy
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 9:56 AM
  To: Tomcat Users List
  Subject: RE: Servlet Deploy Problem Help
  
  
  Thanks of the insight. The servlet is a HelloWorld
  example. The only imports in the class are:
  import java.io.*;
  import java.text.*;
  import java.util.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
  I would easily suppose these should be available
 to
  Tomcat. If not what do I do.
  Thanks
  Sanjay
  --- Randy Layman [EMAIL PROTECTED]
 wrote:
   
 The stack trace you included indicates that you
 are
   running the
   servlet, but its throwing an exception.
   
-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:21 AM
To: [EMAIL PROTECTED]
Subject: Servlet Deploy Problem Help


I either get a resource not found or 
java.util.MissingResourceException: Can't find
   bundle
for base name LocalStrings, locale en_US
at
   
  
 

java.util.ResourceBundle.throwMissingResourceException(Resourc
eBundle.java:707)
at
   
  
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at
   
  
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(Unknown Source)

   
 If your servlet wasn't being called then you
   wouldn't see it in the
   stack trace.  I would suggest that you look at
 how
   you are loading resources
   in your servlet (they are probably not in the
   classpath).
   
 Randy
   
   --
   To unsubscribe:  
  
 mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
  
  
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards®
  http://movies.yahoo.com/
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.3. is not unpacking my WAR file

2002-03-21 Thread Daniel Bruce Lynes

On March 21, 2002 08:02 am, you wrote:

 Tomcat 4.0.3 is NOT unpacking my WAR file and my application
 is not getting loaded. Is this a bug or is there a configuration
 issue that I am missing.

It'll only do this if the server is restarted.  Tomcat doesn't support 
on-the-fly deploy yet.   I've also noticed that if the directory already 
exists for the web application in question, that it never extracts the war 
file.  This seems to be the behaviour on all of the Tomcat versions I've 
tried recently (3.2.1,3.2.3,3.3rc1,4.0.1).

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: j2sdk1.4 compilation errors, any good online source for info?

2002-03-21 Thread Leila Lappin

thanks
I put all the listed jars in my classpath and it worked.

thanks again.


- Original Message -
From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002 10:47 PM
Subject: Re: j2sdk1.4 compilation errors, any good online source for info?


 All the standard classes are in rt.jar, Leil.  The rt is for runtime.

 At 09:25 PM 3/20/02 -0800, you wrote:
 Hi Michael,
 
 Thanks for the answer, I'm trying to setup my CLASSPATH to find the jar
file
 that contains the definition for String.  My problem is that I can't find
 it!!
 
 It used to be in j2ee.jar in j2skee-1_3_01.
 
 My name is Leila and it's Persian.
 
 - Original Message -
 From: Micael Padraig Og mac Grene [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 20, 2002 6:05 PM
 Subject: Re: j2sdk1.4 compilation errors, any good online source for
info?
 
 
   Leil,
  
   If you just want to compile, you can set the command line at the
   jdk1.4/bin/ (where javac is)and then enter javac
   /usr/local/myapp/MyClass.java or wherever the class is.  But, what
you
   really need to do is to set up your CLASSPATH environmental variables
in
   /etc/profile to the appropriate locations to find javac, java, your
   classes, etc.  There is no problem with RH 7.2 and j2k1.4.  I use
that.
  
   Hope this is helpful.
  
   Micael
  
   What sort of name is Leil?  Never seen that before.  Looks cool!
  
  
  
   At 08:52 PM 3/20/02 -0800, you wrote:
   Could someone please suggest a good online source for getting some
detail
   information on compilation errors with J2sdk1.4.  I am trying to port
an
   application that has been compiled and tested on NT with
j2sdkee-1_3_01
   libraries.  The new system RH7.2 using the new j2sk1.4 whines about
not
   finding String class definition with a [JLS 8] stuck to the end of
the
   message.
   
   I'm using javac (haven't the time to learn forte) from command line
and
   have set my classpath to
   see  j2sk1.4/lib/tools.jar  and  j2sdk1.4/jre/lib/jsse.jar
   
   thanks in advance for any help and suggestions
   
   Leil
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.3. is not unpacking my WAR file

2002-03-21 Thread Jeff Larsen

Let me clarify: Tomcat NEVER unpacks the war, not when it's restarted,
and even if the directory is not there. On restart, Tomcat complains
that it can't start the application, because the directory does not
exists.

- Original Message - 
From: Daniel Bruce Lynes [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 10:09 AM
Subject: Re: Tomcat 4.0.3. is not unpacking my WAR file


 On March 21, 2002 08:02 am, you wrote:
 
  Tomcat 4.0.3 is NOT unpacking my WAR file and my application
  is not getting loaded. Is this a bug or is there a configuration
  issue that I am missing.
 
 It'll only do this if the server is restarted.  Tomcat doesn't support 
 on-the-fly deploy yet.   I've also noticed that if the directory already 
 exists for the web application in question, that it never extracts the war 
 file.  This seems to be the behaviour on all of the Tomcat versions I've 
 tried recently (3.2.1,3.2.3,3.3rc1,4.0.1).
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.1 to 4.0.3 upgrade problem

2002-03-21 Thread Joel Sather


I finally tracked the problem down to a req.getRemoteHost() call that
was being made.  It works fine in 4.0.1 via Apache, but in 4.0.2 and
higher if the call is via Apache it returns null.  In order to fix it, I
set the AJP13 connector to enableLookups=true in server.xml and also
had to set HostnameLookups to on in the Apache httpd.conf.  It now works
fine.

-Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

 [EMAIL PROTECTED] 03/21/02 07:23AM 
compile your sources with debug turned on. This will give you line
numbers

This is a problem in your MnvuPage class. Some object is null and you
don't
check for null before using it.

Charlie

 -Original Message-
 From: Joel Sather [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, March 20, 2002 2:32 PM
 To: [EMAIL PROTECTED] 
 Subject: Re: Tomcat 4.0.1 to 4.0.3 upgrade problem
 
 
 
 This is some more info about this problem.  The error I get from the
 servlet is this:
 
 java.lang.NullPointerException
   at mnvu.MnvuPage.(Unknown Source)
   at mnvu.MnvuServlet.doGet(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
 cationFilterChain.java:193)
 ...
 
 Since it does work when I call it directly via Tomcat, is there some
 sort of a context problem?  I believe the problem stems from a
servlet
 initialization failure when called via Apache, but I'm having some
 problems finding exactly where to look.  Note that this does work
fine
 under Tomcat 4.0.1, but not 4.0.2 or 4.0.3.  I'm almost tempted to
 believe that the servlet isn't getting the request/response values
in
 the doGet() method--any idea what causes Unknown Source at that
level?
 
 Thanks,
 Joel
 
 
 Joel Sather
 email: [EMAIL PROTECTED] 
 phone: 651-917-4719
 
  [EMAIL PROTECTED] 03/19/02 05:29PM 
 
 Hi, I'm having a problem getting one webapp to work when I upgrade
to
 4.0.3.  Although the webapp responds normally under the Tomcat port,
 when I try to access it via Apache (AJP1.3 connector), it somehow
gets
 a
 null pointer error.  The strange thing is that there are two other
 apps
 that have identical frameworks that work just fine via Apache.  The
 problem app also has some JSP files and they work just fine--it is
 just
 the servlets that fail.  Does Apache somehow trash the request
header
 in
 4.0.3 or something?  Any help would be great, I've been messing with
 this all day.  Also, it failed in the same way under 4.0.2.
 
 Working system: Apache 1.3.20 w/ AJP1.3 and Tomcat 4.0.1 (self
built)
 Failing systems: Apache 1.3.20 w/ AJP1.3 and Tomcat 4.0.2 or 3
binary
 builds
 Configurations: Same WAR deployments and server.xml, web.xml configs
 all around.  Apache is tweaked to point to the modified
 workers.properties file.
 System: Sun Solaris (SunOS 5.7--forget what that is in Solaris
 numbers).
 
 Let me know what other info I can provide about the system.  The
 reason
 I need to upgrade is due to some problems with Tomcat 4.0.1 hanging
 under heavy load.
 
 Thanks,
 Joel
 
 
 Joel Sather
 email: [EMAIL PROTECTED] 
 phone: 651-917-4719
 
 --
 To unsubscribe:  
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:  
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Please help me found Jar file needed to compile Tag Handler

2002-03-21 Thread Andy Eastham

Isak,

It's still servlet.jar, in tomcat4\common\lib.

Andy
 -Original Message-
 From: Isak Rickyanto [mailto:[EMAIL PROTECTED]]
 Sent: 21 March 2002 05:42
 To: Tomcat User Group
 Subject: Please help me found Jar file needed to compile Tag Handler
 
 
 Hello all please help me... OK...
 
 I try to compile Java program to make simple custom tag
 I found error when compile it... I think because it doesn't found the jar
 file needed to compile..
 I found that the jar file needed to compile in Tomcat 3 is servlet.jar
 but I use Tomcat 4.0.1 now... and I have set PATH, CLASSPATH in my
 autoexec.bat like this :
 
 set
 CLASSPATH=c:\tomcat4\server\lib\catalina.jar;tomcat4\server\lib\se
 rvlets-def
 ault.jar
 set CATALINA_HOME=c:\tomcat4
 set JAVA_HOME=c:\jdk1.3.1
 
 PATH c:\jdk1.3.1\bin;c:\tomcat4\lib
 
 Is it right ? I don't know the jar file needed...
 so I can import this :
 
 import javax.servlet.jsp.*;
 import javax.servlet.jsp.tagext.*;
 import javax.servlet.http.HttpServletRequest;
 
 Thank's for your attention
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Solaris Install Question

2002-03-21 Thread Jeff Larsen

Solaris will not allow an unprivileged user (i.e., not the root user) to open
a server on a port number below 1024. You must run as root or use a higher port
number.

Jeff

- Original Message -
From: Scott Purcell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 10:44 AM
Subject: Solaris Install Question


 I am trying to install Tomcat 4.0.3 on Solaris and I am having some issues getting 
the
product to start.

 I downloaded the jakarta-tomcat.4.0.3.tar.gz from the site and extracted the files. 
I am
a new employee here and I am installing it as myself in my own home-directory.

 I edited the /config/server.xml file and changed the 8080 to 63 (per our 
administrator
here, as other sites run on 8080 and 80).

 I went into the /bin directory and tried to run: 'catalina.sh run' and it starts, but
bombs with the following error:


 $ catalina.sh run
 Using CATALINA_BASE:   /export/home/spurcell/jakarta-tomcat-4.0.3
 Using CATALINA_HOME:   /export/home/spurcell/jakarta-tomcat-4.0.3
 Using CATALINA_TMPDIR: /export/home/spurcell/jakarta-tomcat-4.0.3/temp
 Using JAVA_HOME:   /usr/java
 Catalina.start: LifecycleException:  null.open:  java.net.BindException: Permission
denied:36
 LifecycleException:  null.open:  java.net.BindException: Permission denied:36
 at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
 at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
 at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.net.BindException: Permission denied:36
 at 
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:950)
 at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
 at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
 at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 StandardServer.await: create[8005]: java.net.BindException: Address already in use
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
 at java.net.ServerSocket.bind(ServerSocket.java:308)
 at java.net.ServerSocket.bind(ServerSocket.java:266)
 at java.net.ServerSocket.init(ServerSocket.java:182)
 at org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 spurcell@devweb2:~/jakarta-tomcat-4.0.3/bin/.
 $


 Does anyone know what I could try to do to get this running?

 Thanks,
 Scott

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problem with win2k installation of 4.0.3

2002-03-21 Thread Soren Dayton

Hi,

I get the following error when I start the Apache Tomcat Service:

The Java Virtual Machine has exited with a code of 2, the service is being
stopped. 

JAVA_HOME is set to c:\j2sdk1.4.0, which actually does contain j2sdk 1.4.0
(installed via the j2sdk-1.4.0_win.exe installer from Sun)

The version of tomcat is the one is the installer named
jakarta-tomcat-4.0.3-LE-jdk14.exe. The install was the full install
(source + stuff + service).

I'm a bit of a UNIX transplant, so I'm sure there's other useful information
that I'm not giving.

Anyone have any ideas what this error message might mean or how I could
wrangle more specific (or verbose :) error messages out of the thing?

Thanks,
Soren

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Solaris Install Question

2002-03-21 Thread Joel Sather


It also looks like it is trying to open port 8005 and that it is
already in use.  Check the server.xml and see what is trying to use
that--you may not need it if it is the AJP connector or something like
that.

-Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

 [EMAIL PROTECTED] 03/21/02 11:07AM 
Solaris will not allow an unprivileged user (i.e., not the root user)
to open
a server on a port number below 1024. You must run as root or use a
higher port
number.

Jeff

- Original Message -
From: Scott Purcell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 10:44 AM
Subject: Solaris Install Question


 I am trying to install Tomcat 4.0.3 on Solaris and I am having some
issues getting the
product to start.

 I downloaded the jakarta-tomcat.4.0.3.tar.gz from the site and
extracted the files. I am
a new employee here and I am installing it as myself in my own
home-directory.

 I edited the /config/server.xml file and changed the 8080 to 63 (per
our administrator
here, as other sites run on 8080 and 80).

 I went into the /bin directory and tried to run: 'catalina.sh run'
and it starts, but
bombs with the following error:


 $ catalina.sh run
 Using CATALINA_BASE:   /export/home/spurcell/jakarta-tomcat-4.0.3
 Using CATALINA_HOME:   /export/home/spurcell/jakarta-tomcat-4.0.3
 Using CATALINA_TMPDIR:
/export/home/spurcell/jakarta-tomcat-4.0.3/temp
 Using JAVA_HOME:   /usr/java
 Catalina.start: LifecycleException:  null.open: 
java.net.BindException: Permission
denied:36
 LifecycleException:  null.open:  java.net.BindException: Permission
denied:36
 at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
 at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
 at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
 at
org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.net.BindException: Permission denied:36
 at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:950)
 at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
 at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
 at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
 at
org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 StandardServer.await: create[8005]: java.net.BindException: Address
already in use
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
 at java.net.ServerSocket.bind(ServerSocket.java:308)
 at java.net.ServerSocket.bind(ServerSocket.java:266)
 at java.net.ServerSocket.init(ServerSocket.java:182)
 at
org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
 at
org.apache.catalina.startup.Catalina.start(Catalina.java:794)
 at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 spurcell@devweb2:~/jakarta-tomcat-4.0.3/bin/.
 $


 Does anyone know what I could try to do to get this running?

 Thanks,
 Scott

 --
 To unsubscribe:  
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL 

coyote httpconnector design

2002-03-21 Thread peter lin


I searched the tomcat-user archive and couldn't find anything on the
design difference between coyote and httpconnector in 4.0.1-4.0.3 tomcat
releases.

If anyone can point in the right direction, I'd really appreciate it.

Here is a little background on why I am looking for the information. 
I've been doing some performance benchmarks comparing coyote and
httpconnector on 4.0.2 and 4.0.3 with JSTL. My test pages use a lot of
includes to dynamically build the header, footer and look of a page.

when I used include directive %@ include file= % the performance for
4-16 concurrent connections causes dramatic increases in CPU
utilization. When I use action include as in jsp:include page=/ the
performance is better. Tomcat is running on a resource limited box,
600mhz w/256Mb ram.

Using include directive, the compiled class file gets close to the 64K
limit (around 61K). Using action include each compiled class file is
under 20K, most around 8K. Aside from the obvious business logic should
be in beans, I am trying to figure out ways to improve the performance
and get a better understanding of why CPU utilization shoots through the
roof.

Using the latest coyote beta with 4.0.3 seems to perform 2-4 times
better than httpconnector, depending on the page. I've also done
benchmarks with very simple pages that print out http header/request
parameters and coyote seems to be twice as fast. For complex pages that
have a lot of includes that call includes, the performance gains are
bigger.

Obviously using JSTL is more process intense than putting java code in
the jsp pages, but part of the goal of this experiment is to see how
much of performance hit JSTL incurs. One of the goals of this test is to
hide java code, so that designers and html coders don't see java code.
It may be that some of the repetative logic should be made into custom
tags, but before I do that, I want to get a deeper understanding of
coyote architecture.

thanks.

peter lin

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: many java processes

2002-03-21 Thread Erwin Ambrosch

When I do a ps and Tomcat is running I get a different pid for each Java 
(Process?). pstree also says that there are some java (Processes?) are 
running.  Can you say me how I can determine whetere all the Java (Prosesses) 
are belonging to the same process. Are you sure to not missinterpreting a 
father process (root process).

lg Erwin

Am Donnerstag, 21. März 2002 15:16 schrieben Sie:
  On linux did anybody ever get a linux patch for fixing the problem of one
  process per java thread.  I read on the sun bug parade they were going to
  port to a new threading model but we needed to update the linux
  threading  I have seen many e-mails complaining about how tomcat
  creates s many processes and this is due to a JVM thing not tomcat. 
  Does anybody know or is everyone just sitting by with many many java
  processes on their linux? Any help, pointers you could give me would be
  great,

 As near as I can tell, Linux *doesn't* create multiple processes. If you
 look closely at the output of ps all the java processes exist in the
 same processes.

 Linux (at least RedHat) comes with a ps that reports threads as well
 as processes.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Solaris Install Question

2002-03-21 Thread Andy Eastham

Scott,

I think processes have to run as root to open sockets below 1024?

Try it on a higher port number such as 8180

Andy

 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED]]
 Sent: 21 March 2002 16:45
 To: [EMAIL PROTECTED]
 Subject: Solaris Install Question


 I am trying to install Tomcat 4.0.3 on Solaris and I am having
 some issues getting the product to start.

 I downloaded the jakarta-tomcat.4.0.3.tar.gz from the site and
 extracted the files. I am a new employee here and I am installing
 it as myself in my own home-directory.

 I edited the /config/server.xml file and changed the 8080 to 63
 (per our administrator here, as other sites run on 8080 and 80).

 I went into the /bin directory and tried to run: 'catalina.sh
 run' and it starts, but bombs with the following error:


 $ catalina.sh run
 Using CATALINA_BASE:   /export/home/spurcell/jakarta-tomcat-4.0.3
 Using CATALINA_HOME:   /export/home/spurcell/jakarta-tomcat-4.0.3
 Using CATALINA_TMPDIR: /export/home/spurcell/jakarta-tomcat-4.0.3/temp
 Using JAVA_HOME:   /usr/java
 Catalina.start: LifecycleException:  null.open:
 java.net.BindException: Permission denied:36
 LifecycleException:  null.open:  java.net.BindException:
 Permission denied:36
 at
 org.apache.catalina.connector.http.HttpConnector.initialize(HttpCo
 nnector.java:1130)
 at
 org.apache.catalina.core.StandardService.initialize(StandardServic
 e.java:454)
 at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.
 java:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
 pl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
 cessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.net.BindException: Permission denied:36
 at
 org.apache.catalina.connector.http.HttpConnector.open(HttpConnecto
 r.java:950)
 at
 org.apache.catalina.connector.http.HttpConnector.initialize(HttpCo
 nnector.java:1128)
 at
 org.apache.catalina.core.StandardService.initialize(StandardServic
 e.java:454)
 at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.
 java:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
 pl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
 cessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 StandardServer.await: create[8005]: java.net.BindException:
 Address already in use
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
 at java.net.ServerSocket.bind(ServerSocket.java:308)
 at java.net.ServerSocket.bind(ServerSocket.java:266)
 at java.net.ServerSocket.init(ServerSocket.java:182)
 at
 org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
 pl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
 cessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 spurcell@devweb2:~/jakarta-tomcat-4.0.3/bin/.
 $


 Does anyone know what I could try to do to get this running?

 Thanks,
 Scott

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




J2EE Security Technical Session at JavaOne

2002-03-21 Thread tomcat

Given the numerous security questions posted to this list, we'd like 
to ensure that those attending JavaOne know about our technical session:

  My Stuff, Your Stuff, Their Stuff: A Tutorial on Application Security 
  for the JavaTM 2 Platform, Enterprise Edition (J2EETM)

  Wednesday March 27, 2:45-3:45, Room 120, Moscone Center

  http://servlet.java.sun.com/javaone/sf2002/conf/sessions/display-1532.en.jsp

Because Tomcat is the J2EE reference implementation, it serves as the
basis for all web container instruction and design concepts for this
session.

Hope to see you there,

The Cafesoft Team

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: coyote httpconnector design

2002-03-21 Thread Craig R. McClanahan



On Thu, 21 Mar 2002, peter lin wrote:

 Date: Thu, 21 Mar 2002 12:24:24 -0500
 From: peter lin [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: coyote  httpconnector design


 I searched the tomcat-user archive and couldn't find anything on the
 design difference between coyote and httpconnector in 4.0.1-4.0.3 tomcat
 releases.

 If anyone can point in the right direction, I'd really appreciate it.


I'll let Remy speak to the details (Coyote is his baby), but the primary
motivation was to improve performance.  A secondary motivation was to fix
some HTTP/1.1 things that were hard to make work correctly in the original
HttpConnector design.

 Here is a little background on why I am looking for the information.
 I've been doing some performance benchmarks comparing coyote and
 httpconnector on 4.0.2 and 4.0.3 with JSTL. My test pages use a lot of
 includes to dynamically build the header, footer and look of a page.

 when I used include directive %@ include file= % the performance for
 4-16 concurrent connections causes dramatic increases in CPU
 utilization. When I use action include as in jsp:include page=/ the
 performance is better. Tomcat is running on a resource limited box,
 600mhz w/256Mb ram.


Hmm, this result is a little counter-intuitive.  The %@ include %
directive causes a single (larger) JSP page to be created -- like the
#include directive in C code -- versus multiple independent pages that
are linked via RequestDispatcher.include() calls.  I'm wondering if the
resource limited part of your description is kicking in.

It would be useful to compare all four combinations:
- Old connector, include directive
- Old connector, include action
- New connector, include dirctive
- New connector, include action

 Using include directive, the compiled class file gets close to the 64K
 limit (around 61K).

This is a fundamental limitation of the current JSP page compiler in
Jasper), because all the code generated for your page ends up in a single
_jspService() method.

 Using action include each compiled class file is
 under 20K, most around 8K. Aside from the obvious business logic should
 be in beans, I am trying to figure out ways to improve the performance
 and get a better understanding of why CPU utilization shoots through the
 roof.


Tracking down whether that CPU usage is in the connector versus in the JSP
page execution would be useful -- they are pretty much independent of each
other.

 Using the latest coyote beta with 4.0.3 seems to perform 2-4 times
 better than httpconnector, depending on the page. I've also done
 benchmarks with very simple pages that print out http header/request
 parameters and coyote seems to be twice as fast. For complex pages that
 have a lot of includes that call includes, the performance gains are
 bigger.


I wouldn't be surprised to see even larger improvements on some real world
apps, depending on how they do their request and response I/O.

 Obviously using JSTL is more process intense than putting java code in
 the jsp pages, but part of the goal of this experiment is to see how
 much of performance hit JSTL incurs. One of the goals of this test is to
 hide java code, so that designers and html coders don't see java code.
 It may be that some of the repetative logic should be made into custom
 tags, but before I do that, I want to get a deeper understanding of
 coyote architecture.


I would suggest that you make the experiments on which connector
independent of which JSP implementation technique is used, as well as
running them in combination.  The performance of a given JSP page is very
much driven by the quality of the code generated by the compiler (just
like any situation where you're compiling code).  What is not obvious from
your reports to date is how much joint impact there is -- but it sounds
like there is more interdependency here than I would have expected.

For the long term, though, I would plan on optimizing performance based on
using Coyote for Tomcat stand-alone use -- it's looking pretty darn good.

 thanks.

 peter lin

Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




TOMCAT 4.0.1 - OutOfMemoryError when connecting to DB2

2002-03-21 Thread Madhavi Kavaturu

Hi All!

This is my first attempt to use TOMCAT and I am stuck with a problem. Any 
help would be greatly appreciated.

Here's my enviroment:

OS : Windows NT
TOMCAT 4.0.1
JDK 1.2 / J2SE Version 1.3.1_01
Database: IBM DB2 Universal Database Version 7 (Personal Edition)

Problem I'm facing:

I am trying to connect to DB2 on my localhost using JSP. I get 
javax.servlet.ServletException exception and
java.lang.OutOfMemoryError as the root cause. I get the same error with 
both JDK 1.2 and J2SE v 1.3.1_01. I tried setting up the
environment variable CATALINA_OPTS to increse JVM heap size (set 
CATALINA_OPTS= -Xms500M -Xmx1000M), in CATALINA_HOME/bin/catalina.bat 
file. But nothing seems to help.

Am I missing something here??

Thanks,
Madhavi

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


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Does tomcat support session management and connection pooling

2002-03-21 Thread Uma Munugala

Hi 
  I wanted to know if tomcat supports session management and connection
pooling
if so what are the modules i have to down load.

can some body point me to that url

Thanks
Uma



-Original Message-
From: Lev Assinovsky [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 8:49 AM
To: Tomcat Users List
Subject: Re: can I use only tomcat with out Apache httpd server


Huy K Dung wrote:
 
 I believe Tomcat can work as a httpd server as well as app server. The
 reason one would use Apache with Tomcat is because Apache is a better
httpd
 server than Tomcat.
 
 The reason Tomcat doesn't work for you is because of misconfigurations
 somewhere.
Though a standalone Tomcat works faster then together with Apache.
 
 I've been using Tomcat alone for development purposes and it works fine
 alone.
 
 -Original Message-
 From: Uma Munugala [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 10:32 AM
 To: '[EMAIL PROTECTED]'
 Subject: can I use only tomcat with out Apache httpd server
 
 Hi
   I installed tomcat 4.0.4b1 and apache httpd sever.
 My question is can tomcat work without starting apache httpd, do I have to
 start both of them and some how link them.
 
 I tried to start tomcat alone and its examples working but when I run my
 servlet iam getting error
 
 java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection
(Illegal
 Variable name )
 
 Any help is very much appreciated.
 
 Thanks
 Umamaheswar
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Solaris Install Question

2002-03-21 Thread Jean-Luc BEAUDET

Scott Purcell a Ýcrit :

 I am trying to install Tomcat 4.0.3 on Solaris and I am having some issues getting 
the product to start.

 I downloaded the jakarta-tomcat.4.0.3.tar.gz from the site and extracted the files. 
I am a new employee here and I am installing it as myself in my own home-directory.

 I edited the /config/server.xml file and changed the 8080 to 63 (per our 
administrator here, as other sites run on 8080 and 80).

 I went into the /bin directory and tried to run: 'catalina.sh run' and it starts, 
but bombs with the following error:

 $ catalina.sh run
 Using CATALINA_BASE:   /export/home/spurcell/jakarta-tomcat-4.0.3
 Using CATALINA_HOME:   /export/home/spurcell/jakarta-tomcat-4.0.3
 Using CATALINA_TMPDIR: /export/home/spurcell/jakarta-tomcat-4.0.3/temp
 Using JAVA_HOME:   /usr/java
 Catalina.start: LifecycleException:  null.open:  java.net.BindException: Permission 
denied:36
 LifecycleException:  null.open:  java.net.BindException: Permission denied:36
 at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
 at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
 at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.net.BindException: Permission denied:36
 at 
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:950)
 at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
 at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
 at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 StandardServer.await: create[8005]: java.net.BindException: Address already in use
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
 at java.net.ServerSocket.bind(ServerSocket.java:308)
 at java.net.ServerSocket.bind(ServerSocket.java:266)
 at java.net.ServerSocket.init(ServerSocket.java:182)
 at org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 spurcell@devweb2:~/jakarta-tomcat-4.0.3/bin/.
 $

 Does anyone know what I could try to do to get this running?

 Thanks,
 Scott

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

Well,

Just explain why yu want to run Tomcat on a port 1024...

Is it really necessary ?

Just keep in mind that all stuff trying to open a port 1024 must have to be root..

It means that yur Tomcat gonna run as root ! What do yu think of the servlets and jsp 
runnin on such a Server ?
Something tell me they will be able to do a lot of 'GREAT' things !

I think the best way is to create a user like webuser, for instance and keep yur 
Tomcat running on port 8085, for example.

If yu intend to make it run with Apache via Warp Connector, just keep the 
Tomcat-Apache Service and make smth like:


RE: Servlet Deploy Problem Help

2002-03-21 Thread Lance Smith

try http://localhost:8080/search/hello/HelloWorld
let me know if this works.
Lance

-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 10:13 AM
To: Tomcat Users List
Subject: RE: Servlet Deploy Problem Help


Lance,
So in other words if I may to /hello/* I would be able
to call my servelet with /hello? or the full URL
http://localhost:8080/search/hello? I tried it did not
work- requested resource (/hello) is not available.

Thanks a lot,
Sanjay
--- Lance Smith [EMAIL PROTECTED]
wrote:
 Sanjay,
 The servlet-mapping is a tag that allows you to map
 a specified pattern to the specified servlet. Don't
 get me started on the pattern syntax I still haven't
 taken the time to fully comprehend it. So basically
 what we told the server was that anytime it sees the
 pattern /hello/ in the context of this app send it
 to the HelloWorld servlet. The anything means
 anything
 you want to type after the /hello/ since we told
 it to
 match on the /hello/.
 Lance

 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 9:01 AM
 To: Tomcat Users List
 Subject: RE: Servlet Deploy Problem Help


 Lance Thanks.
 What does servlet-mapping mean- is it directory
 structure or an alias to a servlet.I was trying to
 use
 /hello as an alias for the HelloWorld servlet and
 try
 calling it by /hello or by full URL /hello- am I
 completely off on this. and what is this anything?
 Thanks again


 servlet-mapping
   servlet-nameHelloWorld/servlet-name
   url-pattern/hello/*/url-pattern
 /servlet-mapping

 Then you  should be able to call it like:
 http://localhost:8080/search/hello/anything

 --- Lance Smith [EMAIL PROTECTED]
 wrote:
  In you're web.xml change:
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/url-pattern
  /servlet-mapping
 
  to :
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/*/url-pattern
  /servlet-mapping
 
  Then you  should be able to call it like:
  http://localhost:8080/search/hello/anything
 
  Hope this helps
  Lance
 
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 8:21 AM
  To: [EMAIL PROTECTED]
  Subject: Servlet Deploy Problem Help
 
 
  I am just restarting this thread. My problem
 remains
  unsolved. I am running Tomcat4.01/NT. The setup
  should
  be OK as the examples run.
  I am trying to deploy the HelloWorldExample.
  My directory structure is-
  Tomcat4\webapps\search\WEB-INF\classes
  I have my .htm file in the \search directory and
 my
  class in the \classes and my web.xml in the
  \WEB-INF.
  My web.xml looks like this- I have used the
 example
  file to create it-
  servlet
servlet-nameHelloWorld/servlet-name
description
  HelloWorld
/description
 
  servlet-classHelloWorldExample/servlet-class
  /servlet
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/url-pattern
  /servlet-mapping
  Is this web.xml correct?
 
  I have not been able to execute my servelt any
 which
  way:
  /hello
 

http://localhost:8080/search/servlet/HelloWorldExample
  http://localhost:8080/search/servlet/HelloWorld
  http://localhost:8080/search/HelloWorld
  I either get a resource not found or
  java.util.MissingResourceException: Can't find
  bundle
  for base name LocalStrings, locale en_US
  at
 

java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
  07)
  at
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
  at
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
  at HelloWorldExample.doGet(Unknown Source)
 
   My question is how do I exceute it- from the
  /search
  directory or from anywhere else using a full url
  path.
  Thanks a lot,
  Sanjay
 
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards.
  http://movies.yahoo.com/
 
  --
  To unsubscribe:
 
 mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:
 
 mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
 


 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards.
 http://movies.yahoo.com/

 --
 To unsubscribe:
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]


 --
 To unsubscribe:
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]



__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards.

RE: Servlet Deploy Problem Help

2002-03-21 Thread Lance Smith

oops I missed that it was in the stack trace.
Sorry,
Lance

-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 10:20 AM
To: Tomcat Users List
Subject: RE: Servlet Deploy Problem Help


Randy,
Yes that was the problem.Now when I give the complete
path-http://localhost:8080/search/servlet/HelloWorldExample
I can execute the class. 
But I still can not execute the class with:
/hello or http://localhost:8080/search/HelloWorld
or http://localhost:8080/search/servlet/HelloWorld
Thanks very much again,
Sanjay
--- Randy Layman [EMAIL PROTECTED] wrote:
 
   Your problem isn't in the loaded classes (that
 would be a class not
 found).  Instead look at where you are calling the
 method
 java.util.ResourceBundle.getBundle.  The parameter
 you are passing in
 references a resource that Tomcat can't find.
 
   Randy
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 9:56 AM
  To: Tomcat Users List
  Subject: RE: Servlet Deploy Problem Help
  
  
  Thanks of the insight. The servlet is a HelloWorld
  example. The only imports in the class are:
  import java.io.*;
  import java.text.*;
  import java.util.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
  I would easily suppose these should be available
 to
  Tomcat. If not what do I do.
  Thanks
  Sanjay
  --- Randy Layman [EMAIL PROTECTED]
 wrote:
   
 The stack trace you included indicates that you
 are
   running the
   servlet, but its throwing an exception.
   
-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:21 AM
To: [EMAIL PROTECTED]
Subject: Servlet Deploy Problem Help


I either get a resource not found or 
java.util.MissingResourceException: Can't find
   bundle
for base name LocalStrings, locale en_US
at
   
  
 

java.util.ResourceBundle.throwMissingResourceException(Resourc
eBundle.java:707)
at
   
  
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at
   
  
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(Unknown Source)

   
 If your servlet wasn't being called then you
   wouldn't see it in the
   stack trace.  I would suggest that you look at
 how
   you are loading resources
   in your servlet (they are probably not in the
   classpath).
   
 Randy
   
   --
   To unsubscribe:  
  
 mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
   
  
  
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards.
  http://movies.yahoo.com/
  
  --
  To unsubscribe:  
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards.
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Servlet mapping question

2002-03-21 Thread Sean LeBlanc

I want to have a servlet listen at the top level of my app for urls of this
type:

http://www.myserver.com/foo
http://www.myserver.com/bar
etc.

Basically, anything NOT in a subdir, or ending in .jsp or .html. I want the
foo and
bar to be data driven, not something I have to put into the web.xml file
and restart.

So, if a user puts in a bar2, and it's NOT found in the database as being
valid, I will
then have servlet redirect to the default home page. If it is valid, then I
will execute some code,
and then redirect to a page specified in database (by matching the url
given).
Does anyone know how I could do this? What I have tried so far is putting an
url pattern like
this in the web.xml:

servlet-mapping
servlet-nameListen/servlet-name
url-pattern/*/url-pattern
/servlet-mapping

and then have the servlet do a response.sendredirect() to the .jsp if it was
not an URL of the type
I describe above...this only creates an endless loop, though, because the
servlet sees the
redirect, too.

I have tried something like url-pattern/*/$/url-pattern, but that seemed
to match nothing at all
for me.

Thanks in advance,
Sean LeBlanc - [EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: mod_jk problems

2002-03-21 Thread Robert Abbate

Thank you! I will try that. I am using Java 1.3

Robert

-Original Message-
From: Griffith, Patrick, CTR, AFPCA/OAA
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 21, 2002 10:47 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk problems

I had something similar to this. I could get tomcat to run fine (it's
jsp/servlet examples worked) and I could even get it to run with
mod_webapp.so through apache 1.3.22.  But I tried mod_jk (ajp13
connector)
and couldn't get it to work - that's when I saw errors like those below.


I installed a newer jsdk (j2sdk.1.4) from java.sun.com and used it
instead
and now it works.  I guess the mod_jk needs a newer java than just
running
tomcat alone?


-Original Message-
From: Robert Abbate [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 1:56 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk problems


Anyone seen anything like this before?

[Thu Mar 21 01:54:22 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Thu Mar 21 01:54:22 2002]  [jk_ajp13_worker.c (712)]: Error reading
reply
[Thu Mar 21 01:54:22 2002]  [jk_ajp13_worker.c (845)]: In
jk_endpoint_t::service, get_reply failed in send loop 0
[Thu Mar 21 01:55:18 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 0
[Thu Mar 21 01:55:18 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 1
[Thu Mar 21 01:55:18 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2


Tomcat and Apache are up and running fine.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




HTTPS error

2002-03-21 Thread Nicholls, Leon

Hi 
I have installed Tomcat 3.3a on Windows 2000. I get this weird exception
generated by Tomcat the first time I use HTTPS to access the server.
I am using a self-signed keystore. A dialog does popup in the browser to
allow the user to accept the certificate. The page does load fine and Tomcat
continues to work. However, this only happens the first time an HTTPS
connection is made. Any ideas???


2002-03-21 10:31:36 - Ctx() : IOException in R( /) -
java.net.SocketException: Socket closed
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
at org.apache.tomcat.modules.server.Http10.sendHeaders(Unknown
Source)
at org.apache.tomcat.modules.server.HttpResponse.endHeaders(Unknown
Source)
at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Unknown
Source)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(Unknown Source)
at org.apache.tomcat.core.OutputBuffer.flush(Unknown Source)
at org.apache.tomcat.core.OutputBuffer.close(Unknown Source)
at org.apache.tomcat.core.Response.finish(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

2002-03-21 10:31:36 - ErrorHandler: Error loop for R( /) error
java.net.SocketException: Socket closed

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JSPC problem

2002-03-21 Thread Nicholls, Leon

Hi
I have been trying to use the java precompiler for Tomcat 3.3a. However, I
am getting weird error messages.
It seems to complain about not finding the crimson xml parser, but the
crimson.jar file is located under jakarta-tomcat/lib/container. The crimson
parser seems to have registered itself as a parser, but then the parser
cannot be instantiated!?

c:\jdk1.3\bin\java  -Dtomcat.home=c:\PROGRA~1\APACHE~1\jakarta-tomcat
org.apache.tomcat.startup.Main jspc -p  -webapp
s:\wsx\release\build\subscriber
Guessed home=C:\Program Files\Apache Group\jakarta-tomcat
java.lang.reflect.InvocationTargetException:
java.lang.reflect.InvocationTargetException:
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crims
on.jaxp.DocumentBuilderFactoryImpl not found
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
java:145)
at org.apache.jasper.compiler.JspUtil.parseXMLDocJaxp(Unknown
Source)
at org.apache.jasper.compiler.JspUtil.parseXMLDoc(Unknown Source)
at org.apache.jasper.compiler.TagLibraryInfoImpl.init(Unknown
Source)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(Unknown
Source)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(Unknown
Source)
at org.apache.jasper.compiler.Parser$Directive.accept(Unknown
Source)
at org.apache.jasper.compiler.Parser.parse(Unknown Source)
at org.apache.jasper.compiler.Parser.parse(Unknown Source)
at org.apache.jasper.compiler.Parser.parse(Unknown Source)
at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at org.apache.jasper.JspC.parseFile(Unknown Source)
at org.apache.jasper.JspC.parseFiles(Unknown Source)
at org.apache.jasper.JspC.main(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tomcat.util.IntrospectionUtils.callMain(Unknown
Source)
at org.apache.tomcat.startup.Jspc.execute(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
at org.apache.tomcat.startup.Main.execute(Unknown Source)
at org.apache.tomcat.startup.Main.main(Unknown Source)


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Distribution of production systems??

2002-03-21 Thread Shapira, Yoav

Hi,
JARs and WARs and EARs, oh my ;)

A WebApplicationArchive (WAR) contains the files for a web application,
e.g. servlets, JSPs, static files (html, images, libraries, etc.) and so
on, as well as that web application's deployment descriptor (web.xml).  

An EAR typically
contains more than a WAR in that it contains EJBs and their libraries,
information, descriptors, etc.  It may also contain other,
server-specific
deployment details.  It is common for an EAR file to contain one or more
WAR files.  An EAR file will have the application descriptor,
application.xml.

Personally, I use Ant's WAR and EAR tasks to create those files.  I'm
sure
other people have their favorites, as some IDEs have built-in support
for
this.  

Hope this helps,
Yoav

-Original Message-
From: Brown Bay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:21 AM
To: Tomcat Users List
Subject: Distribution of production systems??

I have an application that is ready to ship and uses basically servlets
and
JSPs. Our preferred system of choice is Tomcat/Apache, but there might
be
scenarios where customers would like to choose Websphere or BEA or
. In
this case we are considering packaging the application as a .war file
and
sending this accross.

I tried the .war file generated with BEA yesterday and it did not work
,
but
the same war file worked with Websphere Studio. So my question is what
are
the distribution methods that developers out there use to distribute
their
web applications.

2nd question is what are EAR files and how do they differ from WAR
files.

Thanks in advance.

TP

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




minimun requirment of computer to run tomcat

2002-03-21 Thread divyakant verma

Hi
  anyone know what is the minimum requirment to run
the Tomcat  to run servlet  jsp.

Thank you.
Divyakant Verma

__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Servlet Deploy Problem Help

2002-03-21 Thread Sanjay Bahal

Lance - yes it works thanks a lot.
But what are other shorter forms that I can use to
call the servlet. I would hope to call it with like
/search/hello. What has the /hello/* mapping bought
me.
Thanks
Sanjay
--- Lance Smith [EMAIL PROTECTED]
wrote:
 try http://localhost:8080/search/hello/HelloWorld
 let me know if this works.
 Lance
 
 -Original Message-
 From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, March 21, 2002 10:13 AM
 To: Tomcat Users List
 Subject: RE: Servlet Deploy Problem Help
 
 
 Lance,
 So in other words if I may to /hello/* I would be
 able
 to call my servelet with /hello? or the full URL
 http://localhost:8080/search/hello? I tried it did
 not
 work- requested resource (/hello) is not available.
 
 Thanks a lot,
 Sanjay
 --- Lance Smith [EMAIL PROTECTED]
 wrote:
  Sanjay,
  The servlet-mapping is a tag that allows you to
 map
  a specified pattern to the specified servlet.
 Don't
  get me started on the pattern syntax I still
 haven't
  taken the time to fully comprehend it. So
 basically
  what we told the server was that anytime it sees
 the
  pattern /hello/ in the context of this app send
 it
  to the HelloWorld servlet. The anything means
  anything
  you want to type after the /hello/ since we told
  it to
  match on the /hello/.
  Lance
 
  -Original Message-
  From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 21, 2002 9:01 AM
  To: Tomcat Users List
  Subject: RE: Servlet Deploy Problem Help
 
 
  Lance Thanks.
  What does servlet-mapping mean- is it directory
  structure or an alias to a servlet.I was trying to
  use
  /hello as an alias for the HelloWorld servlet and
  try
  calling it by /hello or by full URL /hello- am I
  completely off on this. and what is this
 anything?
  Thanks again
 
 
  servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/hello/*/url-pattern
  /servlet-mapping
 
  Then you  should be able to call it like:
  http://localhost:8080/search/hello/anything
 
  --- Lance Smith [EMAIL PROTECTED]
  wrote:
   In you're web.xml change:
   servlet-mapping
 servlet-nameHelloWorld/servlet-name
 url-pattern/hello/url-pattern
   /servlet-mapping
  
   to :
   servlet-mapping
 servlet-nameHelloWorld/servlet-name
 url-pattern/hello/*/url-pattern
   /servlet-mapping
  
   Then you  should be able to call it like:
   http://localhost:8080/search/hello/anything
  
   Hope this helps
   Lance
  
  
   -Original Message-
   From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, March 21, 2002 8:21 AM
   To: [EMAIL PROTECTED]
   Subject: Servlet Deploy Problem Help
  
  
   I am just restarting this thread. My problem
  remains
   unsolved. I am running Tomcat4.01/NT. The setup
   should
   be OK as the examples run.
   I am trying to deploy the HelloWorldExample.
   My directory structure is-
   Tomcat4\webapps\search\WEB-INF\classes
   I have my .htm file in the \search directory and
  my
   class in the \classes and my web.xml in the
   \WEB-INF.
   My web.xml looks like this- I have used the
  example
   file to create it-
   servlet
 servlet-nameHelloWorld/servlet-name
   description
 HelloWorld
   /description
  
   servlet-classHelloWorldExample/servlet-class
   /servlet
   servlet-mapping
 servlet-nameHelloWorld/servlet-name
 url-pattern/hello/url-pattern
   /servlet-mapping
   Is this web.xml correct?
  
   I have not been able to execute my servelt any
  which
   way:
   /hello
  
 

http://localhost:8080/search/servlet/HelloWorldExample
   http://localhost:8080/search/servlet/HelloWorld
   http://localhost:8080/search/HelloWorld
   I either get a resource not found or
   java.util.MissingResourceException: Can't find
   bundle
   for base name LocalStrings, locale en_US
 at
  
 

java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
   07)
 at
  
 

java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
 at
  
 

java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
 at HelloWorldExample.doGet(Unknown Source)
  
My question is how do I exceute it- from the
   /search
   directory or from anywhere else using a full url
   path.
   Thanks a lot,
   Sanjay
  
  
 __
   Do You Yahoo!?
   Yahoo! Movies - coverage of the 74th Academy
  Awards.
   http://movies.yahoo.com/
  
   --
   To unsubscribe:
  
 
 mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
  
  
   --
   To unsubscribe:
  
 
 mailto:[EMAIL PROTECTED]
   For additional commands:
   mailto:[EMAIL PROTECTED]
   Troubles with the list:
   mailto:[EMAIL PROTECTED]
  
 
 
  __
  Do You Yahoo!?
  Yahoo! Movies - coverage of the 74th Academy
 Awards.
  http://movies.yahoo.com/

Re: coyote httpconnector design

2002-03-21 Thread peter lin



thanks craig for responding. Here are more details.

Craig R. McClanahan wrote:
 
  Here is a little background on why I am looking for the information.
  I've been doing some performance benchmarks comparing coyote and
  httpconnector on 4.0.2 and 4.0.3 with JSTL. My test pages use a lot of
  includes to dynamically build the header, footer and look of a page.
 
  when I used include directive %@ include file= % the performance for
  4-16 concurrent connections causes dramatic increases in CPU
  utilization. When I use action include as in jsp:include page=/ the
  performance is better. Tomcat is running on a resource limited box,
  600mhz w/256Mb ram.
 
 
 Hmm, this result is a little counter-intuitive.  The %@ include %
 directive causes a single (larger) JSP page to be created -- like the
 #include directive in C code -- versus multiple independent pages that
 are linked via RequestDispatcher.include() calls.  I'm wondering if the
 resource limited part of your description is kicking in.
 
 It would be useful to compare all four combinations:
 - Old connector, include directive
 - Old connector, include action
 - New connector, include dirctive
 - New connector, include action

Before I saw the results, I expected include directive to perform
better. Actually I did several series of tests, including the ones you
suggested. My guess is it's a combination of the code generated and the
thread management causing the CPU spike. One noteable detail is for 32+
concurrent connections, coyote's CPU usage occasionally went down to
zero. The CPU drop had a direct effect on the response time. Here are
some numbers. All times are miliseconds.

include directive - 1 thread 1000 iterations
-
httpconnector ave - 33
cpu usage - 40-70%

action include - 1 thread 1000
-
httpconnector ave - 81
cpu usage - 60-85%

include directive - 2 threads 500
-
httpconnector ave - 453
cpu usage - 85-100%

action include - 2 threads 500
-
httpconnector ave - 299
cpu usage - 80-100%

include directive - 4 threads 250
-
httpconnector ave - 27273
cpu usage - 100%
coyote connector ave - 590

action include - 4 threads 250
-
httpconnector ave - 738
cpu usage - 95-100%
coyote connector ave - 211
cpu usage - 15% less than httpconnector

include directive - 8 threads 125
-
httpconnector - failed to complete
cpu usage - 100%
coyote ave - 1546
cpu usage - 80-100%

action include - 8 threads 125
-
httpconnector ave - 1867
cpu usage - 95-100%
coyote ave - 370
cpu usage - 90-100%

action include - 16 threads 63
-
httpconnector ave - 1323
cpu usage - 95-100%
coyote ave - 792
cpu usage - 95-100%

people2.jsp - 32 threads 63 
-
coyote ave - 1215
cpu usage - 95-100%

Simple jsp page that prints out http headers java and jstl to print req
param
1 thread 1000 iterations
-
httpconnector ave - 10
cpu usage - 20-30%

2 thread 500 iterations
-
httpconnector ave - 11
cpu usage - 30-40%

4 thread 250 iterations
-
httpconnector ave - 16
cpu usage - 40-60%

32 threads 65 iterations
-
httpconnector ave - 252
coyote ave - 84

64 threads 35 iterations
-
coyote ave - 136


 
  Using include directive, the compiled class file gets close to the 64K
  limit (around 61K).
 
 This is a fundamental limitation of the current JSP page compiler in
 Jasper), because all the code generated for your page ends up in a single
 _jspService() method.

related to this, are there plans to improve JSP page compilation?

 
 Tracking down whether that CPU usage is in the connector versus in the JSP
 page execution would be useful -- they are pretty much independent of each
 other.

My next set of benchmarks I will compare static pages to JSP pages of
varying complexity.  the results from the static pages should establish
the theoritical limit, but other than use something like JProbe to see
what is happening, I'm not clear on the best way to see the exact cause.

 I would suggest that you make the experiments on which connector
 independent of which JSP implementation technique is used, as well as
 running them in combination.  The performance of a given JSP page is very
 much driven by the quality of the code generated by the compiler (just
 like any situation where you're compiling code).  What is not obvious from
 your reports to date is how much joint impact there is -- but it sounds
 like there is more interdependency here than I would have expected.

As I perform more tests and talk with Remy, I can track down what causes
the CPU spike. Or atleast I hope :)


peter lin

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Debian Woody / Tomcat / Example JSPs

2002-03-21 Thread Marcus Bungert

Hello everybody,

first at all, I'm sorry for my poor english but I hope you understand my
problem description.

I tried to install Tomcat 3.3a with mod_jk for Apache 1.3.23 and
Blackdown J2SDK1.3 to my Debian Woody.

After the installation I'm able to access /examples via Port 8081 and
via Apache (this is mod_jk?).

The servlets are working all but if I try the example JSPs I get the
following error (this is the output of numguess.jsp):

Error: 500

Location: /examples/jsp/num/numguess.jspInternal Servlet Error:
 
org.apache.jasper.JasperException: Unable to compile 
Found 1 semantic error compiling 
/var/cache/tomcat/DEFAULT/examples/jsp/num/numguess_1.java:


69.   numguess = (num.NumberGuessBean)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
num.NumberGuessBean);


  


*** Error: beans is either a misplaced package name or a non-existent 
entity. An expression name is expected in this context.


at
org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:800)


at
org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:641)


at
org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:446)


at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)


at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)


at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)


at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:213)


at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:477)


at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:519)

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

Everything with Java is very new to me. I do not know where to look for
the reasons of this error.

Thanks for help in advance...

Marcus

-- 

 :: GPG Fingerprint  2196 F6E0 2DFE 36F0 4F69  4259 D12A CB99 834C CA31


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: minimun requirment of computer to run tomcat

2002-03-21 Thread Mark Eggers

I don't have a good clue as to what the 'minimum' is.

However, I am running two small systems primarily for
development / testing work.  Both seem to work well
and are loaded down with quite a bit.

System 1

Tecra 8000 with 256 MB memory and 7 GB hard drive
OS - RedHat Linux 6.2

Apache 1.3.22 / mod_ssl
 Tomcat 4.0.1
  cocoon 2.0.2-dev
   Docbook HTML conversion
  jetspeed
  turbine development kit
 w-agora (PHP-based discussion group)
 bugzilla
Postgresql 7.1.3
MySQL 3.22.32
ColdFusion 4.52

There are other things running on this system as well,
including mod_php, mod_perl, and a CVS server.  I am
looking to install JBoss for J2EE services.

System 2

Tecra 8100 with 384 MB memory and 11.2 GB hard drive
OS - Windows 2000 Professional

Apache 1.3.22 or IIS 5
 Tomcat 4.0.1
  Cocoon 2.0.2-dev
   Docbook HTML conversion
  Jetspeed
  Turbine Development Kit
 Phorum (PHP-based discussion group software)
MySQL 3.23.39
Oracle 8i
ColdFusion 4.52

There are several other things running on this system
as well, including PHP, ActiveState Perl, and
ComponentSoftware's RCS for Windows.  It's a bit
cranky on booting, but certainly a useable system.

I'm considering shutting down Oracle 8i for the moment
and installing Postgresql.  This will allow me to
migrate complete systems between the two environments.

Since both of these systems are laptops, they make
great portable development environments.

With the proper editors I can do a lot of damage.  I
have emacs on both systems, including the XAE
environment for XML, and the JDE for Java.  I use GIMP
for graphics production.

With the exceptions of ColdFusion and Oracle, this
entire environment is freely available.

I hope this helps.  It's absolutely amazing what you
can do with freely available software.  And when it
comes time to run the developed applications on a
commercial implementation, the fact that these tools
produce standard packages makes implementation quite
easy.

Just my two cents.

/mde/

__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JSPC problem

2002-03-21 Thread Larry Isaacs

A bug prevents JSPC from working in Tomcat 3.3(a). This
has been fixed in Tomcat 3.3.1-rc1 and the
nightly Tomcat 3.3.x.  Tomcat 3.3.x has the advantage
of outputting the correct slash ('/' instead of '\') in the
generated web.xml file for url-pattern elements on
Windows systems.

Cheers,
Larry

 -Original Message-
 From: Nicholls, Leon [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, March 21, 2002 10:25 AM
 To: '[EMAIL PROTECTED]'
 Subject: JSPC problem
 
 
 Hi
 I have been trying to use the java precompiler for Tomcat 
 3.3a. However, I
 am getting weird error messages.
 It seems to complain about not finding the crimson xml parser, but the
 crimson.jar file is located under 
 jakarta-tomcat/lib/container. The crimson
 parser seems to have registered itself as a parser, but then 
 the parser
 cannot be instantiated!?
 
 c:\jdk1.3\bin\java  
 -Dtomcat.home=c:\PROGRA~1\APACHE~1\jakarta-tomcat
 org.apache.tomcat.startup.Main jspc -p  -webapp
 s:\wsx\release\build\subscriber
 Guessed home=C:\Program Files\Apache Group\jakarta-tomcat
 java.lang.reflect.InvocationTargetException:
 java.lang.reflect.InvocationTargetException:
 javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crims
 on.jaxp.DocumentBuilderFactoryImpl not found
 at
 javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentB
 uilderFactory.
 java:145)
 at org.apache.jasper.compiler.JspUtil.parseXMLDocJaxp(Unknown
 Source)
 at 
 org.apache.jasper.compiler.JspUtil.parseXMLDoc(Unknown Source)
 at 
 org.apache.jasper.compiler.TagLibraryInfoImpl.init(Unknown
 Source)
 at
 org.apache.jasper.compiler.JspParseEventListener.handleDirecti
 ve(Unknown
 Source)
 at
 org.apache.jasper.compiler.DelegatingListener.handleDirective(Unknown
 Source)
 at org.apache.jasper.compiler.Parser$Directive.accept(Unknown
 Source)
 at org.apache.jasper.compiler.Parser.parse(Unknown Source)
 at org.apache.jasper.compiler.Parser.parse(Unknown Source)
 at org.apache.jasper.compiler.Parser.parse(Unknown Source)
 at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
 at org.apache.jasper.JspC.parseFile(Unknown Source)
 at org.apache.jasper.JspC.parseFiles(Unknown Source)
 at org.apache.jasper.JspC.main(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.tomcat.util.IntrospectionUtils.callMain(Unknown
 Source)
 at org.apache.tomcat.startup.Jspc.execute(Unknown Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at 
 org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.main(Unknown Source)
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Distribution of production systems??

2002-03-21 Thread Brown Bay

Hello,

Thanks for the reply. Thanks for the short explanation, I am assuming here
that war is the way to go for me ;) (pardon the pun)

So, that gets me to my second question, should a war created through ant or
java's war utility be able to work on any application server (certified or
not). because the .war i created worked on Tomcat and websphere out of the
box, but did not work on weblogic. shouldnt a .war work on any application
server?

Please let me know your experiences.

Thanks,

Brown.

-

From: Shapira, Yoav [EMAIL PROTECTED]


Hi,
JARs and WARs and EARs, oh my ;)

A WebApplicationArchive (WAR) contains the files for a web application,
e.g. servlets, JSPs, static files (html, images, libraries, etc.) and so
on, as well as that web application's deployment descriptor (web.xml).

An EAR typically
contains more than a WAR in that it contains EJBs and their libraries,
information, descriptors, etc.  It may also contain other,
server-specific
deployment details.  It is common for an EAR file to contain one or more
WAR files.  An EAR file will have the application descriptor,
application.xml.

Personally, I use Ant's WAR and EAR tasks to create those files.  I'm
sure
other people have their favorites, as some IDEs have built-in support
for
this.

Hope this helps,
Yoav

-Original Message-
From: Brown Bay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:21 AM
To: Tomcat Users List
Subject: Distribution of production systems??

I have an application that is ready to ship and uses basically servlets
and
JSPs. Our preferred system of choice is Tomcat/Apache, but there might
be
scenarios where customers would like to choose Websphere or BEA or
. In
this case we are considering packaging the application as a .war file
and
sending this accross.

I tried the .war file generated with BEA yesterday and it did not work
,
but
the same war file worked with Websphere Studio. So my question is what
are
the distribution methods that developers out there use to distribute
their
web applications.

2nd question is what are EAR files and how do they differ from WAR
files.

Thanks in advance.

TP

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problems with jsps that have underscores

2002-03-21 Thread Ed Mangual








After not being able to pre-compile jsps with tomcat-4.0.3 I
tried tomcat-3.2.3 and when pre-compiling jsps that have underscores I get
something hex like in source file name



Example:



my_own.jsp produces the following my_0005fown.jsp





And if you look at the source file it self you see the
following

 Snippet #



package jsp;



import javax.servlet.*;

import javax.servlet.http.*;

import javax.servlet.jsp.*;

import javax.servlet.jsp.tagext.*;

import java.io.PrintWriter;

import java.io.IOException;

import java.io.FileInputStream;

import java.io.ObjectInputStream;

import java.util.Vector;

import org.apache.jasper.runtime.*;

import java.beans.*;

import org.apache.jasper.JasperException;





public class my_0005fown extends HttpJspBase {





 static {

 }

 public my_0005fown( ) {

 }



 private static boolean _jspx_inited =
false;



 public final void _jspx_init() throws JasperException
{

 }



# End of Snippet #





Has any body seen this?



Ed Mangual

SCM Architect

Business Banking Division

S1 Corporation, Charlotte

704-423-2530

mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


re-deploying a web app

2002-03-21 Thread Satish Jeejula

Hi All,

I have tomcat 3.3a running and am using that to deploy my web applications.

The procedure I am following  to deploy a webapp is by placing
filename.war file in the webapps directory under tomcat_home. When I start
the tomcat, the war file is getting expanded into web-app directory
structure.

Now when I make changes to my application, I recreate the war file and place
it in webapps directory. Now if I restart tomcat, ideally, it should expand
this war file .. right?

But it is not happening. I have to delete the existing web-app directory
structure so that when tomcat is re-started it expands the new war file.

Is there any property in the tomcat config files that I need to set, to make
tomcat expand the war file whenever it finds new one in the webapps
directory?

Any help is appreciated.

Thanks,
Satish




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




  1   2   >