Undeploy task not working

2006-06-06 Thread Venkatesh Babu
Hello All,

I'm using Tomcat 4.1 and trying to deploy/undeploy
application using ant targets.

Earlier I posted a mail on deploy task not working due
to some protocol error. Got the solution for that :-)

But right now undeploy task is not working. It is
giving an error saying:

FAIL - Cannot remove document base for path /app1

Here is the ant targets I have:

property name=tomcat.server.name
value=127.0.0.1/
property name=tomcat.server.port value=8080/
property name=tomcat.user.name value=admin/
property name=tomcat.user.password
value=admin/

property name=app.hostname
value=http://${tomcat.server.name}:${tomcat.server.port}/
property name=app.deploy.manageurl
value=${app.hostname}/manager/

taskdef file=./catalinatasks.properties
classpath
pathelement
path=./lib/catalina-ant.jar/
/classpath
/taskdef

target name=undeployapp
undeploy
url=${app.deploy.manageurl}
path=/app1
username=${tomcat.user.name}
password=${tomcat.user.password} /
/target

I searched the web for solutions to this problem, but
unable to find one. Can anybody please help me and say
as to what is wrong?

Thank you,
Venkatesh


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Setup

2006-06-06 Thread Jack

Do you have the strong encryption algorithms installed in the JDK you are using?

On 02/06/06, Roch [EMAIL PROTECTED] wrote:


I'm getting the error that says cannot communicate securely because they
have no common encryption algorithms.
--
View this message in context: 
http://www.nabble.com/SSL-Setup-t1710991.html#a4680316
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Cheers
Jack...

The claim natural is not synonymous with safe.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: any way to share objects between non-clustered tomcat instances ?

2006-06-06 Thread Tomimitsu Masaru
Thank you very much Filip for your answer ! I'll study it.

Any other recommendations are always welcome.

Masaru

-Message d'origine-
De : Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 6 juin 2006 03:53
À : Tomcat Users List
Objet : Re: any way to share objects between non-clustered tomcat instances ?

sure, you can implement your own little app on top of a messaging framework,
I would recommend using Tribes, 
http://people.apache.org/~fhanik/tribes/docs/introduction.html

Filip

Tomimitsu Masaru wrote:
 Hello all,

 Maybe this has already been discussed, but I dare ask you the question :
 are there any ways to share Java objects between non-clustered tomcat
 instances ?

 When they are clusters, I heard they can share ServletContext's
 attributes without problem, is that right ? But in our case, we don't
 have tomcat instances as clusters, but in separate JVMs, on several
 physically separate machines. 

 However, we would like to control users' connections so as to limit the
 same login user to have only a limited number (one or two) of authorized
 connections to our application. You guys should certainly know such
 stories alike.

 So, firstly I wanna know 'Yes you can' or 'No you can't' as answer. If
 'Yes', then I wanna know how. All answers are welcome for me. If someone
 can show me any past discussions on this matter, such answers are also
 welcome.

 Masaru Tomimitsu


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



   


-- 


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A way to know if file download has ended

2006-06-06 Thread Bachler, Elisabeth (Elisabeth)
THanks for your answer... I will keep all you said in mind. You are
certainly right.

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: lunes, 05 de junio de 2006 17:08
To: Tomcat Users List
Subject: Re: A way to know if file download has ended


--- Darryl Miles [EMAIL PROTECTED]
wrote:

 Bachler, Elisabeth (Elisabeth) wrote:
  Thank you to everyone. I will investigate further.
  Elisabeth
 
 Maybe this thread is related (excuse the horid
 apache web interface) :
 

http://mail-archives.apache.org/mod_mbox/tomcat-users/200604.mbox/%3c444FA1E
[EMAIL PROTECTED]
 
 
 Darryl
 
Just remember there are so many other issues.  I say
that not to be pessimistic, but to be realistic to
maybe keep you from spending too much time on it.  For
instance, when you download a file using Firefox,
firefox will be downloading the bytes from the server
even while you are deciding to cancel or save and will
be storing this information into another buffer.  This
is why when you finally hit save if the box has been
up a while you'll notice a jump in the downloaded
bytes then the status of the download speed jumps back
down to the real value.  I mention that because I
don't know how much you are wanting to rely on
successfully downloaded which you mentioned in your
first email.  The user might hit cancel even after the
file has technically been successfully downloaded even
if only to temp space they can't retrieve in any easy
manner.  

There is also the issue of HTTP proxies and caching
and read ahead, all of these things affect HTTP and
the ability to be able to tell what actually happened
at the byte level between the client and server. 
Also, even if the user closes the browser ... you can
still write to the servlet API output with no error
being raised.  This is also true in Microsoft ISAPI
dlls.  I don't even think if you got at the low level
where the server is if you could reliably do this
because of the proxies and caches I talked about. 
Your proxies and caches and even the users may not be
the only ones in the pipeline, so you always have to
keep that in mind.  

We had an issue one time where bytes were getting cut
out of an https connection, but not an http
connection, and later we found an ISP in between us
and a client had some software in between that was
dropping bytes out of https when too much information
passed through and we finally figured that out and
they fixed it, but not just the fact that they didn't
pass the information back wouldn't affect you, but
also the fact that the software in between could be
reading more bytes than you request at a time to help
speed up users of the ISPs connections over HTTP and
keep doing this even when the TCP connection is
severed.

Wade

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Allocate exception

2006-06-06 Thread Miguel Angel Ruz

I'm going to describe the process that I have followed to develop servlet
Authorize. What problem do you find in this development? I create to have
followed all the steps to make work it. Thanks.


The Authorize.class is in:

/u/jakarta-tomcat-5.5.4/webapps/demo/WEB-INF/classes/Authorize.java
/u/jakarta-tomcat-5.5.4/webapps/demo/WEB-INF/classes/Authorize.class


The servlet Authorize es defined in:

/u/jakarta-tomcat-5.5.4/webapps/demo/WEB-INF/classes/web.xml

http://mydomain.com/demo/servlet/Authorize
 


The source code for the Authorize class is:


import java.io.*;
import java.lang.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

import com.demo.global.DEMO.*;

public class Authorize extends HttpServlet {
protected void service(HttpServletRequest request,HttpServletResponse
response)
throws IOException, ServletException
 {

 try{
DEMO demoobj = new DEMO ();

 }catch (Exception e) {}
}



And the demo.jar is defined in catalina.sh classpath

# Add on extra jar files to CLASSPATH

CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/b
in/commons-logging-api.jar:/usr/java/jdk1.5.0/lib/soap.jar:/usr/java/jdk1.5.
0/lib/demo.jar:/usr/java/jdk1.5.0/lib/src/


The log error:


SEVERE: Allocate exception for servlet Authorize
javax.servlet.ServletException: Error instantiating servlet class Authorize
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
20)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:711)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:131)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:407)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:731)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:526)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run(Thread.java:595)


-Mensaje original-
De: Marc Farrow [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 05 de junio de 2006 18:35
Para: Tomcat Users List
Asunto: Re: Allocate exception

is the Authorize class (the servlet) in a package?  if so, you need the
package qualified name.  If not, then Java strongly urges the use of one.
Also, where is the Authorize.class file or the jar containing the
Authorize.class located?

On 6/5/06, Miguel Angel Ruz [EMAIL PROTECTED] wrote:


 Thanks Marc for your answer!!!


 The servlet Authorize is definid in web.xml

 ...

servlet
servlet-nameAuthorize/servlet-name
servlet-classAuthorize/servlet-class
/servlet

 ..

servlet-mapping
servlet-nameAuthorize/servlet-name
url-pattern/servlet/Authorize/url-pattern
/servlet-mapping

 .



 -Mensaje original-
 De: Marc Farrow [mailto:[EMAIL PROTECTED] Enviado el: lunes, 05 
 de junio de 2006 18:13
 Para: Tomcat Users List
 Asunto: Re: Allocate exception

 This looks like a configuration error.  It seems as though a servlet 
 named Authorize has been declared somewhere, but not properly 
 defined.  Check your web.xml.

 On 6/5/06, Miguel Angel Ruz [EMAIL PROTECTED] wrote:
 
 
 
  Hi !!
 
  I´m programming a Servlet with Tomcat 5.5
 
  It´s running but with this code
 
 
  try{
 DEMO demoobj = new DEMO ();
 
  }catch (Exception e) {}
 
 
  Do you Know something about this error ??
 
  Thanks.
 
 
 
 
  I get this error in catalina.log
 
  SEVERE: Allocate exception for servlet Authorize
  javax.servlet.ServletException: Error instantiating servlet class 
  Authorize
 at
  org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper
  .j
  ava
  :10
  20)
 at
  org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.ja
  va
  :711)
 at
  org.apache.catalina.core.StandardWrapperValve.invoke(
  StandardWrapperValve.ja
  va:131)
 at
  org.apache.catalina.core.StandardContextValve.invoke(
  StandardContextValve.ja
  va:178)
 at
  org.apache.catalina.authenticator.AuthenticatorBase.invoke
  (AuthenticatorBase
  .java:407)
 at
  

multiple, parallel requests

2006-06-06 Thread Steffen Späthe

Hello,

first of all I am new at this mailing-list and would be very glad if 
subscribers of this list could help me.


As far as I understand the life cycle of a servlet in a 
tomcat-servlet-container, one instance of a servlet is created and when 
a request comes in, a thread is started with the service-methode.
In my understanding should an other thread been started with the 
service-methode, if the first thread is sill running and a new request 
comes in. If this isn´t correct, please correct me.


If this is correct, I don´t know what i´m doing wrong... It doesn´t work 
for me. Not in a really simple HttpSerlvet and not in an also simple 
JSP. To be more specific: my simple JSPs needs 5 sec. (just be 
sleep(5000) ) to finish. And if I send multiple requests to tomcat, one 
request is processed after the other... just like it is processed in a 
queue and not parallel. And not - JSP and Servlet are not implementing 
SingleThreadingModel.


