AW: Debian Woody / Tomcat / Example JSPs

2002-03-21 Thread Ralph Einfeldt

Sounds as if a fundamental java library (rt.jar) is not 
in the classpath.

java.beans is a standard package since jdk 1.1.

> -Ursprüngliche Nachricht-
> Von: Marcus Bungert [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 21. März 2002 19:41
> An: [EMAIL PROTECTED]
> Betreff: Debian Woody / Tomcat / Example JSPs

> 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.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Servlet wierd behaviour regarding concurrency in tomcat 4.0.1

2002-03-21 Thread Achilleus Mantzios

I see the same results in tomcat 4.0.2
and in jetty 3.1.3-1.

DO I MISS SOMETHING???

Help!!!

Is it ALWAYS that 2 requests for the SAME URI
block

I seem to raise the white flag fellas.

If anybody can shed some light please do.

In specs, discussions i have never seen any
notion of the "URL" as far as concurrent servlet serving threads are 
concerned.

Please HELP!
I am really stuck, and all i wanna know is if this is the supposed
behaviour or not.
Thanx for any one volunteering to share his/her knowledge.

On Thursday 21 March 2002 11:23, Achilleus Mantzios wrote:
> 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=bar1&foo2=bar2 and
> http://myserver/servlet/ThreadTest?foo2=bar2&foo1=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=bar1&foo2=bar2 and
> http://myserver/servlet/ThreadTest?foo1=bar1&foo2=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:   
For additional commands: 
Troubles with the list: 




Using Apache Basic Authentication on servlet

2002-03-21 Thread Barris, Wes (LI, Uni of Queensland)

I have a web site that uses the standard apache basic authentication
scheme.

Using mod_webapp, I have servlets served from a sub-directory in
the protected web tree.  How do I cause tomcat to only serve
these servlets if the client has authenticated itself using
the standard apache authentication scheme?

So far, the only way I can get tomcat to restrict access to
its servlets is to put users into the conf/tomcat-users.xml
file.  I don't want to have to keep two databases (apache
and tomcat) of username/passwords.
--
Wes Barris
E-Mail: [EMAIL PROTECTED]
Phone: 07-3346-2504

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JDBCRealm & Debug Logging

2002-03-21 Thread @Basebeans.com

Subject: Re: JDBCRealm & Debug Logging
From: Vic Cekvenich <[EMAIL PROTECTED]>
 ===
One would assume that you tested connecting to the JDBC outside of 
Tomcat and have the JARs in lib.

Eric Grace wrote:

> Hello,
>  
> I'm getting an extremely general SQLException on startup and am
> wondering if there is a way to get better debugging info that will
> illuminate the real problem ( changing the debug level on the realm does
> not seem to have any effect ).  It would be nice to not have to edit the
> sourcecode, though it's not out of the question.  Could someone give a
> bit of direction on what I might be missing here to get a JDBCRealm up
> and running?  Thanks in advance.
>  
> I have the following Realm definition in server.xml..
>   className="org.apache.catalina.realm.JDBCRealm" 
> debug="5" 
> driverName="org.gjt.mm.mysql.Driver" 
> connectionName="conname" 
> connectionPassword="conpass" 
> connectionURL="jdbc:mysql://localhost:3306/tomcatusers" 
> userTable="users" 
> userNameCol="login" 
> userCredCol="password" 
> userRoleTable="user_roles" 
> roleNameCol="role_name"/>
>  
> permissions on the data files..666 ( not for the rest of the path )
>  
>  
> The following occurs at startup..and is dumped to catalina.out
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.1
> Catalina.start: LifecycleException:  Exception opening database
> connection:  java.sql.SQLException: org.gjt.mm.mysql.Driver
> LifecycleException:  Exception opening database connection:
> java.sql.SQLException: org.gjt.mm.mysql.Driver
> at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3334
> )
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:388)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.sql.SQLException: org.gjt.mm.mysql.Driver
> at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538)
> at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3334
> )
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:388)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Problem to install Jserv

2002-03-21 Thread Raimo . Dahl


Hi all
I know this might not be the right plase to ask this, but I have nothing
else to ask to.

The biggest problem is to set Apache Source directory wich is needed when
installing Jserv.
The question is, what this directory is.

I get error shown down below.

checking for Apache source directory (assume static build)... configure:
error: Directory  is not a valid Apache source distribution

I´ve been trying these.
/usr/local/apache
/oracle/product/9.0.1/Apache/jdk
/oracle/product/9.0.1/Apache/Jsdk/src

None of these is valid.

- Raimo Dahl


-
Raimo Dahl
OSS Engineer
Mobile +358 41 500 4911

Telia Mobile AB, http://www.telia.fi
P.O. Box 41, 01741 Vantaa, Finland
Visiting address: Ansatie 6 A
-


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




currently connected users / server-status

2002-03-21 Thread Dampf, Thorsten

Hi all,

does anybody know a possibility to see how many user currently have any
session to my tomcat-server (something like the "server-status" of apache)??
I'm running Tomcat 3.2.

TIA

Thorsten Dampf
System Integration and Administration

paybox.net AG  :-)))
Am Prime Parc 6 
D  65479 Raunheim/Frankfurt  Germany

