Re: Non-standard webapp layout

2007-10-11 Thread Glen Vermeylen
My god, I'm sorry. I posted the directory structure wrong. Web-inf is the root of the project WEB-INF/web.xml WEB-INF/content/*.jsp WEB-INF/src What I posted earlier wouldn't have been a problem at all. Looking at the time, I think my mind was still on autopilot The problem is with the conte

Groovy scripts to setup multiple Tomcat instances with single install base.

2007-10-11 Thread thebugslayer
Hi all, Just want to share these tools to the user groups. Hope you find it useful. http://docs.codehaus.org/display/GROOVY/Tomcat+tools Cheers, -- /bugslayer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscr

RE: Tomcat 5.5.25 -> 6.0.14 upgrade problem

2007-10-11 Thread aku1234
Thanks for telling me about your issue. I experimented unsuccessfully with different locations for the jar files in Tomcat 6. Glassfish v2 is now stable. I was able to use that without running into the JNDI problems that I had with Tomcat 6. Paul Anderson-12 wrote: > > Hi, > I had a problem

Re: [OT] mod_jk - no permission to access index file

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Albert, Note that this has nothing to do with mod_jk. In fact, mod_jk appears to be working properly according to your report. Albert Greinoecker wrote: > I'm currently running a tomcat application within apache2. > To do so, I added the following li

mod_jk - no permission to access index file

2007-10-11 Thread Albert Greinoecker
Hi, I'm currently running a tomcat application within apache2. To do so, I added the following lines to jk.conf... Alias / "/usr/share/tomcat6/webapps/" "> Options Indexes FollowSymLinks DirectoryIndex index.html allow from all When I now try to access the appli

Re: Specifying multiple IP's for tcpListenAddress in clustering environment

2007-10-11 Thread Filip Hanik - Dev Lists
you can only specify a single address, currently there is no fail over. if you have two nics, and you want fail over between them, do it on the OS level. for example, on Linux, you can bond two nics into one IP address, and the OS will automatically fail over between them much better doing it a

Specifying multiple IP's for tcpListenAddress in clustering environment

2007-10-11 Thread Burnett, Adam
> In our environment we have multiple boxes each with multiple NICs. In > order for clustering to work I had to explicitly specify the address > of eth0 for the tcpListenAddress because "auto" wasn't working. Is it > possible to specify failover address for this attribute? In the case > that just

alternative tag pool implementation

2007-10-11 Thread Dmitry Beransky
Hi, I've noticed that there are two implementations of the tag pool: TagHandlerPool and PerThreadTagHandlerPool. I haven't been able to figure out how to tell Jasper to use the per-thread implementation. Any pointers? Thanks Dmitry

Re: Dynamic logging configuration updates in Tomcat

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam, Adam Gordon wrote: > Wow, no one had any ideas as to what is going on? I have no idea if Tomcat supports this -- the logging-related configuration directives in the docs should say if it is directly supported. If you're using log4j, I know tha

tc security

2007-10-11 Thread Chris Pat
Hello I have 5.028 running in development production with a simple tomcat-users.xml, it works. When I run it in my ide, jb05, with the same tomcat-users.xml in the same config folder as server.xml, that it uses to run, it fails the security. The only possible reason I can assume is it is runni

RE: How to share tomcat sessions across multiple IE windows

2007-10-11 Thread Adam Gordon
Hmmm, we have a webapp that requires authentication to launch a specific function and we spawn multiple windows with window.open() and we don't have any problem with the browser session IDs being changed. Are you switching from http to https or vice versa? This would certainly result in different

RE: Tomcat 5 and SSL

2007-10-11 Thread Adam Gordon
The file is called "cacerts" and is located in your Java SDK directory's jre/lib/security folder. I'm running Ubuntu and it's actually a simlink to a sub-directory in /etc. A fellow engineer is running Fedora 7 and it's not a simlink. Regarding your error, do you have gcj installed? And if so,

RE: Dynamic logging configuration updates in Tomcat

2007-10-11 Thread Adam Gordon
Wow, no one had any ideas as to what is going on? Anyway. We never figured out why Tomcat has an issue with this, but we found a suitable workaround by basically doing what the LogHandler does when it re-reads and refreshes the logging configuration - we take the new logging level values and appl

Re: Does mod_jk copy memory b/w apache and tomcat (using linux, ajp13 worker)?

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Moran, Moran Ben-David wrote: > Can anyone tell me if mod_jk does a copy of memory when it moves > tomcat output to apache through mod_jk? My assumption has been that > the two processes (in linux) communicate by copying data from each > other's memo

Re: JAAS Realms, cookies and authentication

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Iain, Emsley, I (Iain) wrote: > What I'm trying to achieve is when the user logs in on main site and > clicks the link to the Java calendar, the link will read the cookie > (extracting the user name/password and converting into hex to send back > to t

Re: Non-standard webapp layout