Has someone an hint for me?

Thank you very much,

steffen from germany


smime.p7s
Description: S/MIME Cryptographic Signature


Re: multiple, parallel requests

2006-06-06 Thread Leon Rosenberg

Maybe you should paste your simple HttpServlet code ?
regards
Leon

On 6/6/06, Steffen Späthe [EMAIL PROTECTED] wrote:

Hello,

first of all I am new at this mailing-list and would be very glad if
subscribers of this list could help me.

As far as I understand the life cycle of a servlet in a
tomcat-servlet-container, one instance of a servlet is created and when
a request comes in, a thread is started with the service-methode.
In my understanding should an other thread been started with the
service-methode, if the first thread is sill running and a new request
comes in. If this isn´t correct, please correct me.

If this is correct, I don´t know what i´m doing wrong... It doesn´t work
for me. Not in a really simple HttpSerlvet and not in an also simple
JSP. To be more specific: my simple JSPs needs 5 sec. (just be
sleep(5000) ) to finish. And if I send multiple requests to tomcat, one
request is processed after the other... just like it is processed in a
queue and not parallel. And not - JSP and Servlet are not implementing
SingleThreadingModel.

Has someone an hint for me?

Thank you very much,

steffen from germany





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: multiple, parallel requests

2006-06-06 Thread Steffen Späthe

 Maybe you should paste your simple HttpServlet code ?

No Problem. Note, there is a service-methode in this sample-code. It 
is just for debugging and testing. There is no difference between 
behavior with or without this service-methode.


Okay, here is my simple HttpServlet (it is really simple, isn´t it :-) ):

import java.io.*;
import java.net.*;
import java.util.Date;

import javax.servlet.*;
import javax.servlet.http.*;

public class ThreadingTest extends HttpServlet {
  
   protected void processRequest(HttpServletRequest request, 
HttpServletResponse response)

   throws ServletException, IOException {
   response.setContentType(text/html;charset=UTF-8);
   PrintWriter out = response.getWriter();
   out.println(html);
   out.println(head);
   out.println(titleServlet ThreadingTest/title);
   out.println(/head);
   out.println(body);
   out.println(h1Start/h1);
   out.flush();
  
   try {

   Thread.sleep(5000);
   } catch (InterruptedException ex) {}

   out.println(h1Ready/h1);
   out.println(/body);
   out.println(/html);
   out.close();
   }
  
   protected void doGet(HttpServletRequest request, HttpServletResponse 
response)

   throws ServletException, IOException {
   processRequest(request, response);
   }
  
   protected void doPost(HttpServletRequest request, 
HttpServletResponse response)

   throws ServletException, IOException {
   processRequest(request, response);
   }
  
   public String getServletInfo() {

   return Short description;
   }


   public void service(ServletRequest req, ServletResponse res) throws 
ServletException, IOException {
   System.out.println(System.currentTimeMillis() +ThreadingTest 
invoke service...   + Thread.currentThread().toString());

   super.service(req,res);
   System.out.println(System.currentTimeMillis() +ThreadingTest 
service ready...+ Thread.currentThread().toString());

   }
}





smime.p7s
Description: S/MIME Cryptographic Signature


Re: multiple, parallel requests

2006-06-06 Thread Antonio Petrelli

Steffen Späthe ha scritto:
In my understanding should an other thread been started with the 
service-methode, if the first thread is sill running and a new request 
comes in. If this isn´t correct, please correct me.


Not always. If you are using HTTP 1.1 persistent connections and you are 
trying to make a request from within the same browser (it should be the 
default if you are using modern browsers and the latest Tomcat if I am 
not wrong...), usually the browser will use the same caller TCP port. 
Because there is a 1:1 mapping between the TCP port and the service 
process (or thread), if the port does not change, the thread/process 
will not change too.
Just to be sure, open a new browser (I suggest to try with a totally 
different one, e.g. use Firefox and IE) and retry the same experiment.

HTH
Antonio


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: multiple, parallel requests

2006-06-06 Thread Steffen Späthe

Hello Antonio Petrelli,

thank you very much. Now my world is right again.
I tried multiple request from one firefox-instance in multiple tabs. And 
this doesn´t work - as you described it. Now I retried it with on 
firefox and on internet explorer instance. And it worked as expected. I 
thought, i tried two different browsers yesterday ... any way  now 
it works :-) :-) :-)


Thank you very much!

Have a nice week,

steffen

Steffen Späthe ha scritto:
In my understanding should an other thread been started with the 
service-methode, if the first thread is sill running and a new 
request comes in. If this isn´t correct, please correct me.


Not always. If you are using HTTP 1.1 persistent connections and you 
are trying to make a request from within the same browser (it should 
be the default if you are using modern browsers and the latest Tomcat 
if I am not wrong...), usually the browser will use the same caller 
TCP port. Because there is a 1:1 mapping between the TCP port and the 
service process (or thread), if the port does not change, the 
thread/process will not change too.
Just to be sure, open a new browser (I suggest to try with a totally 
different one, e.g. use Firefox and IE) and retry the same experiment.

HTH
Antonio


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tray Icon

2006-06-06 Thread Seak, Teng-Fong
   Since he's in Windows platform, it's easier to use Monitor Tomcat 
shortcut in Start menu (Start  All Programs  Apache Tomcat  Monitor 
Tomcat)


Richard Mundell wrote:

Mark,

If you close the icon you can simply re-run the monitoring application:
$CATALINA_ROOT/bin/tomcat5w.exe.

Richard
___
Richard Mundell
The Roberts Group
Market Data Expertise that FITS.
www.trgrp.com


-Original Message-
From: Mark Gladstone [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 05, 2006 2:55 PM

To: users@tomcat.apache.org
Subject: Tray Icon

Hi,

I've installed Tomcat 5.5.17 and the admin package.  Yes, the admin docs
state that the tray icon will appear if I choose to start Tomcat after
installation; and that I will lose it later.  It is a handy way to
start/stop Tomcat.  Is there any way to get it back?

I've checked FAQs; if I missed the answer that was there, I apologize.

Thanks,
Mark Gladstone

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Undeploy task not working

2006-06-06 Thread Peter Hubbard
On Mon, 2006-06-05 at 23:40 -0700, Venkatesh Babu wrote:
 Hello All,
 
 I'm using Tomcat 4.1 and trying to deploy/undeploy
 application using ant targets.
 
 Earlier I posted a mail on deploy task not working due
 to some protocol error. Got the solution for that :-)
 
 But right now undeploy task is not working. It is
 giving an error saying:
 
 FAIL - Cannot remove document base for path /app1

I found this often happened to me if there were open database
connections in the webapp, and I tried to undeploy it before stopping
it.


-- 
Peter Hubbard [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Image files and DeployTask...

2006-06-06 Thread Marc Farrow

No issues.   Thanks for the explanation

I will test the WEBDAV setting again and see what happens.


On 6/5/06, Mark Thomas [EMAIL PROTECTED] wrote:


Marc Farrow wrote:
 Mark,

  Why do you have to mark the WEBDAV servlet as NOT read-only in order to
 use the ant tasks?  By default the read-only/false parameter is
commented
 out.  The ant tasks will not work unless you uncomment them out.

You don't have to do this. The Ant tasks use the manager servlet. The
manager servlet does not use the webdav servlet. The webdav servlet is
in a separate web-app all of it's own. As can be seen from the source,
nothing in either the Ant tasks or the manager servlet expects the
webdav servlet or application to be present.

The deploy task does require the readonly parameter of the default
servlet to be configured so PUT works. It is possible that someone may
have added the WEBDAV servlet to the manager application as an
alternative method of enabling PUT. I can see how this might work but
it certainly isn't the standard way of doing things neither have I
tested it. I would also have security concerns about the using the
webdav servlet in this way and would want to check exactly what was
and wasn't exposed for edit in such a configuration. I am not saying
it couldn't be secured, just that I would want to be careful.

 2. To what fault in the WEBDAV are you referring? When I last looked
 at the WEBDAV servlet it had no problems handling the upload of images
 or any other files for that matter.

You didn't answer this point. If there is an issue with webdav and
images I would very much like to know about it since it hasn't
appeared in any of my testing.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Allocate exception

2006-06-06 Thread Marc Farrow

What is in the demo.jar file?

On 6/6/06, Miguel Angel Ruz [EMAIL PROTECTED] wrote:



I'm going to describe the process that I have followed to develop servlet
Authorize. What problem do you find in this development? I create to have
followed all the steps to make work it. Thanks.


The Authorize.class is in:

/u/jakarta-tomcat-5.5.4/webapps/demo/WEB-INF/classes/Authorize.java
/u/jakarta-tomcat-5.5.4/webapps/demo/WEB-INF/classes/Authorize.class


The servlet Authorize es defined in:

/u/jakarta-tomcat-5.5.4/webapps/demo/WEB-INF/classes/web.xml

http://mydomain.com/demo/servlet/Authorize



The source code for the Authorize class is:


import java.io.*;
import java.lang.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

import com.demo.global.DEMO.*;

public class Authorize extends HttpServlet {
   protected void service(HttpServletRequest request,HttpServletResponse
response)
   throws IOException, ServletException
{

try{
   DEMO demoobj = new DEMO ();

}catch (Exception e) {}
}



And the demo.jar is defined in catalina.sh classpath

# Add on extra jar files to CLASSPATH


CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/b
in/commons-
logging-api.jar:/usr/java/jdk1.5.0/lib/soap.jar:/usr/java/jdk1.5.
0/lib/demo.jar:/usr/java/jdk1.5.0/lib/src/


The log error:


SEVERE: Allocate exception for servlet Authorize
javax.servlet.ServletException: Error instantiating servlet class
Authorize
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
:10
20)
   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
:711)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.ja
va:131)
   at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.ja
