mod_rewrite Problem?

2002-02-04 Thread god
Hi, as  I am Newbie in Tomcat,I have a big problem with Rewriting to tomCat from 
Apache.
Please send me you suggestions if you can.
I have installed Apache(with mod_rewrite) + Tomcat4 with mod_webapp.
In httpd.conf my settings goes
{Let us suggest that our server Name is test.com}

Load webapp_module libexec/mod_webapp.so
Addmodule mod_webapp.c
...
Virtual Host 
ServerName test.com
WebAppConnection warpConnection warp test.com:8008
WebAppDeploy examples warpConnection /examples

RewriteEngine On
RewriteRule .* /Jump
/VirtualHost

and I want that every request coming to test.com like http://test.com/blahblahblah to 
be redirected to Java servlet script /Jump,but when I write URL like as:
http://test.com/blahblahblah 
Apache says HTTP Error 404
when I access like :
http://test.com/examples/servlet/Jump
it works
How can I handle it ?


 



 -- Welcome to ClubBBQ!!! http://www.clubbbq.com --

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


Re: J2EE 1.3 RI + Tomcat 4.0.1

2002-02-04 Thread Matthew

Hi Craig,

I think it should be possible (access to EJBs from remote JVMs), else the
distributable application would be impossible to make.

Have a look at:
http://forum.java.sun.com/thread.jsp?forum=31thread=50569
http://forum.java.sun.com/thread.jsp?forum=13thread=21591

The problem as I see is in configuring the JNDI to work properly from remote
JVM. And that's the point where I'm getting into trouble.

So maybe the better question would be:
Is it possible to gain access to the EJB in one JVM from other JVM
through JNDI?
More specific:
J2EE 1.3 RI (working in this configuration only as a EJB container)
Tomcat 4.0.1 (working as a web [Servlet/JSP] container - separate JVM)
Am I able to access the EJBs stored in the RI from the servlets running
in Tomcat?

Should be possible, but I'm having problems to configure that.

Matthew

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 01, 2002 10:58 PM
Subject: Re: J2EE 1.3 RI + Tomcat 4.0.1


 The J2EE RI does not support this (access to EJBs from remote JVMs).
 You'll need to use a different container.




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




R: Custom Realm Implementation

2002-02-04 Thread Renato Romano

OK !! In RealmBase the hasRole method looks for a Principal of class
GenericPrincipal; by overriding this method everithing works fine !!
Thanks a lot

Renato

-Messaggio originale-
Da: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Inviato: venerdi 1 febbraio 2002 23.31
A: Tomcat Users List; [EMAIL PROTECTED]
Oggetto: Re: Custom Realm Implementation




On Fri, 1 Feb 2002, Renato Romano wrote:

 Date: Fri, 1 Feb 2002 18:02:16 +0100
 From: Renato Romano [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Custom Realm Implementation

 I'm trying to write my own Realm but have some problems...
 MyRealm extends JDBCRealm, overrides the authenticate method(Connection,
 String, String)
 and returns a CustomPrincipal which is My own implementation of Principal;

 When I try to log in, a get a User userName successfully authenticated
 message on the log, but the browser shows me a 403 error (You are not
 allowed ...)


Tomcat calls the hasRole() method of your Realm implementation in order to
check for the roles required to satisfy security constraints.  You'll want
to override this method as well, because the default method (in
AuthenticatorBase) assumes you are using one of the standard Realm
implementations that uses GenericPrincipal objects.

 Any idea ?
 Any document showing the process in details ?
 Thanks

Just the source code, at the moment :-(.


 Renato


Craig


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



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




mod_rewrite Problem?

2002-02-04 Thread god
Hi, as  I am Newbie in Tomcat,I have a big problem with Rewriting to tomCat from 
Apache.
Please send me you suggestions if you can.
I have installed Apache(with mod_rewrite) + Tomcat4 with mod_webapp.
In httpd.conf my settings goes
{Let us suggest that our server Name is test.com}

Load webapp_module libexec/mod_webapp.so
Addmodule mod_webapp.c
...
Virtual Host 
ServerName test.com
WebAppConnection warpConnection warp test.com:8008
WebAppDeploy examples warpConnection /examples

RewriteEngine On
RewriteRule .* /Jump
/VirtualHost

and I want that every request coming to test.com like http://test.com/blahblahblah to 
be redirected to Java servlet script /Jump,but when I write URL like as:
http://test.com/blahblahblah 
Apache says HTTP Error 404
when I access like :
http://test.com/examples/servlet/Jump
it works
How can I handle it ?


 



 -- Welcome to ClubBBQ!!! http://www.clubbbq.com --

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


Re: Yes - Janet B

2002-02-04 Thread JavaNet developer

Hi,
Can you attach the directive used to load the module?

Eli

At 22.52 03/02/2002 -0800, you wrote:
Hi, Janet, thanks for your assistance, and I will try that 
tomorrow.  RIght now I am trying to set up the Apache connection to Tomcat 
4.0.1 and it bails on restart, not recognizing the LoadModule file in 
libexec.  You know anything about that problem?  I am using Red Hat 7.2.

At 10:25 PM 2/3/02 +, you wrote:
  --- Micael Padraig Og mac Grene
[EMAIL PROTECTED] wrote:  Clear question: No
answers
 
  The subject, supra, asks the question.  If you have
  a number of URLs
  pointed to a single IP address, can you map the URLs
  somehow to discrete
  web applications in Tomcat 4.0?
 
  I have read everything I know to read and cannot get
  the answer to this.  I
  know I could do it with JBoss and Tomcat 3.2.4 and
  the context
  manager.  But, I don't see that in Tomcat 4.0.
  What's up?
 
  Sure is hard to get a response to this question.
  Have no idea
  what.  Please don't tell me the stuff that is simple
  and covered like how
  to set up directories, etc.  I know how to handle
  aliases, how to handle
  multiple IP addresses on the same machine, etc.  My
  question is
  specific.  How can I get, e.g. www.a.com and
  www.b.com when they
  are pointed to a given IP address, 209.43.251.66
  (for example), to map to
  webapps/a and webapps/b?  Or, is this not
  now possible?
 
  Some people have suggested that, since I don't know
  the answer to this, I
  need to essentially take the classes I teach for
  fun.  Lord.  If only they
  could answer the question instead of loading me with
  pompous self-righteous
  drivel.  I do thank those who have tried.  I don't
  know where to look at
  this point.  I may just write the classes to do it.
 
  Micael

Hi Micael,

It is possible to setup Apache with the Warp connector
to map different host names to different webapps.

In my case I have a number of webapps available under
the ROOT context for an equal number of host names.

http://xx-xx.mydomain.net  -  webapps/xx-xx
http://yy-yy.mydomain.net  -  webapps/yy-yy
http://zz-zz.mydomain.net  -  webapps/zz-zz

(The setup you desire is a virtual host setup. I'll
restrict my advice to the Apache/Warp/TC setup but I
think you should reread
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html
if you want to omit Apache from your setup.)

Below are the relevant extracts from my httpd.conf and
server.xml files.

httpd.conf
--

NameVirtualHost 194.164.98.233

VirtualHost 194.164.98.233

 ServerName eng.dev.studylink.com
 ServerAdmin [EMAIL PROTECTED]

 WebAppConnection eng-cnx warp localhost:8008
 WebAppDeploy eng eng-cnx /

 ErrorLog /var/opt/apache/logs/eng.error_log
 CustomLog /var/opt/apache/logs/eng.access_log
common

/VirtualHost

server.xml
--

Server
 port = 8005
 shutdown = SHUTDOWN
debug = 0

   !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache

  Connector
   className =

org.apache.catalina.connector.warp.WarpConnector
   port = 8008
  minProcessors = 5
  maxProcessors = 75
  enableLookups = true
acceptCount = 10
  debug = 1/

 Engine
  className=
  org.apache.catalina.connector.warp.WarpEngine
 name = Apache
debug = 0
  appBase = webapps
  defaultHost = delta.tudylink.com

   !--
Global logger unless overridden
at lower levels --
   Logger
className=
org.apache.catalina.logger.FileLogger
prefix = apache_log. suffix=.txt
 timestamp = true/

   Realm
className =
org.apache.catalina.realm.MemoryRealm /


   DefaultContext/DefaultContext

 /Engine

   /Service

/Server


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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



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




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




Re: Tomcat upgrade on Debian fails..

2002-02-04 Thread JavaNet developer

Two stupid check hoping helps:
1- Check: Tomcat must start first, than start Apache. 
(..PoolTcpEndpoint Endpoint 
ServerSocket[addr=localhost/127.0.0.1,port=0,localport=8009.)
2- Check your path 
(./usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt.)

finally check permission in your tomcat dir. As I see :

..Unable to open log file: 
/usr/share/tomcat/logs/servlet-${MMdd}.log!  Using stderr as the default.
 Unable to open log file: 
 /usr/share/tomcat/logs/jasper-${MMdd}.log!  Using stderr as the default.

.this can be a permission problem...


let me know

Eli Spizzichino


At 20.11 03/02/2002 -0600, you wrote:
I have a problem with Apache(1.3.22)+Tomcat(3.3) after a recent update:

I have a working Linux (Debian 2.2.17) system, and am running Apache+Tomcat.

Having not used it for awhile, or updated in 4-6 months, I did an apt-get 
install of tomcat and Apache, to get the most current versions. It did an 
update, and now it is broken.  -(

Apache seems to work fine, and has the prescribed tomcat attachments in 
/etc/apache/httpd.conf, but tomcat fails. Browser symptoms: all .jsp pages 
give not found.

1) At first none of the servlet or JSP pages worked.
Once the first request is made, tomcat keeps getting errors, about one per 
second, like this (forever)

PoolTcpEndpoint Endpoint 
ServerSocket[addr=localhost/127.0.0.1,port=0,localport
=8009] ignored exception java.net.SocketException Socket closed
java.net.SocketException Socket closed
 at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
 at java.net.Socket.close(Socket.java383)
 at java.net.ServerSocket.implAccept(ServerSocket.java206)
 at java.net.ServerSocket.accept(ServerSocket.java181)
 at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(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)
PoolTcpEndpoint Endpoint 
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8081] ignored exception 
java.net.SocketException Socket closed
java.net.SocketException Socket closed
 at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
 at java.net.Socket.close(Socket.java383)
 at java.net.ServerSocket.implAccept(ServerSocket.java206)
 at java.net.ServerSocket.accept(ServerSocket.java181)
 at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source)

I found that the workers.properties file was not in the right (referenced 
in config files), so I repaired that.
   (why did the (re-)install goof this up?)

2) Now the servlet examples work, all html works, either through Apache or 
directly by tomcat (:8081),
 but all .Jsp examples fail: page not found
 omega/etc/tomcat/logs# more mod_jk.log
 [jk_uri_worker_map.c (335)]: 
 jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
 [jk_uri_worker_map.c (185)]: In 
 jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
 ...

and log/stdout.log shows:
 Unable to open log file: 
 /usr/share/tomcat/logs/servlet-${MMdd}.log!  Using stderr as the default.
 Unable to open log file: 
 /usr/share/tomcat/logs/jasper-${MMdd}.log!  Using stderr as the default.
 Unable to open log file: 
 /usr/share/tomcat/logs/examples.log!  Using stderr as the default.
 Unable to open log file: 
 /usr/share/tomcat/logs/servlet_examples.log!  Using stderr as the default.

and in stdout, a bunch of good startup stuff, and then:
2002-01-11 14:18:28 - /examples: Error creating validation mark  - 
java.io.FileNotFoundException: 
/usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt
 at java.io.FileOutputStream.init(FileOutputStream.java)
 at java.io.FileOutputStream.init(FileOutputStream.java)
 at 
 org.apache.tomcat.facade.WebXmlReader.processWebXmlFile(Unknown Source)
 at org.apache.tomcat.facade.WebXmlReader.contextInit(Unknown Source)
 at org.apache.tomcat.core.Context.init(Unknown Source)
 at org.apache.tomcat.core.ContextManager.init(Unknown Source)
 at 
 org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
 at org.apache.tomcat.util.compat.Jdk11Compat.doPrivileged(Unknown 
 Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
 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)
...
2002-01-11 14:18:41 - Http10Interceptor: Starting on 8081
2002-01-11 14:18:41 - Ajp12Interceptor: Starting on 8007
2002-01-11 

Re: mod_rewrite Problem?

2002-02-04 Thread Dino Cherian K

Hi

Which version of Tomcat and Apache are you using.

Bye

[EMAIL PROTECTED] wrote:
 
 Hi, as  I am Newbie in Tomcat,I have a big problem with Rewriting to tomCat from 
Apache.
 Please send me you suggestions if you can.
 I have installed Apache(with mod_rewrite) + Tomcat4 with mod_webapp.
 In httpd.conf my settings goes
 {Let us suggest that our server Name is test.com}
 
 Load webapp_module libexec/mod_webapp.so
 Addmodule mod_webapp.c
 ...
 Virtual Host 
 ServerName test.com
 WebAppConnection warpConnection warp test.com:8008
 WebAppDeploy examples warpConnection /examples
 
 RewriteEngine On
 RewriteRule .* /Jump
 /VirtualHost
 
 and I want that every request coming to test.com like http://test.com/blahblahblah 
to be redirected to Java servlet script /Jump,but when I write URL like as:
 http://test.com/blahblahblah
 Apache says HTTP Error 404
 when I access like :
 http://test.com/examples/servlet/Jump
 it works
 How can I handle it ?
 
 
 
  -- Welcome to ClubBBQ!!! http://www.clubbbq.com --
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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


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




Charset problem

2002-02-04 Thread Eric LOEW

Hi,

I think I have a charset problem. I don't know if this is a problem with
tomcat configuration or java.

System : Debian Woody Kernel 2.4.9
Tomcat : 3.3.2
Java : 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build
Blackdown-1.3.1-FCS)

When I have a page with special iso-8859-1 caracter (such as accent
éèçà...) I become on a group of symbols instead.

Is there a parameter (in tomcat or java) to specify in wich charset we
are ?

Eric

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




Re: Charset problem

2002-02-04 Thread Gregor Kovaè

Hi!

You should probably read mailing list archives. There has been a lot on 
this issue.

Best regards,
 Kovi

At 10:43 4.2.2002 +0100, you wrote:
Hi,

I think I have a charset problem. I don't know if this is a problem with
tomcat configuration or java.

System : Debian Woody Kernel 2.4.9
Tomcat : 3.3.2
Java : 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build
Blackdown-1.3.1-FCS)

When I have a page with special iso-8859-1 caracter (such as accent
éèçà...) I become on a group of symbols instead.

Is there a parameter (in tomcat or java) to specify in wich charset we
are ?

Eric

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


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




RE: safety deploy in tomcat in a shared enviroment

2002-02-04 Thread JavaNet developer


Hi Micael,
probably I was unclear. I want to avoid insecure code to being executed.
Is it useful to run multiple JVM? If yes how... and so on...

I want to make java hosting for unknown java user code, so I need to take 
attention on system resources and insecure servlet/jsp code.
I like to provide a sort of secure sandbox for running servlet and jsp to 
external users.
What type of restriction I have to make?



//
my environment is:
kernel 2.4 (RedHat o SuSe)
OpenSSH (opz. OpenSSL)
Apache 1.3
Jakarta Tomcat 3.3, Velocity, Turbine, Ant, ORO 
JDK 1.3
MySQL 3.3
Qmail - Courier IMAP (and other programs like vpopmail .)

thank you
Eli



At 09.02 03/02/2002 -0800, you wrote:
Not sure of what sort of security you are trying to develop, Eli.  Be 
more specific.  There are lots of available solutions for lots of 
differing objectives.  For example, do you just want to avoid hackers, 
people jumping into the middle of your site, returns to sensitive pages, etc.?

Micael

At 06:03 PM 2/3/02 +0100, you wrote:

Hi to all,
I need to setup a linux-box to host user application in a safety 
environment.
I already read how to setup a Java SecurityManager.
Is this the only attention I have look for?

If someone had got experience in hosting solution using Tomcat please 
send me
a guideline to check for common security problem, or a list of url to 
look for doc.
every hints is mostly appreciated.

thank you
Eli Spizzichino



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



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



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




tomcat 4.01 with jboss 2.4.4 and a webapplication using xalan/xerces

2002-02-04 Thread Stefan Kost

hi hi,

Even after reading the docs (
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html)
and mailing list archive (
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2)
I am still stuck with the following problem:
We are currently using jboss-2.4.4 with tomcat-3.2.3 and I am trying to
upgrade to tomcat 4.0.1 as we need its newer jsp features. Our
application is using jsp together with a custom xsl-tag-library based on
xalan/xerces. JBoss itself is using xerces as its xml-parser (for
configs) in our setup. I plugged it in using JAXP.
Now when I am trying to access any jsp which is using the xsl-taglibrary
(which uses xalan/xerces) under tomcat 4.0.1 I get:
-- snip ---
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
...
root cause

java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:103)
...
-- snip ---

I guess the issue is somehow related to the fact that jboss is not
starting tomcat separately but using it as an own service and thus
tomcat inherits the classpath. The classpath in turn contains
../lib/xml-apis.jar:../lib/xerces.jar:../lib/xalan.jar

I've read about the issuses with xerces and tried to copy the xerces.jar
included with tomcat 4.0.1 (size 1808883 bytes) over all location of
mine; still it happens.

Now I am running out of ideas.

Stefan
-- 

  W E B M A C H E R  
EDV+INTERNETSERVICE GMBH

POST: August Bebel Str. 69
  04275 Leipzig

FON:  +49 341 30 34 832
FAX:  +49 341 30 34 840
WEB:  www.webmacher.de


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




Tomcat on QNX with the J9VM !

2002-02-04 Thread Thai DANG

Hi all

I tried to start TOMCAT with the J9VM (oti). All seems to work fine
(servlet, internal web server of Tomcat) except the JSP page. Did
someone experienced such trouble ?

Many thanks.
Thai

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




