Followup jk2 + apache vhosts + tomcat sessions

2004-04-12 Thread Jens Saade
Hi,

I already sent an email named "jk2 + apache vhosts + tomcat sessions" 
but no response yet. Maybe I didn't describe my problem clearly enough 
so here is another go:

I've got an apache http 1.3.x running in front with multiple vhosts. 
Some of those vhosts are redirected to a single tomcat 5 instance via 
jk2 connector. I use these vhosts as "entry points" to the application 
running inside the tomcat server. They should share tomcats http 
session. Atm each vhost opens a new session for e.g. vhost 1-3. Is it 
possible to make them somehow share the same tomcat http session? Or is 
there a better way to achieve what I want?

 apache http
with   
  |
 +-+--+---+-+
vhost1vhost2 vhost3 vhost4vhost5
 | |  |   | |
 jk2   jk2   jk2 phpsimple html
 | |  |
single .. tomcat .. instance
with application

Cheers,
Jens


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


RE: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
Yeap, Daniel. It's there.

As I mentioned, I performed the very same test I'm doing right now, but
without DataSource and it works.

Now that you mention it, I read in some place that it was necessary to
remove the java.sql.* package from the jdbc jar file. I don't know if
that is true and, if so, why would that be necessary? Could that have
something to do with this problem? (it would be something very odd since
it would be affecting exclusively the behaviour of the DataSource,
according to what I stated on the previous paragraph.

Regards,
Freddy.



-Mensaje original-
De: Daniel Huang [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 12 de abril de 2004 20:57
Para: Tomcat Users List
Asunto: RE: JNDI and DataSource

Where did you put your db driver jar file? You want to put it under
$CATILINA/common/lib.

Regards,
Daniel

-Original Message-
From: Freddy Villalba Arias [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 10:19 AM
To: Tomcat Users List
Subject: RE: JNDI and DataSource

Tested it. Same result... same problem.

A side comment: the positive part of the other config file (the one I
had originally) was that you could trace how Tomcat loaded the
Resources. Then, you could see how the tags actually got processed
(read) correctly. But then, something happens when the factory builds
the DataSource object.

Regards,
Freddy.

-Mensaje original-
De: Guy Pardon [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 12 de abril de 2004 19:02
Para: Tomcat Users List
Asunto: Re: JNDI and DataSource


Hi,

The fact that you get 'No suitable driver' could also mean that the
chosen properties are incompatible (as opposed to not set).

Just a guess: did you try to specify the user and password as part of
the URL? (jdbc:oracle:thin:user/[EMAIL PROTECTED])
That's the way I usually connect to oracle.

You never know, maybe that's it...

HTH,

Guy

http://www.atomikos.com - Our JTA for your transactions

On maandag, apr 12, 2004, at 18:35 Europe/Brussels, Freddy Villalba
Arias wrote:


>
>
>
>
>
> Hi Sandy,
>
>
>
> Thanks, it certainly looked better than mine. I appreciate it.
> However, the problem persists...
>
>
>
> Any other suggestion? (I'll keep looking at it, too... obviously)
>
>
>
>
>
> -Mensaje original-
> De: Sandy McArthur [mailto:[EMAIL PROTECTED]
> Enviado el: lunes, 12de abril de 2004 18:29
> Para: Tomcat Users List
> Asunto: Re: JNDI and DataSource
>
>
>
> This shouldn't be all that different, but this is the server.xml I'd
>
> use on my setup.
>
>
>
> 
>
>
>
> 
>
>
>
>
>
>
> type="javax.sql.DataSource" cached="false"/>
>
>
>
>
>
>  
>
>factory
>
>
>
> org.apache.commons.dbcp.BasicDataSourceFactory
>
>  
>
>
>
>  
>
>driverClassName
>
>oracle.jdbc.driver.OracleDriver
>
>  
>
>
>
>  
>
>url
>
>
>
> jdbc:oracle:thin:@BMSRVORACLE:1521:BMSRVMS
>
>  
>
>
>
>  
>
>username
>
>SGC_CNID
>
>  
>
>
>
>  
>
>password
>
>
>
>  
>
>
>
>  
>
>driverClassName
>
>oracle.jdbc.driver.OracleDriver
>
>  
>
>
>
>  
>
>maxActive
>
>20
>
>  
>
>
>
>  
>
>maxIdle
>
>10
>
>  
>
>
>
>  
>
>maxWait
>
>-1
>
>  
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
> className="org.apache.coyote.tomcat4.CoyoteConnector"
>
> connectionTimeout="6" debug="0" maxProcessors="75"
> minProcessors="5"
>
> port="8080"/>
>
>
>
>  
>
>
>
>
>
appBase="C:\Usuarios\fvillalba\project\SGC\SGC_CNID\FUENTES\java\Acceso
>
> a datos\Tomcat\webapps" debug="5" name="localhost" unpackWARs="true">
>
>
>
>  
>
> 
> global="jdbc/cnid"
>
> type="javax.sql.DataSource"/>
>
>  
>
>
>
>  
> reloadable="true">
>
>  
>
>
>
>  
> reloadable="true">
>
>  
>
>
>
>
>
>
>
>  
>
>
>
>
>
>
>
> 
>
>
>
>
>
> HTH
>
>
>
> Sandy
>
>
>
> On Apr 12, 2004, at 11:36 AM, Freddy Villalba Arias wrote:
>
>
>
> > Yes and no... :)
>
> >
>
> > I have only one web application to be deployed (wa). Then, I read in
>
> > some places that it's mandatory to have a default context. I tried
>
> > defining a  but then Tomcat's initialization failed
> (I
>
> > looked for something odd but couldn't find anything). So, I decided
> to
>
> > "create" a default (dummy) web app "by hand". That's the only intent

> of
>
> > that second web app. It doesn't even exist (there is n

Re: Newbie problem with JSP contexts & virtual hosts

2004-04-12 Thread James Bucanek
While I didn't get any suggestions or feedback on my original question, I believe I've 
found a solution.  Now I just need to run it by the group to see if it's "Kosher."

James Bucanek wrote on Sunday, April 11, 2004:
>  
>  
>  unpackWARs="false" autoDeploy="true">
>
>
>
>
>  



>
>darkthirty
>darkthirty.net artwork application
>
>
>
>test
>Some Value
>
>

The basic problem with this arrangement is that my JSP pages ran in the context of the 
'jsp'  that's defined in ${CATALINA_HOME}/conf/web.xml for the default 
, not the Context that I defined in my web-app that I want to run in my virtual 
.

So, it occurred to me that I could create may own instance of the JSP engine as my 
.  Now that I have a  to reference, I can then map all of the *.jsp 
files in my virtual host to that:


darkthirty
darkthirty.net artwork application



test
Some Value



jsp2
org.apache.jasper.servlet.JspServlet

logVerbosityLevel
INFORMATION





jsp2
*.jsp




This seems to work just great.  The Manager sees my application (by name), and all of 
the context parameters appear in my JSP pages.

As far as I can tell, there doesn't seem to be anything really "bad" about this 
solution.  Except that I end up with a new instance of the JspServlet for each virtual 
host, which is probably a tolerable amount of overhead.

My question is this: Is this the "right" way to accomplish this?

__
James Bucanek   

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



Re: Session exists even after server restart

2004-04-12 Thread James Bucanek
[EMAIL PROTECTED] wrote on Tuesday, April 13, 2004:
>Now I have shutdown my tomcat and started it immediately. And my session
>still works !!!

Pretty cool, huh?

>Is this a BUG?

If it is, then a lot of people spent an aweful lot of time introducing it.

I just read "Tomcat: The Definitive Guide" by Jason Brittain & Ian Darwin.  While this 
covers Tomcat 4, I'm pretty sure this applies to 5 as well.

The  tag in the server.xml file defines the session manager class.  As 
example would be

mailto:[EMAIL PROTECTED]>

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



JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-12 Thread Nikola Milutinovic
Yang Xiao wrote:

Hi list,
I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work
I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so
in /usr/local/apache/modules
But when I start the Tomcat server, I'm getting this error
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
/usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final
It is a constant problem with JK2 JNI lib. I've had it on 2.0.2 and on 2.0.4. 
libjkjni.so needs to be linked against all three APR libs: -lapr -laprutil -lexpat.

This is the case on Linux (Mandrake 9.1) and on Tru64 UNIX (4.0D). After 
modifying the Makefile, it went OK. It loads and works.

Nix.

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


Re: use own property file for db-connection

2004-04-12 Thread Nikola Milutinovic
Amrun wrote:

Hi everyone, 

I'm working with Tomcat 5.0 and I'm trying to write a little webapplication.
In this case I need to get the data from a database. Now I want to write my
own property-file from which I can get the information about the driver,
user
and password. I've done this before, but I haven't done it on a webserver so
The correct way to go is DataSources. Check out Tomcat's docs on JNDI and 
DataSources.

Nix.

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


location of workers2.properties parameters

2004-04-12 Thread Randy
I can not find the doc that describes the descriptors in workers2.properties

I am sorry if it is obvious , but I can not find it I have tried
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html
And
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html


In my error.log for my web server it is full of 
[Mon Apr 12 23:35:28 2004] [notice] channelApr.receive(): Received len=147
type=4
Lots and lots of these

I was kindof thinking it was a setting in my workers2.properties
I changed [logger.apache2] to level=INFO As a guess, but I am still getting
these. Like every 10th of a second

Thanks
Randy


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



Re: Exception processing JAR at resource path

2004-04-12 Thread Nishant Kumar
hi,
i fixed the problem. i had missed a slash at the beginning of the path
attribute of Context. adding that fixed everything. 
anyway the message was kind of obscure.
thanks for the help,
nishant.

On Tue, 2004-04-13 at 03:58, Reynir ÃÃr HÃbner wrote:
> hi,
> 
> does the tomcat user have rights on the temp dir ?
> are you shure the CATALINA_HOME variable is correctly set ?
> 
> Creating the temp directory fixed the same problem for me.
> 
> hope it helps
> -reynir
> 
> 
> Nishant Kumar wrote:
> 
> >hi,
> > i am using tomcat 4.1.30. when i start the server i get the error at
> >the end of this mail. i get this only when i set docBase in my
> >server.xml for this context. when i copy the files in the webapp dir
> >everything works fine. there are no xml parsing jars in the WEB-INF/lib
> >dir. the temp dir is also there in the CATALINA_HOME dir.
> >
> > just before emitting this error the log says that it was able to deploy
> >this jar.
> >
> >
> >thanks in advance,
> >nishant.
> >
> >2004-04-12 13:32:01 ContextConfig[reports] Exception processing JAR at
> >resource path /WEB-INF/lib/commons-fileupload.jar
> >javax.servlet.ServletException: Exception processing JAR at resource
> >path /WEB-INF/lib/commons-fileupload.jar
> >at
> >org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
> >at
> >org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
> >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 -
> >java.io.FileNotFoundException
> >at
> >org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:344)
> >at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:161)
> >at
> >sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
> >at
> >sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
> >at
> >sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
> >at
> >sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
> >at
> >org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
> >at
> >org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
> >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(De

RE:location of workers2.properties parameters

2004-04-12 Thread Randy Paries
I can not find the doc that describes the descriptors in workers2.properties

I am sorry if it is obvious , but I can not find it
I have tried 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html
And
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html


In my error.log for my web server it is full of 
[Mon Apr 12 23:35:28 2004] [notice] channelApr.receive(): Received len=147
type=4
Lots and lots of these

I was kindof thinking it was a setting in my workers2.properties
I changed [logger.apache2] to level=INFO As a guess, but I am still getting
these. Like every 10th of a second

Thanks
Randy


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



ApplicationHttpRequest not using HttpServletRequestWrapper problem

2004-04-12 Thread Phillip Rhodes
I wrote a really neat servlet filter that I will release open source.
What it does is allow any servlet or jsp that "runs long" to be
intercepted and display a "processing your request" page to the user while
the request is processing on the server.

The filter intercepts a request, wrappers the response and request and
kicks off the request in a different thread.  The filter will immediately
return to the client browser with a "wait page" that will periodically
poll the working thread to see if the long running request is done.

However, things are not working as I planned.  I have been testing it
thoroughly and the wrapped response is fine.  All my code works correctly
if I just "block" the request.  By "block" i mean, I don't respond to the
request to the client until the jsp, servlet or whatever completes the
chain processing.

It seems that the ApplicationHttpRequest is not calling my subclass of
HttpServletRequestWrapper.  I declared a "getAttributeNames" method in my
RequestWrapper, but it is not invoked.  Instead Tomcat is calling the
getAttributeNames method on the ORIGINAL request object.   This also
happens to be the same request object that I returned from already
(substituting a wait page for the actual expected content).  I *think*
that when I respond to the request, tomcat invalidates it. Unfortunately,
the request is still being processed, just in a different thread.

I threw the war file on at server of mine (tomcat 4.1.27) so you can check
it out and see it in action.
All source is here
http://test.rhoderunner.com/longrequest/

What I am looking for is some advice on how to solve this problem.  I am
almost totally out of ideas on how to solve this one.
Thanks.

Here is a stacktrace from Tomcat 4.1.30

java.lang.NullPointerException
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getAttributeNames(CoyoteRequestFacade.java:142)
at
org.apache.catalina.core.ApplicationHttpRequest.setRequest(ApplicationHttpRequest.java:512)
at
org.apache.catalina.core.ApplicationHttpRequest.(ApplicationHttpRequest.java:125)
at
org.apache.catalina.core.ApplicationDispatcher.wrapRequest(ApplicationDispatcher.java:921)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:547)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary

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



Session exists even after server restart

2004-04-12 Thread UmamaheswarKalluru




Hi,
I am using Tomcat 5.0.19. I have started my tomcat and working on my
applications using in the browser. I am maintaining the login information
in a session and navigation through the page.

Now I have shutdown my tomcat and started it immediately. And my session
still works !!! I am still able to navigate through the pages with the same
login information that I had in the session prior to shutdown of the
server.

Is this a BUG?

Thank you,
Best Regards,
Uma


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



Re: tomcat as deamon

2004-04-12 Thread Bill Barker
Look at the 'Tomcat.sh' script in jsvc-src/native.  That one is for Tomcat
4.  Of course, you'll likely have to edit the file to fix things like paths
and the user.  It's pretty straight forward to change it.

And, yes, I've run Tomcat 4 happily with jsvc ;-).

"Wilson, Allen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Doug...
>
> I failed to mention that I am on Tomcat 4do you have any experience
> with jsvc and that. If not, I read through the link you've provided and
> I may have to move up to Tomcat 5.
>
> Allen
>
> -Original Message-
> From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
>
> Sent: Monday, April 12, 2004 9:24 PM
> To: Tomcat Users List
> Subject: Re: tomcat as deamon
>
>
> Allen,
>
> Read this page. It will make a little more sense than the instructions
> on
> the commons page.
>
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
>
> Note the last paragraph on the page. And the script has already been
> changed
> for TC5.
>
> Once you have completed these steps then you can put the script in
> init.d
> and link it from the desired runlevels. Here is what my modified script
> looks like:
>
> # Adapt the following lines to your configuration
> JAVA_HOME=/tomcat/jv
> CATALINA_HOME=/tomcat/tc
> DAEMON_HOME=/tomcat/tc/bin
> TOMCAT_USER=tomcat
> TMP_DIR=/var/tmp
> CATALINA_OPTS=
> CLASSPATH=\
> $JAVA_HOME/lib/tools.jar:\
> $CATALINA_HOME/bin/commons-daemon.jar:\
> $CATALINA_HOME/bin/bootstrap.jar
>
> case "$1" in
>   start)
> #
> # Start Tomcat
> #
> $DAEMON_HOME/jsvc \
> -user $TOMCAT_USER \
> -home $JAVA_HOME \
> -Dcatalina.home=$CATALINA_HOME \
> -Djava.io.tmpdir=$TMP_DIR \
> -outfile $CATALINA_HOME/logs/catalina.out \
> -errfile '&1' \
> $CATALINA_OPTS \
> -cp $CLASSPATH \
> -Xms384m \
> -Xmx512m \
> org.apache.catalina.startup.Bootstrap
> #
> # To get a verbose JVM
> #-verbose \
> # To get a debug of jsvc.
> #-debug \
> ;;
>
>   stop)
> #
> # Stop Tomcat
> #
> PID=`cat /var/run/jsvc.pid`
> kill $PID
> ;;
>
>   *)
> echo "Usage tomcat start/stop"
> exit 1;;
> esac
>
> I also put a link in usr/bin to the script in init.d which allows me to
> do a
> tomcat stop and tomcat start from anywhere to stop and start tomcat. My
> script name is "tomcat" without the .sh .
>
> Sorry if I am too verbose in my instructions.
>
> Doug
>
>
> - Original Message - 
> From: "Wilson, Allen" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, April 12, 2004 6:59 PM
> Subject: RE: tomcat as deamon
>
>
> > Doug...
> >
> > I tried to figure out how to use the jsvc...I have it configured but I
> > not sure how to use in in a class...any ideas'
> >
> > Allen
> >
> > -Original Message-
> > From: Parsons Technical Services
> [mailto:[EMAIL PROTECTED]
> >
> > Sent: Monday, April 12, 2004 5:55 PM
> > To: Tomcat Users List
> > Subject: Re: tomcat as deamon
> >
> >
> > Emerson,
> >
> > It depends. If you need to run tomcat on port 80, then you will need
> > jsvc
> > otherwise calling startup.sh should work.
> >
> > Doug
> > www.parsonstechnical.com
> >
> >
> > - Original Message - 
> > From: "Emerson Cargnin" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, April 12, 2004 5:39 PM
> > Subject: tomcat as deamon
> >
> >
> > > Anyone has experience in using tomcat as deamon??
> > > What would be the best way? using jsvc??? or create a script to be
> > > called by init.d?
> > >
> > > Would be enough to call startup.sh and shutdown in apache init.d
> > script
> > >
> > > -- 
> > > 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]
> > >
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> 
> 
> 
>
>
> > This message may contain proprietary or confidential company
> information.
> > Any unauthorized use or disclosure is prohibited.
> >
> >
> >
>
>
> 
> 
> 
>
>
> > -
> > 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]
>
>






> Th

RE: tomcat as deamon

2004-04-12 Thread Wilson, Allen
Doug...

I failed to mention that I am on Tomcat 4do you have any experience
with jsvc and that. If not, I read through the link you've provided and
I may have to move up to Tomcat 5.

Allen

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

Sent: Monday, April 12, 2004 9:24 PM
To: Tomcat Users List
Subject: Re: tomcat as deamon


Allen,

Read this page. It will make a little more sense than the instructions
on
the commons page.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html

Note the last paragraph on the page. And the script has already been
changed
for TC5.

Once you have completed these steps then you can put the script in
init.d
and link it from the desired runlevels. Here is what my modified script
looks like:

# Adapt the following lines to your configuration
JAVA_HOME=/tomcat/jv
CATALINA_HOME=/tomcat/tc
DAEMON_HOME=/tomcat/tc/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case "$1" in
  start)
#
# Start Tomcat
#
$DAEMON_HOME/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$TMP_DIR \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '&1' \
$CATALINA_OPTS \
-cp $CLASSPATH \
-Xms384m \
-Xmx512m \
org.apache.catalina.startup.Bootstrap
#
# To get a verbose JVM
#-verbose \
# To get a debug of jsvc.
#-debug \
;;

  stop)
#
# Stop Tomcat
#
PID=`cat /var/run/jsvc.pid`
kill $PID
;;

  *)
echo "Usage tomcat start/stop"
exit 1;;
esac

I also put a link in usr/bin to the script in init.d which allows me to
do a
tomcat stop and tomcat start from anywhere to stop and start tomcat. My
script name is "tomcat" without the .sh .

Sorry if I am too verbose in my instructions.

Doug


- Original Message - 
From: "Wilson, Allen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 12, 2004 6:59 PM
Subject: RE: tomcat as deamon


> Doug...
>
> I tried to figure out how to use the jsvc...I have it configured but I
> not sure how to use in in a class...any ideas'
>
> Allen
>
> -Original Message-
> From: Parsons Technical Services
[mailto:[EMAIL PROTECTED]
>
> Sent: Monday, April 12, 2004 5:55 PM
> To: Tomcat Users List
> Subject: Re: tomcat as deamon
>
>
> Emerson,
>
> It depends. If you need to run tomcat on port 80, then you will need
> jsvc
> otherwise calling startup.sh should work.
>
> Doug
> www.parsonstechnical.com
>
>
> - Original Message - 
> From: "Emerson Cargnin" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, April 12, 2004 5:39 PM
> Subject: tomcat as deamon
>
>
> > Anyone has experience in using tomcat as deamon??
> > What would be the best way? using jsvc??? or create a script to be
> > called by init.d?
> >
> > Would be enough to call startup.sh and shutdown in apache init.d
> script
> >
> > -- 
> > 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]
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>







> This message may contain proprietary or confidential company
information.
> Any unauthorized use or disclosure is prohibited.
>
>
>







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

This message may contain proprietary or confidential company information.
Any unauthorized use or disclosure is prohibited.


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

Re: Here

2004-04-12 Thread tomcat-user
Your document is attached.

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

xslt and session management

2004-04-12 Thread Jason Eacott
Hi all,
I have built a servlet based application that uses xsl to render the output. 
When a user requests 
data (http/s), a standard servlet session is started, the request is processed with 
the xsl and the 
subsequent data is returned. My problem is this: I want to be able to use the xsl 
document() function to 
call another servlet and MAINTAIN the current session for that request. I have tried 
to build a rewritten url 
to call from the document(rwurl) function, but tomcat seems to ignore it. I'm not sure 
whats going on, but 
I figure that either tomcat thinks that the calling process supports cookies and 
therefore is refusing the 
rewritten url with the sessionid, OR tomcat is being too smart and is checking the 
senders IP as well as 
the sessionid, or something. I am using xalan as the xslt processor.
does anyone have any thoughts on how I can maintain my cookie based session with my 
end user but 
make calls from xsl and establish them as part of the same session?

Thanks in advance
Jason.



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



Re: help needed - keytool import of CA certs