va:178)
   at
org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase
.java:407)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126
)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105
)
   at
org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java
:107)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:148)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
   at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:731)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.jav
a:526)
   at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWo
rkerThread.java:80)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.jav
a:684)
   at java.lang.Thread.run(Thread.java:595)


-Mensaje original-
De: Marc Farrow [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 05 de junio de 2006 18:35
Para: Tomcat Users List
Asunto: Re: Allocate exception

is the Authorize class (the servlet) in a package?  if so, you need the
package qualified name.  If not, then Java strongly urges the use of one.
Also, where is the Authorize.class file or the jar containing the
Authorize.class located?

On 6/5/06, Miguel Angel Ruz [EMAIL PROTECTED] wrote:


 Thanks Marc for your answer!!!


 The servlet Authorize is definid in web.xml

 ...

servlet
servlet-nameAuthorize/servlet-name
servlet-classAuthorize/servlet-class
/servlet

 ..

servlet-mapping
servlet-nameAuthorize/servlet-name
url-pattern/servlet/Authorize/url-pattern
/servlet-mapping

 .



 -Mensaje original-
 De: Marc Farrow [mailto:[EMAIL PROTECTED] Enviado el: lunes, 05
 de junio de 2006 18:13
 Para: Tomcat Users List
 Asunto: Re: Allocate exception

 This looks like a configuration error.  It seems as though a servlet
 named Authorize has been declared somewhere, but not properly
 defined.  Check your web.xml.

 On 6/5/06, Miguel Angel Ruz [EMAIL PROTECTED] wrote:
 
 
 
  Hi !!
 
  I´m programming a Servlet with Tomcat 5.5
 
  It´s running but with this code
 
 
  try{
 DEMO demoobj = new DEMO ();
 
  }catch (Exception e) {}
 
 
  Do you Know something about this error ??
 
  Thanks.
 
 
 
 
  I get this error in catalina.log
 
  SEVERE: Allocate exception for servlet Authorize
  javax.servlet.ServletException: Error instantiating servlet class
  Authorize
 at
  org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper
  .j
  ava
  :10
  20)
 at
  org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.ja
  va
  :711)
 at
  org.apache.catalina.core.StandardWrapperValve.invoke(
  StandardWrapperValve.ja
  va:131)
 at
  org.apache.catalina.core.StandardContextValve.invoke(
  StandardContextValve.ja
  va:178)
 at
  org.apache.catalina.authenticator.AuthenticatorBase.invoke
  (AuthenticatorBase
 

Re: Undeploy task not working

2006-06-06 Thread Marc Farrow

It also could be a permissions problem.  What platform is the server?  I
know on OpenVMS that if you use the manager application to deploy an
application and then try to undeploy it, the permissions on the directory
are not correct and thus it cannot delete the directories.  (There is a
logical to change this behavior for OpenVMS).  So I would suggest to check
your permissions before you try to undeploy and make sure you have delete
privileges.

HTH


On 6/6/06, Peter Hubbard [EMAIL PROTECTED] wrote:


On Mon, 2006-06-05 at 23:40 -0700, Venkatesh Babu wrote:
 Hello All,

 I'm using Tomcat 4.1 and trying to deploy/undeploy
 application using ant targets.

 Earlier I posted a mail on deploy task not working due
 to some protocol error. Got the solution for that :-)

 But right now undeploy task is not working. It is
 giving an error saying:

 FAIL - Cannot remove document base for path /app1

I found this often happened to me if there were open database
connections in the webapp, and I tried to undeploy it before stopping
it.


--
Peter Hubbard [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Peter Neu
Hello,

 

I have many memory consuming apps on my tomcat server. I a lot pdf  excel
generation. So every other week I get this error

 

 java.lang.OutOfMemoryError: PermGen space

 

I know the root of this error is that the garbage collector does not clean
up and memory allocated 

for java object generation is used up. But what can I do about it? If I
allocate more memory I'm only postponing

the problem. So do I have to shutdown every day my tomcat server to ensure
the deletion of unused objects or

Will only a tomcat cluster help in this case? I also read the archives but
could not find any useful explenation.

 

I defined max memory usage for 2 Gig with the Catalina_Opts variable in my
start script. CATALINA_OPTS=-Xmx2048m -Xms1536m

 

Tomcat 5.5.9

Java 1.5.0_04-b05

SuSE Linux ES 9

 

Cheers,

 

Pete

 

 

 

 

SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor10 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor11 Exception in thread TP-Processor1
java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor7 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor6 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor2 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor12 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor5 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor9 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor16 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor15 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor14 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor13 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor20 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor18 Exception in thread TP-Processor19
java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor17 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor24 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor23 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor22 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor21 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor28 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor27 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor26 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor25 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor32 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor30 Exception in thread TP-Processor29
Exception in thread TP-Processor31 java.lang.OutOfMemoryError: PermGen
space

java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor36 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor35 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor34 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor33 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor39 Exception in thread TP-Processor37
java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor40 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor38 java.lang.OutOfMemoryError: PermGen
space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor44 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor43 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor41 Exception in thread TP-Processor48
java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor42 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor46 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor47 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor45 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor52 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor51 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor50 java.lang.OutOfMemoryError: PermGen
space

 

 

 

 



Re: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Ingo Rockel

Hi,

Your Permanent Generation is running out of memory, this is a special 
space in the vm memory, where the vm stores all of its internal data 
(classes, etc.). You should pass -XX:+PrintGCDetails to the VM to see 
how much perm-space is used. If you have a lot of third-party-libraries 
etc. your permanent space might be to small, adjust using:


-XX:MaxPermSize=newvalue

see here for options:

http://java.sun.com/docs/hotspot/VMOptions.html

regards,

Ingo

Peter Neu schrieb:

Hello,

 


I have many memory consuming apps on my tomcat server. I a lot pdf  excel
generation. So every other week I get this error

 


 java.lang.OutOfMemoryError: PermGen space

 


I know the root of this error is that the garbage collector does not clean
up and memory allocated 


for java object generation is used up. But what can I do about it? If I
allocate more memory I'm only postponing

the problem. So do I have to shutdown every day my tomcat server to ensure
the deletion of unused objects or

Will only a tomcat cluster help in this case? I also read the archives but
could not find any useful explenation.

 


I defined max memory usage for 2 Gig with the Catalina_Opts variable in my
start script. CATALINA_OPTS=-Xmx2048m -Xms1536m

 


Tomcat 5.5.9

Java 1.5.0_04-b05

SuSE Linux ES 9

 


Cheers,

 


Pete

 

 

 

 


SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor10 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor11 Exception in thread TP-Processor1
java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor7 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor6 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor2 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor12 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor5 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor9 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor16 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor15 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor14 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor13 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor20 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor18 Exception in thread TP-Processor19
java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor17 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor24 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor23 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor22 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor21 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor28 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor27 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor26 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor25 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor32 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor30 Exception in thread TP-Processor29
Exception in thread TP-Processor31 java.lang.OutOfMemoryError: PermGen
space

java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor36 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor35 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor34 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor33 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor39 Exception in thread TP-Processor37
java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor40 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor38 java.lang.OutOfMemoryError: PermGen
space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor44 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor43 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor41 Exception in thread TP-Processor48
java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor42 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor46 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor47 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor45 java.lang.OutOfMemoryError: PermGen
space

Exception in thread 

Re: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread William Bonnet
Hi

 I have many memory consuming apps on my tomcat server. I a lot pdf  excel
 generation. So every other week I get this error



  java.lang.OutOfMemoryError: PermGen space

Try to add more space for PermGen using

-XX:MaxPermSize=256m

I think default is 64 megs

Kind regards,

-- 
William Bonnet

SunWizard - Le site francais dédié aux amateurs de stations Unix
http://www.sunwizard.net

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Christian Reichlin

hi,

if you have a lot of different webapps with the same third party libs in 
the WEB-INF/lib folder it might help if you move them to the shared/lib 
folder. i recommend to put only the third party libs there, who are 
definitely the same for all webapps, for example jdbc-driver and similar 
things.


this helps because otherwise they are all loaded by a different 
classloader so they all need for each webapp some permGen space.


does it needs some redeploys of webapps till the memory exception 
ocures? in this case the class loader of the undeployed webapp can't be 
garbage collected and all the classdefinitions remain in memory for 
ever... or until tomcat is restarted.


regards
chris

Ingo Rockel wrote:


Hi,

Your Permanent Generation is running out of memory, this is a special 
space in the vm memory, where the vm stores all of its internal data 
(classes, etc.). You should pass -XX:+PrintGCDetails to the VM to see 
how much perm-space is used. If you have a lot of 
third-party-libraries etc. your permanent space might be to small, 
adjust using:


-XX:MaxPermSize=newvalue

see here for options:

http://java.sun.com/docs/hotspot/VMOptions.html

regards,

Ingo

Peter Neu schrieb:


Hello,

 

I have many memory consuming apps on my tomcat server. I a lot pdf  
excel

generation. So every other week I get this error

 


 java.lang.OutOfMemoryError: PermGen space

 

I know the root of this error is that the garbage collector does not 
clean

up and memory allocated
for java object generation is used up. But what can I do about it? If I
allocate more memory I'm only postponing

the problem. So do I have to shutdown every day my tomcat server to 
ensure

the deletion of unused objects or

Will only a tomcat cluster help in this case? I also read the 
archives but

could not find any useful explenation.

 

I defined max memory usage for 2 Gig with the Catalina_Opts variable 
in my

start script. CATALINA_OPTS=-Xmx2048m -Xms1536m

 


Tomcat 5.5.9

Java 1.5.0_04-b05

SuSE Linux ES 9

 


Cheers,

 


Pete

 

 

 

 


SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor10 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor11 Exception in thread TP-Processor1
java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor7 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor6 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor2 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor12 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor5 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor9 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor16 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor15 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor14 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor13 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor20 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor18 Exception in thread 
TP-Processor19

java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor17 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor24 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor23 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor22 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor21 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor28 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor27 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor26 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor25 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor32 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor30 Exception in thread 
TP-Processor29

Exception in thread TP-Processor31 java.lang.OutOfMemoryError: PermGen
space

java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor36 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor35 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor34 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor33 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor39 Exception in thread 
TP-Processor37

java.lang.OutOfMemoryError: PermGen space

Exception in thread TP-Processor40 java.lang.OutOfMemoryError: PermGen
space

Exception in thread TP-Processor38 

Re: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Antonio Petrelli

Peter Neu ha scritto:

Hello,

 


I have many memory consuming apps on my tomcat server. I a lot pdf  excel
generation. So every other week I get this error

 


 java.lang.OutOfMemoryError: PermGen space

  


http://wiki.apache.org/tomcat/OutOfMemory
HTH
Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Setup

2006-06-06 Thread Roch

How do I check to see if I have the strong encrytion algorithms in the JDK?
--
View this message in context: 
http://www.nabble.com/SSL-Setup-t1710991.html#a4733795
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Missing bin\*.bat files in 5.5.17 windoze installer

2006-06-06 Thread Tim Quinn

I have installed the Tomcat 5.5 windows installer and noticed that there are
many files that are missing from the bin directory such as: catalina.bat,
catalina.sh, setclasspath.bat, shutdown.bat, startup.bat.

I checked the zip distribution and it has these files.

Sorry if this is a dumb question but why are theses files not installed with
the windows installer?

Thanks,

JsD

[= Rather be using a mac =]


AW: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Peter Neu
Hello,

thanks for the many replies. I do have many third party libaries (struts,
fop etc.) so that could cause it. I also have a singleton pattern which is
used many times because it hands out database connections. 

I will set the MaxPermSize variable in the CATALINA_OPTS variable and see
what happens.

The problem whith PermGen space also occurs when I redeploy too often in a
short amount of time. Does that point in any direction? 

Cheers,
Pete


-Ursprüngliche Nachricht-
Von: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 6. Juni 2006 15:38
An: Tomcat Users List
Betreff: Re: java.lang.OutOfMemoryError: PermGen space

Peter Neu ha scritto:
 Hello,

  

 I have many memory consuming apps on my tomcat server. I a lot pdf  excel
 generation. So every other week I get this error

  

  java.lang.OutOfMemoryError: PermGen space

   

http://wiki.apache.org/tomcat/OutOfMemory
HTH
Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Missing bin\*.bat files in 5.5.17 windoze installer

2006-06-06 Thread David Kerber
I can't answer the why, but it's been that way for a long time.  I 
just d/l both installations, install the windows .exe version, and then 
unzip the .zip version on top of the windows installation.  A bit more 
time consuming, but gets my windows services installed and still gives 
me the various .bat files I need for customizing.


Dave


Tim Quinn wrote:

I have installed the Tomcat 5.5 windows installer and noticed that 
there are

many files that are missing from the bin directory such as: catalina.bat,
catalina.sh, setclasspath.bat, shutdown.bat, startup.bat.

I checked the zip distribution and it has these files.

Sorry if this is a dumb question but why are theses files not 
installed with

the windows installer?

Thanks,

JsD

[= Rather be using a mac =]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent...

2006-06-06 Thread Christian Jean

JDK 1.5 (AMD 64-bit) had been installed for several months already with
JAVA_HOME configured correctly.

Jeach!

On 6/6/06, Bob Hall [EMAIL PROTECTED] wrote:


--- Christian Jean [EMAIL PROTECTED] wrote:

 I've been successfully using various version of
 Tomcat for serveral years
 with the same certificate... all worked well.

 I wanted to test the stability of Tomcat 5.5.17, so
 I installed in on the
 same server but renamed all the 8XXX ports to 9XXX
 so that it could be run
 in parallel to the 5.0.28 server.  When I started
 the 5.5.17 server, I
 noticed that I could not get the HTTPS (SSL) pages
 working correctly.  The
 normal HTTP pages were working correctly though.

 Then the real trouble started!!  I could not load
 any HTTPS pages from any
 server thereafter...

 The SSL pages DID work on the 5.0.28 prior to
 testing the 5.5.17, but now
 HTTPS no longer works at all.  When trying to load
 the ssl pages from the
 browser it says nothing... just a timeout occures.

 The logs don't show a single trace that something (a
 page) was not properly
 sent.

 Using 'netstat -ln' shows that the ports are
 successfully bound.

 The only message I'm capable of getting is with
 lynx:

  bash   lynx https://localhost:8443

 Will display the following line:

   SSL error:Can't find common name in
 certificate-Continue? (y)

 Appart from installing and running server 5.5.17,
 nothing has changed on my
 server, so its weird that my production 5.0.28
 should stop working because
 of this test???