Tomcat not getting installed

2002-02-04 Thread Uma Maheswar

Hi,
I am using JavaWebServer2.0(Trial Version) in WinXP. I have downloaded Tomcat (.exe) 
file. when I try to install it , it says JDK is not found. I have JDK installed with 
Visual Cafe in my PC. What should I do now?

Help me.

Uma



Re: Not Virual Hosts: Re: Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0?

2002-02-04 Thread Jochen Schwoerer

I think you have to create two virtual hosts (one one www.aa.com and
one for www.bb.com). these are mapped to two different directories eg.
webapps/aa and webapps/bb.
in server.xml it should look like this:
Host name=www.aa.com debug=0 appBase=webapps/aa
...
/Host

Host name=www.bb.com debug=0 appBase=webapps/bb
...
/Host

i hope thats what you are looking for! if not please explain your
prob. again. maybe i misunderstood it.

jochen

Hello Micael,

Sunday, February 03, 2002, 5:11:28 PM, you wrote:

MPOmG Hi, Jochen, thanks for the help.  But, I think, unless I misunderstand, 
MPOmG that virtual hosts are not the solution.  Virtual hosts are defined by the 
MPOmG Host element in server.xml.  Hosts are parents to one or more web 
MPOmG applications, each represented by a Context component.  I can see nothing 
MPOmG in a virual host that allows us to introduce the variable of a URL, e.g. 
MPOmG www.aa.com versus www.bb.com, incoming to the site.  However, since I am 
MPOmG the one having the problem, maybe I misunderstand.  Could you expand on how 
MPOmG you think this solves the problem of mapping, e.g., the url www.aa.com to 
MPOmG the application webapps/aa and the url www.bb.com to the application 
MPOmG webapps/bb?  Thanks.

MPOmG At 12:01 PM 2/3/02 +0100, you wrote:
hi,

i think you are looking for something called virtual hosts. tomcat can
do virtual hosts. look in the tomcat documentation after the host
directive.

jochen

Hello Micael,

Sunday, February 03, 2002, 7:46:13 AM, you wrote:

MPOmG Clear question: No answers

MPOmG The subject, supra, asks the question.  If you have a number of URLs
MPOmG pointed to a single IP address, can you map the URLs somehow to 
discrete
MPOmG web applications in Tomcat 4.0?

MPOmG I have read everything I know to read and cannot get the answer to 
this.  I
MPOmG know I could do it with JBoss and Tomcat 3.2.4 and the context
MPOmG manager.  But, I don't see that in Tomcat 4.0.  What's up?

MPOmG Sure is hard to get a response to this question.  Have no idea
MPOmG what.  Please don't tell me the stuff that is simple and covered 
like how
MPOmG to set up directories, etc.  I know how to handle aliases, how to 
handle
MPOmG multiple IP addresses on the same machine, etc.  My question is
MPOmG specific.  How can I get, e.g. www.a.com and www.b.com when 
they
MPOmG are pointed to a given IP address, 209.43.251.66 (for example), to 
map to
MPOmG webapps/a and webapps/b?  Or, is this not now possible?

MPOmG Some people have suggested that, since I don't know the answer to 
this, I
MPOmG need to essentially take the classes I teach for fun.  Lord.  If 
only they
MPOmG could answer the question instead of loading me with pompous 
self-righteous
MPOmG drivel.  I do thank those who have tried.  I don't know where to 
look at
MPOmG this point.  I may just write the classes to do it.

MPOmG Micael



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




jochen schwoerer


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



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




jochen schwoerer


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




RE: Tomcat not getting installed

2002-02-04 Thread Brian Adams

Hi Uma,  
two issues and not sure which applies to you.
1.  there is a know problem with windows and an incorrect Registry entree
that can cause this problem.  
Fix:
a. Fix your jre/jdk registry entree in the Software branch.
b. download the source and install it by hand.  you will have to setup the
NT Service yourself if you want tomcat to run as a service.

2. I am not familiar with Visual Cafe so I don't know if you have a java.exe
in your path.  
Fix: a. can you run java from a command prompt by simply typing java.exe?
If so, install Tomcat via 1.b (above). If not, download jdk and install it
first.

Goodluck,
Brian Adams