2004-04-12 Thread Bill Barker

"Robert Hall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've been floundering for too many hours/days having ventured into the
> java/keytool/keystore/CAcert realm for the first time to produce a
> CA signed certificate for JBoss/Tomcat.
>
> We have a Verisign/RSA cert, hostname.crt that produces the following when
> imported using 'keytool':
>
> $ keytool -import -trustcacerts -file hostname.crt -keystore
> hostname.keystore
> Enter keystore password:  secret
> Owner: CN=hostname.berkeley.edu, OU=MY-ORG-UNIT, O="University of
> California, Berkeley", L=Berkeley, ST=California, C=US
> Issuer: OU=Secure Server Certification Authority, O="RSA Data Security,
> Inc.", C=US
> Serial number: 63ba7416f9d061ad65db8b61554bd8c3
> Valid from: Wed Aug 13 17:00:00 PDT 2003 until: Fri Aug 13 16:59:59 PDT
2004
> Certificate fingerprints:
>  MD5:  05:A7:B1:17:6B:C2:0B:FA:9A:B9:80:22:6A:B0:96:6B
>  SHA1: B9:34:D0:58:C4:9C:01:CD:C1:05:D9:FD:C1:D1:45:43:E3:6C:17:1A
> Trust this certificate? [no]:  yes
> Certificate was added to keystore
>
> And if you're still reading, some questions:
>
> 1. Should the "Trust this certificate?" prompt appear if a corresponding
> CA cert entry
> exists in $JAVA_HOME/jre/lib/security/cacerts ?

VS uses an intermediate cert to sign yours.  You probably need to import
that one (but I don't feel like looking to see if it is already there :).

>
> 2.  Is it necessary to go through the CSR (Certificate Signing Request)
> process when
>  you already have a server cert file?

No.

>
> 3. What else is needed in addition to an existing server cert file if
> you don't have to go
> through the CSR process?

If you used keytool to generate the original CSR, then you have to import
your cert into the same keystore that you used to generate the CSR.
Otherwise you need to import your private key as well.  This comes up every
couple of weeks like clockwork, so you'll find plenty of pointers in the
archives :).
>
> Thanks,
> Robert




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



Re: tomcat as deamon

2004-04-12 Thread Parsons Technical Services
Allen,

Read this page. It will make a little more sense than the instructions on
the commons page.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html

Note the last paragraph on the page. And the script has already been changed
for TC5.

Once you have completed these steps then you can put the script in init.d
and link it from the desired runlevels. Here is what my modified script
looks like:

# Adapt the following lines to your configuration
JAVA_HOME=/tomcat/jv
CATALINA_HOME=/tomcat/tc
DAEMON_HOME=/tomcat/tc/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case "$1" in
  start)
#
# Start Tomcat
#
$DAEMON_HOME/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$TMP_DIR \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '&1' \
$CATALINA_OPTS \
-cp $CLASSPATH \
-Xms384m \
-Xmx512m \
org.apache.catalina.startup.Bootstrap
#
# To get a verbose JVM
#-verbose \
# To get a debug of jsvc.
#-debug \
;;

  stop)
#
# Stop Tomcat
#
PID=`cat /var/run/jsvc.pid`
kill $PID
;;

  *)
echo "Usage tomcat start/stop"
exit 1;;
esac

I also put a link in usr/bin to the script in init.d which allows me to do a
tomcat stop and tomcat start from anywhere to stop and start tomcat. My
script name is "tomcat" without the .sh .

Sorry if I am too verbose in my instructions.

Doug


- Original Message - 
From: "Wilson, Allen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 12, 2004 6:59 PM
Subject: RE: tomcat as deamon


> Doug...
>
> I tried to figure out how to use the jsvc...I have it configured but I
> not sure how to use in in a class...any ideas'
>
> Allen
>
> -Original Message-
> From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
>
> Sent: Monday, April 12, 2004 5:55 PM
> To: Tomcat Users List
> Subject: Re: tomcat as deamon
>
>
> Emerson,
>
> It depends. If you need to run tomcat on port 80, then you will need
> jsvc
> otherwise calling startup.sh should work.
>
> Doug
> www.parsonstechnical.com
>
>
> - Original Message - 
> From: "Emerson Cargnin" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, April 12, 2004 5:39 PM
> Subject: tomcat as deamon
>
>
> > Anyone has experience in using tomcat as deamon??
> > What would be the best way? using jsvc??? or create a script to be
> > called by init.d?
> >
> > Would be enough to call startup.sh and shutdown in apache init.d
> script
> >
> > -- 
> > 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]
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>






> This message may contain proprietary or confidential company information.
> Any unauthorized use or disclosure is prohibited.
>
>
>






> -
> 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 performance issue?

2004-04-12 Thread Peter Lin

glad the suggestion helps. I firmly believe in
profiling code to make sure simple little mistakes
that appear harmless aren't killing performance.

I'm constantly amazed at how little things improve
performance. the benefit of using OptimizeIt or any
other good profiling tool is well worth it. that's my
biased perspective :)

peter lin


--- Allistair Crossley <[EMAIL PROTECTED]>
wrote:
> This evening I did the same with JProbe under 360
> requests as you describe and this led to me gaining
> a 38% speedup.
>  
> The main bottleneck I found was some very simple
> tags I have were calling out.flush() at the end.
> Thiw was consuming 14 seconds of time to flush 1
> string from the tag. The tag is called many times
> within our JSPs because it calls the current skin
> label.
>  
> By simply removing the flush call the tag call
> method time across the load test went down to 2s.
> Not bad hey. There were other areas which I solved
> with application scope caching and a bean pool for a
> 3rd party bean that takes ages to initialise a
> connection.
>  
> I am getting there slowly but surely but Yoav I
> think was right all along and it is the code and you
> have to profile it and examine those call graphs!!!
>  
> ADC
> 
>   -Original Message- 
>   From: Peter Lin [mailto:[EMAIL PROTECTED] 
>   Sent: Mon 12/04/2004 19:53 
>   To: Tomcat Users List 
>   Cc: 
>   Subject: Re: Tomcat performance issue?
>   
>   
> 
>   
>   luckily I have a license of Borland OptimizeIt.
>   
>   What I do is I start tomcat using OptimizeIt. Then
> I create a test plan in JMeter. Once tomcat is
> running, I warm it up by sending it a couple hundred
> requests to make sure all the pages are compiled.
>   
>   before the test starts, use OptimizeIt to garbage
> collect. Once that is done, I start the test and
> look at the number of threads and size of the heap.
> If there's a memory leak, either the thread count
> will increase, or the heap will grow rapidly. Once I
> see either one, I then switch to the call graph to
> get a better picture of which methods are getting
> called. Usually, that is enough to point towards a
> culprit.
>   
>   repeat, and rinse as many times as needed until
> you've squashed all bugs and leaks.
>   
>   peter lin
>   
>   
>   
>   
>   Matt Woodings <[EMAIL PROTECTED]> wrote:
>   I just read your post this morning (I am lurking
> today as I have a few
>   issues of my own to clear up :-) ) and I think that
> is some really good
>   advice you gave. I do have a question though.
>   
>   Once you have noticed you have a memory leak, how
> do you go about locating
>   it?
>   
>   Matt
>   
>   
>   -
>   Do you Yahoo!?
>   Yahoo! Tax Center - File online by April 15th 
> 
> 
> 
>  
>
---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
>
---
> 
> 
> >
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]





__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



Re: help needed - keytool import of CA certs

2004-04-12 Thread Robert Hall
No, haven't tried it, but I will.
Thanks, again.
Robert

D'Alessandro, Arthur wrote:

Have you tried the tc4 "org.apache.catalina.net.SSLServerSocketFactory"




The other thing, what does the keystore look like:
keytool -list -v -keystore hostname.keystore
I am not 100% sure if tomcat requires the cert to be inside of an alias
of 'tomcat', that is how the tutorials, and how I've implemented ours.
It's not difficult to copy to another alias
Keytool -keyclone -alias  -dest tomcat
-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 8:32 PM
To: Tomcat Users List
Subject: Re: help needed - keytool import of CA certs

JBoss has Tomcat embedded and it uses jboss-service.xml instead of 
Tomcat's server.xml.
The  element:


address="${jboss.bind.address}" port = "8753" scheme = "https"
secure = "true" enableLookups= "true">

  
SSLImplementation="org.apache.tomcat.util.net.jsse.JSSEImplementation"

keystoreFile="${jboss.server.home.dir}/conf/hostname.keystore"
  keystorePass="secret"
  clientAuth="false"
  protocol = "TLS"/>

Thanks,
Robert
D'Alessandro, Arthur wrote:

 

I'm not too familiar with Jboss, is it within tomcat?  If so, what does
your server.xml connector snippplet look like? 

-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 8:06 PM
To: Tomcat Users List
Subject: Re: help needed - keytool import of CA certs

Arthur,

Thanks for the reply.  Yes, the hostname.crt file is a signed
certificate.
I've tried importing both with and without the -trustcacerts parameter,
the imports are successful, but I get the following exception in
JBoss-3.2.3/Tomcat-4.1.29:
16:23:59,561 ERROR [PoolTcpEndpoint] Endpoint [SSL: 
ServerSocket[addr=/0.0.0.0,port=0,localport=8753]] ignored exception: 
java.net.SocketException: SSL handshake
   

errorjavax.net.ssl.SSLException:
 

No available certificate
corresponds to the SSL cipher suites which are enabled.
java.net.SocketException: SSL handshake
   

errorjavax.net.ssl.SSLException:
 

No available certificate
corresponds to the SSL cipher suites which are enabled.
  at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESock
   

e
 

tFactory.java:152)
  at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint
   

.
 

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

6
 

9)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
   

l
 

.java:677)
  at java.lang.Thread.run(Thread.java:536)
Thanks,
Robert
D'Alessandro, Arthur wrote:



   

Robert,
First thing, tomcat looks for the users home folder of whom is running
tomcat for .keystore, if this is not available, or you wish to move
 

the
 

keystore, you can state so in the Connector within server.xml

Another thing, the password defaults to 'changeit', if you wish to
 

have
 

an alternative password, you will need to specify again within the
connector element.
Third, you appear to be using the trustcacerts, is the cert you
 

specify
 

in hostname.crt the CA root cert (local CA) or the signed certificate?
From your description, I assume it is the signed valid cert from
Verisign.

Off the top of my head, I don't remember the need for the
'-trustcacerts'
This is a good site that may help as well:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 6:56 PM
To: Tomcat Users List
Subject: help needed - keytool import of CA certs

I've been floundering for too many hours/days having ventured into the
java/keytool/keystore/CAcert realm for the first time to produce a
CA signed certificate for JBoss/Tomcat.
We have a Verisign/RSA cert, hostname.crt that produces the following
when
imported using 'keytool':
$ keytool -import -trustcacerts -file hostname.crt -keystore 
hostname.keystore
Enter keystore password:  secret
Owner: CN=hostname.berkeley.edu, OU=MY-ORG-UNIT, O="University of 
California, Berkeley", L=Berkeley, ST=California, C=US
Issuer: OU=Secure Server Certification Authority, O="RSA Data
 

Security,
 

  

 



   

Inc.", C=US
Serial number: 63ba7416f9d061ad65db8b61554bd8c3
Valid from: Wed Aug 13 17:00:00 PDT 2003 until: Fri Aug 13 16:59:59
 

PDT
 

2004
Certificate fingerprints:
  MD5:  05:A7:B1:17:6B:C2:0B:FA:9A:B9:80:22:6A:B0:96:6B
  SHA1:
B9:34:D0:58:C4:9C:01:CD:C1:05:D9:FD:C1:D1:45:43:E3:6C:17:1A
Trust this certificate? [no]:  yes
Certificate was added to keystore
And if you're still reading, some questions:

1. Should the "Trust this certificate?" prompt appear if a
  

 

corresponding

   

CA cert entry
 exists in $JAVA_HOME/jre/lib/security/cacerts ?
2.  Is it necessary to go through the CSR (Certificate Signing
 

Request)
 

  

 



   

process when
  you already have

RE: help needed - keytool import of CA certs

2004-04-12 Thread D'Alessandro, Arthur
Have you tried the tc4 "org.apache.catalina.net.SSLServerSocketFactory"


 

 

The other thing, what does the keystore look like:
keytool -list -v -keystore hostname.keystore

I am not 100% sure if tomcat requires the cert to be inside of an alias
of 'tomcat', that is how the tutorials, and how I've implemented ours.

It's not difficult to copy to another alias
Keytool -keyclone -alias  -dest tomcat

-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 8:32 PM
To: Tomcat Users List
Subject: Re: help needed - keytool import of CA certs

JBoss has Tomcat embedded and it uses jboss-service.xml instead of 
Tomcat's server.xml.
The  element:


 


Thanks,
Robert

D'Alessandro, Arthur wrote:

>I'm not too familiar with Jboss, is it within tomcat?  If so, what does
>your server.xml connector snippplet look like? 
>
>-Original Message-
>From: Robert Hall [mailto:[EMAIL PROTECTED] 
>Sent: Monday, April 12, 2004 8:06 PM
>To: Tomcat Users List
>Subject: Re: help needed - keytool import of CA certs
>
>Arthur,
>
>Thanks for the reply.  Yes, the hostname.crt file is a signed
>certificate.
>I've tried importing both with and without the -trustcacerts parameter,
>the imports are successful, but I get the following exception in
>JBoss-3.2.3/Tomcat-4.1.29:
>
>16:23:59,561 ERROR [PoolTcpEndpoint] Endpoint [SSL: 
>ServerSocket[addr=/0.0.0.0,port=0,localport=8753]] ignored exception: 
>java.net.SocketException: SSL handshake
errorjavax.net.ssl.SSLException:
>
>No available certificate
>corresponds to the SSL cipher suites which are enabled.
>java.net.SocketException: SSL handshake
errorjavax.net.ssl.SSLException:
>
>No available certificate
>corresponds to the SSL cipher suites which are enabled.
>at 
>org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESock
e
>tFactory.java:152)
>at 
>org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint
.
>java:387)
>at 
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
6
>9)
>at 
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l
>.java:677)
>at java.lang.Thread.run(Thread.java:536)
>
>Thanks,
>Robert
>
>D'Alessandro, Arthur wrote:
>
>  
>
>>Robert,
>>First thing, tomcat looks for the users home folder of whom is running
>>tomcat for .keystore, if this is not available, or you wish to move
the
>>keystore, you can state so in the Connector within server.xml
>>
>>Another thing, the password defaults to 'changeit', if you wish to
have
>>an alternative password, you will need to specify again within the
>>connector element.
>>
>>Third, you appear to be using the trustcacerts, is the cert you
specify
>>in hostname.crt the CA root cert (local CA) or the signed certificate?
>>>From your description, I assume it is the signed valid cert from
>>Verisign.
>>
>>Off the top of my head, I don't remember the need for the
>>'-trustcacerts'
>>
>>This is a good site that may help as well:
>>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
>>
>>
>>-Original Message-
>>From: Robert Hall [mailto:[EMAIL PROTECTED] 
>>Sent: Monday, April 12, 2004 6:56 PM
>>To: Tomcat Users List
>>Subject: help needed - keytool import of CA certs
>>
>>I've been floundering for too many hours/days having ventured into the
>>java/keytool/keystore/CAcert realm for the first time to produce a
>>CA signed certificate for JBoss/Tomcat.
>>
>>We have a Verisign/RSA cert, hostname.crt that produces the following
>>when
>>imported using 'keytool':
>>
>>$ keytool -import -trustcacerts -file hostname.crt -keystore 
>>hostname.keystore
>>Enter keystore password:  secret
>>Owner: CN=hostname.berkeley.edu, OU=MY-ORG-UNIT, O="University of 
>>California, Berkeley", L=Berkeley, ST=California, C=US
>>Issuer: OU=Secure Server Certification Authority, O="RSA Data
Security,
>>
>>
>
>  
>
>>Inc.", C=US
>>Serial number: 63ba7416f9d061ad65db8b61554bd8c3
>>Valid from: Wed Aug 13 17:00:00 PDT 2003 until: Fri Aug 13 16:59:59
PDT
>>2004
>>Certificate fingerprints:
>>MD5:  05:A7:B1:17:6B:C2:0B:FA:9A:B9:80:22:6A:B0:96:6B
>>SHA1:
>>B9:34:D0:58:C4:9C:01:CD:C1:05:D9:FD:C1:D1:45:43:E3:6C:17:1A
>>Trust this certificate? [no]:  yes
>>Certificate was added to keystore
>>
>>And if you're still reading, some questions:
>>
>>1. Should the "Trust this certificate?" prompt appear if a
>>
>>
>corresponding
>  
>
>>CA cert entry
>>   exists in $JAVA_HOME/jre/lib/security/cacerts ?
>>
>>2.  Is it necessary to go through the CSR (Certificate Signing
Request)
>>
>>
>
>  
>
>>process when
>>you already have a server cert file?
>>
>>3. What else is needed in addition to an existing server cert file if 
>>you don't have to go
>>   through the CSR process?
>>
>>Thanks,
>>Robert
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAI

Re: help needed - keytool import of CA certs

2004-04-12 Thread Robert Hall
JBoss has Tomcat embedded and it uses jboss-service.xml instead of 
Tomcat's server.xml.
The  element:


address="${jboss.bind.address}" port = "8753" scheme = "https"
secure = "true" enableLookups= "true">

  
SSLImplementation="org.apache.tomcat.util.net.jsse.JSSEImplementation"
  keystoreFile="${jboss.server.home.dir}/conf/hostname.keystore"
  keystorePass="secret"
  clientAuth="false"
  protocol = "TLS"/>


Thanks,
Robert
D'Alessandro, Arthur wrote:

I'm not too familiar with Jboss, is it within tomcat?  If so, what does
your server.xml connector snippplet look like? 

-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 8:06 PM
To: Tomcat Users List
Subject: Re: help needed - keytool import of CA certs

Arthur,

Thanks for the reply.  Yes, the hostname.crt file is a signed
certificate.
I've tried importing both with and without the -trustcacerts parameter,
the imports are successful, but I get the following exception in
JBoss-3.2.3/Tomcat-4.1.29:
16:23:59,561 ERROR [PoolTcpEndpoint] Endpoint [SSL: 
ServerSocket[addr=/0.0.0.0,port=0,localport=8753]] ignored exception: 
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException:

No available certificate
corresponds to the SSL cipher suites which are enabled.
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException:
No available certificate
corresponds to the SSL cipher suites which are enabled.
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocke
tFactory.java:152)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:387)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
9)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:677)
   at java.lang.Thread.run(Thread.java:536)

Thanks,
Robert
D'Alessandro, Arthur wrote:

 

Robert,
First thing, tomcat looks for the users home folder of whom is running
tomcat for .keystore, if this is not available, or you wish to move the
keystore, you can state so in the Connector within server.xml
Another thing, the password defaults to 'changeit', if you wish to have
an alternative password, you will need to specify again within the
connector element.
Third, you appear to be using the trustcacerts, is the cert you specify
in hostname.crt the CA root cert (local CA) or the signed certificate?
From your description, I assume it is the signed valid cert from
Verisign.

Off the top of my head, I don't remember the need for the
'-trustcacerts'
This is a good site that may help as well:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 6:56 PM
To: Tomcat Users List
Subject: help needed - keytool import of CA certs

I've been floundering for too many hours/days having ventured into the
java/keytool/keystore/CAcert realm for the first time to produce a
CA signed certificate for JBoss/Tomcat.
We have a Verisign/RSA cert, hostname.crt that produces the following
when
imported using 'keytool':
$ keytool -import -trustcacerts -file hostname.crt -keystore 
hostname.keystore
Enter keystore password:  secret
Owner: CN=hostname.berkeley.edu, OU=MY-ORG-UNIT, O="University of 
California, Berkeley", L=Berkeley, ST=California, C=US
Issuer: OU=Secure Server Certification Authority, O="RSA Data Security,
   

 

Inc.", C=US
Serial number: 63ba7416f9d061ad65db8b61554bd8c3
Valid from: Wed Aug 13 17:00:00 PDT 2003 until: Fri Aug 13 16:59:59 PDT
2004
Certificate fingerprints:
   MD5:  05:A7:B1:17:6B:C2:0B:FA:9A:B9:80:22:6A:B0:96:6B
   SHA1:
B9:34:D0:58:C4:9C:01:CD:C1:05:D9:FD:C1:D1:45:43:E3:6C:17:1A
Trust this certificate? [no]:  yes
Certificate was added to keystore
And if you're still reading, some questions:

1. Should the "Trust this certificate?" prompt appear if a
   

corresponding
 

CA cert entry
  exists in $JAVA_HOME/jre/lib/security/cacerts ?
2.  Is it necessary to go through the CSR (Certificate Signing Request)
   

 

process when
   you already have a server cert file?
3. What else is needed in addition to an existing server cert file if 
you don't have to go
  through the CSR process?

Thanks,
Robert
-
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 

Re: Request parameters getting lost

2004-04-12 Thread QM
On Mon, Apr 12, 2004 at 07:50:55PM -0400, Frank W. Zammetti wrote:
: So, my question is twofold... One, has anyone ever seen such an issue as
: missing parameters before, and if so, what information can you share with me
: about it?  Two, am I off my rocker to think that connector config is way out
: of wack, and assuming it is, what suggestions would you guys have to fix it,
: given the approximate load I've stated here?

The params may never reach Tomcat:

- do your end-users use a different browser than you?
- does the app rely on javascript to set any params?

See what I mean?

Maybe you could use a servlet filter, to track params as they enter the
container?  You mentioned this is an intermittent problem, though, so
you could burn a lot of log space in the hopes of tracking down the
bug...

-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: Request parameters getting lost

2004-04-12 Thread Daniel Huang
You mentioned you have javascript to enforce user to enter values. Have you
considered the possibility that user has disabled javascript from browser?
That way they will be able to submit a null value to the server.

Regards,
Daniel

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 4:51 PM
To: [EMAIL PROTECTED]
Subject: Request parameters getting lost

I have a very odd situation...