fon +49.6142.407-1572
fax +49.6142.407-
mobile  +49.172.949 85 26

mailto:[EMAIL PROTECTED] 
_

Mobile Payment Delivery Made Simple
PIA paybox Intelligent Architecture: http://www.paybox.net
_




Startup Message

2002-03-21 Thread Gurmeet

Hi All,

I used to get a message like "Starting Apache-Tomcat StandAlone service" and
two more lines of text on the console whenever I started Tomcat.

Recently I just configured SSL on my server and that message stopped coming.
As such I dont have any problem with that but any Idea why that message
disappeared?

Gurmeet


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat Install RPM question...

2002-03-21 Thread Robert Abbate

Hello. I’ve been trying to figure our exactly how to install this for a
week now and no success, and I was wondering if someone can just quickly
tell me exactly which RPMs I need to *successfully* install and run a
Tomcat 4 environment with virtual hosts (on a shared web hosting
server). So far, I’ve gathered I need mod_jk and the Tomcat RPM, but are
there any others?
 
Which RPMs from here?:
 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/rpms/
 
Or is there another location to look for what I need too?
 
Thank you kindly.
Robert



Re: coyote & httpconnector design

2002-03-21 Thread Peter Lin


Hi jason,

Here are some answers to your questions. I should have
mentioned this in the original or second message.

--- Jason Koeninger <[EMAIL PROTECTED]> wrote:
> I have a few curiosity questions if you don't mind. 
> First, 
> what's your test configuration?  What platform is
> the machine 
> below running, and what else is running on it? 

PIII 600mhz, 256meg ram, win2K, jdk1.4, memory
settings in catalina.bat is default.

The configuration for coyote is the stock
configuration suggested on the coyote readme. The
httpconnector is set higher than the normal. I'm at
home now, but it should be 100min, 200max processors.
With lower min/max processors the performance is not
as good. The other values are default.

> Also, are you 
> running the load generator on the same machine or on
> a 
> different machine?  Second, have you checked to see
> if the 
> system is swapping memory during your tests?  And,
> what 
> JVM are you using?
> 
> Below, I noticed you said you were going to see how
> fast 
> static content would work.  It might be as or more
> interesting 
> to measure a servlet doing the same work as your JSP
> pages.
> I know that it's supposed to run just like a servlet
> after the 
> compile is done on the first request, but it would
> be interesting 
> nonetheless to remove that overhead and look at the
> differences.

I'm using Jakarta JMeter to do the benchmark from a
separate system. the other applications running on the
system running tomcat are text editor and windows
taskmanager. The disk caching is more heavy with
httpconnector. Not very scientific, but basically I
listen to the hard drive. With httpconnector, the
things spins with 4+ concurrent connections. With
coyote, 16+ concurrent connections I start to hear a
lot of disk caching. I've been know to kill hard
drives that way :)

> 
> Anyway, just curious for my own information.  I'll
> be having to 
> do some load testing of my own in the next couple of
> months 
> so this would be timely information.  

The other tests I am including in my next set include
static html and a third set of pages that use java
with include directive. When I look at the code
generated, using include directive with multiple
 statements and nested includes within
, the code is pretty messy in terms of how
many times tagfactory is called and nested conditional
statements. Here is an example:

page 1
---
<%@ include file="page2.jsp" %>

page 2
---

  <%@ include
file="page3.jsp" %>
  "repeat previous line about 10 times.."
  <%@ include file="page14.jsp" %>


page 3
---

  <%@ include
file="page15.jsp" %>
  "repeat previous line about 10 times.."
  <%@ include file="page26.jsp" %>


page 15
---

  <%@ include
file="page27.jsp" %>
  "repeat previous line about 10 times.."
  <%@ include file="page38.jsp" %>


The actual pages sometimes add one more layer of
 to print out some text, based on request
parameters.

Now of course, the obvious question is "why in the
world are you nesting files that way?" Unfortunately,
I've worked on systems that use includes to build
presentation logic that are pretty complex. Say I
built a web based recipe database and I want to make
it easy to programmatically add new custom templates,
like a cobrand or myrecipe site. Alot of HTML code is
dynamically generated. Using JSTL could be a way to
make it so a person with minimal HTML skills can
create their own cobrand easily.

> 
> Best Regards,
> 
> Jason Koeninger
> J&J Computer Consulting
> 

peter lin

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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




HTTPS error

2002-03-21 Thread Lee Chin Khiong


Hi 
I have installed Tomcat 4 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



Tomcat and Radius

2002-03-21 Thread Mark Wolfe

Is there a module available that enables Tomcat to authenticate of a radius
server?

Regards,

Mark Wolfe
Hammond Street Developments
http://www.hsd.com.au





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: coyote & httpconnector design

2002-03-21 Thread Jason Koeninger

I have a few curiosity questions if you don't mind.  First, 
what's your test configuration?  What platform is the machine 
below running, and what else is running on it?  Also, are you 
running the load generator on the same machine or on a 
different machine?  Second, have you checked to see if the 
system is swapping memory during your tests?  And, what 
JVM are you using?

