Re: tomcat5, apache2, mod_jk2 and mod_userdir

2004-06-23 Thread Renaldo VonTeknika
Renaldo VonTeknika wrote:
I don't seem to be able to get tomcat5, apache2, mod_jk2 and 
mod_userdir working together entirely. Everything works fine for the 
most part as users can serve jsp pages from their directories and 
tomcat recognizes each of their contexts. But I cannot get  the uri 
host/~user/servlet/HelloWorld passed to tomcat with 2 wildcards (*).

Here is an example of what the problem is using workers2.properties;
If I try to do what I think should work;
[uri:/~*/servlet/*]
info=UserDir worker=ajp13:localhost:8009
It will not pass to tomcat and I recieve an apache 404 error instead 
of the servlet defined by the invoker (or a tomcat 404 error if the 
invoker didn't exist)

If I try;
[uri:/~user/servlet/*]
info=UserDir worker=ajp13:localhost:8009
or
[uri:/~*/servlet/HelloWorld]
info=UserDir worker=ajp13:localhost:8009
It has no problem and everything works as it should, but it seems as 
thou it cannot deal with 2 wildcards if one is trailing the uri

Anybody have any ideas or know what I am doing wrong?
-RV

Still having the same issues, does no one know? All I would like to see 
happen

is have apache coexist with mod_jk2 for ~user/public_html and servlets. Any 
help would be great.

-RV

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


Apache2, Tomcat5 and mod_jk2 configuration problems

2004-06-23 Thread Ryan McConigley
Greetings,
	I have a problem.  I am trying to get Tomcat (5.0.25), Apache (2.0.49) and 
mod_jk2 (2.0.4) all to talk to each other under RedHat 9.0.

	So far I can get Apache up and working on port 80 and Tomcat works fine on 
port 8080.  However, my users want to be able to use .jsp pages on their 
virtual hosts.

	I did have it working fine on the old machine we had (Redhat 7.3, Apache 
1.3, Tomcat 4 and mod_jk) but we upgraded and now its not working.

	One thing I have noticed is when Tomcat starts up there is the message:
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/local/httpd-2.0.49/modules/jkjni.so: 
/usr/local/httpd-2.0.49/modules/jkjni.so: undefined symbol: apr_md5_final
	
	I assumed I was getting this because Apache was not compilied in with apr 
support, so I recompiled it with --with-apr and --with-apr-util.  Apache 
still works, but when I tried to recompile mod_jk2 it tells me now that my 
apxs can not be found, even though prior it was finding it ok and its quite 
clearly in the location specified.

	I'm not sure if that is a critical error or not or how to overcome it.  I 
have been trying different compile options, but still not getting much luck.

	When you click on a .jsp page, all that happens is the browser just sits 
there continually loading.  In the tomcat logs you get a line which says 
INFO: No next and thats it.

	Can anyone shed some light on my problem, before I do physical harm to the 
box in question.  The configuration files are as follows:   Also, can I 
have .jsp files enabled for some virtual servers and not for others, or is 
it an all or nothing affair?

--worker2.properties
# workers2.properties
# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard.  Required for reconfiguration and status with multiprocess 
servers
file=/usr/local/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