I have an app running on Tomcat 5.0.1.8.  We're using it as both a web
server and servlet container.  What's happening is I'm getting
NullPointerExceptions in both JSP's and servlets that is a result of request
parameters seemingly being lost somewhere along the way.  In other words, if
I submit a form to a servlet with a couple of fields, the parameters are not
showing up in the request object, hence I get NullPointerExceptions trying
to access them.

This is an intermittent problem, in fact it's fairly rare (which has saved
my a** at work thus far!), but I still have not been able to explain it.  It
is happening at various points in my app, no consistent pattern that I've
been able to discern, all of which should theoretically be impossible to
have no parameters because the user is forced to enter things via
JavaScript, or clicking a button submits a hidden form, things like that.
I've tried the best I can to get it to happen on my development
installation, but of course I've been unable to replicate it, but I have
seen it on the production server so I know it's not just a stupid user trick
(although I can't rule out them doing something stupid that I just haven't
imagined).

I have a sneaking suspicion that it's a server tuning issue, and in fact I
just did some reading and it looks like my predecessor in charge of tuning
Tomcat really screwed up some things.  Here's his connector configuration:



That looks incredibly wrong to me in terms of tuning.  The app has a TOTAL
of 87 users, and not all of them are using the app at the same time, and the
requests are certainly not coming all at the same time.  I'm guessing we're
talking about an average of maybe 20 concurrent requests at any given time,
not a huge load by any stretch.

So, my question is twofold... One, has anyone ever seen such an issue as
missing parameters before, and if so, what information can you share with me
about it?  Two, am I off my rocker to think that connector config is way out
of wack, and assuming it is, what suggestions would you guys have to fix it,
given the approximate load I've stated here?

Thanks in advance everyone!

Frank



-
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: help needed - keytool import of CA certs

2004-04-12 Thread D'Alessandro, Arthur
I'm not too familiar with Jboss, is it within tomcat?  If so, what does
your server.xml connector snippplet look like? 

-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 8:06 PM
To: Tomcat Users List
Subject: Re: help needed - keytool import of CA certs

Arthur,

Thanks for the reply.  Yes, the hostname.crt file is a signed
certificate.
I've tried importing both with and without the -trustcacerts parameter,
the imports are successful, but I get the following exception in
JBoss-3.2.3/Tomcat-4.1.29:

16:23:59,561 ERROR [PoolTcpEndpoint] Endpoint [SSL: 
ServerSocket[addr=/0.0.0.0,port=0,localport=8753]] ignored exception: 
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException:

No available certificate
corresponds to the SSL cipher suites which are enabled.
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException:

No available certificate
corresponds to the SSL cipher suites which are enabled.
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocke
tFactory.java:152)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:387)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
9)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:677)
at java.lang.Thread.run(Thread.java:536)

Thanks,
Robert

D'Alessandro, Arthur wrote:

>Robert,
>First thing, tomcat looks for the users home folder of whom is running
>tomcat for .keystore, if this is not available, or you wish to move the
>keystore, you can state so in the Connector within server.xml
>
>Another thing, the password defaults to 'changeit', if you wish to have
>an alternative password, you will need to specify again within the
>connector element.
>
>Third, you appear to be using the trustcacerts, is the cert you specify
>in hostname.crt the CA root cert (local CA) or the signed certificate?
>>From your description, I assume it is the signed valid cert from
>Verisign.
>
>Off the top of my head, I don't remember the need for the
>'-trustcacerts'
>
>This is a good site that may help as well:
>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
> 
>
>-Original Message-
>From: Robert Hall [mailto:[EMAIL PROTECTED] 
>Sent: Monday, April 12, 2004 6:56 PM
>To: Tomcat Users List
>Subject: help needed - keytool import of CA certs
>
>I've been floundering for too many hours/days having ventured into the
>java/keytool/keystore/CAcert realm for the first time to produce a
>CA signed certificate for JBoss/Tomcat.
>
>We have a Verisign/RSA cert, hostname.crt that produces the following
>when
>imported using 'keytool':
>
>$ keytool -import -trustcacerts -file hostname.crt -keystore 
>hostname.keystore
>Enter keystore password:  secret
>Owner: CN=hostname.berkeley.edu, OU=MY-ORG-UNIT, O="University of 
>California, Berkeley", L=Berkeley, ST=California, C=US
>Issuer: OU=Secure Server Certification Authority, O="RSA Data Security,

>Inc.", C=US
>Serial number: 63ba7416f9d061ad65db8b61554bd8c3
>Valid from: Wed Aug 13 17:00:00 PDT 2003 until: Fri Aug 13 16:59:59 PDT
>2004
>Certificate fingerprints:
> MD5:  05:A7:B1:17:6B:C2:0B:FA:9A:B9:80:22:6A:B0:96:6B
> SHA1:
>B9:34:D0:58:C4:9C:01:CD:C1:05:D9:FD:C1:D1:45:43:E3:6C:17:1A
>Trust this certificate? [no]:  yes
>Certificate was added to keystore
>
>And if you're still reading, some questions:
>
>1. Should the "Trust this certificate?" prompt appear if a
corresponding
>
>CA cert entry
>exists in $JAVA_HOME/jre/lib/security/cacerts ?
>
>2.  Is it necessary to go through the CSR (Certificate Signing Request)

>process when
> you already have a server cert file?
>
>3. What else is needed in addition to an existing server cert file if 
>you don't have to go
>through the CSR process?
>
>Thanks,
>Robert
>
>
>-
>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: help needed - keytool import of CA certs

2004-04-12 Thread Robert Hall
Arthur,

Thanks for the reply.  Yes, the hostname.crt file is a signed certificate.
I've tried importing both with and without the -trustcacerts parameter,
the imports are successful, but I get the following exception in
JBoss-3.2.3/Tomcat-4.1.29:
16:23:59,561 ERROR [PoolTcpEndpoint] Endpoint [SSL: 
ServerSocket[addr=/0.0.0.0,port=0,localport=8753]] ignored exception: 
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: 
No available certificate
corresponds to the SSL cipher suites which are enabled.
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: 
No available certificate
corresponds to the SSL cipher suites which are enabled.
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:152)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:387)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:569)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
   at java.lang.Thread.run(Thread.java:536)

Thanks,
Robert
D'Alessandro, Arthur wrote:

Robert,
First thing, tomcat looks for the users home folder of whom is running
tomcat for .keystore, if this is not available, or you wish to move the
keystore, you can state so in the Connector within server.xml
Another thing, the password defaults to 'changeit', if you wish to have
an alternative password, you will need to specify again within the
connector element.
Third, you appear to be using the trustcacerts, is the cert you specify
in hostname.crt the CA root cert (local CA) or the signed certificate?
From your description, I assume it is the signed valid cert from
Verisign.

Off the top of my head, I don't remember the need for the
'-trustcacerts'
This is a good site that may help as well:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 6:56 PM
To: Tomcat Users List
Subject: help needed - keytool import of CA certs

I've been floundering for too many hours/days having ventured into the
java/keytool/keystore/CAcert realm for the first time to produce a
CA signed certificate for JBoss/Tomcat.
We have a Verisign/RSA cert, hostname.crt that produces the following
when
imported using 'keytool':
$ keytool -import -trustcacerts -file hostname.crt -keystore 
hostname.keystore
Enter keystore password:  secret
Owner: CN=hostname.berkeley.edu, OU=MY-ORG-UNIT, O="University of 
California, Berkeley", L=Berkeley, ST=California, C=US
Issuer: OU=Secure Server Certification Authority, O="RSA Data Security, 
Inc.", C=US
Serial number: 63ba7416f9d061ad65db8b61554bd8c3
Valid from: Wed Aug 13 17:00:00 PDT 2003 until: Fri Aug 13 16:59:59 PDT
2004
Certificate fingerprints:
MD5:  05:A7:B1:17:6B:C2:0B:FA:9A:B9:80:22:6A:B0:96:6B
SHA1:
B9:34:D0:58:C4:9C:01:CD:C1:05:D9:FD:C1:D1:45:43:E3:6C:17:1A
Trust this certificate? [no]:  yes
Certificate was added to keystore

And if you're still reading, some questions:

1. Should the "Trust this certificate?" prompt appear if a corresponding

CA cert entry
   exists in $JAVA_HOME/jre/lib/security/cacerts ?
2.  Is it necessary to go through the CSR (Certificate Signing Request) 
process when
you already have a server cert file?

3. What else is needed in addition to an existing server cert file if 
you don't have to go
   through the CSR process?

Thanks,
Robert
-
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: Apache2+Jk2+Tomcat5

2004-04-12 Thread QM
On Mon, Apr 12, 2004 at 07:37:31PM -0400, Yang Xiao wrote:
: I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work
: I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so
: in /usr/local/apache/modules
: But when I start the Tomcat server, I'm getting this error
: 
: INFO: APR not loaded, disabling jni components: java.io.IOException:
: java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
: /usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final

The error message is your big clue here ;)

Do a web search for the details of what this message means, then run
"ldd" on libjkjni.so to determine which shared libs it requires. 

Notice which libs ldd says don't exist, and set (or append)
$LD_LIBRARY_PATH accordingly.

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



Prevent context startup on servlet init failure?

2004-04-12 Thread Josh Rehman
Is there a way to prevent the context from starting up if a servlet 
init() call throws an exception or otherwise fails?

Here's the situation: we have a utility servlet that loads first (using 
) and accesses some external resources, checks database 
connections, etc. Then our main application servlet loads. In the case 
where the external dependancy fails, the context still comes up and 
fails at a later point. It would be better practice to have the context 
load fail when our utility servlet init() method throws it's exception.

I was thinking that there might be something in ServletContext that 
would allow the servlet to force the context to dump out. Or perhaps a 
call to System.exit(1) would be appropriate.

I'd really appreciate some advice. Thanks.

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


RE: help needed - keytool import of CA certs

2004-04-12 Thread D'Alessandro, Arthur
Robert,
First thing, tomcat looks for the users home folder of whom is running
tomcat for .keystore, if this is not available, or you wish to move the
keystore, you can state so in the Connector within server.xml

Another thing, the password defaults to 'changeit', if you wish to have
an alternative password, you will need to specify again within the
connector element.

Third, you appear to be using the trustcacerts, is the cert you specify
in hostname.crt the CA root cert (local CA) or the signed certificate?
>From your description, I assume it is the signed valid cert from
Verisign.

Off the top of my head, I don't remember the need for the
'-trustcacerts'

This is a good site that may help as well:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
 

-Original Message-
From: Robert Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 6:56 PM
To: Tomcat Users List
Subject: help needed - keytool import of CA certs

I've been floundering for too many hours/days having ventured into the
java/keytool/keystore/CAcert realm for the first time to produce a
CA signed certificate for JBoss/Tomcat.

We have a Verisign/RSA cert, hostname.crt that produces the following
when
imported using 'keytool':

$ keytool -import -trustcacerts -file hostname.crt -keystore 
hostname.keystore
Enter keystore password:  secret
Owner: CN=hostname.berkeley.edu, OU=MY-ORG-UNIT, O="University of 
California, Berkeley", L=Berkeley, ST=California, C=US
Issuer: OU=Secure Server Certification Authority, O="RSA Data Security, 
Inc.", C=US
Serial number: 63ba7416f9d061ad65db8b61554bd8c3
Valid from: Wed Aug 13 17:00:00 PDT 2003 until: Fri Aug 13 16:59:59 PDT
2004
Certificate fingerprints:
 MD5:  05:A7:B1:17:6B:C2:0B:FA:9A:B9:80:22:6A:B0:96:6B
 SHA1:
B9:34:D0:58:C4:9C:01:CD:C1:05:D9:FD:C1:D1:45:43:E3:6C:17:1A
Trust this certificate? [no]:  yes
Certificate was added to keystore

And if you're still reading, some questions:

1. Should the "Trust this certificate?" prompt appear if a corresponding

CA cert entry
exists in $JAVA_HOME/jre/lib/security/cacerts ?

2.  Is it necessary to go through the CSR (Certificate Signing Request) 
process when
 you already have a server cert file?

3. What else is needed in addition to an existing server cert file if 
you don't have to go
through the CSR process?

Thanks,
Robert


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



Request parameters getting lost

2004-04-12 Thread Frank W. Zammetti
I have a very odd situation... 

I have an app running on Tomcat 5.0.1.8.  We're using it as both a web
server and servlet container.  What's happening is I'm getting
NullPointerExceptions in both JSP's and servlets that is a result of request
parameters seemingly being lost somewhere along the way.  In other words, if
I submit a form to a servlet with a couple of fields, the parameters are not
showing up in the request object, hence I get NullPointerExceptions trying
to access them.

This is an intermittent problem, in fact it's fairly rare (which has saved
my a** at work thus far!), but I still have not been able to explain it.  It
is happening at various points in my app, no consistent pattern that I've
been able to discern, all of which should theoretically be impossible to
have no parameters because the user is forced to enter things via
JavaScript, or clicking a button submits a hidden form, things like that.
I've tried the best I can to get it to happen on my development
installation, but of course I've been unable to replicate it, but I have
seen it on the production server so I know it's not just a stupid user trick
(although I can't rule out them doing something stupid that I just haven't
imagined).

I have a sneaking suspicion that it's a server tuning issue, and in fact I
just did some reading and it looks like my predecessor in charge of tuning
Tomcat really screwed up some things.  Here's his connector configuration:



That looks incredibly wrong to me in terms of tuning.  The app has a TOTAL
of 87 users, and not all of them are using the app at the same time, and the
requests are certainly not coming all at the same time.  I'm guessing we're
talking about an average of maybe 20 concurrent requests at any given time,
not a huge load by any stretch.

So, my question is twofold... One, has anyone ever seen such an issue as
missing parameters before, and if so, what information can you share with me
about it?  Two, am I off my rocker to think that connector config is way out
of wack, and assuming it is, what suggestions would you guys have to fix it,
given the approximate load I've stated here?

Thanks in advance everyone!

Frank



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



Apache2+Jk2+Tomcat5

2004-04-12 Thread Yang Xiao
Hi list,
I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work
I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so
in /usr/local/apache/modules
But when I start the Tomcat server, I'm getting this error

INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
/usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final

Please help!

My jk2.properties file:
# Set the desired handler list
handler.list=apr,request,channelSocket
channelSocket.port=8009
shm.file=/usr/local/tomcat/logs/jk2.shm
apr.NativeSo=/usr/local/apache/modules/libjkjni.so