Below, I noticed you said you were going to see how fast 
static content would work.  It might be as or more interesting 
to measure a servlet doing the same work as your JSP pages.
I know that it's supposed to run just like a servlet after the 
compile is done on the first request, but it would be interesting 
nonetheless to remove that overhead and look at the differences.

Anyway, just curious for my own information.  I'll be having to 
do some load testing of my own in the next couple of months 
so this would be timely information.  

Best Regards,

Jason Koeninger
J&J Computer Consulting

On Thu, 21 Mar 2002 13:48:15 -0500, peter lin wrote:

>
>
>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  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 indep

JDBCRealm & Debug Logging

2002-03-21 Thread Eric Grace

Hello,
 
I'm getting an extremely general SQLException on startup and am
wondering if there is a way to get better debugging info that will
illuminate the real problem ( changing the debug level on the realm does
not seem to have any effect ).  It would be nice to not have to edit the
sourcecode, though it's not out of the question.  Could someone give a
bit of direction on what I might be missing here to get a JDBCRealm up
and running?  Thanks in advance.
 
I have the following Realm definition in server.xml..
 
 
permissions on the data files..666 ( not for the rest of the path )
 
 
The following occurs at startup..and is dumped to catalina.out
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database
connection:  java.sql.SQLException: org.gjt.mm.mysql.Driver
LifecycleException:  Exception opening database connection:
java.sql.SQLException: org.gjt.mm.mysql.Driver
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3334
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.sql.SQLException: org.gjt.mm.mysql.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3334
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)



response.encodeURL and jsessionid

2002-03-21 Thread Varghese, Rennu

Hello all,
I have a serious problem with url rewriting in tomcat.

here are the snippets of code. I'm using tomcat 3.3a

 I have cookies turned off, in server.xml , I also tried with noCookies = false.  i've taken out exception 
handling and irrelevant code.
 
String orgpath = response.encodeURL( url );
forwardRequest( url, request, response );
  context_.getRequestDispatcher( url ).forward( request, response );
  
I have a simple test jsp with code like this.
  
String sessionIdStr = ";jsessionid=" + request.getSession().getId() ;
String topFrameUrl = response.encodeURL("/home" +  "?ID=InitialTask");
<%
out.println("Session id string is: " + sessionIdStr );
out.println("");
out.println("Top frame new url is: " + topFrameUrl); 
%> 

the session id prints correctly. but the topFrameUrl prints without the ;jsessionid 
part.  
It's killing me. It looks like the response.encodeURL on jsp is not working.  I've 
tried both encodeUrl(deprecated) and encodeURL

I've seen numerous postings in the archives regarding this issue, but no conclusive 
solution or answer that works. Somebody has to have a solution to this, other than 
hacking the urls in the jsp to include ;jsessionid before the ?


thanks,
Rennu.
 


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only for the individual 
named.  If you are not the named addressee you should not disseminate, distribute or 
copy this e-mail.  Please notify the sender immediately by e-mail if you have received 
this e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free as information 
could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses.  The sender therefore does not accept liability for any errors or 
omissions in the contents of this message which arise as a result of e-mail 
transmission.  If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be construed as a 
solicitation or offer to buy or sell any securities or related financial instruments.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: coyote & httpconnector design

2002-03-21 Thread Remy Maucherat

> 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.

There's the source code at this point ;-)
j-t-c/coyote, j-t-c/http11 and of course j-t-c/util.

coyote is an adapter for Tomcat (3.3.x and 4.x).
http11 is an HTTP/1.1 processor (takes an input stream with the request
bytes, and writes the response bytes to an output stream).