Christian,

You mention that no other changes were made on
the server, but did you happen to also install
jdk/jre 1.5 and/or change JAVA_HOME?

-Bob

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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Missing bin\*.bat files in 5.5.17 windoze installer

2006-06-06 Thread Tim Quinn

Thanks,

Have you seen anything in the docs explaining this. This is very confusing.
This should be clearly explained somewere lest we will loose more potential
Tomcat lovers to the evils of IIS.

JsD

On 6/6/06, David Kerber [EMAIL PROTECTED] wrote:


I can't answer the why, but it's been that way for a long time.  I
just d/l both installations, install the windows .exe version, and then
unzip the .zip version on top of the windows installation.  A bit more
time consuming, but gets my windows services installed and still gives
me the various .bat files I need for customizing.

Dave


Tim Quinn wrote:

 I have installed the Tomcat 5.5 windows installer and noticed that
 there are
 many files that are missing from the bin directory such as: catalina.bat
,
 catalina.sh, setclasspath.bat, shutdown.bat, startup.bat.

 I checked the zip distribution and it has these files.

 Sorry if this is a dumb question but why are theses files not
 installed with
 the windows installer?

 Thanks,

 JsD

 [= Rather be using a mac =]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Antwort: Re: Missing bin\*.bat files in 5.5.17 windoze installer

2006-06-06 Thread Ingo . Bischofs
Hi,

another stupid question, which is maybe related to that issue:

I am running into problems with tc 5.5.17 After having it installed 
succesfully with install.exe, i always run into trouble when restarting my 
web-app's deployed as a *.war file.
Installing my war-app's works without any trouble. Stopping and 
re-starting them using the tc manager web-app always fails with a null 
pointer exception.

Have you ever heard of that?

thx,

ingo

 
Am 06.06.2006 16:22:55 schrieb David Kerber:
I can't answer the why, but it's been that way for a long time.  I
just d/l both installations, install the windows .exe version, and then
unzip the .zip version on top of the windows installation.  A bit more
time consuming, but gets my windows services installed and still gives
me the various .bat files I need for customizing.

Dave


Tim Quinn wrote:

 I have installed the Tomcat 5.5 windows installer and noticed that
 there are
 many files that are missing from the bin directory such as: 
catalina.bat,
 catalina.sh, setclasspath.bat, shutdown.bat, startup.bat.

 I checked the zip distribution and it has these files.

 Sorry if this is a dumb question but why are theses files not
 installed with
 the windows installer?

 Thanks,

 JsD

 [= Rather be using a mac =]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
This email has been scanned for viruses.
__

Re: Urgent...

2006-06-06 Thread Andrew Miehs


In both tomcat/conf directories do a

grep 'port=' server.xml


Regards

Andrew


On 06/06/2006, at 4:25 PM, Christian Jean wrote:

JDK 1.5 (AMD 64-bit) had been installed for several months already  
with

JAVA_HOME configured correctly.

Jeach!

On 6/6/06, Bob Hall [EMAIL PROTECTED] wrote:


--- Christian Jean [EMAIL PROTECTED] wrote:

 I've been successfully using various version of
 Tomcat for serveral years
 with the same certificate... all worked well.

 I wanted to test the stability of Tomcat 5.5.17, so
 I installed in on the
 same server but renamed all the 8XXX ports to 9XXX
 so that it could be run
 in parallel to the 5.0.28 server.  When I started
 the 5.5.17 server, I
 noticed that I could not get the HTTPS (SSL) pages
 working correctly.  The
 normal HTTP pages were working correctly though.

 Then the real trouble started!!  I could not load
 any HTTPS pages from any
 server thereafter...

 The SSL pages DID work on the 5.0.28 prior to
 testing the 5.5.17, but now
 HTTPS no longer works at all.  When trying to load
 the ssl pages from the
 browser it says nothing... just a timeout occures.

 The logs don't show a single trace that something (a
 page) was not properly
 sent.

 Using 'netstat -ln' shows that the ports are
 successfully bound.

 The only message I'm capable of getting is with
 lynx:

  bash   lynx https://localhost:8443

 Will display the following line:

   SSL error:Can't find common name in
 certificate-Continue? (y)

 Appart from installing and running server 5.5.17,
 nothing has changed on my
 server, so its weird that my production 5.0.28
 should stop working because
 of this test???


Christian,

You mention that no other changes were made on
the server, but did you happen to also install
jdk/jre 1.5 and/or change JAVA_HOME?

-Bob

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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent...

2006-06-06 Thread Christian Jean

Here is the result for 'jakarta-tomcat-5.0.28/conf/server.xml':

Server port=8005 shutdown=SHUTDOWN debug=0
   Connector port=8080
   Connector port=8443
   Connector port=8009
   Connector port=8082

Here is the result for 'apache-tomcat-5.5.17/conf/server.xml':

Server port=8005 shutdown=SHUTDOWN
   Connector port=8080 maxHttpHeaderSize=8192
   Connector port=8443 maxHttpHeaderSize=8192

Note that I'm using a slightly modified version of 'server-minimal.xml' for
the 5.5, but even using the standard server.xml (with SSL enabled) gives me
the same results.