2007-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Glen, Glen Vermeylen wrote: > Hi all, > > Recently I moved to a (ancient) project which uses following layout: > > content/ > *.jsp > /WEB-INF/web.xml, struts-config.xml,... > /src > > I'm used to working in the standard J2EE layout whe

Re: Precompile JSPs

2007-10-11 Thread Martin Gainty
Arun- download and uncompress apache-tomcat-6.0.14-src distro from http://tomcat.apache.org/download-60.cgi cd to the folder you downloaded \apache-tomcat-6.0.14-src ant use the jasper.jar located in \output\build\lib M-- - Original Message - From: "Arun" <[EMAIL PROTECTED]> To: "Tomcat U

Does mod_jk copy memory b/w apache and tomcat (using linux, ajp13 worker)?

2007-10-11 Thread Moran Ben-David
Can anyone tell me if mod_jk does a copy of memory when it moves tomcat output to apache through mod_jk? My assumption has been that the two processes (in linux) communicate by copying data from each other's memory spaces. If this is the case... does anyone know if there are plans to use the new

Re: Precompile JSPs

2007-10-11 Thread Arun
Classpath with ant has always been sticky. This is what I compiled from the docs. My CATALINA_HOME enviroment variable points correctly . I had done an echo ${CATALINA_HOME} and it worked. I had been tryi

Re: Precompile JSPs

2007-10-11 Thread Pid
Arun wrote: > Filip, > > That works cool. > Thank you for the reply. > > I do not know why the one specified in tomcat docs does not work. All I know > is that it throws an error telling me that it cant find > org.apache.jasper.runtime package. But that is there in the lib directory of > tomcat's

Re: Precompile JSPs

2007-10-11 Thread Filip Hanik - Dev Lists
yes, it was a long time ago since I looked into the other way of doing it. Since compiling JSPs into servlets defeats the purpose of reloadable JSPs Filip Arun wrote: Filip, That works cool. Thank you for the reply. I do not know why the one specified in tomcat docs does not work. All I kno

Re: Native Library Not found

2007-10-11 Thread Juha Laiho
Arun wrote: > That worked finally with the increase in PermGen space. > I am a bit concerned about my server memory. > See my top (not mine ofcourse) > > top - 09:38:18 up 9:16, 3 users, load average: 0.27, 0.18, 0.10 > PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND > 97

Re: Precompile JSPs

2007-10-11 Thread Arun
Filip, That works cool. Thank you for the reply. I do not know why the one specified in tomcat docs does not work. All I know is that it throws an error telling me that it cant find org.apache.jasper.runtime package. But that is there in the lib directory of tomcat's home in jasper.jar. All I kno

Re: Tomcat library hierarchy

2007-10-11 Thread Martin Gainty
Andrew endorsed libraries are used to override standard libraries (newer endorsed libraries override the older endorsed libraries) http://java.sun.com/javase/6/docs/technotes/guides/standards/ endorsed packages includes the following JAVA packages (partial listing): javax.rmi.CORBA org.omg.CORBA

Re: Precompile JSPs

2007-10-11 Thread Filip Hanik - Dev Lists
here is a script that precompiles just like Tomcat runtime, meaning, you still keep the ability to reload your JSPs instead of converting them to servlets http://people.apache.org/~fhanik/tomcat-6-precompile.xml Filip Arun wrote: Hi, I want to precompile jsps for apache tomcat 6. Which ant t

Re: Precompile JSPs

2007-10-11 Thread Phi-Long LE
You can precompile jsp using wget and jsp_precompile=true for example I use this: #!/usr/bin/posix/sh for aJSP in $(find $HELIOS -name "*.jsp" | sed -e "s:$HELIOS::g") ; do wget http://vhpuw51:$aJSP?jsp_precompile=true done Le 11/10/2007 15:26, Pid a écrit : Arun wrote: jspc:

Re: Precompile JSPs

2007-10-11 Thread Pid
Arun wrote: > Ok, I fixed that up and I have an error coming from the ant script that I > copied from tomcat docs. The error said, there is no such directory called > /usr/local/bin/apache-tomcat-6.0.13/common/lib. Correct, Tomcat 6 uses doesn't use 3 different directories (common, server, shared

RE: Tomcat library hierarchy

