jk connector Apache 1.3.29 Tomcat 4.1.29 too slow

2003-12-20 Thread George Shafik
Things that I'm using 

Platform: Linux 9
Apache 1.3.29 - built from source
Tomcat 4.1.29 - built from source
jakarta-tomcat-connectors-4.1.29 - yep also built from source - built my own mod_jk.so

Everything works but its very very very strange - its too slow to load the 
jsps/servlets on every second request.
If I make a request in the browser, every second request I need to hit STOP in the 
browser and make the request again -  that way things get loaded in the usual time.
Its particularly slow on loading images irrespective if its a second request or not. 
When I look into the mod_jk.log file apache is doing its job of passing the requested 
to tomcat to process however tomcat is not responding (as if some termination of a 
previous requested is still resolving!).

hope someone can help as I've spent the last 3 weeks on this :-(

many thanks in advance for any help,
George


Not everything that counts can be counted, and not everything that can be counted 
counts. (Sign hanging in Einstein's office at Princeton) 
Albert Einstein

Tomcat for RedHat Enterprise Linux

2003-12-20 Thread Sarika Inamdar
Hi,
 
We are using tomcat 4.1.2 version with our application running on RedHat
Linux 7.3. We are migrating our application from RH 7.3 to RedHat
Enterprise Linux.
 
I could not find anything on Jakarta site which mentions the tomcat
version support for RedHat Enterprise, hence posting the question here.
 
Could anyone please let me know which tomcat version is supported with
RH Enterprise Linux.
 
Thanks in Advance,
Sarika



Re: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/w

2003-12-20 Thread Anna Yates
I finally figured that out, the old copy was deep in the classpath, 
somehwere I had not expected. I removed the old xerce.jar file and now I 
can't get past the following error:

org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: 
zip file closed
	at 
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:210)
	at 
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:181)
	at 
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:516)
	at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:457)

Basically, it fails when it hits the taglib statement in my JSP. I can get 
past the error only if I remove the taglib statement: %@ taglib 
uri=WEB-INF/struts-html.tld prefix=html %

Anna