workers2.properties:
[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess
servers.
file=anon

# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

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

# Map the Tomcat examples webapp to the Web server uri space
[uri:/jsp-examples/*]
group=lb

[status:]
info=Status worker, displays runtime information

[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:

and httpd.conf:
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file /usr/local/apache/conf/workers2.propertie



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



RE: tomcat as deamon

2004-04-12 Thread Wilson, Allen
Doug...

I tried to figure out how to use the jsvc...I have it configured but I
not sure how to use in in a class...any ideas'

Allen

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

Sent: Monday, April 12, 2004 5:55 PM
To: Tomcat Users List
Subject: Re: tomcat as deamon


Emerson,

It depends. If you need to run tomcat on port 80, then you will need
jsvc
otherwise calling startup.sh should work.

Doug
www.parsonstechnical.com


- Original Message - 
From: "Emerson Cargnin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 12, 2004 5:39 PM
Subject: tomcat as deamon


> Anyone has experience in using tomcat as deamon??
> What would be the best way? using jsvc??? or create a script to be
> called by init.d?
>
> Would be enough to call startup.sh and shutdown in apache init.d
script
>
> -- 
> 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]
>
>



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

This message may contain proprietary or confidential company information.
Any unauthorized use or disclosure is prohibited.


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

help needed - keytool import of CA certs

2004-04-12 Thread Robert Hall
I've been floundering for too many hours/days having ventured into the
java/keytool/keystore/CAcert realm for the first time to produce a
CA signed certificate for JBoss/Tomcat.
We have a Verisign/RSA cert, hostname.crt that produces the following when
imported using 'keytool':
$ keytool -import -trustcacerts -file hostname.crt -keystore 
hostname.keystore
Enter keystore password:  secret
Owner: CN=hostname.berkeley.edu, OU=MY-ORG-UNIT, O="University of 
California, Berkeley", L=Berkeley, ST=California, C=US
Issuer: OU=Secure Server Certification Authority, O="RSA Data Security, 
Inc.", C=US
Serial number: 63ba7416f9d061ad65db8b61554bd8c3
Valid from: Wed Aug 13 17:00:00 PDT 2003 until: Fri Aug 13 16:59:59 PDT 2004
Certificate fingerprints:
MD5:  05:A7:B1:17:6B:C2:0B:FA:9A:B9:80:22:6A:B0:96:6B
SHA1: B9:34:D0:58:C4:9C:01:CD:C1:05:D9:FD:C1:D1:45:43:E3:6C:17:1A
Trust this certificate? [no]:  yes
Certificate was added to keystore

And if you're still reading, some questions:

1. Should the "Trust this certificate?" prompt appear if a corresponding 
CA cert entry
   exists in $JAVA_HOME/jre/lib/security/cacerts ?

2.  Is it necessary to go through the CSR (Certificate Signing Request) 
process when
you already have a server cert file?

3. What else is needed in addition to an existing server cert file if 
you don't have to go
   through the CSR process?

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


Re: tomcat as deamon

2004-04-12 Thread Parsons Technical Services
Emerson,

It depends. If you need to run tomcat on port 80, then you will need jsvc
otherwise calling startup.sh should work.

Doug
www.parsonstechnical.com


- Original Message - 
From: "Emerson Cargnin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 12, 2004 5:39 PM
Subject: tomcat as deamon


> Anyone has experience in using tomcat as deamon??
> What would be the best way? using jsvc??? or create a script to be
> called by init.d?
>
> Would be enough to call startup.sh and shutdown in apache init.d
script
>
> -- 
> 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]
>
>



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



Re: Exception processing JAR at resource path

2004-04-12 Thread Reynir Þór Hübner
hi,

does the tomcat user have rights on the temp dir ?
are you shure the CATALINA_HOME variable is correctly set ?
Creating the temp directory fixed the same problem for me.

hope it helps
-reynir
Nishant Kumar wrote:

hi,
i am using tomcat 4.1.30. when i start the server i get the error at
the end of this mail. i get this only when i set docBase in my
server.xml for this context. when i copy the files in the webapp dir
everything works fine. there are no xml parsing jars in the WEB-INF/lib
dir. the temp dir is also there in the CATALINA_HOME dir.
just before emitting this error the log says that it was able to deploy
this jar.
thanks in advance,
nishant.
2004-04-12 13:32:01 ContextConfig[reports] Exception processing JAR at
resource path /WEB-INF/lib/commons-fileupload.jar
javax.servlet.ServletException: Exception processing JAR at resource
path /WEB-INF/lib/commons-fileupload.jar
   at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
   at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
   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 -
java.io.FileNotFoundException
   at
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:344)
   at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:161)
   at
sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
   at
sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
   at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
   at
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
   at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
   at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
   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)


-
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 performance issue?

2004-04-12 Thread Allistair Crossley
This evening I did the same with JProbe under 360 requests as you describe and this 
led to me gaining a 38% speedup.
 
The main bottleneck I found was some very simple tags I have were calling out.flush() 
at the end. Thiw was consuming 14 seconds of time to flush 1 string from the tag. The 
tag is called many times within our JSPs because it calls the current skin label.
 
By simply removing the flush call the tag call method time across the load test went 
down to 2s. Not bad hey. There were other areas which I solved with application scope 
caching and a bean pool for a 3rd party bean that takes ages to initialise a 
connection.
 
I am getting there slowly but surely but Yoav I think was right all along and it is 
the code and you have to profile it and examine those call graphs!!!
 
ADC

-Original Message- 
From: Peter Lin [mailto:[EMAIL PROTECTED] 
Sent: Mon 12/04/2004 19:53 
To: Tomcat Users List 
Cc: 
Subject: Re: Tomcat performance issue?




luckily I have a license of Borland OptimizeIt.

What I do is I start tomcat using OptimizeIt. Then I create a test plan in 
JMeter. Once tomcat is running, I warm it up by sending it a couple hundred requests 
to make sure all the pages are compiled.

before the test starts, use OptimizeIt to garbage collect. Once that is done, 
I start the test and look at the number of threads and size of the heap. If there's a 
memory leak, either the thread count will increase, or the heap will grow rapidly. 
Once I see either one, I then switch to the call graph to get a better picture of 
which methods are getting called. Usually, that is enough to point towards a culprit.

repeat, and rinse as many times as needed until you've squashed all bugs and 
leaks.

peter lin




Matt Woodings <[EMAIL PROTECTED]> wrote:
I just read your post this morning (I am lurking today as I have a few
issues of my own to clear up :-) ) and I think that is some really good
advice you gave. I do have a question though.

Once you have noticed you have a memory leak, how do you go about locating
it?

Matt


-
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th 



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---


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

RE: Require a tomcat build with bug fix....

2004-04-12 Thread Jacob Kjome

Here's where it exists in the Tomcat5 CVS.  I haven't looked at whether the fix
is there or not, but at least you know where to check it out now...

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java


Jake

Quoting Philip Baruc <[EMAIL PROTECTED]>:

> I just tried to run tomcat 5.0.22 and i don't belive
> the bug(10469) is resolved in this build.
> I see the fix here:
>
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java
> 
> This also were i got the version 1.50 that i alluded
> to in an earlier email.
> 
> from what i can see. IN the 1.50 version. there has
> been a change made to the getURL(File file) function:
> 
>/**
>  * Get URL.
>  */
> protected URL getURL(File file)
> throws MalformedURLException {
> 
> File realFile = file;
> try {
> realFile = realFile.getCanonicalFile();
> } catch (IOException e) {
> // Ignore
> }
> 
> //return new URL("file:" +
> realFile.getPath());
> URLEncoder urlEncoder = new URLEncoder();
> urlEncoder.addSafeCharacter(',');
> urlEncoder.addSafeCharacter(':');
> urlEncoder.addSafeCharacter('-');
> urlEncoder.addSafeCharacter('_');
> urlEncoder.addSafeCharacter('.');
> urlEncoder.addSafeCharacter('*');
> urlEncoder.addSafeCharacter('/');
> urlEncoder.addSafeCharacter('!');
> urlEncoder.addSafeCharacter('~');
> urlEncoder.addSafeCharacter('\'');
> urlEncoder.addSafeCharacter('(');
> urlEncoder.addSafeCharacter(')');
> 
> return new
> URL(urlEncoder.encode(realFile.toURL().toString()));
> }
> 
> 
> In the tomcat 5.0.22 version, it appears that the
> getURL(File) still looks as it did before markt made
> his feb 22 fix to the bug.
> 
> It appears that the fix is in the tomcat 4.0 branch
> but not in the tomcat 5.0 branchs. I hope i am reading
> the cvs repositories correctly. If not perhaps you can
> help me. Basially I'm looking for a build of tomcat
> (perferably a 4.0 build) that has this fix. I am
> reluctant to build the tomcat source files myself and
> distribute a custom bug fixed version of tomcat to our
> customers.
> 
> I'm running into a problem without this fix because
> i'm attempting to make an RMI call from with in
> tomcat. When tomcat attempts to resolve the remove
> interface i get an exception like:
> 
> java.rmi.UnmarshalException: error unmarshalling
> arguments; nested exception is:
>   java.net.MalformedURLException: no protocol:
> Files/Apache
> 
> I belive that this is cause WebAppClassLoader
> getURL(File) function is suffering from a bug encoding
> problem in the jdk.
> 
> http://developer.java.sun.com/developer/bugParade/bugs/4273532.html
> 
> I belive that Apache has recognized this problem and
> has implemented its fix in its cvs repositories in its
> tomcat 4.0 branch, but no in any of the builds on the
> 4.0 branch.
> 
> Please advice...
> 
> Thank You,
> P.B.
> 
> 
> --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> >
> >
> http://www.apache.org/dist/jakarta/tomcat-5/v5.0.22-alpha/
> >
> > Yoav Shapira
> > Millennium Research Informatics
> >
> >
> > >-Original Message-
> > >From: Philip Baruc [mailto:[EMAIL PROTECTED]
> > >Sent: Monday, April 12, 2004 3:04 PM
> > >To: Tomcat Users List
> > >Subject: RE: Require a tomcat build with bug
> > fix
> > >
> > >Is there a place where i can download a build of
> > the
> > >5.0.22-alpha version of tomcat, or does this
> > require
> > >me pulling the 5.0.22 branch from cvs and building
> > it?
> > >
> > >philip b
> > >
> > >--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> > >>
> > >> Hi,
> > >>
> > >> >I've also downloaded
> > >> >the 4.1.30 source and noticed that the
> > >> >WebAppClassLoader is only at version 1.48 where
> > as
> > >> the
> > >> >bug fix is applied to a 1.50 version of the
> > >> >WebAppClassLoader.
> > >>
> > >> I'm not sure where you're getting your version
> > >> numbers.
> > >>
> >
> >http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/
> > s
> > >> hare/org/apache/catalina/loader/ shows that 1.31
> > is
> > >> the current CVS
> > >> version of WebAppClassLoader, so what's 1.48 and
> > >> 1.50 that you're
> > >> talking about?
> > >>
> > >> Mark marked the issue as fixed on 2004-02-22.
> > >> 4.1.30 was released on
> > >> 2004-01-25.  So what I said before was wrong:
> > 4.1.30
> > >> doesn't have your
> > >> fix.  For that matter, 5.0.19 is from 2004-02-14,
> > so
> > >> it doesn't have
> > >> your fix either.  5.0.22-alpha is from last week
> > and
> > >> should have your
> > >> fix.
> > >>
> > >> Tomcat 5 is not so different that you should be
> > >> afraid to try it.
> > >>
> > >> Yoav Shapira
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> This e-mail, including any attachments, is a
> > >> confidential 

Re: tomcat as daemon

2004-04-12 Thread Daniel Gibby
E ai Emerson.

Here is my init.d script that I've had good results with:

#!/bin/sh
##
# Comments to support chkconfig on RedHat Linux
# chkconfig: 2345 84 84
# description: A very fast and reliable J2EE Servlet Container.
# add jikes to the path
LD_ASSUME_KERNEL=2.2.5
#LD_ASSUME_KERNEL=2.4.1
export LD_ASSUME_KERNEL
export LANG="en_US"
export LOCALE="en_US"
PATH=/usr/local/bin:$PATH
export PATH
timestamp=`date +%Y-%m-%d-%H%M%S`
serverRoot=/etc/httpd
export serverRoot
JAVA_HOME=/usr/local/java
export JAVA_HOME
CLASSPATH=/usr/local/java/jre/lib/core.jar:/usr/local/java/jre/lib/server.jar
export CLASSPATH
TOMCAT_HOME=/usr/local/jakarta-tomcat
export TOMCAT_HOME
CATALINA_OPTS="-Xms196m -Xmx896m -Dbuild.compiler.emacs=true 
-Duser.dir=$TOMCAT_HOME/temp"
export CATALINA_OPTS

case $1 in
'start')
echo "LD_ASSUME_KERNEL= $LD_ASSUME_KERNEL"
echo "timestamp= $timestamp"
echo "serverRoot= $serverRoot"
echo "JAVA_HOME= $JAVA_HOME"
echo "CLASSPATH= $CLASSPATH"
echo "TOMCAT_HOME= $TOMCAT_HOME"
echo "CATALINA_OPTS= $CATALINA_OPTS"
su tomcat4 -c "mv $TOMCAT_HOME/logs/catalina.out 
$TOMCAT_HOME/logs/catalina.$timestamp"
# mv $TOMCAT_HOME/logs/catalina.out 
$TOMCAT_HOME/logs/catalina.$timestamp

   cd $TOMCAT_HOME
   chown tomcat4.tomcat4 /var/log/rr/*
   chown tomcat4.tomcat4 $TOMCAT_HOME/logs/*
   chown tomcat4.tomcat4 $TOMCAT_HOME/work/jk2.socket
   chown apache.tomcat4 $TOMCAT_HOME/work/jk2.shm
   chown -R tomcat4.tomcat4 $TOMCAT_HOME/work/Standalone
   chown -R tomcat4.tomcat4 $TOMCAT_HOME/work/localhost_8080
   chmod 664 $TOMCAT_HOME/work/jk2.shm
# $TOMCAT_HOME/bin/startup.sh
su tomcat4 -c "$TOMCAT_HOME/bin/startup.sh"
sleep 10
   chown tomcat4.tomcat4 $TOMCAT_HOME/work/jk2.socket
/usr/sbin/apachectl graceful
;;
'kill')
/usr/sbin/apachectl stop
su tomcat4 -c "$TOMCAT_HOME/bin/shutdown.sh"
;;
'stop')
# /usr/local/apache/bin/apachectl stop
su tomcat4 -c "$TOMCAT_HOME/bin/shutdown.sh"
;;
'status')
ps auxw | fgrep tomcat | fgrep -v status | fgrep -v grep | fgrep -v 
tail
;;
*)
echo "usage: $0 {start|stop}"
;;
esac

Daniel Gibby

Emerson Cargnin wrote:

Anyone has experience in using tomcat as deamon??
What would be the best way? using jsvc??? or create a script to be 
called by init.d?

Would be enough to call startup.sh and shutdown in apache init.d 
script




tomcat as deamon

2004-04-12 Thread Emerson Cargnin
Anyone has experience in using tomcat as deamon??
What would be the best way? using jsvc??? or create a script to be 
called by init.d?

Would be enough to call startup.sh and shutdown in apache init.d script

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


overriding service

2004-04-12 Thread Emerson Cargnin
I've read somewhere that you should never override service method (from 
Servlet) and just override get/post methods???

Is that true? Or the only problem is that overriding service method, no 
other method types will be called?
--
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]


FYI: Extra jar files under server/lib are bad!

2004-04-12 Thread Nocera, Andrew A (Andy), ALABS

Hi,

I installed a jar file under server/lib to resolve a problem and spent
the last few days trying to figure out why it did not work.  Apparently,
renaming the old jar file to 'xservlets-cgi.jar' is not good enough.
beware! 

Andy



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



RE: Unexpected tomcat 4.1.27-30 shutdown problem

2004-04-12 Thread Nocera, Andrew A (Andy), ALABS
Hi,

Would an exeception in the code cause tomcat to stop?

Andy 

---tail catalina.out  

Stopping service Tomcat-Standalone
[INFO] Http11Protocol - -Stoping http11 protocol on 8099
Catalina:type=ThreadPool,name=http8099


-tail localhost_log.2004-04-12.txt
2004-04-12 16:45:00 ApplicationDispatcher[/SCME] Servlet.service() for
servlet j
sp threw exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:254)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)

2004-04-12 16:46:22 StandardHost[localhost]: Removing web application at
context path /SCME
2004-04-12 16:46:23 StandardHost[localhost]: Removing web application at
context path /examples
2004-04-12 16:46:23 StandardHost[localhost]: Removing web application at
context path /webdav
2004-04-12 16:46:23 StandardHost[localhost]: Removing web application at
context path /tomcat-docs
2004-04-12 16:46:23 StandardHost[localhost]: Removing web application at
context path /manager

---
tail localhost_examples_log.2004-04-12.txt
2004-04-12 16:46:23 SessionListener: contextDestroyed()
2004-04-12 16:46:23 ContextListener: contextDestroyed()
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 8:44 AM
To: Tomcat Users List
Subject: RE: Unexpected tomcat 4.1.27-30 shutdown problem



Hi,
>I am running tomcat 4.1.27/29/30 on a Solaris 5.7 or 5.8 and it
shutsdown
>for no
>apparent reason.   Sometimes it can go for hours without a problem,
>othetimes it stops much
>sooner.  There is no obvious error, just a shutdown.  The same code
built
>on another Solaris box and/or HPUX runs without a problem.  Any ideas
how I
>can debug this?

When it shuts down, are there files named 'core' and 'hs_err_pid'
(where  is the process ID of the server) in the working directory?
If so, what do those files contain?

The advice at this point is generic: make sure the box has the latest
Sun OS patches required for your JDK (these patches are available on the
JDK download page near the bottom), and make sure the user account
running the server has sufficient file descriptors and threads (the
ulimit settings).

Yoav Shapira



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


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


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



RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
I just tried to run tomcat 5.0.22 and i don't belive
the bug(10469) is resolved in this build.
I see the fix here:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java

This also were i got the version 1.50 that i alluded
to in an earlier email.

from what i can see. IN the 1.50 version. there has
been a change made to the getURL(File file) function:

   /**
 * Get URL.
 */
protected URL getURL(File file)
throws MalformedURLException {

File realFile = file;
try {
realFile = realFile.getCanonicalFile();
} catch (IOException e) {
// Ignore
}

//return new URL("file:" +
realFile.getPath());
URLEncoder urlEncoder = new URLEncoder();
urlEncoder.addSafeCharacter(',');
urlEncoder.addSafeCharacter(':');
urlEncoder.addSafeCharacter('-');
urlEncoder.addSafeCharacter('_');
urlEncoder.addSafeCharacter('.');
urlEncoder.addSafeCharacter('*');
urlEncoder.addSafeCharacter('/');
urlEncoder.addSafeCharacter('!');
urlEncoder.addSafeCharacter('~');
urlEncoder.addSafeCharacter('\'');
urlEncoder.addSafeCharacter('(');
urlEncoder.addSafeCharacter(')');

return new
URL(urlEncoder.encode(realFile.toURL().toString()));
}


In the tomcat 5.0.22 version, it appears that the 
getURL(File) still looks as it did before markt made
his feb 22 fix to the bug.

It appears that the fix is in the tomcat 4.0 branch
but not in the tomcat 5.0 branchs. I hope i am reading
the cvs repositories correctly. If not perhaps you can
help me. Basially I'm looking for a build of tomcat 
(perferably a 4.0 build) that has this fix. I am
reluctant to build the tomcat source files myself and
distribute a custom bug fixed version of tomcat to our
customers.

I'm running into a problem without this fix because
i'm attempting to make an RMI call from with in
tomcat. When tomcat attempts to resolve the remove
interface i get an exception like: 

java.rmi.UnmarshalException: error unmarshalling
arguments; nested exception is: 
java.net.MalformedURLException: no protocol:
Files/Apache

I belive that this is cause WebAppClassLoader
getURL(File) function is suffering from a bug encoding
problem in the jdk.

http://developer.java.sun.com/developer/bugParade/bugs/4273532.html

I belive that Apache has recognized this problem and
has implemented its fix in its cvs repositories in its
tomcat 4.0 branch, but no in any of the builds on the
4.0 branch.

Please advice...

Thank You,
P.B.


--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
>
http://www.apache.org/dist/jakarta/tomcat-5/v5.0.22-alpha/
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Philip Baruc [mailto:[EMAIL PROTECTED]
> >Sent: Monday, April 12, 2004 3:04 PM
> >To: Tomcat Users List
> >Subject: RE: Require a tomcat build with bug
> fix
> >
> >Is there a place where i can download a build of
> the
> >5.0.22-alpha version of tomcat, or does this
> require
> >me pulling the 5.0.22 branch from cvs and building
> it?
> >
> >philip b
> >
> >--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> >I've also downloaded
> >> >the 4.1.30 source and noticed that the
> >> >WebAppClassLoader is only at version 1.48 where
> as
> >> the
> >> >bug fix is applied to a 1.50 version of the
> >> >WebAppClassLoader.
> >>
> >> I'm not sure where you're getting your version
> >> numbers.
> >>
>
>http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/
> s
> >> hare/org/apache/catalina/loader/ shows that 1.31
> is
> >> the current CVS
> >> version of WebAppClassLoader, so what's 1.48 and
> >> 1.50 that you're
> >> talking about?
> >>
> >> Mark marked the issue as fixed on 2004-02-22.
> >> 4.1.30 was released on
> >> 2004-01-25.  So what I said before was wrong:
> 4.1.30
> >> doesn't have your
> >> fix.  For that matter, 5.0.19 is from 2004-02-14,
> so
> >> it doesn't have
> >> your fix either.  5.0.22-alpha is from last week
> and
> >> should have your
> >> fix.
> >>
> >> Tomcat 5 is not so different that you should be
> >> afraid to try it.
> >>
> >> Yoav Shapira
> >>
> >>
> >>
> >>
> >>
> >> This e-mail, including any attachments, is a
> >> confidential business communication, and may
> contain
> >> information that is confidential, proprietary
> and/or
> >> privileged.  This e-mail is intended only for the
> >> individual(s) to whom it is addressed, and may
> not
> >> be saved, copied, printed, disclosed or used by
> >> anyone else.  If you are not the(an) intended
> >> recipient, please immediately delete this e-mail
> >> from your computer system and notify the sender.
> >> Thank you.
> >>
> >>
> >>
>
>-
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PRO

Changing java.security file values via command line?

2004-04-12 Thread Jason Palmatier
Hello Everyone,

I have successfully modified a java.security file to
allow an SSL connection for a Tomcat server but now
want to have those changes applied only for my Tomcat
startup (i.e. not change the JVM's java.security
file).  I found some documentation that said you could
provide your own security properties file via the
command line using an option like this:

Djava.security.policy==$CATALINA_HOME/conf/my_app.security

But after trying it out and doing some more reading it
looks like this only allows you to change the access
rights and security settings for your java components,
not the JVM's configuration itself.  So then I tried
specifying the values I wanted changed via my
CATALINA_OPTS in startup.sh like so:

export -s
CATALINA_OPTS="-Dsecurity.provider.1=sun.security.provider.Sun

-Dsecurity.provider.2=com.ibm.crypto.provider.IBMJCE
.
.
.
-Dkeystore.type=JKS   
 
-Dssl.KeyManagerFactory.algorithm=IbmX509 
 
-Dssl.TrustManagerFactory.algorithm=IbmX509   
 
-Dssl.SocketFactory.provider=com.ibm.jsse.JSSESocketFactory

-Dssl.ServerSocketFactory.provider=com.ibm.jsse.JSSEServerSocketFactory"

But that doesn't seem to work (I wasn't too surprised
at this).  I posted this same question on Sun's Java
JSSE forum earlier today but that seems rather dead
and I haven't seen a reply yet.  I would think this
would be a relatively normal thing to want to do as
most people wouldn't want their defualt java.security
file messed with just for one application. 

Is there a way to specify these values via the command
line rather than changing the users java.security
file?

Any help or pointers to information would be great.

Thanks, 
Jason  

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



RE: SingleSignOn timeout

2004-04-12 Thread Summers, Bert W.
Let me see if I have this straight.

SingleSignOn registers itself with each session.
When a session dies it calls sessionEvent
Which then gets the ssoId and calls deregister
Which then iterates through all sessions for that ssoId and kills them

Now, if I change deregister and check the number of sessions and if there is
only one then remove the ssoId from the cache.
Seems that will fix my problem.

Are there any security problems I should be aware of?

Bert