#UNIX domain socket
[channel.un:/usr/local/tomcat/work/jk2.socket]
tomcatId=localhst:8009
debug=0
# define the worker
#[ajp13:/usr/local/tomcat/work/jk2.socket]
#chanel=channel.un:/usr/local/tomcat/work/jk2.socket
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Announce a status worker
pstatus:status]
info=Status worker.  Displays runtime information.
[uri:/jkstatus/*]
group=status:status
# Uri mapping
[uri:/examples/*]
[uri:projects.csse.uwa.edu.au/*.jsp]
worker=ajp13:localhost:8009
[uri:perth-agentcity.csse.uwa.edu.au/*.jsp]
worker=ajp13:localhost:8009

---jk2_mod.conf (included in the apache.conf file)--
# Sample mod_jk2.conf  08-Feb-2004, located at:
# http://www.gknw.com/development/apache/docs/win32/mod_jk2/mod_jk2x.conf
#
# Load the mod_jk2 module
#
LoadModule jk2_module modules/mod_jk2.so
IfModule mod_jk2.c
#---
# Set the Apache2 logger level
#---
#
JkSet2 logger level debug
#---
# Set the alternate log file
#---
#
JkSet2 logger.file:0 file ${serverRoot}/logs/jk2.log
JkSet2 logger.file:0 level debug
#---
# Set the scoreboard file
#---
#
JkSet2 shm: file ${serverRoot}/logs/jk2.shm
JkSet2 shm: size 1048576
#---
# Where to find the workers2.properties file
#---
#
#JkSet config.file ${serverRoot}/conf/workers2.properties
#---
# Alternatively setup the workers here
#---
#
JkSet2 channel.socket:localhost:8009 info Ajp13 forwarding over socket
JkSet2 status: info Status worker, displays runtime information
JkSet2 workerEnv: logger logger.file:0
#---
# Configure the /jkstatus handler
#---
#
Location /jkstatus
JkUriSet group status:
JkUriSet info Map the /jkstatus handler to the Web server uri space
/Location
#---
# Configure Tomcat Example Applications
#---
#
Location /examples
JkUriSet group lb:lb
JkUriSet info Map the Tomcat examples to the Web server uri space
/Location
#---
# Configure Tomcat Documentation
#---
#
Location /tomcat-docs
JkUriSet group lb:lb
JkUriSet info Map the Tomcat docs to the Web server uri space

RE: mod_jk install problem

2004-06-23 Thread Kommuru, Bhaskar
Sorry friend,
I dont have any clue on issue. I think you should also check what are your
gcc, make, perl versions and if they are suggested versions to comple your
jk.

My problem was with my 'make' version. It was a bit older and able to
understand makefile grammer.

Good luck.

-Original Message-
From: Graeme [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 7:50 PM
To: Tomcat Users List
Subject: Re: mod_jk install problem


Thank you to everyone who replied to my post.

BK, I've got apache installed an running.  The version I'm using is:
Apache/2.0.40 Server

I installed mod_jk from
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/ , the file I
downloaded is:  jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz

After doing ./configure --with-apxs=/usr/sbin/apxs  I tried issuing the
make command I got this:

 ../common/jk_ajp12_worker.lo ../common/jk_connect.lo
../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo
../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo
../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo
../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo
../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_ajp_common.lo
../common/jk_context.lo
i386-redhat-linux-gcc: ../common/jk_ajp12_worker.lo: No such file or
directory
i386-redhat-linux-gcc: ../common/jk_connect.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_msg_buff.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_util.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_ajp13.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_pool.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_worker.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_ajp13_worker.lo: No such file or
directory
i386-redhat-linux-gcc: ../common/jk_lb_worker.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_sockbuf.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_map.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_uri_worker_map.lo: No such file or
directory
i386-redhat-linux-gcc: ../common/jk_ajp14.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_ajp14_worker.lo: No such file or
directory
i386-redhat-linux-gcc: ../common/jk_md5.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_ajp_common.lo: No such file or directory
i386-redhat-linux-gcc: ../common/jk_context.lo: No such file or directory
make[1]: *** [mod_jk.la] Error 1
make[1]: Leaving directory
`/usr/src/jakarta-tomcat-connectors-jk-1.2.5-src/jk/native/apache-2.0'
make: *** [all-recursive] Error 1
[EMAIL PROTECTED] native]#


As you will see in my initial post, these missing files appear to be in the
apache-2.0 directory.

Do you think I should copy them to the directory it expects to find them and
try issuing make again, or do something else?


Cheers in advance,

Graeme :)




- Original Message - 
From: Kommuru, Bhaskar [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, June 21, 2004 12:04 PM
Subject: RE: mod_jk install problem


 I have struggled/managed before to compile on solaris8. but not on
Redhat9.
 What is you mod_jk version?
 I remember i have changed something like.. apx path .configure file as i
 found it hardcoded there. I have specified the apx-path to apache
 installation directory (usr/local/apache2/apxs).
 Have you installed your apache as well? If so, what is the version?
 Let me know, hope we can sort it out!
 BK

 -Original Message-
 From: Graeme [mailto:[EMAIL PROTECTED]
 Sent: Sunday, June 20, 2004 7:45 PM
 To: Tomcat Users List
 Subject: mod_jk install problem


 Afternoon all, I'm trying to install mod_jk and I can't create the
mod_jk.so
 file.  I think the problem is something to do with:

 need to check for Perl first, apxs depends on it...checking for perl...
 /usr/bin/perl
 Use of uninitialized value in concatenation (.) or string at
/usr/sbin/apxs
 line 262.

 I'm using Redhat 9.

 Anyone got any ideas?


 [EMAIL PROTECTED] native]# ./configure --with-apxs=/usr/sbin/apxs
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking build system type... i686-pc-linux-gnu
 checking host system type... i686-pc-linux-gnu
 checking for style of include used by make... GNU
 checking for gcc... gcc
 checking for C compiler default output... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ANSI C... none needed
 checking dependency style of gcc... none
 checking for ld used by GCC... /usr/bin/ld
 checking if the 

resource error was ServletException

2004-06-23 Thread A Leg
Hi
To solve the Servlet Exception, I found detailed error in :
logs/jwsdp_log.2004-06-23.txt
2004-06-23 07:25:14 Servlet /Mfg_Scm threw load()
exception
javax.servlet.ServletException:
net.jini.core.constraint.ConnectionRelativeTime
at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
Now servlet load, discover my services etc.
But now I have a resource error.
Any help welcome.
Andre
When I load My web page I get :
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error
() that prevented it from fulfilling this request.
exception
java.util.MissingResourceException: Can't find bundle
for base name LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
at
java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
at
org.compiere.mfg_scm.mfg_Servlet.controller.ControllerServlet.doGet(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
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.security.SecurityUtil$1.run(SecurityUtil.java:254)
at java.security.AccessController.doPrivileged(Native
Method)
at
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:265)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:184)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:513)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:499)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
at java.lang.Thread.run(Thread.java:534)

A Leg wrote:
Hi
Yes I recompile all 

Re: Tomcat 5.0.16 behind SSL Accelerator - 2nd post

2004-06-23 Thread Harry Mantheakis
Hello


 the easiest is to just use relative links...


I also find the HTML 'BASE' header tag very useful in this respect.

Setting the BASE tag guarantees the relative links work, and all the links
are relative to the same base directory, which makes things a little easier.

Setting the BASE tag itself with a custom tag (as suggested by Filip) allows
me to switch the whole application from HTTP to HTTPS by simply changing one
application attribute.

Good luck!

Harry Mantheakis
London, UK


 how are you creating your links right now, the easiest is to just use relative
 links, like
 
 a href=/myapp/some.jspA Link/a
 here the browser will connect up using same protocol as the data came down on.
 
 or you can create your own tag, like
 a href=app:MyLink href=/myapp/some.jsp/A link using tag/a
 
 Filip
 
 - Original Message -
 From: Adrian Klingel [EMAIL PROTECTED]
 To: Tomcat User List [EMAIL PROTECTED]
 Sent: Tuesday, June 22, 2004 8:20 AM
 Subject: Tomcat 5.0.16 behind SSL Accelerator - 2nd post
 
 
 I searched for this in the archives at mikal.org, and only found the
 question and no answer.
 
 I have Tomcat 5.0.16 behind a hardware SSL accelerator box.  The links in my
 webapps of course refer back to HTTP://myserver.com/myapp, but I of course
 want them to be rewritten as HTTPS://mysslaccelertor:port/myapp.
 
 Is there a simple configuration change in the server.xml that I can make in
 order to fix this?
 
 Thanks,
 Adrian Klingel
 
 
 -
 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]
 


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



Tomcat4 RMI class loading bermuda triangle

2004-06-23 Thread Guillaume Boutard
Hi every body,
I'm trying to fix this problem for one week and i'm turning crazy right now.
I have this servlet working perfectly, finding every package i put in 
/var/tomcat4/shared/lib except that it doesn't find my RMIServer class 
for casting
i get a
[java.lang.ClassNotFoundException] - myRMIServerClass
  org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source)
  org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown Source)
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  java.lang.Class.forName0(Native Method)
  java.lang.Class.forName(Class.java:141)

all classes are in the jar with the stub and skeleton (i tried to put 
classes in WEB_INF/classes of my servlet but same problem... so i guess 
this is not the real problem)

I have set in catalina policy file a:
grant {
   permission java.security.AllPermission;
};
to be sure there's no problem of security. i changed the init.d/tomcat4 
script to add -security to the starting line to be sure that it is 
started the right way

I used to try the same code with tomcat 3 and i changed to tomcat 4 
because of a rmi jni problem reported on mailing lists (i spent so much 
time on tomcat4 that i can't remember what was the previous one) but i 
can't even get that far with tomcat4

My version is a rpm 4.2.1 for Red Hat
Does someone understand what's going on
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat crash ... unexpected exception

2004-06-23 Thread bastien.devos
Hi,
I have serious problems with my web aplpication (based on Apache/Tomcat), I'm a system guy 
and I'd like at least to identify where the problem is situated: system, memory, db, 
application itself, etc., but I'm not related at all to JSP or Java stuff ...

Well, here is my situation :
Apache 2.0.49 (compiled --with-mpm=worker)
Tomcat 4.1.30
mod_jk 2.0.2
Java SDK 1.4.2_02
Apache is configured to serve all requests (static) except .jsp which are transmitted 
to
tomcat through mod_jk2.
Here below is a copy of the error in catalina.out. Before the unexpected exception you
see client transactions, labeled with ITS*, meaning clients navigate through
menus in the app, etc., then you see the exception, then somebody (huh ... me) restart all 
the stuff and it continues with normal transactions ...

the error (sorry for length) :
-
(... transactions ...)
[2004-06-16 22:33:51] ITY2(0) 20ms
[2004-06-16 22:33:51] ITS6(0) 82ms
[2004-06-16 22:33:51] ITHZ(0) 16ms
[2004-06-16 22:33:51] ITA3(0) 144ms
[2004-06-16 22:33:51] ITHZ(0) 6ms
[2004-06-16 22:33:51] ITS3(0) 260ms
[2004-06-16 22:33:51] ITS3(0) 169ms
An unexpected exception has been detected in native code outside the VMn.
Unexpected Signal : 11 occurred at PC=0x7EF499A4
Function=[Unknown. Nearest: madvise+0xC0]
Library=/usr/lib/64/libc.so.1
Current Java thread:
at appweb.NativeCall.Call_C_tpcall(Native Method)
at appweb.NativeCall.tp_call(NativeCall.java:58)
at 
appweb.AppwebDispatcher$ObjectApartment.get_result(AppwebDispatcher.java:345)
at appweb.AppwebDispatcher$ObjectApartment.run(AppwebDispatcher.java:306)
Dynamic libraries:
0x1 /aplication/java/bin/sparcv9/java
0x7f30  /usr/lib/64/libthread.so.1
0x7f50  /usr/lib/64/libdl.so.1
0x7ef0  /usr/lib/64/libc.so.1
0x7d40  /aplication/j2sdk1.4.2_04/jre/lib/sparcv9/server/libjvm.so
0x7d20  /usr/lib/64/libCrun.so.1
0x7cf0  /usr/lib/64/libsocket.so.1
0x7cd0  /usr/lib/64/libnsl.so.1
0x7cb0  /usr/lib/64/libm.so.1
0x7c90  /usr/lib/64/libsched.so.1
0x7ed0  /usr/lib/64/libw.so.1
0x7c50  /usr/lib/64/libmp.so.2
0x7c20  
/aplication/j2sdk1.4.2_04/jre/lib/sparcv9/native_threads/libhpi.so
0x7be0  /aplication/j2sdk1.4.2_04/jre/lib/sparcv9/libverify.so
0x7bc0  /aplication/j2sdk1.4.2_04/jre/lib/sparcv9/libjava.so
0x7b90  /aplication/j2sdk1.4.2_04/jre/lib/sparcv9/libzip.so
0xfffdae80  /aplication/j2sdk1.4.2_04/jre/lib/sparcv9/libnet.so
0xfffdac90  
/aplication/thalerv1.4/webapps/appweb/nativecall/libnativecall.so
0xfffdac70  /tuxweb/lib/libwsc.so.71
0xfffdac50  /tuxweb/lib/libbuft.so.71
0xfffdac20  /tuxweb/lib/libgpnet.so.71
0xfffdac00  /tuxweb/lib/libfml.so.71
0xfffdabe0  /tuxweb/lib/libfml32.so.71
0xfffdabb0  /tuxweb/lib/libengine.so.71
0xfffdab90  /usr/lib/64/libpthread.so.1
0xfffdab60  /usr/lib/64/librt.so.1
0xfffdab40  /usr/lib/64/libaio.so.1
0xfffdaa70  /tuxweb/lib/registry.so
Heap at VM Abort:
Heap
 def new generation   total 1158784K, used 1150571K [0xfffdb380,
0xfffdfc5e, 0xfffe3380)
  eden space 1123712K,  54% used [0xfffdb380, 0xfffdf795afc0,
0xfffdf816)
  from space 35072K, 100% used [0xfffdf816, 0xfffdfa3a, 
0xfffdfa3a)
  to   space 35072K,   0% used [0xfffdfa3a, 0xfffdfa3a, 
0xfffdfc5e)
 tenured generation   total 2387632K, used 1880586K [0xfffe3380,
0xfffec53ac000, 0x3380)
   the space 2387632K,  78% used [0xfffe3380, 0xfffea6482b68,
0xfffea6482c00, 0xfffec53ac000)
 compacting perm gen  total 16384K, used 13651K [0x3380, 
0x3480,
0x3780)
   the space 16384K,  83% used [0x3380, 0x34554d08,
0x34554e00, 0x3480)
Starting service Tomcat
Apache Tomcat/4.1.30
Jun 17, 2004 12:28:17 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jun 17, 2004 12:28:17 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/116  config=null
Jun 17, 2004 12:28:17 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8010
Jun 17, 2004 12:28:17 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/6  config=null
Dynamic Library nativecall loaded
Dispatcher constructor
WSCLIENTS=5
THREADSPERCLIENTS=3
Thread[Thread-13,5,main]: Starting...
Thread[Thread-14,5,main]: Starting...
Thread[Thread-15,5,main]: Starting...
Thread[Thread-16,5,main]: Starting...
Thread[Thread-17,5,main]: Starting...
Thread[Thread-18,5,main]: Starting...
Thread[Thread-19,5,main]: Starting...

RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt

For this part of the error you have to look at at the application.

appweb.NativeCall looks like a class that is an interfaces to a 
native (C) library. The error is thrown in that native library.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 11:09 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat crash ... unexpected exception
 

 An unexpected exception has been detected in native code 
 outside the VMn.
 Unexpected Signal : 11 occurred at PC=0x7EF499A4
 Function=[Unknown. Nearest: madvise+0xC0]
 Library=/usr/lib/64/libc.so.1
 
 Current Java thread:
  at appweb.NativeCall.Call_C_tpcall(Native Method)
  at appweb.NativeCall.tp_call(NativeCall.java:58)
  at 

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



RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt

Btw. appweb.NativeCall doesn't look like a part of tomcat
so it most likely the application or an additional library
that is used by the application.

 -Original Message-
 From: Ralph Einfeldt 
 Sent: Wednesday, June 23, 2004 11:15 AM
 To: Tomcat Users List
 Subject: RE: tomcat crash ... unexpected exception
 
 For this part of the error you have to look at at the application.
 
 appweb.NativeCall looks like a class that is an interfaces to a 
 native (C) library. The error is thrown in that native library.
 

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



AJP13 connection problem

2004-06-23 Thread Ashish-Kumar . Balyan
Hi,

I have Apache and Tomcat running on two different SUN machines.
I get following error on trying to access a servlet.
Though things work fine if Tomcat and Apache are running on same machine.


[Tue Jun 22 15:09:01 2004]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 22 15:09:01 2004]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/servlet/s4'
[Tue Jun 22 15:09:01 2004]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match loadbalancer
- /servlet/
[Tue Jun 22 15:09:01 2004]  [jk_worker.c (132)]: Into
wc_get_worker_for_name loadbalancer
[Tue Jun 22 15:09:01 2004]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Tue Jun 22 15:09:01 2004]  [jk_lb_worker.c (527)]: Into
jk_worker_t::get_endpoint
[Tue Jun 22 15:09:01 2004]  [jk_lb_worker.c (310)]: Into
jk_endpoint_t::service
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1116)]: Into
jk_endpoint_t::service
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb
- Done
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (132)]: Into jk_open_socket
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (139)]: jk_open_socket, try to
connect socket = 7
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (148)]: jk_open_socket, after
connect ret = -1
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (626)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong port.
Failed errno =
 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (874)]: Error connecting to
the Tomcat process.
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1190)]: sending request to
tomcat failed in send loop. err=0
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (132)]: Into jk_open_socket
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (139)]: jk_open_socket, try to
connect socket = 7
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (148)]: jk_open_socket, after
connect ret = -1
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (626)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong port.
Failed errno =
 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (874)]: Error connecting to
the Tomcat process.
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1190)]: sending request to
tomcat failed in send loop. err=1
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (132)]: Into jk_open_socket
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (139)]: jk_open_socket, try to
connect socket = 7
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (148)]: jk_open_socket, after
connect ret = -1
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (626)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong port.
Failed errno =
 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (874)]: Error connecting to
the Tomcat process.
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1190)]: sending request to
tomcat failed in send loop. err=2
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1198)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong port.
Failed errno
= 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1388)]: Into
jk_endpoint_t::done, closing connection 0
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (561)]: In
jk_endpoint_t::ajp_close_endpoint
[Tue Jun 22 15:09:01 2004]  [jk_lb_worker.c (369)]: In
jk_endpoint_t::service, recoverable error... will try to recover on other
host
[Tue Jun 22 15:09:01 2004]  [jk_lb_worker.c (373)]: lb: All tomcat
instances failed, no more workers left.
[Tue Jun 22 15:09:01 2004]  [jk_lb_worker.c (380)]: In
jk_endpoint_t::service: NULL Parameters
[Tue Jun 22 15:09:01 2004]  [jk_lb_worker.c (389)]: Into
jk_endpoint_t::done



Regards
-AB



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



Re: Problem with Tomcat 4.1.30, IIS, isapi_redirect.dll and POSTs

2004-06-23 Thread Leif Mortenson
For the archives. I got no replies to this. But I was able to correct this
(Bproblem by switching over to using jk2 rather than jk. That means using
(Bisapi_redirector2.dll rather than isapi_redirect.dll.
(B
(BThis was not at all clear from the online docs. Everything points to using
(Bisapi_redirect.dll for connecting via IIS.
(B
(BCheers,
(BLeif
(B
(BLeif Mortenson wrote:
(B
(BI have been using version 4.1.18 along with the newest isapi_redirect.dll at
(Bthe time it was installed for the past year or. Recently to resolve an
(Bunrelated problem we upgraded to Tomcat 4.1.30 and isapi_redirect.dll 1.2.5
(Band have been testing things out on our test servers.
(B
(BThis was working for me for a day or two. Just before I went to deploy this
(Bonto our live servers, I decided to do one last test. For some reason,
(Ball of
(Bthe pages which are requested using a POST, hang for a couple minutes
(Bbefore returning an error.
(B
(BReviewing the log from Tomcat, I found the following message:
(B
(BJun 21, 2004 6:42:33 PM org.apache.jk.common.HandlerRequest invoke
(BSEVERE: Error decoding request
(Bjava.io.IOException
(Bat org.apache.jk.common.JkInputStream.receive(JkInputStream.java:294)
(Bat
(Borg.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:537)
(Bat org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:373)
(Bat org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
(Bat
(Borg.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
(Bat org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
(Bat
(Borg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
(Bat java.lang.Thread.run(Thread.java:536)
(B12 34 01 c1 02 04 00 08 48 54 54 50 2f 31 2e 31 | .4.?HTTP/1.1
(B00 00 18 2f 6b 61 6e 73 68 69 2f 6a 5f 73 65 63 | .../kanshi/j_sec
(B75 72 69 74 79 5f 63 68 65 63 6b 00 00 0c 31 39 | urity_check...19
(B32 2e 31 36 38 2e 31 2e 33 31 00 00 0c 31 39 32 | 2.168.1.31...192
(B2e 31 36 38 2e 31 2e 33 31 00 00 07 6f 72 6c 61 | .168.1.31...orla
(B6e 64 6f 00 00 50 00 00 0b a0 01 00 57 69 6d 61 | ndo..P...?..Wima
(B67 65 2f 67 69 66 2c 20 69 6d 61 67 65 2f 78 2d | ge/gif, image/x-
(B78 62 69 74 6d 61 70 2c 20 69 6d 61 67 65 2f 6a | xbitmap, image/j
(B70 65 67 2c 20 69 6d 61 67 65 2f 70 6a 70 65 67 | peg, image/pjpeg
(B2c 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 2d | , application/x-
(B73 68 6f 63 6b 77 61 76 65 2d 66 6c 61 73 68 2c | shockwave-flash,
(B20 2a 2f 2a 00 a0 04 00 02 6a 61 00 a0 06 00 0a | */*.?...ja.?...
(B4b 65 65 70 2d 41 6c 69 76 65 00 a0 0b 00 07 6f | Keep-Alive.?...o
(B72 6c 61 6e 64 6f 00 a0 0d 00 1f 68 74 74 70 3a | rlando.?...http:
(B2f 2f 6f 72 6c 61 6e 64 6f 2f 6b 61 6e 73 68 69 | //orlando/kanshi
(B2f 6c 6f 67 69 6e 2e 6a 73 70 00 a0 0e 00 32 4d | /login.jsp.?..2M
(B6f 7a 69 6c 6c 61 2f 34 2e 30 20 28 63 6f 6d 70 | ozilla/4.0 (comp
(B61 74 69 62 6c 65 3b 20 4d 53 49 45 20 36 2e 30 | atible; MSIE 6.0
(B3b 20 57 69 6e 64 6f 77 73 20 4e 54 20 35 2e 31 | ; Windows NT 5.1
(B29 00 a0 09 00 2b 4a 53 45 53 53 49 4f 4e 49 44 | ).?..+JSESSIONID
(B3d 37 34 39 44 46 39 34 32 42 35 45 38 32 39 33 | =749DF942B5E8293
(B45 39 32 31 32 34 34 36 32 35 36 37 38 41 34 46 | E921244625678A4F
(B42 00 a0 08 00 02 33 37 00 a0 07 00 21 61 70 70 | B.?...37.?..!app
(B6c 69 63 61 74 69 6f 6e 2f 78 2d 77 77 77 2d 66 | lication/x-www-f
(B6f 72 6d 2d 75 72 6c 65 6e 63 6f 64 65 64 00 a0 | orm-urlencoded.?
(B03 00 0d 67 7a 69 70 2c 20 64 65 66 6c 61 74 65 | ...gzip, deflate
(B00 00 0d 63 61 63 68 65 2d 63 6f 6e 74 72 6f 6c | ...cache-control
(B00 00 08 6e 6f 2d 63 61 63 68 65 00 03 00 00 00 | ...no-cache.
(B04 00 00 00 ff | ?
(BJun 21, 2004 6:42:33 PM org.apache.jk.common.ChannelSocket processConnection
(BWARNING: processCallbacks status 2
(B
(BDoing additional tests, I have found that it appears to be timeout
(Bwaiting for
(Bmore data to be sent? (guess) I say this because if I do the POST and then
(Bwait patiently then the error takes about 50 seconds to show up in the log.
(BThe request will cause 2 such dumps before returning an error to the
(Bbrowser. However if I push the submit button on my form then the
(Bprevious request will immediately cause the above error to be dumped.
(BThe second request will continue to hang until it too times out and dumps
(Bthe above message.
(B
(BI enabled debug output in the connector and get the following. It seems to
(Bfail once and then retry. I am including the significant portion of the
(Bsecond
(Battempt:
(B
(B[Mon Jun 21 19:14:44 2004] [jk_ajp_common.c (295)]: Into
(Bajp_marshal_into_msgb
(B[Mon Jun 21 19:14:44 2004] [jk_ajp_common.c (463)]:
(Bajp_marshal_into_msgb - Done
(B[Mon Jun 21 19:14:44 2004] [jk_connect.c (158)]: Into jk_open_socket
(B[Mon Jun 21 19:14:44 2004] [jk_connect.c (165)]: jk_open_socket, try to
(Bconnect socket = 424
(B[Mon Jun 21 19:14:44 2004] [jk_connect.c (174)]: 

Re: tomcat crash ... unexpected exception

2004-06-23 Thread bastien.devos
Thank you for your answer.
And by the way, I have another error that you or somebody else could maybe identify :
--
Jun 23, 2004 11:17:12 AM org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654)
at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:472)
at org.apache.coyote.Response.action(Response.java:226)
at org.apache.coyote.Response.finish(Response.java:348)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:329)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
--
This error doesn't seem to hang Tomcat but SEVERE and Broken pipe do not sound well in 
my ears ...

Thanks,
Bastien.

Ralph Einfeldt wrote:
Btw. appweb.NativeCall doesn't look like a part of tomcat
so it most likely the application or an additional library
that is used by the application.

-Original Message-
From: Ralph Einfeldt 
Sent: Wednesday, June 23, 2004 11:15 AM
To: Tomcat Users List
Subject: RE: tomcat crash ... unexpected exception

For this part of the error you have to look at at the application.
appweb.NativeCall looks like a class that is an interfaces to a 
native (C) library. The error is thrown in that native library.


-
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: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt
That error can something between 'ignore it' and 'severe error'.

Tomcat failed while writing the response to mod_jk.
That can be caused by this reasons:
- the apache child that created the request died
- the user closed the browser before the response was sent 
- there may be further reasons

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 11:39 AM
 To: Tomcat Users List
 Subject: Re: tomcat crash ... unexpected exception
 

 Jun 23, 2004 11:17:12 AM org.apache.jk.server.JkCoyoteHandler action
 SEVERE: Error in action code
 java.net.SocketException: Broken pipe

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



Re: AJP13 connection problem

2004-06-23 Thread Ashish-Kumar . Balyan

Just to add more information...
I am using Tomcat 4.1.24 and Apache 1.3.19

Following are the contents of the workers.properties
  worker.list=loadbalancer

  worker.tomcat0.type=ajp13
  worker.tomcat0.host=nil102
  worker.tomcat0.port=8009
  worker.tomcat0.lbfactor=100

  worker.loadbalancer.type=lb
  worker.loadbalancer.balanced_workers=tomcat0

Following are the changes to httpd.conf

  LoadModule jk_module libexec/mod_jk.so
  AddModule mod_jk.c

  IfModule mod_jk.c
  JkWorkersFile
/in/slee/webserver/apache/conf/workers.properties
  JkMount /servlet/* loadbalancer
  JkLogFile /in/slee/webserver/apache/logs/JK.log
  JkLogLevel debug
  /IfModule


Following are the contents of server.xml file
  !-- Define a Coyote/JK2 AJP 1.3 Connector on port
8009 --
  Connector
className=org.apache.coyote.tomcat4.CoyoteConnector port=8009
minProcessors=5 maxProcessors=500 enableLookups=true redirectPo
rt=8443 acceptCount=10 debug=0 connectionTimeout=10
useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

...

Engine name=Standalone defaultHost=localhost debug=0
jmvRoute=tomcat0

..


Regards
-AB


|-+---
| |   Ashish-Kumar|
| |   BALYAN/IN/ALCATE|
| |   [EMAIL PROTECTED]   |
| |   |
| |   06/23/2004 02:49|
| |   PM  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
---|
  |
   |
  |To:  [EMAIL PROTECTED]  
  |
  |cc: 
   |
  |Subject: AJP13 connection problem   
   |
  
---|




Hi,

I have Apache and Tomcat running on two different SUN machines.
I get following error on trying to access a servlet.
Though things work fine if Tomcat and Apache are running on same machine.


[Tue Jun 22 15:09:01 2004]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue Jun 22 15:09:01 2004]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/servlet/s4'
[Tue Jun 22 15:09:01 2004]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match loadbalancer
- /servlet/
[Tue Jun 22 15:09:01 2004]  [jk_worker.c (132)]: Into
wc_get_worker_for_name loadbalancer
[Tue Jun 22 15:09:01 2004]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Tue Jun 22 15:09:01 2004]  [jk_lb_worker.c (527)]: Into
jk_worker_t::get_endpoint
[Tue Jun 22 15:09:01 2004]  [jk_lb_worker.c (310)]: Into
jk_endpoint_t::service
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1404)]: Into
jk_worker_t::get_endpoint
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1116)]: Into
jk_endpoint_t::service
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb
- Done
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (132)]: Into jk_open_socket
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (139)]: jk_open_socket, try to
connect socket = 7
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (148)]: jk_open_socket, after
connect ret = -1
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (626)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong port.
Failed errno =
 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (874)]: Error connecting to
the Tomcat process.
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (1190)]: sending request to
tomcat failed in send loop. err=0
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (132)]: Into jk_open_socket
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (139)]: jk_open_socket, try to
connect socket = 7
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (148)]: jk_open_socket, after
connect ret = -1
[Tue Jun 22 15:09:01 2004]  [jk_connect.c (177)]: jk_open_socket, connect()
failed errno = 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (626)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong port.
Failed errno =
 146
[Tue Jun 22 15:09:01 2004]  [jk_ajp_common.c (874)]: 

Re: Too many open files on Solaris

2004-06-23 Thread Davor Cengija
I've narrowed and hopefully solved the problem described below. At the end,
Solaris+Java 1.4.2+Turbine framework combination is problematic. In short,
Turbine uses resources/ui/skins/default/skin.props (on my system) file for
some configurations etc, and doesn't close it! After a while, that file is
opened 500-600 times and of course causes Too many open files exception
when Tomcat tries to open a socket. The funny thing is that my application
doesn't use the functionalities provided by skin.props; it comes
'configured' by default. Simply removing all references to it solved my Too
many open files problem.

Additionally, the same application on Linux, with the same version of Java
and Tomcat doesn't have that problem. And since I perform my tests on
Linux, it was pretty hard to find the solution.

I hope this post will eventually help somebody.

Cheers,
Davor

Davor Cengija wrote:

 My application is hitting that 'too many open files' limit on Solaris.
 
 Jun 15, 2004 11:23:01 AM org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 ignored exception: java.net.SocketException: Too many open files
 java.net.SocketException: Too many open files
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
 at java.net.ServerSocket.implAccept(ServerSocket.java:448)
 at java.net.ServerSocket.accept(ServerSocket.java:419)
 at

org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:107)
 at

org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:387)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:557)
 at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:534)
 Jun 15, 2004 11:23:01 AM org.apache.tomcat.util.net.PoolTcpEndpoint
 closeServerSocket
 SEVERE: Caught exception trying to unlock accept on 8080
 java.net.SocketException: Too many open files
 Jun 15, 2004 11:23:01 AM org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 WARNING: Reinitializing ServerSocket
 
 I realize that increasing file descriptor limit per process could help a
 bit, but my system administrator simply doesn't want to do that (since it
 requires restart).
 
 Now, the problem is how to avoid too many open files exception. Any
 suggestions regarding Tomcat (or Apache) configuration, coding practice,
 some runtime operating system parameters would be greatly appreciated.
 
 Here's my configuration:
 
 Default Solaris 8 (I believe) installation on 2CPU+4GB RAM box. TCP
 connection wait timeout (I believe that the correct wording) is decreased
 from 240sec to 60sec and that's the only parameter changed on Solaris.
 
 Tomcat 4.1.30 with j2sdk 1.4.2_04 (server mode) with Apache 2.0 as a
 proxy. Every single request goes through Apache which then routes it to
 Tomcat. 600.000 hits and cca 3GB of data daily, with peaks during working
 hours, of course, about 50.000 hits per hour. The delivered content
 consists mostly of small images (3-20k) delivered directly from a database
 (servlet sets content type etc, img src=/preview?id=123 style)
 
 Application lives about 24hours and then dies with the exception shown
 above. As far as I can see, all input- and output- streams are flushed and
 closed, at least in my application. Cannot guarantee for the underlining
 libraries.
 
 Somehow I think that I cannot squeeze the application anymore and that
 we're hitting tomcat+solaris limit.
 
 Ahm... whoever managed to completelly read this rather long post I hope
 will have some suggestions.
 
 Thanks in advance!
 
 Cheers,
 Davor

-- 
Davor Cengija, [EMAIL PROTECTED]


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



AW: AW: Problem with Tomcat + Apache + mod_jk

2004-06-23 Thread Jens . Mueller
Hello ming fang,

thanks for your help.
I found no 'new' way, to disable the chunked response.
What I did, is to set request.setContentLength(0);

When I connect directly to the tomcat, I'll see this header:
 Content-Length: 0

But when I connect to the Apache, I'll see this header:
 Transfer-Encoding: chunked

It is the same request.

All the tips I found, told to set set Content-Length. But when I set it,
it'll be ignored whe I connect through apache and mod_jk.


- Jens

-Ursprüngliche Nachricht-
Von: ming fang [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 22. Juni 2004 20:05
An: Tomcat Users List
Betreff: Re: AW: Problem with Tomcat + Apache + mod_jk


first you seem to have a problem with those 302 responses from tomcat.  
you have to fix that first.

i'm using tomcat5 + apache2 + mod_jk2.
in my setup, the chunked header comes from tomcat.

just search google for tomcat disable chunking.  there are lots of 
hits.

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



Optimal configuration of maxProcessors

2004-06-23 Thread Davor Cengija
I have a pretty loaded web application where every single page and image are
dinamically created. It seems that my Tomcat cannot serve 50.000+ hits per
hour, at least the way it is configured now.

I guess that the main parameter here is maxProcessors and it is now set to
500. What are the recommended values for that parameter in my situation? I
mean, would 750 or 1000 be too much? What about connectionTimeout? It is
now set to 6 milliseconds (one minute), the same value as the
corresponding Apache directive Timeout (Apache is used as proxy)

Top on Solaris, where the Tomcat is installed, says that java which runs
Tomcat has cca 550 threads during peak hours, or actually when Tomcat
starts to choke.

Any help is greatly appreciated.

Regards,
Davor
-- 
Davor Cengija, [EMAIL PROTECTED]


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



Webapps Log4j config problem

2004-06-23 Thread Igor Smirnov
Hi,

I am having a problem with BarracudaDiscRack application that load withing Tomcat.
I;m useing Enhydra, jonas 4.1, Tomcat 5.
I have all the necessary files(lof4j, barracuda etc) jars in Web-inf/lib and the 
classes in Web-inf\classes.
In the main BarracudaDiscRack folder, I have the log4j.xml that contains the following 
lines:

?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false 
threshold=debug
appender name=A1 class=org.apache.log4j.ConsoleAppender
layout class=org.apache.log4j.PatternLayout
param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/
/layout
/appender
appender name=A2 class=org.apache.log4j.FileAppender
param name=File 
value=C:/IgorEnhydra6.0-1/work/webapps/Enhydra/BarracudaDiscRack/WEB-INF/main.log /
param name=Append value=false /
layout class=org.apache.log4j.PatternLayout
param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/
/layout
/appender
appender name=JUnitAppender class=org.apache.log4j.FileAppender
param name=File 
value=C:/IgorEnhydra6.0-1/work/webapps/Enhydra/BarracudaDiscRack/WEB-INF/test.log /
param name=Append value=true /
layout class=org.apache.log4j.PatternLayout
param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/
/layout
/appender
logger name=test.org.enhydra.barracuda additivity=falselevel 
value=off/appender-ref ref=JUnitAppender//logger

!-- standard debuggers which should stay on --
logger name=org.enhydra.barracuda.plankton.Classesappender-ref 
ref=A1//logger
logger 
name=org.enhydra.barracuda.plankton.data.ObjectRepositoryAssemblerlevel 
value=warn/appender-ref ref=A1//logger
!-- other debuggers (testing/debugging purposes) --
logger name=org.enhydra.barracuda.core.event.ApplicationGatewayappender-ref 
ref=A1//logger

!-- Note: This root logger will be inherited by all loggers unless you use 
additivity=false. --
root
level value=warn/
appender-ref ref=A1/
!--appender-ref ref=A3/--
 !--appender-ref ref=A4/--
/root
/log4j:configuration

Now, when the application is loaded I get an error:
log4j:WARN No appenders could be found for logger (root).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger 
(org.apache.catalina.session.ManagerBase)
log4j:WARN Please initialize the log4j system properly.

The servers starts, but no logging is performed.

What might be going wrong. I had no similiar problem withing jonas 3x ant Tomcat 4x.
Thank you!
Igor

RE: list active sessions.

2004-06-23 Thread Frank Zammetti
I don't see that behavior.  Is there a setting in Tomcat to turn that 
function on and off perhaps?  None of my sessions survive a Tomcat restart, 
so I've never had to deal with this.

Frank

From: Radek Liebzeit [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: list active sessions.
Date: Wed, 23 Jun 2004 07:51:08 +0200
Really nice.
I am just wondering about one thing - about persistent sessions. I
have a session counter based on the SessionListeners. It is increased
when some session is created and decreased when the session is
destroyed. So, when I restart the Tomcat server some sessions are
recreated but counter state doesn't. Therefore, after session timeout,
the counter status is negative.
It's not problem for me, it is enough for my purposes. I am just
wondering how do you solve this behaviour?
Radek
 -Original Message-
 From: Frank Zammetti [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 21, 2004 3:45 PM
 To: [EMAIL PROTECTED]
 Subject: RE: list active sessions.

 I spent a couple of days last week implementing just such a thing, so
I
 feel
 qualified to answer :)

 There is no easy way to do it.  There USED to be a SessionContext
object
 available in the servlet spec that would allow you to do a lot of cool
 things with sessions, but it was removed as of spec 2.1 I think
because
 Sun
 believed it to be a security risk.  Unfortunately there was nothing
added
 to
 take it's place.

 The way you have to do this, or at least one way (the only way I
found) is
 to track it yourself.

 First, I already had an AppConfig object that contains a static
HashMap.
 This has a bunch of config values for my app loaded from a config file
at
 startup.  I then added an activeSessions HashMap to that class.
Create a
 similar class for yourself, along the lines of the following:

 import java.util.HashMap;
 public class AppConfig {
   private static HashMap activeUsers = null;
   public static HashMap activeUsers() {
 return activeUsers;
   }
   public static void setActiveUsers(HashMap inActiveUsers) {
 activeUsers = inActiveUsers;
   }
 }

 Then, create a SessionListener something like the following:

 package com.mycompany.myapp;
 import java.util.HashMap;
 import javax.servlet.http.HttpSession;
 import javax.servlet.http.HttpSessionEvent;
 import javax.servlet.http.HttpSessionListener;
 public class SessionListener implements HttpSessionListener {
   public void sessionCreated(HttpSessionEvent se) {
 HashMap activeUsers = (HashMap)AppConfig.getActiveUsers();
 synchronized (activeUsers) {
   activeUsers.put(se.getSession().getId(), new HashMap());
 }
   }
   public void sessionDestroyed(HttpSessionEvent se) {
 HashMap activeUsers = (HashMap)AppConfig.getActiveUsers();
 synchronized (appConfig) {
   activeUsers.remove(se.getSession().getId());
 }
   }
 }

 Then just add the following to web.xml after your servlet section:

   listener

listener-classcom.mycompany.myapp.SessionListener/listener-class
   /listener

 Basically, every time a session is created, you'll get an entry in the
 activeUsers HashMap keyed by sessionID, and the record will be removed
 when
 the session is destroyed.  Further, what I do is that when my logon
Action
 is called, when the user is validated I add some information for that
user
 into the HashMap (first name, last name, logon time, etc).  This
allows me
 to have a pretty nice little tracking display in my app.

 The one problem you run into with this is that if the user just closes
the
 browser window rather than using your nice logout function, the
session
 lingers until the timeout period elapses.  I didn't like that!  My app
is
 frames-based, and I already had one hidden frame, so I added the
following
 to the body tag of that frame's source document:

 onUnload=openLogoffPopup();

 ... and then the openLogoffPopup() function:

   function openLogoffPopup() {
 windowHandle = window.open(, ,
width=200,height=1,top=1,left=1);
 str =   + html + head + title + /title +
/head;
 str +=  + body
 onLoad=\window.location='%=request.getContextPath()
 + /app/logoff.app%';\;
 str +=  + table width=\100%\ height=\100%\ border=\0\;
 str +=  + tr + td align=\center\ valign=\middle\;
 str +=  + span
 style=\color:#00;font-family:arial;font-size:11pt;font-
 weight:bold;\;
 str += Logging out of application... + /span;
 str +=  + /td + /tr;
 str +=  + /table;
 str +=  + /body + /html;
 windowHandle.document.write(str);
 windowHandle.document.close();
   }

 That calls the logoff Action whcih does not much more than
 session.invalidate().  This works well in IE, I do not know if it is
 cross-browser though (not a concern for my company).  It should work
fine
 to
 add this to all your JSP's, assuming your app isn't frame-based, I
think
 it'll work just the same.  But, maybe you can live with the session
 lingering if the window is 

Re: problem with classpath

2004-06-23 Thread Ankit Doshi
Guys,

Can anybody help me on this? Basically, I want to run multiple web
applications from within single tomcat instance.

- Original Message -
From: Ankit Doshi [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 11:43 AM
Subject: problem with classpath


Hello,

I am running an application for multiple clients and the setup is like the
set of classes being used are common and the property files are different
for each client. The structure looks as below :
/usr/local/common_application_classes/ - this folder contains all classes
/usr/local/properties/client1/ - this folder contains properties of client1
/usr/local/properties/client2/ - this folder contains properties of client2
.. etc for all the different clients.

Now, this is a web based application and the classes in the
/usr/local/common_application_classes/ are being used from the web
application (servlet, jsp files). The properties files are being used from
the classes contained in the /usr/local/common_application_classes/ folder.

I want to setup a common tomcat (preferabbly tomcat3, or tomcat4) for all
these clients, but how should I setup the classpath?
/usr/local/common_application_classes/ should be in tomcat's classpath. But,
properties files are different for different classes, so thought of creating
single tomcat and under that, multiple contexts, one for each client and the
properties files goes in the respective client's context/WEB-INF/classes.
But, since the classes accessing the properties files are outside tomcat
(not in context/WEB-INF/classes), are not being able to access properties
files - gives MissingResourceException.

Let say, I have a test.jsp file in context /test, which calls a
TestClass.class file and this TestClass.class file is looking up some
property file through ResourceBundle. The property file is in
/test/WEB-INF/classes/ directory. Now, if the TestClass.class is in
/test/WEB-INF/classes, then it works perfectly fine, but if the
TestClass.class is outside tomcat (included in tomcat's classpath), then it
gives MissingResourceException while looking up property file.

Please tell me how can I proceed further.

Ankit


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



Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't work

2004-06-23 Thread Jens . Mueller
Hi all,

I want to migrate a single webapplication from Tomcat 4.1.27 to Tomcat
4.1.30.
So I installed the new version on my server.
After configuration I copied my webapplication from 4.1.27 to 4.1.30. It is
a ROOT-webapp.

In this application there a 3 servlets with the follwing mapping configured:

servlet-mapping
servlet-namelogin/servlet-name
url-pattern/login//url-pattern
/servlet-mapping

servlet-mapping
servlet-nameappmanager/servlet-name
url-pattern/lappmanager/url-pattern
/servlet-mapping

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

In 4.1.27 I can call http://xxx/login and http://xxx/appmanager without any
problems. Every other request goes to the app-servlet.
In 4.1.30 every request goes to the app-servlet. Even http://xxx/login and
http://xxx/appmanager.

And also the method request.getPathInfo() return null. I don't know why.

What's goin' wrong?

  - Jens


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



Re: tomcat crash ... unexpected exception

2004-06-23 Thread bastien.devos
Again about my general problem, below is an output of the 'top' command on the webserver.
We can see that the Tomcat java process (the first one) has 135 threads in it. How is this 
defined ? I guess this number is dynamic, but how can I say that it is its maximum or not 
? If it is, it may be some kind of bottleneck ...

Is it related to the settings of min/max processors in server.xml ?
--
last pid: 14592;  load averages:  0.27,  0.25,  0.26 
   14:14:21
173 processes: 165 sleeping, 7 zombie, 1 on cpu
CPU states: 91.5% idle,  3.9% user,  4.2% kernel,  0.4% iowait,  0.0% swap
Memory: 8192M real, 1404M free, 6472M swap in use, 7856M swap free

   PID USERNAME THR PRI NICE  SIZE   RES STATETIMECPU COMMAND
 11751 userx135   0   10 6288M 4718M sleep9:55  0.60% java
   680 root   4 150  -20 3568K 2424K sleep  489:23  0.13%
 14526 root   1 150  -20 2056K 1472K sleep0:00  0.06%
 14527 root   1 150  -20 2056K 1472K sleep0:00  0.06%
  5078 root  12   10 7312K 6272K sleep   72:41  0.05%
  8529 root   1  590 2776K 1848K cpu/00:08  0.05% top
 14513 userx  8   10 7280K 5864K sleep0:00  0.05% httpd
 14591 userx  6   00 6848K 5112K sleep0:00  0.03% httpd
 14524 root   1 150  -20 2056K 1472K sleep0:00  0.03%
 14592 userx  4   00 6720K 5016K sleep0:00  0.02% httpd
 14533 root   1 150  -20 2176K 1408K sleep0:00  0.02%
 14534 root   1 150  -20 2176K 1408K sleep0:00  0.02%
--
Thanks,
Bastien.

Ralph Einfeldt wrote:
That error can something between 'ignore it' and 'severe error'.
Tomcat failed while writing the response to mod_jk.
That can be caused by this reasons:
- the apache child that created the request died
- the user closed the browser before the response was sent 
- there may be further reasons


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 11:39 AM
To: Tomcat Users List
Subject: Re: tomcat crash ... unexpected exception

Jun 23, 2004 11:17:12 AM org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe

-
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: Tomcat4 RMI class loading bermuda triangle

2004-06-23 Thread Cox, Charlie
Try copying your classes to /common/lib (or /common/classes). This way they
are available to tomcat internal classes also.

Is that the full stack trace? The class hierarchy that invokes Class.forName
will help identify which classloader is trying to load your classes. I
suspect one of tomcat's own classes.

Charlie

 -Original Message-
 From: Guillaume Boutard [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 4:43 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat4 RMI class loading bermuda triangle
 
 Hi every body,
 I'm trying to fix this problem for one week and i'm turning crazy right
now.
 I have this servlet working perfectly, finding every package i put in
 /var/tomcat4/shared/lib except that it doesn't find my RMIServer class
 for casting
 i get a
 [java.lang.ClassNotFoundException] - myRMIServerClass
org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:141)
 
 all classes are in the jar with the stub and skeleton (i tried to put
 classes in WEB_INF/classes of my servlet but same problem... so i guess
 this is not the real problem)
 
 I have set in catalina policy file a:
 grant {
 permission java.security.AllPermission;
 };
 to be sure there's no problem of security. i changed the init.d/tomcat4
 script to add -security to the starting line to be sure that it is
 started the right way
 
 
 I used to try the same code with tomcat 3 and i changed to tomcat 4
 because of a rmi jni problem reported on mailing lists (i spent so much
 time on tomcat4 that i can't remember what was the previous one) but i
 can't even get that far with tomcat4
 
 My version is a rpm 4.2.1 for Red Hat
 
 Does someone understand what's going on
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat crash ... unexpected exception

2004-06-23 Thread Peter Lin
by default, the max threads is set to 150 in server.xml.  Is your
webserver really getting that many active requests at one time?  I've
worked on some large sites and most of the time, the peak concurrent
requests is usually less than 10. this is on some big Sun boxes.

just because there are 150 threads, not all of them are active. If
you're using tomcat5, you can use the status servlet to see how many
threads are active compared to the total threads.

peter


On Wed, 23 Jun 2004 14:24:35 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 
 Again about my general problem, below is an output of the 'top' command on the 
 webserver.
 We can see that the Tomcat java process (the first one) has 135 threads in it. How 
 is this
 defined ? I guess this number is dynamic, but how can I say that it is its maximum 
 or not
 ? If it is, it may be some kind of bottleneck ...
 
 Is it related to the settings of min/max processors in server.xml ?
 
 --
 last pid: 14592;  load averages:  0.27,  0.25,  0.26
14:14:21
 173 processes: 165 sleeping, 7 zombie, 1 on cpu
 CPU states: 91.5% idle,  3.9% user,  4.2% kernel,  0.4% iowait,  0.0% swap
 Memory: 8192M real, 1404M free, 6472M swap in use, 7856M swap free
 
PID USERNAME THR PRI NICE  SIZE   RES STATETIMECPU COMMAND
  11751 userx135   0   10 6288M 4718M sleep9:55  0.60% java
680 root   4 150  -20 3568K 2424K sleep  489:23  0.13%
  14526 root   1 150  -20 2056K 1472K sleep0:00  0.06%
  14527 root   1 150  -20 2056K 1472K sleep0:00  0.06%
   5078 root  12   10 7312K 6272K sleep   72:41  0.05%
   8529 root   1  590 2776K 1848K cpu/00:08  0.05% top
  14513 userx  8   10 7280K 5864K sleep0:00  0.05% httpd
  14591 userx  6   00 6848K 5112K sleep0:00  0.03% httpd
  14524 root   1 150  -20 2056K 1472K sleep0:00  0.03%
  14592 userx  4   00 6720K 5016K sleep0:00  0.02% httpd
  14533 root   1 150  -20 2176K 1408K sleep0:00  0.02%
  14534 root   1 150  -20 2176K 1408K sleep0:00  0.02%
 --
 
 Thanks,
 
 Bastien.
 
 Ralph Einfeldt wrote:
  That error can something between 'ignore it' and 'severe error'.
 
  Tomcat failed while writing the response to mod_jk.
  That can be caused by this reasons:
  - the apache child that created the request died
  - the user closed the browser before the response was sent
  - there may be further reasons
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 11:39 AM
 To: Tomcat Users List
 Subject: Re: tomcat crash ... unexpected exception
 
 
 
 Jun 23, 2004 11:17:12 AM org.apache.jk.server.JkCoyoteHandler action
 SEVERE: Error in action code
 java.net.SocketException: Broken pipe
 
 
  -
  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]
 


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



RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt

The number of threads is depending on
- the number of threads the jvm needs to run
- the number of threads tomcat needs to run
- AFAIK one thread for each active processor
  (- at least minProcessors)
- the number of threads that are used by the application

But there is no way to know the number of max threads,
I'm not shure if there is a option to query tomcat for 
the number of active processor threads.

You can verify the number of processor threads by 
calling kill -QUIT java-pid. This should produce 
a stacktrace in one of the log files. You should be 
able to identify the by their name.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 2:25 PM
 To: Tomcat Users List
 Subject: Re: tomcat crash ... unexpected exception
 
 
 Again about my general problem, below is an output of the 
 'top' command on the webserver.
 We can see that the Tomcat java process (the first one) has 
 135 threads in it. How is this 
 defined ? I guess this number is dynamic, but how can I say 
 that it is its maximum or not 
 ? If it is, it may be some kind of bottleneck ...
 
 Is it related to the settings of min/max processors in server.xml ?
 
 --
 last pid: 14592;  load averages:  0.27,  0.25,  0.26 
 14:14:21
 173 processes: 165 sleeping, 7 zombie, 1 on cpu
 CPU states: 91.5% idle,  3.9% user,  4.2% kernel,  0.4% 
 iowait,  0.0% swap
 Memory: 8192M real, 1404M free, 6472M swap in use, 7856M swap free
  
 
 PID USERNAME THR PRI NICE  SIZE   RES STATETIMECPU COMMAND
   11751 userx135   0   10 6288M 4718M sleep9:55  0.60% java
 680 root   4 150  -20 3568K 2424K sleep  489:23  0.13%
   14526 root   1 150  -20 2056K 1472K sleep0:00  0.06%
   14527 root   1 150  -20 2056K 1472K sleep0:00  0.06%
5078 root  12   10 7312K 6272K sleep   72:41  0.05%
8529 root   1  590 2776K 1848K cpu/00:08  0.05% top
   14513 userx  8   10 7280K 5864K sleep0:00  0.05% httpd
   14591 userx  6   00 6848K 5112K sleep0:00  0.03% httpd
   14524 root   1 150  -20 2056K 1472K sleep0:00  0.03%
   14592 userx  4   00 6720K 5016K sleep0:00  0.02% httpd
   14533 root   1 150  -20 2176K 1408K sleep0:00  0.02%
   14534 root   1 150  -20 2176K 1408K sleep0:00  0.02%
 --
 
 Thanks,
 
 Bastien.
 
 
 
 Ralph Einfeldt wrote:
  That error can something between 'ignore it' and 'severe error'.
  
  Tomcat failed while writing the response to mod_jk.
  That can be caused by this reasons:
  - the apache child that created the request died
  - the user closed the browser before the response was sent 
  - there may be further reasons
  
  
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 11:39 AM
 To: Tomcat Users List
 Subject: Re: tomcat crash ... unexpected exception
 
  
  
 Jun 23, 2004 11:17:12 AM org.apache.jk.server.JkCoyoteHandler action
 SEVERE: Error in action code
 java.net.SocketException: Broken pipe
  
  
  
 -
  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]
 
 
 

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



Re: tomcat crash ... unexpected exception

2004-06-23 Thread bastien.devos

Peter Lin wrote:
by default, the max threads is set to 150 in server.xml.  Is your
webserver really getting that many active requests at one time?  I've
worked on some large sites and most of the time, the peak concurrent
requests is usually less than 10. this is on some big Sun boxes.
Indeed you're right, I think it's not a problem at all, but I'm in a phase where I try to 
check a maximum of points in my possible problem causes list ...

just because there are 150 threads, not all of them are active. If
you're using tomcat5, you can use the status servlet to see how many
threads are active compared to the total threads.
I'm using Tomcat 4.1.30, is there an equivalent ?
Can I have this kind of information with the jkstatus page ?
peter
On Wed, 23 Jun 2004 14:24:35 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Again about my general problem, below is an output of the 'top' command on the 
webserver.
We can see that the Tomcat java process (the first one) has 135 threads in it. How is 
this
defined ? I guess this number is dynamic, but how can I say that it is its maximum or 
not
? If it is, it may be some kind of bottleneck ...
Is it related to the settings of min/max processors in server.xml ?
--
last pid: 14592;  load averages:  0.27,  0.25,  0.26
  14:14:21
173 processes: 165 sleeping, 7 zombie, 1 on cpu
CPU states: 91.5% idle,  3.9% user,  4.2% kernel,  0.4% iowait,  0.0% swap
Memory: 8192M real, 1404M free, 6472M swap in use, 7856M swap free
  PID USERNAME THR PRI NICE  SIZE   RES STATETIMECPU COMMAND
11751 userx135   0   10 6288M 4718M sleep9:55  0.60% java
  680 root   4 150  -20 3568K 2424K sleep  489:23  0.13%
14526 root   1 150  -20 2056K 1472K sleep0:00  0.06%
14527 root   1 150  -20 2056K 1472K sleep0:00  0.06%
 5078 root  12   10 7312K 6272K sleep   72:41  0.05%
 8529 root   1  590 2776K 1848K cpu/00:08  0.05% top
14513 userx  8   10 7280K 5864K sleep0:00  0.05% httpd
14591 userx  6   00 6848K 5112K sleep0:00  0.03% httpd
14524 root   1 150  -20 2056K 1472K sleep0:00  0.03%
14592 userx  4   00 6720K 5016K sleep0:00  0.02% httpd
14533 root   1 150  -20 2176K 1408K sleep0:00  0.02%
14534 root   1 150  -20 2176K 1408K sleep0:00  0.02%
--
Thanks,
Bastien.
Ralph Einfeldt wrote:
That error can something between 'ignore it' and 'severe error'.
Tomcat failed while writing the response to mod_jk.
That can be caused by this reasons:
- the apache child that created the request died
- the user closed the browser before the response was sent
- there may be further reasons

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 11:39 AM
To: Tomcat Users List
Subject: Re: tomcat crash ... unexpected exception

Jun 23, 2004 11:17:12 AM org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
java.net.SocketException: Broken pipe

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


-
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: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't work

2004-06-23 Thread Veniamin Fichin
[EMAIL PROTECTED] wrote:
Hi all,
I want to migrate a single webapplication from Tomcat 4.1.27 to Tomcat
4.1.30.
So I installed the new version on my server.
After configuration I copied my webapplication from 4.1.27 to 4.1.30. It is
a ROOT-webapp.
In this application there a 3 servlets with the follwing mapping configured:
servlet-mapping
servlet-namelogin/servlet-name
url-pattern/login//url-pattern
/servlet-mapping
servlet-mapping
servlet-nameappmanager/servlet-name
url-pattern/lappmanager/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameapp/servlet-name
url-pattern/*/url-pattern
/servlet-mapping
In 4.1.27 I can call http://xxx/login and http://xxx/appmanager without any
problems. Every other request goes to the app-servlet.
In 4.1.30 every request goes to the app-servlet. Even http://xxx/login and
http://xxx/appmanager.
   Is this a typo or not?
* You have /lappmanager URL pattern (see first l letter), but 
request for http://xxx/appmanager;.
* Second, you have /login/ URL pattern (see suffix slash), but request 
for http://xxx/login;.

   So none of your mappings triggered, what leads to default app-server 
invocation.

And also the method request.getPathInfo() return null. I don't know why.
   As of request.getPathInfo() method, please read J2EE's specs, it says:
cut
Returns:
a String, decoded by the web container, specifying extra path 
information that comes after the servlet path but before the query 
string in the request URL; or null if the URL does not have any extra 
path information
/cut

   So for example you'd have request URL like 
http://servername/webapp/mappedname/and/this/fake/path;, getPathInfo() 
would return /and/this/fake/path, I guess. In your case it's null.

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


Re: tomcat crash ... unexpected exception

2004-06-23 Thread Peter Lin
here's part of what Tomcat5 status servlet displays

Max threads: 150 Min spare threads: 25 Max spare threads: 75 Current
thread count: 25 Current thread busy: 3
Max processing time: 371 ms Processing time: 0 s Request count: 5
Error count: 1 Bytes received: 0.00 MB Bytes sent: 0.02 MB

As you can see busy: 3. Of course, if you're using tomcat4, this is
absolutely no help to you at all.  Even if you aren't running tomcat5
in production, you can setup tomcat5 in a staging dev environment and
simulate production traffic to analyze what is happening.

peter


On Wed, 23 Jun 2004 14:51:21 +0200, Ralph Einfeldt
[EMAIL PROTECTED] wrote:
 
 
 The number of threads is depending on
 - the number of threads the jvm needs to run
 - the number of threads tomcat needs to run
 - AFAIK one thread for each active processor
  (- at least minProcessors)
 - the number of threads that are used by the application
 
 But there is no way to know the number of max threads,
 I'm not shure if there is a option to query tomcat for
 the number of active processor threads.
 
 You can verify the number of processor threads by
 calling kill -QUIT java-pid. This should produce
 a stacktrace in one of the log files. You should be
 able to identify the by their name.
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 23, 2004 2:25 PM
  To: Tomcat Users List
  Subject: Re: tomcat crash ... unexpected exception
 
 
  Again about my general problem, below is an output of the
  'top' command on the webserver.
  We can see that the Tomcat java process (the first one) has
  135 threads in it. How is this
  defined ? I guess this number is dynamic, but how can I say
  that it is its maximum or not
  ? If it is, it may be some kind of bottleneck ...
 
  Is it related to the settings of min/max processors in server.xml ?
 
  --
  last pid: 14592;  load averages:  0.27,  0.25,  0.26
  14:14:21
  173 processes: 165 sleeping, 7 zombie, 1 on cpu
  CPU states: 91.5% idle,  3.9% user,  4.2% kernel,  0.4%
  iowait,  0.0% swap
  Memory: 8192M real, 1404M free, 6472M swap in use, 7856M swap free
 
 
  PID USERNAME THR PRI NICE  SIZE   RES STATETIMECPU COMMAND
11751 userx135   0   10 6288M 4718M sleep9:55  0.60% java
  680 root   4 150  -20 3568K 2424K sleep  489:23  0.13%
14526 root   1 150  -20 2056K 1472K sleep0:00  0.06%
14527 root   1 150  -20 2056K 1472K sleep0:00  0.06%
 5078 root  12   10 7312K 6272K sleep   72:41  0.05%
 8529 root   1  590 2776K 1848K cpu/00:08  0.05% top
14513 userx  8   10 7280K 5864K sleep0:00  0.05% httpd
14591 userx  6   00 6848K 5112K sleep0:00  0.03% httpd
14524 root   1 150  -20 2056K 1472K sleep0:00  0.03%
14592 userx  4   00 6720K 5016K sleep0:00  0.02% httpd
14533 root   1 150  -20 2176K 1408K sleep0:00  0.02%
14534 root   1 150  -20 2176K 1408K sleep0:00  0.02%
  --
 
  Thanks,
 
  Bastien.
 
 
 
  Ralph Einfeldt wrote:
   That error can something between 'ignore it' and 'severe error'.
  
   Tomcat failed while writing the response to mod_jk.
   That can be caused by this reasons:
   - the apache child that created the request died
   - the user closed the browser before the response was sent
   - there may be further reasons
  
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 23, 2004 11:39 AM
  To: Tomcat Users List
  Subject: Re: tomcat crash ... unexpected exception
  
  
  
  Jun 23, 2004 11:17:12 AM org.apache.jk.server.JkCoyoteHandler action
  SEVERE: Error in action code
  java.net.SocketException: Broken pipe
  
  
  
  -
   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]
 
 
 
 
 -
 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: tomcat crash ... unexpected exception

2004-06-23 Thread bastien.devos
by the way, I have maybe a problem in my configuration
If you have two minutes ... what do you think about it ?
and also, I have no jk2.properties file, is it absolutely necessary ?
- httpd.conf ---
...
LoadModule jk2_module modules/mod_jk2-2.0.4.so
...
- workers2.properties ---
### Scoreboard file ##
[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess
file=/application/apache/conf/shm.file
size=25000
### Uri Mapping ##
[uri:/jsp/*.jsp]
group=lb
[uri:/jkstatus/*]
worker=status:status
### Channels ##
[channel.socket:localhost:8009]
port=8009
host=10.1.1.1
lb_factor=1
[channel.socket:localhost:8010]
port=8010
host=10.1.1.1
lb_factor=1
### Workers ##
# the loadbalancer :
[lb:lb]
info=Default Load Balancer
# real workers (Tomcat instances)
[ajp13:localhost:8009]
info=Worker1
channel=channel.socket:localhost:8009
group=lb
ver=2
[ajp13:localhost:8010]
info=Worker2
channel=channel.socket:localhost:8010
group=lb
ver=1
# status worker
[status:status]
-- server.xml --
Server port=8505 shutdown=SHUTDOWN debug=0
  Service name=Tomcat
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 
minProcessors=100 maxProcessors=500 enableLookups=false acceptCount=100 debug=4 
connectionTimeout=12 useURIValidationHack=false 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
Logger className=org.apache.catalina.logger.FileLogger 
prefix=connector1-logger- suffix=.log timestamp=true /
  /Connector

  Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8010 
minProcessors=100 maxProcessors=500 enableLookups=false acceptCount=100 debug=4 
connectionTimeout=12 useURIValidationHack=false 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
Logger className=org.apache.catalina.logger.FileLogger 
prefix=connector2-logger- suffix=.log timestamp=true /
  /Connector

  Engine name=Apache defaultHost=localhost debug=0
  Host name=localhost debug=0 appBase=webapps unpackWARs=true 
autoDeploy=false
Aliaslocalhost/Alias
Context path=/jsp docBase=appweb/jsp debug=0 reloadable=false 
crossContext=true /
Logger className=org.apache.catalina.logger.FileLogger prefix=host-logger- 
suffix=.log timestamp=true /
  /Host
/Engine
  /Service
/Server

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


AW: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't wor k

2004-06-23 Thread Jens . Mueller
Oh sorry, that is just a typo.

That's the right mapping (don't know, where the l came from):

 servlet-mapping
 servlet-nameappmanager/servlet-name
 url-pattern/appmanager/url-pattern
 /servlet-mapping

And the login-Request is http://xxx/login/, and not http://xxx/login.

The curious is, that it works fine with tomcat 4.1.27.


I tried various requests with and without additional path informations.
getPathInfo still returns null. It is very strange...


-Ursprüngliche Nachricht-
Von: Veniamin Fichin [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. Juni 2004 15:11
An: Tomcat Users List
Betreff: Re: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't
work

Is this a typo or not?
* You have /lappmanager URL pattern (see first l letter), but 
request for http://xxx/appmanager;.
* Second, you have /login/ URL pattern (see suffix slash), but request 
for http://xxx/login;.

So none of your mappings triggered, what leads to default app-server 
invocation.

 And also the method request.getPathInfo() return null. I don't know why.

As of request.getPathInfo() method, please read J2EE's specs, it says:

cut
 Returns:
 a String, decoded by the web container, specifying extra path 
information that comes after the servlet path but before the query 
string in the request URL; or null if the URL does not have any extra 
path information
/cut

So for example you'd have request URL like 
http://servername/webapp/mappedname/and/this/fake/path;, getPathInfo() 
would return /and/this/fake/path, I guess. In your case it's null.

   - Jens

-- 
Veniamin Fichin


-
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: tomcat crash ... unexpected exception

2004-06-23 Thread Peter Lin
if you're using tomcat in standalone mode, I would recommend
commenting out the jk stuff all together. I noticed your minProcessors
is 100 and max is 500. You must get some serious load, or the usage
pattern is such that an unique user session has lots of requets.

good luck.

peter


On Wed, 23 Jun 2004 15:24:09 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 
 by the way, I have maybe a problem in my configuration
 If you have two minutes ... what do you think about it ?
 
 and also, I have no jk2.properties file, is it absolutely necessary ?
 
 - httpd.conf ---
 ...
 LoadModule jk2_module modules/mod_jk2-2.0.4.so
 ...
 - workers2.properties ---
 ### Scoreboard file ##
 [shm]
 info=Scoreboard. Required for reconfiguration and status with multiprocess
 file=/application/apache/conf/shm.file
 size=25000
 
 ### Uri Mapping ##
 [uri:/jsp/*.jsp]
 group=lb
 
 [uri:/jkstatus/*]
 worker=status:status
 
 ### Channels ##
 [channel.socket:localhost:8009]
 port=8009
 host=10.1.1.1
 lb_factor=1
 
 [channel.socket:localhost:8010]
 port=8010
 host=10.1.1.1
 lb_factor=1
 
 ### Workers ##
 # the loadbalancer :
 [lb:lb]
 info=Default Load Balancer
 
 # real workers (Tomcat instances)
 [ajp13:localhost:8009]
 info=Worker1
 channel=channel.socket:localhost:8009
 group=lb
 ver=2
 
 [ajp13:localhost:8010]
 info=Worker2
 channel=channel.socket:localhost:8010
 group=lb
 ver=1
 
 # status worker
 [status:status]
 
 -- server.xml --
 Server port=8505 shutdown=SHUTDOWN debug=0
   Service name=Tomcat
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009
 minProcessors=100 maxProcessors=500 enableLookups=false acceptCount=100 
 debug=4
 connectionTimeout=12 useURIValidationHack=false
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=connector1-logger- suffix=.log timestamp=true /
   /Connector
 
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8010
 minProcessors=100 maxProcessors=500 enableLookups=false acceptCount=100 
 debug=4
 connectionTimeout=12 useURIValidationHack=false
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=connector2-logger- suffix=.log timestamp=true /
   /Connector
 
   Engine name=Apache defaultHost=localhost debug=0
   Host name=localhost debug=0 appBase=webapps unpackWARs=true
 autoDeploy=false
 Aliaslocalhost/Alias
 Context path=/jsp docBase=appweb/jsp debug=0 reloadable=false
 crossContext=true /
 Logger className=org.apache.catalina.logger.FileLogger 
 prefix=host-logger-
 suffix=.log timestamp=true /
   /Host
 /Engine
   /Service
 /Server
 
 
 
 -
 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]



Defining data sources in context only

2004-06-23 Thread Christopher A. Brooks
Hi,

My problem is as follows.  I would like to have an ant script that
auto-deploys my webapp into Tomcat 5 including any data source resources it
might need (e.g. Database connections).  Thus far I have only been able to
define these resources in the server.xml file, which means my deployment
process requires two steps (deploy, then beg my admin to change my data
source references in the server.xml).

What are the best practices for a one click deploy with tomcat?  Thanks in
advance,

Chris


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



RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt

Although I'm not a mod_jk* user, I think it's quite 
unusual to define 2 CoyoteConnectors and 2 workers
for one tomcat instance.

Unless you have good reason to do so, I would remove
one of each. This introduces a complexity that is
not needed. (At least I that's my opinion)

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 3:24 PM
 To: Tomcat Users List
 Subject: Re: tomcat crash ... unexpected exception
 
 

 # real workers (Tomcat instances)
 [ajp13:localhost:8009]
 info=Worker1
 channel=channel.socket:localhost:8009
 group=lb
 ver=2
 
 [ajp13:localhost:8010]
 info=Worker2
 channel=channel.socket:localhost:8010
 group=lb
 ver=1
 
Connector 
 className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 
 minProcessors=100 maxProcessors=500 enableLookups=false 
 acceptCount=100 debug=4 
 connectionTimeout=12 useURIValidationHack=false 
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
  Logger className=org.apache.catalina.logger.FileLogger 
 prefix=connector1-logger- suffix=.log timestamp=true /
/Connector
 
Connector 
 className=org.apache.coyote.tomcat4.CoyoteConnector port=8010 
 minProcessors=100 maxProcessors=500 enableLookups=false 
 acceptCount=100 debug=4 
 connectionTimeout=12 useURIValidationHack=false 
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
  Logger className=org.apache.catalina.logger.FileLogger 
 prefix=connector2-logger- suffix=.log timestamp=true /
/Connector

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



[Dev] What is the best way to proceed...

2004-06-23 Thread Jérôme Duval
I am currently developing a web application using tomcat 5.0.24. The layout
of my application is like so:

frameset rows=180,*,57 framespacing=0 border=0 frameborder=0
frame ...
frameset cols=*,175 framespacing=0 border=0 frameborder=0
frameset rows=35,* framespacing=0 border=0 frameborder=0
frame noresize scrolling=no marginheight=0
marginwidth=0 src=bar.jsp name=bar
frame noresize scrolling=yes marginheight=0
marginwidth=0 src=view.jsp name=view
/frameset
frame noresize scrolling=no marginheight=0 marginwidth=0
src=naviBar.jsp name=navigation
/frameset
frame ...
/frameset

I currently store in each user's session a Viewing attribute which allows me
to tell which page they want to view and view.jsp reacts accordingly by
including the right html page. But now, I have a jsp for ordering online and
there is a lot of java code that gets turned to whitespace when served to
the client increasing the file size. I would thus like to convert this JSP
to a servlet.

Now I could specify the links to load into the view frame and use the
response's PrintWriter to output the content, but I would like to reload the
navigation frame at the same (because a button will go away and be replaced
with another one). I have seen examples, of two frames changing, but this
was always client side (using javascript for example) and I was wondering if
it was possible to do this server side.

In case you are wondering how I am doing it right now, people are constantly
reloading the index page (through the magic that is target=_top), and the
jsps content change. This works with the jsp that I currently have, but I
don't think it will work with the servlet because response.getWriter(); will
give me a writer that will write over index.html and thus, people will only
see what I write. I could recreate my layout on one big page instead, but it
hardly seems like I would be saving space!!!

Sorry for the long post. Your input is much appreciated!
Jerome


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



Web-App readiness with mod_jk2

2004-06-23 Thread Kommuru, Bhaskar
I am desperately looking for solution for this problem

Mod_jk2 directs the connection to AJP13 and does not see if Web-App is ready
in the web container. I know this is one of those missing features in
Mod_jk2/AJP.

Any one has any ideas of fixing this temporarily :-?

Thanks in advance
Bhaskar

__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___


Re: Apache2, Tomcat5 and mod_jk2 configuration problems

2004-06-23 Thread Chong Yu Meng
Hi Ryan,
It sounds like an error similar to one Andrew Clute encountered on Red 
Hat Enterprise Linux 3 (apr_md5_final). I transcribed some of the steps 
he took here : http://cymulacrum.net/writings/tomcat5/a1375.html

Can you test it first ? If it works, I would like to add a comment to 
the document that says that the steps apply to Red Hat 9 as well.

Regards,
pascal chong
Ryan McConigley wrote:
Greetings,
I have a problem.  I am trying to get Tomcat (5.0.25), Apache 
(2.0.49) and mod_jk2 (2.0.4) all to talk to each other under RedHat 9.0.

So far I can get Apache up and working on port 80 and Tomcat works 
fine on port 8080.  However, my users want to be able to use .jsp 
pages on their virtual hosts.

I did have it working fine on the old machine we had (Redhat 7.3, 
Apache 1.3, Tomcat 4 and mod_jk) but we upgraded and now its not working.

One thing I have noticed is when Tomcat starts up there is the 
message:
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: 
/usr/local/httpd-2.0.49/modules/jkjni.so: 
/usr/local/httpd-2.0.49/modules/jkjni.so: undefined symbol: apr_md5_final

I assumed I was getting this because Apache was not compilied in 
with apr support, so I recompiled it with --with-apr and 
--with-apr-util.  Apache still works, but when I tried to recompile 
mod_jk2 it tells me now that my apxs can not be found, even though 
prior it was finding it ok and its quite clearly in the location 
specified.

I'm not sure if that is a critical error or not or how to overcome 
it.  I have been trying different compile options, but still not 
getting much luck.

When you click on a .jsp page, all that happens is the browser 
just sits there continually loading.  In the tomcat logs you get a 
line which says INFO: No next and thats it.

Can anyone shed some light on my problem, before I do physical 
harm to the box in question.  The configuration files are as 
follows:   Also, can I have .jsp files enabled for some virtual 
servers and not for others, or is it an all or nothing affair?

--worker2.properties
# workers2.properties
# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard.  Required for reconfiguration and status with 
multiprocess servers
file=/usr/local/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

#UNIX domain socket
[channel.un:/usr/local/tomcat/work/jk2.socket]
tomcatId=localhst:8009
debug=0
# define the worker
#[ajp13:/usr/local/tomcat/work/jk2.socket]
#chanel=channel.un:/usr/local/tomcat/work/jk2.socket
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Announce a status worker
pstatus:status]
info=Status worker.  Displays runtime information.
[uri:/jkstatus/*]
group=status:status
# Uri mapping
[uri:/examples/*]
[uri:projects.csse.uwa.edu.au/*.jsp]
worker=ajp13:localhost:8009
[uri:perth-agentcity.csse.uwa.edu.au/*.jsp]
worker=ajp13:localhost:8009
 

---jk2_mod.conf (included in the apache.conf 
file)--
# Sample mod_jk2.conf  08-Feb-2004, located at:
# http://www.gknw.com/development/apache/docs/win32/mod_jk2/mod_jk2x.conf
#
# Load the mod_jk2 module
#
LoadModule jk2_module modules/mod_jk2.so

IfModule mod_jk2.c
#---
# Set the Apache2 logger level
#---
#
JkSet2 logger level debug
#---
# Set the alternate log file
#---
#
JkSet2 logger.file:0 file ${serverRoot}/logs/jk2.log
JkSet2 logger.file:0 level debug
#---
# Set the scoreboard file
#---
#
JkSet2 shm: file ${serverRoot}/logs/jk2.shm
JkSet2 shm: size 1048576
#---
# Where to find the workers2.properties file
#---
#
#JkSet config.file ${serverRoot}/conf/workers2.properties
#---
# Alternatively setup the workers here
#---
#
JkSet2 channel.socket:localhost:8009 info Ajp13 forwarding over 
socket
JkSet2 status: info Status worker, displays runtime information
JkSet2 workerEnv: logger logger.file:0

#---
# Configure the /jkstatus handler
#---
#
Location /jkstatus
JkUriSet group status:
JkUriSet info Map the /jkstatus handler to the Web server uri 
space
/Location

#---
# Configure Tomcat Example Applications

Re: AW: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't wor k

2004-06-23 Thread Veniamin Fichin
[EMAIL PROTECTED] wrote:
Oh sorry, that is just a typo.
That's the right mapping (don't know, where the l came from):
 servlet-mapping
 servlet-nameappmanager/servlet-name
 url-pattern/appmanager/url-pattern
 /servlet-mapping
And the login-Request is http://xxx/login/, and not http://xxx/login.
The curious is, that it works fine with tomcat 4.1.27.
I tried various requests with and without additional path informations.
getPathInfo still returns null. It is very strange...
   This' really strange, is it acceptable for you to upgrage to 5.x 
branch and try some simple mappings there?

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


What is the best way to test JDBC connection for alive

2004-06-23 Thread Vy Ho
If I have a connection, I want to test if it's still working (not just 
see if it's closed), how do I do this with the least CPU/resource cost?  
I saw one tutorial did something like:

stmt = conn.createStatement();
 if( null != stmt )
   stmt.execute(rollback work);
If an exception is thrown, then it's not good.  What's the implication 
of this statement (bad implication)?  Is there alternative?

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


Re: ROOT/index.jsp- REASON WHY EDITING FAILS

2004-06-23 Thread Mike Duffy
The ROOT web.xml contains the following lines which essentially renders the content of 
index.jsp
meaningless:



servlet

servlet-nameorg.apache.jsp.index_jsp/servlet-name

servlet-classorg.apache.jsp.index_jsp/servlet-class

/servlet



servlet-mapping

servlet-nameorg.apache.jsp.index_jsp/servlet-name

url-pattern/index.jsp/url-pattern

/servlet-mapping

Mike


--- QM [EMAIL PROTECTED] wrote:
 On Tue, Jun 22, 2004 at 12:44:06PM -0700, Mike Duffy wrote:
 : Good suggestion.  If the JSP is precompiled shouldn't I be able to go to the work 
 directory
 and
 : see index_jsp.class somewhere under a ROOT directory (like there is for other 
 webapps)?  I
 guess
 : one of my basic questions is that why don't I see a ROOT directory in the work 
 directory?
 
 You tell me -- how did you precompile?  
 
 If you're placing classes directly in the /work dir, then, yes;
 if you're building class files and updating web.xml, then, no.
 
 The former method of precompilation is Tomcat-specific and accounts for
 a JSP being updated.  The latter is for production deployments, in which
 case the JSPs should not change throughout the release lifetime.
 
 
 The root context may be under /work/_ in TC5, but don't quote me on
 that.
 
 -QM
 
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

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



Getting rid of URL encoded jsessionid

2004-06-23 Thread Daniel Farinha
Hi all,

I'm currently working with jetspeed on tomcat.

The client accepts cookies, but still when logging in to jetspeed there is a
jsessionid encoded on the URL.

http://localhost:8080/jetspeed/portal;jsessionid=F127ADD711D9734E54E462920DF
9AA73

This only happens 1 time, straight after logging in. After that the cookie
is used and the jsessionid no longer appears on the URLs.

It appears the server is sending both the cookie and the URL encoded session
id upon logging in, and when the client makes further requests with the
cookie, the server then stops URL encoding the session id.

My question is, how do I prevent the jsessionid from appearing on the URL
that one time?

Someone at the Jetspeed user list pointed out it's a setting in Tomcat's
server.xml but by looking at the docs I can't see an obvious solution.

Regards

Daniel


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



RE: Managing Tomcat logs

2004-06-23 Thread Veera Sivakumar
Thanks Matt,
I have followed your advice, able to rotate the logs date wise.

Shiva

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: 22 June 2004 14:12
To: Tomcat Users List
Subject: RE: Managing Tomcat logs



You could add a customer Logger tag to the context in your server.xml and add the 
swallowOutput=true attribute, this will put standard out and standard error into the 
log file that you specify which is rotated on a daily basis automatically for you by 
tomcat.

Ta
Matt

-Original Message-
From: Veera Sivakumar [mailto:[EMAIL PROTECTED]
Sent: 22 June 2004 10:47
To: Tomcat Users List
Subject: Managing Tomcat logs


Hi,
I am using Tomcat as web server for my application. I start Tomcat using windows 
service. All the logs generated by the Application are written in to a file called 
stdout.log which is under tomca/logs folder.
I have noticed that with continuous use of application,stdout file size increasing to 
a large extent. To delete the it I have to stop the tomcat.
Is there any way that I can manage the logs date wise automatically(without manual 
intervention). I am not using any third party tool for logging.
The logging mechanism I use is very simple.

We have class Debug.java that have a method log(String);
This log() method use System.out.println();
In the application, I use Debug.log(Exception);

I will be more happy if there is any way to manage logs.
I have also noticed the following logs generated by Tomcat:
1.localhost_log.2004-06-18.txt
2.localhost_access_log.2004_06_22.txt

How to maintain these logs?. Can we off them permanently?
Thanks in advance.

Regards
S.V.Sivakumar
QCA Project
Tata Infotech Limited
Tel:+44 1235 823411
[EMAIL PROTECTED] / [EMAIL PROTECTED]

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

This message is confidential.  You should not copy it
or disclose its contents to anyone.  You may use and apply the information
only for the intended purpose.  Internet communications are not secure and
therefore RM does not accept legal responsibility for the contents of this
message.  Any views or opinions presented are only those of the author and
not those of RM.  If this email has come to you in error please delete it
and any attachments.  Please note that RM may intercept incoming and
outgoing e-mail communications.

This email has been scanned for viruses by Trend ScanMail.

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



Re: tomcat crash ... unexpected exception

2004-06-23 Thread bastien.devos
if you're using tomcat in standalone mode, I would recommend
commenting out the jk stuff all together. 
Tomcat serves all .jsp files and Apache manages the rest. The idea is to increase 
performance by letting Tomcat only with its .jsp while leaving the rest to Apache.
Do you think it's a good choice ?

 I noticed your minProcessors is 100 and max is 500. You must get some serious load, or 
the usage pattern is such that an unique user session has lots of requets.

I raised those values to ensure the number of processor is no problem in the 
configuration. I just hope it doesn't create other problems instead ... ?


good luck.
peter
On Wed, 23 Jun 2004 15:24:09 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
by the way, I have maybe a problem in my configuration
If you have two minutes ... what do you think about it ?
and also, I have no jk2.properties file, is it absolutely necessary ?
- httpd.conf ---
...
LoadModule jk2_module modules/mod_jk2-2.0.4.so
...
- workers2.properties ---
### Scoreboard file ##
[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess
file=/application/apache/conf/shm.file
size=25000
### Uri Mapping ##
[uri:/jsp/*.jsp]
group=lb
[uri:/jkstatus/*]
worker=status:status
### Channels ##
[channel.socket:localhost:8009]
port=8009
host=10.1.1.1
lb_factor=1
[channel.socket:localhost:8010]
port=8010
host=10.1.1.1
lb_factor=1
### Workers ##
# the loadbalancer :
[lb:lb]
info=Default Load Balancer
# real workers (Tomcat instances)
[ajp13:localhost:8009]
info=Worker1
channel=channel.socket:localhost:8009
group=lb
ver=2
[ajp13:localhost:8010]
info=Worker2
channel=channel.socket:localhost:8010
group=lb
ver=1
# status worker
[status:status]
-- server.xml --
Server port=8505 shutdown=SHUTDOWN debug=0
 Service name=Tomcat
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009
minProcessors=100 maxProcessors=500 enableLookups=false acceptCount=100 
debug=4
connectionTimeout=12 useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   Logger className=org.apache.catalina.logger.FileLogger
prefix=connector1-logger- suffix=.log timestamp=true /
 /Connector
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8010
minProcessors=100 maxProcessors=500 enableLookups=false acceptCount=100 
debug=4
connectionTimeout=12 useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   Logger className=org.apache.catalina.logger.FileLogger
prefix=connector2-logger- suffix=.log timestamp=true /
 /Connector
 Engine name=Apache defaultHost=localhost debug=0
 Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=false
   Aliaslocalhost/Alias
   Context path=/jsp docBase=appweb/jsp debug=0 reloadable=false
crossContext=true /
   Logger className=org.apache.catalina.logger.FileLogger prefix=host-logger-
suffix=.log timestamp=true /
 /Host
   /Engine
 /Service
/Server

-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Defining data sources in context only

2004-06-23 Thread Jacob Kjome
Quoting Christopher A. Brooks [EMAIL PROTECTED]:

 Hi,
 
 My problem is as follows.  I would like to have an ant script that
 auto-deploys my webapp into Tomcat 5 including any data source resources it
 might need (e.g. Database connections).  Thus far I have only been able to
 define these resources in the server.xml file, which means my deployment
 process requires two steps (deploy, then beg my admin to change my data
 source references in the server.xml).
 
 What are the best practices for a one click deploy with tomcat?  Thanks in
 advance,
 

Put at context.xml file in the WAR file's META-INF directory.  The root
element is Context and includes anything that a normal Context has in
server.xml.  Deploy and you're set to go.

Jake

 Chris
 
 
 -
 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]



Modifying response to hyperlink certain words

2004-06-23 Thread Moran Ben-David
Hi.  I'm wondering if anyone has any thoughts on how to properly pick up the
responses of all Servlets/JSP's and modify them so that all words in a
dictionary are turned into hyperlinks?

 

Has anyone done this already?  I am inclined to use a Filter to do this,
however, does that require a complicated ServletResponseWrapper to catch all
the response output for my filter to modify before it's pumped out to the
output stream?

 

Any thoughts on this would be greatly appreciated.

 

Thanks,

Moran Ben-David



RE: list active sessions.

2004-06-23 Thread Jacob Kjome
Quoting Frank Zammetti [EMAIL PROTECTED]:

 I don't see that behavior.  Is there a setting in Tomcat to turn that
 function on and off perhaps?  None of my sessions survive a Tomcat restart,
 so I've never had to deal with this.
 

Tomcat will dump session objects which don't implement Serializable or are
marked as such, but fail serialization for whatever reason.  Make sure objects
are serializable and the counter will persist across restarts (as long as the
session hasn't already timed out).

Jake

 Frank
 
 
 From: Radek Liebzeit [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: list active sessions.
 Date: Wed, 23 Jun 2004 07:51:08 +0200
 
 Really nice.
 
 I am just wondering about one thing - about persistent sessions. I
 have a session counter based on the SessionListeners. It is increased
 when some session is created and decreased when the session is
 destroyed. So, when I restart the Tomcat server some sessions are
 recreated but counter state doesn't. Therefore, after session timeout,
 the counter status is negative.
 
 It's not problem for me, it is enough for my purposes. I am just
 wondering how do you solve this behaviour?
 
 Radek
 
 
   -Original Message-
   From: Frank Zammetti [mailto:[EMAIL PROTECTED]
   Sent: Monday, June 21, 2004 3:45 PM
   To: [EMAIL PROTECTED]
   Subject: RE: list active sessions.
  
   I spent a couple of days last week implementing just such a thing, so
 I
   feel
   qualified to answer :)
  
   There is no easy way to do it.  There USED to be a SessionContext
 object
   available in the servlet spec that would allow you to do a lot of cool
   things with sessions, but it was removed as of spec 2.1 I think
 because
   Sun
   believed it to be a security risk.  Unfortunately there was nothing
 added
   to
   take it's place.
  
   The way you have to do this, or at least one way (the only way I
 found) is
   to track it yourself.
  
   First, I already had an AppConfig object that contains a static
 HashMap.
   This has a bunch of config values for my app loaded from a config file
 at
   startup.  I then added an activeSessions HashMap to that class.
 Create a
   similar class for yourself, along the lines of the following:
  
   import java.util.HashMap;
   public class AppConfig {
 private static HashMap activeUsers = null;
 public static HashMap activeUsers() {
   return activeUsers;
 }
 public static void setActiveUsers(HashMap inActiveUsers) {
   activeUsers = inActiveUsers;
 }
   }
  
   Then, create a SessionListener something like the following:
  
   package com.mycompany.myapp;
   import java.util.HashMap;
   import javax.servlet.http.HttpSession;
   import javax.servlet.http.HttpSessionEvent;
   import javax.servlet.http.HttpSessionListener;
   public class SessionListener implements HttpSessionListener {
 public void sessionCreated(HttpSessionEvent se) {
   HashMap activeUsers = (HashMap)AppConfig.getActiveUsers();
   synchronized (activeUsers) {
 activeUsers.put(se.getSession().getId(), new HashMap());
   }
 }
 public void sessionDestroyed(HttpSessionEvent se) {
   HashMap activeUsers = (HashMap)AppConfig.getActiveUsers();
   synchronized (appConfig) {
 activeUsers.remove(se.getSession().getId());
   }
 }
   }
  
   Then just add the following to web.xml after your servlet section:
  
 listener
  
 listener-classcom.mycompany.myapp.SessionListener/listener-class
 /listener
  
   Basically, every time a session is created, you'll get an entry in the
   activeUsers HashMap keyed by sessionID, and the record will be removed
   when
   the session is destroyed.  Further, what I do is that when my logon
 Action
   is called, when the user is validated I add some information for that
 user
   into the HashMap (first name, last name, logon time, etc).  This
 allows me
   to have a pretty nice little tracking display in my app.
  
   The one problem you run into with this is that if the user just closes
 the
   browser window rather than using your nice logout function, the
 session
   lingers until the timeout period elapses.  I didn't like that!  My app
 is
   frames-based, and I already had one hidden frame, so I added the
 following
   to the body tag of that frame's source document:
  
   onUnload=openLogoffPopup();
  
   ... and then the openLogoffPopup() function:
  
 function openLogoffPopup() {
   windowHandle = window.open(, ,
 width=200,height=1,top=1,left=1);
   str =   + html + head + title + /title +
 /head;
   str +=  + body
   onLoad=\window.location='%=request.getContextPath()
   + /app/logoff.app%';\;
   str +=  + table width=\100%\ height=\100%\ border=\0\;
   str +=  + tr + td align=\center\ valign=\middle\;
   str +=  + span
   style=\color:#00;font-family:arial;font-size:11pt;font-
   weight:bold;\;
   str += Logging out of 

Re: Webapps Log4j config problem

2004-06-23 Thread Jacob Kjome
Hi Igor,

It's hard to say what is happening since Enhyda and Jonas are probably
controlling the classloader configuration for Tomcat5.  You could add a
log4j.xml file to Tomcat's common/classes directory for Tomcat's logging.  For
the webapp itself, make sure log4j.jar is in WEB-INF/lib and if you are
depending on Log4j autoconfiguration, make sure log4j.xml is in WEB-INF/classes,
not the root of BarracudaDiscRack.  BTW, you wrote Web-inf/lib.  Make double
sure that the directory is in all caps, so, WEB-INF/lib.  Case is important,
even on Windows.

Jake

Quoting Igor Smirnov [EMAIL PROTECTED]:

 Hi,
 
 I am having a problem with BarracudaDiscRack application that load withing
 Tomcat.
 I;m useing Enhydra, jonas 4.1, Tomcat 5.
 I have all the necessary files(lof4j, barracuda etc) jars in Web-inf/lib and
 the classes in Web-inf\classes.
 In the main BarracudaDiscRack folder, I have the log4j.xml that contains the
 following lines:
 
 ?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE log4j:configuration SYSTEM log4j.dtd
 log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;
 debug=false threshold=debug
 appender name=A1 class=org.apache.log4j.ConsoleAppender
 layout class=org.apache.log4j.PatternLayout
 param name=ConversionPattern value=%-4r [%t] %-5p %c %x -
 %m%n/
 /layout
 /appender
 appender name=A2 class=org.apache.log4j.FileAppender
 param name=File

value=C:/IgorEnhydra6.0-1/work/webapps/Enhydra/BarracudaDiscRack/WEB-INF/main.log
 /
 param name=Append value=false /
 layout class=org.apache.log4j.PatternLayout
 param name=ConversionPattern value=%-4r [%t] %-5p %c %x -
 %m%n/
 /layout
 /appender
 appender name=JUnitAppender class=org.apache.log4j.FileAppender
 param name=File

value=C:/IgorEnhydra6.0-1/work/webapps/Enhydra/BarracudaDiscRack/WEB-INF/test.log
 /
 param name=Append value=true /
 layout class=org.apache.log4j.PatternLayout
 param name=ConversionPattern value=%-4r [%t] %-5p %c %x -
 %m%n/
 /layout
 /appender
 logger name=test.org.enhydra.barracuda additivity=falselevel
 value=off/appender-ref ref=JUnitAppender//logger
 
 !-- standard debuggers which should stay on --
 logger name=org.enhydra.barracuda.plankton.Classesappender-ref
 ref=A1//logger
 logger
 name=org.enhydra.barracuda.plankton.data.ObjectRepositoryAssemblerlevel
 value=warn/appender-ref ref=A1//logger
 !-- other debuggers (testing/debugging purposes) --
 logger
 name=org.enhydra.barracuda.core.event.ApplicationGatewayappender-ref
 ref=A1//logger
 
 !-- Note: This root logger will be inherited by all loggers unless you
 use additivity=false. --
 root
 level value=warn/
 appender-ref ref=A1/
 !--appender-ref ref=A3/--
  !--appender-ref ref=A4/--
 /root
 /log4j:configuration
 
 Now, when the application is loaded I get an error:
 log4j:WARN No appenders could be found for logger (root).
 log4j:WARN Please initialize the log4j system properly.
 log4j:WARN No appenders could be found for logger
 (org.apache.catalina.session.ManagerBase)
 log4j:WARN Please initialize the log4j system properly.
 
 The servers starts, but no logging is performed.
 
 What might be going wrong. I had no similiar problem withing jonas 3x ant
 Tomcat 4x.
 Thank you!
 Igor

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



RE: list active sessions.

2004-06-23 Thread Frank Zammetti
How would the counter persist?  Even assuming the sessions persist 
(something I don't see, even though I know the sessions are fully 
serializable), the counter as I previously described is in-memory as part of 
a static class.  Are you talking about modifying it to use a database?  In 
that case, yes, I agree the counter should then persist as well.

Frank

From: Jacob Kjome [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: list active sessions.
Date: Wed, 23 Jun 2004 15:10:31 +
Quoting Frank Zammetti [EMAIL PROTECTED]:
 I don't see that behavior.  Is there a setting in Tomcat to turn that
 function on and off perhaps?  None of my sessions survive a Tomcat 
restart,
 so I've never had to deal with this.


Tomcat will dump session objects which don't implement Serializable or are
marked as such, but fail serialization for whatever reason.  Make sure 
objects
are serializable and the counter will persist across restarts (as long as 
the
session hasn't already timed out).

Jake
 Frank


 From: Radek Liebzeit [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: list active sessions.
 Date: Wed, 23 Jun 2004 07:51:08 +0200
 
 Really nice.
 
 I am just wondering about one thing - about persistent sessions. I
 have a session counter based on the SessionListeners. It is increased
 when some session is created and decreased when the session is
 destroyed. So, when I restart the Tomcat server some sessions are
 recreated but counter state doesn't. Therefore, after session timeout,
 the counter status is negative.
 
 It's not problem for me, it is enough for my purposes. I am just
 wondering how do you solve this behaviour?
 
 Radek
 
 
   -Original Message-
   From: Frank Zammetti [mailto:[EMAIL PROTECTED]
   Sent: Monday, June 21, 2004 3:45 PM
   To: [EMAIL PROTECTED]
   Subject: RE: list active sessions.
  
   I spent a couple of days last week implementing just such a thing, 
so
 I
   feel
   qualified to answer :)
  
   There is no easy way to do it.  There USED to be a SessionContext
 object
   available in the servlet spec that would allow you to do a lot of 
cool
   things with sessions, but it was removed as of spec 2.1 I think
 because
   Sun
   believed it to be a security risk.  Unfortunately there was nothing
 added
   to
   take it's place.
  
   The way you have to do this, or at least one way (the only way I
 found) is
   to track it yourself.
  
   First, I already had an AppConfig object that contains a static
 HashMap.
   This has a bunch of config values for my app loaded from a config 
file
 at
   startup.  I then added an activeSessions HashMap to that class.
 Create a
   similar class for yourself, along the lines of the following:
  
   import java.util.HashMap;
   public class AppConfig {
 private static HashMap activeUsers = null;
 public static HashMap activeUsers() {
   return activeUsers;
 }
 public static void setActiveUsers(HashMap inActiveUsers) {
   activeUsers = inActiveUsers;
 }
   }
  
   Then, create a SessionListener something like the following:
  
   package com.mycompany.myapp;
   import java.util.HashMap;
   import javax.servlet.http.HttpSession;
   import javax.servlet.http.HttpSessionEvent;
   import javax.servlet.http.HttpSessionListener;
   public class SessionListener implements HttpSessionListener {
 public void sessionCreated(HttpSessionEvent se) {
   HashMap activeUsers = (HashMap)AppConfig.getActiveUsers();
   synchronized (activeUsers) {
 activeUsers.put(se.getSession().getId(), new HashMap());
   }
 }
 public void sessionDestroyed(HttpSessionEvent se) {
   HashMap activeUsers = (HashMap)AppConfig.getActiveUsers();
   synchronized (appConfig) {
 activeUsers.remove(se.getSession().getId());
   }
 }
   }
  
   Then just add the following to web.xml after your servlet section:
  
 listener
  
 listener-classcom.mycompany.myapp.SessionListener/listener-class
 /listener
  
   Basically, every time a session is created, you'll get an entry in 
the
   activeUsers HashMap keyed by sessionID, and the record will be 
removed
   when
   the session is destroyed.  Further, what I do is that when my logon
 Action
   is called, when the user is validated I add some information for 
that
 user
   into the HashMap (first name, last name, logon time, etc).  This
 allows me
   to have a pretty nice little tracking display in my app.
  
   The one problem you run into with this is that if the user just 
closes
 the
   browser window rather than using your nice logout function, the
 session
   lingers until the timeout period elapses.  I didn't like that!  My 
app
 is
   frames-based, and I already had one hidden frame, so I added the
 following
   to the body tag of that frame's source document:
  
   onUnload=openLogoffPopup();
  
   ... and then 

RE: Modifying response to hyperlink certain words

2004-06-23 Thread Ralph Einfeldt

I think that's the way to go.

But I don't see why the ServletResponseWrapper should 
be complicated.

There are so many articles and open source filter 
implementations, that can give you a starting point 
for it:

http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html
http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html

http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html


 -Original Message-
 From: Moran Ben-David [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 5:04 PM
 To: [EMAIL PROTECTED]
 Subject: Modifying response to hyperlink certain words
 
 
 Hi.  I'm wondering if anyone has any thoughts on how to 
 properly pick up the
 responses of all Servlets/JSP's and modify them so that all words in a
 dictionary are turned into hyperlinks?
 
 Has anyone done this already?  I am inclined to use a Filter 
 to do this, however, does that require a complicated 
 ServletResponseWrapper to catch all the response output 
 for my filter to modify before it's pumped out to the
 output stream?
 
  
 

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



debug setting

2004-06-23 Thread Yana Begun
Hi,

I am using Tomcat 5 running on Windows XP. 

What should I set to be able to debug server part of web application? 

 

Thanks,

Yana



RE: list active sessions.

2004-06-23 Thread Jacob Kjome
Quoting Frank Zammetti [EMAIL PROTECTED]:

 How would the counter persist?  Even assuming the sessions persist
 (something I don't see, even though I know the sessions are fully
 serializable), the counter as I previously described is in-memory as part of
 a static class.  Are you talking about modifying it to use a database?  In
 that case, yes, I agree the counter should then persist as well.
 
The place where you are storing the counter is a static class?  You mean a
static inner class?  Or did you, maybe mean a static variable?  You do know that
static variables are transient, right?

Sessions do persist, and if you are storing an object in the session that is
holding a non-static/non-transient counter variable and you restart the server,
and you visit the page that shows the counter and your session hasn't timed out,
then the counter value you see should reflect the last value stored before the
server restart (plus incrementing the counter, if that is what you do).


...Ok, I just re-read what you wrote previously and you are talking about
storing a count of sessions in a SessionListener.  So, I guess what I've written
kind of misses the point of what you are asking.  What you'd need to do is get a
handle, somehow, to Tomcat's count of sessions.  All your session listner would
do is count sessions which are created while the listener is listening.  Even if
you stored the value in a database, it probably wouldn't be valid because if
sessions expired between stop and start of Tomcat, I'm not sure you
SessionListener would be notified about this at startup?  You'd have to
investigate that.  If it is called for each session expiring, you could keep
that value in the database, initialize your SessionListener counter variable
with that value and then let the listener remove/add sessions.  

Jake

 Frank
 
 
 From: Jacob Kjome [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: list active sessions.
 Date: Wed, 23 Jun 2004 15:10:31 +
 
 Quoting Frank Zammetti [EMAIL PROTECTED]:
 
   I don't see that behavior.  Is there a setting in Tomcat to turn that
   function on and off perhaps?  None of my sessions survive a Tomcat
 restart,
   so I've never had to deal with this.
  
 
 Tomcat will dump session objects which don't implement Serializable or are
 marked as such, but fail serialization for whatever reason.  Make sure
 objects
 are serializable and the counter will persist across restarts (as long as
 the
 session hasn't already timed out).
 
 Jake
 
   Frank
  
  
   From: Radek Liebzeit [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Subject: RE: list active sessions.
   Date: Wed, 23 Jun 2004 07:51:08 +0200
   
   Really nice.
   
   I am just wondering about one thing - about persistent sessions. I
   have a session counter based on the SessionListeners. It is increased
   when some session is created and decreased when the session is
   destroyed. So, when I restart the Tomcat server some sessions are
   recreated but counter state doesn't. Therefore, after session timeout,
   the counter status is negative.
   
   It's not problem for me, it is enough for my purposes. I am just
   wondering how do you solve this behaviour?
   
   Radek
   
   
 -Original Message-
 From: Frank Zammetti [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 21, 2004 3:45 PM
 To: [EMAIL PROTECTED]
 Subject: RE: list active sessions.

 I spent a couple of days last week implementing just such a thing,
 so
   I
 feel
 qualified to answer :)

 There is no easy way to do it.  There USED to be a SessionContext
   object
 available in the servlet spec that would allow you to do a lot of
 cool
 things with sessions, but it was removed as of spec 2.1 I think
   because
 Sun
 believed it to be a security risk.  Unfortunately there was nothing
   added
 to
 take it's place.

 The way you have to do this, or at least one way (the only way I
   found) is
 to track it yourself.

 First, I already had an AppConfig object that contains a static
   HashMap.
 This has a bunch of config values for my app loaded from a config
 file
   at
 startup.  I then added an activeSessions HashMap to that class.
   Create a
 similar class for yourself, along the lines of the following:

 import java.util.HashMap;
 public class AppConfig {
   private static HashMap activeUsers = null;
   public static HashMap activeUsers() {
 return activeUsers;
   }
   public static void setActiveUsers(HashMap inActiveUsers) {
 activeUsers = inActiveUsers;
   }
 }

 Then, create a SessionListener something like the following:

 package com.mycompany.myapp;
 import java.util.HashMap;
 import javax.servlet.http.HttpSession;
 import 

Apache Tomcat Inerconnection

2004-06-23 Thread Ashish-Kumar . Balyan

Hi,

I need some help on Apache and TOmcat interconnectivity

I have Apache1.3.19 and Tomcat4.1.24 running on two different machines.
I need to run servlets.
Can anyone help me on this subject. Any pointers for configuration using
JK2 as
I need to use loadbalancing

Regads
-AB



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



Tomcat 5.0 under Windows ME

2004-06-23 Thread e-Denton Subscriber
I just downloaded Tomcat 5.0 to run on my Windows ME system. When I try to
run the Configure Tomcat program, I get:

The tomcat5w.exe file is linked to missing export
NETAPI32.DLL:MetwkstaGetInfo.

NETAPI32.DLL seems to be a Windows XP file. I did the same download on my XP
machine and it is working.

Any idea what my problem is under Windows ME?

Thanks for your help.



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



RE: Tomcat 5.0 under Windows ME

2004-06-23 Thread Mladen Turk


 -Original Message-
 From: e-Denton Subscriber
 
 I just downloaded Tomcat 5.0 to run on my Windows ME system. When I try to
 run the Configure Tomcat program, I get:
 
 The tomcat5w.exe file is linked to missing export
 NETAPI32.DLL:MetwkstaGetInfo.
 
 NETAPI32.DLL seems to be a Windows XP file. I did the same download on my
 XP
 machine and it is working.
 
 Any idea what my problem is under Windows ME?
 

DOS machines are not supported by procrun, neither they will be ever (at
least from my side :)

You can use NT, 2K, XP, 2003, etc...

MT.


smime.p7s
Description: S/MIME cryptographic signature


Tomcat 5.0.25 getRemoteUser()

2004-06-23 Thread Robert Bateman
I've been looking thru the archived messages and can't find a match to my 
problem

I'm using Tomcat 5.0.25 to serve up a JSP site.  I do not use Apache httpd as 
my front end.  All authentication for Tomcat is thru tomcat and is set to 
BASIC.

On my site is a frame page that I want to display varying pieces of 
information.  Part of the information is a button to allow the sites users to 
log into the site.  Once logged in, the frame page should display other 
information (like: Welcome User...)

The problem I'm having is that the page that displays in the frame is not 
protected.  Each time I call request.getRemoteUser() it returns null or -1.  
Doing a little experimenting, I found out that if I call 
request.getRemoteUser() from a protected page, it returns -1 before I log in 
and returns information after I log in.

I was under the (mistaken) impression that request.getRemoteUser() should 
return the identity of the user once they have logged into the site or null / 
-1 before that time.  I appear to be mistaken, OR Tomcat 5.0.25 is behaving 
in a manner I don't expect.

Any thoughts or ideas?  I would prefer to *not* implement my own forms based 
login - if possible (management mandate)


Thanks!

Bob

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



RE: Tomcat 5.0 under Windows ME

2004-06-23 Thread Robert Harper
It looks like Tomcat was build to run on a Win32 system that was built more on
NT technology. ME was the next version of 95 and 98 and is a dead-end. You might
try to find out if there is an update for ME that will include a version of
NETAPI32.DLL that contains the needed function or upgrade. 
Robert S. Harper
801.265.8800 ex. 255

 -Original Message-
 From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 9:58 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 5.0 under Windows ME
 
 I just downloaded Tomcat 5.0 to run on my Windows ME system. When I try to
 run the Configure Tomcat program, I get:
 
 The tomcat5w.exe file is linked to missing export
 NETAPI32.DLL:MetwkstaGetInfo.
 
 NETAPI32.DLL seems to be a Windows XP file. I did the same download on my XP
 machine and it is working.
 
 Any idea what my problem is under Windows ME?
 
 Thanks for your help.
 
 
 
 -
 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: Tomcat 5.0 under Windows ME

2004-06-23 Thread Caldarale, Charles R
 From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
 Subject: Tomcat 5.0 under Windows ME
 
 I just downloaded Tomcat 5.0 to run on my Windows ME 
 system. When I try to run the Configure Tomcat program

Don't use the .exe files under older Windows versions - they are primarily for running 
Tomcat as a Windows service, a concept that doesn't exist for 95/98/Me. Just use the 
.bat files to start it up under a DOS box. Also make sure you have a reasonably 
current Sun J2SDK installed, not just a JRE.

 - Chuck

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and 
is thus for use only by the intended recipient. If you received this in error, please 
contact the sender and delete the e-mail and its attachments from all computers.

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



Re: Tomcat 5.0 under Windows ME

2004-06-23 Thread e-Denton Subscriber
Thx for your help.

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 11:27 AM
Subject: RE: Tomcat 5.0 under Windows ME


 From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
 Subject: Tomcat 5.0 under Windows ME

 I just downloaded Tomcat 5.0 to run on my Windows ME
 system. When I try to run the Configure Tomcat program

Don't use the .exe files under older Windows versions - they are primarily
for running Tomcat as a Windows service, a concept that doesn't exist for
95/98/Me. Just use the .bat files to start it up under a DOS box. Also make
sure you have a reasonably current Sun J2SDK installed, not just a JRE.

 - Chuck

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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



help: where's ROOT.war?

2004-06-23 Thread javac javac
from http://www.eatj.com/ I uploaded a file after logging in.  when i open the 
Tomcat Web Application Manager it's not listed.  however, when i clicked on upload 
file and tried to upload it again, Tomcat said it already existed.

1.)  where is it?
2.)  how do i edit a .war file?  i believe my mapping isn't correct


thanks,

[EMAIL PROTECTED]
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



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



my jsps don't work anymore :(

2004-06-23 Thread Casas, Claudia
 
I have no idea what happened! Yesterday everything was working
beautifully.
Today all I did was to restart the server, and now my jsps do not work
from my home directories.
 
If I access http://localhost:8080/examples  or http://localhost/examples
, it works fine.
But if I try to access a jsp from my homedir
http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get
type Status report
message /myacct/index.jsp
description The requested resource (/myacct/index.jsp) is not available.
I have added the following to the server.xml file:
Context path=/myacct docBase=/home/myacct/wwwdocs debug=0

reloadable=true crossContext=true
/Context
It seemed to be working. I have no idea what is going on.
 
!-- Claudia Casas
Technology does not drive change -- it enables change. 
 


Tomcat 4.1 - 5.0

2004-06-23 Thread e-Denton Subscriber
I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?



!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /

Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter

/ResourceParams
/Context



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



RE: Tomcat 4.1 - 5.0

2004-06-23 Thread Randall Svancara
I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml

Randall

-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1 - 5.0


I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?



!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /

Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter

/ResourceParams
/Context



-
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: mod_jk install problem

2004-06-23 Thread Graeme
No problem, thanks anyway for having a look.

Cheers,

G :)
- Original Message - 
From: Kommuru, Bhaskar [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 8:25 AM
Subject: RE: mod_jk install problem


 Sorry friend,
 I dont have any clue on issue. I think you should also check what are your
 gcc, make, perl versions and if they are suggested versions to comple your
 jk.

 My problem was with my 'make' version. It was a bit older and able to
 understand makefile grammer.

 Good luck.

 -Original Message-
 From: Graeme [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 21, 2004 7:50 PM
 To: Tomcat Users List
 Subject: Re: mod_jk install problem


 Thank you to everyone who replied to my post.

 BK, I've got apache installed an running.  The version I'm using is:
 Apache/2.0.40 Server

 I installed mod_jk from
 http://www.apache.org/dist/jakarta/tomcat-connectors/jk/ , the file I
 downloaded is:  jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz

 After doing ./configure --with-apxs=/usr/sbin/apxs  I tried issuing the
 make command I got this:

  ../common/jk_ajp12_worker.lo ../common/jk_connect.lo
 ../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo
 ../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo
 ../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo
 ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo
 ../common/jk_ajp14_worker.lo ../common/jk_md5.lo
../common/jk_ajp_common.lo
 ../common/jk_context.lo
 i386-redhat-linux-gcc: ../common/jk_ajp12_worker.lo: No such file or
 directory
 i386-redhat-linux-gcc: ../common/jk_connect.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_msg_buff.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_util.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_ajp13.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_pool.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_worker.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_ajp13_worker.lo: No such file or
 directory
 i386-redhat-linux-gcc: ../common/jk_lb_worker.lo: No such file or
directory
 i386-redhat-linux-gcc: ../common/jk_sockbuf.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_map.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_uri_worker_map.lo: No such file or
 directory
 i386-redhat-linux-gcc: ../common/jk_ajp14.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_ajp14_worker.lo: No such file or
 directory
 i386-redhat-linux-gcc: ../common/jk_md5.lo: No such file or directory
 i386-redhat-linux-gcc: ../common/jk_ajp_common.lo: No such file or
directory
 i386-redhat-linux-gcc: ../common/jk_context.lo: No such file or directory
 make[1]: *** [mod_jk.la] Error 1
 make[1]: Leaving directory
 `/usr/src/jakarta-tomcat-connectors-jk-1.2.5-src/jk/native/apache-2.0'
 make: *** [all-recursive] Error 1
 [EMAIL PROTECTED] native]#


 As you will see in my initial post, these missing files appear to be in
the
 apache-2.0 directory.

 Do you think I should copy them to the directory it expects to find them
and
 try issuing make again, or do something else?


 Cheers in advance,

 Graeme :)




 - Original Message - 
 From: Kommuru, Bhaskar [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, June 21, 2004 12:04 PM
 Subject: RE: mod_jk install problem


  I have struggled/managed before to compile on solaris8. but not on
 Redhat9.
  What is you mod_jk version?
  I remember i have changed something like.. apx path .configure file as
i
  found it hardcoded there. I have specified the apx-path to apache
  installation directory (usr/local/apache2/apxs).
  Have you installed your apache as well? If so, what is the version?
  Let me know, hope we can sort it out!
  BK
 
  -Original Message-
  From: Graeme [mailto:[EMAIL PROTECTED]
  Sent: Sunday, June 20, 2004 7:45 PM
  To: Tomcat Users List
  Subject: mod_jk install problem
 
 
  Afternoon all, I'm trying to install mod_jk and I can't create the
 mod_jk.so
  file.  I think the problem is something to do with:
 
  need to check for Perl first, apxs depends on it...checking for perl...
  /usr/bin/perl
  Use of uninitialized value in concatenation (.) or string at
 /usr/sbin/apxs
  line 262.
 
  I'm using Redhat 9.
 
  Anyone got any ideas?
 
 
  [EMAIL PROTECTED] native]# ./configure --with-apxs=/usr/sbin/apxs
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for gawk... gawk
  checking whether make sets $(MAKE)... yes
  checking build system type... i686-pc-linux-gnu
  checking host system type... i686-pc-linux-gnu
  checking for style of include used by make... GNU
  checking for gcc... gcc
  checking for C compiler default output... a.out
  checking whether the C compiler works... yes
  checking whether we are 

Re: Defining data sources in context only

2004-06-23 Thread QM
On Wed, Jun 23, 2004 at 07:56:02AM -0600, Christopher A. Brooks wrote:
: My problem is as follows.  I would like to have an ant script that
: auto-deploys my webapp into Tomcat 5 including any data source resources it
: might need (e.g. Database connections).  Thus far I have only been able to
: define these resources in the server.xml file, which means my deployment
: process requires two steps (deploy, then beg my admin to change my data
: source references in the server.xml).
: 
: What are the best practices for a one click deploy with tomcat?  Thanks in
: advance,

Have you looked into context.xml?
See the Tomcat docs for details -- this may be what you're after.

The context.xml file contains a context's (webapp's) Context element
from server.xml, but it stays with the webapp.  iow, no more need to
disturb the global server.xml for deployments.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat 4.1 - 5.0

2004-06-23 Thread e-Denton Subscriber
Thanks--it works!

- Original Message - 
From: Randall Svancara [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; e-Denton
Subscriber [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 2:23 PM
Subject: RE: Tomcat 4.1 - 5.0


I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml

Randall

-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1 - 5.0


I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?



!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /

Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter

/ResourceParams
/Context



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




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



RE: Modifying response to hyperlink certain words

2004-06-23 Thread Moran Ben-David
Thanks for the great references.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 11:30 AM
To: Tomcat Users List
Subject: RE: Modifying response to hyperlink certain words


I think that's the way to go.

But I don't see why the ServletResponseWrapper should 
be complicated.

There are so many articles and open source filter 
implementations, that can give you a starting point 
for it:

http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html
http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html
http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html

http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html


 -Original Message-
 From: Moran Ben-David [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 5:04 PM
 To: [EMAIL PROTECTED]
 Subject: Modifying response to hyperlink certain words
 
 
 Hi.  I'm wondering if anyone has any thoughts on how to 
 properly pick up the
 responses of all Servlets/JSP's and modify them so that all words in a
 dictionary are turned into hyperlinks?
 
 Has anyone done this already?  I am inclined to use a Filter 
 to do this, however, does that require a complicated 
 ServletResponseWrapper to catch all the response output 
 for my filter to modify before it's pumped out to the
 output stream?
 
  
 


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



Tomcat does not compiles my .jsp!

2004-06-23 Thread Cyberjobe
Hi!

I have followed the tomcat's installation manual and I did make the Servlets
work. But not the .jsp files!

So... I modified the server.xml and put this:
Context path=/jsp1 docBase=/home/cyberjobe/jsp1
reloadable=true crossContext=true/

On the /home/cyberjobe/jsp1 I have the file index.jsp (just a test) . I also
have a dir WEB-INF.

I restart the Tomcat and... try to conect on localhost:8080/jsp1/index.jsp.
I got this messages:

.
org.apache.jasper.JasperException: Unable to compile class for JSP
(...)
java.io.FileNotFoundException:
/usr/local/.../localhost/jsp1/org/apache/jsp/index_jsp.java
(...)
.

What can I do to solve this?

Thanks,
Cyberjobe


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



tomcat kernel32.dll fault

2004-06-23 Thread Bill Sweeney
Hello - 

We are running a load test on our app and have followed many of the performance and 
memory tweaks and testing advice from the Users List - thanks to all who contribute.

We hit a problem where under load (50 users generated by loadrunner) the Windows 2003 
Server running Tomcat4.1.30 will throw the following error to the windows event log:

: 41 70 70 6c 69 63 61 74   Applicat
0008: 69 6f 6e 20 46 61 69 6c   ion Fail
0010: 75 72 65 20 20 74 6f 6d   ure  tom
0018: 63 61 74 2e 65 78 65 20   cat.exe 
0020: 31 2e 31 2e 30 2e 30 20   1.1.0.0 
0028: 69 6e 20 6b 65 72 6e 65   in kerne
0030: 6c 33 32 2e 64 6c 6c 20   l32.dll 
0038: 35 2e 32 2e 33 37 39 30   5.2.3790
0040: 2e 30 20 61 74 20 6f 66   .0 at of
0048: 66 73 65 74 20 30 30 30   fset 000
0050: 30 31 37 62 31017b1

... and the tomcat exits.  This is reproducable on 2 different Win2003 servers. On any 
given machine the offset is the same every time the error occurs.

Googled the error a few ways and can't find any info.

Has anyone encountered this? or have a suggestion to try and locate the cause?

Thanks - 

Bill


 


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



Re: tomcat kernel32.dll fault

2004-06-23 Thread Peter Lin
from my own experience, this is caused by something in the application
and not in Tomcat. the only way you're going to be able to figure it
out is to run Tomcat in OptimizeIt and watch it.

there's no easy way to track down the cause. It is achievable, just
requires lots of patience.

peter


On Wed, 23 Jun 2004 16:17:51 -0400, Bill Sweeney [EMAIL PROTECTED] wrote:
 
 Hello -
 
 We are running a load test on our app and have followed many of the performance and 
 memory tweaks and testing advice from the Users List - thanks to all who contribute.
 
 We hit a problem where under load (50 users generated by loadrunner) the Windows 
 2003 Server running Tomcat4.1.30 will throw the following error to the windows event 
 log:
 
 : 41 70 70 6c 69 63 61 74   Applicat
 0008: 69 6f 6e 20 46 61 69 6c   ion Fail
 0010: 75 72 65 20 20 74 6f 6d   ure  tom
 0018: 63 61 74 2e 65 78 65 20   cat.exe
 0020: 31 2e 31 2e 30 2e 30 20   1.1.0.0
 0028: 69 6e 20 6b 65 72 6e 65   in kerne
 0030: 6c 33 32 2e 64 6c 6c 20   l32.dll
 0038: 35 2e 32 2e 33 37 39 30   5.2.3790
 0040: 2e 30 20 61 74 20 6f 66   .0 at of
 0048: 66 73 65 74 20 30 30 30   fset 000
 0050: 30 31 37 62 31017b1
 
 ... and the tomcat exits.  This is reproducable on 2 different Win2003 servers. On 
 any given machine the offset is the same every time the error occurs.
 
 Googled the error a few ways and can't find any info.
 
 Has anyone encountered this? or have a suggestion to try and locate the cause?
 
 Thanks -
 
 Bill
 
 -
 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]



Easy /servlet question

2004-06-23 Thread e-Denton Subscriber
I have a very simple question, to which neither I nor my wife can find the
answer.

My servlet is in the WEB-INF/classes directory of my application directory.
For some reason, I can't get this simple construction--it's in all the JSP
books--to work:

http://127.0.0.1:8080/e-Denton/servlet/Upload_CnW


I get this error:

HTTP Status 404 - /e-Denton/servlet/Upload_CnW
message /e-Denton/servlet/Upload_CnW
description The requested resource (/e-Denton/servlet/Upload_CnW) is not
available.

I can get it to wotk with a sevlet mapping, but not without it.



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



RE: Tomcat does not compiles my .jsp!

2004-06-23 Thread Jérôme Duval
You probably have an error in you jsp file. To test this right a normal html
file with a jsp extension. If you aren't familiar with html, just go to any
website and copy the source of the page and use that...

-Original Message-
From: Cyberjobe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 3:59 PM
To: [EMAIL PROTECTED]
Subject: Tomcat does not compiles my .jsp!

Hi!

I have followed the tomcat's installation manual and I did make the Servlets
work. But not the .jsp files!

So... I modified the server.xml and put this:
Context path=/jsp1 docBase=/home/cyberjobe/jsp1
reloadable=true crossContext=true/

On the /home/cyberjobe/jsp1 I have the file index.jsp (just a test) . I also
have a dir WEB-INF.

I restart the Tomcat and... try to conect on localhost:8080/jsp1/index.jsp.
I got this messages:

.
org.apache.jasper.JasperException: Unable to compile class for JSP
(...)
java.io.FileNotFoundException:
/usr/local/.../localhost/jsp1/org/apache/jsp/index_jsp.java
(...)
.

What can I do to solve this?

Thanks,
Cyberjobe


-
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: Easy /servlet question

2004-06-23 Thread Jérôme Duval
You must specify your servlet in the web.xml file. This is how Tomcat knows
what to do when you ask it for Upload_CnW. This might be unnecessary to
mention, but you also have to compile your class before launching Tomcat.
Anything else would just be shots in the dark, since you haven't really told
us what you wanted to know and detailed your situation enough.

-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 4:29 PM
To: [EMAIL PROTECTED]
Subject: Easy /servlet question

I have a very simple question, to which neither I nor my wife can find the
answer.

My servlet is in the WEB-INF/classes directory of my application directory.
For some reason, I can't get this simple construction--it's in all the JSP
books--to work:

http://127.0.0.1:8080/e-Denton/servlet/Upload_CnW


I get this error:

HTTP Status 404 - /e-Denton/servlet/Upload_CnW message
/e-Denton/servlet/Upload_CnW description The requested resource
(/e-Denton/servlet/Upload_CnW) is not available.

I can get it to wotk with a sevlet mapping, but not without it.



-
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: Tomcat does not compiles my .jsp!

2004-06-23 Thread Jérôme Duval
 Corrected a stupid mistake:

You probably have an error in you jsp file. To test this write a normal html
file with a jsp extension. If you aren't familiar with html, just go to any
website and copy the source of the page and use that...


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



SingleSignOn

2004-06-23 Thread Davis, Nick
Hi,

I'm using TOMCAT 4.1.15 and I have enabled the SingleSignOn feature.  

Everything works fine except when I logoff.  (I'm 'logging off' by
invalidating the session.)  I have to logoff from the application that I
originally logged on.  For example, if I logon to App1, I can access App2
without logging on again, but I can not logoff from App2.  

Any help would be appreciated.

Kind Regards,
Nick




tomcat 5.0.25 and windows 2003

2004-06-23 Thread zhicheng wang
dear all

does any one know if tomcat 5.0.25 runs on windows
server 2003 smoothly? also if IIS also running (on
different port), will they live in the same server
well?

thanks
cheng

=
Best wishes
Z C Wang





___ALL-NEW Yahoo! Messenger - 
so many all-new ways to express yourself http://uk.messenger.yahoo.com

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



WEBDAV error - date and time string

2004-06-23 Thread cyclecarl-hsx
I'm trying to use the Adobe GoLive 7.0 WEBDAV client with a Tomcat 
5.0.27.  When I attempt to connect, GoLive reports
 
Date and time operations cannot be performed on this resource.
 
and provides the status
 
Server Error: The date and time string (last modified) sent by the 
server for resource / is not in ISO8601- or RFC0822-format
 
The archive for tomcat-user has a message from 2002 with the same 
complaint, but no response.  Anyone know what the I have to do to get Tomcat 
and GoLive to be nice?



Re: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc

2004-06-23 Thread Parsons Technical Services
Sorry for the delay. Was off line for a few days. Fat fingers and in a rush
to get out the door. You are correct it is chown. You need to apply it to
the tomcat home directory. I do not recommend the chmod 777. Opens things up
to much. Okay for testing.

Doug


- Original Message - 
From: Fernando Fernandez [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, June 21, 2004 10:52 PM
Subject: RE: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc


 Hi Doug,

 Thanks for your suggestion. For some reason, my Linux (7.2) doesn't like
 the chusr command. Is that the same function provided by the chown -R
 tomcat.tomcat /opt/jakarta-tomcat-5.0.25 command? If so, I already had
 that applied. Here is what you see in the directory structure:

 drwxrwxrwx3 tomcat   tomcat   1024 Jun 17 23:27 ./
 drwxrwxrwx   11 tomcat   tomcat   1024 Jun 17 23:27 ../
 drwxrwxrwx2 tomcat   tomcat   1024 Jun 18 00:19 _/
 [EMAIL PROTECTED]
 [/opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com]#

 There is nothing under the _ directory except for a tldCache.ser
 file. If I manually create the
 /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com/_/org/apac
 he/jsp directory structure and change the ownership using chown -R
 tomcat.tomcat
 /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com/_/org
 then the page starts working. So, I'm pretty sure Tomcat cannot define
 those directories and therefore the jsp compile fails.

 Any help will be very much appreciated.

 Thanks,

 Fernando.


 -Original Message-
 From: Parsons Technical Services [mailto:[EMAIL PROTECTED]

 Sent: Sunday, June 20, 2004 3:54 PM
 To: Tomcat Users List
 Subject: Re: Setup problem with Tomcat 5.0.25 running as a daemon under
 jsvc

 Do a
 chgrp -R youruser tomcatBaseDir

 and a

 chusr -R youruser tomcatBaseDir

 To have the tomcat directory structure that is owned and belongs to the
 user
 specified in jsvc.

 Doug
 www.parsonstechnical.com


 - Original Message - 
 From: Fernando Fernandez [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, June 20, 2004 1:28 PM
 Subject: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc


  Hi all,
 
  I found a problem that might be more of a jsvc problem than a tomcat
  issue. But perhaps someone has had the same issue and knows the
  solution. When a user creates a new subdomain (e.g.
  http://subdomain.mydomain.com) and publishes a new Java Server Page,
  they get the following error:
 
  java.io.FileNotFoundException:
 
 /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.mydomain.com/_/org/ap
  ache/jsp/test_jsp.java
  java.io.FileOutputStream.open(Native Method)
  java.io.FileOutputStream.init(FileOutputStream.java:179)
  java.io.FileOutputStream.init(FileOutputStream.java:70)
 
  org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
 
 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
  va:511)
 
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
  va:274)
 
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 
  It looks like the problem has something to do with Tomcat trying to
  create the new directory structure under Tomcat's 'work' directory,
  because I don't see part of the directory path mentioned in the
 message.
  And when I start Tomcat using /bin/startup.sh as root, the page runs
  fine and the directory structure is created. After that, any new page
  published works fine in the original setup.
 
  I tried 'chmod -R 777 work' to allow changes to that directory by
  anyone, but it still doesn't work. I tried specifying root as the user
  in the jsvc call, and it doesn't make a difference. Is this behaviour
 by
  design or is it a problem, probably in jsvc? If a solution is not
  possible using jsvc to run Tomcat as a daemon, is there another way to
  run it (I'm a newbie to Tomcat, and I first tried the recommendation
 in
  Apache's web site).
 
  Thanks for your help,
 
  Fernando.
 
 
  -
  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]


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





-

RE: WEBDAV error - date and time string

2004-06-23 Thread Mark Thomas
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 23, 2004 10:19 PM
 To: [EMAIL PROTECTED]
 Subject: WEBDAV error - date and time string
 
 I'm trying to use the Adobe GoLive 7.0 WEBDAV client with a Tomcat 
 5.0.27.  When I attempt to connect, GoLive reports
  
 Date and time operations cannot be performed on this resource.
  
 and provides the status
  
 Server Error: The date and time string (last modified) sent by the 
 server for resource / is not in ISO8601- or RFC0822-format
  
 The archive for tomcat-user has a message from 2002 with the same 
 complaint, but no response.  Anyone know what the I have to 
 do to get Tomcat 
 and GoLive to be nice?

Right now, now idea. Let me have a look and get back to you.

Mark



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



Re: Tomcat 4.1 - 5.0

2004-06-23 Thread Emerson Cargnin
I thought that warfile/META-INFO/context.xml was the right place
e-Denton Subscriber wrote:
Thanks--it works!
- Original Message - 
From: Randall Svancara [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; e-Denton
Subscriber [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 2:23 PM
Subject: RE: Tomcat 4.1 - 5.0

I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml
Randall
-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1 - 5.0
I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?

!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /
Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter
/ResourceParams
/Context

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

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 4.1 - 5.0

2004-06-23 Thread Emerson Cargnin
At least to use default place to be expanded let's say, to just use 
the datasource configuration

e-Denton Subscriber wrote:
Thanks--it works!
- Original Message - 
From: Randall Svancara [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; e-Denton
Subscriber [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 2:23 PM
Subject: RE: Tomcat 4.1 - 5.0

I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml
Randall
-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1 - 5.0
I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?

!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /
Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter
/ResourceParams
/Context

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

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


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Easy /servlet question

2004-06-23 Thread Lee, Paul NYC
Tomcat 3.x allowed access to servlets under a common mapping (/servlet/*) by
default.  In Tomcat 4.x the developers stopped this behavior by default.
This was done by the invoker servlet.  

To enable this, under $CATALINA_HOME/conf, modify the web.xml file.  Search
for invoker and you should find something like this:

!-- The mapping for the invoker servlet --
!--
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
--

Just uncomment and it should work.  Note that /servlet/ is no longer part
of the specification as of 2.3.  Mapping it is recommended.

Regards,
Paul

-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 4:29 PM
To: [EMAIL PROTECTED]
Subject: Easy /servlet question


I have a very simple question, to which neither I nor my wife can find the
answer.

My servlet is in the WEB-INF/classes directory of my application directory.
For some reason, I can't get this simple construction--it's in all the JSP
books--to work:

http://127.0.0.1:8080/e-Denton/servlet/Upload_CnW


I get this error:

HTTP Status 404 - /e-Denton/servlet/Upload_CnW
message /e-Denton/servlet/Upload_CnW
description The requested resource (/e-Denton/servlet/Upload_CnW) is not
available.

I can get it to wotk with a sevlet mapping, but not without it.



-
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: WEBDAV error - date and time string

2004-06-23 Thread Mark Thomas
OK. From the error message it looks like you have a broken client. It is
validating the date against a very old spec (RFC0822).

To clarify:
The WEBDAV spec specifics that dates must be formatted according to section
3.3.1 of RFC2068.

Section 3.3.1 RFC2068 specifies that dates may be any one of the following
formats:
Sun, 06 Nov 1994 08:49:37 GMT  ; RFC 822, updated by RFC 1123
Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
Sun Nov  6 08:49:37 1994   ; ANSI C's asctime() format 
with the first format being the preferred format. The WEBDAV servlet uses this
preferred format.

You need to take this up with Adobe.

Mark

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 23, 2004 10:31 PM
 To: 'Tomcat Users List'
 Subject: RE: WEBDAV error - date and time string
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, June 23, 2004 10:19 PM
  To: [EMAIL PROTECTED]
  Subject: WEBDAV error - date and time string
  
  I'm trying to use the Adobe GoLive 7.0 WEBDAV client with a Tomcat 
  5.0.27.  When I attempt to connect, GoLive reports
   
  Date and time operations cannot be performed on this resource.
   
  and provides the status
   
  Server Error: The date and time string (last modified) sent by the 
  server for resource / is not in ISO8601- or RFC0822-format
   
  The archive for tomcat-user has a message from 2002 with the same 
  complaint, but no response.  Anyone know what the I have to 
  do to get Tomcat 
  and GoLive to be nice?
 
 Right now, now idea. Let me have a look and get back to you.
 
 Mark
 
 
 
 -
 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: my jsps don't work anymore :(

2004-06-23 Thread Lee, Paul NYC
Can you post your error message?

You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that doesn't
work.  Does it with localhost?

-Original Message-
From: Casas, Claudia [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 3:16 PM
To: Tomcat Users List
Subject: my jsps don't work anymore :(


 
I have no idea what happened! Yesterday everything was working beautifully.
Today all I did was to restart the server, and now my jsps do not work from
my home directories.
 
If I access http://localhost:8080/examples  or http://localhost/examples ,
it works fine. But if I try to access a jsp from my homedir
http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get type
Status report message /myacct/index.jsp description The requested resource
(/myacct/index.jsp) is not available. I have added the following to the
server.xml file:
Context path=/myacct docBase=/home/myacct/wwwdocs debug=0

reloadable=true crossContext=true
/Context
It seemed to be working. I have no idea what is going on.
 
!-- Claudia Casas
Technology does not drive change -- it enables change. 
 

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



Re: Easy /servlet question

2004-06-23 Thread e-Denton Subscriber
Thanks, Paul. Problem (mystery) solved.

- Original Message - 
From: Lee, Paul NYC [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 4:51 PM
Subject: RE: Easy /servlet question


 Tomcat 3.x allowed access to servlets under a common mapping (/servlet/*)
by
 default.  In Tomcat 4.x the developers stopped this behavior by default.
 This was done by the invoker servlet.

 To enable this, under $CATALINA_HOME/conf, modify the web.xml file.
Search
 for invoker and you should find something like this:

 !-- The mapping for the invoker servlet --
 !--
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping
 --

 Just uncomment and it should work.  Note that /servlet/ is no longer
part
 of the specification as of 2.3.  Mapping it is recommended.

 Regards,
 Paul

 -Original Message-
 From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 4:29 PM
 To: [EMAIL PROTECTED]
 Subject: Easy /servlet question


 I have a very simple question, to which neither I nor my wife can find the
 answer.

 My servlet is in the WEB-INF/classes directory of my application
directory.
 For some reason, I can't get this simple construction--it's in all the JSP
 books--to work:

 http://127.0.0.1:8080/e-Denton/servlet/Upload_CnW


 I get this error:

 HTTP Status 404 - /e-Denton/servlet/Upload_CnW
 message /e-Denton/servlet/Upload_CnW
 description The requested resource (/e-Denton/servlet/Upload_CnW) is not
 available.

 I can get it to wotk with a sevlet mapping, but not without it.



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





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



development/production configuration for JSPs

2004-06-23 Thread Emerson Cargnin
May I set the following in the web.xml of the CATALINA_HOME/conf ??? 
Instead of put this in every application???

init-param
param-namedevelopment/param-name
param-valuefalse/param-value
/init-param
init-param
param-namereloading/param-name
param-valuefalse/param-value
/init-param
init-param
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: WEBDAV error - date and time string

2004-06-23 Thread cyclecarl-hsx
Thanks.  I will take this up with Adobe and let you know what happens.

Mark Thomas [EMAIL PROTECTED] wrote:OK. From the error message it looks like you 
have a broken client. It is
validating the date against a very old spec (RFC0822).

To clarify:
The WEBDAV spec specifics that dates must be formatted according to section
3.3.1 of RFC2068.

Section 3.3.1 RFC2068 specifies that dates may be any one of the following
formats:
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format 
with the first format being the preferred format. The WEBDAV servlet uses this
preferred format.

You need to take this up with Adobe.

Mark

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 23, 2004 10:31 PM
 To: 'Tomcat Users List'
 Subject: RE: WEBDAV error - date and time string
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, June 23, 2004 10:19 PM
  To: [EMAIL PROTECTED]
  Subject: WEBDAV error - date and time string
  
  I'm trying to use the Adobe GoLive 7.0 WEBDAV client with a Tomcat 
  5.0.27. When I attempt to connect, GoLive reports
  
  Date and time operations cannot be performed on this resource.
  
  and provides the status
  
  Server Error: The date and time string (last modified) sent by the 
  server for resource / is not in ISO8601- or RFC0822-format
  
  The archive for tomcat-user has a message from 2002 with the same 
  complaint, but no response. Anyone know what the I have to 
  do to get Tomcat 
  and GoLive to be nice?
 
 Right now, now idea. Let me have a look and get back to you.
 
 Mark
 
 
 
 -
 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: my jsps don't work anymore :(

2004-06-23 Thread Casas, Claudia
I am getting the following error message:

HTTP Status 404 - /myacct/test.jsp

Type: Status report
Message: /myacct/test.jsp
Description: The requested resource (/myacct/test.jsp) is not available

I copied test.jsp into the /examples/jsp directory in the tomcat root.
When I access http://localhost:8080/examples/jsp/mytest.jsp it works
perfectly.

I am getting the error message when I try to access it from
/home/myacct/wwwdocs. I am thinking that my context path for my
homedirectory is not being taken, but I do not know why.

-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 3:58 PM
To: 'Tomcat Users List'
Subject: RE: my jsps don't work anymore :(

Can you post your error message?

You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that
doesn't
work.  Does it with localhost?

-Original Message-
From: Casas, Claudia [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 3:16 PM
To: Tomcat Users List
Subject: my jsps don't work anymore :(


 
I have no idea what happened! Yesterday everything was working
beautifully.
Today all I did was to restart the server, and now my jsps do not work
from
my home directories.
 
If I access http://localhost:8080/examples  or http://localhost/examples
,
it works fine. But if I try to access a jsp from my homedir
http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get
type
Status report message /myacct/index.jsp description The requested
resource
(/myacct/index.jsp) is not available. I have added the following to the
server.xml file:
Context path=/myacct docBase=/home/myacct/wwwdocs debug=0

reloadable=true crossContext=true
/Context
It seemed to be working. I have no idea what is going on.
 
!-- Claudia Casas
Technology does not drive change -- it enables change. 
 

-
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: my jsps don't work anymore :(

2004-06-23 Thread Casas, Claudia
By the way, I tried it with http://localhost:8080/myacct/test.jsp and I
am still getting the same error. 

-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 3:58 PM
To: 'Tomcat Users List'
Subject: RE: my jsps don't work anymore :(

Can you post your error message?

You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that
doesn't
work.  Does it with localhost?

-Original Message-
From: Casas, Claudia [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 3:16 PM
To: Tomcat Users List
Subject: my jsps don't work anymore :(


 
I have no idea what happened! Yesterday everything was working
beautifully.
Today all I did was to restart the server, and now my jsps do not work
from
my home directories.
 
If I access http://localhost:8080/examples  or http://localhost/examples
,
it works fine. But if I try to access a jsp from my homedir
http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get
type
Status report message /myacct/index.jsp description The requested
resource
(/myacct/index.jsp) is not available. I have added the following to the
server.xml file:
Context path=/myacct docBase=/home/myacct/wwwdocs debug=0

reloadable=true crossContext=true
/Context
It seemed to be working. I have no idea what is going on.
 
!-- Claudia Casas
Technology does not drive change -- it enables change. 
 

-
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: tomcat 5.0.25 and windows 2003

2004-06-23 Thread Joao Medeiros
I'm running Tomcat 5.0.25 on 2003 with Apache and JK2 and it works fine
--JM
zhicheng wang wrote:
dear all
does any one know if tomcat 5.0.25 runs on windows
server 2003 smoothly? also if IIS also running (on
different port), will they live in the same server
well?
thanks
cheng
=
Best wishes
Z C Wang



___ALL-NEW Yahoo! Messenger - 
so many all-new ways to express yourself http://uk.messenger.yahoo.com
-
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: IllegalArgumentException in jsp:forward

2004-06-23 Thread Giri, Sandeep
The following code is also throwing the same error:
 jsp:forward page=my.jsp
jsp:param name=message value=%= message % /
jsp:param name=MailId value=%= mailId % /
/jsp:forward

Someone please help.

Thanks.
Regards,
Sandeep Giri

-Original Message-
From: deepak shripat mane [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 16, 2004 9:58 AM
To: Tomcat Users List
Subject: Re: IllegalArgumentException in jsp:forward


  
Hii..

For forwarding JSP Page u must use following Syntax

jsp:forward page=myJsp.jsp 
u can specify the list of parameters u can forwarded
/jsp:forward


Deepak


On Wed, 16 Jun 2004 Giri,Sandeep wrote :
Hi!
The following code:

jsp:forward page=myJsp.jsp /

is throwing the following exception on tomcat 4.0 (perhaps):

Included servlet error: 500
Location: /servlets/showClientSubmissions.jsp
Error Location: /servlets/generaltemplate.jsp
Internal Servlet Error:

javax.servlet.ServletException
   at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:459)
   at
servlets._0002fservlets_0002fshowClientSubmissions_0002ejspshowClientSub
missions_jsp_0._jspService(_0002fservlets_0002fshowClientSubmissions_000
2ejspshowClientSubmissions_jsp_0.java:450)
   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:177)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher
Impl.java:194)
   at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:4
21)
   at
servlets._0002fservlets_0002flogin_0002ejsplogin_jsp_11._jspService(_000
2fservlets_0002flogin_0002ejsplogin_jsp_11.java:118)
   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:177)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:797)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnec
tion(Ajp12ConnectionHandler.java:166)
   at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
   at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
   at a 
 href=http://www.ntsearch.com/search.php?q=javav=56;java/a.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.IllegalArgumentException
   at javax.servlet.http.HttpUtils.parseName(HttpUtils.java:285)
   at
javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:154)
   at
org.apache.tomcat.facade.RequestDispatcherImpl.addQueryString(RequestDis
patcherImpl.java:491)
   at
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcher
Impl.java:333)
   at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:4
14)
   at
servlets._0002fservlets_0002fshowClientSubmissions_0002ejspshowClientSub
missions_jsp_0._jspService(_0002fservlets_0002fshowClientSubmissions_000
2ejspshowClientSubmissions_jsp_0.java:440)
   at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:177)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
   at org.apache.tomcat.core.Handler.service(Handler.java:286)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at

please help urgent!! Exception when a method returned a Serializable object from Jboss

2004-06-23 Thread Kam Lung Leung
Hello,

Any help or suggestion is greatly appreciated.
I have a Servlet that deployed in a standalone Tomcat version 4.1.30. 
The Tomcat is running in the same server as Jboss 3.2.1. The servlet 
accesses a method of a remote session bean that is deployed in Jboss. 
This method returns a java object that implements java.io.Serializable. 
The servlet accesses the remote session bean with the following code:

  |   UserControllerRemoteHome homeObject;
  |   String remoteJndiName = UserControllerBeanJNDI;
  |homeObject = (UserControllerRemoteHome) 
  |   homesFactory.lookUpHome(remoteJndiName, 
UserControllerRemoteHome.class);
  |// get the EJBObject, UserControllerRemote
  |UserControllerRemote ejbObject = homeObject.create();
  | 
  | // Now problem so far up to this point, but an Exception occurred when 
  | // the validateUserPassword method returned a java serializable object  
  | // BasicUserInformationDO, however; when the validateUserPassword returned 
  | // null then no exception occurred.
  | // The log file producted by jboss server.log does not show any exception at all
  | BasicUserInformationDO basicUserInfoDO = null;
  | try {
  |basicUserInfoDO = (BasicUserInformationDO)
  | ejbObject.validateUserPassword( 
Integer.parseInt(userID),
  | 
Short.parseShort(subID),
  | password, 
sessionID);
  |   } catch (IOException ioEx) {
  | request.getSession().getServletContext().log(IOException,
  | new Throwable(ioEx.toString()));
  |   } catch (ServletException servletEx) {
  | request.getSession().getServletContext().log(Servlet Exception,
  | new Throwable(servletEx.toString()));
  |   }
  | } catch (RemoteException remoteEx) {
  | request.getSession().getServletContext().log(Remote Exception,
  | new Throwable(remoteEx.toString()));
  | } catch (CreateException createEx) {
  | request.getSession().getServletContext().log(create Exception,
  | new Throwable(createEx.toString()));
  | } catch (IOException ioEx) {
  | request.getSession().getServletContext().log(IOException,
  | new Throwable(ioEx.toString()));
  | } catch (Exception Ex) {
  | request.getSession().getServletContext().log(Exception,
  | new Throwable(Ex.toString()));
  | }
**   Here is the method that returns the serializable object 


  | public BasicUserInformationDO validateUserPassword(int userID, short subID,
  |   String password, String sessioID)
  |   {
  |  
  | BasicUserInformationDO basicUserInfoDO = null;
  | // To valid the password we need to access the UserBean (ejb-name). However, 
we also
  | // to return the BasicUserInformationDO object, thus we need to access the
  | // UserAccountBean (ejb-name). So we need toltal of two references to fulfill 
this
  | // mission.
  | // Get a UserBean's home object from the EJBLocalHomeFactory
  | try {
  |   // get an instance of the UserEjbUtil
  |   UserEjbUtil userBeanUtil = UserEjbUtil.getInstance();
  | 
  |   // get the EJBObject, UserLocal
  |   UserLocal userObject = 
userBeanUtil.getUser(StringUtilities.getPrimaryKey(userID, subID));
  | 
  |   if (userObject != null) {
  | // Now we check the password from the user input against the password from 
the database
  | 
  |   // get the EJBObject, UserAccountLocal
  |   UserAccountEjbUtil userAccountBeanUtil =  
UserAccountEjbUtil.getInstance();
  | 
  |   UserAccountLocal userAccountObject = userAccountBeanUtil.getUserAccount(
  |   
StringUtilities.getPrimaryKey(userID, subID));
  | 
  |   if (userAccountObject != null) {
  | // Now get the serviceTypesSubscribed and numberOfServicesSubscribed 
from the UserAccountBean
  | basicUserInfoDO =  new 
BasicUserInformationDO(userObject.getFirstName(), userObject.getLastName(),
  | 
  |   userObject.getMiddleName(), userID, 
subID,
  |   
userAccountObject.getNumberOfServicesSubscribed(),
  |   
userAccountObject.getServiceTypesSubscribed());
  | if (log.isDebugEnabled()) {
  |   log.debug(basicUserInfoDO.toString());
  | }
  |   }//End if userAccountObject
  | }//End if
  |   }//End if userObject
  | } catch (IOException ioEx) {
  | 

RE: my jsps don't work anymore :(

2004-06-23 Thread Erik Earle
With no logs, this is hard to diagnose but...check permission on the 
/home/myacct.  Does the user Tomcat is running under have access?


Original Message Follows
From: Casas, Claudia [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: my jsps don't work anymore :(
Date: Wed, 23 Jun 2004 16:29:20 -0600
By the way, I tried it with http://localhost:8080/myacct/test.jsp and I
am still getting the same error.
-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 3:58 PM
To: 'Tomcat Users List'
Subject: RE: my jsps don't work anymore :(
Can you post your error message?
You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that
doesn't
work.  Does it with localhost?
-Original Message-
From: Casas, Claudia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 3:16 PM
To: Tomcat Users List
Subject: my jsps don't work anymore :(

I have no idea what happened! Yesterday everything was working
beautifully.
Today all I did was to restart the server, and now my jsps do not work
from
my home directories.
If I access http://localhost:8080/examples  or http://localhost/examples
,
it works fine. But if I try to access a jsp from my homedir
http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get
type
Status report message /myacct/index.jsp description The requested
resource
(/myacct/index.jsp) is not available. I have added the following to the
server.xml file:
Context path=/myacct docBase=/home/myacct/wwwdocs debug=0
reloadable=true crossContext=true
/Context
It seemed to be working. I have no idea what is going on.
!-- Claudia Casas
Technology does not drive change -- it enables change. 
-
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]
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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


RE: my jsps don't work anymore :(

2004-06-23 Thread Casas, Claudia
I know I should not do this. But I just started tomcat as root. And
tried my jsp unde my /home/myacct and still nothing. 

This is so frustrating, yesterday everything was working so nice. We are
in a very tight deadline, and I am really getting desperate at this
point.

Please help.

-Original Message-
From: Erik Earle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 5:12 PM
To: [EMAIL PROTECTED]
Subject: RE: my jsps don't work anymore :(


With no logs, this is hard to diagnose but...check permission on the 
/home/myacct.  Does the user Tomcat is running under have access?



Original Message Follows
From: Casas, Claudia [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: my jsps don't work anymore :(
Date: Wed, 23 Jun 2004 16:29:20 -0600

By the way, I tried it with http://localhost:8080/myacct/test.jsp and I
am still getting the same error.

-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 3:58 PM
To: 'Tomcat Users List'
Subject: RE: my jsps don't work anymore :(

Can you post your error message?

You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that
doesn't
work.  Does it with localhost?

-Original Message-
From: Casas, Claudia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 3:16 PM
To: Tomcat Users List
Subject: my jsps don't work anymore :(



I have no idea what happened! Yesterday everything was working
beautifully.
Today all I did was to restart the server, and now my jsps do not work
from
my home directories.

If I access http://localhost:8080/examples  or http://localhost/examples
,
it works fine. But if I try to access a jsp from my homedir
http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get
type
Status report message /myacct/index.jsp description The requested
resource
(/myacct/index.jsp) is not available. I have added the following to the
server.xml file:
 Context path=/myacct docBase=/home/myacct/wwwdocs
debug=0

 reloadable=true crossContext=true
 /Context
It seemed to be working. I have no idea what is going on.

!-- Claudia Casas
Technology does not drive change -- it enables change. 


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

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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



Unknown weird error

2004-06-23 Thread Kunthar
Hi all,

I am really stuck on this;

jsp page headers
%@ page language=java import=java.io.*, java.util.*, java.sql.*, java.text.* %
%@ page errorPage=errorPg.jsp %
%@ page buffer=32kb %
jsp:include page=header.jsp flush=false /


My code;

String somedate;

somedate  = request.getParameter(somedate); 

SimpleDateFormat formatter = new
  SimpleDateFormat(dd.MM.);
 SimpleDateFormat formatter2 = new
  SimpleDateFormat(MM.dd.);
  ParsePosition pos = new ParsePosition(0);
 java.util.Date somedate2 = 
  formatter.parse(somedate, pos);
 somedate = formatter2.format(somedate2);  

And error is;

usr/local/tomcat5/work/Catalina/localhost/kaplan/org/apache/jsp/cekgiris_jsp.java:389: 
pos is already defined in 
_jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
java.text.ParsePosition pos = new ParsePosition(0);
^


I tried directly refer to java.text and java.util and i've changed pos to something 
but no chance...

I know this is not a place to ask but in here time is around 2:30 AM on the morning 
and i am really getting crazy with this holly error.
Or do you know any good date conversion trick for databases or particularly for 
Postgresql?

Thank you to all

Gokhan


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.707 / Virus Database: 463 - Release Date: 16.06.2004

Re: Apache2, Tomcat5 and mod_jk2 configuration problems

2004-06-23 Thread Ryan McConigley
At 10:09 PM 23/06/2004 +0800, you wrote:
Hi Ryan,
It sounds like an error similar to one Andrew Clute encountered on Red Hat 
Enterprise Linux 3 (apr_md5_final). I transcribed some of the steps he 
took here : http://cymulacrum.net/writings/tomcat5/a1375.html

Can you test it first ? If it works, I would like to add a comment to the 
document that says that the steps apply to Red Hat 9 as well.

Regards,
pascal chong
Thanks for that.  I gave that a whirl, putting in the extra 
library and that solved the problem of the undefined symbol apr_md5_final 
error, but now I'm getting the following error instead:

INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/local/httpd-2.0.49/modules/jkjni.so: 
/usr/local/httpd-2.0.49/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno

Which would appear that that linked library isn't correct.
Any hints?


Ryan McConigley wrote:
Greetings,
I have a problem.  I am trying to get Tomcat (5.0.25), Apache 
(2.0.49) and mod_jk2 (2.0.4) all to talk to each other under RedHat 9.0.

So far I can get Apache up and working on port 80 and Tomcat works 
fine on port 8080.  However, my users want to be able to use .jsp pages 
on their virtual hosts.

I did have it working fine on the old machine we had (Redhat 7.3, 
Apache 1.3, Tomcat 4 and mod_jk) but we upgraded and now its not working.

One thing I have noticed is when Tomcat starts up there is the message:
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/local/httpd-2.0.49/modules/jkjni.so: 
/usr/local/httpd-2.0.49/modules/jkjni.so: undefined symbol: apr_md5_final

I assumed I was getting this because Apache was not compilied in 
with apr support, so I recompiled it with --with-apr and 
--with-apr-util.  Apache still works, but when I tried to recompile 
mod_jk2 it tells me now that my apxs can not be found, even though prior 
it was finding it ok and its quite clearly in the location specified.

I'm not sure if that is a critical error or not or how to overcome 
it.  I have been trying different compile options, but still not getting 
much luck.

When you click on a .jsp page, all that happens is the browser just 
sits there continually loading.  In the tomcat logs you get a line which 
says INFO: No next and thats it.

Can anyone shed some light on my problem, before I do physical harm 
to the box in question.  The configuration files are as follows:   Also, 
can I have .jsp files enabled for some virtual servers and not for 
others, or is it an all or nothing affair?
*snip*
--
  Ryan McConigley - Systems Administrator  _.-,
 Computer Science   University of Western Australia.--'  '-._
   Tel: (+61 8) 6488 7082 - Fax: (+61 8) 6488 1089   _/`-  _  '.
[EMAIL PROTECTED] - http://www.csse.uwa.edu.au/~ryan  ''._`.. \
 ` \;
 You're just jealous because the voices are talking to me;_\

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


Re: Tomcat does not compiles my .jsp!

2004-06-23 Thread Cyberjobe
Well, this is my new index.jsp file:

HTML
BODY
Hi!
/BODY
/HTML

And this the same error message (complete now):
...
   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: Unable to compile class for JSP

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
ava:519)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:274)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292
)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

   root cause
java.io.FileNotFoundException:
/usr/local/jakarta-tomcat-5.0.25/work/Catalina/l
ocalhost/jsp1/org/apache/jsp/index_jsp.java
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.init(FileOutputStream.java:176)
java.io.FileOutputStream.init(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
ava:511)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:274)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292
)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
...

My server is on Linux and I create a tomcat user to run it.

What may be wrong?


Thanks,
Cyberjobe


- Original Message - 
From: Jérôme Duval [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 5:38 PM
Subject: RE: Tomcat does not compiles my .jsp!


 Corrected a stupid mistake:

 You probably have an error in you jsp file. To test this write a normal
html
 file with a jsp extension. If you aren't familiar with html, just go to
any
 website and copy the source of the page and use that...


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



Re: Apache2, Tomcat5 and mod_jk2 configuration problems

2004-06-23 Thread Chong Yu Meng
Hi Ryan,
I should have asked this earlier, but are you using the RPM version of 
Apache or compiling the source tarball ? I notice that your directory is 
/usr/local, which indicates that you are probably using the source 
tarball (for RH9 rpms, it would be /etc/httpd).

If you are using the source tarball, there are a LOT of things that are 
different. I believe you are missing a package, hence the gdbm error. I 
cannot recall at the moment what the name of the package is -- can you 
do a search on rpmfind ? Another thing: apxs is located inside 
/usr/local/httpd-2.0.49 -- just do a find /usr/local/httpd-2.0.49 -name 
apxs to locate it.

Did you do a Minimal install for Red Hat ? You will need to ensure that 
you have the necessary packages installed. See this for a short list : 
http://cymulacrum.net/writings/tomcat5/c875.html#JK2_INTEGRATION_SETUP

You probably don't need apr and apr-util because you installed Apache 
from source.

Regards,
pascal chong
Ryan McConigley wrote:
At 10:09 PM 23/06/2004 +0800, you wrote:
Hi Ryan,
It sounds like an error similar to one Andrew Clute encountered on 
Red Hat Enterprise Linux 3 (apr_md5_final). I transcribed some of the 
steps he took here : http://cymulacrum.net/writings/tomcat5/a1375.html

Can you test it first ? If it works, I would like to add a comment to 
the document that says that the steps apply to Red Hat 9 as well.

Regards,
pascal chong

Thanks for that.  I gave that a whirl, putting in the extra 
library and that solved the problem of the undefined symbol 
apr_md5_final error, but now I'm getting the following error instead:

INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: 
/usr/local/httpd-2.0.49/modules/jkjni.so: 
/usr/local/httpd-2.0.49/lib/libaprutil-0.so.0: undefined symbol: 
gdbm_errno

Which would appear that that linked library isn't correct.
Any hints?


Ryan McConigley wrote:
Greetings,
I have a problem.  I am trying to get Tomcat (5.0.25), Apache 
(2.0.49) and mod_jk2 (2.0.4) all to talk to each other under RedHat 
9.0.

So far I can get Apache up and working on port 80 and Tomcat 
works fine on port 8080.  However, my users want to be able to use 
.jsp pages on their virtual hosts.

I did have it working fine on the old machine we had (Redhat 
7.3, Apache 1.3, Tomcat 4 and mod_jk) but we upgraded and now its 
not working.

One thing I have noticed is when Tomcat starts up there is the 
message:
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: 
/usr/local/httpd-2.0.49/modules/jkjni.so: 
/usr/local/httpd-2.0.49/modules/jkjni.so: undefined symbol: 
apr_md5_final

I assumed I was getting this because Apache was not compilied in 
with apr support, so I recompiled it with --with-apr and 
--with-apr-util.  Apache still works, but when I tried to recompile 
mod_jk2 it tells me now that my apxs can not be found, even though 
prior it was finding it ok and its quite clearly in the location 
specified.

I'm not sure if that is a critical error or not or how to 
overcome it.  I have been trying different compile options, but 
still not getting much luck.

When you click on a .jsp page, all that happens is the browser 
just sits there continually loading.  In the tomcat logs you get a 
line which says INFO: No next and thats it.

Can anyone shed some light on my problem, before I do physical 
harm to the box in question.  The configuration files are as 
follows:   Also, can I have .jsp files enabled for some virtual 
servers and not for others, or is it an all or nothing affair?

*snip*
--
  Ryan McConigley - Systems Administrator  _.-,
 Computer Science   University of Western Australia.--'  '-._
   Tel: (+61 8) 6488 7082 - Fax: (+61 8) 6488 1089   _/`-  
_  '.
[EMAIL PROTECTED] - http://www.csse.uwa.edu.au/~ryan  
''._`.. \
 
` \;
 You're just jealous because the voices are talking to 
me;_\


-
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: Apache2, Tomcat5 and mod_jk2 configuration problems

2004-06-23 Thread Ryan McConigley
At 12:16 PM 24/06/2004 +0800, you wrote:
Hi Ryan,
I should have asked this earlier, but are you using the RPM version of 
Apache or compiling the source tarball ? I notice that your directory is 
/usr/local, which indicates that you are probably using the source tarball 
(for RH9 rpms, it would be /etc/httpd).

If you are using the source tarball, there are a LOT of things that are 
different. I believe you are missing a package, hence the gdbm error. I 
cannot recall at the moment what the name of the package is -- can you do 
a search on rpmfind ? Another thing: apxs is located inside 
/usr/local/httpd-2.0.49 -- just do a find /usr/local/httpd-2.0.49 -name 
apxs to locate it.

Did you do a Minimal install for Red Hat ? You will need to ensure that 
you have the necessary packages installed. See this for a short list : 
http://cymulacrum.net/writings/tomcat5/c875.html#JK2_INTEGRATION_SETUP

You probably don't need apr and apr-util because you installed Apache from 
source.
I just got it working.  I had installed it from source, was a 
library problem.  Just writing up my documentation at the moment.  I'll 
send you a copy of that when I'm done.

Cheers,
Ryan.
--
  Ryan McConigley - Systems Administrator  _.-,
 Computer Science   University of Western Australia.--'  '-._
   Tel: (+61 8) 6488 7082 - Fax: (+61 8) 6488 1089   _/`-  _  '.
[EMAIL PROTECTED] - http://www.csse.uwa.edu.au/~ryan  ''._`.. \
 ` \;
 You're just jealous because the voices are talking to me;_\

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


does anybody know what this means?

2004-06-23 Thread Casas, Claudia
2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/pop3.jar to 
/home/dln/wwwdocs/WEB-INF/lib/pop3.jar
2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/smtp.jar to 
/home/dln/wwwdocs/WEB-INF/lib/smtp.jar
2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/taglibs-datetime.jar 
to /home/dln/wwwdocs/WEB-INF/lib/taglibs-datetime.jar
2004-06-23 22:42:05 WebappLoader[/dln]: Reloading checks are enabled for this Context
2004-06-23 22:42:05 ContextConfig[/dln] Exception processing TLD at resource path 
/WEB-INF/datetime.tld
javax.servlet.ServletException: Exception processing TLD at resource path 
/WEB-INF/datetime.tld
at 
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3587)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -

 
I KEEP GETTING THE REQUESTED RESOURCE IS NOT AVAILABLE WHEN I TRY TO RUN MY TOMCAT 
FORM MY HOME DIR. I NOTICED THIS ERROR INSIDE THE LOG FOR THAT SPECIFIC CONTEXT. 
IT SEEMS LIKE EVERYTHING IS GOING OK, NTIL SOMETHING HAPPENS WITH DATETIME.TLD?


RE: does anybody know what this means?

2004-06-23 Thread Ariel Valentin
Claudia,
Is the TLD located in /home/dln/wwwdocs/WEB-INF/datetime.tld
Or is it packed with the taglibs-datetime.jar?
Mr. Ariel S. Valentin
mailto:[EMAIL PROTECTED]


From: Casas, Claudia [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: does anybody know what this means?
Date: Wed, 23 Jun 2004 23:04:23 -0600
2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/pop3.jar to 
/home/dln/wwwdocs/WEB-INF/lib/pop3.jar
2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/smtp.jar to 
/home/dln/wwwdocs/WEB-INF/lib/smtp.jar
2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR 
/WEB-INF/lib/taglibs-datetime.jar to 
/home/dln/wwwdocs/WEB-INF/lib/taglibs-datetime.jar
2004-06-23 22:42:05 WebappLoader[/dln]: Reloading checks are enabled for 
this Context
2004-06-23 22:42:05 ContextConfig[/dln] Exception processing TLD at 
resource path /WEB-INF/datetime.tld
javax.servlet.ServletException: Exception processing TLD at resource path 
/WEB-INF/datetime.tld
at 
org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010)
at 
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3587)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -

I KEEP GETTING THE REQUESTED RESOURCE IS NOT AVAILABLE WHEN I TRY TO RUN 
MY TOMCAT FORM MY HOME DIR. I NOTICED THIS ERROR INSIDE THE LOG FOR THAT 
SPECIFIC CONTEXT.
IT SEEMS LIKE EVERYTHING IS GOING OK, NTIL SOMETHING HAPPENS WITH 
DATETIME.TLD?
_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/

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