Tomcat connector based on MINA

2008-02-18 Thread neil davudo
Is anyone working on a tomcat connector based on MINA? TIA, Neil -- View this message in context: http://www.nabble.com/Tomcat-connector-based-on-MINA-tp15540286p15540286.html Sent from the Tomcat - User mailing list archive at Nabble.com. -

JNDI question/problem

2008-02-18 Thread Mindaugas Žakšauskas
Hi, I'm using Tomcat v5.5.25 with two webbaps deployed as plain files (not wars). Both of them use JNDI and do some initial binding upon webapp (context) startup. The "startup" event is determined by implementing a listener (javax.servlet.ServletContextListener's contextInitialized method) and pla

Re: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread jean-frederic clere
Mohamed Mohamedin wrote: This message "http://readlist.com/lists/tomcat.apache.org/users/9/46003.html"; talked about APR. Which I don't use. But I found in the last these lines " Anyway: since you've not configured an HTTPS Connector in Tomcat, I don't really have an explanation for the slow st

Mapping JSP's to outside of the war or expanded folder

2008-02-18 Thread emerson cargnin
Hi there We use resin here in my work. Resin allows in its web.xml an element like: /jsp/* c:/resin/resin-2.1.4/apps/ucs/ This can also be used in resin.conf, amking the war more portable. Now we are starting a migration to tomcat. But as far as I know TC doesnt not allow

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-18 Thread emerson cargnin
The policy of our company is to deploy the jsp's separated from the war file, to allow a finer grained control over deployment. I'm not very fan of it, but it's something I won't be able to change. So I need a way to point the following URL's to another place in the file system. http://server/[cont

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-18 Thread David Brown
Once the .war is expanded why would you want to map to JSPs outside of the file system package? emerson cargnin wrote .. > Hi there > > We use resin here in my work. Resin allows in its web.xml an element like: > > > /jsp/* > c:/resin/resin-2.1.4/apps/ucs/ > > > > > > Thi

Tomcat 5.5 clustering -> Cluster Session

2008-02-18 Thread Andrew Hole
Hello! I'm getting the following message on Tomcat: 18/Fev/2008 12:07:50 org.apache.catalina.cluster.tcp.ReplicationValvecreatePrimaryIndicator FINE: Context /outpatient: Found session 07EEE91093046F13672F88402F03C5A2.node02 but it isnt a ClusterSession. Why this happen? Thanks a lot AH

Re: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Markus Schönhaber
jean-frederic clere wrote: > Nope, the entropy is collected when starting the listener > SSLEngine="off" /> > Should help. I didn't know that. Thanks for the hint. Regards mks - To start a new topic, e-mail: users@tomcat.apa

JASPER libraries incompatibilities

2008-02-18 Thread Hitesh Raghav
Hi, Is there any backward incompatibility in JASPER libraries in Tomcat (v4.x.y, 5.x.y & 6.x.y)? If 'YES', could you please share appropriate URL about it. Thanks, -Hitesh

RE: JNDI question/problem

2008-02-18 Thread Caldarale, Charles R
> From: Mindaugas Žakšauskas [mailto:[EMAIL PROTECTED] > Subject: JNDI question/problem > > > > > > type="java.util.Map"/> > > > type="java.util.Map"/> > > > > You appear to be trying to define two default contexts (path=""), which is obv

RE: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Mohamed Mohamedin
The same delay approx. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, February 18, 2008 12:56 AM To: Tomcat Users List Subject: Re: Why Tomcat take about 15 minutes to start? And without the enhydra app? Leon On Feb 17, 2008 9:36 PM, Mohamed Mohamedin <[

Tomcat 6.0 + myFaces 1.2 --> ClassNotFoundException

2008-02-18 Thread MPF
Hi! I use: Also myFaces 1.2 unter Tomcat 5.x dürfte sowieso nicht laufen, da Tomcat 5.x nicht JSP 1.2 und Servlet Container 2.5 unterstützt? Demnach müsste der Tomcat 6.0 her: Hab das Teil installiert, Classpath und Catalina_Home gesetzt, Sysdeo Plugin (3.2.1) installiert und lt. Release Notes

JAAS Principal propagation from Tomcat to JBoss

2008-02-18 Thread Denis Cossutta
I have the following situation (I try to simplify it): 1. I have a standalone Apache Tomcat server (5.5.26), on which is running a web application: - A Welcome jsp page (Welcome.jsp) and 2 Servlets: CalculatorServlet and MyProtectedServlet - The CalculatorSevlet servlet has to acc

Problem closing database pool connections

2008-02-18 Thread Petter Olofsson
Hello tomcat users! I have a problem using the connection pool in Tomcat. The function getConnection() throws the following error message: [Error message] When trying to get a Connection an SQLExcpetion occurred: java.sql.SQLException: Already closed. at org.apache.tomcat.dbcp.dbcp.Poolab

What version of Tomcat??

2008-02-18 Thread Michael McQuade
Hi Folks Sorry I'm not very knowledgeable about technical aspects of Tomcat. I am having some problems with an application I am running acting rather weird. So what I want to do is download a newer version of Tomcat to try and rule out some possibilities. Currently I am running t

mail host name lost when sending mail with Apache Commons Email

2008-02-18 Thread Björn Þór Jónsson
Hi, I'm having trouble sending mail with Apache Commons Email in Tomcat 6.0. At the top of the stack trace the mail server I'm sending to (that is known to be working ok) is mentioned but further down the trace there are _Caused by_ messages mentioning problems sending to localhost. It seems lik

How many tomcat processes should there be?

2008-02-18 Thread Jonathan Mast
When I run "ps ax" on our Linux server, I'm seeing dozens of Tomcat processes running. Is this normal? Shouldn't there be just 1 Tomcat process? Occasionally, we have to restart Apache to kill all those processes, because they are slowing the machine down. thanks

Re: JNDI question/problem

2008-02-18 Thread Mindaugas Žakšauskas
Hi Charles, ...and thanks for your reply. > You appear to be trying to define two default contexts (path=""), which is > obviously incorrect <..> Just to be more precise and address your point: - I am running Tomcat without its default apps (manager, root), only my own apps are set up; - when

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-18 Thread David Brown
In the future to get the gurus to reply supply more info about your systems overall (OS, JDK, TC version, hardware, network topology, etc.). If you are running a NIX box you could possibly create some soft links in the directories you have named below. I have not tried something like that nor ha

Re: Problem closing database pool connections

2008-02-18 Thread Len Popp
It looks to me like you're bypassing the connection pool and messing up the way it handles connections. You've only shown a snippet of code, so I have a couple of questions: 1. After dconn is returned from getConnection, how and when does it get closed? 2. Does the exception happen every time getCo

RE: [SPAM:] - IIS and Tomcat Redirector. - Email has different SMTP TO: and MIME TO: fields in the email addresses

2008-02-18 Thread doepain
I have the same exact problem with my installation of Tomcat and the ISAPI redirector. I have the Web Service Extension in IIS, mapped to the location of the isapi redirector dll, and set it to "allowed"? If anyone can follow-up with the post it would be greatly appreciated. Leo Donahue -

Re: What version of Tomcat??

2008-02-18 Thread David Smith
Hi Mike. First, could you fix your system time? Your email came through w/ a time stamp of 5/11/2004, 11:04am. Unless you've found a really cool time machine somewhere and can sent email in to the future, this is just slightly annoying to me. Regarding your question, if your effort is to e

Re: using a class from jar file

2008-02-18 Thread polock
I made a mistake I wanted instead of war file I wrote a jar file. So the web application has been already created. My question is if I have to compile a java class that extends one of the classes included in a jar file. Do I have to extract from war file necessary libraries need for the compilatio

ext. command (PIPE) hangs

2008-02-18 Thread Holger Burde
Hi; I have a webapp which uses a pipe to read from a process under 2003 Server. The webapp sort of wrappes zhe output in objects and displays them in tables. Today i found that the app does not work anymore. The strange thing is it still works as a UNIT Test from the commandline. it only

Re: How many tomcat processes should there be?

2008-02-18 Thread David Smith
I'm guessing you're running an older version of linux w/ a 2.4 or earlier kernel. In such systems the threads within a process show up as processes themselves. That changed in newer versions of the linux kernel which report one entry per process regardless of how many threads. --David Jonat

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-18 Thread Ralph Goers
We have a similar need. But doing this with JSPs is very dangerous since they can have java code within them. Instead, using a templating language like Velocity would seem to be a mucn better approach. emerson cargnin wrote: The policy of our company is to deploy the jsp's separated from the

RE: Mapping JSP's to outside of the war or expanded folder

2008-02-18 Thread philip.coates
We also do this with Velocity (we use Spring MVC rather than JSP) and point our Velocity ResourceLoader to somewhere else on the filesystem (away from any Apache document root so they aren't accessible). This brings benefits of being able to do hot-deploy of content/templates for urgent copy cha

Re: Remote ip Address

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ksh, [EMAIL PROTECTED] wrote: |> If you want to swallow output under certain conditions, why not use |> a Filter or Valve? Much easier than trying to redirect output. | | Are you referring to filters and valves as defined in the server.xml? | If so,

Re: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohamed, Mohamed Mohamedin wrote: | I am using Tomcat 5.5.25 on SUSE Linux 10.1 (X86-64) and Java 1.5.0_10 from | Sun. | When I run Tomcat using "catalina.sh start" and watching the log it stop at | "INFO: XML validation disabled" and take about 15 m

Re: Problem closing database pool connections

2008-02-18 Thread Petter Olofsson
Hi Len! Thanks for the reply. The dconn was closed by simply calling the close function when I was done with the connection. This is something that has worked in the past so I'm a bit confused when it stopped working now. I have solved the problem now by just returning the connection from the pool

Re: Remote ip Address

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ksh, [EMAIL PROTECTED] wrote: | | Not using the servlet container in any usual way. You could email | the | response somewhere or something like that, or POST it to | another URL or | whatever. I'm not sure why you'd want to do that, | though. | | I'

Tomcat ISAPI Redirector for IIS

2008-02-18 Thread doepain
No matter what I try where I go I just keep hitting a wall with this ISAPI redirector for IIS/Tomcat. I have been trying to get this to work since 9:00 AM est, and I am losing steam. I tried supplying any useful information for trouble shooting below Error: HTTP Status 404 - /jakarta/isapi_red

Re: How many tomcat processes should there be?

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David and Jonathan, David Smith wrote: | I'm guessing you're running an older version of linux w/ a 2.4 or | earlier kernel. In such systems the threads within a process show up as | processes themselves. That changed in newer versions of the linux

cachingAllowed="false" kills tomcat-5.5 (works on tomcat-6)

2008-02-18 Thread Mick Semb Wever
-- follow up from "FileDirContext fails to immediately recognise new files" -- My application has in META-INF/context.xml: This works just beautifully in tomcat-6 but in tomcat-5.5 the application warfile fails to unpack. Not a single related log line is written in any of tomcat's logfiles!

RE: Tomcat ISAPI Redirector for IIS

2008-02-18 Thread Tim Whittington
It looks like you've got more than one thing going on. The debug log refers to a worker named 'ajp13', which is the default name, and not the one you've got configured in your uriworkermap.properties/worker.properties - This usually points to your filter config and the ISAPI extension DLL (the o

Re: Problem closing database pool connections

2008-02-18 Thread Len Popp
Yes, it should be OK if you close the pool connection at the appropriate time and don't close the one from getInnermostDelegate - the pool takes care of that one. -- Len On Feb 18, 2008 2:48 PM, Petter Olofsson <[EMAIL PROTECTED]> wrote: > Hi Len! Thanks for the reply. > The dconn was closed by s

Re: Tomcat ISAPI Redirector for IIS

2008-02-18 Thread mgainty
agreed... if by *Strange* you mean *you dont understand* then I would advise you to take a look at Mladen Turks paper on fronting Tomcat with IIS http://people.apache.org/~mturk/docs/article/ftwai.html I would specifically note the built-in restrictions of Windows Workstation products to managing <

Re: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Neha Agrawal
Hi! i tried two things to improve the startup time for my Tomcat5.5.25 versio ncompiled with native libraries: 1)Djava.security.egd=file:/dev/urandom added this to the Startup script of Tomcat 2) and also compiled APR with /dev/urandom and again compiled Native libraries Still it takes 12 min

RE: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Caldarale, Charles R
> From: Neha Agrawal [mailto:[EMAIL PROTECTED] > Subject: Re: Why Tomcat take about 15 minutes to start? > > Still it takes 12 minutes to restart tomcat: > What are possible solutions ? You won't get any solutions without doing some investigative work. To repeat suggestions made over the weeken

Difficulty with the latest Tomcat 6.x on Windows XP

2008-02-18 Thread perry anderson
I have tried both Tomcat 4.1.x and the latest 6.x on my networked Windows XP desktop at work. It is a government office so there could be plenty of firewalls in effect. The Windows XP firewall however is not operational. The experience that I am having is that in one case, Tomcat seems to start bu

Using mod_jk with other Java programs

2008-02-18 Thread Daniel Winterstein
Is it possible to use mod_jk to get the Apache2 web server to forward web requests to programs other than Tomcat? E.g. can workers.properties be set to point to a non-Tomcat program? If so, what would that program have to do to interpret the incoming requests? Are the requests still in http form

Re: Using mod_jk with other Java programs

2008-02-18 Thread brien colwell
mod_rewrite can also do proxy forwarding, where the web server will route the forwarded resource to the client. Use the P flag. On Feb 18, 2008 2:35 PM, Daniel Winterstein <[EMAIL PROTECTED]> wrote: > Is it possible to use mod_jk to get the Apache2 web server to forward > web requests to programs

Re: Tomcat ISAPI Redirector for IIS

2008-02-18 Thread Rainer Jung
Start fixing it by *not* commenting out the worker.list=ajp13w and set your connection pool size to something reasonable (default is 1, start with let's say 50). Then follow Tim's adviceand please also tell us which isapi redirector version you are using. Regards, Rainer doepain schrieb:

Re: Difficulty with the latest Tomcat 6.x on Windows XP

2008-02-18 Thread Hassan Schroeder
On Feb 18, 2008 2:30 PM, perry anderson <[EMAIL PROTECTED]> wrote: > The computer at work is running firewalls of some nature and also has McAfee > running on the desktop. Don't know if this has anything to do with it. At > this point I don't even know where to check first to even begin to address

Re: Using mod_jk with other Java programs

2008-02-18 Thread Rainer Jung
Hi Daniel, mod_jk uses a special protocol to talk to the backend server. It's called AJP13. Several backends implement the protocol, e.g. Tomcat, Jetty, Glassfish, JBoss, Geronimo (I guess because it includes Tomcat or Jetty). If you are looking for a simple solution, you might also just use

Re: Difficulty with the latest Tomcat 6.x on Windows XP

2008-02-18 Thread Martin Gainty
Unless you have some manner of virus running on that computer your browser *should* be able to access localhost specifically put the address http://localhost:8080/manager/index.jsp in your browser's address and you should see the manager application.. Please verify.. M- - Original Message

Re: Difficulty with the latest Tomcat 6.x on Windows XP

2008-02-18 Thread perry anderson
We checked the System logs for Windows it just showed that it tried to execute but failed for some "unspecified" reason. Also, I installed the latest version of Java, 1.6...04 But will try to check log files where ever I see them... Thanks - Perry On Feb 18, 2008 7:20 PM, Hassan Schroeder <[EMA

RE: Difficulty with the latest Tomcat 6.x on Windows XP

2008-02-18 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Difficulty with the latest Tomcat 6.x on Windows XP > > Unless you have some manner of virus running on > that computer your browser *should* be able to > access localhost specifically put the address > http://localhost:8080/manage

Re: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Neha Agrawal
Hi! i recompiled my APR 1.2.7 with /dev/urandom and hence recompiled Native libraries (because Native library builds with --with-apr-) i did not recompile the jsvc part though I dont have X server installed on the machine. So cannot use Jconsole. I am attaching two outputs displayed by js

Hard problem with tomcat 4.1 and jwsdp-1.3

2008-02-18 Thread Alex Florentino
Hi all, I installed java jdk 1.4, tomcat 4.1 and jwsdp-1.3, it are configured and is working ok. I create a servlet that handle SOAP messages, but it have strange result. see my codes... *base servlet class* package test; import java.io.IOException; import java.io.OutputStream; import java.ut

Re: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neha, Neha Agrawal wrote: | i tried two things to improve the startup time for | my Tomcat5.5.25 version compiled with native | libraries: Do you mean "configured" with native libraries? Recompiling Tomcat will not change anything... | Still it tak

Re: Why Tomcat take about 15 minutes to start?

2008-02-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | 2) Try taking periodic stack traces to find out where the threads are | spending their time (jstack helps here, as would a profiler). Definitely. If you have a 12 minute delay, do something with that time. One of

Re: using a class from jar file

2008-02-18 Thread David Smith
The required jar files will have to be made available to the java compiler. They can be made available either by pulling them from your war file or by downloading them from the sites that host them. Personally I would have an IDE (NetBean and Eclipse are both good, open source choices) or bui

Tomcat6, Apache, and mod_jk configuration

2008-02-18 Thread Da Rock
I'm trying to get all of the above working together peacefully with no success whatsoever. I've got Tomcat working, and Apache has always worked as per usual, but mod_jk will simply not work. I'm running all this on freebsd server, and when I navigate to /webapps on the server I get a 404 error- b

RE: JASPER libraries incompatibilities

2008-02-18 Thread Hitesh Raghav
Hi, I've web-app developed to run with Tomcat 4.2. It used to work perfectly fine with Tomcat 4.2. When same web-app is deployed on Tomcat v5.5.x or v6.0.y, it fails by throwing NullPointerException. It works perfectly fine, when we replace JASPER libraries from Tomcat v4.2 (from \common\lib fold

[ANN] Apache Tomcat 4.1.37 stable is released

2008-02-18 Thread Mark Thomas
The Apache Tomcat team is proud to announce the immediate availability of Tomcat 4.1.37 stable. This build contains numerous library updates, a small number of bug fixes and two important, one moderate and six low severity security fixes. Apache Tomcat is an implementation of the Java Server Page