Thanks,

Jeach!

On 6/6/06, Andrew Miehs [EMAIL PROTECTED] wrote:



In both tomcat/conf directories do a

grep 'port=' server.xml


Regards

Andrew


On 06/06/2006, at 4:25 PM, Christian Jean wrote:

 JDK 1.5 (AMD 64-bit) had been installed for several months already
 with
 JAVA_HOME configured correctly.

 Jeach!

 On 6/6/06, Bob Hall [EMAIL PROTECTED] wrote:

 --- Christian Jean [EMAIL PROTECTED] wrote:

  I've been successfully using various version of
  Tomcat for serveral years
  with the same certificate... all worked well.
 
  I wanted to test the stability of Tomcat 5.5.17, so
  I installed in on the
  same server but renamed all the 8XXX ports to 9XXX
  so that it could be run
  in parallel to the 5.0.28 server.  When I started
  the 5.5.17 server, I
  noticed that I could not get the HTTPS (SSL) pages
  working correctly.  The
  normal HTTP pages were working correctly though.
 
  Then the real trouble started!!  I could not load
  any HTTPS pages from any
  server thereafter...
 
  The SSL pages DID work on the 5.0.28 prior to
  testing the 5.5.17, but now
  HTTPS no longer works at all.  When trying to load
  the ssl pages from the
  browser it says nothing... just a timeout occures.
 
  The logs don't show a single trace that something (a
  page) was not properly
  sent.
 
  Using 'netstat -ln' shows that the ports are
  successfully bound.
 
  The only message I'm capable of getting is with
  lynx:
 
   bash   lynx https://localhost:8443
 
  Will display the following line:
 
SSL error:Can't find common name in
  certificate-Continue? (y)
 
  Appart from installing and running server 5.5.17,
  nothing has changed on my
  server, so its weird that my production 5.0.28
  should stop working because
  of this test???
 

 Christian,

 You mention that no other changes were made on
 the server, but did you happen to also install
 jdk/jre 1.5 and/or change JAVA_HOME?

 -Bob

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

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Urgent...

2006-06-06 Thread Grant Johnson

I am not an expert but

Both tomcat's look like they are trying to do stuff on ports  8005, 
and connector ports 8080 and 8443.
What if you stopped both tomcat's and started one.  Does the running 
Tomcat work?




Christian Jean wrote:

Here is the result for 'jakarta-tomcat-5.0.28/conf/server.xml':

Server port=8005 shutdown=SHUTDOWN debug=0
   Connector port=8080
   Connector port=8443
   Connector port=8009
   Connector port=8082

Here is the result for 'apache-tomcat-5.5.17/conf/server.xml':

Server port=8005 shutdown=SHUTDOWN
   Connector port=8080 maxHttpHeaderSize=8192
   Connector port=8443 maxHttpHeaderSize=8192

Note that I'm using a slightly modified version of 
'server-minimal.xml' for
the 5.5, but even using the standard server.xml (with SSL enabled) 
gives me

the same results.

Thanks,

Jeach!

On 6/6/06, Andrew Miehs [EMAIL PROTECTED] wrote:



In both tomcat/conf directories do a

grep 'port=' server.xml


Regards

Andrew


On 06/06/2006, at 4:25 PM, Christian Jean wrote:

 JDK 1.5 (AMD 64-bit) had been installed for several months already
 with
 JAVA_HOME configured correctly.

 Jeach!

 On 6/6/06, Bob Hall [EMAIL PROTECTED] wrote:

 --- Christian Jean [EMAIL PROTECTED] wrote:

  I've been successfully using various version of
  Tomcat for serveral years
  with the same certificate... all worked well.
 
  I wanted to test the stability of Tomcat 5.5.17, so
  I installed in on the
  same server but renamed all the 8XXX ports to 9XXX
  so that it could be run
  in parallel to the 5.0.28 server.  When I started
  the 5.5.17 server, I
  noticed that I could not get the HTTPS (SSL) pages
  working correctly.  The
  normal HTTP pages were working correctly though.
 
  Then the real trouble started!!  I could not load
  any HTTPS pages from any
  server thereafter...
 
  The SSL pages DID work on the 5.0.28 prior to
  testing the 5.5.17, but now
  HTTPS no longer works at all.  When trying to load
  the ssl pages from the
  browser it says nothing... just a timeout occures.
 
  The logs don't show a single trace that something (a
  page) was not properly
  sent.
 
  Using 'netstat -ln' shows that the ports are
  successfully bound.
 
  The only message I'm capable of getting is with
  lynx:
 
   bash   lynx https://localhost:8443
 
  Will display the following line:
 
SSL error:Can't find common name in
  certificate-Continue? (y)
 
  Appart from installing and running server 5.5.17,
  nothing has changed on my
  server, so its weird that my production 5.0.28
  should stop working because
  of this test???
 

 Christian,

 You mention that no other changes were made on
 the server, but did you happen to also install
 jdk/jre 1.5 and/or change JAVA_HOME?

 -Bob

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

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







--

F. Grant Johnson
566-0630 / [EMAIL PROTECTED]

Systems/Web Coordinator
RM 285 - Robertson Library
University of Prince Edward Island

***
Attitude is IT!


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Random NullPointerException when trying to connect to Datasource

2006-06-06 Thread Brian Vuyk

Hello.


I am currently developing a JSP webapp for my employer, andhave run
into a couple of serious problems.

Randomly, tomcat seems to be losing it's ability to connect to the
mySQL server running on the same server as Tomcat.

Scenario:

This morning I was using the webapp no problem. I made a small change
to correct a typo in some displayed text, and then re-deployed the
webapp. Upon attempting to log into the webapp I was unable to connect
to the database. I recieved the below error.

Steps Taken:

I have restarted both Tomcat and mySQL, with no change. I have double
checked my source code, and I do not think the issue is with the
source itself. I have attempted re-deploying the webapp, including an
archived, known good version. The result was the same exception posted
above.

I can log into the mySQL database from the command-line without any
issue at all.

Thank you in advance for any help.

Brian Vuyk

Tomcat error taken from logs
--
2006-06-06 05:06:42 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
javax.servlet.jsp.JspException: Unable to get connection, DataSource
invalid: java.lang.NullPointerException
   at 
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
   at 
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
   at 
org.apache.jsp.jsp.authenticate_jsp._jspx_meth_sql_query_0(authenticate_jsp.java:286)
   at 
org.apache.jsp.jsp.authenticate_jsp._jspService(authenticate_jsp.java:110)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
   at java.lang.Thread.run(Thread.java:595)



Version Information:
---
Tomcat 5.5.17
---
mySQL:
mysql status
--
mysql  Ver 14.7 Distrib 4.1.19, for pc-linux-gnu (i686) using readline 5.1

Connection id:  1
Current database:
Current user:   [EMAIL PROTECTED]
SSL:Not in use
Current pager:  /usr/bin/less
Using outfile:  ''
Using delimiter:;
Server version: 4.1.19-log
Protocol version:   

Re: Urgent...

2006-06-06 Thread Andrew Miehs

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bingo bongo -

If you want them to run at the same time - both tomcats need to use  
different ports


so in the 5.5.17 config

change port 8005 to 18005
change port 8080 to 18080
change port 8443 to 18443

Regards

Andrew


On 06/06/2006, at 4:39 PM, Christian Jean wrote:


Here is the result for 'jakarta-tomcat-5.0.28/conf/server.xml':

Server port=8005 shutdown=SHUTDOWN debug=0
   Connector port=8080
   Connector port=8443
   Connector port=8009
   Connector port=8082

Here is the result for 'apache-tomcat-5.5.17/conf/server.xml':

Server port=8005 shutdown=SHUTDOWN
   Connector port=8080 maxHttpHeaderSize=8192
   Connector port=8443 maxHttpHeaderSize=8192

Note that I'm using a slightly modified version of 'server- 
minimal.xml' for
the 5.5, but even using the standard server.xml (with SSL enabled)  
gives me

the same results.

Thanks,

Jeach!

On 6/6/06, Andrew Miehs [EMAIL PROTECTED] wrote:



In both tomcat/conf directories do a

grep 'port=' server.xml


Regards

Andrew


On 06/06/2006, at 4:25 PM, Christian Jean wrote:

 JDK 1.5 (AMD 64-bit) had been installed for several months already
 with
 JAVA_HOME configured correctly.

 Jeach!

 On 6/6/06, Bob Hall [EMAIL PROTECTED] wrote:

 --- Christian Jean [EMAIL PROTECTED] wrote:

  I've been successfully using various version of
  Tomcat for serveral years
  with the same certificate... all worked well.
 
  I wanted to test the stability of Tomcat 5.5.17, so
  I installed in on the
  same server but renamed all the 8XXX ports to 9XXX
  so that it could be run
  in parallel to the 5.0.28 server.  When I started
  the 5.5.17 server, I
  noticed that I could not get the HTTPS (SSL) pages
  working correctly.  The
  normal HTTP pages were working correctly though.
 
  Then the real trouble started!!  I could not load
  any HTTPS pages from any
  server thereafter...
 
  The SSL pages DID work on the 5.0.28 prior to
  testing the 5.5.17, but now
  HTTPS no longer works at all.  When trying to load
  the ssl pages from the
  browser it says nothing... just a timeout occures.
 
  The logs don't show a single trace that something (a
  page) was not properly
  sent.
 
  Using 'netstat -ln' shows that the ports are
  successfully bound.
 
  The only message I'm capable of getting is with
  lynx:
 
   bash   lynx https://localhost:8443
 
  Will display the following line:
 