The httpconnector has the two mixed together (so it's harder to maintain),
with an unusual way of handling response buffering.

The HTTP request parsing code is relatively similar, with the new one having
fancier and more efficient buffering.

The HTTP response in Coyote is based on the OutputBuffer from Tomcat 3.3,
which makes the ouptut a lot more efficient, and allows to recycle the
writers and output streams used.

Generally, the implementation of the new HTTP processor is a lot more
elegant and robust (plus it's quite fast, which doesn't hurt).

> 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  the
> performance is better. Tomcat is running on a resource limited box,
> 600mhz w/256Mb ram.

I have no idea why the directive is slower.
In any case, I don't see how it would make a difference for the connector,
so the explanation is probably in the Jasper code.

One test which would be useful to get a better idea would be to assemble the
pages manually, and comparing with the previous results.

> 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.

It's designed to be fast, but I don't know why the performance gains get
bigger when including.

Remy


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Does tomcat support session management and connection pooling

2002-03-21 Thread Andy Eastham

Uma,

Sessions are part of the ServletSpecification - there is an interface
HttpSession.  all you do is call request.getSession() to get the current
request's session.  You can store any data you want in a session to make it
available in future requests by the same client.

http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpSession.
html

Check this link out too:
http://servlet.java.sun.com/manual/servlets/a-sess.htm

Connection pooling is tougher.  JNDI does connection pooling, but I don't
know too much about it.

Hope this helps,

Andy

> -Original Message-
> From: Uma Munugala [mailto:[EMAIL PROTECTED]]
> Sent: 21 March 2002 21:23
> To: '[EMAIL PROTECTED]'
> Subject: FW: Does tomcat support session management and connection pooling
>
>
>
>
> 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:   
> > For additional commands: 
> > Troubles with the list: 
>
> --
> Lev AssinovskyPeterlink Web
> Programmer  St. Petersburg, Russia
> Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
> E-mail: [EMAIL PROTECTED]
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Performance issues with mod_webapp

2002-03-21 Thread Thierry Delaitre


Hi,

I'm currently investigating solutions to deploy tomcat for a number of
students. One solution would consist of creating a context for each user
and adding a WebAppDeploy statement for each user in the apache config
file. I currently have approx. 75 WebAppDeploy statements on the same warp
connection. I'm using tomcat-4.03 & webapp-module-20020321.

The problem is that performance is poor when the number of WebAppDeploy
statements is 75 eventhough when I'm the only user browsing my webapp
directory. It takes nearly 30 seconds to enter in a directory when
clicking on it. Performance is ok when accessing the webapps through the
tomcat web server or when using only a few WebAppDeploy statements.

Is this due to the design of modwebapp ? What do you recommend to deploy
tomcat for many students ?

Cheers,

Thierry.


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




FW: 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:   
> For additional commands: 
> Troubles with the list: 

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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Solaris Install Question

2002-03-21 Thread McCay, Tim

Hi Scott,

Looks like your error is a result of port 8005 already being used by another
process.

You need to edit server.xml and change the 8005 line to another port.  You
better ask your sysadmin for an open port.

StandardServer.await: create[8005]: java.net.BindException: Address already
in use.

Hope this helps,
Tim

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 11:45 AM
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(HttpConnector.ja
va: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.ja
va: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.(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:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: ISAPI Filter not working with Webfolders win2k and Webdrive 5 .1

2002-03-21 Thread Robert Priest

Juergen,

Almost there.

Thanks for your help. That did clear up the problem with accessing
http://localhost/webdav (the tomcat webdav servlet).

However, if authentication is enabled on the application (as is my slide
implementation), I still getting prompted for a network login. What I am
seeing looks similar to the issue detailed in the following bug report:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5647

One thing i see, is that the it looks like the authorization information is
being taken and then lost somewhere.
According to the bug report above, someone had a patch at one point (if this
is the same issue), but it was lost in subsequent updates to the project.
I will try to pursue this one a little further. But here is a little more
information on the problem I am seeing now.

Here is what happens in the different clients:

In IE:

FIrst I get the proper "Basic Authentication" (realm="Slide Dav Server")
login prompt. I fill in my information.
But next, I get what looks like the nt authentication prompt which now has a
realm="localhost". We end in a 401 error.


In WebFolders Win2k and Webdrive 5.1:

What I see is just the the nt authentication prompt which now has a
realm="localhost".

Both of these results eventually lead me to a 401 error.

BTW - I am positive that I turned off "Windows Integrated Authentication" in
the IIS console.

Here is an excerpt (of a request that failed) from my WebDrive logfile
(webdrive.log) to give you an idea of what the client is seeing. If you have
any ideas please let me know:

03/21/02 10:24:03 [Z:] NT Platform
03/21/02 10:24:03 [Z:] Version 5.01 (build 938)
03/21/02 10:24:03 [Z:] Connecting to http://localhost/slide/test ...
03/21/02 10:24:03 [Z:] OPTIONS /slide/test HTTP/1.1
03/21/02 10:24:03 [Z:] Host: localhost
03/21/02 10:24:03 [Z:] User-Agent: WebDrive/5.01 NT
03/21/02 10:24:03 [Z:] Accept-Language: en-us
03/21/02 10:24:03 [Z:] Translate: f
03/21/02 10:24:03 [Z:] Pragma: no-cache
03/21/02 10:24:03 [Z:] Connection: close
03/21/02 10:24:03 [Z:] HTTP/1.1 401 Unauthorized
03/21/02 10:24:03 [Z:] Server: Microsoft-IIS/5.0
03/21/02 10:24:03 [Z:] Date: Thu, 21 Mar 2002 15:24:03 GMT
03/21/02 10:24:03 [Z:] Connection: close
03/21/02 10:24:03 [Z:] Content-Type: text/html
03/21/02 10:24:03 [Z:] WWW-Authenticate: Basic realm="Slide DAV Server"
03/21/02 10:24:03 [Z:] OPTIONS /slide/test HTTP/1.1
03/21/02 10:24:03 [Z:] Host: localhost
03/21/02 10:24:03 [Z:] User-Agent: WebDrive/5.01 NT
03/21/02 10:24:03 [Z:] Accept-Language: en-us
03/21/02 10:24:03 [Z:] Translate: f
03/21/02 10:24:03 [Z:] Pragma: no-cache
03/21/02 10:24:03 [Z:] Connection: close
03/21/02 10:24:03 [Z:] Content-Length: 0
03/21/02 10:24:03 [Z:] Authorization: Basic cHdhZG1pbjpwd2FkbWlu
03/21/02 10:24:03 [Z:] HTTP/1.1 401 Access Denied
03/21/02 10:24:04 [Z:] Server: Microsoft-IIS/5.0
03/21/02 10:24:04 [Z:] Date: Thu, 21 Mar 2002 15:24:03 GMT
03/21/02 10:24:04 [Z:] WWW-Authenticate: Basic realm="localhost"
03/21/02 10:24:04 [Z:] Connection: close
03/21/02 10:24:04 [Z:] Content-Length: 3245
03/21/02 10:24:04 [Z:] Content-Type: text/html
03/21/02 10:24:04 [Z:] Authentication failed
03/21/02 10:24:04 [Z:] Can't connect to WebDAV server at
http://localhost/slide/test, Authentication failed


-Original Message-
From: Pill, Juergen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 6:34 AM
To: 'Slide Developers Mailing List'; 'Tomcat Users List'
Subject: RE: ISAPI Filter not working with Webfolders win2k and Webdrive
5 .1


Hello,

This is probably a bug in IIS 5.x. We had to change a single line in the
filter:


DWORD WINAPI HttpFilterProc(PHTTP_FILTER_CONTEXT pfc,
DWORD dwNotificationType, 
LPVOID pvNotification)
{
if(is_inited &&
   (SF_NOTIFY_PREPROC_HEADERS == dwNotificationType)) { 
PHTTP_FILTER_PREPROC_HEADERS p =
(PHTTP_FILTER_PREPROC_HEADERS)pvNotification;
char uri[INTERNET_MAX_URL_LENGTH];
char snuri[INTERNET_MAX_URL_LENGTH]="/";
char Host[INTERNET_MAX_URL_LENGTH];

char *query;
DWORD sz = sizeof(uri);
DWORD szHost = sizeof(Host);

jk_log(logger, JK_LOG_DEBUG,
   "HttpFilterProc started\n"); 


/*!  Patch to work with IIS 5.x !!*/
p->SetHeader(pfc, "Translate:", ""); 


/*
 * Just in case somebody set these headers in the request!
 */

p->SetHeader(pfc, URI_HEADER_NAME, NULL);
p->SetHeader(pfc, WORKER_HEADER_NAME, NULL);

if(!p->GetHeader(pfc, "url", (LPVOID)uri, (LPDWORD)&sz)) {
jk_log(logger, JK_LOG_ERROR, 
   "HttpFilterProc error while getting the url\n");
return SF_STATUS_REQ_ERROR;
}


Best regards,

Juergen


 -Original Message-
From:   Robert Priest [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, March 20, 2002 21.20 PM
To: 'Tomcat Users List'
Cc:   

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
.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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 


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:   
>For additional commands: 
>Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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  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.(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:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




tomcat 4.0 as nt service

2002-03-21 Thread Kwan, William

Hi,

I installed Tomcat 4.0, everything seems fine.  When I look at the nt
services, I see a Apache Tomcat already created in there I guess during the
installation.  When I try to start it, I get the following error:

Could not start the Apache Tomcat service on local computer.
The service did not return an error. This could be an internal windows error
or an internal service error.

When I look at the properties of the apache tomcat service, the start path
says:
C:\java\apache tomcat 4.0\bin\tomcat.exe

But when I actually run tomcat from shortcut from start button, i use:
C:\java\j2sdk1.4.0\bin\java.exe -jar -Duser.dir="c:\java\apache tomcat 4.0"
"c:\java\apache tomcat 4.0\bin\bootstrap.jar" start

which runs fine.

I have seen the links for creating the service, do I really need to create
another service for tomcat??  Couldnt I use the one it installed??

Any ideas??

thanks,
Will


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How to turn debug on?

2002-03-21 Thread Sanjay Bahal

How to turn debug on?
Thanks
Sanjay

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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Problem running the jspc from the command line

2002-03-21 Thread Ed Mangual








I am trying to run jspc from the command line and get the
following error:

 

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/jasper/JspC

 

I am have tomcat-4.0.3 and run win2k. 

JASPER_HOME is set.

JAVA_HOME is set.

 

Can anybody shed some light on this issue? I am trying to
create a task for ant 1.4.1 for pre-compiling jsps and need some help. Has any
body written a task for ant that does this?

 

 

Any help will be appreciated.

 

Ed Mangual

SCM Architect

Business Banking Division

S1 Corporation, Charlotte

704-423-2530

mailto:[EMAIL PROTECTED]

 







--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


RE: Servlet Deploy Problem Help

2002-03-21 Thread Randy Layman


To make /search/hello work just set the URL pattern to "/help"
(without quotes).  This will match the literal (and only the literal) /help
within your webapp (which is /seach, apparently).

Randy

> -Original Message-
> From: Lance Smith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 21, 2002 1:59 PM
> To: 'Tomcat Users List'
> Subject: RE: Servlet Deploy Problem Help
> 
> 
> Now try http://localhost:8080/search/hello/abc
> it should work also.
> getting it to work with just /search/hello gets into
> mapping issues I haven't had to work out yet sorry.
> Lance
> 
> -Original Message-
> From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 21, 2002 12:42 PM
> To: Tomcat Users List
> Subject: RE: Servlet Deploy Problem Help
> 
> 
> 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  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
> > ?
> > > Thanks again
> > >
> > >
> > > 
> > >   HelloWorld
> > >   /hello/*
> > > 
> > >
> > > Then you  should be able to call it like:
> > > http://localhost:8080/search/hello/
> > >
> > > --- Lance Smith <[EMAIL PROTECTED]>
> > > wrote:
> > > > In you're web.xml change:
> > > > 
> > > >   HelloWorld
> > > >   /hello
> > > > 
> > > >
> > > > to :
> > > > 
> > > >   HelloWorld
> > > >   /hello/*
> > > > 
> > > >
> > > > Then you  should be able to call it like:
> > > > http://localhost:8080/search/hello/
> > > >
> > > > 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-
> > > > 
> > > >   HelloWorld
> > > >   
> > > > HelloWorld
> > > >   
> > > >
> > > > HelloWorldExample
> > > > 
> > > > 
> > > >   HelloWorld
> > > >   /hello
> > > > 
> > > > 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(Resourc
> eBundle.java:7
> > > 

RE: Servlet Deploy Problem Help

2002-03-21 Thread Lance Smith

Now try http://localhost:8080/search/hello/abc
it should work also.
getting it to work with just /search/hello gets into
mapping issues I haven't had to work out yet sorry.
Lance

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


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  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
> ?
> > Thanks again
> >
> >
> > 
> >   HelloWorld
> >   /hello/*
> > 
> >
> > Then you  should be able to call it like:
> > http://localhost:8080/search/hello/
> >
> > --- Lance Smith <[EMAIL PROTECTED]>
> > wrote:
> > > In you're web.xml change:
> > > 
> > >   HelloWorld
> > >   /hello
> > > 
> > >
> > > to :
> > > 
> > >   HelloWorld
> > >   /hello/*
> > > 
> > >
> > > Then you  should be able to call it like:
> > > http://localhost:8080/search/hello/
> > >
> > > 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-
> > > 
> > >   HelloWorld
> > > 
> > >   HelloWorld
> > > 
> > >
> > > HelloWorldExample
> > > 
> > > 
> > >   HelloWorld
> > >   /hello
> > > 
> > > 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:
> > >
> >
> 
> > > For additional commands:
> > > 
> > > Troubles with the list:
> > > 

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:   
For additional commands: 
Troubles with the list: 




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  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:   
For additional commands: 
Troubles with the list: 




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  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
> ?
> > Thanks again
> >
> >
> > 
> >   HelloWorld
> >   /hello/*
> > 
> >
> > Then you  should be able to call it like:
> > http://localhost:8080/search/hello/
> >
> > --- Lance Smith <[EMAIL PROTECTED]>
> > wrote:
> > > In you're web.xml change:
> > > 
> > >   HelloWorld
> > >   /hello
> > > 
> > >
> > > to :
> > > 
> > >   HelloWorld
> > >   /hello/*
> > > 
> > >
> > > Then you  should be able to call it like:
> > > http://localhost:8080/search/hello/
> > >
> > > 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-
> > > 
> > >   HelloWorld
> > > 
> > >   HelloWorld
> > > 
> > >
> > > HelloWorldExample
> > > 
> > > 
> > >   HelloWorld
> > >   /hello
> > > 
> > > 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:
> > >
> >
> 
> > > For additional commands:
> > > 
> > > Troubles with the list:
> > > 
> > >
> > >
> > > --
> > > To unsubscribe:
> > >
> >
> 
> > > For additional commands:
> > > 
> > > Troubles with the list:
> > > 
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Movies - coverage of the 74th Acade

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:   
For additional commands: 
Troubles with the list: 




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:   
>For additional commands: 
>Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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.(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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




socket error mod_jk Tomcat 4 Apache HP-UX 11

2002-03-21 Thread Ashton, Bruce

Hi all,
Please CC any replies to [EMAIL PROTECTED] as I am not sure
that I have successfully signed up to the mailing list.

I have been trying to run Apache 1.3 with Tomcat 4 on HP-UX 11, but
consistently get a socket error, resulting in a '500 internal server error'
at the browser.
As far as I can see the problem is in the function 'jk_open_socket' in the
file jk_connect.c
The code enters a do/while loop at line 114.  It attempts to open a socket;

ret = connect(sock,
  (struct sockaddr *)addr,
  sizeof(struct sockaddr_in));

but the variable 'ret' comes back as -1.
the while condition checks that ret == -1 and that EINTR (which is equal to
4) == errno BUT;
errno appears only to be set inside an #ifdef WIN32 macro.  errno is
actually returned as 239 consistently, but I think this might be just a red
herring, as it only seems to appear inside #ifdef WIN32 macros, throughout
the code.  The result is though that loop always drops out.  This function
is called three times for each request in a loop outside jk_open_socket, but
fails each time.  ret is always -1.

I am not a C programmer, or a Unix programmer, so I got a bit lost at this
point.  I am searching the web for possible answers, but any help would be
appreciated.  Is seems unlikely that this bug exists for all non-win32
systems, but perhaps it only fails to connect on HP-UX?  Is there some other
environmental problem?  I've added a few more details below.

Thanks in advance,


Apache version 1.3.20
Tomcat version 4.0.2
HP-UX B.11.00 U 9000/800 167991567 unlimited-user license
mod_jk.so 
- built on HP-UX B.11.00 A 9000/785 2014322848 two-user
license
- from Tomcat 3.3a
- using gcc 3.0

I set JkLogLevel to 'debug' in my httpd.conf and got  the following  out put
in the JkLogFile;

##
[Thu Mar 21 12:04:09 2002]  [jk_uri_worker_map.c (159)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Thu Mar 21 12:04:09 2002]  [jk_uri_worker_map.c (199)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Thu Mar 21 12:04:09 2002]  [jk_uri_worker_map.c (217)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Thu Mar 21 12:04:09 2002]  [jk_uri_worker_map.c (324)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (82)]: Into wc_open
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (207)]: Into build_worker_map,
creating 2 workers
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (213)]: build_worker_map, creating
worker admin
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (152)]: wc_create_worker, about to
create instance admin of ajp13
[Thu Mar 21 12:04:09 2002]  [jk_ajp13_worker.c (922)]: Into
ajp13_worker_factory
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (161)]: wc_create_worker, about to
validate and init admin
[Thu Mar 21 12:04:09 2002]  [jk_ajp13_worker.c (443)]: Into
jk_worker_t::validate
[Thu Mar 21 12:04:09 2002]  [jk_ajp13_worker.c (456)]: In
jk_worker_t::validate for worker admin contact is wclopweb:8009
[Thu Mar 21 12:04:09 2002]  [jk_ajp13_worker.c (482)]: Into
jk_worker_t::init
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (223)]: build_worker_map, removing
old admin worker 
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (213)]: build_worker_map, creating
worker web
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (138)]: Into wc_create_worker
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (152)]: wc_create_worker, about to
create instance web of ajp13
[Thu Mar 21 12:04:09 2002]  [jk_ajp13_worker.c (922)]: Into
ajp13_worker_factory
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (161)]: wc_create_worker, about to
validate and init web
[Thu Mar 21 12:04:09 2002]  [jk_ajp13_worker.c (443)]: Into
jk_worker_t::validate
[Thu Mar 21 12:04:09 2002]  [jk_ajp13_worker.c (456)]: In
jk_worker_t::validate for worker web contact is wclopweb:8008
[Thu Mar 21 12:04:09 2002]  [jk_ajp13_worker.c (482)]: Into
jk_worker_t::init
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (177)]: wc_create_worker, done
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (223)]: build_worker_map, removing
old web worker 
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (235)]: build_worker_map, done
[Thu Mar 21 12:04:09 2002]  [jk_worker.c (102)]: wc_open, done
[Thu Mar 21 12:04:14 2002]  [jk_uri_worker_map.c (159)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Thu Mar 21 12:04:14 2002]  [jk_uri_worker_map.c (199)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Thu Mar 21 12:04:14 2002]  [jk_uri_worker_map.c (217)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Thu Mar 21 12:04:14 2002]  [jk_uri_worker_map.c (324)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Thu Mar 21 12:04:14 2002]  [jk_worker.c (82)]: Into wc_open
[Thu Mar 21 12:04:14 2002]  [jk_w

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:


Listen
/*


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 /*/$, but that seemed
to match nothing at all
for me.

Thanks in advance,
Sean LeBlanc - [EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:  
> > >
> 
> > > For additional commands:
> > > 
> > > Troubles with the list:
> > > 
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Movies - coverage of the 74th Academy
> Awards.
> > http://movies.yahoo.com/
> > 
> > --
> > To unsubscribe:  
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> > 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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  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 ?
> Thanks again
>
>
> 
>   HelloWorld
>   /hello/*
> 
>
> Then you  should be able to call it like:
> http://localhost:8080/search/hello/
>
> --- Lance Smith <[EMAIL PROTECTED]>
> wrote:
> > In you're web.xml change:
> > 
> >   HelloWorld
> >   /hello
> > 
> >
> > to :
> > 
> >   HelloWorld
> >   /hello/*
> > 
> >
> > Then you  should be able to call it like:
> > http://localhost:8080/search/hello/
> >
> > 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-
> > 
> >   HelloWorld
> >   
> > HelloWorld
> >   
> >
> > HelloWorldExample
> > 
> > 
> >   HelloWorld
> >   /hello
> > 
> > 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:
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> >
> >
> > --
> > To unsubscribe:
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> >
>
>
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards.
> http://movies.yahoo.com/
>
> --
> To unsubscribe:
> 
> For additional commands:
> 
> Troubles with the list:
> 
>
>
> --
> To unsubscribe:
> 
> For additional commands:
> 
> Troubles with the list:
> 
>


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

--
To unsubscribe:   
For additional commands: 
Troubles

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.(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:   
> For additional commands: 
> Troubles with the list: 

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 

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:   
> For additional commands: 
> Troubles with the list: 

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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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  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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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.(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:   
> For additional commands: 
> Troubles with the list: 
>
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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  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:   
For additional commands: 
Troubles with the list: 




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.(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:  

> For additional 

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:   
For additional commands: 
Troubles with the list: 




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.(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:   
> For additional commands: 
> Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 
> 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:  

> For additional commands:

> Troubles with the list:

> 
> 
> --
> To unsubscribe:  

> For additional commands:

> Troubles with the list:

> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:  
> > >
> 
> > > For additional commands:
> > > 
> > > Troubles with the list:
> > > 
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Movies - coverage of the 74th Academy
> Awards®
> > http://movies.yahoo.com/
> > 
> > --
> > To unsubscribe:  
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> > 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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  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 ?
> Thanks again
> 
> 
> 
>   HelloWorld
>   /hello/*
> 
> 
> Then you  should be able to call it like:
> http://localhost:8080/search/hello/
> 
> --- Lance Smith <[EMAIL PROTECTED]>
> wrote:
> > In you're web.xml change:
> > 
> >   HelloWorld
> >   /hello
> > 
> >
> > to :
> > 
> >   HelloWorld
> >   /hello/*
> > 
> >
> > Then you  should be able to call it like:
> > http://localhost:8080/search/hello/
> >
> > 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-
> > 
> >   HelloWorld
> >   
> > HelloWorld
> >   
> >
> > HelloWorldExample
> > 
> > 
> >   HelloWorld
> >   /hello
> > 
> > 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:
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> >
> >
> > --
> > To unsubscribe:
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> >
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards.
> http://movies.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 



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:   
For additional commands: 
Troubles with the list: 




?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!.


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


  

  

  

  



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 

>>>
>>>--
>>>To unsubscribe:   
>>>For additional commands: 
>>>Troubles with the list: 
>>>
>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> >>For additional commands: 
> >>Troubles with the list: 
> >>
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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
J&J 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:   
>> > > For additional commands: 
>> > > Troubles with the list: 
>> >
>> >
>> > --
>> > To unsubscribe:   
>> > For additional commands: 
>> > Troubles with the list: 
>> >
>>
>> --
>> 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:   
>> For additional commands: 
>> Troubles with the list: 
>
>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:   
>For additional commands: 
>Troubles with the list: 
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
>>For additional commands: 
>>Troubles with the list: 
>>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Servlet Deploy Problem Help

2002-03-21 Thread Lance Smith

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  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 ?
Thanks again



  HelloWorld
  /hello/*


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

--- Lance Smith <[EMAIL PROTECTED]>
wrote:
> In you're web.xml change:
> 
>   HelloWorld
>   /hello
> 
>
> to :
> 
>   HelloWorld
>   /hello/*
> 
>
> Then you  should be able to call it like:
> http://localhost:8080/search/hello/
>
> 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-
> 
>   HelloWorld
> 
>   HelloWorld
> 
>
> HelloWorldExample
> 
> 
>   HelloWorld
>   /hello
> 
> 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:
> 
> For additional commands:
> 
> Troubles with the list:
> 
>
>
> --
> To unsubscribe:
> 
> For additional commands:
> 
> Troubles with the list:
> 
>


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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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




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:   
For additional commands: 
Troubles with the list: 




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:   
> 
> > > For additional commands: 
> 
> > > Troubles with the list: 
> 
> > 
> > 
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> 
> 
> -- 
> 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:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> > > For additional commands: 
> > > Troubles with the list: 
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
> --
> 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:   
> For additional commands: 
> Troubles with the list: 

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:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> > For additional commands: 
> > Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


-- 
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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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: 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:   
> For additional commands: 
> Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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 :
  
bean/MemoireFactory
pastel.jsp.HD_Exemple
  

 server.xml :
  


  
factory
pastel.jsp.MemoireFactory>
  
  


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:   
For additional commands: 
Troubles with the list: 




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 ?
Thanks again



  HelloWorld
  /hello/*


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

--- Lance Smith <[EMAIL PROTECTED]>
wrote:
> In you're web.xml change:
> 
>   HelloWorld
>   /hello
> 
> 
> to :
> 
>   HelloWorld
>   /hello/*
> 
> 
> Then you  should be able to call it like:
> http://localhost:8080/search/hello/
> 
> 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-
> 
>   HelloWorld
> 
>   HelloWorld
> 
>  
> HelloWorldExample
> 
> 
>   HelloWorld
>   /hello
> 
> 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:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: using 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:   
For additional commands: 
Troubles with the list: 




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:  
> > 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


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

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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



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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




RE: Servlet Deploy Problem Help

2002-03-21 Thread Lance Smith

In you're web.xml change:

  HelloWorld
  /hello


to :

  HelloWorld
  /hello/*


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

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-

  HelloWorld
  
HelloWorld
  
  HelloWorldExample


  HelloWorld
  /hello

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:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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):


WebAppConnection warpConnection warp localhost:8008
WebAppInfo /webapp-info
#WebAppDeploy examples warpConnection /examples
#WebAppDeploy webdav warpConnection /webdav

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:   
For additional commands: 
Troubles with the list: 




--
To unsubscrib

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:   
For additional commands: 
Troubles with the list: 




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-

  HelloWorld
  
HelloWorld
  
  HelloWorldExample


  HelloWorld
  /hello

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:   
For additional commands: 
Troubles with the list: 




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.SecureClassL

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:   
>For additional commands: 
>Troubles with the list: 
>
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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=bar1&foo2=bar2 and
http://myserver/servlet/ThreadTest?foo2=bar2&foo1=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=bar1&foo2=bar2 and
http://myserver/servlet/ThreadTest?foo1=bar1&foo2=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:   
For additional commands: 
Troubles with the list: 




  1   2   >