-Original Message-
From: Uma Maheswar [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 4:57 AM
To: Tomcat Users List
Subject: Tomcat not getting installed


Hi,
I am using JavaWebServer2.0(Trial Version) in WinXP. I have downloaded
Tomcat (.exe) file. when I try to install it , it says JDK is not found. I
have JDK installed with Visual Cafe in my PC. What should I do now?

Help me.

Uma

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




OT: Dont understand java syntax!!!

2002-02-04 Thread Magnus Jansson

Hi!

I have problems understanding the syntax for CallableStatement.

It would be nice if someone could send an example of how to use callable 
statement...


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




Waiting for instance to be deallocated

2002-02-04 Thread Chaber, Eric

Hi all,

when changing a class file in my webapps/WEB-INF/classes directory, having
my context setup to reloadable=true, I still get this error :

Waiting for (1) instance to be deallocated

nothing happens, and the server seems to be freezed I have to restart it
I thought that this was fixed in 4.0.2-b2 but i install it with no success.

Anyone encountered this error before ?
Do you have guys productions applications where you can change classes
without restarting ?

Help very much appreciated.

Thx
Eric CHABER


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




RE: Principal Cast Exception

2002-02-04 Thread Randy Layman


The problem does have to do with the class loaders.  From what you
are trying, I guess that you have a copy of the Principal in the
lib/container jar and in lib/apps or WEB-INF.  The problem is that classes
loaded by two different class loaders are not equal and the same class from
two different class loaders are incompatible (not cast-able).

I think you can do this:
Create an interface with the extended information that you need to
use in lib/commons.  Then put your Principal in lib/container.  You should
now be able to cast things to the interface in commons.

Randy

 -Original Message-
 From: Nicolas PERIDONT [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 10:52 AM
 To: Tomcat-User
 Subject: Principal Cast Exception
 
 
 Hi,
 
 I have make my own Principal class name MyPrincipal that extends from
 java.scurity.Principal
 I make my own Realm and i can log with it.
 But when i get the Principal object whith the 
 request.getUserPrincipal()
 method i cant cast this object in (MyPrincipal).
 I get a classCastException when i try to to this
 (MyPrincipal)request.getUserPrincipal().
 But the most strange is that i get a MyPrincipal response when i try a
 request.getUserPrincipal().getclass().getName().
 
 Have some idea why i can't make a cast on it ?
 Does it come from the diference of classLoader between the 
 JSP environement
 and the Server environement ?
 
 Thanks in advance for your help
 
 Nicolas PERIDONT
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: restarting tomcat by calling runtime.exec on a .bat file (tc 3.2.4)

2002-02-04 Thread Randy Layman


If you call net stop tomcat (which effectively does a
System.exit), how will the Java process be around to call net start
tomcat?  (Answer, it won't).

Randy


 -Original Message-
 From: Matt Egyhazy [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 6:24 PM
 To: Tomcat Users List
 Subject: restarting tomcat by calling runtime.exec on a .bat file (tc
 3.2.4)
 
 
 hi,
 
 im trying to exec a .bat file that moves files around and 
 restarts tomcat
 from a servlet.  it seems as though the .bat file is being 
 run up to the
 point where it calls
 net stop tomcat
 net start tomcat
 
 any ideas?  am i doing something wrong or is there an easier 
 way to restart
 tomcat?
 
 thanks,
 matt
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: Tomcat 4.01 + SSL + JDK 1.4 (on RedHat 7.1)

2002-02-04 Thread Deacon Marcus

Hi,

 -Original Message-
 From: Moin Anjum H [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 04, 2002 5:38 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.01 + SSL + JDK 1.4 (on RedHat 7.1)


 Hi,
 As long as i can remember the default post of https is 8443
 and not 443

Default https port _is_ 443. 8443 is the port number initially set in
server.xml, which I of course changed. Besides, I tried both.

Greetings, deacon Marcus

 HTH
 Best Regards
 Moin.

 Deacon Marcus wrote:

  Hi,
  I can't get this configuration to work. When I try
https://hostname:443 I
 just get a blank page. (Changed port in server.xml). JDK 1.4 has built-in
 support for SSL, is there anything different in configuring Tomcat to work
 with it as opposed to add-on SSL package for 1.3?

 Greetings, deacon Marcus

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



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




Re: Apache 1.3.20 + Tomcat 4.0.1 + WARP Connector

2002-02-04 Thread Jean-Luc BEAUDET

Anthony Jones a écrit :

 Hi,

 I am having problems implementing servlets and JSP pages using Tomcat 4.0.1
 and Apache 1.3.20 (mod_ssl) on Solaris 8.

 Initially, after searching on the web, I used the AJP connector as this
 (according to what I read) was the recommeded connector to use.  After
 having Tomcat hang several times and reading that Tomcat 4 only has beta
 support for the AJP connector, I changed to the WARP connector. All seemed
 to be going well, but eventually, instead of Tomcat hanging, Apache would
 hang.

 I found one reference on the internet to this problem, and this was stated
 as a known problem with the WARP connector. The only probable solution was
 that the latest WARP connector could be downloaded from the CVS area and
 compiled. However, no guarantee was given that this would work.

 Therefore, I find myself in the position of having to implement servlet and
 JSP pages with Tomcat and have no reliable connector to use with Apache.
 Also, I cannot use the standalone server in Tomcat as I need the SSL
 encryption provided by Apache.

 Does anybody know of any solution to this problem, or do I have to go back
 to Tomcat 3.3.

 Thanks for your help.

 Regards,

 --
 Anthony Jones
 Senior Programmer (Applications and Development)
 Queensland Tertiary Admissions Centre (QTAC) Ltd

 Phone: +61 7 38581285
 email: [EMAIL PROTECTED]

   If a train station is where the train stops,
what is a work station?
 --

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

Hi Anthony.

Well i'm actually using Tomcat 4.0.2-b2/Apache 1.3.22 full DSO on SOLARIS 8
with no pb.

I would say that it works really fine by the moment

I all compiled by myself and had no troubles to do it.

Jean-Luc :O)



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




RE: Jakarta NT service error

2002-02-04 Thread Cox, Charlie

what's this extra line in there for?
$(wrapper.startup_class) -config $(wrapper.server_xml) -home
$(wrapper.catalina_home)
being a properties file and needing x=value on every line, this will
definately cause problems

Charlie

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 5:07 PM
 To: Tomcat Users List
 Subject: RE: Jakarta NT service error
 
 
 I fixed it and still nothing
 
 --wrapper.properties file--
 
 wrapper.catalina_home=C:\jakarta-tomcat-4.0.1
 wrapper.java_home=C:\jdk1.2.2
 
 wrapper.stdout=$(wrapper.catalina_home)\logs\jvm.stdout
 wrapper.stderr=$(wrapper.catalina_home)\logs\jvm.stderr
 
 wrapper.ld_path=d:\
 wrapper.ld_path=c:\
 wrapper.class_path=$(wrapper.java_home)\classes\
 wrapper.class_path=$(wrapper.catalina_home)\bin\bootstrap.jar
 wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
 wrapper.javabin=$(wrapper.java_home)\bin\java.exe
 wrapper.startup_class=org.apache.catalina.startup.Bootstrap
 wrapper.server_xml=$(wrapper.catalina_home)\conf\server.xml
 
 wrapper.shutdown_port=8007
 wrapper.shutdown_protocol=ajp13
 $(wrapper.startup_class) -config $(wrapper.server_xml) -home 
 $(wrapper.catalina_home)
 wrapper.cmd_line=$(wrapper.javabin) -Xrs 
 -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
 -Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath 
 $(wrapper.class_path) $(wrapper.startup_class) -config 
 $(wrapper.server_xml) start
 
 
 
 -Original Message-
 From: Cox, Charlie [EMAIL PROTECTED]
 Date: Fri, 1 Feb 2002 16:20:52 -0500 
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Jakarta NT service error
 
 
  one more thing...
  
  wrapper.java_home is not the same as wrapper.JAVA_HOME
  
  change your javabin line to:
  wrapper.javabin=$(wrapper.java_home)\bin\java.exe
  
  I missed that I have the bootstrap.jar line below...but I 
 don't think that
  you got that far yet - I think its not resolving wrapper.java_home
  Charlie
  
   -Original Message-
   From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 01, 2002 4:12 PM
   To: 'Tomcat Users List'
   Subject: RE: Jakarta NT service error
   
   
   I missed earlier the fact that wrapper.class_path
   must include the entries set on the CLASSPATH in the
   catalina.bat file.  These will be included on the
   command line built using wrapper.properties.  Thus,
   you would need to add:
   
   wrapper.class_path=$(wrapper.tomcat_home)\bin\bootstrap.jar
   wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
   
   You might want to change the wrapper.tomcat_home's to
   wrapper.catalina_home to avoid confusion.
   
   Cheers,
   Larry
   
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:58 PM
To: 'Tomcat Users List'
Subject: RE: Jakarta NT service error


I think you need to remove the space(after '=') in your 
catalina_home and
java_home statements:

wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1
wrapper.java_home=C:\jdk1.2.2

that is one difference in my wrapper props and I seem to 
remember that this
'feature' annoyed me before...
Charlie

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 3:38 PM
 To: Tomcat Users List
 Subject: RE: Jakarta NT service error
 
 
 Yes, I followed the directions at 
 http://www.stardeveloper.com/articles/060801-2.shtml
 
 which says...
 
 Now you'll have to create two environment variables, 
 CATALINA_HOME and JAVA_HOME. Most probably you'll have 
 JAVA_HOME already created if you have installed Java 
 Development Kit on your system. If not then you should create 
 it. The values of these variables will be something like :
 
 CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
 JAVA_HOME : C:\jdk1.3 
 To create these environment variables in Windows 2000, go to 
 Start - Settings - Control Panel - System - Advanced - 
 Environment Variables - System variables - New. Enter the 
 name and value for CATALINA_HOME and also for JAVA_HOME if 
 not already there.
 
 
 -Original Message-
 From: Cox, Charlie [EMAIL PROTECTED]
 Date: Fri, 1 Feb 2002 15:25:47 -0500 
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Jakarta NT service error
 
 
  you have JAVA_HOME set as a system environment variable, 
 not a user env.
  variable?
  
   -Original Message-
   From: Atok Koenig [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 01, 2002 3:04 PM
   To: Tomcat Users List
   Subject: RE: Jakarta NT service error
   
   
   Dear Charlie,
   
   Than you for the response. Someone had recomended 
 looking in 
   the batch files to compare setting info (batch 
 files work but 
   server stops 

RE: applet works, https doesn't

2002-02-04 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Dean Hiller [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 10:57 PM
 To: [EMAIL PROTECTED]
 Subject: applet works, https doesn't
 
 
 I have an applet that connects back to the server on 8443 and it 
 works fine even without a certificate.  When I go to 
 https://localhost:8443 web page, I get a prompt with an unknown 
 certificate(certificate was created and self signed by me).  Why 
 don't I get this prompt with the applet, it is using port 8443?  
 Something is questionable here.
 

There is no problem here. Applet doesn't check your certificate for
valid certificate chain and the browser does. The browser expects
the sertificate to be signed by some well-known CA (and some
other staff). You can install your sertificate (at least in MS IE) and
if the sign is the only problem then you get no more promts.

 Can anybody explain this to me?
 thanks,
 Dean
 
 

Anton

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




RE: Jakarta NT service error

2002-02-04 Thread Cox, Charlie

that seems to be consistent as mine has tomcat in place of your jakarta and
my service is named tomcat.

Charlie

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 5:45 PM
 To: Tomcat Users List
 Subject: RE: Jakarta NT service error
 
 
 I looked at the NT Service properties via the Services Applet 
 and under Path to executable it says...
 
 C:\Java\jk_nt_service.exe Jakarta
 
 Where Jakarta is what I named the service, why would it 
 include Jakarta here? Could that be messing it up? Can 
 anyone running this service verify that the path includes the 
 name of the service?
 
 -Original Message-
 From: Atok Koenig [EMAIL PROTECTED]
 Date: Fri, 01 Feb 2002 17:07:13 -0500
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Jakarta NT service error
 
 
  I fixed it and still nothing
  
  --wrapper.properties file--
  
  wrapper.catalina_home=C:\jakarta-tomcat-4.0.1
  wrapper.java_home=C:\jdk1.2.2
  
  wrapper.stdout=$(wrapper.catalina_home)\logs\jvm.stdout
  wrapper.stderr=$(wrapper.catalina_home)\logs\jvm.stderr
  
  wrapper.ld_path=d:\
  wrapper.ld_path=c:\
  wrapper.class_path=$(wrapper.java_home)\classes\
  wrapper.class_path=$(wrapper.catalina_home)\bin\bootstrap.jar
  wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
  wrapper.javabin=$(wrapper.java_home)\bin\java.exe
  wrapper.startup_class=org.apache.catalina.startup.Bootstrap
  wrapper.server_xml=$(wrapper.catalina_home)\conf\server.xml
  
  wrapper.shutdown_port=8007
  wrapper.shutdown_protocol=ajp13
  $(wrapper.startup_class) -config $(wrapper.server_xml) 
 -home $(wrapper.catalina_home)
  wrapper.cmd_line=$(wrapper.javabin) -Xrs 
 -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
 -Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath 
 $(wrapper.class_path) $(wrapper.startup_class) -config 
 $(wrapper.server_xml) start
  
  
  
  -Original Message-
  From: Cox, Charlie [EMAIL PROTECTED]
  Date: Fri, 1 Feb 2002 16:20:52 -0500 
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: Jakarta NT service error
  
  
   one more thing...
   
   wrapper.java_home is not the same as wrapper.JAVA_HOME
   
   change your javabin line to:
   wrapper.javabin=$(wrapper.java_home)\bin\java.exe
   
   I missed that I have the bootstrap.jar line below...but I 
 don't think that
   you got that far yet - I think its not resolving wrapper.java_home
   Charlie
   
-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 4:12 PM
To: 'Tomcat Users List'
Subject: RE: Jakarta NT service error


I missed earlier the fact that wrapper.class_path
must include the entries set on the CLASSPATH in the
catalina.bat file.  These will be included on the
command line built using wrapper.properties.  Thus,
you would need to add:

wrapper.class_path=$(wrapper.tomcat_home)\bin\bootstrap.jar
wrapper.class_path=$(wrapper.java_home)\lib\tools.jar

You might want to change the wrapper.tomcat_home's to
wrapper.catalina_home to avoid confusion.

Cheers,
Larry

 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 3:58 PM
 To: 'Tomcat Users List'
 Subject: RE: Jakarta NT service error
 
 
 I think you need to remove the space(after '=') in your 
 catalina_home and
 java_home statements:
 
 wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1
 wrapper.java_home=C:\jdk1.2.2
 
 that is one difference in my wrapper props and I seem to 
 remember that this
 'feature' annoyed me before...
 Charlie
 
  -Original Message-
  From: Atok Koenig [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 3:38 PM
  To: Tomcat Users List
  Subject: RE: Jakarta NT service error
  
  
  Yes, I followed the directions at 
  http://www.stardeveloper.com/articles/060801-2.shtml
  
  which says...
  
  Now you'll have to create two environment variables, 
  CATALINA_HOME and JAVA_HOME. Most probably you'll have 
  JAVA_HOME already created if you have installed Java 
  Development Kit on your system. If not then you 
 should create 
  it. The values of these variables will be something like :
  
  CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
  JAVA_HOME : C:\jdk1.3 
  To create these environment variables in Windows 
 2000, go to 
  Start - Settings - Control Panel - System - Advanced - 
  Environment Variables - System variables - New. Enter the 
  name and value for CATALINA_HOME and also for JAVA_HOME if 
  not already there.
  
  
  -Original Message-
  From: Cox, Charlie [EMAIL PROTECTED]
  Date: Fri, 1 Feb 2002 15:25:47 -0500 
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: Jakarta NT service 

RE: Tomcat 4 Speed

2002-02-04 Thread Ignacio J. Ortega

Probably the HTTP11 connector, uncomment the HTTP10 in server.xml, use
ajp13 and a apache front end, or use 3.3, that is a fair percentage
faster than 3.2.X ;)))

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes 4 de febrero de 2002 6:35
 Para: 'Tomcat Users List'
 Asunto: AW: Tomcat 4 Speed
 
 
 Hi, 
 
 if you're dreaming that we must share the same dream :-). 
 We've experienced
 something comparable. 
 Unless today we didn't find out why. We deployed the same app 
 on the same
 machine with the same loadtest config, used the standard 
 settings for both
 (TC3.2/4) and the same VM and attached you'll find our results.
 
 But I've to admit we haven't investigated yet (with a 
 profiler) where time
 is lost.  
 
 Oliver   
 
  AXA eSolutions GmbH
  AXA Konzern AG Germany
  Oliver Lauer 
  Web Architect
  Wörthstraße 34
  D-50668 Köln
  Germany
  Tel.: +49 221 148 31277
  Fax: +49 221 148 43963
  Mobil: +49 179 59 064 59
  e-Mail: [EMAIL PROTECTED]
  _
  
 
 
 -Ursprüngliche Nachricht-
 Von: Tim Buchalka [mailto:[EMAIL PROTECTED]]
 Gesendet: Samstag, 2. Februar 2002 04:23
 An: [EMAIL PROTECTED]
 Betreff: Tomcat 4 Speed
 
 
 Hi,
 
 I've been using Jboss with Tomcat 3.2.3 and have recently upgraded to
 Tomcat 4.0.1.
 
 It seems to me (at least on the surface) that Tomcat 4.0.1 is much
 slower than 3.2.3.
 
 Has anyone else come across this?
 
 I'm using Jboss 2.4.4 with an EAR file containing EJB's in a Jar file
 and the web application in a war file.
 
 Any comments, or am I dreaming this  :)
 
 Thanks
 
 
 
 Tim
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 
 Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail 
 gegebene Information nicht rechtsverbindlich. Eine 
 rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf 
 Anforderung in schriftlicher Form nach. Beachten Sie bitte, 
 dass jede Form der unautorisierten Nutzung, 
 Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
 Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  
 ist ausschliesslich fuer den bezeichneten Adressaten oder 
 dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene 
 Adressat dieser E-Mail oder dessen Vertreter sein, so bitten 
 wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen.
 
 For legal and security reasons the information provided in 
 this e-mail is not legally binding. Upon request we would be 
 pleased to provide you with a legally binding confirmation in 
 written form. Any form of unauthorised use, publication, 
 reproduction, copying or disclosure of the content of this 
 e-mail is not permitted. This message is exclusively for the 
 person addressed or their representative. If you are not the 
 intended recipient of this message and its contents, please 
 notify the sender immediately.
 
 ==
 
 

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




Re: Charset problem

2002-02-04 Thread Eric LOEW

Gregor Kovaè wrote:
 
 Hi!
 
 You should probably read mailing list archives. There has been a lot on
 this issue.

Thank you for forwarding me a message from this mailing list with the
same problem :
%@ page
info=Test page
contentType=text/html; charset=iso-8859-2
%%!
...
%%
...
%html
head
titleTest page/title
meta http-equiv=Content-Type value=text/html; charset=iso-
8859-2
/head

body
...
/body
/html

but this give the same problem (I replace iso-8859-2 with iso-8859-1).

I understand that tomcat translate the pages in the charset from tomcat
but i don't know where is this configured (I'm very poor in Tomcat
technologie :( ).

Eric

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




RE: Custom Auth for JDBC Realm server xml help 3.3-m4

2002-02-04 Thread Larry Isaacs

Using an entry in Tomcat 3.3's server.xml like TMSJDBCRealm ...
implies there is a module mapping for this in the modules.xml or
a modules-*.xml file.  Something like:

module name=TMSJDBCRealm javaClass=package.TMSJDBCRealm/

You don't mention adding this, so I assume you haven't.
Unfortunately, if this mapping is missing, Tomcat 3.3 silently
ignores your TMSJDBCRealm ... entry in server.xml.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 5:21 PM
 To: [EMAIL PROTECTED]
 Subject: Custom Auth for JDBC Realm server xml help 3.3-m4
 
 
 Hello All,
 
 How do I direct Tomcat via the server.xml file to use a 
 custom class for
 JDBC auth with Tomcat 3.3-m4?  Do I need to switch to 4.0 to 
 use a custom
 auth class?  I understand that in 4.0 it is easy to set the realm
 class=.../ entry but 4.0 has a bug that I want to avoid for now.
 
 I've created a custom class called TMSJDBCRealm which extends 
 BaseRealm and
 placed it into the tomcat_modules.jar.
 
 I then tried to add the entry TMSJDBCRealm ... / just after the
 CredentialsInterceptor / entry but Tomcat does not appear 
 to be calling my
 class.  When I go to a protected url I do get the basic login box but
 entering a user name and password avail nothing.  I also look 
 for my debug
 info to scroll past on the server and nothing is there.
 
 Any help is greatly appreciated.
 
 Thanks
 
 Lon Palmer
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: Tomcat not getting installed

2002-02-04 Thread Virga

set JAVA_HOME environment first.
i don't know in xp, but in w2k you can go to control
panel-system-advance-system enviroment (i guess it has the same
procedure).
set the name as JAVA_HOME
and the value to your jdk directory (which is under visual cafe directory).


VR


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




Re: Tomcat on QNX with the J9VM !

2002-02-04 Thread Attila Szegedi

My bet would be that you're running Tomcat on a JRE instead on a JDK, and it can't 
find the Java compiler (which is necessary for compiling JSPs). 

Attila.

- Original Message - 
From: Thai DANG [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: 2002. február 4. 11:58
Subject: Tomcat on QNX with the J9VM !


 Hi all
 
 I tried to start TOMCAT with the J9VM (oti). All seems to work fine
 (servlet, internal web server of Tomcat) except the JSP page. Did
 someone experienced such trouble ?
 
 Many thanks.
 Thai
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



smime.p7s
Description: application/pkcs7-signature


Re: Problem with POST and FORM based authentication

2002-02-04 Thread RSEQUEIRA


This is possibly a shot in the dark. But in your login.html page have you
defined FORM METHOD=POST...?
Hope this helps.
Thanks
RS





Anil Paul [EMAIL PROTECTED] on 02/02/2002 10:58:32 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Problem with POST and FORM based authentication

Dear all,
I am trying to apply a security contraint on POST requests to my servlet. I

specifed it in my web.xml as:

security-constraint

   web-resource-collection
  web-resource-nameposttest/web-resource-name
  url-pattern/servlet/TestServlet/url-pattern
  http-methodPOST/http-method
   /web-resource-collection

   auth-constraint.../auth-constraint

   user-data-constraint.../user-data-constraint

/security-constraint

I defined the login config as follows:

login-config
   auth-methodFORM/auth-method
   realm-nametestrealm/realm-name
   form-login-config
 form-login-page/login.html/form-login-page
 form-error-page/error.html/form-error-page
   /form-login-config
/login-config

Problem:

When I send a POST request to TestServlet from the brower (by submitting a
form), I get the login.html page as expected. However, when I submit the
username/password , doGet of TestServlet is getting called instead of
doPost()!

To be sure that my settings are all right, I changed the login-config from
FORM to BASIC, and everything worked fine. ie., after submitting the login
page, doPost of the servlet is called. So, it's only with the FORM based
authentication that there is a problem.

I also tested this configuration on JRun and it also has the same issue.
Can
somebody please throw some light on it? May be I am not doing something
right.

Please help,
Paul.

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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









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




Apache 1.3.23 + Tomcat 4.0.1 + WARP Connector on NT

2002-02-04 Thread YI,LI (HP-USA,ex1)

I have been struggling to make this work for two days, it was working fine
with Tomcat 3.2.1/mod_jk  Apache 1.3.14, but not with Tomcat 4.1 using
Warp, I've installed the latest Apache, still no luck.

Works with either TC or Apache alone, but with Warp connector, Apache always
hangs using 100% CPU, sometime right at the start, sometime when downloading
.gif. I've read different forums, some says mod_webapp.so compiled with EAPI
would work on Linux, some suggests to use different connector, some says
Apache has bug... my questions is:

1) what would be a good/reliable connector to use at this time?
2) anybody has any luck to make this work on NT?

Any help would be appreciated. 
Thanks,
Li

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




RE: Apache/WARP connector/trailing slash

2002-02-04 Thread Adrian Caneva

Hi Marc,
I am using :
#WebAppDeploy examples warpConnection /examples and it works fine.
If as you stated TC is looking for URL /../, I can only think that it is
working because my Apache (1.3.22) is somehow adding the trailing slash when
not found.
I dont't know if there is a simple configuration in httpd.conf to get this
automatic redirection to work or is a 1.3.22 issue.
You can can send me your httpd.conf, if you like, and I'll try to find the
differences.

best regards,

==
  Adrian Caneva
  NEXT TECHNOLOGY SRL
  La Rioja 26
  (T4000ISB) Tucuman
  Tel/Fax +54 381 4219105
  [EMAIL PROTECTED]
  www.nexttech.com.ar
==

-Original Message-
From: Marc Ostrow [mailto:[EMAIL PROTECTED]]
Sent: Domingo, 03 de Febrero de 2002 08:10 p.m.
To: Tomcat Users List
Subject: Re: Apache/WARP connector/trailing slash


I wanted to know the same thing, so I went out and looked at the code base
to understand why.

USE OF THE FOLLOWING IS AT YOUR OWN RISK.  IN NO EVENT SHALL MYSELF AND/OR
TWINQUEST LLC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS INFORMATION/SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Ok, if you do not want to have to supply the trailing slash, you need to
keep the following in mind.  The webapp module attaches itself to Apache in
such a way that Apache asks the webapp module if it will handle or decline a
request that Apache receives.  For every request that Apache passes on to
the webapp module, the webapp module searches its list of applications to
see if it will handle the request. The slower this matching process is, the
slower Apache becomes.

I got this to work using the source distribution
webapp-module-1.0.1-tc401-src.tar.gz.  Mind you, I'm on Mac OS X, but that
shouldn't matter any bit.  Take a good look at the wam_match() function in
mod_webapp.c found in jakarta-tomcat-connectors/webapp/apache-1.3.  You will
notice that the requested uri is compared against the WebAppDeploy's request
path.  Note that when the WebAppDeploy directive is processed, the request
path is normalized to begin with '/' and end with '/'.  So it doesn't matter
whether you have

WebAppDeploy examples warpConnection /examples
Or  WebAppDeploy examples warpConnection /examples/

So if you do not want to have to type the trailing slash, you could modify
the wam_match() function to allow this.

I didn't spend that much time with this, but it currently SEEMS to be
working (I performed hardly any testing!!!)  The details of what I changed
follow:

I changed

elem=host-apps;
while(elem!=NULL) {
appl=(wa_application *)elem-curr;
if (strncmp(appl-rpth,r-uri,strlen(appl-rpth))==0) break;

appl=NULL;
elem=elem-next;
}
if (appl==NULL) return(DECLINED);

to look like this

elem=host-apps;
while(elem!=NULL) {
register int slen;

appl=(wa_application *)elem-curr;
slen = strlen(appl-rpth);

if( strncmp( appl-rpth, r-uri, slen) == 0 ) break;
if( slen = 2  strncmp( appl-rpth, r-uri, slen - 1 ) == 0 )
break;

appl=NULL;
elem=elem-next;
}
if (appl==NULL) return(DECLINED);



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



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




RE: Apache 1.3.23 + Tomcat 4.0.1 + WARP Connector on NT

2002-02-04 Thread Brian Adams

mod_jk, works great on NT

-Original Message-
From: YI,LI (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 8:31 AM
To: 'Tomcat Users List'
Subject: Apache 1.3.23 + Tomcat 4.0.1 + WARP Connector on NT


I have been struggling to make this work for two days, it was working fine
with Tomcat 3.2.1/mod_jk  Apache 1.3.14, but not with Tomcat 4.1 using
Warp, I've installed the latest Apache, still no luck.

Works with either TC or Apache alone, but with Warp connector, Apache always
hangs using 100% CPU, sometime right at the start, sometime when downloading
.gif. I've read different forums, some says mod_webapp.so compiled with EAPI
would work on Linux, some suggests to use different connector, some says
Apache has bug... my questions is:

1) what would be a good/reliable connector to use at this time?
2) anybody has any luck to make this work on NT?

Any help would be appreciated. 
Thanks,
Li

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

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




RE: NullPointerException: causes?

2002-02-04 Thread John Wadkin

Chinni,

Absolutely right!! What a muppet - I though that the @host part of the
connection string should be replaced with ahost.domain.com rather than
@ahost.domain.com. I think it's old age - I'm approaching the quarter of a
century mark.

Thanks,
 
John
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 31 January 2002 20:31
To: Tomcat Users List
Subject: Re: NullPointerException: causes?



I think DB_URL string making should be   jdbc:oracle:thin:
@111.22.333.44:1521:SID
looks like yor are missing '@' symbol.

-Chinni.





 

John Wadkin

j.wadkin@hudTo: Tomcat Users List
(E-mail)  
.ac.uk  [EMAIL PROTECTED]

 cc:

01/31/02 Subject: NullPointerException:
causes?
11:40 AM

Please

respond to

Tomcat Users

List

 

 





Can anyone offer any suggestions about the cause of the attached
NullPointerException trace?

I've managed to setup and integrate Apache 1.3 and Tomcat 4.1 using
mod_WebApp on Solaris 8 (JDK 1.3). I ran the attached servlet (which I
didn't write) with the hope of testing that everything was working ok,
especially the Oracle/JDBC bit.

As far as I can tell, everything is configured properly...

The general aim is for me to verify that everything works (using the
attached servlet) before trying to deploy a second, more complex servlet
that's currently running under JServ.

Apologies if this is a frequent question but I've only been able to find
vague references to it, and I'm only a novice Java programmer!

Thanks,

John

Quote for the week:

My fellow Americans, I am pleased to tell you I just signed legislation
which outlaws Russia forever. The bombing begins in five minutes.

Ronald Reagan, Radio microphone test, 11 Aug. 1984

(See attached file: error.txt)(See attached file: DatabaseCheck.java)--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



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




How to configure Tomcat 4.01 + Apache http server 1.3.19 work?

2002-02-04 Thread Dong Wenyu


I have been confused for weeks about Tomcat 4.01 +
Apache http server 1.3.19. 

1, Does Tomact 4.01 alone support servlet already?
Does it necessary to install JServ in addition as the
case with Tomcat 3.x?

2, Many books recommend the configuration of Tomcat +
pache http server. Does it make any sense? Couldn't
Tomcat 4.01 alone serve as a http server?

3, Anyone would give me instructions to connect Tomcat
4.01 + Apache http server 1.3.19 ?  Or is there
webpages to find them?




Thank you very much in advance.


sincerely,
Dong Wenyu



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

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




RE: How to configure Tomcat 4.01 + Apache http server 1.3.19 work?

2002-02-04 Thread Loïc Lefèvre

1. Yes, Tomcat is a servlet container and thus supports
servlet (spec. 2.3). No, it is not necessary to install
JServ but JServ and Tomcat can work together
(no problem with the mod_webapp connector).

2. Yes it makes sense since Apache can distribute static
files faster than Tomcat. Apache has also modules that
can help you (mod_rewrite, mod_php...). But tomcat 4.01
can work *alone* as an HTTP server (port 80, see server.xml).

3. For windows, check the archive:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win32
/webapp-module-1.0-tc40-windows.zip
Inside, there is a file 'INSTALL.TXT' which explains how to connect
the mod_webapp connector under Linux and windows.
For Linux, check for the following archive:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/linux
/i386/webapp-module-1.0-tc40-linux-glibc2.2.tar.gz

Good luck
Loïc Lefèvre

-Message d'origine-
De : Dong Wenyu [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 4 février 2002 16:05
À : [EMAIL PROTECTED]
Objet : How to configure Tomcat 4.01 + Apache http server 1.3.19 work?



I have been confused for weeks about Tomcat 4.01 +
Apache http server 1.3.19.

1, Does Tomact 4.01 alone support servlet already?
Does it necessary to install JServ in addition as the
case with Tomcat 3.x?

2, Many books recommend the configuration of Tomcat +
pache http server. Does it make any sense? Couldn't
Tomcat 4.01 alone serve as a http server?

3, Anyone would give me instructions to connect Tomcat
4.01 + Apache http server 1.3.19 ?  Or is there
webpages to find them?




Thank you very much in advance.


sincerely,
Dong Wenyu



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com

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


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




AW: How to configure Tomcat 4.01 + Apache http server 1.3.19 work?

2002-02-04 Thread Ralph Einfeldt


- Tomcat is a servlet and jsp engine.
  So you don't need JServ to do servlets 
  (it wasn't necessary for tomcat 3.* either)
- mod_jserv/mod_jk/mod_webapp are different
  generations of connectors that connect a webserver
  with tomcat.
- There are several reasons to use apache (or IIS)
  together with tomcat. 
  (this reasons you can find in the archives)
  If this reasons don't apply to you, you can use tomcat
  standalone.
- How to connect tomcat 4.0 with mod_jk and mod_webapp
  has been dscussed in this list several times.


 -Ursprüngliche Nachricht-
 Von: Dong Wenyu [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 4. Februar 2002 16:05
 An: [EMAIL PROTECTED]
 Betreff: How to configure Tomcat 4.01 + Apache http server 
 1.3.19 work?
 
 
 
 I have been confused for weeks about Tomcat 4.01 +
 Apache http server 1.3.19. 
 
 1, Does Tomact 4.01 alone support servlet already?
 Does it necessary to install JServ in addition as the
 case with Tomcat 3.x?
 
 2, Many books recommend the configuration of Tomcat +
 pache http server. Does it make any sense? Couldn't
 Tomcat 4.01 alone serve as a http server?
 
 3, Anyone would give me instructions to connect Tomcat
 4.01 + Apache http server 1.3.19 ?  Or is there
 webpages to find them?
 
 
 
 
 Thank you very much in advance.
 
 
 sincerely,
 Dong Wenyu
 
 
 
 __
 Do You Yahoo!?
 Great stuff seeking new owners in Yahoo! Auctions! 
 http://auctions.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

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




InitialContext in Servlet

2002-02-04 Thread Volker Turau


Hi,

I try to use the following line of code in a servlet:

Context con = new InitialContext();

The Servlet is loaded on startup. I get the following exception using
Tomcat 4.0.1

javax.naming.NoInitialContextException:
  Cannot instantiate class: org.apache.naming.java.javaURLContextFactory.
Root exception is java.lang.ClassCastException:
 org.apache.naming.java.javaURLContextFactory
   at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:659)
   at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
   at javax.naming.InitialContext.init(InitialContext.java:226)
   at javax.naming.InitialContext.init(InitialContext.java:182)
   at ko.shopping.KOWizard.loadExternalResources(KOWizard.java:24)

Using the same code in a JSP works fine. Is the InitialContext not
available at the time?  Any ideas?

thanks a lot!

volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau/jsp


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




Errorpage

2002-02-04 Thread Volker Turau

Hi,

in section SRV.9.9.2 of the Servlet Spec. Version 2.3 a list of request
attributes is given (e.g. javax.servlet.error.exception). These request
attributes must be set by the container. However using Tomcat 4.0.1 the
attributes are not available for an errorpage specified in the page
directive. They are only available, if the errorpage is specified in
web.xml. Feature or bug?


Thanks a lot!

volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau/jsp


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




web.xml and errorpage

2002-02-04 Thread Volker Turau


Hi,

in my file web.xml I have registered two errorpages:

 error-page
exception-typejava.io.IOException/exception-type
location/ausnahmen/ioException.jsp/location
  /error-page

  error-page
exception-typejava.sql.SQLException/exception-type
location/ausnahmen/sqlException.jsp/location
  /error-page

if I generate an exception of type java.sql.SQLException the
registered errorpage is called. This is no the case for error of type
java.io.IOException or subtypes thereof. I am using tomct 4.0.1.
Feature or bug?

Tnaks a lot!


volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau/jsp


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




Re: InitialContext in Servlet

2002-02-04 Thread Emerson

I think you must send the properties :

  // Set up the naming provider; this may not always be necessary, depending
  // on how your Java system is configured.
  Properties env = new Properties();
  env.setProperty(java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory);
  env.setProperty(java.naming.provider.url,  localhost);
//  env.setProperty(java.naming.factory.url.pkgs,  org.jboss.naming);

  try
  {
 // Get a naming context
 System.out.println(before Got context);
 jndiContext = new InitialContext(env);
 System.out.println(Got context);
  }
  catch(Exception e)
  {
// System.out.println(e.toString());
e.printStackTrace();
  }


At 16:28 4/2/2002 +0100, you wrote:

Hi,

I try to use the following line of code in a servlet:

   Context con = new InitialContext();

The Servlet is loaded on startup. I get the following exception using
Tomcat 4.0.1

javax.naming.NoInitialContextException:
  Cannot instantiate class: org.apache.naming.java.javaURLContextFactory.
Root exception is java.lang.ClassCastException:
 org.apache.naming.java.javaURLContextFactory
   at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:659)
   at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
   at javax.naming.InitialContext.init(InitialContext.java:226)
   at javax.naming.InitialContext.init(InitialContext.java:182)
   at ko.shopping.KOWizard.loadExternalResources(KOWizard.java:24)

Using the same code in a JSP works fine. Is the InitialContext not
available at the time?  Any ideas?

thanks a lot!

volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau/jsp


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


Emerson Cargnin
TRE-SC
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

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




RE: Apache/WARP connector/trailing slash

2002-02-04 Thread Marc Ostrow

That's not necessary Adrian,

I bet you have an examples directory in your Apache document root.  When I
create such a directory, I get the behavior you are talking about.  The
following most likely happens:

1) Submittal of uri /examples to Apache
2) Apache asks mod_webapp if it will handle this uri
3) mod_webapp declines
4) Apache notices the examples directory in document root and rewrites uri
with trailing slash
5) Apache must then ask mod_webapp if it will handle this uri
6) mod_webapp accepts the uri.