SSL error:Can't find common name in
  certificate-Continue? (y)
 
  Appart from installing and running server 5.5.17,
  nothing has changed on my
  server, so its weird that my production 5.0.28
  should stop working because
  of this test???
 

 Christian,

 You mention that no other changes were made on
 the server, but did you happen to also install
 jdk/jre 1.5 and/or change JAVA_HOME?

 -Bob

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

  
-

 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEhZaeW126qUNSzvURAp+IAJ4gzDQLi/RnVNkKLkhNut94pvGkEgCeIpVQ
aeyP00DZ8io8rVGo/fCuMAc=
=uFub
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Random NullPointerException when trying to connect to Datasource

2006-06-06 Thread Brian Vuyk

I feel compelled to also mention that I have rebooted the system, with
still the same effect.

On 6/6/06, Brian Vuyk [EMAIL PROTECTED] wrote:

Hello.


I am currently developing a JSP webapp for my employer, andhave run
into a couple of serious problems.

Randomly, tomcat seems to be losing it's ability to connect to the
mySQL server running on the same server as Tomcat.

Scenario:

This morning I was using the webapp no problem. I made a small change
to correct a typo in some displayed text, and then re-deployed the
webapp. Upon attempting to log into the webapp I was unable to connect
to the database. I recieved the below error.

Steps Taken:

I have restarted both Tomcat and mySQL, with no change. I have double
checked my source code, and I do not think the issue is with the
source itself. I have attempted re-deploying the webapp, including an
archived, known good version. The result was the same exception posted
above.

I can log into the mySQL database from the command-line without any
issue at all.

Thank you in advance for any help.

Brian Vuyk

Tomcat error taken from logs
--
2006-06-06 05:06:42 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
javax.servlet.jsp.JspException: Unable to get connection, DataSource
invalid: java.lang.NullPointerException
at 
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
at 
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
at 
org.apache.jsp.jsp.authenticate_jsp._jspx_meth_sql_query_0(authenticate_jsp.java:286)
at 
org.apache.jsp.jsp.authenticate_jsp._jspService(authenticate_jsp.java:110)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)



Version Information:
---
Tomcat 5.5.17
---
mySQL:
mysql status
--
mysql  Ver 14.7 Distrib 4.1.19, for pc-linux-gnu (i686) using readline 5.1

Connection id:  1
Current database:
Current user:   [EMAIL PROTECTED]

Re: Urgent...

2006-06-06 Thread Christian Jean

I had originally tried to run them in parallel with the ports changed (which
I'm convinced is what caused all of this).

But since that didn't work at all, I stopped everything and they currently
are configured to use the same ports, but I'm not currently running them
simultaneously.

Thanks,

Jeach!


On 6/6/06, Andrew Miehs [EMAIL PROTECTED] wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bingo bongo -

If you want them to run at the same time - both tomcats need to use
different ports

so in the 5.5.17 config

change port 8005 to 18005
change port 8080 to 18080
change port 8443 to 18443

Regards

Andrew


On 06/06/2006, at 4:39 PM, Christian Jean wrote:

 Here is the result for 'jakarta-tomcat-5.0.28/conf/server.xml':

 Server port=8005 shutdown=SHUTDOWN debug=0
Connector port=8080
Connector port=8443
Connector port=8009
Connector port=8082

 Here is the result for 'apache-tomcat-5.5.17/conf/server.xml':

 Server port=8005 shutdown=SHUTDOWN
Connector port=8080 maxHttpHeaderSize=8192
Connector port=8443 maxHttpHeaderSize=8192

 Note that I'm using a slightly modified version of 'server-
 minimal.xml' for
 the 5.5, but even using the standard server.xml (with SSL enabled)
 gives me
 the same results.

 Thanks,

 Jeach!

 On 6/6/06, Andrew Miehs [EMAIL PROTECTED] wrote:


 In both tomcat/conf directories do a

 grep 'port=' server.xml


 Regards

 Andrew


 On 06/06/2006, at 4:25 PM, Christian Jean wrote:

  JDK 1.5 (AMD 64-bit) had been installed for several months already
  with
  JAVA_HOME configured correctly.
 
  Jeach!
 
  On 6/6/06, Bob Hall [EMAIL PROTECTED] wrote:
 
  --- Christian Jean [EMAIL PROTECTED] wrote:
 
   I've been successfully using various version of
   Tomcat for serveral years
   with the same certificate... all worked well.
  
   I wanted to test the stability of Tomcat 5.5.17, so
   I installed in on the
   same server but renamed all the 8XXX ports to 9XXX
   so that it could be run
   in parallel to the 5.0.28 server.  When I started
   the 5.5.17 server, I
   noticed that I could not get the HTTPS (SSL) pages
   working correctly.  The
   normal HTTP pages were working correctly though.
  
   Then the real trouble started!!  I could not load
   any HTTPS pages from any
   server thereafter...
  
   The SSL pages DID work on the 5.0.28 prior to
   testing the 5.5.17, but now
   HTTPS no longer works at all.  When trying to load
   the ssl pages from the
   browser it says nothing... just a timeout occures.
  
   The logs don't show a single trace that something (a
   page) was not properly
   sent.
  
   Using 'netstat -ln' shows that the ports are
   successfully bound.
  
   The only message I'm capable of getting is with
   lynx:
  
bash   lynx https://localhost:8443
  
   Will display the following line:
  
 SSL error:Can't find common name in
   certificate-Continue? (y)
  
   Appart from installing and running server 5.5.17,
   nothing has changed on my
   server, so its weird that my production 5.0.28
   should stop working because
   of this test???
  
 
  Christian,
 
  You mention that no other changes were made on
  the server, but did you happen to also install
  jdk/jre 1.5 and/or change JAVA_HOME?
 
  -Bob
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 
 
 -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEhZaeW126qUNSzvURAp+IAJ4gzDQLi/RnVNkKLkhNut94pvGkEgCeIpVQ
aeyP00DZ8io8rVGo/fCuMAc=
=uFub
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Urgent...

2006-06-06 Thread Christian Jean

I had originally tried to run them in parallel with the ports changed (which
I'm convinced is what caused all of this).

But since that didn't work at all, I stopped everything and they currently
are configured to use the same ports, but I'm not currently running them
simultaneously.

Thanks,

Jeach!


On 6/6/06, Grant Johnson [EMAIL PROTECTED] wrote:


I am not an expert but

Both tomcat's look like they are trying to do stuff on ports  8005,
and connector ports 8080 and 8443.
What if you stopped both tomcat's and started one.  Does the running
Tomcat work?



Christian Jean wrote:
 Here is the result for 'jakarta-tomcat-5.0.28/conf/server.xml':

 Server port=8005 shutdown=SHUTDOWN debug=0
Connector port=8080
Connector port=8443
Connector port=8009
Connector port=8082

 Here is the result for 'apache-tomcat-5.5.17/conf/server.xml':

 Server port=8005 shutdown=SHUTDOWN
Connector port=8080 maxHttpHeaderSize=8192
Connector port=8443 maxHttpHeaderSize=8192

 Note that I'm using a slightly modified version of
 'server-minimal.xml' for
 the 5.5, but even using the standard server.xml (with SSL enabled)
 gives me
 the same results.

 Thanks,

 Jeach!

 On 6/6/06, Andrew Miehs [EMAIL PROTECTED] wrote:


 In both tomcat/conf directories do a

 grep 'port=' server.xml


 Regards

 Andrew


 On 06/06/2006, at 4:25 PM, Christian Jean wrote:

  JDK 1.5 (AMD 64-bit) had been installed for several months already
  with
  JAVA_HOME configured correctly.
 
  Jeach!
 
  On 6/6/06, Bob Hall [EMAIL PROTECTED] wrote:
 
  --- Christian Jean [EMAIL PROTECTED] wrote:
 
   I've been successfully using various version of
   Tomcat for serveral years
   with the same certificate... all worked well.
  
   I wanted to test the stability of Tomcat 5.5.17, so
   I installed in on the
   same server but renamed all the 8XXX ports to 9XXX
   so that it could be run
   in parallel to the 5.0.28 server.  When I started
   the 5.5.17 server, I
   noticed that I could not get the HTTPS (SSL) pages
   working correctly.  The
   normal HTTP pages were working correctly though.
  
   Then the real trouble started!!  I could not load
   any HTTPS pages from any
   server thereafter...
  
   The SSL pages DID work on the 5.0.28 prior to
   testing the 5.5.17, but now
   HTTPS no longer works at all.  When trying to load
   the ssl pages from the
   browser it says nothing... just a timeout occures.
  
   The logs don't show a single trace that something (a
   page) was not properly
   sent.
  
   Using 'netstat -ln' shows that the ports are
   successfully bound.
  
   The only message I'm capable of getting is with
   lynx:
  
bash   lynx https://localhost:8443
  
   Will display the following line:
  
 SSL error:Can't find common name in
   certificate-Continue? (y)
  
   Appart from installing and running server 5.5.17,
   nothing has changed on my
   server, so its weird that my production 5.0.28
   should stop working because
   of this test???
  
 
  Christian,
 
  You mention that no other changes were made on
  the server, but did you happen to also install
  jdk/jre 1.5 and/or change JAVA_HOME?
 
  -Bob
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 
 
-
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





--

F. Grant Johnson
566-0630 / [EMAIL PROTECTED]

Systems/Web Coordinator
RM 285 - Robertson Library
University of Prince Edward Island

***
Attitude is IT!


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: AW: java.lang.OutOfMemoryError: PermGen space

2006-06-06 Thread Christian Reichlin

The problem whith PermGen space also occurs when I redeploy too often in a
short amount of time. Does that point in any direction? 


it points to the class loader not released-problem or at least to a 
class loader not released immediately-problem.


some more infos:
http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669


Peter Neu wrote:


Hello,

thanks for the many replies. I do have many third party libaries (struts,
fop etc.) so that could cause it. I also have a singleton pattern which is
used many times because it hands out database connections. 


I will set the MaxPermSize variable in the CATALINA_OPTS variable and see
what happens.

The problem whith PermGen space also occurs when I redeploy too often in a
short amount of time. Does that point in any direction? 