-Original Message-
From: Summers, Bert W. [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 12:51 PM
To: Tomcat Users List
Subject: RE: SingleSignOn timeout


How deep is this restriction? Can I change the SSO class? I have already
subclassed it to add some client PKI checking.

Why would one webapp's timeout kill a current session, seems it should kill
itself then each session would die a natural death, unless I call invalidate
session.

Bert

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 12:27 PM
To: Tomcat Users List
Subject: RE: SingleSignOn timeout



Hi,
And Tomcat's SingleSignOn valve is restrictive.  So the behavior you're
seeing is by design.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Peter Lin [mailto:[EMAIL PROTECTED]
>Sent: Monday, April 12, 2004 3:27 PM
>To: Tomcat Users List
>Subject: Re: SingleSignOn timeout
>
>
>that would depend on the type of "single-signon" you want right.
>
>a restrictive single-signon mechanism would consider the user logged
out of
>all webapps once the user logs out of one webapp.
>
>if you don't want the login to be symmetic, when do you decide a login
is
>invalid? Is it based on timeouts, or some other mechanism?  In my mind,
>single-signon also means single-signout. But that's my biased
perspective.
>
>the reason for this way of thinking is, say I login to my BOA checking
>account and I go to view my savings account. Then I jump to my trading 
>account. When I log off, I expect to log off BOA and not just the
section
>I'm on.  Other people might have different expectations, but that's how
I
>tend to think of "single signon".
>
>peter lin
>
>
>
>"Summers, Bert W." <[EMAIL PROTECTED]> wrote:
>I am using the SingleSignOn class from Tomcat.
>It is working good in that I have three webapps that I can be between
>without a problem.
>
>My issue that when one of the sessions expire it kills all the sessions
in
>the other webapps and I get redirected to the login screen again.
>
>That is not supposed to happen is it?
>I am keeping one webapps session active and then it dies.
>
>Is there some setting?
>
>Thanks.
>
>
>-
>Do you Yahoo!?
>Yahoo! Tax Center - File online by April 15th



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


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

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

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



RE: SingleSignOn timeout

2004-04-12 Thread Summers, Bert W.
How deep is this restriction? Can I change the SSO class? I have already
subclassed it to add some client PKI checking.

Why would one webapp's timeout kill a current session, seems it should kill
itself then each session would die a natural death, unless I call invalidate
session.

Bert

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 12:27 PM
To: Tomcat Users List
Subject: RE: SingleSignOn timeout



Hi,
And Tomcat's SingleSignOn valve is restrictive.  So the behavior you're
seeing is by design.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Peter Lin [mailto:[EMAIL PROTECTED]
>Sent: Monday, April 12, 2004 3:27 PM
>To: Tomcat Users List
>Subject: Re: SingleSignOn timeout
>
>
>that would depend on the type of "single-signon" you want right.
>
>a restrictive single-signon mechanism would consider the user logged
out of
>all webapps once the user logs out of one webapp.
>
>if you don't want the login to be symmetic, when do you decide a login
is
>invalid? Is it based on timeouts, or some other mechanism?  In my mind, 
>single-signon also means single-signout. But that's my biased
perspective.
>
>the reason for this way of thinking is, say I login to my BOA checking 
>account and I go to view my savings account. Then I jump to my trading 
>account. When I log off, I expect to log off BOA and not just the
section
>I'm on.  Other people might have different expectations, but that's how
I
>tend to think of "single signon".
>
>peter lin
>
>
>
>"Summers, Bert W." <[EMAIL PROTECTED]> wrote:
>I am using the SingleSignOn class from Tomcat.
>It is working good in that I have three webapps that I can be between 
>without a problem.
>
>My issue that when one of the sessions expire it kills all the sessions
in
>the other webapps and I get redirected to the login screen again.
>
>That is not supposed to happen is it?
>I am keeping one webapps session active and then it dies.
>
>Is there some setting?
>
>Thanks.
>
>
>-
>Do you Yahoo!?
>Yahoo! Tax Center - File online by April 15th



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


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

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



RE: SingleSignOn timeout

2004-04-12 Thread Summers, Bert W.
I would agree with your perspective.

However,
After I have been in my trading account for 30 minutes my boa session time's
out and my trading session is killed.  That I do not expect.

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 12:27 PM
To: Tomcat Users List
Subject: Re: SingleSignOn timeout


 
that would depend on the type of "single-signon" you want right.
 
a restrictive single-signon mechanism would consider the user logged out of
all webapps once the user logs out of one webapp.
 
if you don't want the login to be symmetic, when do you decide a login is
invalid? Is it based on timeouts, or some other mechanism?  In my mind,
single-signon also means single-signout. But that's my biased perspective.
 
the reason for this way of thinking is, say I login to my BOA checking
account and I go to view my savings account. Then I jump to my trading
account. When I log off, I expect to log off BOA and not just the section
I'm on.  Other people might have different expectations, but that's how I
tend to think of "single signon".
 
peter lin
 


"Summers, Bert W." <[EMAIL PROTECTED]> wrote:
I am using the SingleSignOn class from Tomcat.
It is working good in that I have three webapps that I can be between
without a problem.

My issue that when one of the sessions expire it kills all the sessions in
the other webapps and I get redirected to the login screen again.

That is not supposed to happen is it?
I am keeping one webapps session active and then it dies.

Is there some setting?

Thanks.


-
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th

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



Tomcat Redirection Error

2004-04-12 Thread rtfrench1
Tomcat 3.2.3 with IIS 5.0 with Win2k.

When using http://myserver/examples/jsp/index I get a 404 error. My tomcat.log is:

2004-04-12 14:23:04 - ContextManager: Adding context Ctx( /examples )
2004-04-12 14:23:04 - ContextManager: Adding context Ctx( /admin )
2004-04-12 14:23:04 - ContextManager: Adding context Ctx(  )
2004-04-12 14:23:04 - ContextManager: Adding context Ctx( /test )
2004-04-12 14:23:10 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2004-04-12 14:23:10 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
2004-04-12 14:23:11 - Ctx(  ): 404 R(  + /jakarta/isapi_redirect.dll + null) null
2004-04-12 14:30:24 - Ctx(  ): 404 R(  + /jakarta/isapi_redirect.dll + null) null

IIS is running and has isapi_redirect.dll installed/defined. Jakarta is defined in 
registry with green up arrow in IIS.

Ok so tomcat cannot redirect for a reason. I've defined jakart according to all the 
documentation including TomcatIISHow To. Any ideas??

http://myserver:8080/examples/jsp/index.html does work.

server.xml and worker.properties file has same port # for ajp12: 8007.


Thank you ,

Roger

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



RE: SingleSignOn timeout

2004-04-12 Thread Shapira, Yoav

Hi,
And Tomcat's SingleSignOn valve is restrictive.  So the behavior you're
seeing is by design.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Peter Lin [mailto:[EMAIL PROTECTED]
>Sent: Monday, April 12, 2004 3:27 PM
>To: Tomcat Users List
>Subject: Re: SingleSignOn timeout
>
>
>that would depend on the type of "single-signon" you want right.
>
>a restrictive single-signon mechanism would consider the user logged
out of
>all webapps once the user logs out of one webapp.
>
>if you don't want the login to be symmetic, when do you decide a login
is
>invalid? Is it based on timeouts, or some other mechanism?  In my mind,
>single-signon also means single-signout. But that's my biased
perspective.
>
>the reason for this way of thinking is, say I login to my BOA checking
>account and I go to view my savings account. Then I jump to my trading
>account. When I log off, I expect to log off BOA and not just the
section
>I'm on.  Other people might have different expectations, but that's how
I
>tend to think of "single signon".
>
>peter lin
>
>
>
>"Summers, Bert W." <[EMAIL PROTECTED]> wrote:
>I am using the SingleSignOn class from Tomcat.
>It is working good in that I have three webapps that I can be between
>without a problem.
>
>My issue that when one of the sessions expire it kills all the sessions
in
>the other webapps and I get redirected to the login screen again.
>
>That is not supposed to happen is it?
>I am keeping one webapps session active and then it dies.
>
>Is there some setting?
>
>Thanks.
>
>
>-
>Do you Yahoo!?
>Yahoo! Tax Center - File online by April 15th



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


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



Re: SingleSignOn timeout

2004-04-12 Thread Peter Lin
 
that would depend on the type of "single-signon" you want right.
 
a restrictive single-signon mechanism would consider the user logged out of all 
webapps once the user logs out of one webapp.
 
if you don't want the login to be symmetic, when do you decide a login is invalid? Is 
it based on timeouts, or some other mechanism?  In my mind, single-signon also means 
single-signout. But that's my biased perspective.
 
the reason for this way of thinking is, say I login to my BOA checking account and I 
go to view my savings account. Then I jump to my trading account. When I log off, I 
expect to log off BOA and not just the section I'm on.  Other people might have 
different expectations, but that's how I tend to think of "single signon".
 
peter lin
 


"Summers, Bert W." <[EMAIL PROTECTED]> wrote:
I am using the SingleSignOn class from Tomcat.
It is working good in that I have three webapps that I can be between
without a problem.

My issue that when one of the sessions expire it kills all the sessions in
the other webapps and I get redirected to the login screen again.

That is not supposed to happen is it?
I am keeping one webapps session active and then it dies.

Is there some setting?

Thanks.


-
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th

SingleSignOn timeout

2004-04-12 Thread Summers, Bert W.
I am using the SingleSignOn class from Tomcat.
It is working good in that I have three webapps that I can be between
without a problem.
 
My issue that when one of the sessions expire it kills all the sessions in
the other webapps and I get redirected to the login screen again.
 
That is not supposed to happen is it?
I am keeping one webapps session active and then it dies.
 
Is there some setting?
 
Thanks.


RE: Require a tomcat build with bug fix....

2004-04-12 Thread Shapira, Yoav

http://www.apache.org/dist/jakarta/tomcat-5/v5.0.22-alpha/

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Philip Baruc [mailto:[EMAIL PROTECTED]
>Sent: Monday, April 12, 2004 3:04 PM
>To: Tomcat Users List
>Subject: RE: Require a tomcat build with bug fix
>
>Is there a place where i can download a build of the
>5.0.22-alpha version of tomcat, or does this require
>me pulling the 5.0.22 branch from cvs and building it?
>
>philip b
>
>--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> >I've also downloaded
>> >the 4.1.30 source and noticed that the
>> >WebAppClassLoader is only at version 1.48 where as
>> the
>> >bug fix is applied to a 1.50 version of the
>> >WebAppClassLoader.
>>
>> I'm not sure where you're getting your version
>> numbers.
>>
>http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/
s
>> hare/org/apache/catalina/loader/ shows that 1.31 is
>> the current CVS
>> version of WebAppClassLoader, so what's 1.48 and
>> 1.50 that you're
>> talking about?
>>
>> Mark marked the issue as fixed on 2004-02-22.
>> 4.1.30 was released on
>> 2004-01-25.  So what I said before was wrong: 4.1.30
>> doesn't have your
>> fix.  For that matter, 5.0.19 is from 2004-02-14, so
>> it doesn't have
>> your fix either.  5.0.22-alpha is from last week and
>> should have your
>> fix.
>>
>> Tomcat 5 is not so different that you should be
>> afraid to try it.
>>
>> Yoav Shapira
>>
>>
>>
>>
>>
>> This e-mail, including any attachments, is a
>> confidential business communication, and may contain
>> information that is confidential, proprietary and/or
>> privileged.  This e-mail is intended only for the
>> individual(s) to whom it is addressed, and may not
>> be saved, copied, printed, disclosed or used by
>> anyone else.  If you are not the(an) intended
>> recipient, please immediately delete this e-mail
>> from your computer system and notify the sender.
>> Thank you.
>>
>>
>>
>-
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>
>
>
>=
>---
>Philip G. Baruc
>[EMAIL PROTECTED]
>
>__
>Do you Yahoo!?
>Yahoo! Tax Center - File online by April 15th
>http://taxes.yahoo.com/filing.html
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: IBM Java VS SUN Java

2004-04-12 Thread Shapira, Yoav

Hi,
Was the linux box hyper-threaded?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Nicholas Bernstein [mailto:[EMAIL PROTECTED]
>Sent: Monday, April 12, 2004 2:50 PM
>To: Tomcat Users List
>Subject: IBM Java VS SUN Java
>
>Recently, we've been doing some load testing of apache (1.3.x) w/
tomcat
>4.1.29 & 5.0.19 and were surprised at how slow it was responding on our
>redhat linux testbed system. We did some comparisons to a Win2k tomcat
>server, and the Win2k server *BLEW* it out of the water in terms of
>speed and load limits. After some mucking around, we narrowed down the
>difference to the java implementation. We switched over from sun's java
>jdk1.4.2_04 to IBMJava2-141 and saw some speed improvements and huge
>differences in load limits, i.e. it could scale much higher.
>
>I was wondering if anyone had experienced any problems due to switching
>to IBM's java, and if so what they were. Also, if anyone has any hints,
>links, or general advice on how to speed things up, be it tomcat
tuning,
>or java, it would be very appreciated. The windows box, while not able
>to scale as well, does generally respond in 1/4 the time of the linux
>box.
>
>Thanks in Advance, any advice is appreciated.
>
>--
>+---+
>| Nicholas Bernstein| [EMAIL PROTECTED] |
>| UNIX Systems Administrator| http://www.docmagic.com   |
>| Document Systems Inc. |  |
>| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3   |
>+---+
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Tomcat 5 and Context Descriptors

2004-04-12 Thread Shapira, Yoav

Hi,

>Is this something new in TC5? Context XML's in appBase worked in
4.1.24.

Yup, the move from appBase to conf/[engine name]/[host name] is a change
in TC5.

Yoav Shapira



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


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



RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
Is there a place where i can download a build of the
5.0.22-alpha version of tomcat, or does this require
me pulling the 5.0.22 branch from cvs and building it?

philip b

--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> >I've also downloaded
> >the 4.1.30 source and noticed that the
> >WebAppClassLoader is only at version 1.48 where as
> the
> >bug fix is applied to a 1.50 version of the
> >WebAppClassLoader.
> 
> I'm not sure where you're getting your version
> numbers.
>
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s
> hare/org/apache/catalina/loader/ shows that 1.31 is
> the current CVS
> version of WebAppClassLoader, so what's 1.48 and
> 1.50 that you're
> talking about?
> 
> Mark marked the issue as fixed on 2004-02-22. 
> 4.1.30 was released on
> 2004-01-25.  So what I said before was wrong: 4.1.30
> doesn't have your
> fix.  For that matter, 5.0.19 is from 2004-02-14, so
> it doesn't have
> your fix either.  5.0.22-alpha is from last week and
> should have your
> fix.
> 
> Tomcat 5 is not so different that you should be
> afraid to try it.
> 
> Yoav Shapira
> 
> 
> 
> 
> 
> This e-mail, including any attachments, is a
> confidential business communication, and may contain
> information that is confidential, proprietary and/or
> privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not
> be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail
> from your computer system and notify the sender. 
> Thank you.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
---
Philip G. Baruc
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



Re: Tomcat 5 and Context Descriptors

2004-04-12 Thread John H
Is this something new in TC5? Context XML's in appBase worked in 4.1.24.

- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 12, 2004 2:42 PM
Subject: RE: Tomcat 5 and Context Descriptors



Hi,
If you use context .xml files, you can put them in
$CATALINA_HOME/conf/[engine name]/[host name] or in the META-INF
directory of the WAR file representing your webapp.

If you're just deploying webapps without a context XML file, you can put
them in the host's appBase.  Then you don't need any XML file for your
context.

But you can't just put context XML files in the host's appBase.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: John H [mailto:[EMAIL PROTECTED]
>Sent: Monday, April 12, 2004 2:42 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 5 and Context Descriptors
>
>Good afternoon,
>
>We are currently looking at upgrading our Tomcat 4.1.24 installation to
>5.0.19. I've installed a test environment to see what sort of migration
>issues there will be, and so far I've only encountered one.
>
>Under 4.1.24, we have a  entry in server.xml that looks like
this:
>
>autoDeploy="true"
>  deployXML="true">
>...
>
>
>This allowed us to place context descriptors in C:\localwebapps\conf
(XML
>files with individual  tags, one file for each Context), and
these
>contexts would be loaded at startup.
>
>With 5.0.19, I modified the  entry to look like this:
>
>autoDeploy="true"
>  deployXML="true" deployOnStartup="true">
>...
>
>
>However, the context descriptors in C:\localwebapps\conf are not loaded
at
>startup, and I can't seem to figure out how to load them at all. The
only
>way to load them is to place them in
>$CATALINA_HOME/conf/[enginename]/[hostname]/
>
>I'm assuming I'm missing something, since I doubt that Tomcat 5 would
force
>you to use $CATALINA_HOME/conf/[enginename]/[hostname]/ for context
>descriptors.
>
>Looking through the Deployment HOWTO, the Context Descriptors heading
has
>this blurb:
>A Context XML descriptor is a fragment of XML data which contains a
valid
>Context element which would normally be found in the main server
>configuration file (conf/server.xml), and allows easy and automated
>manipulation of web applications by the various management tools
available
>in Tomcat. For a given host, the Context descriptors are located in
>$CATALINA_HOME/conf/[enginename]/[hostname]/foo.xml. Note that while
the
>name of the file is not tied to the webapp name, Tomcat will create
Context
>descriptors which match the webapp name whenever it will generate a
Context
>descriptor.
>
>This seems to indicate that I have to use
>$CATALINA_HOME/conf/[enginename]/[hostname]/. However, the very next
>heading, 'Deploying Tomcat on Startup', has this to say:
>The webapps which are present in the host appBase will be deployed if
the
>host "deployOnStartup" property is true. The deployment process is the
>following:
>
>  a.. The Context XML declarations will be deployed first
>  b.. ...
>This seems to indicate that I should be able to do what I want to do.
>
>Any ideas?
>
>John
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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


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



RE: JNDI and DataSource

2004-04-12 Thread Daniel Huang
Where did you put your db driver jar file? You want to put it under
$CATILINA/common/lib.

Regards,
Daniel

-Original Message-
From: Freddy Villalba Arias [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 10:19 AM
To: Tomcat Users List
Subject: RE: JNDI and DataSource

Tested it. Same result... same problem.

A side comment: the positive part of the other config file (the one I
had originally) was that you could trace how Tomcat loaded the
Resources. Then, you could see how the tags actually got processed
(read) correctly. But then, something happens when the factory builds
the DataSource object.

Regards,
Freddy.

-Mensaje original-
De: Guy Pardon [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 12 de abril de 2004 19:02
Para: Tomcat Users List
Asunto: Re: JNDI and DataSource


Hi,

The fact that you get 'No suitable driver' could also mean that the
chosen properties are incompatible (as opposed to not set).

Just a guess: did you try to specify the user and password as part of
the URL? (jdbc:oracle:thin:user/[EMAIL PROTECTED])
That's the way I usually connect to oracle.

You never know, maybe that's it...

HTH,

Guy

http://www.atomikos.com - Our JTA for your transactions

On maandag, apr 12, 2004, at 18:35 Europe/Brussels, Freddy Villalba
Arias wrote:


>
>
>
>
>
> Hi Sandy,
>
>
>
> Thanks, it certainly looked better than mine. I appreciate it.
> However, the problem persists...
>
>
>
> Any other suggestion? (I'll keep looking at it, too... obviously)
>
>
>
>
>
> -Mensaje original-
> De: Sandy McArthur [mailto:[EMAIL PROTECTED]
> Enviado el: lunes, 12de abril de 2004 18:29
> Para: Tomcat Users List
> Asunto: Re: JNDI and DataSource
>
>
>
> This shouldn't be all that different, but this is the server.xml I'd
>
> use on my setup.
>
>
>
> 
>
>
>
> 
>
>
>
>
>
>
> type="javax.sql.DataSource" cached="false"/>
>
>
>
>
>
>  
>
>factory
>
>
>
> org.apache.commons.dbcp.BasicDataSourceFactory
>
>  
>
>
>
>  
>
>driverClassName
>
>oracle.jdbc.driver.OracleDriver
>
>  
>
>
>
>  
>
>url
>
>
>
> jdbc:oracle:thin:@BMSRVORACLE:1521:BMSRVMS
>
>  
>
>
>
>  
>
>username
>
>SGC_CNID
>
>  
>
>
>
>  
>
>password
>
>
>
>  
>
>
>
>  
>
>driverClassName
>
>oracle.jdbc.driver.OracleDriver
>
>  
>
>
>
>  
>
>maxActive
>
>20
>
>  
>
>
>
>  
>
>maxIdle
>
>10
>
>  
>
>
>
>  
>
>maxWait
>
>-1
>
>  
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
> className="org.apache.coyote.tomcat4.CoyoteConnector"
>
> connectionTimeout="6" debug="0" maxProcessors="75"
> minProcessors="5"
>
> port="8080"/>
>
>
>
>  
>
>
>
>
>
appBase="C:\Usuarios\fvillalba\project\SGC\SGC_CNID\FUENTES\java\Acceso
>
> a datos\Tomcat\webapps" debug="5" name="localhost" unpackWARs="true">
>
>
>
>  
>
> 
> global="jdbc/cnid"
>
> type="javax.sql.DataSource"/>
>
>  
>
>
>
>  
> reloadable="true">
>
>  
>
>
>
>  
> reloadable="true">
>
>  
>
>
>
>
>
>
>
>  
>
>
>
>
>
>
>
> 
>
>
>
>
>
> HTH
>
>
>
> Sandy
>
>
>
> On Apr 12, 2004, at 11:36 AM, Freddy Villalba Arias wrote:
>
>
>
> > Yes and no... :)
>
> >
>
> > I have only one web application to be deployed (wa). Then, I read in
>
> > some places that it's mandatory to have a default context. I tried
>
> > defining a  but then Tomcat's initialization failed
> (I
>
> > looked for something odd but couldn't find anything). So, I decided
> to
>
> > "create" a default (dummy) web app "by hand". That's the only intent

> of
>
> > that second web app. It doesn't even exist (there is no WEB-INF
>
> > directory, leave alone web.xml). The good part: that solved the
>
> > initialization problem.
>
> >
>
> > So, it's not what I originally wanted (I'd remove it if I knew how
to
>
> > "elegantly" solve the dummy web app - or just no default web app, if
>
> > possible - issue), but it does the job for now (if you can provide
> some
>
> > insight on this other subject, I would also appreciate it).
>
> >
>
> > HTH.
>
> >
>
> > -Mensaje original-
>
> > De: Sandy McArthur [mailto:[EMAIL PROTECTED]
>
> > Enviado el: lunes, 12 de abril de 2004 17:32
>
> > Para: Tomcat Users List
>
> > Asunto: Re: JNDI and DataSource
>
> >
>
> > You have a default context right after the wa context that doesn't
>
> > specify 

Re: Tomcat performance issue?

2004-04-12 Thread Peter Lin
 
luckily I have a license of Borland OptimizeIt.
 
What I do is I start tomcat using OptimizeIt. Then I create a test plan in JMeter. 
Once tomcat is running, I warm it up by sending it a couple hundred requests to make 
sure all the pages are compiled.
 
before the test starts, use OptimizeIt to garbage collect. Once that is done, I start 
the test and look at the number of threads and size of the heap. If there's a memory 
leak, either the thread count will increase, or the heap will grow rapidly. Once I see 
either one, I then switch to the call graph to get a better picture of which methods 
are getting called. Usually, that is enough to point towards a culprit.
 
repeat, and rinse as many times as needed until you've squashed all bugs and leaks.
 
peter lin
 
 


Matt Woodings <[EMAIL PROTECTED]> wrote:
I just read your post this morning (I am lurking today as I have a few
issues of my own to clear up :-) ) and I think that is some really good
advice you gave. I do have a question though.

Once you have noticed you have a memory leak, how do you go about locating
it?

Matt


-
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th

IBM Java VS SUN Java

2004-04-12 Thread Nicholas Bernstein
Recently, we've been doing some load testing of apache (1.3.x) w/ tomcat
4.1.29 & 5.0.19 and were surprised at how slow it was responding on our
redhat linux testbed system. We did some comparisons to a Win2k tomcat
server, and the Win2k server *BLEW* it out of the water in terms of
speed and load limits. After some mucking around, we narrowed down the
difference to the java implementation. We switched over from sun's java
jdk1.4.2_04 to IBMJava2-141 and saw some speed improvements and huge
differences in load limits, i.e. it could scale much higher. 

I was wondering if anyone had experienced any problems due to switching
to IBM's java, and if so what they were. Also, if anyone has any hints,
links, or general advice on how to speed things up, be it tomcat tuning,
or java, it would be very appreciated. The windows box, while not able
to scale as well, does generally respond in 1/4 the time of the linux
box. 

Thanks in Advance, any advice is appreciated.

-- 
+---+
| Nicholas Bernstein| [EMAIL PROTECTED] |
| UNIX Systems Administrator| http://www.docmagic.com   |
| Document Systems Inc. |   |
| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
+---+


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



RE: Tomcat 5 and Context Descriptors

2004-04-12 Thread Shapira, Yoav

Hi,
If you use context .xml files, you can put them in
$CATALINA_HOME/conf/[engine name]/[host name] or in the META-INF
directory of the WAR file representing your webapp.

If you're just deploying webapps without a context XML file, you can put
them in the host's appBase.  Then you don't need any XML file for your
context.

But you can't just put context XML files in the host's appBase.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: John H [mailto:[EMAIL PROTECTED]
>Sent: Monday, April 12, 2004 2:42 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 5 and Context Descriptors
>
>Good afternoon,
>
>We are currently looking at upgrading our Tomcat 4.1.24 installation to
>5.0.19. I've installed a test environment to see what sort of migration
>issues there will be, and so far I've only encountered one.
>
>Under 4.1.24, we have a  entry in server.xml that looks like
this:
>
>autoDeploy="true"
>  deployXML="true">
>...
>
>
>This allowed us to place context descriptors in C:\localwebapps\conf
(XML
>files with individual  tags, one file for each Context), and
these
>contexts would be loaded at startup.
>
>With 5.0.19, I modified the  entry to look like this:
>
>autoDeploy="true"
>  deployXML="true" deployOnStartup="true">
>...
>
>
>However, the context descriptors in C:\localwebapps\conf are not loaded
at
>startup, and I can't seem to figure out how to load them at all. The
only
>way to load them is to place them in
>$CATALINA_HOME/conf/[enginename]/[hostname]/
>
>I'm assuming I'm missing something, since I doubt that Tomcat 5 would
force
>you to use $CATALINA_HOME/conf/[enginename]/[hostname]/ for context
>descriptors.
>
>Looking through the Deployment HOWTO, the Context Descriptors heading
has
>this blurb:
>A Context XML descriptor is a fragment of XML data which contains a
valid
>Context element which would normally be found in the main server
>configuration file (conf/server.xml), and allows easy and automated
>manipulation of web applications by the various management tools
available
>in Tomcat. For a given host, the Context descriptors are located in
>$CATALINA_HOME/conf/[enginename]/[hostname]/foo.xml. Note that while
the
>name of the file is not tied to the webapp name, Tomcat will create
Context
>descriptors which match the webapp name whenever it will generate a
Context
>descriptor.
>
>This seems to indicate that I have to use
>$CATALINA_HOME/conf/[enginename]/[hostname]/. However, the very next
>heading, 'Deploying Tomcat on Startup', has this to say:
>The webapps which are present in the host appBase will be deployed if
the
>host "deployOnStartup" property is true. The deployment process is the
>following:
>
>  a.. The Context XML declarations will be deployed first
>  b.. ...
>This seems to indicate that I should be able to do what I want to do.
>
>Any ideas?
>
>John
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Tomcat 5 and Context Descriptors

2004-04-12 Thread John H
Good afternoon,

We are currently looking at upgrading our Tomcat 4.1.24 installation to
5.0.19. I've installed a test environment to see what sort of migration
issues there will be, and so far I've only encountered one.

Under 4.1.24, we have a  entry in server.xml that looks like this:


...


This allowed us to place context descriptors in C:\localwebapps\conf (XML
files with individual  tags, one file for each Context), and these
contexts would be loaded at startup.

With 5.0.19, I modified the  entry to look like this:


...


However, the context descriptors in C:\localwebapps\conf are not loaded at
startup, and I can't seem to figure out how to load them at all. The only
way to load them is to place them in
$CATALINA_HOME/conf/[enginename]/[hostname]/

I'm assuming I'm missing something, since I doubt that Tomcat 5 would force
you to use $CATALINA_HOME/conf/[enginename]/[hostname]/ for context
descriptors.

Looking through the Deployment HOWTO, the Context Descriptors heading has
this blurb:
A Context XML descriptor is a fragment of XML data which contains a valid
Context element which would normally be found in the main server
configuration file (conf/server.xml), and allows easy and automated
manipulation of web applications by the various management tools available
in Tomcat. For a given host, the Context descriptors are located in
$CATALINA_HOME/conf/[enginename]/[hostname]/foo.xml. Note that while the
name of the file is not tied to the webapp name, Tomcat will create Context
descriptors which match the webapp name whenever it will generate a Context
descriptor.

This seems to indicate that I have to use
$CATALINA_HOME/conf/[enginename]/[hostname]/. However, the very next
heading, 'Deploying Tomcat on Startup', has this to say:
The webapps which are present in the host appBase will be deployed if the
host "deployOnStartup" property is true. The deployment process is the
following:

  a.. The Context XML declarations will be deployed first
  b.. ...
This seems to indicate that I should be able to do what I want to do.

Any ideas?

John


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



RE: Tomcat performance issue?

2004-04-12 Thread Shapira, Yoav

Hi,

>Once you have noticed you have a memory leak, how do you go about
locating
>it?

You don't just notice it out of the blue: you typically notice it
because a profiler shows it.  The same profiler shows you where it is.
Noticing and locating is typically one and the same for memory leaks.
It's fixing that's the 2nd step.

Yoav Shapira



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


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



Re: Tomcat performance issue?

2004-04-12 Thread Matt Woodings
I just read your post this morning (I am lurking today as I have a few
issues of my own to clear up :-) ) and I think that is some really good
advice you gave.  I do have a question though.

Once you have noticed you have a memory leak, how do you go about locating
it?

Matt
- Original Message - 
From: "Peter Lin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, April 12, 2004 1:07 PM
Subject: Re: Tomcat performance issue?


> From my own experience, this kind of behavior appears when a session isn't
getting timed out for one reason or another.  For example, say you get data
from some remote site using your own Http client libraries that is
multi-threaded. If that thread sits around and the socket it has isn't
explicitly closed, it can prevent tomcat from invalidating the session. this
would create a memory leak which may not be noticeable if you don't get a
lot of load. One easy way to expose this kind of bug is to load test your
webapp before deploying.
>
> Throw the load you get in 16 hrs at tomcat and you'll likely see the
memory leak. In all cases, issues with performance was due to a bug in our
application. egular load testing is the best way to expose these issues
during development.
>
> peter
>
>
>
>
> David Rees <[EMAIL PROTECTED]> wrote:
> Daniel Gibby wrote:
> >
> > Tomcat config:
> > > className="org.apache.catalina.connector.http.HttpConnector"
> > port="8080" minProcessors="5" maxProcessors="255"
> > enableLookups="true" redirectPort="8443"
> > acceptCount="100" debug="0" connectionTimeout="6"/>
> >
> > Hey, I just realized something... I think I have been having lockups
> > around every 16 hours... 6 seconds! So what does that mean about
> > this configuration?
>
> connectionTimeout is defined in milliseconds, not seconds, so that is 60
> seconds, not 16 hours.
>
> > Is some servlet not returning content but hanging on to a connection?
>
> Could be, or could be that your server is really busy. When you look at
> the server-status through Apache, does it show 255 processes busy as well?
>
> > Could you explain a little further about 'bug in a servlet causing it to
> > not return'?
>
> You could either have a deadlock (synchronization issue) in your code, or
> an infinite loop.
>
> > I have a stack trace, but I don't see how that helps me figure out where
> > my problem might be... I'm not sure what exactly to look for.
>
> Compress it and post it to the list or put it on a public webserver so we
> can take a look.
>
> Cheers
>
> Dave
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th



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



RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
Ok thanks. I will try this version..

philip
--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> >I've also downloaded
> >the 4.1.30 source and noticed that the
> >WebAppClassLoader is only at version 1.48 where as
> the
> >bug fix is applied to a 1.50 version of the
> >WebAppClassLoader.
> 
> I'm not sure where you're getting your version
> numbers.
>
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s
> hare/org/apache/catalina/loader/ shows that 1.31 is
> the current CVS
> version of WebAppClassLoader, so what's 1.48 and
> 1.50 that you're
> talking about?
> 
> Mark marked the issue as fixed on 2004-02-22. 
> 4.1.30 was released on
> 2004-01-25.  So what I said before was wrong: 4.1.30
> doesn't have your
> fix.  For that matter, 5.0.19 is from 2004-02-14, so
> it doesn't have
> your fix either.  5.0.22-alpha is from last week and
> should have your
> fix.
> 
> Tomcat 5 is not so different that you should be
> afraid to try it.
> 
> Yoav Shapira
> 
> 
> 
> 
> 
> This e-mail, including any attachments, is a
> confidential business communication, and may contain
> information that is confidential, proprietary and/or
> privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not
> be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail
> from your computer system and notify the sender. 
> Thank you.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
---
Philip G. Baruc
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



Re: Tomcat performance issue?

2004-04-12 Thread Peter Lin
>From my own experience, this kind of behavior appears when a session isn't getting 
>timed out for one reason or another.  For example, say you get data from some remote 
>site using your own Http client libraries that is multi-threaded. If that thread sits 
>around and the socket it has isn't explicitly closed, it can prevent tomcat from 
>invalidating the session. this would create a memory leak which may not be noticeable 
>if you don't get a lot of load. One easy way to expose this kind of bug is to load 
>test your webapp before deploying.
 
Throw the load you get in 16 hrs at tomcat and you'll likely see the memory leak. In 
all cases, issues with performance was due to a bug in our application. egular load 
testing is the best way to expose these issues during development.
 
peter
 
 


David Rees <[EMAIL PROTECTED]> wrote:
Daniel Gibby wrote:
>
> Tomcat config:
> > className="org.apache.catalina.connector.http.HttpConnector"
> port="8080" minProcessors="5" maxProcessors="255"
> enableLookups="true" redirectPort="8443"
> acceptCount="100" debug="0" connectionTimeout="6"/>
>
> Hey, I just realized something... I think I have been having lockups
> around every 16 hours... 6 seconds! So what does that mean about
> this configuration?

connectionTimeout is defined in milliseconds, not seconds, so that is 60
seconds, not 16 hours.

> Is some servlet not returning content but hanging on to a connection?

Could be, or could be that your server is really busy. When you look at
the server-status through Apache, does it show 255 processes busy as well?

> Could you explain a little further about 'bug in a servlet causing it to
> not return'?

You could either have a deadlock (synchronization issue) in your code, or
an infinite loop.

> I have a stack trace, but I don't see how that helps me figure out where
> my problem might be... I'm not sure what exactly to look for.

Compress it and post it to the list or put it on a public webserver so we
can take a look.

Cheers

Dave

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


-
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th

Re: Tomcat performance issue?

2004-04-12 Thread David Rees
Daniel Gibby wrote:
>
> Tomcat config:
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="5" maxProcessors="255"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0" connectionTimeout="6"/>
>
> Hey, I just realized something... I think I have been having lockups
> around every 16 hours... 6 seconds! So what does that mean about
> this configuration?

connectionTimeout is defined in milliseconds, not seconds, so that is 60
seconds, not 16 hours.

> Is some servlet not returning content but hanging on to a connection?

Could be, or could be that your server is really busy.  When you look at
the server-status through Apache, does it show 255 processes busy as well?

> Could you explain a little further about 'bug in a servlet causing it to
> not return'?

You could either have a deadlock (synchronization issue) in your code, or
an infinite loop.

> I have a stack trace, but I don't see how that helps me figure out where
> my problem might be... I'm not sure what exactly to look for.

Compress it and post it to the list or put it on a public webserver so we
can take a look.

Cheers

Dave

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



RE: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
Tested it. Same result... same problem.

A side comment: the positive part of the other config file (the one I
had originally) was that you could trace how Tomcat loaded the
Resources. Then, you could see how the tags actually got processed
(read) correctly. But then, something happens when the factory builds
the DataSource object.

Regards,
Freddy.

-Mensaje original-
De: Guy Pardon [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 12 de abril de 2004 19:02
Para: Tomcat Users List
Asunto: Re: JNDI and DataSource


Hi,

The fact that you get 'No suitable driver' could also mean that the 
chosen properties are incompatible (as opposed to not set).

Just a guess: did you try to specify the user and password as part of 
the URL? (jdbc:oracle:thin:user/[EMAIL PROTECTED])
That's the way I usually connect to oracle.

You never know, maybe that's it...

HTH,

Guy

http://www.atomikos.com - Our JTA for your transactions

On maandag, apr 12, 2004, at 18:35 Europe/Brussels, Freddy Villalba 
Arias wrote:


>
>  
>
>  
>
> Hi Sandy,
>
>  
>
> Thanks, it certainly looked better than mine. I appreciate it. 
> However, the problem persists...
>
>  
>
> Any other suggestion? (I'll keep looking at it, too... obviously)
>
>  
>
>  
>
> -Mensaje original-
> De: Sandy McArthur [mailto:[EMAIL PROTECTED]
> Enviado el: lunes, 12de abril de 2004 18:29
> Para: Tomcat Users List
> Asunto: Re: JNDI and DataSource
>
>  
>
> This shouldn't be all that different, but this is the server.xml I'd
>
> use on my setup.
>
>  
>
> 
>
>  
>
> 
>
>    
>
>  
>
>    
> type="javax.sql.DataSource" cached="false"/>
>
>  
>
>    
>
>  
>
>    factory
>
>   
>
> org.apache.commons.dbcp.BasicDataSourceFactory
>
>  
>
>  
>
>  
>
>    driverClassName
>
>    oracle.jdbc.driver.OracleDriver
>
>  
>
>  
>
>  
>
>    url
>
>   
>
> jdbc:oracle:thin:@BMSRVORACLE:1521:BMSRVMS
>
>  
>
>  
>
>  
>
>    username
>
>        SGC_CNID
>
>  
>
>  
>
>  
>
>    password
>
>    
>
>  
>
>  
>
>  
>
>    driverClassName
>
>    oracle.jdbc.driver.OracleDriver
>
>  
>
>  
>
>  
>
>    maxActive
>
>    20
>
>      
>
>  
>
>  
>
>    maxIdle
>
>    10
>
>  
>
>  
>
>  
>
>    maxWait
>
>    -1
>
>  
>
>  
>
>    
>
>    
>
>  
>
>  
>
>    
>
>  
>
>  
> className="org.apache.coyote.tomcat4.CoyoteConnector"
>
> connectionTimeout="6" debug="0" maxProcessors="75" 
> minProcessors="5"
>
> port="8080"/>
>
>  
>
>  
>
>  
>
>    
>
appBase="C:\Usuarios\fvillalba\project\SGC\SGC_CNID\FUENTES\java\Acceso
>
> a datos\Tomcat\webapps" debug="5" name="localhost" unpackWARs="true">
>
>  
>
>  
>
>     
>     global="jdbc/cnid"
>
>     type="javax.sql.DataSource"/>
>
>  
>
>  
>
>      
> reloadable="true">
>
>  
>
>  
>
>  
> reloadable="true">
>
>  
>
>  
>
>    
>
>  
>
>  
>
>  
>
>    
>
>  
>
> 
>
>  
>
>  
>
> HTH
>
>  
>
> Sandy
>
>  
>
> On Apr 12, 2004, at 11:36 AM, Freddy Villalba Arias wrote:
>
>  
>
> > Yes and no... :)
>
> >
>
> > I have only one web application to be deployed (wa). Then, I read in
>
> > some places that it's mandatory to have a default context. I tried
>
> > defining a  but then Tomcat's initialization failed 
> (I
>
> > looked for something odd but couldn't find anything). So, I decided 
> to
>
> > "create" a default (dummy) web app "by hand". That's the only intent

> of
>
> > that second web app. It doesn't even exist (there is no WEB-INF
>
> > directory, leave alone web.xml). The good part: that solved the
>
> > initialization problem.
>
> >
>
> > So, it's not what I originally wanted (I'd remove it if I knew how
to
>
> > "elegantly" solve the dummy web app - or just no default web app, if
>
> > possible - issue), but it does the job for now (if you can provide 
> some
>
> > insight on this other subject, I would also appreciate it).
>
> >
>
> > HTH.
>
> >
>
> > -Mensaje original-
>
> > De: Sandy McArthur [mailto:[EMAIL PROTECTED]
>
> > Enviado el: lunes, 12 de abril de 2004 17:32
>
> > Para: Tomcat Users List
>
> > Asunto: Re: JNDI and DataSource
>
> >
>
> > You have a default context right after the wa context that doesn't
>
> > specify a 
> >
>
> > Sandy
>
> >
>
> > On Apr 12, 2004, at 9:44 AM, Freddy Villalba Arias wrote:
>
> >
>
> >> [...]
>
> >>   
>
> >>
>
> >> 
>
> >

Re: Tomcat performance issue?

2004-04-12 Thread Daniel Gibby
255 is as high as apache will go without recompiling. Therefore, it 
wouldn't make a difference if I go higher on the tomcat end either, right?

Trieu, Jason T - CNF wrote:

It could be a bug in your servlet that hangs your connection or you
might actually have a big enough load to max out your number of
concurrent Tomcat threads (maxProcessors).  If it is load, you should
look into increasing your maxProcessors.  Make sure though that you have
enough JVM heap memory (Xmx parm) to handle it or you will run into
OutOfMemory error which is worse than out-of-connections.
Jason

-Original Message-
From: Daniel Gibby [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 9:43 AM
To: Tomcat Users List
Subject: Re: Tomcat performance issue?

I have this same problem. It creeped up without any configuration 
changes on 4.1.27
It doesn't always print this error message out, but the effect is the
same.

 

SEVERE: All threads (75) are currently busy, waiting. Increase
   

maxThreads (75) or check the servlet status
   

My apache config:

Timeouts: connection: 300keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 255 Threaded: no Forked: yes 
StartServers   8
MinSpareServers5
MaxSpareServers   20
MaxClients   255
MaxRequestsPerChild  1000

Tomcat config:
   
Hey, I just realized something... I think I have been having lockups 
around every 16 hours... 6 seconds! So what does that mean about 
this configuration?
Why is the connectionTimeout being reached? I think I had set it to a 
really high number because I figured I didn't want anything to ever hit
it.

Is some servlet not returning content but hanging on to a connection?

Could you explain a little further about 'bug in a servlet causing it to

not return'?
I have a stack trace, but I don't see how that helps me figure out where
my problem might be... I'm not sure what exactly to look for.

Daniel Gibby

 

"David Rees" wrote:

Like the messages say, all Tomcat threads are busy and you've hit the 
maximum number of threads which can be processed concurrently.  Sounds 
like you've got either a bug in a servlet causing it to not return, or 
your server is simply overloaded.  You can get a stack trace from the 
JVM to help debug this issue pretty easily.

   



-
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: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
Hi Guy,

That's interesting. I hadn't thought about that possibility. I'll try
it. 

However, let me state that I don't think that's the problem (hope I'm
wrong, of course!) since the inspection (JBuilder inspector) on the java
variable holding the reference to the DataSource object reveals that the
properties are indeed not being populated (in fact, there is an
attribute "dataSource" which I suppose is intended for holding the
actual DataSource and it's null as well).

Anyway, can't discard anything and your help is appreciated. Will let
you know the outcome of this test.

Cheers,
Freddy.

-Mensaje original-
De: Guy Pardon [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 12 de abril de 2004 19:02
Para: Tomcat Users List
Asunto: Re: JNDI and DataSource


Hi,

The fact that you get 'No suitable driver' could also mean that the 
chosen properties are incompatible (as opposed to not set).

Just a guess: did you try to specify the user and password as part of 
the URL? (jdbc:oracle:thin:user/[EMAIL PROTECTED])
That's the way I usually connect to oracle.

You never know, maybe that's it...

HTH,

Guy

http://www.atomikos.com - Our JTA for your transactions

On maandag, apr 12, 2004, at 18:35 Europe/Brussels, Freddy Villalba 
Arias wrote:


>
>  
>
>  
>
> Hi Sandy,
>
>  
>
> Thanks, it certainly looked better than mine. I appreciate it. 
> However, the problem persists...
>
>  
>
> Any other suggestion? (I'll keep looking at it, too... obviously)
>
>  
>
>  
>
> -Mensaje original-
> De: Sandy McArthur [mailto:[EMAIL PROTECTED]
> Enviado el: lunes, 12de abril de 2004 18:29
> Para: Tomcat Users List
> Asunto: Re: JNDI and DataSource
>
>  
>
> This shouldn't be all that different, but this is the server.xml I'd
>
> use on my setup.
>
>  
>
> 
>
>  
>
> 
>
>    
>
>  
>
>    
> type="javax.sql.DataSource" cached="false"/>
>
>  
>
>    
>
>  
>
>    factory
>
>   
>
> org.apache.commons.dbcp.BasicDataSourceFactory
>
>  
>
>  
>
>  
>
>    driverClassName
>
>    oracle.jdbc.driver.OracleDriver
>
>  
>
>  
>
>  
>
>    url
>
>   
>
> jdbc:oracle:thin:@BMSRVORACLE:1521:BMSRVMS
>
>  
>
>  
>
>  
>
>    username
>
>        SGC_CNID
>
>  
>
>  
>
>  
>
>    password
>
>    
>
>  
>
>  
>
>  
>
>    driverClassName
>
>    oracle.jdbc.driver.OracleDriver
>
>  
>
>  
>
>  
>
>    maxActive
>
>    20
>
>      
>
>  
>
>  
>
>    maxIdle
>
>    10
>
>  
>
>  
>
>  
>
>    maxWait
>
>    -1
>
>  
>
>  
>
>    
>
>    
>
>  
>
>  
>
>    
>
>  
>
>  
> className="org.apache.coyote.tomcat4.CoyoteConnector"
>
> connectionTimeout="6" debug="0" maxProcessors="75" 
> minProcessors="5"
>
> port="8080"/>
>
>  
>
>  
>
>  
>
>    
>
appBase="C:\Usuarios\fvillalba\project\SGC\SGC_CNID\FUENTES\java\Acceso
>
> a datos\Tomcat\webapps" debug="5" name="localhost" unpackWARs="true">
>
>  
>
>  
>
>     
>     global="jdbc/cnid"
>
>     type="javax.sql.DataSource"/>
>
>  
>
>  
>
>      
> reloadable="true">
>
>  
>
>  
>
>  
> reloadable="true">
>
>  
>
>  
>
>    
>
>  
>
>  
>
>  
>
>    
>
>  
>
> 
>
>  
>
>  
>
> HTH
>
>  
>
> Sandy
>
>  
>
> On Apr 12, 2004, at 11:36 AM, Freddy Villalba Arias wrote:
>
>  
>
> > Yes and no... :)
>
> >
>
> > I have only one web application to be deployed (wa). Then, I read in
>
> > some places that it's mandatory to have a default context. I tried
>
> > defining a  but then Tomcat's initialization failed 
> (I
>
> > looked for something odd but couldn't find anything). So, I decided 
> to
>
> > "create" a default (dummy) web app "by hand". That's the only intent

> of
>
> > that second web app. It doesn't even exist (there is no WEB-INF
>
> > directory, leave alone web.xml). The good part: that solved the
>
> > initialization problem.
>
> >
>
> > So, it's not what I originally wanted (I'd remove it if I knew how
to
>
> > "elegantly" solve the dummy web app - or just no default web app, if
>
> > possible - issue), but it does the job for now (if you can provide 
> some
>
> > insight on this other subject, I would also appreciate it).
>
> >
>
> > HTH.
>
> >
>
> > -Mensaje original-
>
> > De: Sandy McArthur [mailto:[EMAIL PROTECTED]
>
> > Enviado el: lunes, 12 de abril de 2004 17:32
>
> > Para: Tomcat Users List
>
> > Asunto: Re: JNDI and DataSource
>
> >
>
> 

Re: Encrypted Mail

2004-04-12 Thread tomcat-user

Please read the attachment to get the message.


**
**
WARNING: WinProxy has detected a virus in file
attached to this e-mail message!
The attachment has been automatically removed to
protect your network.
WinProxy Administrator: unknown

04/12/04 19:14:13 
WinProxy (Version 5.1 R1d (5.0.50.10)) - http://www.Ositis.com/
Antivirus Vendor: Panda Software
Scan Engine Version: 2.10.1.6_3.1.5.211
Pattern File Version: 3.73866 (Timestamp: 2004/04/12 08:00:00)

Machine name: WPROXY
Machine IP address: 192.168.168.100
Server: 208.185.179.12
Client: JUANJO
Protocol: SMTP
Virus: "W32/Netsky.P.worm" found!
Attachment: readme_tomcat-user.zip
**
**

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

Re: JNDI and DataSource

2004-04-12 Thread Guy Pardon
Hi,

The fact that you get 'No suitable driver' could also mean that the 
chosen properties are incompatible (as opposed to not set).

Just a guess: did you try to specify the user and password as part of 
the URL? (jdbc:oracle:thin:user/[EMAIL PROTECTED])
That's the way I usually connect to oracle.

You never know, maybe that's it...

HTH,

Guy

http://www.atomikos.com - Our JTA for your transactions

On maandag, apr 12, 2004, at 18:35 Europe/Brussels, Freddy Villalba 
Arias wrote:


 

 

Hi Sandy,

 

Thanks, it certainly looked better than mine. I appreciate it. 
However, the problem persists…

 

Any other suggestion? (I’ll keep looking at it, too… obviously)

 

 

-Mensaje original-
De: Sandy McArthur [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 12de abril de 2004 18:29
Para: Tomcat Users List
Asunto: Re: JNDI and DataSource
 

This shouldn't be all that different, but this is the server.xml I'd

use on my setup.

 



 



   

 

   

type="javax.sql.DataSource" cached="false"/>

 

   

 

   factory

  

org.apache.commons.dbcp.BasicDataSourceFactory

 

 

 

   driverClassName

   oracle.jdbc.driver.OracleDriver

 

 

 

   url

  

jdbc:oracle:thin:@BMSRVORACLE:1521:BMSRVMS

 

 

 

   username

       SGC_CNID

 

 

 

   password

   

 

 

 

   driverClassName

   oracle.jdbc.driver.OracleDriver

 

 

 

   maxActive

   20

     

 

 

   maxIdle

   10

 

 

 

   maxWait

   -1

 

 

   

   

 

 

   

 

 

className="org.apache.coyote.tomcat4.CoyoteConnector"

connectionTimeout="6" debug="0" maxProcessors="75" 
minProcessors="5"

port="8080"/>

 

 

 

   

appBase="C:\Usuarios\fvillalba\project\SGC\SGC_CNID\FUENTES\java\Acceso

a datos\Tomcat\webapps" debug="5" name="localhost" unpackWARs="true">

 

 

    

    global="jdbc/cnid"

    type="javax.sql.DataSource"/>

 

 

     

reloadable="true">

 

 

 

reloadable="true">

 

 

   

 

 

 

   

 



 

 

HTH

 

Sandy

 

On Apr 12, 2004, at 11:36 AM, Freddy Villalba Arias wrote:

 

> Yes and no... :)

>

> I have only one web application to be deployed (wa). Then, I read in

> some places that it's mandatory to have a default context. I tried

> defining a  but then Tomcat's initialization failed 
(I

> looked for something odd but couldn't find anything). So, I decided 
to

> "create" a default (dummy) web app "by hand". That's the only intent 
of

> that second web app. It doesn't even exist (there is no WEB-INF

> directory, leave alone web.xml). The good part: that solved the

> initialization problem.

>

> So, it's not what I originally wanted (I'd remove it if I knew how to

> "elegantly" solve the dummy web app - or just no default web app, if

> possible - issue), but it does the job for now (if you can provide 
some

> insight on this other subject, I would also appreciate it).

>

> HTH.

>

> -Mensaje original-

> De: Sandy McArthur [mailto:[EMAIL PROTECTED]

> Enviado el: lunes, 12 de abril de 2004 17:32

> Para: Tomcat Users List

> Asunto: Re: JNDI and DataSource

>

> You have a default context right after the wa context that doesn't

> specify a 

>

> Sandy

>

> On Apr 12, 2004, at 9:44 AM, Freddy Villalba Arias wrote:

>

>> [...]

>>   

>>

>> 

>>

>> 

>> reloadable="true">

>>

>> 

>>

>>   

>>

>> [...]

>

>

> -

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

 


Dr. Guy Pardon ( [EMAIL PROTECTED] )
Atomikos: Your Partner for Reliable eBusiness Coordination
http://www.atomikos.com/
The information in this email is confidential and only meant for the 
addressee(s). The content of this email is informal and will not be 
legally binding for Atomikos.



RE: Require a tomcat build with bug fix....

2004-04-12 Thread Shapira, Yoav

Hi,

>I've also downloaded
>the 4.1.30 source and noticed that the
>WebAppClassLoader is only at version 1.48 where as the
>bug fix is applied to a 1.50 version of the
>WebAppClassLoader.

I'm not sure where you're getting your version numbers.
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s
hare/org/apache/catalina/loader/ shows that 1.31 is the current CVS
version of WebAppClassLoader, so what's 1.48 and 1.50 that you're
talking about?

Mark marked the issue as fixed on 2004-02-22.  4.1.30 was released on
2004-01-25.  So what I said before was wrong: 4.1.30 doesn't have your
fix.  For that matter, 5.0.19 is from 2004-02-14, so it doesn't have
your fix either.  5.0.22-alpha is from last week and should have your
fix.

Tomcat 5 is not so different that you should be afraid to try it.

Yoav Shapira





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


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



RE: coreservlets

2004-04-12 Thread Subir Sengupta
I have the "More Servlets" book.  It's excellent. Highly recommended.

Subir

-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 11, 2004 6:04 AM
To: 'Tomcat Users List'
Subject: RE: coreservlets
Importance: High


I have the first edition, it is pretty nice and very detailed. Have not
looked at the other book or the second edition but think the newer books
will be a better bet.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
error, please notify me immediately so that I can correct and delete the
original email. Thank you. 

:: -Original Message-
:: From: electroteque [mailto:[EMAIL PROTECTED]
:: Sent: Sunday, April 11, 2004 11:34 AM
:: To: Tomcat Users List
:: Subject: coreservlets
:: 
:: I found this place pretty extensive, I may buy the books, would
anyone
:: recommend these ?
:: 
:: www.coreservlets.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]



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



RE: Tomcat performance issue?

2004-04-12 Thread Trieu, Jason T - CNF
It could be a bug in your servlet that hangs your connection or you
might actually have a big enough load to max out your number of
concurrent Tomcat threads (maxProcessors).  If it is load, you should
look into increasing your maxProcessors.  Make sure though that you have
enough JVM heap memory (Xmx parm) to handle it or you will run into
OutOfMemory error which is worse than out-of-connections.

Jason

-Original Message-
From: Daniel Gibby [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 9:43 AM
To: Tomcat Users List
Subject: Re: Tomcat performance issue?


I have this same problem. It creeped up without any configuration 
changes on 4.1.27
It doesn't always print this error message out, but the effect is the
same.

>SEVERE: All threads (75) are currently busy, waiting. Increase
>> > maxThreads (75) or check the servlet status
>

My apache config:

Timeouts: connection: 300keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 255 Threaded: no Forked: yes 
StartServers   8
MinSpareServers5
MaxSpareServers   20
MaxClients   255
MaxRequestsPerChild  1000


Tomcat config:


Hey, I just realized something... I think I have been having lockups 
around every 16 hours... 6 seconds! So what does that mean about 
this configuration?
Why is the connectionTimeout being reached? I think I had set it to a 
really high number because I figured I didn't want anything to ever hit
it.

Is some servlet not returning content but hanging on to a connection?

Could you explain a little further about 'bug in a servlet causing it to

not return'?
I have a stack trace, but I don't see how that helps me figure out where

my problem might be... I'm not sure what exactly to look for.

Daniel Gibby

>"David Rees" wrote:
>  
>
>Like the messages say, all Tomcat threads are busy and you've hit the 
>maximum number of threads which can be processed concurrently.  Sounds 
>like you've got either a bug in a servlet causing it to not return, or 
>your server is simply overloaded.  You can get a stack trace from the 
>JVM to help debug this issue pretty easily.
>  
>


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



Redirection error Tomcat 3.2.3 IIS5

2004-04-12 Thread rtfrench1
All,

New subscriber to this list and relative newbie to Tomcat. Have installed IIS5 
w/Tomcat 3.2.3 on W2K. Am having problems with redirection using isapsi. I get the 
"Error 501/505" when attempting http://myserver/examples/jsp/index. I have checked 
this archive list with the same error messages to no avail.

I *can* access http://myserver:8080/examples/jsp/index.html ok and all the examples 
work fine.

Completed:
-- created jakarta virtual directory with correct permissions per documentation
-- port on workers.properties = port on server.xml (8007)
--Tomcat started with no errors
-- IIS started w/no errors
-- triple checked the path where isapi_redirect.dll is correct in IIS Manager.
-- Checked the Tomcat IISHowTo document from jakarta.apache.org. 

This is from my iis_redirect.log.

jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL 
parameters
[jk_uri_worker_map.c (431)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong 
parameters
[jk_uri_worker_map.c (431)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong 
parameters

Checked the uriworkers.properties file:

#
# Simple worker configuration file
#

# Mount the servlet context to the ajp12 worker
/servlet/*=ajp12

# Mount the examples context to the ajp12 worker
/examples/*=ajp12

# Advanced mount of the examples context
# /examples/*.jsp=ajp12
# /examples/servlet/*=ajp12



Here is my workers.properties file:

#
# $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/workers.properties,v 1.3.2.2 
2000/10/16 01:59:22 larryi Exp $
# $Revision: 1.3.2.2 $
# $Date: 2000/10/16 01:59:22 $
#
#
# workers.properties -
#
# This file provides jk derived plugins with with the needed information to
# connect to the different tomcat workers.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to modify is the first properties, i.e.
# workers.tomcat_home, workers.java_home and ps. Most of the configuration
# is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009
# - A jni inprocess worker.
# - A load balancer worker
#
# However by default the plugins will only use the ajp12 worker. To have
# the plugins use other workers you should modify the worker.list property.
#
#

#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=d:\tomcat

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=d:\jdk

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\
# ps=/

#
#-- ADVANCED MODE 
#-
#

#
#-- DEFAULT worket list --
#-
#
#
# The workers that your plugins should create and work with
#
worker.list=ajp12, ajp13

#
#-- DEFAULT ajp12 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp12 and of type ajp12
# Note that the name and the type do not have to match.
#
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.ajp12.lbfactor=1

#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
#  > If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#wor

Re: Tomcat performance issue?

2004-04-12 Thread Daniel Gibby
I forgot to mention that I have All threads (255) are currently busy, 
not (75) which makes sense.

Daniel Gibby wrote:

I have this same problem. It creeped up without any configuration 
changes on 4.1.27
It doesn't always print this error message out, but the effect is the 
same.

SEVERE: All threads (75) are currently busy, waiting. Increase

> maxThreads (75) or check the servlet status


My apache config:

Timeouts: connection: 300keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 255 Threaded: no Forked: yes

StartServers   8
MinSpareServers5
MaxSpareServers   20
MaxClients   255
MaxRequestsPerChild  1000

Tomcat config:
   
  port="8080" minProcessors="5" maxProcessors="255"
  enableLookups="true" redirectPort="8443"
  acceptCount="100" debug="0" connectionTimeout="6"/>

Hey, I just realized something... I think I have been having lockups 
around every 16 hours... 6 seconds! So what does that mean about 
this configuration?
Why is the connectionTimeout being reached? I think I had set it to a 
really high number because I figured I didn't want anything to ever 
hit it.

Is some servlet not returning content but hanging on to a connection?

Could you explain a little further about 'bug in a servlet causing it 
to not return'?
I have a stack trace, but I don't see how that helps me figure out 
where my problem might be... I'm not sure what exactly to look for.

Daniel Gibby

"David Rees" wrote:
 

Like the messages say, all Tomcat threads are busy and you've hit the
maximum number of threads which can be processed concurrently.  Sounds
like you've got either a bug in a servlet causing it to not return, or
your server is simply overloaded.  You can get a stack trace from the
JVM to help debug this issue pretty easily.
 



-
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 performance issue?

2004-04-12 Thread Daniel Gibby
I have this same problem. It creeped up without any configuration 
changes on 4.1.27
It doesn't always print this error message out, but the effect is the same.

SEVERE: All threads (75) are currently busy, waiting. Increase
> maxThreads (75) or check the servlet status

My apache config:

Timeouts: connection: 300keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 255 Threaded: no Forked: yes

StartServers   8
MinSpareServers5
MaxSpareServers   20
MaxClients   255
MaxRequestsPerChild  1000

Tomcat config:
   
Hey, I just realized something... I think I have been having lockups 
around every 16 hours... 6 seconds! So what does that mean about 
this configuration?
Why is the connectionTimeout being reached? I think I had set it to a 
really high number because I figured I didn't want anything to ever hit it.

Is some servlet not returning content but hanging on to a connection?

Could you explain a little further about 'bug in a servlet causing it to 
not return'?
I have a stack trace, but I don't see how that helps me figure out where 
my problem might be... I'm not sure what exactly to look for.

Daniel Gibby

"David Rees" wrote:
 

Like the messages say, all Tomcat threads are busy and you've hit the
maximum number of threads which can be processed concurrently.  Sounds
like you've got either a bug in a servlet causing it to not return, or
your server is simply overloaded.  You can get a stack trace from the
JVM to help debug this issue pretty easily.
 



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


RE: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias










 

 

Hi Sandy,

 

Thanks, it certainly looked better than mine. I
appreciate it. However, the problem persists…

 

Any other suggestion? (I’ll keep looking at it,
too… obviously)

 

 

-Mensaje original-
De: Sandy McArthur [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 12 de abril de 2004 18:29
Para: Tomcat Users List
Asunto: Re: JNDI and DataSource

 

This shouldn't be all that different, but this is the server.xml I'd 

use on my setup.

 



 



   

 

   

type="javax.sql.DataSource" cached="false"/>

 

   

 

   factory

   

org.apache.commons.dbcp.BasicDataSourceFactory

 

 

 

   driverClassName

  
oracle.jdbc.driver.OracleDriver

 

 

 

   url

   

jdbc:oracle:thin:@BMSRVORACLE:1521:BMSRVMS

 

 

 

   username

       SGC_CNID

 

 

 

   password

   

 

 

 

   driverClassName

  
oracle.jdbc.driver.OracleDriver

 

 

 

   maxActive

   20

     

 

 

   maxIdle

   10

 

 

 

   maxWait

   -1

 

 

   

   

 

 

   

 

 

className="org.apache.coyote.tomcat4.CoyoteConnector"

connectionTimeout="6" debug="0"
maxProcessors="75" minProcessors="5"

port="8080"/>

 

 

 

   

appBase="C:\Usuarios\fvillalba\project\SGC\SGC_CNID\FUENTES\java\Acceso

a datos\Tomcat\webapps" debug="5"
name="localhost" unpackWARs="true">

 

 

    

    global="jdbc/cnid"

    type="javax.sql.DataSource"/>

 

 

     

reloadable="true">

 

 

 

reloadable="true">

 

 

   

 

 

 

   

 



 

 

HTH

 

Sandy

 

On Apr 12, 2004, at 11:36 AM, Freddy Villalba Arias wrote:

 

> Yes and no... :)

>

> I have only one web application to be deployed (wa). Then, I read
in

> some places that it's mandatory to have a default context. I tried

> defining a  but then Tomcat's initialization
failed (I

> looked for something odd but couldn't find anything). So, I
decided to

> "create" a default (dummy) web app "by hand".
That's the only intent of

> that second web app. It doesn't even exist (there is no WEB-INF

> directory, leave alone web.xml). The good part: that solved the

> initialization problem.

>

> So, it's not what I originally wanted (I'd remove it if I knew how
to

> "elegantly" solve the dummy web app - or just no default
web app, if

> possible - issue), but it does the job for now (if you can provide
some

> insight on this other subject, I would also appreciate it).

>

> HTH.

>

> -Mensaje original-

> De: Sandy McArthur [mailto:[EMAIL PROTECTED]

> Enviado el: lunes, 12 de abril de 2004 17:32

> Para: Tomcat Users List

> Asunto: Re: JNDI and DataSource

>

> You have a default context right after the wa context that doesn't

> specify a 

>

> Sandy

>

> On Apr 12, 2004, at 9:44 AM, Freddy Villalba Arias wrote:

>

>> [...]

>>   

>>

>> 

>>

>> 

>> reloadable="true">

>>

>> 

>>

>>   

>>

>> [...]

>

>

>
-

> 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: Urgent pls help ! Protection problems of using Realm

2004-04-12 Thread Mark Thomas
You need to write a custom realm.

Mark

>   My case is that I can't store the username and password of 
> the roles and users in my server. I need to send the 
> authenication information in a format of xml file to a 
> foreign server and get back the login result from that 
> server. So I can't use Realm to check the roles and password 
> and do authentication directly in my server. 
>  
>   Is there any method that can solve that problem ? or any 
> method instead of using Realm ? or override the current 
> settings of Realm ?



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



RE: Using the request object and EL

2004-04-12 Thread John Trollinger
Problem solved.  I was mixing up 2 parts of the spec and therefor made
the wrong assumption.

Thanks,

John

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 10:13 AM
To: Tomcat Users List
Subject: Re: Using the request object and EL


On Mon, Apr 12, 2004 at 10:03:09AM -0400, John Trollinger wrote:
: But the ${pageContext.request.contextPath} prints fine its only the
: ${request.contextPath} that does not display

Fair cup -- I can't tell you what you've seen; I can only tell you what
(I thought) shouldn't work ;)

You're using one of the new JSP 2.0 "JSP file" tags, I take it?


: And if I do a  it returns true but a  returns false.

What about the other info I gave you? Changing "request" to
"requestScope" w/in JSTL EL?

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


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



RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
When i look at the CVS repository and look at the 
WebAppClassLoader file, It doesn't appear that the bug
was fixed in the 4.1.30 build. I've also downloaded
the 4.1.30 source and noticed that the
WebAppClassLoader is only at version 1.48 where as the
bug fix is applied to a 1.50 version of the
WebAppClassLoader. Is there a way for me confirm that
this bug fix should be in the 4.1.30 version of
tomcat?

Also aren't the 5.0 version of tomcat very different
architecturaly from the 4.0 versions? I'm afraid to
just remove the 4.0 version and jump to the 5.0
version.

Regards,
Philip Baruc



--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> There have been stable releases since this was
> fixed: 4.1.30 on the
> tomcat 4.1 branch and 5.0.19 on the tomcat 5 branch.
> 
> 4.0 is no longer actively developed.  If you need
> this fix in a 4.0
> build, you have to apply this patch and build it
> yourself.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Philip Baruc [mailto:[EMAIL PROTECTED]
> >Sent: Monday, April 12, 2004 11:14 AM
> >To: [EMAIL PROTECTED]
> >Subject: Require a tomcat build with bug fix
> >
> >Hello,
> >
> >My company requires a stable build of tomcat 4.0
> that
> >contains a bug fix to the "WebAppClassLoader".
> >Specifically the bug is 10469 (deals with
> inconsisten
> >encoding of urls). I was wondering 2 things.
> >
> >1) How might i aquire a build of tomcat that
> currently
> >has this bug fix (without building tomcat myself,
> i.e.
> >is there a nightly build i can pickup that has this
> >fix)
> >
> >
> >2) When will apache be releasing thier next stable
> >build of tomcat 4.0.
> >
> >Thanks For any help.
> >
> >Philip Baruc
> >
> >
> >
> >=
> >---
> >Philip G. Baruc
> >[EMAIL PROTECTED]
> >
> >__
> >Do you Yahoo!?
> >Yahoo! Tax Center - File online by April 15th
> >http://taxes.yahoo.com/filing.html
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a
> confidential business communication, and may contain
> information that is confidential, proprietary and/or
> privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not
> be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail
> from your computer system and notify the sender. 
> Thank you.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
---
Philip G. Baruc
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



Re: JNDI and DataSource

2004-04-12 Thread Sandy McArthur
This shouldn't be all that different, but this is the server.xml I'd 
use on my setup.




  
  

  

  factory
  
org.apache.commons.dbcp.BasicDataSourceFactory



  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  
jdbc:oracle:thin:@BMSRVORACLE:1521:BMSRVMS



  username
  SGC_CNID


  password
  


  driverClassName
  oracle.jdbc.driver.OracleDriver


  maxActive
  20


  maxIdle
  10


  maxWait
  -1

  
  
  




  

   







  



  



HTH

Sandy

On Apr 12, 2004, at 11:36 AM, Freddy Villalba Arias wrote:

Yes and no... :)

I have only one web application to be deployed (wa). Then, I read in
some places that it's mandatory to have a default context. I tried
defining a  but then Tomcat's initialization failed (I
looked for something odd but couldn't find anything). So, I decided to
"create" a default (dummy) web app "by hand". That's the only intent of
that second web app. It doesn't even exist (there is no WEB-INF
directory, leave alone web.xml). The good part: that solved the
initialization problem.
So, it's not what I originally wanted (I'd remove it if I knew how to
"elegantly" solve the dummy web app - or just no default web app, if
possible - issue), but it does the job for now (if you can provide some
insight on this other subject, I would also appreciate it).
HTH.

-Mensaje original-
De: Sandy McArthur [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 12 de abril de 2004 17:32
Para: Tomcat Users List
Asunto: Re: JNDI and DataSource
You have a default context right after the wa context that doesn't
specify a 
Sandy

On Apr 12, 2004, at 9:44 AM, Freddy Villalba Arias wrote:

[...]
  





  

[...]


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

2004-04-12 Thread Mike Curwen
convenient when learning  Not when you have to 'unlearn' it. And not
for the special case when you 'forget' about the invoker, and just
expect it to be around.
Providing a 8-line mapping is such a chore.

I'm all for helping beginners, but I think showing them the 'right' way
is the best option, particulary since it's not **that** hard (and
certainly not the hardest thing they'll encounter developing servlet/jsp
apps) .
 


convenient when initial development... I can think of no case where this
'helps'.
I proceed to code a bunch of /servlet/foo in any includes, forwards,
links, etc, etc.  Now I need to go back and change them all?   How does
this help?  Do it correctly from the start!


> -Original Message-
> From: Ken Blair [mailto:[EMAIL PROTECTED] 
> Sent: Monday, April 12, 2004 10:54 AM
> To: Tomcat Users List
> Subject: RE: coreservlets
> 
> 
> I'd definately recommend core and more servlets -
> incidentally they say "The invoker servlet is extremely 
> convenient when you are learning and even when you are doing 
> your initial development. But, as discussed in the book, you 
> do not want it on at deployment time"
> 
> Hope this helps
> 
> Ken 
> 
> > 
> 
> Ken Blair
> 
> visitscotland.com
> 
> 6 Fairways Business Park
> Deer Park Avenue
> Livingston
> EH54 8AF
> Scotland
> 
> t:   
> f:   
> m:
> e:   [EMAIL PROTECTED]


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



RE: use own property file for db-connection

2004-04-12 Thread Mike Curwen
Yes, it can work, and you'd want to put the properties file in the
WEB-INF/classes directory.  Then your connectionfactory.jar classes will
need to look for the property file/s on the classpath. Perhaps something
like:

InputStream input =
getContextClassLoader().getResourceAsStream(fileName);
Properties props.load(input);



> -Original Message-
> From: Amrun [mailto:[EMAIL PROTECTED] 
> Sent: Monday, April 12, 2004 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: use own property file for db-connection
> 
> 
> Hi everyone, 
> 
> I'm working with Tomcat 5.0 and I'm trying to write a little 
> webapplication. In this case I need to get the data from a 
> database. Now I want to write my own property-file from which 
> I can get the information about the driver, user and 
> password. I've done this before, but I haven't done it on a 
> webserver so far. To get the Connection I'm using a 
> connectionfactory.jar file which reads the property file and 
> establishes a connection. 
> My question is now if this can work? And if yes where to do I 
> have to put the property file? 
> Maybe someone has done this before and can help me?!
> Would be great, 
> 
> thx Amrûn
> 
> -- 
> NEU : GMX Internet.FreeDSL
> Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info
> 
> 
> -
> 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 4 vs 5 form based container auth & filters

2004-04-12 Thread Martin Alley
Thanks Adam

It seems to me that the separation idea is not clear cut.  There is
certainly a down side.  I wonder whether this will stick.

Martin


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2004 13:48
To: Tomcat Users List
Subject: Re: tomcat 4 vs 5 form based container auth & filters

I can see Yoav is blitzing the mailing list right now. Perhaps you'll 
get a more authoritative answer from him or the other hardcore tomcat 
people.

One of the problems of excluding filters from the authentication request

is to do with character-encoding in the request - I remember someone 
whose realm included users with user-names containing accented 
characters that had to be converted to the correct character-encoding 
for the realm database. He had used a filter to do it but obviously had 
to find another way.

Adam

On 04/12/2004 02:34 PM Martin Alley wrote:
> Except with form based auth, you want the look at feel to be part of
the
> application?  
> 
> What reasons did you hear? :-)
> 
> Whilst not knowing the full reasons, it would be nice if there was
some
> config switch to control this, other wise it increases application
> maintainence overhead if you want to change the look and feel.
> 
> I'll see if I can find anything in the tc5 release notes on this.
> 
> Thanks again
> Martin
> 
> 
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED] 
> Sent: 12 April 2004 13:13
> To: Tomcat Users List
> Subject: Re: tomcat 4 vs 5 form based container auth & filters
> 
> AFAIK it has something to do with providing a clean seperation between

> the authentication (tomcat) and the application (your filter).
> 
> I think there were probably several reasons though for it, which 
> outweighed the reasons against, and I have heard a few of them.
> 
> 
> Adam
> 
> On 04/12/2004 01:50 PM Martin Alley wrote:
> 
>>Hi Adam,
>>
>>Why do you think this behaviour changed from tomcat4 ?
>>
>>I haven't gone into the full architecture of sitemesh, as yet, but I
>>know it includes a filter.
>>
>>Martin
>>
>>-Original Message-
>>From: Adam Hardy [mailto:[EMAIL PROTECTED] 
>>Sent: 12 April 2004 11:26
>>To: Tomcat Users List
>>Subject: Re: tomcat 4 vs 5 form based container auth & filters
>>
>>Yes your observations are correct. It's my understanding that filters 
>>are not invoked until after authentication. i.e. after the form-based 
>>login.
>>
>>I have no experience of site-mesh, but it seems a bit weird anyway to 
>>put decorations on a page via a filter - surely you should be 
>>encapsulating that sort of stuff in a JSP or taglib?
>>
>>Adam
>>
>>On 04/12/2004 11:02 AM Martin Alley wrote:
>>
>>
>>>Can anyone comment on this?
>>>
>>>Thanks
>>>Martin
>>>
>>>-Original Message-
>>>From: Martin Alley [mailto:[EMAIL PROTECTED] 
>>>Sent: 09 April 2004 09:53
>>>To: Tomcat Users List
>>>Subject: tomcat 4 vs 5 form based container auth & filters
>>>
>>>Hi,
>>>
>>>Initial observation indicates that filters get executed when a form
>>
>>for
>>
>>
>>>form based container auth is served - under tomcat 4, but not under
>>>tomcat 5. 
>>>
>>>I'm using sitemesh.  The decorations go on the form based login page
>>>under tomcat 4, but not under tomcat 5. 
>>>
>>>I need to do more research, but can any one add to this?
>>>
>>>Thanks
>>>Martin
>>>
>>>
>>>
>>>
>>>
>>>-
>>>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]
>>>
>>>
>>
>>
>>
> 
> 


-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


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

2004-04-12 Thread Ken Blair
I'd definately recommend core and more servlets -
incidentally they say "The invoker servlet is extremely convenient when you are 
learning and even when you are doing your initial development. But, as discussed in 
the book, you do not want it on at deployment time"

Hope this helps

Ken 

> 

Ken Blair

visitscotland.com

6 Fairways Business Park
Deer Park Avenue
Livingston
EH54 8AF
Scotland

t:   
f:   
m:
e:   [EMAIL PROTECTED]

To book your holiday in Scotland go to http://www.visitscotland.com or call the 
National Booking and Information line on 0845 22 55 121

-Original Message-
> From: Mike Curwen [mailto:[EMAIL PROTECTED]
> Sent: 12 April 2004 15:55
> To: 'Tomcat Users List'
> Subject: RE: coreservlets
> 
> 
> The one thing I really dislike about this is that he 
> recommends enabling
> the invoker servlet.  This has caused more problems for 
> beginners, than
> it has solved. All is opinion, though.
> 
> 
> > -Original Message-
> > From: electroteque [mailto:[EMAIL PROTECTED] 
> > Sent: Sunday, April 11, 2004 4:34 AM
> > To: Tomcat Users List
> > Subject: coreservlets
> > 
> > 
> > I found this place pretty extensive, I may buy the books, 
> > would anyone recommend these ?
> > 
> > www.coreservlets.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]
> 
> 


- Disclaimer - 12/04/2004 -

This email and any files transmitted with it are confidential and intended solely for 
Tomcat Users List. If you are not the named addressee you should not disseminate, 
distribute, copy or alter this email. Any views or opinions presented in this email 
are solely those of the author and might not represent those of visitscotland.com

Warning: Although visitscotland.com has taken reasonable precautions to ensure no 
viruses are present in this email, the company cannot accept responsibility for any 
loss or damage rising from the use of this email or attachments. 

If you have received this email in error please notify the visitscotland.com helpdesk 
by email: [EMAIL PROTECTED] 

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



RE: write access to c:\winnt\system32

2004-04-12 Thread Chris Gunn
Yoav,
Thanks for the help.  I added the following registry key to change the
working directory for the service and it now works.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
4.1\Parameters\Current Directory=c:\Tomcat4.1\work

Thanks,

Chris Gunn
Titan Corporation
(804) 550-7272 office
(804) 651-8953 cell 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 11:17 AM
To: Tomcat Users List
Subject: RE: write access to c:\winnt\system32



Hi,

>Ok, I guess I read this wrong, or this person was wrong too.
>http://www.mail-archive.com/[EMAIL PROTECTED]/msg93632.htm
l
>
>Either way, something seems to require write access to the system32
>directory because it works fine with full permissions, but fails when
write
>access is denied.  It's trying to create files like
>c:\winnt\system32\files-460905954.

Neither Eric was wrong nor did you read it wrong.  It's a simple
configuration issue:
- Don't start tomcat from %systemroot%\system32 (so it doesn't get set
as the working directory),
- Make sure that directory is not set as java.io.tmpdir (the tomcat
scripts don't do this, but in case you overrode/customized them),
- Make sure the JSP servlet (in $CATALINA_HOME/conf/web.xml) has a
scratchdir you like (see
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html)

I think that's it.

Yoav Shapira




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


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


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

use own property file for db-connection

2004-04-12 Thread Amrun
Hi everyone, 

I'm working with Tomcat 5.0 and I'm trying to write a little webapplication.
In this case I need to get the data from a database. Now I want to write my
own property-file from which I can get the information about the driver,
user
and password. I've done this before, but I haven't done it on a webserver so
far. To get the Connection I'm using a connectionfactory.jar file which
reads the property file and establishes a connection. 
My question is now if this can work? And if yes where to do I have to put
the property file? 
Maybe someone has done this before and can help me?!
Would be great, 

thx Amrûn

-- 
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/info


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



RE: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
Yes and no... :)

I have only one web application to be deployed (wa). Then, I read in
some places that it's mandatory to have a default context. I tried
defining a  but then Tomcat's initialization failed (I
looked for something odd but couldn't find anything). So, I decided to
"create" a default (dummy) web app "by hand". That's the only intent of
that second web app. It doesn't even exist (there is no WEB-INF
directory, leave alone web.xml). The good part: that solved the
initialization problem.

So, it's not what I originally wanted (I'd remove it if I knew how to
"elegantly" solve the dummy web app - or just no default web app, if
possible - issue), but it does the job for now (if you can provide some
insight on this other subject, I would also appreciate it).

HTH.

-Mensaje original-
De: Sandy McArthur [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 12 de abril de 2004 17:32
Para: Tomcat Users List
Asunto: Re: JNDI and DataSource

You have a default context right after the wa context that doesn't 
specify a  [...]
>   
>
> 
>
>  reloadable="true">
>
> 
>
>   
>
> [...]


-
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: JNDI and DataSource

2004-04-12 Thread Sandy McArthur
You have a default context right after the wa context that doesn't 
specify a 

Sandy

On Apr 12, 2004, at 9:44 AM, Freddy Villalba Arias wrote:

[...]
  





  

[...]


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


RE: Require a tomcat build with bug fix....

2004-04-12 Thread Shapira, Yoav

Hi,
There have been stable releases since this was fixed: 4.1.30 on the
tomcat 4.1 branch and 5.0.19 on the tomcat 5 branch.

4.0 is no longer actively developed.  If you need this fix in a 4.0
build, you have to apply this patch and build it yourself.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Philip Baruc [mailto:[EMAIL PROTECTED]
>Sent: Monday, April 12, 2004 11:14 AM
>To: [EMAIL PROTECTED]
>Subject: Require a tomcat build with bug fix
>
>Hello,
>
>My company requires a stable build of tomcat 4.0 that
>contains a bug fix to the "WebAppClassLoader".
>Specifically the bug is 10469 (deals with inconsisten
>encoding of urls). I was wondering 2 things.
>
>1) How might i aquire a build of tomcat that currently
>has this bug fix (without building tomcat myself, i.e.
>is there a nightly build i can pickup that has this
>fix)
>
>
>2) When will apache be releasing thier next stable
>build of tomcat 4.0.
>
>Thanks For any help.
>
>Philip Baruc
>
>
>
>=
>---
>Philip G. Baruc
>[EMAIL PROTECTED]
>
>__
>Do you Yahoo!?
>Yahoo! Tax Center - File online by April 15th
>http://taxes.yahoo.com/filing.html
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: write access to c:\winnt\system32

2004-04-12 Thread Shapira, Yoav

Hi,

>Ok, I guess I read this wrong, or this person was wrong too.
>http://www.mail-archive.com/[EMAIL PROTECTED]/msg93632.htm
l
>
>Either way, something seems to require write access to the system32
>directory because it works fine with full permissions, but fails when
write
>access is denied.  It's trying to create files like
>c:\winnt\system32\files-460905954.

Neither Eric was wrong nor did you read it wrong.  It's a simple
configuration issue:
- Don't start tomcat from %systemroot%\system32 (so it doesn't get set
as the working directory),
- Make sure that directory is not set as java.io.tmpdir (the tomcat
scripts don't do this, but in case you overrode/customized them),
- Make sure the JSP servlet (in $CATALINA_HOME/conf/web.xml) has a
scratchdir you like (see
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html)

I think that's it.

Yoav Shapira




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


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



Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
Hello,

My company requires a stable build of tomcat 4.0 that
contains a bug fix to the "WebAppClassLoader".
Specifically the bug is 10469 (deals with inconsisten
encoding of urls). I was wondering 2 things.

1) How might i aquire a build of tomcat that currently
has this bug fix (without building tomcat myself, i.e.
is there a nightly build i can pickup that has this
fix)


2) When will apache be releasing thier next stable
build of tomcat 4.0.

Thanks For any help.

Philip Baruc



=
---
Philip G. Baruc
[EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



RE: write access to c:\winnt\system32

2004-04-12 Thread Chris Gunn
Ok, I guess I read this wrong, or this person was wrong too.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg93632.html

Either way, something seems to require write access to the system32
directory because it works fine with full permissions, but fails when write
access is denied.  It's trying to create files like
c:\winnt\system32\files-460905954.

Any help would be appreciated.

Thanks,

Chris Gunn
Titan Corporation
(804) 550-7272 office
(804) 651-8953 cell 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 10:35 AM
To: Tomcat Users List
Subject: RE: write access to c:\winnt\system32



Hi,

>I searched the mailing list archives, and found that the jsp compiler
needs
>write access to c:\winnt\system32.

It doesn't.

Yoav Shapira



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


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


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

Urgent pls help ! Protection problems of using Realm

2004-04-12 Thread a a
Dear all,
 
  I know using Realm can protect certain resouces of a url. But I found it is not 
possibly to use it in my server.
 
  My case is that I can't store the username and password of the roles and users in my 
server. I need to send the authenication information in a format of xml file to a 
foreign server and get back the login result from that server. So I can't use Realm to 
check the roles and password and do authentication directly in my server. 
 
  Is there any method that can solve that problem ? or any method instead of using 
Realm ? or override the current settings of Realm ?
 
Thankyou very much !
kawai

必殺技、飲歌、小星星...
浪漫鈴聲  情心連繫
http://ringtone.yahoo.com.hk/


tomcat 5, Tiles and encoding

2004-04-12 Thread Paulo Alvim
Hi!

I've just moved my Struts+Tiles application from TC4 to TC5 and I'm now
having encoding problems when trying to post data...(portuguese special
characters aren't being recognized).

I've read topics about Tomcat 5+encoding issues related to "included JSPs"
(ex: http://forum.java.sun.com/thread.jsp?forum=45&thread=495792) and since
I use Tiles and Tiles uses "RequestDispatcher.include" calls to include
markup jsp components in layouts, I'm trying this way...but the labels in my
page are ok - just my "posted data" have the problem.

Is there anyone with the same issue?

Thanks in advance!

Paulo Alvim





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



RE: coreservlets

2004-04-12 Thread Mike Curwen
The one thing I really dislike about this is that he recommends enabling
the invoker servlet.  This has caused more problems for beginners, than
it has solved. All is opinion, though.


> -Original Message-
> From: electroteque [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, April 11, 2004 4:34 AM
> To: Tomcat Users List
> Subject: coreservlets
> 
> 
> I found this place pretty extensive, I may buy the books, 
> would anyone recommend these ?
> 
> www.coreservlets.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: IIS & Tomcat 5.0.19 -> using jk2

2004-04-12 Thread Shlomi Levi
It worked,

many thanks

-Original Message-
From: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 3:18 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: IIS & Tomcat 5.0.19 -> using jk2


Maybe this can help...

www.dynamichostings.com/TomCat5IIS5.do

-Original Message-
From: Shlomi Levi [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 10, 2004 1:12 PM
To: [EMAIL PROTECTED]
Subject: IIS & Tomcat 5.0.19 -> using jk2


Hi,
I downloaded the jk2.0.4 for win32 from the jakarta site.
And I followed step by step the configuration with the IIS (5sp4).
But with no success. the mappings doesn't work, it looks for the server but
it isn't found.

(Config:1.A virtual directory under the IIS named 'jakarta' exists, and
mapped to the ${TOMCAT_HOME}/bin dir, which in  turn contains the
isapi_redirector2.dll file.
2.A filter was set using isapi_redirector2.dll
3.The registry was set according to the instructions)
ports: IIS:80,tomcat http:8080,tomcat ajp:8009

10x ahead,
Shlomi.




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



RE: Clustering Application Scope Objects

2004-04-12 Thread Filip Hanik \(lists\)
and that is why we don't focus on implementing this, cause it not defined on
how to resolve name/value pair conflicts if different servers set different
values for the same name.
If I were to implement this I would allow the user to have two ways of
configure conflict resolution:

1. set-is-set, meaning that if the attribute with a given name is set, it
can not be overwritten
   To set a new value, simply remove the old one, then set a new one.

2. override, meaning that whenever a broad cast with a new value, the last
value is set
   To set a new value, just call context.setAttribute

Filip

-Original Message-
From: Mike Duffy [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 11, 2004 10:53 PM
To: Tomcat Users List; Struts Users Mailing List
Subject: RE: Clustering Application Scope Objects


>>>how would you solve conflicts?

For my purposes, I would let the database manage conflicts.  Each
application scope object would
be tied to the database, a change made on a specific application server
would first update the
database.  For example, the information from a table containing label/value
pairs for product
categories would be stored in application scope on each server at system
startup.  If a change
were made to the product categories, the change would first made to the
database and then a change
notification would be broadcast to all servers in the cluster, each server
would then reload the
information from the database.

In other cases, where application scoped objects are not backed by a
database, the task of
handling conflicts becomes more difficult.  I think you would almost need to
create some sort of
locking mechanism that does not allow changes to be made during an update.

Mike


--- "Filip Hanik (lists)" <[EMAIL PROTECTED]> wrote:
> not implemented right now, how would you solve conflicts?
>
>
>
> Filip
>
> -Original Message-
> From: Mike Duffy [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 09, 2004 5:48 PM
> To: Tomcat Users List
> Subject: Clustering Application Scope Objects
>
>
> I've read documentation for The Tomcat 5 Servlet/JSP Container:
> Clustering/Session Replication HOW-TO
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
>
> I understand clustering for individual user sessions.  Are there any
> correlated methods for
> clustering application scope objects?
>
> The J2EE API for the Interface ServletContext states, "In the case of a
web
> application marked
> "distributed" in its deployment descriptor, there will be one context
> instance for each virtual
> machine. In this situation, the context cannot be used as a location to
> share global information
> (because the information won't be truly global). Use an external resource
> like a database
> instead."
>
> Rather than use a database, what I would like to be able to do is make a
> call to
>
> servlet.getServletContext().setAttribute(key, object);
>
> and have the object stored in the application scope of all servers in the
> cluster.
>
> I know that EJBs were designed to serve this purpose; however, I would
like
> to bypass the overhead
> and complexities of EJBs.
>
> If there isn't a switch that can be flipped in Tomcat, there might be a
way
> to create a
> lightweight JMS administration class to serve this purpose.  Has anyone
> tried this?
>
> If the answer to this question is RTFM, please send a link; I've looked
> through the documentation
> and I can't seem to find a clear reference.
>
> Thanks for your time and consideration.
>
> Mike
>
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway
> http://promotions.yahoo.com/design_giveaway/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Relea

RE: Objects using thread on Start/Stop of Tomcat

2004-04-12 Thread Namasivayam, Sudhakar (Cognizant)

Thanks Yoav,

sudhakar


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 6:24 PM
To: Tomcat Users List
Subject: RE: Objects using thread on Start/Stop of Tomcat



Hi,
It's funny that you wrote your own thread manager and have to ask this
question.

No, tomcat cannot destroy all your threads and objects referred to from
these threads.  Tomcat can only destroy daemon threads for you.  You
need to take care of the rest by yourself.  A ServletContextListener's
contextDestroyed method is an excellent place to do this: shut down your
thread manager and all your threads, otherwise tomcat's JVM process will
not die.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Namasivayam, Sudhakar (Cognizant)
>[mailto:[EMAIL PROTECTED]
>Sent: Thursday, April 08, 2004 2:10 AM
>To: Tomcat Users List
>Subject: Objects using thread on Start/Stop of Tomcat
>
>hi all,
>   I have a Thread mgr which will create a thread. No if i Start
and
>Stop the Tomcat, The older mgr object seems to be still in the JVM and
this
>causes a problem because a new mgr is created and i have two copies of
>threads running simultaneously..
>  Can any one tell me whether all objects will be destroyed if i do
>start and stop of tomcat? Should i do anything in the  Context
Destroyed
>method od context listener?  The older object is null in the context
>destroyed but the thread seems to be alive?
>
>Configuration : Linux + tomcat 4.0.4 + JDK 1.4
>
>
>thanks in advance
>sudhakar



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


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

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com

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

RE: Managing Tomcat Connections - Newbie

2004-04-12 Thread David Langschied
Since I am a newbie, I may not be getting the point
across effectively by mixing terms.

I have the ability to go to my connection manager and
see a graphic representation of the current
"connections" be they idle, busy, or initializing. 
Therefore, please disregard the term session.  What I
am referring to is these connections.

On the other point of connection pool, I may be wrong,
via terminology, on this as well.  I have these
connections out there and they are connected to my
database and waiting for activity.  If this is not a
connection pool, I need to find out more about this
method.


--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> >What I find odd is that the connection used is
> >not the oldest idle session
> 
> Please clarify this, as a connection is not a
> session.
> 
> If you're using a tomcat-managed connection pool,
> you're most likely
> using DBCP.  The full docs for DBCP, which include
> significant tuning
> abilities regarding connection usage and creation,
> are at
> http://jakarta.apache.org/commons/dbcp/.
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a
> confidential business communication, and may contain
> information that is confidential, proprietary and/or
> privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not
> be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail
> from your computer system and notify the sender. 
> Thank you.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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



  1   2   >