Adrian,  change your WebAppDeploy to use /examples/ and I bet it still works
for you.

Marc.

-Original Message-
From: Adrian Caneva [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 9:34 AM
To: Tomcat Users List
Subject: RE: Apache/WARP connector/trailing slash

Hi Marc,
I am using :
#WebAppDeploy examples warpConnection /examples and it works fine.
If as you stated TC is looking for URL /../, I can only think that it is
working because my Apache (1.3.22) is somehow adding the trailing slash when
not found.
I dont't know if there is a simple configuration in httpd.conf to get this
automatic redirection to work or is a 1.3.22 issue.
You can can send me your httpd.conf, if you like, and I'll try to find the
differences.

best regards,

==
  Adrian Caneva
  NEXT TECHNOLOGY SRL
  La Rioja 26
  (T4000ISB) Tucuman
  Tel/Fax +54 381 4219105
  [EMAIL PROTECTED]
  www.nexttech.com.ar
==

-Original Message-
From: Marc Ostrow [mailto:[EMAIL PROTECTED]]
Sent: Domingo, 03 de Febrero de 2002 08:10 p.m.
To: Tomcat Users List
Subject: Re: Apache/WARP connector/trailing slash


I wanted to know the same thing, so I went out and looked at the code base
to understand why.

USE OF THE FOLLOWING IS AT YOUR OWN RISK.  IN NO EVENT SHALL MYSELF AND/OR
TWINQUEST LLC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS INFORMATION/SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Ok, if you do not want to have to supply the trailing slash, you need to
keep the following in mind.  The webapp module attaches itself to Apache in
such a way that Apache asks the webapp module if it will handle or decline a
request that Apache receives.  For every request that Apache passes on to
the webapp module, the webapp module searches its list of applications to
see if it will handle the request. The slower this matching process is, the
slower Apache becomes.

I got this to work using the source distribution
webapp-module-1.0.1-tc401-src.tar.gz.  Mind you, I'm on Mac OS X, but that
shouldn't matter any bit.  Take a good look at the wam_match() function in
mod_webapp.c found in jakarta-tomcat-connectors/webapp/apache-1.3.  You will
notice that the requested uri is compared against the WebAppDeploy's request
path.  Note that when the WebAppDeploy directive is processed, the request
path is normalized to begin with '/' and end with '/'.  So it doesn't matter
whether you have

WebAppDeploy examples warpConnection /examples
Or  WebAppDeploy examples warpConnection /examples/

So if you do not want to have to type the trailing slash, you could modify
the wam_match() function to allow this.

I didn't spend that much time with this, but it currently SEEMS to be
working (I performed hardly any testing!!!)  The details of what I changed
follow:

I changed

elem=host-apps;
while(elem!=NULL) {
appl=(wa_application *)elem-curr;
if (strncmp(appl-rpth,r-uri,strlen(appl-rpth))==0) break;

appl=NULL;
elem=elem-next;
}
if (appl==NULL) return(DECLINED);

to look like this

elem=host-apps;
while(elem!=NULL) {
register int slen;

appl=(wa_application *)elem-curr;
slen = strlen(appl-rpth);

if( strncmp( appl-rpth, r-uri, slen) == 0 ) break;
if( slen = 2  strncmp( appl-rpth, r-uri, slen - 1 ) == 0 )
break;

appl=NULL;
elem=elem-next;
}
if (appl==NULL) return(DECLINED);



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



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


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




RE: Errors compiling warp connector

2002-02-04 Thread thys . deWet

I tried that.. also tried CC='gcc' ./configure ...blah blah for apache ..
still get the same problem...

Am going insane .. linux works fine .. Solars=PROBLEM

-Original Message-
From: Patrick Roumanoff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 2:31 PM
To: Tomcat Users List
Subject: Re: Errors compiling warp connector


 i run the following:
 ./configure --with-apxs=/usr/local/Apache_EAPI/bin/apxs
 --with-java=/usr/j2se/
 --with-tomcat=/tomcat4.0.2-compile/jakarta-tomcat-4.0.2-b2-src/dist/

APR configure: config.status: creating include/arch/unix/apr_private.h
   Execution of ./configure --enable-static --disable-shared
 --disable-threads returned 0

did you enable mod_so with apache?
(try a 'httpd -l' to know)

 configure: error: Cannot mix gcc and native cc

looks like apache was compiled with cc and you are trying to compile
apr with gcc

pkr

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

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




Re: How to make Tomcat 4.01 + Apache http server 1.3.19 work?

2002-02-04 Thread Pascal Forget

Dong Wenyu wrote:


1, Does Tomact 4.01 alone support servlet already?
Does it necessary to install JServ in addition as the
case with Tomcat 3.x?

You must install the mod_jk.so module in the Apache web server if you
use tomcat and apache.


2, Many books recommend the configuration of Tomcat +
pache http server. Does it make any sense? Couldn't
Tomcat 4.01 alone serve as a http server?

Tomcat is much slower than Apache at delivering static content.  If your 
site
has a lot of that, for example if you are developing a real estate web site
with lots of pictures, then you should use Apache to deliver the images.

Tomcat 4.01 can be used as a standalone web server, and in many cases
it is faster than an apache-tomcat configuration.  The only way of knowing
for sure is to try both configurations and to see which one is faster.


3, Anyone would give me instructions to connect Tomcat
4.01 + Apache http server 1.3.19 ?  Or is there
webpages to find them?


www.ubeans.com/tomcat

Regards,

Pascal Forget




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




Re: Tomcat upgrade on Debian fails..

2002-02-04 Thread Gregory Guthrie

At 10:29 AM 02/04/2002 +0100, JavaNet developer wrote:
Two stupid check hoping helps:
1- Check: Tomcat must start first, than start Apache. 
(..PoolTcpEndpoint Endpoint 
ServerSocket[addr=localhost/127.0.0.1,port=0,localport=8009.)

-- Thanks, I'll have to see how to force this on Debian.
  (Seems like their installer should (and may) have guaranteed this...)

2- Check your path 
(./usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt.)

-- Thanks, yes, DEFAULTS was ROOT access only.
(Should have noticed this, sorry! - Thanks.)

finally check permission in your tomcat dir. As I see :

..Unable to open log file: 
/usr/share/tomcat/logs/servlet-${MMdd}.log!  Using stderr as the default.
 Unable to open log file: 
 /usr/share/tomcat/logs/jasper-${MMdd}.log!  Using stderr as the default.

.this can be a permission problem...

-- It can write to the stdout file there, so permissions should be   OK.

Hmm, now a few days later, it is writing files there. Sunspots?


let me know

Eli Spizzichino


At 20.11 03/02/2002 -0600, you wrote:
I have a problem with Apache(1.3.22)+Tomcat(3.3) after a recent update:

I have a working Linux (Debian 2.2.17) system, and am running Apache+Tomcat.

Having not used it for awhile, or updated in 4-6 months, I did an 
apt-get install of tomcat and Apache, to get the most current versions. 
It did an update, and now it is broken.  -(

Apache seems to work fine, and has the prescribed tomcat attachments in 
/etc/apache/httpd.conf, but tomcat fails. Browser symptoms: all .jsp 
pages give not found.

1) At first none of the servlet or JSP pages worked.
Once the first request is made, tomcat keeps getting errors, about one 
per second, like this (forever)

PoolTcpEndpoint Endpoint 
ServerSocket[addr=localhost/127.0.0.1,port=0,localport
=8009] ignored exception java.net.SocketException Socket closed
java.net.SocketException Socket closed
 at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
 at java.net.Socket.close(Socket.java383)
 at java.net.ServerSocket.implAccept(ServerSocket.java206)
 at java.net.ServerSocket.accept(ServerSocket.java181)
 at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(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)
PoolTcpEndpoint Endpoint 
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8081] ignored 
exception java.net.SocketException Socket closed
java.net.SocketException Socket closed
 at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
 at java.net.Socket.close(Socket.java383)
 at java.net.ServerSocket.implAccept(ServerSocket.java206)
 at java.net.ServerSocket.accept(ServerSocket.java181)
 at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source)

I found that the workers.properties file was not in the right (referenced 
in config files), so I repaired that.
   (why did the (re-)install goof this up?)

2) Now the servlet examples work, all html works, either through Apache 
or directly by tomcat (:8081),
 but all .Jsp examples fail: page not found
 omega/etc/tomcat/logs# more mod_jk.log
 [jk_uri_worker_map.c (335)]: 
 jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
 [jk_uri_worker_map.c (185)]: In 
 jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
 ...

and log/stdout.log shows:
 Unable to open log file: 
 /usr/share/tomcat/logs/servlet-${MMdd}.log!  Using stderr as the default.
 Unable to open log file: 
 /usr/share/tomcat/logs/jasper-${MMdd}.log!  Using stderr as the default.
 Unable to open log file: 
 /usr/share/tomcat/logs/examples.log!  Using stderr as the default.
 Unable to open log file: 
 /usr/share/tomcat/logs/servlet_examples.log!  Using stderr as the default.

and in stdout, a bunch of good startup stuff, and then:
2002-01-11 14:18:28 - /examples: Error creating validation mark  - 
java.io.FileNotFoundException: 
/usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt
 at java.io.FileOutputStream.init(FileOutputStream.java)
 at java.io.FileOutputStream.init(FileOutputStream.java)
 at 
 org.apache.tomcat.facade.WebXmlReader.processWebXmlFile(Unknown Source)
 at org.apache.tomcat.facade.WebXmlReader.contextInit(Unknown Source)
 at org.apache.tomcat.core.Context.init(Unknown Source)
 at org.apache.tomcat.core.ContextManager.init(Unknown Source)
 at 
 org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
 at 
 org.apache.tomcat.util.compat.Jdk11Compat.doPrivileged(Unknown Source)

RE: Apache/WARP connector/trailing slash

2002-02-04 Thread Adrian Caneva

You are right: I'm using webapp as DocumentRoot for that virtual host, so
/examples sub physically exist.
Thanks for the explanation !
Adrian

==
  Adrian Caneva
  NEXT TECHNOLOGY SRL
  La Rioja 26
  (T4000ISB) Tucuman
  Tel/Fax +54 381 4219105
  [EMAIL PROTECTED]
  www.nexttech.com.ar
==

-Original Message-
From: Marc Ostrow [mailto:[EMAIL PROTECTED]]
Sent: Lunes, 04 de Febrero de 2002 12:45 p.m.
To: Tomcat Users List
Subject: RE: Apache/WARP connector/trailing slash


That's not necessary Adrian,

I bet you have an examples directory in your Apache document root.  When I
create such a directory, I get the behavior you are talking about.  The
following most likely happens:

1) Submittal of uri /examples to Apache
2) Apache asks mod_webapp if it will handle this uri
3) mod_webapp declines
4) Apache notices the examples directory in document root and rewrites uri
with trailing slash
5) Apache must then ask mod_webapp if it will handle this uri
6) mod_webapp accepts the uri.


Adrian,  change your WebAppDeploy to use /examples/ and I bet it still works
for you.

Marc.