Cheers,
Pete


-Ursprüngliche Nachricht-
Von: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 6. Juni 2006 15:38

An: Tomcat Users List
Betreff: Re: java.lang.OutOfMemoryError: PermGen space

Peter Neu ha scritto:
 


Hello,



I have many memory consuming apps on my tomcat server. I a lot pdf  excel
generation. So every other week I get this error



java.lang.OutOfMemoryError: PermGen space

 
   



http://wiki.apache.org/tomcat/OutOfMemory
HTH
Antonio

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tests...

2006-06-06 Thread Christian Jean

In regards to my original problem sent a few hours ago, if someone could
test the following, it would be greatly appreciated...

1. If you have a version of Tomcat 5.0.28 running on ports 8080 and 8443
using a valid (signed) certificate and NOT running as root.
2. Make sure that the above both responds on http and https protocols
correctly.

3. Download Tomcat 5.5.17 and install it by uncommenting the SSL section and
then renaming the 8XXX ports to its 9XXX equivalent.
4. Make sure that you configure SSL to use the SAME certificate file.
5. Test the above (http://domain.com:9080 and https://domain.com:9443), as
for me https did not work, but http did -- this is where everything started
going bad for me (port 9443 was NOT bound at all when using 'netstat -ln').

6. Stop both servers and restart the Tomcat 5.0.28 one
7. Now if you try step #2, it no longer works and requesting https will just
time-out.  FOR EVER -- no more https!

Thats all I did thinking that there was no harm in running Tomcat in
parallel sharing the same certificate key.  If someone could test the above
at least I could get some feedback.

Thanks,

Jeach!


RE: Tomcat /JSSE help needed

2006-06-06 Thread Rumpa Giri
I apologise for the confusion, but I was trying to figure out where the problem 
lies, so I was jotting down any differences I see between whats working and 
whats not.. I think I found out why it stops working when IIS is put back in 
the mixture, Its not IIS its the JAVA code itself. We have multiple connection 
code doing HttpsURLConnection, but the javax.net.ssl properties that being set 
are different for the two piece of code. And one setting is affecting the other.
   
  1) When doing the httpsurlconnection for another vendor( say vendor A), we 
have some code which is as follows:
  cacerts_path is not cacerts file, we imported the public key for VENDOR A in 
a separate truststore.
   
  System.setProperty(java.protocol.handler.pkgs, 
com.sun.net.ssl.internal.www.protocol);
  System.setProperty(javax.net.ssl.trustStore, cacerts_path);
  System.setProperty(javax.net.ssl.keyStorePassword, cacerts_pwd);
  com.sun.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(new 
HostnameVerifier() {
   public boolean verify(String urlHost, String certHost) {
 
return true;
   }
  });
 
  // setup the JSSE handler for the connection
  Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
   
  But I read that these lines of code is no longer needed as of JDK 1.4 right, 
if we place the public key in the %JAVA_HOME%/jre/lib/security/cacerts file. Is 
this true? This piece of code is conflicting with the settings for the 
following code.
   
  2) The following piece of code executes for VENDOR B whose requirement is 
client authentication. Hence we created this keystore with the private key in 
it.
   
  System.setProperty(java.protocol.handler.pkgs,
com.sun.net.ssl.internal.www.protocol);
System.setProperty(javax.net.ssl.keyStorePassword, _storePwd);
System.setProperty(javax.net.ssl.keyStore, _keystorePath);
URL urlToConnect = new URL(_url);
HttpURLConnection conn = (HttpURLConnection)
urlToConnect.openConnection();
conn.setRequestMethod(POST);
conn.setDoOutput(true);
OutputStreamWriter wr;
wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(_parameter);
wr.flush();
wr.close();

  Once you run the code for VENDOR A, VENDOR B code stops working, i.e, VENDOR 
B does not get the private key in the keystore. VENDOR A works all the time. 
   
  Refer to (1) code snippet
  But I read that this is no longer needed as of JDK 1.4 right, if we place 
the public key in the %JAVA_HOME%/jre/lib/security/cacerts file. Is this true? 
This piece of code is conflicting with the settings for the following code.
  
   
  After reading this, I imported the public key for VENDOR A into the 
  %JAVA_HOME%/jre/lib/security/cacerts  but I am getting the following 
exception when I execute VENDOR A code. 
   
  javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderExce
ption: unable to find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1
476)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Clien
tHandshaker.java:843)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHa
ndshaker.java:106)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:4
95)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.jav
a:433)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.j
ava:815)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SS
LSocketImpl.java:1025)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketIm
pl.java:1038)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:
405)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:170)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLCo
nnection.java:828)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Htt
psURLConnectionImpl.java:230)
at com.hh.ecs.ComObject.UploadFiles(Unknown Source)
at com.hh.ecs.ComObject.main(Unknown Source)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to find vali
d certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:221)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.jav
a:145)
at sun.security.validator.Validator.validate(Validator.java:203)
at 

Re: looking for TOMCAT monitor

2006-06-06 Thread segli

I'm also a newbie to Tomcat and just installed this Lambda-Probe. 
It won't show me anything on the Connector Stats though, although there are
three connectors configured in the Catalina section and they're up and
running.

Anything obvious that I could have done wrong or does this require special
configuration?
thanks! segli
--
View this message in context: 
http://www.nabble.com/looking-for-TOMCAT-monitor-t1693458.html#a4735059
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat creating two threads for one request

2006-06-06 Thread Sourabh Antani
Hi, 
   
  I am facing this situation. I have a login screen, when the user clics the 
submit button, Tomcat sometimes creates two threads in parallel to process the 
request. This causes a problem with the database. This does not always happen. 
Most of the time it creates only one thread as expected. However, every once in 
a while it will create two threads that run in parallel. 
   
  Any ideas?
   
   
  Thanks,
   
  Sourabh Antani

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

Re: Tomcat creating two threads for one request

2006-06-06 Thread Nikita Tovstoles

Sourab,

I'm facing the exactly same problem and yet to find a solution. Is your 
Tomcat instance listening on 2 ports by chance? Also is the 
request.getParameterMap() of one of those parallel requests missing any 
query parameters?


-nikita

Sourabh Antani wrote:
Hi, 
   
  I am facing this situation. I have a login screen, when the user clics the submit button, Tomcat sometimes creates two threads in parallel to process the request. This causes a problem with the database. This does not always happen. Most of the time it creates only one thread as expected. However, every once in a while it will create two threads that run in parallel. 
   
  Any ideas?
   
   
  Thanks,
   
  Sourabh Antani


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


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Retrieve certain session data inside a servlet

2006-06-06 Thread Carlos Alonso Vega


Hi all,

Thanks for all replies they help me a lot.

Regards
Carlos


Martin Gainty escribió:


Good Morning Eric and Carlos-

Indeed there is a way to enable CrossContext communication via the 
CrossContext=true directive inside the Context tag

Context path=/pluto crossContext=true /

This capability is available from combined engineering staff from Sun 
Microsystems and the IBM Corporation.

Tthe specific JSR-168 spec is published at
http://jcp.org/aboutJava/communityprocess/final/jsr168/

For specific implementation details I would encourage you to look at 
John Lewis' article available at

http://www.theserverside.com/tt/articles/article.tss?l=ClusteringTomcat

HTH.
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please 
notify

the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - From: Eric Haszlakiewicz 
[EMAIL PROTECTED]

To: Carlos Alonso Vega [EMAIL PROTECTED]
Cc: Tomcat Users List users@tomcat.apache.org
Sent: Friday, June 02, 2006 9:11 PM
Subject: Re: Retrieve certain session data inside a servlet



On Fri, Jun 02, 2006 at 11:15:03AM +0200, Carlos Alonso Vega wrote:


Bob,

Thanks for the reply. My problem is that the session info I need is not
of the session that makes the request. I need to check other 
sessions in

the same context.  I can use the request because it is in the same
context, so the manager is the same.

This servlet is called internally from the app, and checks if some
session exists. It is similar to the case of obtaining all active
sessions from one context using the manager inside the servlet code
(findSessions). If someone have this piece of code (or similar), it 
will

serve me.



To do something like that you need to do it yourself.  i.e. store a
HashTable in the application context, then add and remove sessions to
it when people login and logout, or at some other convinient time.
Of course, this assumes your app isn't running in a distributed 
environment.

If it is, then it's impossible to get a session object from a different
JVM.  (well, you could serialize it and transfer the data, but it won't
be the same object and it won't be useful for much other than extracting
some info)

eric

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Image files and DeployTask...

2006-06-06 Thread Greg Allen
So has nobody else seen this?  It should be simple to reproduce.  

 

I can reproduce it with the following steps:

 

1.  Create my distribution in my build area.
2.  Verify the image file is OK (opening it in IE is how I do it).
3.  Deploy the application using the ant task.
4.  Go to the Tomcat webapps area and pull the image up in IE. It is
corrupted.

 

-- Greg

 

 

 

  _  

From: Greg Allen 
Sent: Monday, June 05, 2006 2:35 PM
To: 'users@tomcat.apache.org'
Subject: Image files and DeployTask...

 

I have a build.xml that used DeployTask to deploy my application. Here's
the build.xml:

 

  targetname=install depends=compile

  description=Install webapp on Tomcat

taskdef name=install

classname=org.apache.catalina.ant.DeployTask

 classpathref=catalina.classpath/

install  url=${catalina.manager}

 username=${catalina.username}

 password=${catalina.password}

 path=/${project.path}

 localwar=file://${build.web.dir}/

  /target

 

In my deployed application I have some image files (GIF format), which 
end up in the app/images directory.

 

However, for some reason, when the application is deployed the images
end
up being corrupted and displaying incorrectly on the screen. I have
verified that
the deployed images with the pre-deployed ones, and they are the same
number of bytes. But when I try to view the deployed images, the images
themselves are hosed.

 