2007-10-11 Thread Caldarale, Charles R
> From: Andrew Hole [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat library hierarchy > > I don't know difference between put a jar in common lib or > common endorsed p.e. The endorsed classloader is functionally equivalent to using the bootstrap classloader (it's actually between the bootstrap

Re: Tomcat library hierarchy

2007-10-11 Thread Andrew Hole
Only thing that doc says: "All unpacked classes and resources in $CATALINA_HOME/common/classes, as well as classes and resources in JAR files under the $CATALINA_HOME/commons/endorsed, $CATALINA_HOME/commons/i18n and $CATALINA_HOME/common/lib directories, are made visible through this class loader.

Re: Precompile JSPs

2007-10-11 Thread Arun
The build output I got after fixing, if that helps. jspc: precompile-jsps: [javac] Compiling 370 source files to /home/build/mobchannel/mobchannelWEB/WebRoot/WEB-INF/classes [javac] /home/build/mobchannel/mobchannelWEB/WebRoot/WEB-INF/src/org/apache/jsp/home_jsp.java:7: package org.apache

RE: Tomcat library hierarchy

2007-10-11 Thread Caldarale, Charles R
> From: Andrew Hole [mailto:[EMAIL PROTECTED] > Subject: Tomcat library hierarchy > > What's the difference between common/lib , common/endorsed > and common/classes? Look at the doc: http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONF

Re: Precompile JSPs

2007-10-11 Thread Arun
Ok, I fixed that up and I have an error coming from the ant script that I copied from tomcat docs. The error said, there is no such directory called /usr/local/bin/apache-tomcat-6.0.13/common/lib. There is no folder called common/lib in my tomcat 6 home directory. When I commented that line from t

Tomcat library hierarchy

2007-10-11 Thread Andrew Hole
Hello! What's the difference between common/lib , common/endorsed and common/classes? Thanks a lot - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Precompile JSPs

2007-10-11 Thread Pid
Arun wrote: > jspc: > What is wrong? You're sending me twice as many mails as you need to, for a start. Reply-to-all is unnecessary - just reply to the list please. The error message tells you what's wrong, on line 10. "navigation.jsp(10,20) attribute for %>" is not properly terminated " Do

Re: Precompile JSPs

2007-10-11 Thread Arun
David, My webapp runs and works correctly. I just want to precompile jsps to increase initial performance. Is there anyway for Jasper to skip these errors, and continue compilation. On 10/11/07, David Smith <[EMAIL PROTECTED]> wrote: > > Why are you mixing el expressions with <%= ... %> expressio

Re: Perl Permissions on Tomcat

2007-10-11 Thread Li Ye Chen
Script A (the problem script) continues to run after 2 minutes (with partial output some of the time). But script A ran under the command line (as opposed to the browser/Tomcat) is very fast -- under a second and gives full output. Script B runs under less than a second and gives full output. -

Re: Precompile JSPs

2007-10-11 Thread David Smith
Why are you mixing el expressions with <%= ... %> expressions? I'd replace <%=request.getContextPath()%> with ${request.contextPath}. --David Arun wrote: jspc: BUILD FAILED /home/build/mobchannel/mobchannelWEB/build.xml:199: org.apache.jasper.JasperException: file:/home/build/mobchannel/mob

Re: Precompile JSPs

2007-10-11 Thread Arun
jspc: BUILD FAILED /home/build/mobchannel/mobchannelWEB/build.xml:199: org.apache.jasper.JasperException: file:/home/build/mobchannel/mobchannelWEB/WebRoot/jsp/toolbox/navigation.jsp(10,20) attribute for %>" is not properly terminated I got this error on using the jspc task. I have copied the fro

Re: Precompile JSPs

2007-10-11 Thread Arun
Ok, Thanks On 10/11/07, Pid <[EMAIL PROTECTED]> wrote: > > Arun wrote: > > Hi, > > > > I want to precompile jsps for apache tomcat 6. Which ant task should i > use . > > Is there a simple example for that. > > I am using a build.xml exported from MyEclipse. Where would the JSP > classes > > go in

Re: Precompile JSPs

2007-10-11 Thread Pid
Arun wrote: > Hi, > > I want to precompile jsps for apache tomcat 6. Which ant task should i use . > Is there a simple example for that. > I am using a build.xml exported from MyEclipse. Where would the JSP classes > go in WEB-INF/classes. What structure does it have. > > http://tomcat.apache.o

Precompile JSPs

2007-10-11 Thread Arun
Hi, I want to precompile jsps for apache tomcat 6. Which ant task should i use . Is there a simple example for that. I am using a build.xml exported from MyEclipse. Where would the JSP classes go in WEB-INF/classes. What structure does it have. -- Thanks Arun George

JAAS Realms, cookies and authentication

2007-10-11 Thread Emsley, I (Iain)
Hi, I'm trying to implement a solution to log in users to one of our web apps which runs on Tomcat via cookies to which I've had several false starts and I'd like to ask some advice on the best way of implementing this securely. What I'm trying to achieve is when the user logs in on main site

mod_jk: Could not init service for worker

2007-10-11 Thread Hans van Zijst
Hi, Since I updated my system last monday, mod_jk doesn't work anymore. Tomcat starts up just fine, no errors or warnings. I checked that the AJP1.3 connector runs, it listens on port 8009. Apache runs fine as well, but as soon as I connect to the URL I mapped to Tomcat, I get: "[error] jk_han

RE: Setting up Tomcat instance ..HELP !!!

2007-10-11 Thread Quodras, Naveen
Thanks a lot Bruno !!! -Original Message- From: Bruno Vilardo [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 6:38 PM To: Tomcat Users List Subject: Re: Setting up Tomcat instance ..HELP !!! Naveen, First you need to download the Tomcat. Then you need to extract it on the