-Original Message-
From: Adrian Caneva [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 9:34 AM
To: Tomcat Users List
Subject: RE: Apache/WARP connector/trailing slash

Hi Marc,
I am using :
#WebAppDeploy examples warpConnection /examples and it works fine.
If as you stated TC is looking for URL /../, I can only think that it is
working because my Apache (1.3.22) is somehow adding the trailing slash when
not found.
I dont't know if there is a simple configuration in httpd.conf to get this
automatic redirection to work or is a 1.3.22 issue.
You can can send me your httpd.conf, if you like, and I'll try to find the
differences.

best regards,

==
  Adrian Caneva
  NEXT TECHNOLOGY SRL
  La Rioja 26
  (T4000ISB) Tucuman
  Tel/Fax +54 381 4219105
  [EMAIL PROTECTED]
  www.nexttech.com.ar
==

-Original Message-
From: Marc Ostrow [mailto:[EMAIL PROTECTED]]
Sent: Domingo, 03 de Febrero de 2002 08:10 p.m.
To: Tomcat Users List
Subject: Re: Apache/WARP connector/trailing slash


I wanted to know the same thing, so I went out and looked at the code base
to understand why.

USE OF THE FOLLOWING IS AT YOUR OWN RISK.  IN NO EVENT SHALL MYSELF AND/OR
TWINQUEST LLC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS INFORMATION/SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Ok, if you do not want to have to supply the trailing slash, you need to
keep the following in mind.  The webapp module attaches itself to Apache in
such a way that Apache asks the webapp module if it will handle or decline a
request that Apache receives.  For every request that Apache passes on to
the webapp module, the webapp module searches its list of applications to
see if it will handle the request. The slower this matching process is, the
slower Apache becomes.

I got this to work using the source distribution
webapp-module-1.0.1-tc401-src.tar.gz.  Mind you, I'm on Mac OS X, but that
shouldn't matter any bit.  Take a good look at the wam_match() function in
mod_webapp.c found in jakarta-tomcat-connectors/webapp/apache-1.3.  You will
notice that the requested uri is compared against the WebAppDeploy's request
path.  Note that when the WebAppDeploy directive is processed, the request
path is normalized to begin with '/' and end with '/'.  So it doesn't matter
whether you have

WebAppDeploy examples warpConnection /examples
Or  WebAppDeploy examples warpConnection /examples/

So if you do not want to have to type the trailing slash, you could modify
the wam_match() function to allow this.

I didn't spend that much time with this, but it currently SEEMS to be
working (I performed hardly any testing!!!)  The details of what I changed
follow:

I changed

elem=host-apps;
while(elem!=NULL) {
appl=(wa_application *)elem-curr;
if (strncmp(appl-rpth,r-uri,strlen(appl-rpth))==0) break;

appl=NULL;
elem=elem-next;
}
if (appl==NULL) return(DECLINED);

to look like this

elem=host-apps;
while(elem!=NULL) {
register int slen;

appl=(wa_application *)elem-curr;
slen = strlen(appl-rpth);

if( strncmp( appl-rpth, r-uri, slen) == 0 ) break;
if( slen = 2  strncmp( appl-rpth, r-uri, slen - 1 ) == 0 )
break;

appl=NULL;
elem=elem-next;
}
if (appl==NULL) return(DECLINED);



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

Apache/Tomcat memory leak not recovered after shutdown

2002-02-04 Thread Hwang, Joseph

We are loosing about about 500 MB of memory on a 1 GB server after running
Apache/Tomcat on Linux for 24 hours.  (We are trying to fit within 512 MB.)
The strange thing is that after I shutdown Apache and Tomcat, the memory
only recovers about 100 MB.  vmstat still shows Memory Cache that takes up
about 348380 KB.

I would think that if the memory is in apache/tomcat, then the memory should
be recovered when I shut them down.  Is that right?  How could I get the
memory back from the Memory Cache without rebooting?

It's a web application with servlets, JSPs and static pages with Apache
1.3.22, Tomcat 3.2.4, RedHat Linux 7.1.  I tried Sun JDK 1.3.1 and IBM JDK
1.3.0 with same results.

Thank you for any help.

Joseph

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




RE: Apache/Tomcat memory leak not recovered after shutdown

2002-02-04 Thread Loïc Lefèvre

Hi,
We have experienced same problems, all we found to do is to kill
with our hands the java process (that can rest after the servlet
engine shutdown). Here is the bash script we use:

#!/bin/bash
kill -9 `ps -A | grep java | cut -c 1-5`
kill -9 'ps -A | grep jre | cut -c 1-5'

Hope that helps,
Loïc Lefèvre

-Message d'origine-
De : Hwang, Joseph [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 4 février 2002 16:41
À : '[EMAIL PROTECTED]'
Objet : Apache/Tomcat memory leak not recovered after shutdown


We are loosing about about 500 MB of memory on a 1 GB server after running
Apache/Tomcat on Linux for 24 hours.  (We are trying to fit within 512 MB.)
The strange thing is that after I shutdown Apache and Tomcat, the memory
only recovers about 100 MB.  vmstat still shows Memory Cache that takes up
about 348380 KB.

I would think that if the memory is in apache/tomcat, then the memory should
be recovered when I shut them down.  Is that right?  How could I get the
memory back from the Memory Cache without rebooting?

It's a web application with servlets, JSPs and static pages with Apache
1.3.22, Tomcat 3.2.4, RedHat Linux 7.1.  I tried Sun JDK 1.3.1 and IBM JDK
1.3.0 with same results.

Thank you for any help.

Joseph

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


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




Using JNDIRealm with password digesting and openldap

2002-02-04 Thread dirk . dussart

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**

Hi,

I'm trying to use tomcat's JNDIRealm with OpenLDAP. I've converted my
passwords to digest format in the LDAP directory instead of plain text.

Apparently, tomcat only excepts only hex formatted password where openLDAP
provides passwords of the format
{crypt}X where crypt = { SHA, MD, ... } and XXX is a base64 encoded
integer.

Is there a way to configure tomcat to accept this format of passwords? If
so does this require any recompilation of
tomcat?

Thanks for your help,

--  Dirk


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




Re: Apache/Tomcat memory leak not recovered after shutdown

2002-02-04 Thread Eric LOEW

Hwang, Joseph wrote:
 
 I would think that if the memory is in apache/tomcat, then the memory should
 be recovered when I shut them down.  Is that right?  How could I get the
 memory back from the Memory Cache without rebooting?

I have the same problem and i reduce the maximum number of apache client
:

MaxClients 75 in httpd.conf in my case

Then I use the -Xms and -Xmx from the java options called from tomcat.

And finaly, (that's in the default configuration from tomcat) I remove
the option ReloaderInterceptor from server.xml (Cf.
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html).

Hope this help

Eric

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




Re: jsp:useBean / Scope Bug in 4.01 !

2002-02-04 Thread L Rutker

Hi,
Can you explain what you mean by:

 Duplicate ids found in the same translation unit
 shall result in a fatal translation error.

What is duplicate? I am declaring 2 seperate beans based on the condition. 
Neither of them should be visible to the rest of the page. Yet they are 
visible to Tomcat. The

Lou


From: Craig R. McClanahan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jsp:useBean / Scope Bug in 4.01 !
Date: Fri, 1 Feb 2002 14:41:57 -0800 (PST)



On Fri, 1 Feb 2002, L Rutker wrote:

  Date: Fri, 01 Feb 2002 12:59:34 -0500
  From: L Rutker [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: jsp:useBean / Scope Bug in 4.01 !
 
  Hi,
  The following is a bug I found using Tomcat 4.01 on NT4
  The following code:
 
  % if (request.getParameter(type)!= null 
  request.getParameter(type).equals(user)) { %
  jsp:useBean id=user class=com.rutker.UsrData scope=request/
  % } else if(request.getParameter(type)!= null 
  request.getParameter(type).equals(group)) { %
  jsp:useBean id=group class=com.rutker.GpData scope=request/
  % } %
 
  should not be visible to the
  jsp:getProperty name=user property=firstName /  tag  farther down 
the
  page because the useBean tag was declared in the if block, yet the
  jsp:getProperty tag can see it and works in Tomcat. I noticed the bug 
when I
  tried the above code on WL 6.1 on Linux and it didnt work. I think that 
WL
  has the proper implementation.

I don't.  They are violating the JSP Specification if they support this.
In the JSP 1.3 Specification, Section 4.1 (page 68), you will find the
following statement:

 Duplicate ids found in the same translation unit
 shall result in a fatal translation error.

The fact that you are doing this inside scriptlet conditionals does not
change the fact that you are using two jsp:useBean elements with the
same id attribute in the same page.

  Is this the correct mailing list for this post?

The best place to report bugs is in the bug tracking system:

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


  Thanks
  Lou R.
 

Craig McClanahan



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




error on startup - catalina.out no such file or directory

2002-02-04 Thread John Menke

I am trying to run the 4.01 version.  When I try to run startup.sh I get the
following:

[root@remote bin]# ./startup.sh
Using CLASSPATH:
/home/jakarta-tomcat-4.01/bin/bootstrap.jar:/usr/java/jdk1.3.1_01/lib/tools.
jar
Using CATALINA_BASE: /home/jakarta-tomcat-4.01
Using CATALINA_HOME: /home/jakarta-tomcat-4.01
Using JAVA_HOME: /usr/java/jdk1.3.1_01
touch: creating `/home/jakarta-tomcat-4.01/logs/catalina.out': No such file
or directory
./catalina.sh: /home/jakarta-tomcat-4.01/logs/catalina.out: No such file or
directory

Why is this happening?


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




Apache + Tomcat ... some questions

2002-02-04 Thread Adrian Caneva

Hi,
I have some questions related to Tomcat+Apache:

[Platform : Tomcat 4.0.1+mod_webapp+Apache 1.3.22]

* Apache handling static contents
How can I know if static contents are being served by Apache or Tomcat in my
configuration ?
I installed my web application under:

%TOMCAT_HOME%/webapps/my_application

at httpd.conf:

VirtualHost 192.168.1.2
DocumentRoot %TOMCAT_HOME%/webapps/my_application
ServerName my_virtual_host
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy my_application warpConnection /
/VirtualHost

What I believe is that the WebAppDeploy line is telling Apache that Tomcat
will handle ALL contents under http://my_virtual_host/ ... or not ? So
http://my_virtual_host/my_page.html will be served by Tomcat and not Apache
as I wanted.
The site is starting with index.jsp so Tomcat should take control starting
from the root, buth there are a lot of mixed .html and images.
Any ideas on how to configure the site just to take the best from Apache and
Tomcat ?


* Which are the differences between Warp and AJP connectors ?

thanks very much in advance,

==
  Adrian Caneva
  NEXT TECHNOLOGY SRL
  La Rioja 26
  (T4000ISB) Tucuman
  Tel/Fax +54 381 4219105
  [EMAIL PROTECTED]
  www.nexttech.com.ar
==


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




DB2 App Driver?

2002-02-04 Thread Derek Holden

Hello,

Anyone have any issues getting applications to talk to DB2 using the app 
drivers? Searching the list saw that Tomcat wouldn't read the drivers 
zipped, jar'd them up and it solved that problem. However I can only talk 
to the local database using the net drivers. Any suggestions?


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




RE: DB2 App Driver?

2002-02-04 Thread Reynir Hübner

I evaluated the app driver few days ago, also the net driver.

check this page out before you start trying to use it : 
http://www-4.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/docu
ment.d2w/report?fn=1000797

I use merant (datadirect-technologies.com) driver now.
The problem you are dealing with has to do with your client setup.
You can solve it by using the command line processor, you need to map
your database into the database directory. 

hope it helps
  -reynir



 -Original Message-
 From: Derek Holden [mailto:[EMAIL PROTECTED]]
 Sent: 4. febrúar 2002 16:00
 To: [EMAIL PROTECTED]
 Subject: DB2 App Driver?
 
 
 Hello,
   
 Anyone have any issues getting applications to talk to DB2 
 using the app 
 drivers? Searching the list saw that Tomcat wouldn't read the drivers 
 zipped, jar'd them up and it solved that problem. However I 
 can only talk 
 to the local database using the net drivers. Any suggestions?
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

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




SSL under IE6.x vs Netscape6.x

2002-02-04 Thread Lockhart, Scott

I'm in the process of enabling SSL for a number of servlet classes, using
Tomcat4.0.1 under Solaris 7.

All is working well under IE, however under Netscape the communications
between the servlet and applet appear to hang.  Also, any applet images
don't appear under Netscape.

I can snoop and see the encrypted packets and every 120s or so the applet
sends a packet and the server responds with a zero-length packet.

Any suggestions appreciated.



This communication is intended solely for the addressee and is confidential and not 
for third party unauthorised distribution.



RE: Apache + Tomcat ... some questions

2002-02-04 Thread Mike Millson

Someone please correct me if I'm wrong, but as far as I can tell using the
Warp connector, you cannot do what you're talking about below. What I see
happening is that you can specify directories that you want Tomcat to serve
and directories you want Apache to serve. You cannot put html pages and jsp
pages in the same directory and have Tomcat serve the jsp and Apache serve
the html.

-Original Message-
From: Adrian Caneva [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 11:25 AM
To: Tomcat Users List
Subject: Apache + Tomcat ... some questions


Hi,
I have some questions related to Tomcat+Apache:

[Platform : Tomcat 4.0.1+mod_webapp+Apache 1.3.22]

* Apache handling static contents
How can I know if static contents are being served by Apache or Tomcat in my
configuration ?
I installed my web application under:

%TOMCAT_HOME%/webapps/my_application

at httpd.conf:

VirtualHost 192.168.1.2
DocumentRoot %TOMCAT_HOME%/webapps/my_application
ServerName my_virtual_host
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy my_application warpConnection /
/VirtualHost

What I believe is that the WebAppDeploy line is telling Apache that Tomcat
will handle ALL contents under http://my_virtual_host/ ... or not ? So
http://my_virtual_host/my_page.html will be served by Tomcat and not Apache
as I wanted.
The site is starting with index.jsp so Tomcat should take control starting
from the root, buth there are a lot of mixed .html and images.
Any ideas on how to configure the site just to take the best from Apache and
Tomcat ?


* Which are the differences between Warp and AJP connectors ?

thanks very much in advance,

==
  Adrian Caneva
  NEXT TECHNOLOGY SRL
  La Rioja 26
  (T4000ISB) Tucuman
  Tel/Fax +54 381 4219105
  [EMAIL PROTECTED]
  www.nexttech.com.ar
==


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



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




RE: Help !!! JNI Tomcat (UnSatisfiedLinkError exception)

2002-02-04 Thread Anil Bhagwat

I tried all these options. But, unfortunately, it didn't resolve the issue. 
I think Tomcat does find the DLL, since if I remove DLL from \winnt\system32 
folder I get a different error meesage. My guess is to run JNI under Tomcat, 
certain security seetings need to be configured. Does anyone know of this ? 
Any help would be great.

thanks

- Anil


From: Brian Adams [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Help !!! JNI  Tomcat (UnSatisfiedLinkError exception)
Date: Wed, 30 Jan 2002 20:31:14 -0600

Tomcat must not look in the \winnt\system32 directory.
put the dll in the same directory as the class file.
If you have tomcat starting as a service, try putting the dll in the
%TOMCAT_HOME% directory eg. C:\tomcat
lastly try putting the dll in %TOMCAT_HOME%\bin directory.
goodluck,
B

-Original Message-
From: Anil Bhagwat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:35 PM
To: [EMAIL PROTECTED]
Subject: Help !!! JNI  Tomcat (UnSatisfiedLinkError exception)


Hi,

I have been trying to use JNI on Win2K using tomcat 4.0. I am running into 
a
problem.

I keep getting UnSatisfiedLinkError exception. This doesn't happen when I
execute the JNI from a sample JAVA application. I have placed the DLL under
\winnt\system32 directory. The DLL is a C++ COM DLL compiled using MS 
Visual
C++ 6.0. I tried using a C++ (no COM) DLL and a C DLL but no success.

I tried creating just a simple function that doesn't accept any parameters 

doesn't return any value. But, still it doesn't work. So, the problem is
unlikely to have with the param types etc.

I tried this on several versions of Tomcat but no success. I think the app
finds the DLL correctly but can't find the method within correctly. I
suspect this has something to do with Tomcat configuration (security ??).

Has anyone seen this problem before ? While browsing thru' archives, I saw
quite few people have run into this issue, but didn't notice any 
resolution.
I would appreciate any help on this issue.

thanks

- Anil

_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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



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





_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: Principal Cast Exception

2002-02-04 Thread Nicolas PERIDONT

Thanks for all,

I make an interface for MyPrincipal and put all classes in /common/lib
And now it works fine.

Nicolas

-Message d'origine-
De : Randy Layman [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 4 février 2002 12:56
À : 'Tomcat Users List'
Objet : RE: Principal Cast Exception



The problem does have to do with the class loaders.  From what you
are trying, I guess that you have a copy of the Principal in the
lib/container jar and in lib/apps or WEB-INF.  The problem is that classes
loaded by two different class loaders are not equal and the same class from
two different class loaders are incompatible (not cast-able).

I think you can do this:
Create an interface with the extended information that you need to
use in lib/commons.  Then put your Principal in lib/container.  You should
now be able to cast things to the interface in commons.

Randy

 -Original Message-
 From: Nicolas PERIDONT [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 10:52 AM
 To: Tomcat-User
 Subject: Principal Cast Exception


 Hi,

 I have make my own Principal class name MyPrincipal that extends from
 java.scurity.Principal
 I make my own Realm and i can log with it.
 But when i get the Principal object whith the
 request.getUserPrincipal()
 method i cant cast this object in (MyPrincipal).
 I get a classCastException when i try to to this
 (MyPrincipal)request.getUserPrincipal().
 But the most strange is that i get a MyPrincipal response when i try a
 request.getUserPrincipal().getclass().getName().

 Have some idea why i can't make a cast on it ?
 Does it come from the diference of classLoader between the
 JSP environement
 and the Server environement ?

 Thanks in advance for your help

 Nicolas PERIDONT


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


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



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




RE: AW: How to configurate tomcat 4.0 with JBuilder 6.0 professio nal?

2002-02-04 Thread Robert D. Morse

JBuilder 6 Enterprise comes with Tomcat 4.0.1.  However, When I specify it
as the container, I get a:
No Realm has been configured to authenticate against error.

I added a context in JBuilder6/jakarta-tomcat-4.0.1/conf/server.xml but that
doesn't seem to help.  Any ideas?

-Original Message-
From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 9:34 AM
To: 'Tomcat Users List'
Subject: AW: AW: How to configurate tomcat 4.0 with JBuilder 6.0
professio nal?


Main class:

org.apache.catalina.startup.Bootstrap

VM parameters:

-classic -Dcatalina.base=C:\Programme\ApacheGroup\Tomcat4.0
-Dcatalina.home=C:\Programme\ApacheGroup\Tomcat4.0

Application parameters:
start

Oliver

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _



-Ursprüngliche Nachricht-
Von: Thanh Duong [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 30. Januar 2002 18:29
An: Tomcat Users List
Betreff: Re: AW: How to configurate tomcat 4.0 with JBuilder 6.0
professional?


Hi Oliver,
I have to configurate the project properties in order to make tomcat 4
running.
Sorry, I do not understand your answer.
Can you let me know what you have in your project properties under run
tab?

Thanks
Thanh


Tomcat Users List [EMAIL PROTECTED] schrieb am 30.01.02:
 TC4.0 is within JB6, just push the right mouse button and select web run.
TC
 starts..!
 What's your problem ?
 Oliver

  AXA eSolutions GmbH
  AXA Konzern AG Germany
  Oliver Lauer
  Web Architect
  Wörthstraße 34
  D-50668 Köln
  Germany
  Tel.: +49 221 148 31277
  Fax: +49 221 148 43963
  Mobil: +49 179 59 064 59
  e-Mail: [EMAIL PROTECTED]
  _
 


 -Ursprüngliche Nachricht-
 Von: Thanh Duong [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 30. Januar 2002 16:42
 An: [EMAIL PROTECTED]
 Betreff: How to configurate tomcat 4.0 with JBuilder 6.0 professional?


 Hi,
 Does anybody know to configurate tomcat 4.0 with JBuilder 6.0
Professional?

 Thanks
 Thanh
 
 Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
 Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



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




--
 Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten
Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet
ist.Diese Nachricht  ist ausschliesslich fuer den bezeichneten Adressaten
oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem
Absender der E-Mail in Verbindung zu setzen.
 
 For legal and security reasons the information provided in this e-mail is
not legally binding. Upon request we would be pleased to provide you with a
legally binding confirmation in written form. Any form of unauthorised use,
publication, reproduction, copying or disclosure of the content of this
e-mail is not permitted. This message is exclusively for the person
addressed or their representative. If you are not the intended recipient of
this message and its contents, please notify the sender immediately.



==


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




__
Die Nummer, die man nie vergisst: Ihre persönliche Wunschrufnummer von
WEB.DE!
Jetzt einsteigen http://freemail.web.de


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



--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten
Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet
ist.Diese Nachricht  ist ausschliesslich fuer den bezeichneten Adressaten
oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter 

RE: AW: How to configurate tomcat 4.0 with JBuilder 6.0 professio nal?

2002-02-04 Thread Emerson

how do I configure jbuilder 5 enterprise with TC 4 

At 09:12 4/2/2002 -0800, you wrote:
JBuilder 6 Enterprise comes with Tomcat 4.0.1.  However, When I specify it
as the container, I get a:
No Realm has been configured to authenticate against error.

I added a context in JBuilder6/jakarta-tomcat-4.0.1/conf/server.xml but that
doesn't seem to help.  Any ideas?

-Original Message-
From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 9:34 AM
To: 'Tomcat Users List'
Subject: AW: AW: How to configurate tomcat 4.0 with JBuilder 6.0
professio nal?


Main class:

org.apache.catalina.startup.Bootstrap

VM parameters:

-classic -Dcatalina.base=C:\Programme\ApacheGroup\Tomcat4.0
-Dcatalina.home=C:\Programme\ApacheGroup\Tomcat4.0

Application parameters:
start

Oliver

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _



-Ursprüngliche Nachricht-
Von: Thanh Duong [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 30. Januar 2002 18:29
An: Tomcat Users List
Betreff: Re: AW: How to configurate tomcat 4.0 with JBuilder 6.0
professional?


Hi Oliver,
I have to configurate the project properties in order to make tomcat 4
running.
Sorry, I do not understand your answer.
Can you let me know what you have in your project properties under run
tab?

Thanks
Thanh


Tomcat Users List [EMAIL PROTECTED] schrieb am 30.01.02:
 TC4.0 is within JB6, just push the right mouse button and select web run.
TC
 starts..!
 What's your problem ?
 Oliver

  AXA eSolutions GmbH
  AXA Konzern AG Germany
  Oliver Lauer
  Web Architect
  Wörthstraße 34
  D-50668 Köln
  Germany
  Tel.: +49 221 148 31277
  Fax: +49 221 148 43963
  Mobil: +49 179 59 064 59
  e-Mail: [EMAIL PROTECTED]
  _
 


 -Ursprüngliche Nachricht-
 Von: Thanh Duong [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 30. Januar 2002 16:42
 An: [EMAIL PROTECTED]
 Betreff: How to configurate tomcat 4.0 with JBuilder 6.0 professional?


 Hi,
 Does anybody know to configurate tomcat 4.0 with JBuilder 6.0
Professional?

 Thanks
 Thanh
 
 Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
 Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



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




--
 Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten
Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet
ist.Diese Nachricht  ist ausschliesslich fuer den bezeichneten Adressaten
oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem
Absender der E-Mail in Verbindung zu setzen.
 
 For legal and security reasons the information provided in this e-mail is
not legally binding. Upon request we would be pleased to provide you with a
legally binding confirmation in written form. Any form of unauthorised use,
publication, reproduction, copying or disclosure of the content of this
e-mail is not permitted. This message is exclusively for the person
addressed or their representative. If you are not the intended recipient of
this message and its contents, please notify the sender immediately.



==


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




__
Die Nummer, die man nie vergisst: Ihre persönliche Wunschrufnummer von
WEB.DE!
Jetzt einsteigen http://freemail.web.de


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



--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten
Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet
ist.Diese Nachricht  ist ausschliesslich fuer den bezeichneten Adressaten
oder dessen 

RE: error on startup - catalina.out no such file or directory

2002-02-04 Thread Cressatti, Dominique

Do U have the correct directory structure?
Another thing DO NOT install tomcat in /home
the correct place is in /var
(unless of course you wanna know how long the logs
generation will take to fill up your /home directory)

Dom


-Original Message-
From: John Menke [mailto:[EMAIL PROTECTED]]
Sent: 04 February 2002 16:24
To: tomcat-user
Subject: error on startup - catalina.out no such file or directory


I am trying to run the 4.01 version.  When I try to run startup.sh I get the
following:

[root@remote bin]# ./startup.sh
Using CLASSPATH:
/home/jakarta-tomcat-4.01/bin/bootstrap.jar:/usr/java/jdk1.3.1_01/lib/tools.
jar
Using CATALINA_BASE: /home/jakarta-tomcat-4.01
Using CATALINA_HOME: /home/jakarta-tomcat-4.01
Using JAVA_HOME: /usr/java/jdk1.3.1_01
touch: creating `/home/jakarta-tomcat-4.01/logs/catalina.out': No such file
or directory
./catalina.sh: /home/jakarta-tomcat-4.01/logs/catalina.out: No such file or
directory

Why is this happening?


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


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




geting JSP reponse without sending request??

2002-02-04 Thread Liu, Xiaoyan

Hi, all,

I have a piece of server side code that needs to get Http response from some
jsp
pages on the same server. Currently a requst is sent to the page for the
response.
Is it possible to get it directly without rounting through the net?

thanks.


Liu



RE: error on startup - catalina.out no such file or directory

2002-02-04 Thread John Menke

I untarred with tar -xzvf tomcatfile  and it created the directories.

-Original Message-
From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 12:40 PM
To: Tomcat Users List
Subject: RE: error on startup - catalina.out no such file or directory


Do U have the correct directory structure?
Another thing DO NOT install tomcat in /home
the correct place is in /var
(unless of course you wanna know how long the logs
generation will take to fill up your /home directory)

Dom


-Original Message-
From: John Menke [mailto:[EMAIL PROTECTED]]
Sent: 04 February 2002 16:24
To: tomcat-user
Subject: error on startup - catalina.out no such file or directory


I am trying to run the 4.01 version.  When I try to run startup.sh
I get the
following:

[root@remote bin]# ./startup.sh
Using CLASSPATH:
/home/jakarta-tomcat-4.01/bin/bootstrap.jar:/usr/java/jdk1.3.1_01/l
ib/tools.
jar
Using CATALINA_BASE: /home/jakarta-tomcat-4.01
Using CATALINA_HOME: /home/jakarta-tomcat-4.01
Using JAVA_HOME: /usr/java/jdk1.3.1_01
touch: creating `/home/jakarta-tomcat-4.01/logs/catalina.out': No such file
or directory
./catalina.sh: /home/jakarta-tomcat-4.01/logs/catalina.out: No such file or
directory

Why is this happening?


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


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


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




APJ connector source code for Tomcat 4.0.1

2002-02-04 Thread Jianliang Zhao

I tried find the source code for tomcat_ajp.jar which is used by Tomcat 4.0.1 release, 
but it seems it's not published on the Apache website. 
Tomcat 4.0.1 source only contains the jar file for the AJP connector, not the source 
itself.
Does anyone know where I can get it?

Thanks,

Jianliang

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




Repost: Can't upload binaries with JSPSmartUpload, Tomcat and Netscape Server

2002-02-04 Thread Durham David Cntr 805CSS/SCBE


Can upload text files, binary files fail and stderr.log says:
IOException: Connection aborted by peer: socket write error

I don't know if that means that the connection to the client's browser failed or 
possibly the connection to Netscape Server failed.  Like I said, this only happens on 
non-ascii files.  jpg's, zip's, etc.

Searching through this mailing list archive indicates there was a bug matching this 
exact problem with mod_webapp?? and a fix posted.

My question is:  Will upgrading to a newer version of Tomcat fix this problem?  I'm 
currently using 3.2.3 and considering 3.3.  That's brings the next question which is 
will the nsapi.dll I currently have (got it from the 3.1 tree) work with newer 
versions of Tomcat.




Previous post was:

 I'm locked into Netscape Server for the moment.

 I can upload text-files fine with jspsmartupload, but when I try to upload
 binaries it fails.  Exact same code works on Tomcat/IIS server, but does not work  
on Netscape Server.

 Thought it might have something to do with a proxy, but it didn't.

 Does Netscape Server block binary file uploads or have the ability to do so?

 Not much on the web about this.  Wondering if anyone else has run into this or 
 something similar.

-Dave

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




404 Status

2002-02-04 Thread Tamim, Samir

Hi all,
 
Hope somebody will help.
 
I am getting a status 404 when requesting localhost/examples/It was
working and suddenly it stopped.
But works normal when requesting localhost/myapp/  that I created.
 
Env: tomcat 4.0.1/Warp/apache1.3.22/win2000/jdk1.3.1_02
 
Any help ! 

Sam




How to setup multi-virtual hosts on tomcat 4.0 and apache 1.3

2002-02-04 Thread Thanh Duong

Hi,
I am trying to setup multi virtual hosts on tomcat 4.0 and apache 1.3. I
don't know what I did wrong, but it doesn't work.
When I try to call http;//example1.de/index.jsp, it said
The requested resource (/index.jsp) is not available.

Does someone know how to setup virtual hosts correctly?

Thanks
Thanh


I did the following:

in httpd.conf:
NameVirtualHost 1.2.1.211
VirtualHost 1.2.1.211
   DocumentRoot /example1.de
   ServerName example1.de
   ServerPath /example1.de/
   ErrorLog logs/example1-error_log
   CustomLog logs/example1-access_log common
/VirtualHost

VirtualHost 1.2.1.211
   DocumentRoot /example2.de
   ServerName example2.de
   ServerPath /example2.de/
   ErrorLog logs/example2.at-error_log
   CustomLog logs/example2.at-access_log common
/VirtualHost

in server.xml:

Engine name=Standalone defaultHost=localhost debug=0

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps unpackWARs=true
Context path=/manager docBase=manager
 debug=0 privileged=true/
   Context path=/iw-mount/default/main/Development/WORKAREA
 docBase=/.iwmnt/default/main/Development/WORKAREA
 crossContext=false
 debug=0
 reloadable=true 
/Context
...
/Host

Host name=example1.de appBase=/example1.de debug=0
Context path=/static_js
 docBase=/example1.de/static_js
 crossContext=false
 debug=0
 override=true
 reloadable=true 
/Context

Context path=
 docBase=/example1.de
 crossContext=false
 debug=0
 override=true
 reloadable=true 
/Context
/Host

Host name=example2.de appBase=/example1.de debug=0
Context path=/static_js
 docBase=/example2.de/static_js
 crossContext=false
 debug=0
 override=true
 reloadable=true 
/Context

Context path=
 docBase=/example2.de
 crossContext=false
 debug=0
 override=true
 reloadable=true 
/Context
/Host
/Engine


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




Re: DB2 App Driver?

2002-02-04 Thread Anja Falkner

Hi Derek,

we use the app-driver to connect to DB2 with Tomcat 4.0.

If your application runs on another maschine than DB2, you must install a
DB2-Client. Without that you can't use the app-driver.

If your application runs on the same maschine than DB2, you must tell Tomcat
where your driver is. To do that, you can either change Tomcat-Classpath or
copy the driver to a directory in the Tomcat-Classpath. But on our system,
the latter didn't run.

Anja


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




Http Protocol Violation

2002-02-04 Thread Cahoon Tobias C GS-09 96 CG/SCTOA


I am writing a VB.NET client that access a web service thru tomcat 4.0.1.
The application works over HTTP with BASIC authentication, and over HTTPS
without BASIC authentication, but when I try it over HTTPS with
authentication I get the following error:

An unhandled exception of type 'System.Net.WebException' occurred in
system.web.services.dll Additional information: The underlying connection
was closed: The server committed an HTTP protocol violation. 

I have the log files if necessary, but I kept them out of this message due
to their size. Any assistance would be greatly appreciated.

Thanks,

Toby


Tobias C. Cahoon
96 CG/SCTOA
Eglin AFB






FW: How to setup multi-virtual hosts on tomcat 4.0 and apache 1.3

2002-02-04 Thread Thanh Duong



-Original Message-
From: Thanh Duong [mailto:[EMAIL PROTECTED]]
Sent: Montag, 4. Februar 2002 19:55
To: Tomcat Users List
Subject: How to setup multi-virtual hosts on tomcat 4.0 and apache 1.3


Hi,
I am trying to setup multi virtual hosts on tomcat 4.0 and apache 1.3. I
don't know what I did wrong, but it doesn't work.
When I try to call http;//example1.de/index.jsp, it said
The requested resource (/index.jsp) is not available.

Does someone know how to setup virtual hosts correctly?

Thanks
Thanh


I did the following:

in httpd.conf:
NameVirtualHost 1.2.1.211
VirtualHost 1.2.1.211
   DocumentRoot /example1.de
   ServerName example1.de
   ServerPath /example1.de/
   ErrorLog logs/example1-error_log
   CustomLog logs/example1-access_log common
/VirtualHost

VirtualHost 1.2.1.211
   DocumentRoot /example2.de
   ServerName example2.de
   ServerPath /example2.de/
   ErrorLog logs/example2.at-error_log
   CustomLog logs/example2.at-access_log common
/VirtualHost

in server.xml:

Engine name=Standalone defaultHost=localhost debug=0

!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps unpackWARs=true
Context path=/manager docBase=manager
 debug=0 privileged=true/
   Context path=/iw-mount/default/main/Development/WORKAREA
 docBase=/.iwmnt/default/main/Development/WORKAREA
 crossContext=false
 debug=0
 reloadable=true 
/Context
...
/Host

Host name=example1.de appBase=/example1.de debug=0
Context path=/static_js
 docBase=/example1.de/static_js
 crossContext=false
 debug=0
 override=true
 reloadable=true 
/Context

Context path=
 docBase=/example1.de
 crossContext=false
 debug=0
 override=true
 reloadable=true 
/Context
/Host

Host name=example2.de appBase=/example1.de debug=0
Context path=/static_js
 docBase=/example2.de/static_js
 crossContext=false
 debug=0
 override=true
 reloadable=true 
/Context

Context path=
 docBase=/example2.de
 crossContext=false
 debug=0
 override=true
 reloadable=true 
/Context
/Host
/Engine


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




JSP in JAR

2002-02-04 Thread Benezra, Michael

Hi,

I am not sure if this question should be asked in the dev or user list, but
here goes:

Is it possible to package JSP file in a JAR file and install it as a JAR
file on the Jakarta-Tomcat server?

Any ideas?

Michael



Re: Are spaces allowed in Servlet Context names?

2002-02-04 Thread David M Johnson

Should I file a bug, or have you already done that?



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


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




Session Binding with IIS (is it possible??)))

2002-02-04 Thread Pavel Brun

I am not sure if this is possible, but what possibilities are out there to
bind the IIS session with Tomcat's Session Management and vice versa?

Thanks

Paul





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




Problem starting redeployed webapp

2002-02-04 Thread Press, Michael


Summary:  I can stop and start a webapp that's loaded when Tomcat starts.
But if I remove and re-install it using the manager webapp, I get an error
when trying to start it - FAIL - Application at context path /test could
not be started.

This works:  Start Tomcat with test war unpacked (no test.war).  Stop and
start the webapp repeatedly via the manager webapp.  Works fine. 

This fails:  Start Tomcat with test war unpacked (no test.war).  Remove the
webapp, install and start via manager. I get the FAIL error above and the
log file entry at the end of this message.  Here are the specific manager
URLs:

   remove: http://localhost:8080/manager/remove?path=/test
   install:
http://localhost:8080/manager/install?path=/testwar=file:/Apps/jakarta-tomc
at-4.0.1/webapps/test
   start: http://localhost:8080/manager/start?path=/test

Here's the server.xml entry:

Context path=/test docBase=test reloadable=true /

Seems like bug 2159, but that says fixed for 4.0 Beta 5

This is Tomcat 4.0.1 on Windows NT 4.0 SP6, JDK 1.3.1.

Here's the log file after the final start:

2002-02-04 14:30:31 Manager: start: Starting web application at '/test'
2002-02-04 14:30:31 StandardHost[localhost]: standardHost.start /test
2002-02-04 14:30:31 StandardContext[/test]: Error initializing resources:
Document base ..\webapps\Apps\jakarta-tomcat-4.0.1\webapps\test does not
exist or is not a readable directory
2002-02-04 14:30:31 StandardContext[/test]: Context startup failed due to
previous errors
2002-02-04 14:30:31 StandardContext[/test]: Exception during cleanup after
start failed
LifecycleException:  Container StandardContext[/test] has not been started
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3440)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3397)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:826)
at
org.apache.catalina.servlets.ManagerServlet.start(ManagerServlet.java:587)
at
org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:287)
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
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:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:518)
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:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.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:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)

Re: populating save as... dialog for application/octet-streamcontent type (solved maybe)

2002-02-04 Thread Gary Helmling

On Sun, 2002-02-03 at 07:53, rob wrote:
 I tried the following
 
 request.setHeader(Content-Disposition, attachment; filename=mypdf.pdf);
 
 and it seemed to work, is this the correct way or is there a more
 appropriate way to do this?
 
 Thanks
 


That is the correct way.  I've had to use a fake mime-type to get this
to work with all versions of IE, though (like
application/x-vnd-yourcompany).  See RFC 2616 for more info:


19.5.1 Content-Disposition
The Content-Disposition response-header field has been proposed as a
means for the origin server to suggest a default filename if the user
requests that the content is saved to a file. This usage is derived from
the definition of Content-Disposition in RFC 1806 [35].

  content-disposition = Content-Disposition :
 disposition-type *( ; disposition-parm )
  disposition-type = attachment | disp-extension-token
  disposition-parm = filename-parm | disp-extension-parm
  filename-parm = filename = quoted-string
  disp-extension-token = token
  disp-extension-parm = token = ( token | quoted-string )

An example is
  Content-Disposition: attachment; filename=fname.ext


--g


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




Re: APJ connector source code for Tomcat 4.0.1

2002-02-04 Thread jonathan

On Mon, Feb 04, 2002 at 10:15:30AM -0800, Jianliang Zhao wrote:
 I tried find the source code for tomcat_ajp.jar which is used by
 Tomcat 4.0.1 release, but it seems it's not published on the Apache
 website.  Tomcat 4.0.1 source only contains the jar file for the AJP
 connector, not the source itself.  Does anyone know where I can get
 it?

I've had the same problem... :)

http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/

I know you can get tar ball snapshots some where but I can't remember
where... (I have jakarta-tomcat-connectors_20020122172415.tar.gz sitting
in my downloads directory... :)

I would appreciate being directed to the appropriate page. :)

Jonathan.

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




improper JSP, or Tomcat bug?

2002-02-04 Thread Gregory Guthrie

I am trying to use a simple JSP page that tests for an existing Bean, and 
uses the pre-existence of it as a logic branch by putting some code in the 
initialization part of the jsp:usebean, and then a %return;% statement.

But,
I find that both Tomcat and Websphere put some code after my last code in 
the init branch, and thus it becomes invalid Java.

   !-- Access bean, else create --
   jsp:useBean id=msg class=String scope=session
  New.
  % return; %
   /jsp:useBean
  Old.

Is this valid JSP? If not, where is the spec. section that would pertain to 
this?

It seems logical...! :-)

Error: 500
Location: /test/aTest_1.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for 
JSPE:\Net\Apache\Tomcat\work\localhost_8080%2Ftest\_0002faTest_0005f_00031_0002ejspaTest_0005f1_jsp_0.java:85:
 
Statement not reached.
 out.write(\r\n\r\n);

Thanks.

---
Gregory Guthrie

MUM Faculty Mail - FM 1068
Farfield, IA 52557

http://www.mum.edu/~guthrie
(641)472-7773



Re: Tomcat with IIS 6.0

2002-02-04 Thread Daniel Parnell


I would imagine that the IIS plugin would not work too well.
If all you need are JSPs, then you could try my little program available at 
http://warpconduit.sourceforge.net/

Daniel

Has anyone tried using Tomcat with IIS 6.0 (any version of Tomcat)? I am
attempting this using the JNI configuration, and not having any luck so 
far.

This is the webserver that is coming with the new Windows .NET Server
Family-- I think a lot of people will need to deploy Tomcat on it.

Any help appreciated (I'll post what I learn as well).

Thanks,
Stephen Jones


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





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




jk_uri_worker_map_t::uri_worker_map_close errors?

2002-02-04 Thread Gregory Guthrie

What do these errors mean, in tomcat/logs/mod_jk.log:

[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, 
NULL parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, 
NULL parameter
s
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1

All attempts to use servlets or JSP give internal server error.



Dr. Gregory Guthrie
[EMAIL PROTECTED] (641)472-1125Fax: -1103
Computer Science Department
School of Computing and Information Science
Maharishi University of Management
   (Maharishi International University 1971-1995)
 http://www.mum.edu/cs_dept



Re: Fixed - RE: RE: Catalina Beans - Class Path Problem

2002-02-04 Thread August Detlefsen

I have found that it does not pick up changes to WEB-INF/classes,
though it does recognise changes to WEB-INF/lib. My solution is to
update the jar (jar -uvf) whenever I change a class. My build script
(run from WEB-INF/src dev directory) goes something like this: 

#!/bin/bash

export
CLASSPATH=$CLASSPATH:.:/usr/local/catalina/classes/:/usr/local/j2sdkee1.2.1/lib/j2ee.jar

echo $CLASSPATH

FILE=$1
if [ $1 =  ]; then
echo building all java files
FILE=*
fi

find . -name $FILE.java -exec javac {} \; -print

find . -name $FILE.class -exec jar -uvf ../lib/myWebapp.jar {} \;


--- Jon Shoberg [EMAIL PROTECTED] wrote:
 All fixed :)
 
 Can tomcat/catalina check the classes directory to make sure none of
 them
 have been modified.  Obviosuly it will check my JSPs but apparently
 not so
 when I have to change a class. Currently I have to reload the
 applciation.
 
 Any thoughts?
 
 Thanks for the help.
 
 -Original Message-
 From: Pavel Brun [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 9:10 AM
 To: Tomcat Users List
 Subject: RE: RE: Catalina Beans - Class Path Problem
 
 
 I am not sure if you are running this in Windows but if you go to
 something
 equivalent to starting this at the command line, type startup debug
 in the
 %CATALINA_HOME%\bin directory and see if your classes or jars are
 loaded?
 
 Paul
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 8:29 AM
 To: Tomcat Users List
 Subject: Re: RE: Catalina Beans - Class Path Problem
 
 
 I am having the same problem only my clases ARE directly in the
 classes
 folder. Also, my utility classes, which are neither servlets nor
 Beans, are
 also giving me the same problem. Please help!!! I have tried
 packaging them
 and then without packaging. I am not sure what to do now. I am not
 using any
 IDE nor am I using a deployment tool.
 
 
 Tomcat Users List [EMAIL PROTECTED] wrote:
  Please see my comments below:
 
 All your classes and/or beans should go into:
 
   ./webapps/gateway/WEB-INF/classes, or
   ./webapps/gateway/WEB-INF/lib
 
 This should help you out. :-)
 
 Paul
 
 -Original Message-
 From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 8:12 PM
 To: Tomcat Users List
 Subject: Catalina Beans - Class Path Problem
 
 
 Short Version:
 
 For some reason, I can not get my JSP pages to compile when loading a
 little
 bean ... It is not reading web-inf/classes.  Although, it is reading
 web-inf/web.xml
 
 Long Version:
 
 A)Installed tomcat, got it running, all of the example programs
 work.
 B)I am building an application called Gateway I created
  ./webapps/gateway
 ./webapps/gateway/index.jsp
 
 ./webapps/gateway/WEB-INF/
 ./webapps/gatewayWEB-INF/web.xml
 
 So I understand this to be creating a bean with id Words
 from the
 class ./webapps/gateway/classes/gwclasses/words.class in the
 kw.jsp.
 However, I am getting a compiler error saying
 
 C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63:
 Class
 gwclasses.words not found
 
 
 Any thoughts ?
 
 
 Thanks
 
 
 
 
 
 --
 To unsubscribe:
 For additional commands:
 Troubles with the list:
 
 
 
 
 --
 To unsubscribe:
 For additional commands:
 Troubles with the list:
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

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




Database Pooling

2002-02-04 Thread Jason Webber

Does anyone know of a database pooling bean or soemthing that will aloow
me to share connections among many jsp pages.  Preferably something that
is free.



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




RE: Fixed - RE: RE: Catalina Beans - Class Path Problem

2002-02-04 Thread Pavel Brun

I would have assumed that once you load a JAR into the ClassLoader, that any
changes will
not be taken into account unless you reload the application (Tomcat).
However, I took the
approach of replacing the JAR's, not really updating them. I will have to
give that a try
to see if that works. :-)

Thanks for the update.
Paul

-Original Message-
From: August Detlefsen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 4:20 PM
To: Tomcat Users List
Subject: Re: Fixed - RE: RE: Catalina Beans - Class Path Problem


I have found that it does not pick up changes to WEB-INF/classes,
though it does recognise changes to WEB-INF/lib. My solution is to
update the jar (jar -uvf) whenever I change a class. My build script
(run from WEB-INF/src dev directory) goes something like this:

#!/bin/bash

export
CLASSPATH=$CLASSPATH:.:/usr/local/catalina/classes/:/usr/local/j2sdkee1.2.1/
lib/j2ee.jar

echo $CLASSPATH

FILE=$1
if [ $1 =  ]; then
echo building all java files
FILE=*
fi

find . -name $FILE.java -exec javac {} \; -print

find . -name $FILE.class -exec jar -uvf ../lib/myWebapp.jar {} \;


--- Jon Shoberg [EMAIL PROTECTED] wrote:
 All fixed :)

 Can tomcat/catalina check the classes directory to make sure none of
 them
 have been modified.  Obviosuly it will check my JSPs but apparently
 not so
 when I have to change a class. Currently I have to reload the
 applciation.

 Any thoughts?

 Thanks for the help.

 -Original Message-
 From: Pavel Brun [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 9:10 AM
 To: Tomcat Users List
 Subject: RE: RE: Catalina Beans - Class Path Problem


 I am not sure if you are running this in Windows but if you go to
 something
 equivalent to starting this at the command line, type startup debug
 in the
 %CATALINA_HOME%\bin directory and see if your classes or jars are
 loaded?

 Paul

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 03, 2002 8:29 AM
 To: Tomcat Users List
 Subject: Re: RE: Catalina Beans - Class Path Problem


 I am having the same problem only my clases ARE directly in the
 classes
 folder. Also, my utility classes, which are neither servlets nor
 Beans, are
 also giving me the same problem. Please help!!! I have tried
 packaging them
 and then without packaging. I am not sure what to do now. I am not
 using any
 IDE nor am I using a deployment tool.


 Tomcat Users List [EMAIL PROTECTED] wrote:
  Please see my comments below:

 All your classes and/or beans should go into:

   ./webapps/gateway/WEB-INF/classes, or
   ./webapps/gateway/WEB-INF/lib

 This should help you out. :-)

 Paul

 -Original Message-
 From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 02, 2002 8:12 PM
 To: Tomcat Users List
 Subject: Catalina Beans - Class Path Problem


 Short Version:

 For some reason, I can not get my JSP pages to compile when loading a
 little
 bean ... It is not reading web-inf/classes.  Although, it is reading
 web-inf/web.xml

 Long Version:

 A)Installed tomcat, got it running, all of the example programs
 work.
 B)I am building an application called Gateway I created
  ./webapps/gateway
 ./webapps/gateway/index.jsp

 ./webapps/gateway/WEB-INF/
 ./webapps/gatewayWEB-INF/web.xml

 So I understand this to be creating a bean with id Words
 from the
 class ./webapps/gateway/classes/gwclasses/words.class in the
 kw.jsp.
 However, I am getting a compiler error saying

 C:\apache\Tomcat4\work\localhost\gateway\kw$jsp.java:63:
 Class
 gwclasses.words not found


 Any thoughts ?


 Thanks





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




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



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




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


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



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com

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



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




What's up with Borland?

2002-02-04 Thread Robert D. Morse

I'm trying to get JBuilder 6 Enterprise to work with Tomcat 4.0.1 (which is
packaged with JBuilder 6 Enterprise).  Everything works fine with 3.2
selected but selecting 4.0.1 results in a No Realm has been configured to
authenticate against error.  Not finding anything in the e-mail lists, or
Borland Newsgroups, I logged a bug report with Borland and spoke with a
technical rep.  When I explained the problem, he said that there were known
issues with 4.0.1, and that he would not recommend using it with JBuilder
6.0.  I asked why, and he said ...the Tomcat guys release a new build of
Tomcat 4.0 about every week, and it always breaks our stuff.  He also said
that he didn't want to take me down the road of possibly fixing this
problem, because he couldn't guarantee that it would work, and that I might
be unhappy with the results.  Did someone piss off Borland??




---
Robert D. Morse
[EMAIL PROTECTED]
PGP Key:  D9C4AA6A
PGP Finger Print:  ED56 DEEA 95CF AC99 C2B0  77D4 7D92 ACCA D9C4 AA6A


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




Problem with Class Loader

2002-02-04 Thread Jing Wang


Hi, Tomcat-Users,

I have a servelt called SedSoap which will handle the request from a
SOAP client. I tested my client on 16 linux machines with Tomcat4.0.1, 4
out of them have the following problem(The strange thing are I used the
same installation package to install the 16 machines, the servlet
classes came from the same installation package). Could anyone tell me
what's caused this problem? Any help will be greately appreciated.

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception=20

javax.servlet.ServletException: Cannot allocate servlet instance for
path /servlet/SedSoap
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.
java:415)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:18
0)
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(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:518)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
4)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1106)
at java.lang.Thread.run(Thread.java:484)


root cause=20

java.lang.ClassFormatError: SedSoap (Illegal constant pool type)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla
ssLoader.java:1534)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader
.java:852)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1273)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1156)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:801)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
15)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.
java:396)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:18
0)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

problem mod_webapp.so module

2002-02-04 Thread Koningshoed

When executing make in the directory where everything will build fine
until it gets to the mod_webapp.c file in the apache-1.3 directory.

When doing make in the apache-1.3 directory I get the following output:

~/web_app/webapp-module-1.0.1-tc401/apache-1.3# make
{ APXS_LDFLAGS_SHLIB=`/usr/local/sbin/apxs -q LDFLAGS_SHLIB` \
 \
-lm -lcrypt -lnsl -ldl ; \
APXS_LDFLAGS_SHLIB=`/bin/echo ${APXS_LDFLAGS_SHLIB}` ; \
APXS_CFLAGS=`/usr/local/sbin/apxs -q CFLAGS` \
-g -O2 \
-g -O2 \
 \
-DLINUX=2 -D_REENTRANT \
-I/root/web_app/webapp-module-1.0.1-tc401/apr/include \
-I/root/web_app/webapp-module-1.0.1-tc401/include \
 ; \
APXS_CFLAGS=`/bin/echo ${APXS_CFLAGS}` ; \
/usr/local/sbin/apxs \
-S CFLAGS=${APXS_CFLAGS} \
-S LDFLAGS_SHLIB=${APXS_LDFLAGS_SHLIB} \
-o mod_webapp.so \
-c mod_webapp.c \
/root/web_app/webapp-module-1.0.1-tc401/lib/libwebapp.a \
/root/web_app/webapp-module-1.0.1-tc401/lib/libapr.a ; \
}
apxs:Error: no config variable LDFLAGS_SHLIB
Usage: apxs -g [-S var=val] -n modname
   apxs -q [-S var=val] query ...
   apxs -c [-S var=val] [-o dsofile] [-D name[=value]]
   [-I incdir] [-L libdir] [-l libname] [-Wc,flags]
   [-Wl,flags] files ...
   apxs -i [-S var=val] [-a] [-A] [-n modname] dsofile ...
   apxs -e [-S var=val] [-a] [-A] [-n modname] dsofile ...
make: *** [mod_webapp.so] Error 1

I managed to fix this by changing the apxs script, someone else deleted the
line setting the flag.  The orriginal script looked like this:

##
##  Configuration
##

my $CFG_TARGET= q(httpd);# substituted via Makefile.tmpl
my $CFG_CC= q(gcc);# substituted via
Makefile.tmpl
my $CFG_CFLAGS=
q( -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
`../apaci`);  # substituted via Makefile.tmpl
my $CFG_CFLAGS_SHLIB  = q();  # substituted via Makefile.tmpl
my $CFG_LD_SHLIB  = q();  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(); # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB= q();# substituted via Makefile.tmpl
my $CFG_PREFIX= q(/usr/local);# substituted via APACI
install
my $CFG_SBINDIR   = q(/usr/local/sbin);   # substituted via
APACI install
my $CFG_INCLUDEDIR= q(/usr/local/include/httpd);# substituted
via APACI install
my $CFG_LIBEXECDIR= q(/usr/local/libexec);# substituted via
APACI install
my $CFG_SYSCONFDIR= q(/etc/apache);# substituted via APACI
install

Changed to:

my $CFG_CFLAGS_SHLIB  = q( );  # substituted via Makefile.tmpl
my $CFG_LD_SHLIB  = q( );  # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q( ); # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB= q( );# substituted via Makefile.tmpl

Is this a problem in perl-5.004?

Now I get the following output:

~/web_app/webapp-module-1.0.1-tc401/apache-1.3# make
{
--- SNIP ---
}
gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED 
-g -O2 -g -O2 -DLINUX=2 -D_REENTRANT -I/root/web_app/webapp-module-1.0.1-tc4
01/apr/include -I/root/web_app/webapp-module-1.0.1-tc401/include   -I/usr/lo
cal/include/httpd  -c mod_webapp.c
*Initialization*:1: warning: `LINUX' redefined
*Initialization*:1: warning: this is the location of the previous definition
  -lm -lcrypt -lnsl -ldl -o mod_webapp.so mod_webapp.o
/root/web_app/webapp-module-1.0.1-tc401/lib/libwebapp.a
/root/web_app/webapp-module-1.0.1-tc401/lib/libapr.a
apxs:Break: Command failed with rc=255
make: *** [mod_webapp.so] Error 1


which implies that gcc compiles the mod_webapp.c file (I also checked that
mod_webapp.o exists, and it does).
It seems to me like the second command (the one after the second warning) is
not complete and thus fails to execute.  Does anyone know what should be
going in there?  I tried gcc but that fails bad time.  Perhaps those $CFG_*
configuration values I changed?  If they are empy you get the no config
variable LDFLAGS_SHLIB error, place them there, you get a bit further but
you still fail.

Any advice welcome.

Jaco


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




Session Binding with IIS (Is it Possible?)

2002-02-04 Thread Pavel Brun

I am not sure if this is possible, but what possibilities are out there to
bind the IIS session with Tomcat's Session Management and vice versa?

Thanks
Paul






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




RE: which is the current directory for Tomcat Server?

2002-02-04 Thread Koningshoed

Hi
There is a directory called work (jakarta-tomcat-4.0.1/work) under which a
directory gets created for each context - where the servlets get run.
Excactly how it works from there I'm not sure but you should be able to get
to your file by using absolute addresses.  Or perhaps by using a relative
address of the form ../../webapps/yourappname/WEB-INF/classes/filename,
but I'm not too sure.
You could possibly find the location by making the servlet create a file
called something like find.me and then issuing find / -name find.me.
Jaco

Hi,
Thanks  for  the  fast  reply.  What  I  want  is to  read a  text  file
from  servlet  or  jsp page. I  don 't  want  to  specify the  whole
directory  path for  the  file. I  want  to  just  specify  the  file  name
and  should  be  able  to read that  file. So I  believe  if I  keep  in the
current working  directory  of  the Tomcat server, it  will  work. IS the
WEB root as  same as the  Current  working  directory  for  the  Tomcat
Server.

Regards,
Santosh

-Original Message-
From: Atok Koenig [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 3:54 PM
To: Tomcat Users List
Subject: Re: which is the current directory for Tomcat Server?

Do you mean the web root?

If so that is install path\jakarta-tomcat-3.2.2\webapps\ROOT

Youcan change this or add additional virtual roots in the \config\server.xml
file using the context tags

-Original Message-
From: Santosh Varghese [EMAIL PROTECTED]
Date: Thu, 31 Jan 2002 14:37:21 -0800
To: Tomcat Users List [EMAIL PROTECTED]
Subject: which  is the  current  directory for Tomcat Server?


 Hi,

 I  wanted  to  read  some txt  file  from  the  current directory  for
 tomcat  server. But  I  am  unable  to  find  out  the  current
directory.
 Please help me  out

 Regards,
 Santosh






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




Re: Using JNDIRealm with password digesting and openldap

2002-02-04 Thread John Holman

Dirk

This isn''t possible with the current JNDIRealm in Tomcat 4, though you 
could probably specify the appropriate digest algorithm and
hack the Tomcat code to disregard the  {crypt} prefix returned from OpenLDAP.

A much cleaner solution is to have the JNDIRealm to authenticate by binding 
to the directory as the user,
in which case doesn't matter how how the password is stored in the 
directory. I submitted a patch
for JNDIRealm to the tomcat-dev list last week which supports this, and you 
could consider giving that a try. This assumes that you
are using HTTP basic authentication or form-based login, not HTTP digest 
authentication.

John.



At 15:59 04/02/02, you wrote:
**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**

Hi,

I'm trying to use tomcat's JNDIRealm with OpenLDAP. I've converted my
passwords to digest format in the LDAP directory instead of plain text.

Apparently, tomcat only excepts only hex formatted password where openLDAP
provides passwords of the format
{crypt}X where crypt = { SHA, MD, ... } and XXX is a base64 encoded
integer.

Is there a way to configure tomcat to accept this format of passwords? If
so does this require any recompilation of
tomcat?

Thanks for your help,

--  Dirk


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


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




JRE or JDK

2002-02-04 Thread Ken Sanderson


Hello all. I have installed tomcat on my NT machine, in order to run a
software application that requires it. In the install instructions it talks
about setting the JAVA_HOME variable to the JDK bin folder. However, it
cannot find the necessary files it needs in that location. Instead if I set
the JAVA_HOME variable to my JRE bin folder, it works fine. Is JDK supposed
to be JRE?

Everything is working great with the JRE setup, however I noticed that when
I go to the log on window, tomcat is shut down. After some research I found
that the problem is my JDK, and I need to upgrade it to 1.3.1, which I did.
Now the question is, since my JAVA_HOME is pointing to the JRE, is it really
1.3.1 of JRE I need, not the JDK?

Sorry thats probably confusing, thoughts appreciated.

Ken Sanderson

Miistakis Institute for the Rockies
c/o Faculty of Environmental Design
2500 University Drive NW
Calgary, Alberta
T2N 1N4

t 1 (403) 220-8968
  1 (403) 220-2573
w www.rockies.ca

facilitating ecosystem research  management in the Rocky Mountains


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




RE: JRE or JDK

2002-02-04 Thread Pavel Brun

you need the JDK for JSP page compilation. JRE (Java Runtime) is only good
for
running Java Applications. The JDK is used to compile the JSP pages into
servlets.

Paul

-Original Message-
From: Ken Sanderson [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 6:45 PM
To: [EMAIL PROTECTED]
Subject: JRE or JDK



Hello all. I have installed tomcat on my NT machine, in order to run a
software application that requires it. In the install instructions it talks
about setting the JAVA_HOME variable to the JDK bin folder. However, it
cannot find the necessary files it needs in that location. Instead if I set
the JAVA_HOME variable to my JRE bin folder, it works fine. Is JDK supposed
to be JRE?

Everything is working great with the JRE setup, however I noticed that when
I go to the log on window, tomcat is shut down. After some research I found
that the problem is my JDK, and I need to upgrade it to 1.3.1, which I did.
Now the question is, since my JAVA_HOME is pointing to the JRE, is it really
1.3.1 of JRE I need, not the JDK?

Sorry thats probably confusing, thoughts appreciated.

Ken Sanderson

Miistakis Institute for the Rockies
c/o Faculty of Environmental Design
2500 University Drive NW
Calgary, Alberta
T2N 1N4

t 1 (403) 220-8968
  1 (403) 220-2573
w www.rockies.ca

facilitating ecosystem research  management in the Rocky Mountains


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



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




Connection Pool

2002-02-04 Thread Karambir Singh

Hi,

Does anyone know how to configure connection pool and set upperLimit and
desired size properties in Tomcat 4.0.1.
My server.xml is as follows. I want to use transaction sand connection
pooling.

  Resource name=jdbc/eTaskPool auth=CONTAINER
type=tyrex.jdbc.ServerDataSource/


 ResourceParams name=jdbc/eTaskPool
   parameter
   namefactory/name
   valueorg.apache.naming.factory.TyrexDataSourceFactory/value
 /parameter
  parameternameuser/namevaluearch/value/parameter
parameternamepassword/namevaluearch/value/parameter
parameternamedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value/parameter
parameternamedriverName/name
  valuejdbc:oracle:thin:@tiger:1521:etouch/value/parameter
  /ResourceParams

Regards,
Karambir Singh


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




RE: Catalina Beans - Class Path Problem -- workaround solution found

2002-02-04 Thread isaco

Thank you very much for your reply, Paul.
I managed to get it working once I put the classes folder in my
classpath. But I realize this is a workaround as I think it may limit
my ability to run any other applications that are within contexts
other than the classwork context I have set up.
Here is a rundown of my directory structure:
my application is called bookstore. it is in the context directory
called classwork saved directly within %tomcat_home%\webapps (I am
running Tomcat 4.0.1 on win2k and using TextPad as a text editor along
with the JSDK1.3.2 - I will eventually integrate Apache and JBoss once
I get a sufficient handle on the vagaries of Tomcat 4.0).
The directory is as such:
webapps\classwork\images
webapps\classwork\jsp
webapps\classwork\servlets
webapps\classwork\WEB-INF
webapps\classwork\WEB-INF\classes
webapps\classwork\WEB-INF\lib  //is currently empty as I have not
jarred any of my app yet.
webapps\classwork\WEB-INF\classes\bookstore
webapps\classwork\WEB-INF\classes\bookstore\utils
webapps\classwork\WEB-INF\classes\bookstore\javabeans
webapps\classwork\WEB-INF\classes\bookstore\action
webapps\classwork\WEB-INF\web.xml
(bookstore, bookstore.utils, bookstore.javabeans, bookstore.action are
all packages of classes and are broken down according to their purpose
within my understanding of the MVC architecture).
My classpath now looks like this:
CLASSPATH:
.;%TOMCAT_HOME%\webapps\classwork\WEB-INF\classes;%TOMCAT_HOME%\common
\lib\servlet.jar;%JAVA_HOME%\jre\lib\rt.jar
(any typos within this path are a result of typing it here and aren't
in my actual classpath).
My servlet.jar file has a new context entry for classwork that is the
following:
!-- classwork context --
Context path=/classwork docBase=classwork debug=0
reloadable=true /

This set up was found through a combination of trial and error, the
Tomcat 4.0 documentation, Goodwill's book on Tomcat 4.0 (worth the
money, IMHO) and one little tip in Marty Hall's book More Servlets and
JavaServer Pages (he made an invaluable comment about a common
beginner's mistake: forgetting to put the dev environment in the
classpath and since I used my actual deployment directory as my dev
environment, I placed that directory in the classpath though I
understand this habit is frowned upon). My bookstore app now works.
I posted this here for all the other newbies to Tomcat 4.0 who may be
able to use this info.
I am currently teaching a class on Servlets and JavaServer Pages and
this application is what I am using as a sample app for the students
to see and try for themselves the various concepts we cover in class,
hence the name classwork for the context.
We had opted to use Tomcat 4.0.1 because of its support for the latest
specs, its standard-setting architecture, its small size (important as
our puter hard drive space is at a premium) and the fact that it is
free, which is always a plus for an educational institution. It has
been an adventure to stay a step ahead of the students in figuring out
Tomcat's rules of play! But I have been quite happy with it, I must
say.
Thanks again, Paul.
Zaina
PS why does everyone always do a bookstore application for a sample
app??? that was rhetorical, btw.
-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 9:10 AM
To: Tomcat Users List
Subject: RE: RE: Catalina Beans - Class Path Problem


I am not sure if you are running this in Windows but if you go to
something
equivalent to starting this at the command line, type startup debug
in the
%CATALINA_HOME%\bin directory and see if your classes or jars are
loaded?

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 8:29 AM
To: Tomcat Users List
Subject: Re: RE: Catalina Beans - Class Path Problem


I am having the same problem only my clases ARE directly in the
classes
folder. Also, my utility classes, which are neither servlets nor
Beans, are
also giving me the same problem. Please help!!! I have tried packaging
them
and then without packaging. I am not sure what to do now. I am not
using any
IDE nor am I using a deployment tool.


Tomcat Users List [EMAIL PROTECTED] wrote:
 Please see my comments below:

All your classes and/or beans should go into:

./webapps/gateway/WEB-INF/classes, or
./webapps/gateway/WEB-INF/lib

This should help you out. :-)

Paul

-Original Message-
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 8:12 PM
To: Tomcat Users List
Subject: Catalina Beans - Class Path Problem


Short Version:

For some reason, I can not get my JSP pages to compile when loading a
little
bean ... It is not reading web-inf/classes.  Although, it is reading
web-inf/web.xml

Long Version:

A)Installed tomcat, got it running, all of the example programs
work.
B)I am building an application called Gateway I created
 ./webapps/gateway

Help tracking down a problem please.

2002-02-04 Thread Mario Felarca

Hello,

I am using Apache 1.3.22+mod_jk+mod_ssl(2.8.5 I believe)+Tomcat 3.3a on Win2K.

Currently, we have a context that has all data (i.e. images, scripts, 
applets) served up through Tomcat. The request comes in via HTTPS and on 
particularly heavy pages, for example ones that have a lot of images, we 
get an Apache.exe termination error talking about how an instruction could 
not reference memory at a location.

If I hit refresh on this page, I can get it to crash almost every time.

Now, the webserver itself doesn't crash. In the process manager, the 
Apache.exe never goes away, and the logs are not flushed. If I click OK 
on the error dialog, the page continues loading and eventually finishes 
correctly. This leads me to belive that it is a module that is crashing and 
restarting.

Has anyone seen this kind of behavior with a similar set-up? Is this a 
known bug that I just haven't found the information to yet? Does anyone 
know of workarounds that will help?

In looking at the logs, the only thing that stands out at the timestamps 
where these crashes occur is the following from the Apache sslinfo.log file.

Init: 4nd restart round (already detached)
[04/Feb/2002 15:58:02 01972] [info]  Init: Reinitializing OpenSSL library
[04/Feb/2002 15:58:02 01972] [info]  Init: Seeding PRNG with 136 bytes of 
entropy
[04/Feb/2002 15:58:02 01972] [info]  Init: Configuring temporary RSA 
private keys (512/1024 bits)
[04/Feb/2002 15:58:02 01972] [info]  Init: Configuring temporary DH 
parameters (512/1024 bits)
[04/Feb/2002 15:58:02 01972] [info]  Init: Initializing (virtual) servers 
for SSL

There is nothing unusual before this in the logs other than a large (10+) 
number of these entries, all with the same timestamp.

[04/Feb/2002 15:58:00 01596] [info]  Subsequent (No.2) HTTPS request 
received for child 1 (server SERVER)
[04/Feb/2002 15:58:00 01596] [info]  Subsequent (No.2) HTTPS request 
received for child 2 (server SERVER)
[04/Feb/2002 15:58:00 01596] [info]  Subsequent (No.3) HTTPS request 
received for child 1 (server SERVER)
[04/Feb/2002 15:58:00 01596] [info]  Subsequent (No.3) HTTPS request 
received for child 2 (server SERVER)

I am not sure if this is a tomcat, mod_jk, or mod_ssl error. Any pointers 
to information, ideas, or help would be greatly appreciated.

Thanks in advance,

Mario-



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


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




mod_rewrite+mod_webapp

2002-02-04 Thread god
As Nobody responds and as I am desperatly seeking answer here I am reposting my mail.

Hi, as  I am Newbie in Tomcat,I have a big problem with Rewriting to tomCat from 
Apache.
Please send me you suggestions if you can.
I have installed Apache(with mod_rewrite) + Tomcat4 with mod_webapp.
In httpd.conf my settings goes
{Let us suggest that our server Name is test.com}

Load webapp_module libexec/mod_webapp.so
Addmodule mod_webapp.c
...
Virtual Host 
ServerName test.com
WebAppConnection warpConnection warp test.com:8008
WebAppDeploy examples warpConnection /examples

RewriteEngine On
RewriteRule .* /Jump
/VirtualHost

and I want that every request coming to test.com like http://test.com/blahblahblah to 
be redirected to Java servlet script /Jump,but when I write URL like as:
http://test.com/blahblahblah
Apache says HTTP Error 404
when I access like :
http://test.com/examples/servlet/Jump
it works
How can I handle it ? 



 -- Welcome to ClubBBQ!!! http://www.clubbbq.com --

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


uploading files

2002-02-04 Thread Jagan

hi!
i am able to upload any type of files using port 8080 and but not able to upload the 
same without port means 
if i am using standalone we can upload any type file. 
i want to upload any type of file without using in standalone mode
any answers?
thanks in advance

Regards
Jagan
Unidux Electronics Ltd.
Email : [EMAIL PROTECTED]
TEL   : +65 293 4797
FAX   : +65 293 4920
  



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




RE: mod_rewrite+mod_webapp

2002-02-04 Thread Robert Hewlett

Place an index.html file in your apache HTDOCS when you go to
test.com it will access the index.html and redirect you to the proper URL.

html
head
titleAutomatic Redirect/title
!-- This will redirect you as soon as you hit the page --
meta http-equiv=refresh content=0;url=http://whatever/serlvet/whatever;
/head
body
/html


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




uploading files

2002-02-04 Thread Jagan

hi!
i am using tomcat 4.0.1 and am able to upload file with any extension means jpg or txt 
if i am working as standalone,
if at all i am not using standalone mode i am unable to upload jpg files or any binary 
data conversion files.
can i have any solutions?
thanks in advance

Regards
Jagan
Unidux Electronics Ltd.
Email : [EMAIL PROTECTED]
TEL   : +65 293 4797
FAX   : +65 293 4920
  



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




Tomcat with IIS 6.0

2002-02-04 Thread Jones, Stephen

Has anyone tried using Tomcat with IIS 6.0 (any version of Tomcat)? I am
attempting this using the JNI configuration, and not having any luck so far.

This is the webserver that is coming with the new Windows .NET Server
Family-- I think a lot of people will need to deploy Tomcat on it.

Any help appreciated (I'll post what I learn as well).

Thanks,
Stephen Jones


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




Re: mod_rewrite+mod_webapp

2002-02-04 Thread [EMAIL PROTECTED]

It Works,Thanks Robert.
Robert, If I am using this server for only one Java servlet [in my case 
Jump] should I have Apache +Tomcat+mod_webapp or  is better to have only 
Tomcat as standalone of Perfomance reason?

Robert Hewlett wrote:

 Place an index.html file in your apache HTDOCS when you go to
 test.com it will access the index.html and redirect you to the proper URL.
 
 html
 head
 titleAutomatic Redirect/title
 !-- This will redirect you as soon as you hit the page --
 meta http-equiv=refresh content=0;url=http://whatever/serlvet/whatever;
 /head
 body
 /html
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 



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




  1   2   >