I just spent half a day on something like this, only to discover that I was
using an old (and known buggy) version of xerces.  Make certain that your
xerces version is up-to-date.
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am trying to setup Tomcat 5 to use a Struts 1.1 application. I keep
receiving the following error when trying to acces a struts page. The
strange part is that the description of the error changes periodically to
different files. A maority of the time it complains about WEB-INF/web.xml,
but has also thrown the exact same error with WEB-INF/struts-tiles.tld (it
will eventually list all tld's setup in my web.xml file). Below is the
error
and below that is the web.xml file.
Does anyone know what I've done wrong?
Thanks.
Anna Yates

_
ItÂ’s our best dial-up Internet access offer: 6 months @$9.95/month. Get it 
now!  http://join.msn.com/?page=dept/dialup

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


building mod_jk for apache on AIX

2003-12-20 Thread Pamela Stangl
I'm trying to build mod_jk.so for apache on AIX 5.1 and can't get it to 
work.  I've compile with the AIX compiler and with the g++ 
compiler.  Here's the steps I follow.  Any help would be much 
appreciated.  Also the software versions I'm using have been set by the 
vendor I'm working with but if you've gotten this to work under AIX by 
different versions, I'd be interested.

1.  I can build apache 1.3.27 just fine with the following commands and it 
runs:
 ./configure --enable-shared=max --prefix=/usr/local/apache 
--enable-module=so --enable-module=info  --enable-module=most
 make
 make install

2. I use the binary of Tomcat 4.0.6 and am able to start and access tomcat.

3. I attempt to build the Tomcat 4.0.6 connector mod_jk and get an error 
which I've listed below the command:
 apxs -I../common -I/usr/java131/include/ -I/usr/java131/include/aix/ -i 
-a -c mod_jk.c ../common/*.c -o mod_jk.so
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c mod_jk.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_ajp12_worker.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_ajp13.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_ajp13_worker.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_ajp14.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_ajp14_worker.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_ajp_common.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_connect.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_context.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_jni_worker.c
../common/jk_jni_worker.c, line 806.28: 1506-068 (W) Operation between 
types int(*)(const struct JNIInvokeInterface_***,const struct 
JNINativeInterface_***,void*) and void* is not allowed.
../common/jk_jni_worker.c, line 807.43: 1506-068 (W) Operation between 
types int(*)(void*) and void* is not allowed.
../common/jk_jni_worker.c, line 808.34: 1506-068 (W) Operation between 
types int(*)(const struct JNIInvokeInterface_***,int,int*) and void* is 
not allowed.
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_lb_worker.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_map.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c ../common/jk_md5.c
cc -DAIX=51 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ -DAIX_BIND_PROCESSOR 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE 
-I/u/pys/apbs/apache/include -I../common -I/usr/java131/include/ 
-I/usr/java131/include/aix/  -c 

Re: java.net.BindException: Address in use: JVM_Bind

2003-12-20 Thread Prasad Dhulipala
Hi Yoav,

Thanks for the response. When I changed the port number for Shutdown port alone, there 
were still errors. So, I changed the port numbers for all others also. Now, I am able 
to run both instances. Both are working fine.

Thanks Very much.

Prasad



Shapira, Yoav wrote:

 Howdy,
 Change the server shutdown port, 8005 by default, in the 2nd
 installation's server.xml file so that they don't both try to bind the
 same port 8005.

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-
 From: Prasad Dhulipala [mailto:[EMAIL PROTECTED]
 Sent: Friday, December 19, 2003 8:50 AM
 To: [EMAIL PROTECTED]
 Subject: java.net.BindException: Address in use: JVM_Bind
 
 Hi
 
 I am trying to simultaneously run two installations of Apache Tomcat
 4.0.6
 on my windows XP
 professional machine. Each is installed in a different folder. Each
 boots
 up and works fine
 independently. But when I try to start up one with the other instance
 already running, it fails with
 this message:
 
 Using CATALINA_BASE:   ..
 Using CATALINA_HOME:   ..
 Using CATALINA_TMPDIR: ..\temp
 Using JAVA_HOME:   C:\jdk1.3.1_09
 StandardServer.await: create[8005]: java.net.BindException: Address in
 use:
 JVM_Bind
 java.net.BindException: Address in use: JVM_Bind
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
 at java.net.ServerSocket.init(ServerSocket.java:165)
 at
 org.apache.catalina.core.StandardServer.await(StandardServer.java:276)
 at
 org.apache.catalina.startup.Catalina.start(Catalina.java:794)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 
 Can somebody help me with this?
 
 Thanks
 
 Prasad
 
 
 --
 NOTICE: If received in error, please destroy and notify sender.  Sender
 does not waive
 confidentiality or privilege, and use is prohibited.

 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.

--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive 
confidentiality or privilege, and use is prohibited.



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



Re: setting opts to avoid OutOfMemory errors

2003-12-20 Thread Kagi (sm)
X-Kagi-AutoReply:r2db

Hello,

You sent an email that does not contain the formated purchase data that this email 
account is able to parse.

So that we may be able to assist you, we offer the following suggestions.

If you are writing to ask a question about a payment made to Kagi, you might be able 
to obtain answers to your questions through our online Payment Query System located at 
http://info.kagi.com 

If you have a question concerning a specific product you have purchased, we suggest 
that you directly contact the company that produced the product. They will be able to 
answer questions about the use of the product. Their email or web site should be noted 
in the product documentation or their online order page that can be found by searching 
for the product at http://order.kagi.com

If you wish to purchase a product, you can order online and pay with credit card, cash 
or check by searching for the product order page at http://order.kagi.com or if you 
have used a Register program, you can send the output of the Register program to 
[EMAIL PROTECTED] 

Finally, if you wish to direct your question to a human being at Kagi, please send 
your email to [EMAIL PROTECTED] and please just type your message into the email, do 
not send an attachment.

Thank you,
[EMAIL PROTECTED]

--



Hi,

Shapira, Yoav wrote:
Howdy,


The fact that in the stock distribution the fork attrribute is set to
false by default is IMHO not very good choice. Took me several days of
headaches trying to find the leak in my code. When there is a disign
choice slow versus crash for 1% of users I would choose slow and

put

into some doc how to make it faster if it is required.


Well, that's your opinion. ;)  I for one disagree.

In addition, this issue is well-documented in several places, including
the JSPs How-To
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html), the
Release Notes, the JSP servlet in $CATALINA_HOME/conf/web.xml, this
mailing list's archives, and links to this mailing list's archives from
the tomcat FAQ Memory page.  Workarounds such as precompilingare also
documented in at least one of the above places, including pre-compiling
your JSPs.

Sorry - I was trying to use tomcat 4.1.29 and never looked at 5.0 docs. In 4.1 ones 
there are really vague advices regarding memory ;-(
Also the 4.1.x was for quite a long period of time regarded as stable - not very 
stable with the default setting.



and following bash script:
while [ 1 ]
do
  /usr/bin/lynx -dump http://localhost:8080/test.jsp  /tmp/m.txt
  touch /usr/local/jakarta-tomcat-4.1.29/webapps/ROOT/test.jsp


If this (the JSP page source changing on every user request) is a
realistic scenario for your webapp, you will also run into other, deeper
performance- and data-integrity related issues.  But why do I get the
feeling the above script doesn't mimic any realistic production system
scenario? ;)

Come on! That was an isolation test case. Of course this is not a production system. 
On the production system we have approx 20-30 jsps with headers being updated (XMLs 
fetched and transformed) from another service once in an hour. But this system could 
stay up no longer than 2 days. If I new that the compilation is a problem I would do 
it otherwise - but I have suspected our code with the leak. Tried to use insane
(http://performance.netbeans.org/insane/) to find the leak and found the tomcat 
buffers ...

Best regards,

David


Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



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

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



RE: setting opts to avoid OutOfMemory errors

2003-12-20 Thread Kagi (sm)
X-Kagi-AutoReply:r2db

Hello,

You sent an email that does not contain the formated purchase data that this email 
account is able to parse.

So that we may be able to assist you, we offer the following suggestions.

If you are writing to ask a question about a payment made to Kagi, you might be able 
to obtain answers to your questions through our online Payment Query System located at 
http://info.kagi.com 

If you have a question concerning a specific product you have purchased, we suggest 
that you directly contact the company that produced the product. They will be able to 
answer questions about the use of the product. Their email or web site should be noted 
in the product documentation or their online order page that can be found by searching 
for the product at http://order.kagi.com

If you wish to purchase a product, you can order online and pay with credit card, cash 
or check by searching for the product order page at http://order.kagi.com or if you 
have used a Register program, you can send the output of the Register program to 
[EMAIL PROTECTED] 

Finally, if you wish to direct your question to a human being at Kagi, please send 
your email to [EMAIL PROTECTED] and please just type your message into the email, do 
not send an attachment.

Thank you,
[EMAIL PROTECTED]

--




Howdy,

The fact that in the stock distribution the fork attrribute is set to
false by default is IMHO not very good choice. Took me several days of
headaches trying to find the leak in my code. When there is a disign
choice slow versus crash for 1% of users I would choose slow and
put
into some doc how to make it faster if it is required.

Well, that's your opinion. ;)  I for one disagree.

In addition, this issue is well-documented in several places, including
the JSPs How-To
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html), the
Release Notes, the JSP servlet in $CATALINA_HOME/conf/web.xml, this
mailing list's archives, and links to this mailing list's archives from
the tomcat FAQ Memory page.  Workarounds such as precompilingare also
documented in at least one of the above places, including pre-compiling
your JSPs.

and following bash script:
while [ 1 ]
do
/usr/bin/lynx -dump http://localhost:8080/test.jsp  /tmp/m.txt
touch /usr/local/jakarta-tomcat-4.1.29/webapps/ROOT/test.jsp

If this (the JSP page source changing on every user request) is a
realistic scenario for your webapp, you will also run into other, deeper
performance- and data-integrity related issues.  But why do I get the
feeling the above script doesn't mimic any realistic production system
scenario? ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

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



java.net.BindException: Address in use: JVM_Bind

2003-12-20 Thread Prasad Dhulipala
Hi

I am trying to simultaneously run two installations of Apache Tomcat 4.0.6 on my 
windows XP
professional machine. Each is installed in a different folder. Each boots up and works 
fine
independently. But when I try to start up one with the other instance already running, 
it fails with
this message:

Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   C:\jdk1.3.1_09
StandardServer.await: create[8005]: java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
at java.net.ServerSocket.init(ServerSocket.java:165)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:276)
at org.apache.catalina.startup.Catalina.start(Catalina.java:794)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Can somebody help me with this?

Thanks

Prasad

--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive
confidentiality or privilege, and use is prohibited.



Context and MemoryRealm

2003-12-20 Thread Bart Lute
I'm trying to implement a realm to a context within a virtual host but I can't 
get it working. This is my server.xml for the virtual host:

Host name=my.host.name
Context path= docBase=/path_to_app /
Context path=/stats docBase=/path_to_stats
 Realm className=org.apache.catalina.realm.MemoryRealm /
/Context
/Host

Whatever I try, I can't get tomcat to ask me for an authentication.
Can anybody help me out with an example. I've read the Tomcat Realm how-to but 
that doesn't get me further.

Thx,
Bart



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



May I transfer to tomcat5.0 ???

2003-12-20 Thread javen fang
Hi all:

On this list, I have seen somebody said that we cannot
transfer to tomcat 5.0.

I have a win2000 server served by tomcat 4.1.  I want
to configure iis + tomcat by jk2, can give me any
suggestion ?

thanks!!!

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



tomcat mysql not working

2003-12-20 Thread Leandro Costa
Hi there, i'm trying to get a tomcat server running with mysql connectivity. Tomcat is 
running ok, and i've downloaded the new Connector/J, and copied the .jar file to 
$CATALINA_HOME/common/lib. I'm running Tomcat 5.0.16. The other JSPs work ok, but the 
ones that contain a connection to mysql, fail with this message:

snip

HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause

java.lang.NullPointerException
org.apache.jsp.jspCounter_jsp._jspService(jspCounter_jsp.java:83)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

note The full stack trace of the root cause is available in the Tomcat logs.
Apache Tomcat/5.0.16

/snip

I don't know anything about Java, but i think that the 'NullPointerException' is 
because it can't get a handler to communicate with MySQL.
The JSP file connects to MySQL like this:
snip

String host = localhost;
String dbName = MYDBNAME; 
String driver = org.gjt.mm.mysql.Driver;
String username = MYUSERNAME;
String password = MYPASSWORD;
String url = jdbc:mysql:// + host + :3306/ + dbName;
String table = counter;
Connection connection = null; 
Statement statement   = null; 
Statement statement2   = null;
ResultSet resultSet   = null;
ResultSetMetaData resultsMetaData = null;
String query = ;
try{
  Class.forName(driver) ;
  connection = DriverManager.getConnection(url, username, password);
  statement = connection.createStatement();

/snip

I've seen in some example configuration files that you can specify a DB, username, 
password, etc. But i don't know if i have to do it, because this JSP specifies all 
that..

If someone could give me a helping hand, I would be more than grateful.

Regards,
Leandro Costa

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



How to: Tomcat 5.0.16 as Windows Service

2003-12-20 Thread Merrill Cornish
I am current running Tomcat 5.0.16 standalone on Windows XP Pro.  I 
would like to install it as a Windows service.  All the documentation I 
can find dismisses it by saying that you are asked if you want it to run 
it as a service by the installer.

The Tomcat 4.1 binary came as an .exe and had an installer; but the 
5.0.16 binaries are offered as a ZIP file without installer.  Any 
suggestions for how to install 5.0.16 as a Windows service?

Merrill Cornish

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


Re: How to: Tomcat 5.0.16 as Windows Service

2003-12-20 Thread David Boyer
I wrote a free utility that makes this quite a bit easier. Hope this
helps:


http://web.bvu.edu/staff/david/tcservcfg/

 [EMAIL PROTECTED] 12/20/03 9:33 AM 
I am current running Tomcat 5.0.16 standalone on Windows XP Pro.  I 
would like to install it as a Windows service.  All the documentation I 
can find dismisses it by saying that you are asked if you want it to run

it as a service by the installer.

The Tomcat 4.1 binary came as an .exe and had an installer; but the 
5.0.16 binaries are offered as a ZIP file without installer.  Any 
suggestions for how to install 5.0.16 as a Windows service?

Merrill Cornish

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



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



RE: External resources with a fallback

2003-12-20 Thread Simon Tardell
On Fri, 2003-12-19 at 19:13, Shapira, Yoav wrote:

 Howdy,
 
 I try to figure out how to make Tomcat 5 load resources externally to
 the webapp, and failing over to loading them from the webapp if they
 are
 not present in the external location. I figure I should subclass
 BaseDirContext (or implement DirContext straight away), setting it in
 the resources sub-element of the webapp's context.
 
 That's one way to go about it.
 
 Now, how can I get a handle to the default DirContext from my custom
 DirContext so that I can fail over?
 
 Two options:
 - Define a normal DirContext in addition to one of your own, and add
 code in your own custom one to look up other DirContexts in the service.
 - Have your own custom implementation initialize and configure a normal
 DirContext in addition to itself, use this internal DirContext if the
 external resource is not found.
 
 By normal above I mean one of the Tomcat-provided implementations of
 DirContext.



Yes, but I would have to get a handle to the containing ServletContext
(or the default DirContext for that ServletContext), since I don't know
the docBase of the application. How would I do that?


 Also, if I want to pass any parameters to my DirContext from web.xml,
 where do I find them? They don't seem to be passed in the
 constructor...?
 
 In the environment (Hashtable) parameter constructor.  It's setup via
 Digester.  You also want to take a look at
 org.apache.catalina.startup.NamingRuleSet.



What is the role of this class? Does it register things explicitly named
in web.xml in JNDI?


 This component was not designed for easy extensibility and is not
 trivial to implement.  It's not a common requirement (especially as it
 goes against the servlet specification spirit that webapps should be
 self-contained).
 
 This solution would be tied to tomcat internals just as much as your
 other proposition of customizing the ServletContext class.



 Perhaps you can outline your requirements and we can help you find an
 alternative design.



I am trying to make a themeable web app (a photo album as it happens)
where the themes consist of directories of JSPs and static resources.
Some of the themes are delivered with the web app, and some are user
supplied. The user supplied themes should persist when the web app is
upgraded, so they have to be external. The standard and user supplied
themes share name space (there is no way to tell them apart by name).

Simon


 Yoav Shapira




Re: tomcat mysql not working

2003-12-20 Thread Leandro Costa
Thanks for your answer, but i'm not the one that's developing the site.. it's a 
webpage that's hosted in our servers and i don't think that it'd be the right thing to 
tinker with those files.. The thing that i can't understand is why, in another 
machine, that is running tomcat4 (not installed by me), and j2sdk 1.3 runs ok.. I'm 
running tomcat5 and j2sdk 1.4

Does anyone have any idea ?

On Sat, 20 Dec 2003 08:07:57 -0800 (PST)
Al Likha [EMAIL PROTECTED] wrote:

 There is some source code template from 
 likha devcentre.  Download from likhasoftware.com
 
 Al
 
 - Original Message - 
 From: Leandro Costa [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, December 20, 2003 6:57 AM
 Subject: tomcat  mysql not working
 
 
  Hi there, i'm trying to get a tomcat server running
 with mysql connectivity. Tomcat is running ok, and
 i've downloaded the new Connector/J, and copied the
 .jar file to $CATALINA_HOME/common/lib. I'm running
 Tomcat 5.0.16. The other JSPs work ok, but the ones
 that contain a connection to mysql, fail with this
 message:
  
  snip
  
  HTTP Status 500 -
  
  type Exception report
  
  message
  
  description The server encountered an internal error
 () that prevented it from fulfilling this request.
  
  exception
  
  org.apache.jasper.JasperException
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  
  root cause
  
  java.lang.NullPointerException
 
 org.apache.jsp.jspCounter_jsp._jspService(jspCounter_jsp.java:83)
 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  
  note The full stack trace of the root cause is
 available in the Tomcat logs.
  Apache Tomcat/5.0.16
  
  /snip
  
  I don't know anything about Java, but i think that
 the 'NullPointerException' is because it can't get a
 handler to communicate with MySQL.
  The JSP file connects to MySQL like this:
  snip
  
  String host = localhost;
  String dbName = MYDBNAME; 
  String driver = org.gjt.mm.mysql.Driver;
  String username = MYUSERNAME;
  String password = MYPASSWORD;
  String url = jdbc:mysql:// + host + :3306/ +
 dbName;
  String table = counter;
  Connection connection = null; 
  Statement statement   = null; 
  Statement statement2   = null;
  ResultSet resultSet   = null;
  ResultSetMetaData resultsMetaData = null;
  String query = ;
  try{
Class.forName(driver) ;
connection = DriverManager.getConnection(url,
 username, password);
statement = connection.createStatement();
  
  /snip
  
  I've seen in some example configuration files that
 you can specify a DB, username, password, etc. But i
 don't know if i have to do it, because this JSP
 specifies all that..
  
  If someone could give me a helping hand, I would be
 more than grateful.
  
  Regards,
  Leandro Costa
  
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.yahoo.com/

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



=?iso-8859-1?Q?virtual hosting? anyone succeed??=

2003-12-20 Thread 29djeo
Has anyone succeeded in getting tomcat 5.0.16 set up for virtual hosting without using 
apache as a front end?

I'm trying to get one instance of tomcat to serve two domains on the same machine.

I have added two Host sections to server.xml and I see the following behavior when I 
access the sites from a browser running on the same host as tomcat:

http://localhost:8080 - default context
http://www.mydomain1.com - blank page
http://www.mydomain2.com - blank page
http://mydomain1:8080 - correctly runs the mydomain1 context
http://mydomain2:8080 - correctly runs the mydomain2 context

how do I get www.mydomain1.com and www.mydomain2.com to show the correct contexts?

from another host on my network the only context I can load is http://hostname:8080 to 
see the default context.  All other contexts like http://www.mydomain1.com and 
http://domain1.com:8080 result in an action cancelled from ineternet explorer.

Here is an excerpt from server.xml:

   Service name=Catalina
  Connector port=8080 maxThreads=150 minSpareThreads=25 
maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 
debug=0 connectionTimeout=2 disableUploadTimeout=true /
  Connector port=8009 enableLookups=false redirectPort=8443 debug=0 
protocol=AJP/1.3/
  Engine name=Catalina defaultHost=localhost debug=0
 Logger className=org.apache.catalina.logger.FileLogger 
prefix=catalina_log. suffix=.txt timestamp=true/
 Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 
resourceName=UserDatabase/
 Host name=localhost debug=0 appBase=webapps unpackWARs=true 
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger directory=logs 
 prefix=localhost_log. suffix=.txt/
 /Host
 Host name=mydomain1.com debug=0 appBase=webapps unpackWARs=true
Aliaswww.mydomain1.com/Alias
Logger className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=mydomain1. suffix=.log timestamp=true/
Context path= docBase=mydomain1 debug=0 reloadable=true/
 /Host
 Host name=mydomain2.com debug=0 appBase=webapps unpackWARs=true
Aliaswww.mydomain2.com/Alias
Logger className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=mydomain2. suffix=.log timestamp=true/
Context path= docBase=mydomain2 debug=0 reloadable=true/
 /Host
  /Engine
   /Service


Re: virtual hosting? anyone succeed?

2003-12-20 Thread Leandro Costa
Look at the logs, something is fubar'd, that's why you see a 'blank page'

On Sat, 20 Dec 2003 14:34:03 -0400
29djeo [EMAIL PROTECTED] wrote:

 Has anyone succeeded in getting tomcat 5.0.16 set up for virtual hosting without 
 using apache as a front end?
 
 I'm trying to get one instance of tomcat to serve two domains on the same machine.
 
 I have added two Host sections to server.xml and I see the following behavior when I 
 access the sites from a browser running on the same host as tomcat:
 
 http://localhost:8080 - default context
 http://www.mydomain1.com - blank page
 http://www.mydomain2.com - blank page
 http://mydomain1:8080 - correctly runs the mydomain1 context
 http://mydomain2:8080 - correctly runs the mydomain2 context
 
 how do I get www.mydomain1.com and www.mydomain2.com to show the correct contexts?
 
 from another host on my network the only context I can load is http://hostname:8080 
 to see the default context.  All other contexts like http://www.mydomain1.com and 
 http://domain1.com:8080 result in an action cancelled from ineternet explorer.
 
 Here is an excerpt from server.xml:
 
Service name=Catalina
   Connector port=8080 maxThreads=150 minSpareThreads=25 
 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 
 debug=0 connectionTimeout=2 disableUploadTimeout=true /
   Connector port=8009 enableLookups=false redirectPort=8443 debug=0 
 protocol=AJP/1.3/
   Engine name=Catalina defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger 
 prefix=catalina_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 
 resourceName=UserDatabase/
  Host name=localhost debug=0 appBase=webapps unpackWARs=true 
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
 Logger className=org.apache.catalina.logger.FileLogger 
 directory=logs  prefix=localhost_log. suffix=.txt/
  /Host
  Host name=mydomain1.com debug=0 appBase=webapps unpackWARs=true
 Aliaswww.mydomain1.com/Alias
 Logger className=org.apache.catalina.logger.FileLogger 
 directory=logs prefix=mydomain1. suffix=.log timestamp=true/
 Context path= docBase=mydomain1 debug=0 reloadable=true/
  /Host
  Host name=mydomain2.com debug=0 appBase=webapps unpackWARs=true
 Aliaswww.mydomain2.com/Alias
 Logger className=org.apache.catalina.logger.FileLogger 
 directory=logs prefix=mydomain2. suffix=.log timestamp=true/
 Context path= docBase=mydomain2 debug=0 reloadable=true/
  /Host
   /Engine
/Service
 

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



Re: Tomcat for RedHat Enterprise Linux

2003-12-20 Thread Oscar Carrillo
Any version that works on RH 7.3 should work on RH 7.3 Enterprise. You 
should install the latest 4.1.29 or the most recent tomcat5 version, if 
you wanted tomcat5.

Now, if you are asking what version is supported, then whatever RH 
supports is what is supported. That all depends on who you buy your 
support from.

Oscar
http://daydream.stanford.edu/tomcat/install_web_services.html

On Sat, 20 Dec 2003, Sarika Inamdar wrote:

 Hi,
  
 We are using tomcat 4.1.2 version with our application running on RedHat
 Linux 7.3. We are migrating our application from RH 7.3 to RedHat
 Enterprise Linux.
  
 I could not find anything on Jakarta site which mentions the tomcat
 version support for RedHat Enterprise, hence posting the question here.
  
 Could anyone please let me know which tomcat version is supported with
 RH Enterprise Linux.
  
 Thanks in Advance,
 Sarika
 
 


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



=?iso-8859-1?Q?Re: Re: virtual hosting? anyone succeed??=

2003-12-20 Thread 29djeo
what does this mean?

2003-12-20 14:43:11 StandardContext[/balancer]Exception starting filter BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:107)
at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
at org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:272)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:355)
at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:126)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3646)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4263)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:316)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:723)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)







   ---Original Message---
From: Leandro Costa [EMAIL PROTECTED]
Subject: Re: virtual hosting? anyone succeed?
Sent: 20 Dec 2003 14:53:14
   
 Look at the logs, something is fubar'd, that's why you see a 'blank page'
 
 
 
 On Sat, 20 Dec 2003 14:34:03 -0400
 
 29djeo  wrote:
 
 
 
  Has anyone succeeded in getting tomcat 5.0.16 set up for virtual hosting 
without using apache as a front end?
 
 
 
  I'm trying to get one instance of tomcat to serve two domains on the same 
machine.
 
 
 
  I have added two Host sections to server.xml and I see the following behavior 
when I access the sites from a browser running on the same host as tomcat:
 
 
 
  http://localhost:8080 - default context
 
  http://www.mydomain1.com - blank page
 
  http://www.mydomain2.com - blank page
 
  http://mydomain1:8080 - correctly runs the mydomain1 context
 
  http://mydomain2:8080 - correctly runs the mydomain2 context
 
 
 
  how do I get www.mydomain1.com and www.mydomain2.com to show the correct 
contexts?
 
 
 
  from another host on my network the only context I can load is 
http://hostname:8080 to see the default context.  All other contexts like 
http://www.mydomain1.com and http://domain1.com:8080 result in an action cancelled 
from ineternet explorer.
 
 
 
  Here is an excerpt from server.xml:
 
 
 
 
 
   
 
   
 
   
 
   
 
   
 
   
 
 
 
   
 
   
 
  www.mydomain1.com
 
 
 
 
 
   
 
   
 
  www.mydomain2.com
 
 
 
 
 
   
 
   
 
 
 
 
 
 
 
 -
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 
 For additional 

mod_jk handling all content (not just dynamic)?

2003-12-20 Thread Chris Boyce
I am running apache 1.3.29 with tomcat 4.1.29 and mod_jk 1.2.5.

We have had tremendous success with load testing a site that we are
migrating from Jrun to Tomcat.

Unfortunately, somewhere in our preparations, something has broke and
the site can no longer handle substantial load.  After checking the
mod_jk.log, I discovered that ALL requests (whether static or dynamic)
are showing up as such:

[Sat Dec 20 13:41:33 2003]  [jk_uri_worker_map.c (486)]: Into
jk_uri_worker_map_t::map_uri_to_worker

[Sat Dec 20 13:41:33 2003]  [jk_uri_worker_map.c (500)]: Attempting to
map URI '/admin/something.html'

[Sat Dec 20 13:41:33 2003]  [jk_uri_worker_map.c (618)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match


Our jk config has been working fine thus far and can find all of our
jsp's and servlets.  But now it seems that even static content and
images are showing up in mod_jk.log as shown above.

Even if I comment out all JkMounts in httpd.conf, this problem occurs. 
Is it really a problem?  It seems that jk should not even be seeing
requests for static content.

thank you for any help you can provide.


Chris



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



Tomcat 5 Clustering

2003-12-20 Thread matthew . rapoport
Hi All,

I am running Tomcat 5 and I would like to implement clustering between 2 servers.  I 
followed the instructions given at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html 

When I uncomment the cluster tag in server.xml and the replication valve (as per the 
instructions) I got the following error upon starting up Tomcat.  Does anyone know 
why???

Thank You,

Matt

[ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError: 
java/lang/CharSequencejava.lang.NoClassDefFoundError: java/lang/
CharSequence
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at 
org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:112)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

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

RE: JNDI comp namespace - Tomcat Developers Please Read

2003-12-20 Thread Tony Colson
Hi,

Just to close up a few issues, and I am sorry if this email will offend
anybody, but I don't apologize for writing it:
 
 I responded to one of your messages saying there might be a startup
 error with one of your contexts causing this behavior.
 (http://marc.theaimsgroup.com/?l=tomcat-userm=107149495515920w=2)
But
 you never replied to that.  Instead, you enter this issue into
Bugzilla,
 and then ask tomcat developers to read your message.

Ok, perhaps you have a point, but I didn't want to burden the list
anymore; After asking Tomcat developers to chime in I decided to move it
over to Bugzilla.  I did check what you suggested (actually before you
suggested it).  I didn't see anything wrong with it.  However, that
doesn't mean there wasn't; I find the documentation for Tomcat leaves
much to be desired, even in books.

I have not found any type of instruction on the Context elements,
rather just simple declarations of what they are and their attributes.
Most of the details I know about these elements have come from trial and
error, so I hope you'll forgive me for being inexperienced.

 autoDeploy has nothing to do with JNDI.

Agreed.  That is why it is a bug that it does affect it.  This issue was
confirmed by another developer who privately emailed me about it.
Apparently it still exists in Tomcat 5, the developers know about it but
have not committed to fixing it, and this other developer cannot upgrade
to Tomcat 5 because of it (He is still using Tomcat 3 where autoDeploy
does not break JNDI).

 If you even want someone to look at this, you will need to provide a
 test case (e.g. WAR files, even if they're small dummy ones that don't
 do anything) so that we can try to reproduce your bug.  Needless to
say,
 we don't have and don't care to have your actual webapps.  Just have
one
 servlet that looks up a String via env-entry JNDI or something like
 that.

Ok.  Perhaps you have another point where I could have provided a
runtime war to illustrate this, however in my first email on this topic
I included the code snippet which illustrated this and subsequently
server.xml:

  DataSource ds = (DataSource)initialContext.lookup(
  java:comp/env/jdbc/mydb );


 Finally, even if this were an issue as you describe, it's not major,
but
 minor, as this is a rarely used configuration (multiple Service) in
the
 not-latest (4.1.15) version of a no-longer-developed branch (4.1).

First, my philosophy is that if Tomcat is not going to support a release
it should not be available on the website as a current release:
4.1.29.zip is available on the same page and section as 5.1.zip and
there was not any indication that it was no longer supported, outside of
implicitly assuming so.

Second, since I can't find any documentation saying that multiple
Service tags is not the intended use of Tomcat nor any metrics saying
that it is rarely used, I feel perfectly free and right to report it
with the severity that it affects me.  If a more learned Tomcat
developer wants to downgrade it to minor, I have no problem with that,
but I don't appreciate getting my chops busted by another user on a list
like this.


As far as I am concerned, this issue is now closed and I got the
information I needed.  Thanks to all who productively contributed (Yes,
even you Yoav ;)).

Thanks and Merry Christmas to all,

Tony

 

-Original Message-
From: Shapira, Yoav 
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read


Howdy,
See, it's messages like these that annoy me.  And on a Friday, too.

I responded to one of your messages saying there might be a startup
error with one of your contexts causing this behavior.
(http://marc.theaimsgroup.com/?l=tomcat-userm=107149495515920w=2)  But
you never replied to that.  Instead, you enter this issue into Bugzilla,
and then ask tomcat developers to read your message.

autoDeploy has nothing to do with JNDI.

If you even want someone to look at this, you will need to provide a
test case (e.g. WAR files, even if they're small dummy ones that don't
do anything) so that we can try to reproduce your bug.  Needless to say,
we don't have and don't care to have your actual webapps.  Just have one
servlet that looks up a String via env-entry JNDI or something like
that.

Finally, even if this were an issue as you describe, it's not major, but
minor, as this is a rarely used configuration (multiple Service) in the
not-latest (4.1.15) version of a no-longer-developed branch (4.1).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 3:45 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read

I have filed this bug with Tomcat under Bugzilla as bug #25508.



-Original Message-
Sent: Saturday, December 13, 2003 12:09 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read


I 

how to uri map virtual host

2003-12-20 Thread javen fang
Hi all:

I configure iis5 + tomcat5, in workers2.properties :

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
host=localhost
port=8009

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/servlet-examples/*]
group=ajp13:localhost:8009

[uri:/displaytag/*.]
context=/displaytag   ///default is localhost?
group=ajp13:localhost:8009

[uri:www.vhost1.com]
group=ajp13:localhost:8009
**here. how to config
my win2000 server serve several virtual host.  tomcat
port is 8080, iis port is 80. tomcat's defaultHost is
localhost, and then have several virtual host.

the sub context displaytag/servlet-examples visit
successfully! And now I want to visit these hosts
through iis. 


Another Q is, I config
[logger.file:5]
level=DEBUG
file=d:/tomcat50/logs/jk2.log
why debug info have not inserted into this file.


thanks!!!

javen

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



NoClassDefFoundError: Digester

2003-12-20 Thread 29djeo
what does this mean?

2003-12-20 14:43:11 StandardContext[/balancer]Exception starting filter BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:107)
at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
at org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:272)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:355)
at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:126)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3646)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4263)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:316)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:723)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)


Re: JNDI comp namespace - Tomcat Developers Please Read

2003-12-20 Thread Bill Barker

Tony Colson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 Just to close up a few issues, and I am sorry if this email will offend
 anybody, but I don't apologize for writing it:

  I responded to one of your messages saying there might be a startup
  error with one of your contexts causing this behavior.
  (http://marc.theaimsgroup.com/?l=tomcat-userm=107149495515920w=2)
 But
  you never replied to that.  Instead, you enter this issue into
 Bugzilla,
  and then ask tomcat developers to read your message.

 Ok, perhaps you have a point, but I didn't want to burden the list
 anymore; After asking Tomcat developers to chime in I decided to move it
 over to Bugzilla.  I did check what you suggested (actually before you
 suggested it).  I didn't see anything wrong with it.  However, that
 doesn't mean there wasn't; I find the documentation for Tomcat leaves
 much to be desired, even in books.

 I have not found any type of instruction on the Context elements,
 rather just simple declarations of what they are and their attributes.
 Most of the details I know about these elements have come from trial and
 error, so I hope you'll forgive me for being inexperienced.

  autoDeploy has nothing to do with JNDI.

 Agreed.  That is why it is a bug that it does affect it.  This issue was
 confirmed by another developer who privately emailed me about it.
 Apparently it still exists in Tomcat 5, the developers know about it but
 have not committed to fixing it, and this other developer cannot upgrade
 to Tomcat 5 because of it (He is still using Tomcat 3 where autoDeploy
 does not break JNDI).

  If you even want someone to look at this, you will need to provide a
  test case (e.g. WAR files, even if they're small dummy ones that don't
  do anything) so that we can try to reproduce your bug.  Needless to
 say,
  we don't have and don't care to have your actual webapps.  Just have
 one
  servlet that looks up a String via env-entry JNDI or something like
  that.

 Ok.  Perhaps you have another point where I could have provided a
 runtime war to illustrate this, however in my first email on this topic
 I included the code snippet which illustrated this and subsequently
 server.xml:

   DataSource ds = (DataSource)initialContext.lookup(
   java:comp/env/jdbc/mydb );


  Finally, even if this were an issue as you describe, it's not major,
 but
  minor, as this is a rarely used configuration (multiple Service) in
 the
  not-latest (4.1.15) version of a no-longer-developed branch (4.1).

 First, my philosophy is that if Tomcat is not going to support a release
 it should not be available on the website as a current release:
 4.1.29.zip is available on the same page and section as 5.1.zip and
 there was not any indication that it was no longer supported, outside of
 implicitly assuming so.


supported != developed.  For example:  TC 3.3.x is fully supported (i.e.
bugs will be fixed), but it isn't really developed at the moment (i.e. new
features are unlikely to be added).

 Second, since I can't find any documentation saying that multiple
 Service tags is not the intended use of Tomcat nor any metrics saying
 that it is rarely used, I feel perfectly free and right to report it
 with the severity that it affects me.  If a more learned Tomcat
 developer wants to downgrade it to minor, I have no problem with that,
 but I don't appreciate getting my chops busted by another user on a list
 like this.


News flash:  Yoav *is* a Tomcat developer.  Check the tomcat-dev archives,
and you will find plenty of commit messages from him (probably more than you
will find for me lately :).


 As far as I am concerned, this issue is now closed and I got the
 information I needed.  Thanks to all who productively contributed (Yes,
 even you Yoav ;)).

 Thanks and Merry Christmas to all,

 Tony



 -Original Message-
 From: Shapira, Yoav
 Subject: RE: JNDI comp namespace - Tomcat Developers Please Read


 Howdy,
 See, it's messages like these that annoy me.  And on a Friday, too.

 I responded to one of your messages saying there might be a startup
 error with one of your contexts causing this behavior.
 (http://marc.theaimsgroup.com/?l=tomcat-userm=107149495515920w=2)  But
 you never replied to that.  Instead, you enter this issue into Bugzilla,
 and then ask tomcat developers to read your message.

 autoDeploy has nothing to do with JNDI.

 If you even want someone to look at this, you will need to provide a
 test case (e.g. WAR files, even if they're small dummy ones that don't
 do anything) so that we can try to reproduce your bug.  Needless to say,
 we don't have and don't care to have your actual webapps.  Just have one
 servlet that looks up a String via env-entry JNDI or something like
 that.

 Finally, even if this were an issue as you describe, it's not major, but
 minor, as this is a rarely used configuration (multiple Service) in the
 not-latest (4.1.15) version of a no-longer-developed branch (4.1).