I've tried using jar and bundling up my application by hand, and if I do
that
the images end up fine.

 

Has anybody see this before?  Do I have to do something special with
image files?

 

Thanks,

 

-- Greg

 



RE: Tomcat /JSSE help needed(Resolved)

2006-06-06 Thread Rumpa Giri
But I read that these lines of code is no longer needed as of JDK 1.4 right, 
if we place the public key in the %JAVA_HOME%/jre/lib/security/cacerts 
file. Is this true? 
   
  We changed the implementation by removing those line of code and importing 
the public key into the cacerts, it worked fine. 
   
  One more change was instead of the casting it to a HttpsURLConnection, we 
cast it to java.net.HttpURLConnection.
   
  Thanks,
  Rumpa Giri

Rumpa Giri [EMAIL PROTECTED] wrote:
  I apologise for the confusion, but I was trying to figure out where the 
problem lies, so I was jotting down any differences I see between whats working 
and whats not.. I think I found out why it stops working when IIS is put back 
in the mixture, Its not IIS its the JAVA code itself. We have multiple 
connection code doing HttpsURLConnection, but the javax.net.ssl properties that 
being set are different for the two piece of code. And one setting is affecting 
the other.

1) When doing the httpsurlconnection for another vendor( say vendor A), we have 
some code which is as follows:
cacerts_path is not cacerts file, we imported the public key for VENDOR A in a 
separate truststore.

System.setProperty(java.protocol.handler.pkgs, 
com.sun.net.ssl.internal.www.protocol);
System.setProperty(javax.net.ssl.trustStore, cacerts_path);
System.setProperty(javax.net.ssl.keyStorePassword, cacerts_pwd);
com.sun.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(new 
HostnameVerifier() {
public boolean verify(String urlHost, String certHost) {

return true;
}
});

// setup the JSSE handler for the connection
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

But I read that these lines of code is no longer needed as of JDK 1.4 right, if 
we place the public key in the %JAVA_HOME%/jre/lib/security/cacerts file. Is 
this true? This piece of code is conflicting with the settings for the 
following code.

2) The following piece of code executes for VENDOR B whose requirement is 
client authentication. Hence we created this keystore with the private key in 
it.

System.setProperty(java.protocol.handler.pkgs,
com.sun.net.ssl.internal.www.protocol);
System.setProperty(javax.net.ssl.keyStorePassword, _storePwd);
System.setProperty(javax.net.ssl.keyStore, _keystorePath);
URL urlToConnect = new URL(_url);
HttpURLConnection conn = (HttpURLConnection)
urlToConnect.openConnection();
conn.setRequestMethod(POST);
conn.setDoOutput(true);
OutputStreamWriter wr;
wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(_parameter);
wr.flush();
wr.close();

Once you run the code for VENDOR A, VENDOR B code stops working, i.e, VENDOR B 
does not get the private key in the keystore. VENDOR A works all the time. 

Refer to (1) code snippet
But I read that this is no longer needed as of JDK 1.4 right, if we place the 
public key in the %JAVA_HOME%/jre/lib/security/cacerts file. Is this true? 
This piece of code is conflicting with the settings for the following code.


After reading this, I imported the public key for VENDOR A into the 
%JAVA_HOME%/jre/lib/security/cacerts but I am getting the following exception 
when I execute VENDOR A code. 

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderExce
ption: unable to find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1
476)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Clien
tHandshaker.java:843)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHa
ndshaker.java:106)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:4
95)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.jav
a:433)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.j
ava:815)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SS
LSocketImpl.java:1025)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketIm
pl.java:1038)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:
405)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:170)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLCo
nnection.java:828)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Htt
psURLConnectionImpl.java:230)
at com.hh.ecs.ComObject.UploadFiles(Unknown Source)
at com.hh.ecs.ComObject.main(Unknown Source)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find vali
d certification path to requested target
at 

Debugging JSP's residing in Local VC folder

2006-06-06 Thread Tim Quinn

I am interested in Debugging JSPs that sitting in a version control folder
in Perforce (or subversion) local repository. The current method requires
manually moving the JSP's to the exploded webapp folder but this process of
moving the files in and out of local repository is a pain in the butt.

I know I can write a little TK / rsync program to manage this but was
wondering if Tomcat has a way of configuring an external folder to act as a
virtual folder that takes precedence over the main web app folders. If any
JSP's or other files are found in this folder, they are loaded and the main
ones are ignored.

Thanks for in advance,

JsD


Problem setting up multiple instances of Tomcat5.0

2006-06-06 Thread Mark Liu
I searched the mail archive, and know that this has
been asked many times.

I am just need two instances of tomcat for a web
application for my school work.  So, let's forget
about performance issues.

I tried installing Tomcat 5.0 in two different
locations on my WinXP box, and also changed ports
8080, 8009, 8005 in server.xml to , 8809, 8805 for
one of the two installations.  When I tried starting
this installation of tomcat, it still says that one
instance of tomcat5 is already running.

From the documentation and previous conversations, it
seems to be possible to launch two instances of tomcat
using the single installation.

But, I am not sure how to set it up.  Can any guru
write a doc on this, so that we newbies don't have to
annoy you guys by asking this question again and
again?


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Debugging JSP's residing in Local VC folder

2006-06-06 Thread Mark Thomas
Tim Quinn wrote:
 I am interested in Debugging JSPs that sitting in a version control folder
 in Perforce (or subversion) local repository. The current method requires
 manually moving the JSP's to the exploded webapp folder but this process of
 moving the files in and out of local repository is a pain in the butt.

For development you could use just link the directory. You'll need to
enable linking - see allowLinking on
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat contexts for proxied content

2006-06-06 Thread Marc Bächinger
i'm everthing but an expert in this, but i got loadbalancing with ajp working 
with those versions you mention (2.2.2 and 5.5.17). Maybe my config below is 
helpful for you.

The documentation on the net about configuration of the new built-in ajp 
support through the proxy module was rather thin. The best howto i found is 
in german (the config samples maybe helpful even if the rest is german):

http://www.linuxforen.de/forums/showthread.php?t=209010

marc

my config:

in server.xml:

  Connector port=9002 URIEncoding=UTF-8
   maxThreads=25
   minSpareThreads=4
   maxSpareThreads=10
   enableLookups=false
   acceptCount=100
   protocol=AJP/1.3
   request.registerRequests=true /
Engine name=Catalina
defaultHost=localhost
jvmRoute=node1 

in httpd.conf :
---
IfModule mod_proxy_balancer.c

Location /balancer-manager
SetHandler balancer-manager
/Location

Proxy balancer://cluster
BalancerMember ajp://localhost:9002 route=node1
BalancerMember ajp://localhost:9102 route=node2
/Proxy

Location /axis2
ProxyPass balancer://cluster/axis2 stickysession=JSESSIONID
/Location
/IfModule

Am Dienstag, 6. Juni 2006 01.46 schrieb [EMAIL PROTECTED]:
 I've got tomcat 5.5.17 and apache 2.2.2 installed and I'm trying to set
 up an AJP1.3 connector to proxy content from apache to tomcat.  However,
 no matter what I've tried so far, tomcat always responds with a
 requested resource not available error.

 Following are the settings in server.xml:

 Connector port=8009 enableLookups=false proxyName=ironwire.net
 proxyPort=80 protocol=AJP/1.3 maxThreads=50 minSpareThreads=2
 maxSpareThreads=25 address=127.0.0.1 /

  Engine name=localhost defaultHost=localhost
Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase /

Host name=localhost appBase=/usr/local unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
  Context path= docBase=tomcat/webapps /
  Context path=/ docBase=www/ironwire.net reloadable=true /
/Host
  /Engine

 And, in httpd.conf, I have:

 ProxyRequests Off
 ProxyPass / ajp://localhost:8009/

 Does anybody have any experience with this?

 Thanks,
 -- Steven

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unable to access installed applications

2006-06-06 Thread Gautam Sreeja

Hi,

I just started working on Tomcat5.0 on Red Hat Linux. I just copied the 
Hello World example to create an application under CATALINA_HOME/webapps 
directory under the name helloWorld.

When I try accessing my application using http://localhost/helloWorld, I 
get a message saying the requested URL was not found on the server. I am able 
to load the example applications like servlets-examples and jsp-examples. 
But I get the earlier error when I try to load the examples - tomcat-docs 
and webdav

I checked the log file catalina.out where it is listed that my application 
helloWorld, tomcat-docs and webdav are installed.

What could I be doing wrong? Please advice.

Thanks in advance!

Sree

 





-
Let's start Yahoo! Auction  -  Free Campaign Now!

Re: Unable to access installed applications

2006-06-06 Thread vineesh kumar

whether u r using the default port or port 80?
If it's default port the url should be http://localhost:8080/helloWorld

If u just create a directory only things will not work.U hav to edit
the $TOMCAT_HOME/conf/server.xml and add the appropriate entry
there.Also u hav to edit the web.xml in ur webapp dir to reflect any
changes u added.
On 6/7/06, Gautam Sreeja [EMAIL PROTECTED] wrote:


Hi,

I just started working on Tomcat5.0 on Red Hat Linux. I just copied the
Hello World example to create an application under CATALINA_HOME/webapps
directory under the name helloWorld.

When I try accessing my application using http://localhost/helloWorld, I
get a message saying the requested URL was not found on the server. I am able
to load the example applications like servlets-examples and jsp-examples.
But I get the earlier error when I try to load the examples - tomcat-docs
and webdav

I checked the log file catalina.out where it is listed that my application
helloWorld, tomcat-docs and webdav are installed.

What could I be doing wrong? Please advice.

Thanks in advance!

Sree







-
Let's start Yahoo! Auction  -  Free Campaign Now!




--
Vineesh Kumar
Software Engineer
ISS-RnD Department
HCL infosystems Ltd
Cochin

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]