RE: Tomcat fails to refresh connections when mySQL server on linux is shutdown and restarted

2006-07-24 Thread Seetha Rao
Hi Chris, thanks for the comments. I thought since we have singleton class and 
creating a connection object there, we will be reusing the same connection 
object for all database operations. May be my thinking is not correct. Do you 
suggest I just create the DataSource object in the private constructor and then 
get connection object from the datasource when doing a 
database query/update opeartions? Yes, I will make sure I close the stmt and 
connection objects.

-
private static DataSource ds = null;

private DBManager() throws Exception
{
Context init = new InitialContext();
Context ctx = (Context) init.lookup(java:comp/env);
ds = (DataSource) ctx.lookup(jdbc/jalasevaDB);

}

And then, for example, in a method to do query, 

myCon = ds.getConnection();
stmt = myCon.createStatement();

And then close the stmt and mycon.
---

What would be the effect of calling 'ds.getConnection()' for every database 
operation?

Thanks again for your guidance,
Seetha


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 23, 2006 8:04 PM
To: [EMAIL PROTECTED]
Cc: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Tomcat fails to refresh connections when mySQL server on
linux is shutdown and restarted


Seetha,

 To answer Tim's question, we are not explicitly closing connection
 and statement objects as the context xml has these resource parameters.
 
 removeAbandoned=true
 removeAbandonedTimeout=60
 logAbandoned=true

This probably means that you are leaking every single connection. :(

 Shouldn't DBCP take care of creating new connection if the connection
 object is stale?

You will be creating new Connection objects all the time -- basically
you'll never re-use a database connection, making the pool completely
irrelevant; you may as well call DriverManager.getConnection each time
you need to make a SQL query.

Even if DBCP /does/ clean up after you, you /really/ need to call
close on your statement, resultset, and connection objects in finally
blocks in your code. If you don't, your code will probably not work
if/when you switch to another connection pool, another app server,
another database, etc.

Most databases allocate lots of memory for each database connection on
the server side, which means that every useless connection you have
waiting around to be cleaned up by DBCP will be taking up memory on your
database server that could be used to serve actual requests.

Whether this solves your original problem or not, you definitely need to
modify your code to close all of those objects.

-chris




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



sendRedirect with response wrapper not working

2006-07-24 Thread Mani Balasubramani
Hi,

  Here is the scenario.

 

In my filter I do the following

 

doFilter(){

 MyRequestWrapper reqWrapper = new MyRequestWrapper(servletRequest);

 MyResponseWrapper respWrapper = new
MyResponseWrapper(servletResponse);

 

 //get cookie from request and decrypt it.

 

 chain.doFilter(reqWrapper, respWrapper);   

 

 //create a cookie an encrypt it

 

 respWrapper.addCookie(NAME, encrypt(myobj));

}

 

 

The servlet class checks, if the user is authenticated using a variety
of conditions. If the user is not authenticated, then the servlet sends
a redirect to the login page.

 

 

When debugging using Eclipse, I can see that my response wrapper class
has the redirect url (http://my.com/login) set in it. But I never see
the login page on my browser. Should I implement any special methods in
my wrapper which is currently an empty class?

 

 

 

Thanks,

Mani

 


This email and any attachment(s) thereto, are intended for the use of
the addressee(s) named herein and may contain legally privileged and or
confidential information under applicable law. If you are not the
intended recipient of this e-mail, you are hereby notified any
dissemination, distribution or copying of this email, and any attachment(s)
thereto, is strictly prohibited. If you have received this communication
in error, please notify the sender at 415-281-2200 or via return e-mail at
[EMAIL PROTECTED] and permanently delete the original copy and
any copy of any e-mail, and any printout thereof. Thank you for your
cooperation.


Restart web app

2006-07-24 Thread asaf.lahav
Where can I find code to perform a restart (or stop and then start) of a web
application?

Thank in advance,
Asaf


-
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: Restart web app

2006-07-24 Thread Shinya Koizumi
Where can I find code to perform a restart (or stop and then start) of a 
web

application?

Thank in advance,
Asaf


You mean from the batch file? if so can you just call stop and start scripts
they will do the trick, no?

SK 




-
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 not working

2006-07-24 Thread Matus Nemcik

Thanks for your reply, you was right, the problem was with the account ...
now everything is working great!!! Thanks again!!

On 7/24/06, Mladen Turk [EMAIL PROTECTED] wrote:


Matúš Nemčík wrote:
 Hi, i have installed the latest version of Apache Tomcat 5.5.17 on
Windows
 XP platform using the installer and the server is running as a service.


The probable reason is because default service runs under
the SYSTEM account. Keystore requires a valid user.
Modify the service to use the account you are using when
running in command line mode (Anyhow first try if it works
from command line).


Regards,
Mladen.

-
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: Restart web app

2006-07-24 Thread Florian Hopf
Hi,
asaf.lahav schrieb:
 Where can I find code to perform a restart (or stop and then start) of a web
 application?
   
There is an Ant task which performs a reload using the manager
application. It's located in package org.apache.catalina.ant.ReloadTask.
If you want to perform the reload completely programmatic have a look at
the manager webapp itself.

Kind regards
Florian

-- 
/**
 * Florian Hopf
 * Synyx GmbH  Co. KG
 * phone  +49(0)721 9118303
 * eMail  [EMAIL PROTECTED]
 * wwwhttp://www.synyx.de
 * ircirc://irc.synyx.de
 */


-
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 as a proxy server

2006-07-24 Thread Pid


McHugh, Jason wrote:
 I want to run straight tomcat as a proxy server.  (I understand that there 
 are a variety of other applications out there that may perform better and 
 offer more features.  I also understand that I could front tomcat with apache 
 and do some sort of rewriting solution.  I'd rather not do any of these; I 
 just want to use plain tomcat.  :) )
 
 I've written a servlet and overridden the commonly used default servlet 
 'org.apache.catalina.servlets.DefaultServlet' with my own.  All of this is 
 working fine.
 
 The problem occurs when I run my server as a proxy server.  Web browsers will 
 make the request for http://www.google.com; look something like this:
 
 GET http://www.google.com/ HTTP/1.1
 Accept: */*
 Accept-Language: en-us
 Host: www.google.com
 
 (there are other parts to it, but really this is all that matters.)  My 
 tomcat responds with
 
 HTTP/1 1 400 No Host matches server name www.google.com
 Server: Apache-Coyote/1.1
 Transfer-Encoding: chunked
 Date: Sat, 22 Jul 2006 20:10:26 GMT
 Connection: close
 
 Because, of course, my server host name is not www.google.com.
 
 I've read the documentation and a good deal of the source code and now 
 understand that org.apache.catalina.core.StandardEngine has associated with 
 it a set of Hosts each which is configured with one or more host names 
 (usually one but org.apache.catalina.core.StandardHost supports 'host name 
 aliases').  If the Engine cannot find a host matching the Host http header 
 then it will respond back with the result above.  (I guess it is a bit more 
 complicated than this since my traces through the code show other classes, 
 like host-manager, getting in the mix.)
 
 I expected that Tomcat could accomplish what I am trying to do purely with 
 configuration but after reading through the documentation, FAQs, and much of 
 the catalina code, I can't find the solution.  (The one solution that I have 
 come up with, involving subclassing the org.apache.catalina.core.StandardHost 
 class and overriding the 'findChild' method, feels hacky and like I said -- I 
 thought that I should be able to do what I want using config only.)
 
 To summarize - I would like to configure my tomcat instance to call my 
 servlet independent of the URL or http host header which tomcat receives.  
 Does anyone know how to do this?

Do you have a default host configured?

Engine defaultHost=proxyProcessorHost...
http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html


Pid


 Thanks.
 
 Jason McHugh
 
 -
 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]



tuning tomcat for push applications

2006-07-24 Thread Rajeev Jha

Hi Folks
Past couple of months i was working to make tomcat perform with a push
application. I have posted the results of our effort @

http://rjha94.blogspot.com/

I would welcome your comments and suggestions

Thanks

- Rajeev.

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



java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28

2006-07-24 Thread Seetha Rao
Hi I'm using JOTM for transaction management with Tomcat 5.0.28. I have all
the required jar files as given in
http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html The JNDI
look up throws the following exception:

Here is the code:

Context ctx = new InitialContext();
UserTransaction userTx =
(UserTransaction)ctx.lookup(java:comp/UserTransaction);

The Entry in the mywebapp.xml file:

Resource name=UserTransaction auth=Container
type=javax.transaction.UserTransaction /
ResourceParams name=UserTransaction
parameter
  namefactory/name
  valueorg.objectweb.jotm.UserTransactionFactory/value
  /parameter
parameter
  namejotm.timeout/name
  value60/value
/parameter
/ResourceParams

Exception:
javax.naming.NameNotFoundException
at
org.objectweb.carol.jndi.enc.java.CompNamingContext.lookupCtx(CompNamingCont
ext.java:689)
at
org.objectweb.carol.jndi.enc.java.CompNamingContext.lookup(CompNamingContext
.java:179)
at
org.objectweb.carol.jndi.enc.java.JavaURLContext.lookup(JavaURLContext.java:
138)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.vcbp.struts.action.InsertuserAction.execute(InsertuserAction.java:81)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.Http

Could anyone give me home hints?

Thanks
Seetha


-
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:comp/UserTransaction NameNotFoundException Tomcat 5.0.28

2006-07-24 Thread Vivek Mohan

try using java:comp/env.UserTransaction for JNDI lookup.

--
Vivek.

On 7/24/06, Seetha Rao [EMAIL PROTECTED] wrote:

Hi I'm using JOTM for transaction management with Tomcat 5.0.28. I have all
the required jar files as given in
http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html The JNDI
look up throws the following exception:

Here is the code:

Context ctx = new InitialContext();
UserTransaction userTx =
(UserTransaction)ctx.lookup(java:comp/UserTransaction);

The Entry in the mywebapp.xml file:

Resource name=UserTransaction auth=Container
type=javax.transaction.UserTransaction /
ResourceParams name=UserTransaction
parameter
  namefactory/name
  valueorg.objectweb.jotm.UserTransactionFactory/value
  /parameter
parameter
  namejotm.timeout/name
  value60/value
/parameter
/ResourceParams

Exception:
javax.naming.NameNotFoundException
at
org.objectweb.carol.jndi.enc.java.CompNamingContext.lookupCtx(CompNamingCont
ext.java:689)
at
org.objectweb.carol.jndi.enc.java.CompNamingContext.lookup(CompNamingContext
.java:179)
at
org.objectweb.carol.jndi.enc.java.JavaURLContext.lookup(JavaURLContext.java:
138)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.vcbp.struts.action.InsertuserAction.execute(InsertuserAction.java:81)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.Http

Could anyone give me home hints?

Thanks
Seetha


-
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 is your life and it's ending one minute at a time.

-
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:comp/UserTransaction NameNotFoundException Tomcat 5.0.28

2006-07-24 Thread Vivek Mohan

sorry, I meant, java:comp/env/UserTransaction

--
Vivek.

On 7/24/06, Vivek Mohan [EMAIL PROTECTED] wrote:

try using java:comp/env.UserTransaction for JNDI lookup.

--
Vivek.

On 7/24/06, Seetha Rao [EMAIL PROTECTED] wrote:
 Hi I'm using JOTM for transaction management with Tomcat 5.0.28. I have all
 the required jar files as given in
 http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html The JNDI
 look up throws the following exception:

 Here is the code:

 Context ctx = new InitialContext();
 UserTransaction userTx =
 (UserTransaction)ctx.lookup(java:comp/UserTransaction);

 The Entry in the mywebapp.xml file:

 Resource name=UserTransaction auth=Container
 type=javax.transaction.UserTransaction /
 ResourceParams name=UserTransaction
 parameter
   namefactory/name
   valueorg.objectweb.jotm.UserTransactionFactory/value
   /parameter
 parameter
   namejotm.timeout/name
   value60/value
 /parameter
 /ResourceParams

 Exception:
 javax.naming.NameNotFoundException
 at
 org.objectweb.carol.jndi.enc.java.CompNamingContext.lookupCtx(CompNamingCont
 ext.java:689)
 at
 org.objectweb.carol.jndi.enc.java.CompNamingContext.lookup(CompNamingContext
 .java:179)
 at
 org.objectweb.carol.jndi.enc.java.JavaURLContext.lookup(JavaURLContext.java:
 138)
 at javax.naming.InitialContext.lookup(Unknown Source)
 at com.vcbp.struts.action.InsertuserAction.execute(InsertuserAction.java:81)
 at
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
 sor.java:484)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 at javax.servlet.http.Http

 Could anyone give me home hints?

 Thanks
 Seetha


 -
 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 is your life and it's ending one minute at a time.




--
This is your life and it's ending one minute at a time.

-
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: Restart web app

2006-07-24 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner


-
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:comp/UserTransaction NameNotFoundException Tomcat 5.0.28

2006-07-24 Thread Seetha Rao
Thanks, but got the same exception.

-Original Message-
From: Vivek Mohan [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 4:16 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: java:comp/UserTransaction NameNotFoundException Tomcat
5.0.28


sorry, I meant, java:comp/env/UserTransaction

--
Vivek.

On 7/24/06, Vivek Mohan [EMAIL PROTECTED] wrote:
 try using java:comp/env.UserTransaction for JNDI lookup.

 --
 Vivek.

 On 7/24/06, Seetha Rao [EMAIL PROTECTED] wrote:
  Hi I'm using JOTM for transaction management with Tomcat 5.0.28. I have
all
  the required jar files as given in
  http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html The
JNDI
  look up throws the following exception:
 
  Here is the code:
 
  Context ctx = new InitialContext();
  UserTransaction userTx =
  (UserTransaction)ctx.lookup(java:comp/UserTransaction);
 
  The Entry in the mywebapp.xml file:
 
  Resource name=UserTransaction auth=Container
  type=javax.transaction.UserTransaction /
  ResourceParams name=UserTransaction
  parameter
namefactory/name
valueorg.objectweb.jotm.UserTransactionFactory/value
/parameter
  parameter
namejotm.timeout/name
value60/value
  /parameter
  /ResourceParams
 
  Exception:
  javax.naming.NameNotFoundException
  at
 
org.objectweb.carol.jndi.enc.java.CompNamingContext.lookupCtx(CompNamingCont
  ext.java:689)
  at
 
org.objectweb.carol.jndi.enc.java.CompNamingContext.lookup(CompNamingContext
  .java:179)
  at
 
org.objectweb.carol.jndi.enc.java.JavaURLContext.lookup(JavaURLContext.java:
  138)
  at javax.naming.InitialContext.lookup(Unknown Source)
  at
com.vcbp.struts.action.InsertuserAction.execute(InsertuserAction.java:81)
  at
 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
  sor.java:484)
  at
 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
  at javax.servlet.http.Http
 
  Could anyone give me home hints?
 
  Thanks
  Seetha
 
 
  -
  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 is your life and it's ending one minute at a time.



--
This is your life and it's ending one minute at a time.

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



Some tomcat config questions

2006-07-24 Thread Stuart Fox

Hi

First post so be kind :)

I've just run a nessus scan against one of our servers running tomcat 4.1.30 
standalone on linux and its highlighed a few problems that I cant find config 
options for.

First off is weak ssl ciphers, I've currently got 

protocol=SSLv3
ciphers=SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA

For eash ssl connector as suggested here 
http://www.nabble.com/SSL-Server-Supports-Weak-Encryption-Vulnerability-t1843999.html
However, nessus still says it supports weak ciphers. What have I missed?

Second it says I have UserDir enabled (like apache mod_userdir I assume) but 
again I cant find a way to disable it

Third if I telnet to port 80 and issue GET / HTTP/1.0 the Location header 
contain the local ip address not the public one, It's sat behind a firewall.
I tried the server=external ip in each connector but I still get the internal 
ip address returned, any way to fix it?

Lastly (I think) the version header is always Apache-Coyote/1.1, any way to 
change it to Coyote easily?

Thanks in advance!

Cheers

Stuart

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify netXtra Ltd. Please note 
that any views or opinions presented in this email are solely those of the 
author and do not necessarily represent those of the company. This email or any 
attachments do not constitute an offer. The contents of this e-mail and any 
attachments may contain viruses that could damage your own computer systems.  
Whilst netXtra Ltd has taken every precaution to minimise this risk, we cannot 
accept liability for any damage that you may sustain as a result of viruses


-
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 fails to refresh connections when mySQL server on linux is shutdown and restarted

2006-07-24 Thread David Smith
Best practice is to store the DataSource, not the connections in your 
singelton class.  Then get a connection, perform your queries, and close 
the connection immediately.  The pool will take care of managing the 
connections including creating new ones when existing connections die 
which happens when the database server is restarted.


--David

Seetha Rao wrote:

Hi Chris, thanks for the comments. I thought since we have singleton class and creating a connection object there, we will be reusing the same connection object for all database operations. May be my thinking is not correct. Do you suggest I just create the DataSource object in the private constructor and then get connection object from the datasource when doing a 
database query/update opeartions? Yes, I will make sure I close the stmt and connection objects.


-
private static DataSource ds = null;

private DBManager() throws Exception
{
   Context init = new InitialContext();
   Context ctx = (Context) init.lookup(java:comp/env);
   ds = (DataSource) ctx.lookup(jdbc/jalasevaDB);
   
}


And then, for example, in a method to do query, 


myCon = ds.getConnection();
stmt = myCon.createStatement();

And then close the stmt and mycon.
---

What would be the effect of calling 'ds.getConnection()' for every database 
operation?

Thanks again for your guidance,
Seetha


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 23, 2006 8:04 PM
To: [EMAIL PROTECTED]
Cc: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Tomcat fails to refresh connections when mySQL server on
linux is shutdown and restarted


Seetha,

 


To answer Tim's question, we are not explicitly closing connection
and statement objects as the context xml has these resource parameters.

removeAbandoned=true
removeAbandonedTimeout=60
logAbandoned=true
   



This probably means that you are leaking every single connection. :(

 


Shouldn't DBCP take care of creating new connection if the connection
object is stale?
   



You will be creating new Connection objects all the time -- basically
you'll never re-use a database connection, making the pool completely
irrelevant; you may as well call DriverManager.getConnection each time
you need to make a SQL query.

Even if DBCP /does/ clean up after you, you /really/ need to call
close on your statement, resultset, and connection objects in finally
blocks in your code. If you don't, your code will probably not work
if/when you switch to another connection pool, another app server,
another database, etc.

Most databases allocate lots of memory for each database connection on
the server side, which means that every useless connection you have
waiting around to be cleaned up by DBCP will be taking up memory on your
database server that could be used to serve actual requests.

Whether this solves your original problem or not, you definitely need to
modify your code to close all of those objects.

-chris




-
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: Can't figure out directory structure (again:-(

2006-07-24 Thread David Smith
According to the configurations you posted, the full path of your login 
servlet is /smsinfo/smsinfo/login.  I doubt that was what you were 
really after.  The URL mapping in web.xml is relative to the webapp, not 
the root.


Also, if this is tomcat 5.x, you should put your Context definition in 
it's own xml file in conf/Catalina/localhost.  Context definitions in 
server.xml is discouraged in newer tomcat versions.


--David

aladdin wrote:


I had this all working with some basic jsp pages and a (one) servlet.  I went
to continue to build on my application, and all of a sudden, it broke again.

I changed a lot of code (html, jsp, and java), but none of the configuration 
files,
I don't think (but, you know how that goes).  All of a sudden, it can't find the
requested resource.  It gets through apache (so I'm assuming the workers
stuff is OK), and the message comes from tomcat.  The problem starts on a
jsp login page where the germane element is:

form name=loginForm method=post action=/smsinfo/login
   !--   rest of stuff in form  --
/form

Here is the germane part of the server.xml file:
---

 Host name=localhost appBase=/var/www/webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false

Context path=/smsinfo
 docBase=smsinfo
 crossContext=true
 reloadable=true

Resource name=jdbc/smsinfo auth=Container 
type=javax.sql.DataSource
   maxActive=20 maxIdle=5 maxWait=1 username=anw
   password=anw111 driverClassName=com.mysql.jdbc.Driver
   
url=jdbc:mysql://localhost:3306/smsinfo?autoReconnect=true/
   /Context

 /Host
-

Here is the web.xml file:
-
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

web-app

 !-- First, let's define the servlets and their mappings --
 !-- User authentication and validation --
 servlet
 servlet-namelogin/servlet-name
 servlet-classUserConfig.login/servlet-class
 /servlet
 servlet-mapping
 servlet-namelogin/servlet-name
 url-pattern/smsinfo/login/url-pattern
 /servlet-mapping

/web-app
---

The login class in question is located in
/var/www/webapps/smsinfo/WEB-INF/classes/UserConfig/login.class.

This whole directory thing and where to find stuff with tomcat and apache
is getting very frustrating.

Thanks for any help!
anw


-
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: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28

2006-07-24 Thread Pid
Have you got useNaming=true enabled in your context.xml, or server.xml
Context element?



Seetha Rao wrote:
 Thanks, but got the same exception.
 
 -Original Message-
 From: Vivek Mohan [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 24, 2006 4:16 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: java:comp/UserTransaction NameNotFoundException Tomcat
 5.0.28
 
 
 sorry, I meant, java:comp/env/UserTransaction
 
 --
 Vivek.
 
 On 7/24/06, Vivek Mohan [EMAIL PROTECTED] wrote:
 try using java:comp/env.UserTransaction for JNDI lookup.

 --
 Vivek.

 On 7/24/06, Seetha Rao [EMAIL PROTECTED] wrote:
 Hi I'm using JOTM for transaction management with Tomcat 5.0.28. I have
 all
 the required jar files as given in
 http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html The
 JNDI
 look up throws the following exception:

 Here is the code:

 Context ctx = new InitialContext();
 UserTransaction userTx =
 (UserTransaction)ctx.lookup(java:comp/UserTransaction);

 The Entry in the mywebapp.xml file:

 Resource name=UserTransaction auth=Container
 type=javax.transaction.UserTransaction /
 ResourceParams name=UserTransaction
 parameter
   namefactory/name
   valueorg.objectweb.jotm.UserTransactionFactory/value
   /parameter
 parameter
   namejotm.timeout/name
   value60/value
 /parameter
 /ResourceParams

 Exception:
 javax.naming.NameNotFoundException
 at

 org.objectweb.carol.jndi.enc.java.CompNamingContext.lookupCtx(CompNamingCont
 ext.java:689)
 at

 org.objectweb.carol.jndi.enc.java.CompNamingContext.lookup(CompNamingContext
 .java:179)
 at

 org.objectweb.carol.jndi.enc.java.JavaURLContext.lookup(JavaURLContext.java:
 138)
 at javax.naming.InitialContext.lookup(Unknown Source)
 at
 com.vcbp.struts.action.InsertuserAction.execute(InsertuserAction.java:81)
 at

 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
 sor.java:484)
 at

 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 at javax.servlet.http.Http

 Could anyone give me home hints?

 Thanks
 Seetha


 -
 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 is your life and it's ending one minute at a time.

 
 
 --
 This is your life and it's ending one minute at a time.
 
 -
 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: Some tomcat config questions

2006-07-24 Thread Mark Thomas
Stuart Fox wrote:
 ciphers=SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA

You need 4.1.32 for the ciphers parameter to take effect.

 Second it says I have UserDir enabled (like apache mod_userdir I assume) but 
 again I cant find a way to disable it

Remove the UserConfig listener from you host. See User Web
Applications in
http://tomcat.apache.org/tomcat-4.1-doc/config/host.html

 Third if I telnet to port 80 and issue GET / HTTP/1.0 the Location header 
 contain the local ip address not the public one, It's sat behind a firewall.
 I tried the server=external ip in each connector but I still get the 
 internal ip address returned, any way to fix it?

Not something I have ever done (or tested) but proxyName on the
connector looks like what you want.

 Lastly (I think) the version header is always Apache-Coyote/1.1, any way to 
 change it to Coyote easily?

Set the server parameter on each connector.

HTH,

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: Some tomcat config questions

2006-07-24 Thread David Smith

Third if I telnet to port 80 and issue GET / HTTP/1.0 the Location header 
contain the local ip address not the public one, It's sat behind a firewall.
I tried the server=external ip in each connector but I still get the internal 
ip address returned, any way to fix it?


If you want to bind tomcat to a specific IP, use the address=1.2.3.4 
attribute in the connector.


--David

Stuart Fox wrote:


Hi

First post so be kind :)

I've just run a nessus scan against one of our servers running tomcat 4.1.30 
standalone on linux and its highlighed a few problems that I cant find config 
options for.

First off is weak ssl ciphers, I've currently got 


protocol=SSLv3
ciphers=SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA

For eash ssl connector as suggested here 
http://www.nabble.com/SSL-Server-Supports-Weak-Encryption-Vulnerability-t1843999.html
However, nessus still says it supports weak ciphers. What have I missed?

Second it says I have UserDir enabled (like apache mod_userdir I assume) but 
again I cant find a way to disable it

Third if I telnet to port 80 and issue GET / HTTP/1.0 the Location header 
contain the local ip address not the public one, It's sat behind a firewall.
I tried the server=external ip in each connector but I still get the internal 
ip address returned, any way to fix it?

Lastly (I think) the version header is always Apache-Coyote/1.1, any way to change it 
to Coyote easily?

Thanks in advance!

Cheers

Stuart

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify netXtra Ltd. Please note 
that any views or opinions presented in this email are solely those of the 
author and do not necessarily represent those of the company. This email or any 
attachments do not constitute an offer. The contents of this e-mail and any 
attachments may contain viruses that could damage your own computer systems.  
Whilst netXtra Ltd has taken every precaution to minimise this risk, we cannot 
accept liability for any damage that you may sustain as a result of viruses


-
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: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28

2006-07-24 Thread Seetha Rao
I don't have that enabled. Isn't it by default set to true?
Here is my context element.

Context path=/virtualcbp docBase=virtualcbp debug=5 reloadable=true
crossContext=true

-Original Message-
From: Pid [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 5:07 PM
To: Tomcat Users List
Subject: Re: java:comp/UserTransaction NameNotFoundException Tomcat
5.0.28


Have you got useNaming=true enabled in your context.xml, or server.xml
Context element?



Seetha Rao wrote:
 Thanks, but got the same exception.

 -Original Message-
 From: Vivek Mohan [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 24, 2006 4:16 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: java:comp/UserTransaction NameNotFoundException Tomcat
 5.0.28


 sorry, I meant, java:comp/env/UserTransaction

 --
 Vivek.

 On 7/24/06, Vivek Mohan [EMAIL PROTECTED] wrote:
 try using java:comp/env.UserTransaction for JNDI lookup.

 --
 Vivek.

 On 7/24/06, Seetha Rao [EMAIL PROTECTED] wrote:
 Hi I'm using JOTM for transaction management with Tomcat 5.0.28. I have
 all
 the required jar files as given in
 http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html The
 JNDI
 look up throws the following exception:

 Here is the code:

 Context ctx = new InitialContext();
 UserTransaction userTx =
 (UserTransaction)ctx.lookup(java:comp/UserTransaction);

 The Entry in the mywebapp.xml file:

 Resource name=UserTransaction auth=Container
 type=javax.transaction.UserTransaction /
 ResourceParams name=UserTransaction
 parameter
   namefactory/name
   valueorg.objectweb.jotm.UserTransactionFactory/value
   /parameter
 parameter
   namejotm.timeout/name
   value60/value
 /parameter
 /ResourceParams

 Exception:
 javax.naming.NameNotFoundException
 at


org.objectweb.carol.jndi.enc.java.CompNamingContext.lookupCtx(CompNamingCont
 ext.java:689)
 at


org.objectweb.carol.jndi.enc.java.CompNamingContext.lookup(CompNamingContext
 .java:179)
 at


org.objectweb.carol.jndi.enc.java.JavaURLContext.lookup(JavaURLContext.java:
 138)
 at javax.naming.InitialContext.lookup(Unknown Source)
 at
 com.vcbp.struts.action.InsertuserAction.execute(InsertuserAction.java:81)
 at


org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
 sor.java:484)
 at


org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 at javax.servlet.http.Http

 Could anyone give me home hints?

 Thanks
 Seetha


 -
 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 is your life and it's ending one minute at a time.



 --
 This is your life and it's ending one minute at a time.

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


-
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 fails to refresh connections when mySQL server on linux is shutdown and restarted

2006-07-24 Thread Seetha Rao
Thanks David for the inputs. I will do the same. This might fix my original 
problem aslo, I will try.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat fails to refresh connections when mySQL server on
linux is shutdown and restarted


Best practice is to store the DataSource, not the connections in your 
singelton class.  Then get a connection, perform your queries, and close 
the connection immediately.  The pool will take care of managing the 
connections including creating new ones when existing connections die 
which happens when the database server is restarted.

--David

Seetha Rao wrote:

Hi Chris, thanks for the comments. I thought since we have singleton class and 
creating a connection object there, we will be reusing the same connection 
object for all database operations. May be my thinking is not correct. Do you 
suggest I just create the DataSource object in the private constructor and 
then get connection object from the datasource when doing a 
database query/update opeartions? Yes, I will make sure I close the stmt and 
connection objects.

-
private static DataSource ds = null;

private DBManager() throws Exception
{
Context init = new InitialContext();
Context ctx = (Context) init.lookup(java:comp/env);
ds = (DataSource) ctx.lookup(jdbc/jalasevaDB);

}

And then, for example, in a method to do query, 

myCon = ds.getConnection();
stmt = myCon.createStatement();

And then close the stmt and mycon.
---

What would be the effect of calling 'ds.getConnection()' for every database 
operation?

Thanks again for your guidance,
Seetha


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 23, 2006 8:04 PM
To: [EMAIL PROTECTED]
Cc: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Tomcat fails to refresh connections when mySQL server on
linux is shutdown and restarted


Seetha,

  

To answer Tim's question, we are not explicitly closing connection
and statement objects as the context xml has these resource parameters.

removeAbandoned=true
removeAbandonedTimeout=60
logAbandoned=true



This probably means that you are leaking every single connection. :(

  

Shouldn't DBCP take care of creating new connection if the connection
object is stale?



You will be creating new Connection objects all the time -- basically
you'll never re-use a database connection, making the pool completely
irrelevant; you may as well call DriverManager.getConnection each time
you need to make a SQL query.

Even if DBCP /does/ clean up after you, you /really/ need to call
close on your statement, resultset, and connection objects in finally
blocks in your code. If you don't, your code will probably not work
if/when you switch to another connection pool, another app server,
another database, etc.

Most databases allocate lots of memory for each database connection on
the server side, which means that every useless connection you have
waiting around to be cleaned up by DBCP will be taking up memory on your
database server that could be used to serve actual requests.

Whether this solves your original problem or not, you definitely need to
modify your code to close all of those objects.

-chris




-
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: Performance issue with jakarta POI

2006-07-24 Thread Ronald Klop

This has nothing todo with Tomcat, but I propose you make a standalone 
application doing this and then using a profiler on it.

Ronald.


On Thu Jul 20 15:17:34 CEST 2006 Tomcat Users List users@tomcat.apache.org 
wrote:

Hi,

I am building xls with jakarta POI by fetching the records from database.

There are 30K records fetched from DB. 
Process takes 40 min to complete.

Any best practises on using POI api to improve the performance.

I dont see issue with the query as 
The query is very simple , it is just select from the table.
Explain plan on the query is good... no FTS ... all indexes used proporly 


Thanks


-
Find out what India is talking about on Yahoo! Answers India.


Forrest war file problem with Tomcat!

2006-07-24 Thread G.Verhaag
Dear Tomcat users,

I'm experiencing trouble using Tomcat after having deployed a war file using 
Tomcat Manager. I generated the war file with the 'forrest war' command!

The deployment seems to be ok, no errors visible from Tomcat Manager.

The site is accessible after the deployment but after a restart of Tomcat the 
entry http://localhost:8080 in my browser results in a: The page cannot be 
displayed; and nothing works anymore!

I use the Apache Tomcat/5.5.14 Server in combination with JVM 1.5.0_06-b05.

Could someone give me some guidance in this?

Regards,

Verhaag, Gerard C.H.M.,



Multiple security-constraint elements

2006-07-24 Thread scw . tomcat
I am trying to set up restricted access to several folders within the =
same engine context.

I have a web.xml file within the WEB-INF folder, and can get a single =
security constraint to work OK.  When I try and set up a second one, =
nothing happens, and the second constraint is never respected.

The current web.xml is pasted below.
?xml version=3D1.0 encoding=3DISO-8859-1?

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD =
WebApplication 2.3//EN

http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

security-constraint

display-nameLogin for Admin Privileges/display-name

web-resource-collection

web-resource-nameAdmin Group Access/web-resource-name

url-pattern/admin/*/url-pattern

/web-resource-collection

auth-constraint

role-nameadmin/role-name

/auth-constraint

/security-constraint

security-constraint

display-nameLogin for Family CUG/display-name

web-resource-collection

web-resource-nameDiane's Poetry Data/web-resource-name

url-pattern/poetry/*/url-pattern

url-pattern/family/*/url-pattern

/web-resource-collection

auth-constraint

role-namefamily/role-name

/auth-constraint

/security-constraint

login-config

auth-methodBASIC/auth-method

realm-nameRestricted Access/realm-name

/login-config

security-role

descriptionThis role includes all members permitted to perform =
admin tasks/description

role-nameadmin/role-name

/security-role

security-role

descriptionThis role describes CUG of family members/description

role-namefamily/role-name

/security-role

/web-app

Any suggestions, please...

Steve



-
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.LinkageError: Class soap/xsd/CompanyInfo violates loader constraints

2006-07-24 Thread Martin Gainty
Good Morning Luis-

1)
I fed your WSDL into validator located here 
http://www.mgateway.com/scripts/mgwms32.dll?MGWLPN=EXTCwlapp=wsdlValidatoreXtcCalledFrom=MGateway
so ..the good news is that the definition for companyInfo looks valid

2)
ClassLoader delegation-
Straight from the doc at
http://docs.sun.com/app/docs/doc/819-2556/6n4rap8qm?a=view

Servlet specification recommends that the Web Classloader look in the local 
class loader before delegating to its parent. To make the Web Classloader 
follow the delegation model in the Servlet specification, set delegate=false 
in the class-loader element of the sun-web.xml file. It's safe to do this only 
for a web module that does not interact with any other modules.
The default value is delegate=true, which causes the Web Classloader to 
delegate in the same manner as the other classloaders. Use delegate=true for 
a web application that accesses EJB components or that acts as a web service 
client or endpoint. For details about sun-web.xml, see The sun-web.xml File.

from the doc if your webapp is standalone set delegate = false
If it's accessing EJB components or is a webservice client and or endpoint 
delegate = true
I defer to the sun application server site for accuracy on configuration and 
installation details

3)
JNI:
I *assume* you are attempting to build and configure your own mod_jk worker?
http://tomcat.apache.org/connectors-doc/install/apache2.html
This is system related stuff which assumes you are backing up your current 
installation beforehand
and using Platform specific utilities (cl/gcc/iSeries) to essentially make your 
platform-specific binaries
The important point here is to use the platform specific 
install/configuration/compile scripts which are blesses by the platform's 
vendor-

HTH,
M-

*
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: Luis Rivera 
  To: Raju Balugu 
  Cc: Tomcat Users List 
  Sent: Monday, July 24, 2006 5:18 AM
  Subject: Re: java.lang.LinkageError: Class soap/xsd/CompanyInfo violates 
loader constraints



Dear Raju and Martin,

  First of all, thanks a lot for the replies. I do appreciate it. I am 
including the WSDL so you can take a look if you have a chance. I will post it 
over the axis lists very soon. 

  Martin: 
  1) I don't think it is the WSDL, because as you could appreciate in the WSDL, 
it is defined. Also, if I have all the application inside 
webapps/axis/WEB-INF/classes, it works! But as soon as I take the class that 
load the JNI DLL to the common/classes or shared/classes directories, then I 
run into the trouble with the class loaders. First I noticed that the errors 
were due to classes I did not copy to the common directory (CompanyInfo), so I 
did and the error changed to what LinkageError. 

  2) Regarding the class loading model. I understand why it is recommended, but 
is it possible to change it? The reason I ask is because I found on the web an 
email from a guy with the same exception, but using  J2EE and he said that by 
setting the delegation to true in the sun-web.xml file, the problem was 
solved!!!

  3) Could you let me know which libraries are you talking about? The 
bootstrap.jar file under the TOMCAT_HOME/bin directory?

  Raju:

  I am using the common/classes, after migrating from the shared/classes 
directory, thinking that might solve the problem, but no luck. Both of those 
directories are defined for the common and shared loader respectively in the 
catalina.properties directory. Let me just try to illustrate what I am trying 
to do:

  CRLImpl.java: Entry point, file generated by WSDL2Java (inside 
webapps/axis/WEB-INF/classes)

   void getCompany(CompanyInfoHolder company, StringHolder result) 
   {
 crl.nada(company, result);
   }

  jniCRLimpl.java: jni wrapper that will load the crl.DLL library (inside 
common/classes)

   void nada(CompanyInfoHolder company, StringHolder result) 
   {
company.value = new soap.xsd.CompanyInfo(); // The problem comes 
here !!!

   }

  This exact same code, works if all is located under 
webapps/axis/WEB-INF/classes, but as the TOMCAT documentation lets me know, I 
have to take the jniCRLimpl.java to the shared or common directory to prevent 
TOMCAT from trying to load my DLL more than once.

 Thanks again and in advance for any pointer you all can give me,
 --Luis R.


  On 7/23/06, Raju Balugu [EMAIL PROTECTED] wrote:
Hi ,

How you are loading the outside(which are not there in classpath) jars and 
classes in tomcat? try to load the outside jar and 

Re: Restart web app

2006-07-24 Thread Martin Gainty
http://www.javacamp.org/scwcd/scwcdnotes.html
topic: ServletReloading (more specifically.. reasons causing a reload of your 
webapp)

HTH
M-
*
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: asaf.lahav [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Monday, July 24, 2006 5:19 AM
Subject: Restart web app


 Where can I find code to perform a restart (or stop and then start) of a web
 application?
 
 Thank in advance,
 Asaf
 
 
 -
 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: out of memory error

2006-07-24 Thread Cosio, Raul
This link may help...

http://tomcat.apache.org/faq/memory.html


-Original Message-
From: Shinya Koizumi [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 20 de Julio de 2006 07:10 p.m.
To: Tomcat Users List
Subject: Re: out of memory error


One of solution for out of memory problem is to upgrade to Java 1.5

SK

- Original Message -
From: MW Janssen [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Wednesday, July 19, 2006 8:39 AM
Subject: RE: out of memory error



 i dont see a memory tab when i right click..

 -Oorspronkelijk bericht-
 Van: Propes, Barry L [mailto:[EMAIL PROTECTED]
 Verzonden: woensdag 19 juli 2006 17:32
 Aan: Tomcat Users List
 Onderwerp: RE: out of memory error

 possibly like I (incorrectly, because he was on UNIX) told a guy the other
 day.

 Go to startup.bat, right click and change (under the Memory tab)
properties
 in the Initial Environment box from Auto to 4096 or higher.

 -Original Message-
 From: MW Janssen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 19, 2006 9:01 AM
 To: 'Tomcat Users List'
 Subject: RE: out of memory error


 Guys,

 I am on a Windows NT platform so not Unix..solution?

 Maarten

 -Oorspronkelijk bericht-
 Van: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Verzonden: woensdag 19 juli 2006 15:57
 Aan: Tomcat Users List
 Onderwerp: Re: out of memory error

 On 7/19/06, Jon Wingfield [EMAIL PROTECTED] wrote:
  The process running tomcat can't (read isn't allowed by OS) to create
  any more threads:
 
  java.lang.OutOfMemoryError: unable to create new native thread
 
  If you are on unix you can up the number by tinkering with the ulimit
  command.

 but if you are on 2.4.x kernel, you're lost, since it can't create many
 threads (max 500-600).

 leon

 
  HTH,
 
  Jon
 
  MW Janssen wrote:
   Hi,
  
   Can anyone explain and suggest a solution on error below:
  
   Jul 19, 2006 12:49:18 PM
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
   SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to
   create new native thread) executing HYPERLINK
   mailto:[EMAIL PROTECTED]
   org.apa [EMAIL PROTECTED],
   terminating thread Jul 19, 2006 1:25:30 PM
   org.apache.coyote.http11.Http11Protocol pause
   INFO: Pausing Coyote HTTP/1.1 on http-80 Jul 19, 2006 1:25:31 PM
   org.apache.catalina.core.StandardService stop
   INFO: Stopping service Tomcat-Standalone Jul 19, 2006 1:25:32 PM
   org.apache.catalina.core.ApplicationContext log
   INFO: action: Finalizing this controller servlet Jul 19, 2006
   1:25:32 PM org.apache.catalina.core.StandardWrapper unload
   INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
   1:25:33 PM org.apache.catalina.core.StandardWrapper unload
   INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
   1:25:34 PM org.apache.catalina.core.StandardWrapper unload
   INFO: Waiting for 3 instance(s) to be deallocated Jul 19, 2006
   1:25:34 PM org.apache.catalina.core.ApplicationContext log
   INFO: action: Finalizing this controller servlet Jul 19, 2006
   1:25:34 PM org.apache.coyote.http11.Http11Protocol destroy
   INFO: Stopping Coyote HTTP/1.1 on http-80
  
   Regards,
  
   Maarten Janssen
  
  
 
 
 
  -
  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]

 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-2006


 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-2006



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

 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-2006


 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-2006



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






Possible conflict between the build.xml and the mx4j-3.0.1.tar.gz

2006-07-24 Thread Rao Jianguo

Dear all,

I failed to build tomcat version 5.5.17 on Linux.

Everything seems fine until.


downloadgz:
 [get] Getting: 
http://switch.dl.sourceforge.net/sourceforge/mx4j/mx4j-3.0.1.tar.gz

 [get] To: /export/data0/user/TOMCAT/usr/share/java/file.tar.gz
 [get] Error getting 
http://switch.dl.sourceforge.net/sourceforge/mx4j/mx4j-3.0.1.tar.gz to 
/export/data0/user/TOMCAT/usr/share/java/file.tar.gz


BUILD FAILED
/export/data0/user/TOMCAT/apache-tomcat-5.5.17-src/build.xml:48: The 
following error occurred while executing this line:
/export/data0/user/TOMCAT/apache-tomcat-5.5.17-src/build/build.xml:1910: 
The following error occurred while executing this line:
/export/data0/user/TOMCAT/apache-tomcat-5.5.17-src/build/build.xml:1992: 
java.net.NoRouteToHostException: No route to host



I have trace the reason as:

The http://switch.dl.sourceforge.net/sourceforge/mx4j/mx4j-3.0 has 
moved to other places as indicated by the following file:



!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title302 Found/title
/headbody
h1Found/h1
pThe document has moved a 
href=http://prdownloads.sourceforge.net/mx4j/mx4j-3.0?downloadamp;failedmirror=switch.dl.sourceforge.n

ethere/a./p
hr
addressApache/2.0.54 (Debian GNU/Linux) Server at 
switch.dl.sourceforge.net Port 80/address

/body/html

Anyone there can resolve my problem?
Your help, suggestions are highly appreciated.

Jianguo






-
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: Restart web app

2006-07-24 Thread asaf.lahav
I apologize,
I had no idea this is the effect. 

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 12:55 PM
To: Tomcat Users List
Subject: Re: Restart web app

When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner


-
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: BOOBIES!

2006-07-24 Thread Harris, Thomas

I sent the original message, with an appropriate subject, over two weeks
before the plea for attention follow-up with the very offensive subject.
The original subject was Shared code but different pages on different
virtual hosts? We're on a really tight schedule, and having waited two
weeks for any answer was no longer something we could do, so my boss
actually suggested getting a little attention on the message via this
silly stunt.

So, I did get some help on the topic in question, and lots more besides,
It's was quite fun actually, reading some of the silliness that this one
word has spawned. Someone mentioned the Superbowl of 2004, and I concur.

Let's put this to rest... What can be gained by continuing on and on
about how horribly offensive this subject line is.

Tom

-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 23, 2006 8:26 AM
To: Tomcat Users List; Tomcat Users List
Subject: RE: BOOBIES!

Like many I've resisted this thread because I figured it would be
STUPID! STUPID, YES I SAID STUPID. Did that get your attention?

Now let me ask: how many people read threads here whose subject is in
caps followed by an explanation point? And what does that subject
usually say? Something like HELP, TOMCAT DONT WORK, a type of spam or
something similar. I almost always skip those messages. Some people have
more patience than I and so do end up helping someone who has gotten
desperate. More experienced users know that they're much more likely to
get an answer to their question by choosing a more informative and less
excited subject.

So what does someone think when they see BOOBIES! and what did the
author of that message think that they would think? Well I have little
doubt that they expected anyone to think of birds and I doubt that that
was the first reaction of any reader no matter how avid a birder. So I
have a very hard time believing that the author had any intent other
than to get a reaction of some sort from readers who saw the subject and
didn't think bird. I don't think this has anything to do with puritanism
or political correctness. I can't think of anything I like much less
than political correctness. But it's very hard to see this as having
anything to do with political correctness. To me it's just someone
trying to be clever and then trying to cover their tracks when they find
out that many uses don't actually find it clever. ENOUGH SAID!




-Original Message-
From: Robert Koberg [mailto:[EMAIL PROTECTED]
Sent: Sun 7/23/2006 7:28 AM
To: Tomcat Users List
Subject: Re: BOOBIES!
 
Wow... how do some people make it through the day without exploding from
some terrible insult.

I can't believe this thread subject has turned into such a big deal. I
deleted the first 5 or so because I thought it was spam. Then I saw
names responding which I recognized.

I really don't understand how someone can be offended by a word like
'boobies' and can still use the Internet, or real life for that matter.

grow up and grow a skin... Dantes Inferno invoked for using the word
'boobies.' The road to hell is paved with...



Dakota Jack wrote:
 Golly, Charles,
 
 Maybe you need some training?  Maybe you are the one who does not get
the
 point?  If you think I am going to apologize for your taking a serious

 topic
 that hurts people and covering it with your inane indifference, you 
 might be
 wrong.  The worst people are not the haters, although they are bad
enough,
 the worst people are the indifferent.  If you read Dantes Inferno you
will
 find the colder the heart, the more the indifference, the lower your
level
 in hell.  Understand?
 
 On 7/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Thank you. I was caught up in a witch hunt and feel undeservedly
bashed
 over my attempt to inject some light-hearted  jest into an overheated
 atmosphere. Plainly the poster who calls him or herself Dakota Jack

 didn't
 view the link. He or she had already made up his or her mind and 
 couldn't be
 bothered with facts.

 For those of you didn't see the link, it was a photo of a bird (not
 engaged in a sexual or excretory function of patently offensive
nature)
 native to the Galapagos Islands. It has blue feet and is commonly 
 called a
 Blue-footed booby.

 I await Dakota Jack's apology.
 -- 
 Charles Knell
 [EMAIL PROTECTED] - email



-
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 communication is intended solely for the addressee and is confidential 
and not for third party unauthorized distribution

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



ClassNotFound - Is WEB-INF/lib in my app's classpath?

2006-07-24 Thread Darren Hall
Ok, I've deployed my application in Tomcat 5.5 on Solaris using the war
deploy feature in the manager.

The application (lets call it 'foo') shows up in the manager as '/foo', so I
know that it deploys. When I look in catalina.log, I see a ClassNotFound
exception, alerting me that the ClassLoader wasn't able to find my
ControllerServlet class. Here is the error from Catalina.log:

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Sending application start events
2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Starting filters
2006-07-24 09:38:47,002 INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Marking servlet controller as unavailable
2006-07-24 09:38:47,002 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - Error
loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
 com.abc.framework.controller.ControlServlet
java.lang.ClassNotFoundException:
com.abc.framework.controller.ControlServlet

My ControlServlet class is located in this jar file
webapps/foo/WEB-INF/lib/abc.jar in the package
com.abc.framework.controller;.

Are the jar files in WEB-INF/lib included in my application's classpath by
default? Do I need to make a classpath change somewhere? Is the fact that
WEB-INF/lib not show up in the repositories listing above meaningful?

Why can't Tomcat's classloader find my ControlServlet class?

Thanks,

Darren


-
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: Setting heap once the tomcat JVM is started

2006-07-24 Thread Ryan Daly
Martin Gainty wrote:
 Ryan--
 
 Here is the policy setting I have in my %TOMCAT_HOME%/conf/catalina.policy
 // These permissions apply to the commons-logging API
 grant codeBase file:${catalina.home}/bin/commons-logging-api.jar {
 permission java.security.AllPermission;
 };
 
 HTH,
 Martin --

That entry is already in the catalina.policy file.
--

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



Xorg vs XFree86

2006-07-24 Thread Richard Ehrlich
I want to install tomcat 5.5. I see references in the requirements to 
XF86 and its fonts. I installed freeBSD 6.1 with the default X11 
install (Xorg). Do I need to deinstall Xorg and install XF86?



-
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: Xorg vs XFree86

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Richard Ehrlich [EMAIL PROTECTED] wrote:

I want to install tomcat 5.5. I see references in the requirements to
XF86 and its fonts.


?? where?

--
Hassan Schroeder  [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: BOOBIES!

2006-07-24 Thread Propes, Barry L
the interesting thing to me was that I chalked it up as spam right away, as I 
get similar junk emails on a daily basis.

 I figured it was one that snuck through, so I deleted it almost instantly, 
rather than gaze at it.

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 22, 2006 9:03 AM
To: Tomcat Users List
Subject: Re: BOOBIES!


Could this person (inject other undesirable word) please consider the
fact that women are in the user's group also.  

--

I fail to see any reason for the subject. It is not spam and it is a real 
question and it is not an accidental reply to some other message.

This is bizarre.

Nix.




-
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: tomcat stops and give the error......

2006-07-24 Thread Propes, Barry L
looks like a memory leak of some kind?

-Original Message-
From: bhavik shah [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 22, 2006 12:39 PM
To: users@tomcat.apache.org
Subject: tomcat stops and give the error..


hi i have tomcat 4.1 sometimes it stops and give the error belo

20:08:51,549 ERROR [Resource Housekeeper]
com.documentum.fc.client.DfSessionManager$DfSessionManagerDisposableResource-
DFC_BOF_SESSION_LEAK| Unreleased session found in finalize
docbase=phred_prd, refCounter=3, transFlag=false Session =
[EMAIL PROTECTED].

20:08:51,640 ERROR [Resource Housekeeper]
com.documentum.fc.client.DfSessionManager$DfSessionManagerDisposableResource-
DFC_BOF_SESSION_LEAK| Unreleased session found in finalize
docbase=phred_prd, refCounter=2, transFlag=false Session =
[EMAIL PROTECTED].

Stopping service Tomcat-Standalone



any body has any idea?



thanks

-
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 Memory Status?

2006-07-24 Thread Propes, Barry L
MB Not GB? How are you even running Win 95 with 63.56MB? That's not enough 
swap space for anything is it?

-Original Message-
From: Gamigin Gamigin [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 22, 2006 5:13 PM
To: users@tomcat.apache.org
Subject: Tomcat Memory Status?


I've been having OutOfMemory problems and I've been watching the
Server Status section under Tomcat Manager. Immediately after
starting Tomcat (with my main application undeployed) I see:

Free memory: 2.17 MB Total memory: 5.84 MB Max memory: 63.56 MB

Can anyone explain what these numbers mean? I can't find any
explanation in the Tomcat documentation. What is the difference
between Total memory and Max memory? Free memory is a lot lower than
expected for just starting the server. I can't only have 2MB available
after starting the server and not even running my application.

-
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: Load Balance not working for mod_jk???

2006-07-24 Thread Patrick Wang
Thanks for the info.

However my Apache log did not log any information listed below.

I checked both error_log and access_log information. There seems that you can
setup the log level for error_log using flags like info/debug.

However there is not such as place for the access_log, can anybody shed some
light on? My Apache version is 2.5.0.24.

Attached my part of the httpd.conf.


ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel debug

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
combined
LogFormat %h %l %u %t \%r\ %s %b common
LogFormat %{Referer}i - %U referer
LogFormat %{User-agent}i agent

# combinedio includes actual counts of actual bytes received (%I) and sent
(%O); this
# requires the mod_logio module to be loaded.
#LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ %I %O
combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a VirtualHost
# container, they will be logged here.  Contrariwise, if you *do*
# define per-VirtualHost access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined



-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 11:15 PM
To: Tomcat Users List
Subject: Re: Load Balance not working for mod_jk???

When you are starting or restarting Apache it should log a line similar 
to the following:

[Sat Jul 22 07:59:41 2006] [notice] Apache/2.0.58 (Unix) DAV/2 
mod_jk/1.2.15 configured -- resuming normal operations

It includes the mod_jk version (mod_jk/1.2.15).

The same should be found via

myserver% strings PATH_TO_MOD_JK/mod_jk.so | grep mod_jk/1.2

 From your log output and a look at the revision history your version is 
most likely 1.2.6. You really should download a new one and build it via 
configure/make.

Rainer

Patrick Wang wrote:
 Things worked after I modify the workers.properties to use
 Worker.router.balanced_workers
 Instead of
 Worker.router.balance_workers
 
 Based on the TOMCAT documentation the balance_workers should be used instead
of
 the balanced_workers after MOD_JK version 1.2.7.
 
 
 Did anybody know how to check the version of the MOD_JK?
 
 Thanks
 Pat
 
 -Original Message-
 From: Patrick Wang [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 21, 2006 11:55 AM
 To: 'Tomcat Users List'
 Subject: RE: Load Balance not working for mod_jk???
 
 Thanks for the info.
 
 The latest binary download 1.2.15 for Linux on tomcat website indicate the
 latest version is 1.2.14.
 
 
 Attach a log, it looks like the balance worker router is found, why it tried
to
 connect port 8007, it suppose to delegate the work to TOMCAT_INSTANCE1 which
 listen on port 8009 or TOMCAT_instance2 which listen on port 8010.
 
 
 Thanks
 Pat
 
 [Fri Jul 21 11:47:05 2006]  [jk_uri_worker_map.c (459)]: Attempting to map URI
 '/ucdiscovery'
 [Fri Jul 21 11:47:05 2006]  [jk_uri_worker_map.c (473)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found an exact match router -
 /ucdiscovery
 [Fri Jul 21 11:47:05 2006]  [mod_jk.c (1689)]: Into handler r-proxyreq=0
 r-handler=jakarta-servlet r-notes=165738416 worker=router
 [Fri Jul 21 11:47:05 2006]  [jk_worker.c (90)]: Into wc_get_worker_for_name
 router
 [Fri Jul 21 11:47:05 2006]  [jk_worker.c (94)]: wc_get_worker_for_name, done
 found a worker
 [Fri Jul 21 11:47:05 2006]  [mod_jk.c (472)]: agsp=80 agsn=ea hostn=ea
 shostn=ea.iucrp.org cbsport=0 sport=0 
 [Fri Jul 21 11:47:05 2006]  [jk_ajp12_worker.c (201)]: Into
 jk_worker_t::get_endpoint
 [Fri Jul 21 11:47:05 2006]  [jk_ajp12_worker.c (96)]: Into
 jk_endpoint_t::service
 [Fri Jul 21 11:47:05 2006]  [jk_connect.c (136)]: Into jk_open_socket
 [Fri Jul 21 11:47:05 2006]  [jk_connect.c (143)]: jk_open_socket, try to
connect
 socket = 14 to 127.0.0.1:8007
 [Fri Jul 21 11:47:05 2006]  [jk_connect.c (159)]: jk_open_socket, after
connect
 ret = -1
 [Fri Jul 21 11:47:05 2006]  [jk_connect.c (188)]: jk_open_socket, connect()
 failed errno = 111
 
 -Original Message-
 From: Mladen Turk [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 21, 2006 10:45 AM
 To: Tomcat Users List
 Subject: Re: Load Balance not working for mod_jk???
 
 Patrick Wang wrote:
 Thanks for the comments, I checked this carefully several times to make sure
 only 

RE: Adding jars to common classloader via system property?

2006-07-24 Thread Pelenur, Matias
Thank you Raju, I should have seen that! Unfortunately it's not mentioned in 
any of the Tomcat docs or wiki, perhaps some Tomcat owner can update the docs, 
and I'll add something to the wiki.

-matias

 -Original Message-
 From: Raju Balugu [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, July 22, 2006 8:15 AM
 To: Tomcat Users List
 Subject: Re: Adding jars to common classloader via system property?
 
 Add those jar files to catalina.properties under conf 
 directory and try..
 
 On 7/21/06, Pelenur, Matias [EMAIL PROTECTED] wrote:
 
  Hi,
  In Tomcat 5.5, is there any way to add JARs to the common 
 classloader via
  a system property at startup, instead of having to 
 physically place the JARs
  under TOMCAT_HOME/common/lib?
 
  Like most everyone else, I need to put the JDBC driver JAR(s) under
  common/lib for the DBCP libraries to have access to it. 
 However, I am using
  a shared installation of Tomcat and so cannot alter the contents of
  TOMCAT_HOME.
 
  It seems that in previous versions of Tomcat, there was a 
 system property
  org.apache.tomcat.common.classpath that could be used to 
 achieve this,
  but it doesn't seem to be in use anymore in version 5.5.
 
  Thanks,
  Matias
 
  
 -
  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: Xorg vs XFree86

2006-07-24 Thread Richard Ehrlich

Will Tomcat 5.5/freeBSD 6.1 work well with X11/Xorg?

At 11:22 AM 7/24/06, you wrote:

On 7/24/06, Richard Ehrlich [EMAIL PROTECTED] wrote:

I want to install tomcat 5.5. I see references in the requirements to
XF86 and its fonts.


?? where?

--
Hassan Schroeder  [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: Xorg vs XFree86

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Richard Ehrlich [EMAIL PROTECTED] wrote:

Will Tomcat 5.5/freeBSD 6.1 work well with X11/Xorg?


It would take less time to try it than to ask :-)

And I can't imagine what fonts have to do with server software...

--
Hassan Schroeder  [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: Load Balance not working for mod_jk???

2006-07-24 Thread Rainer Jung
It will appear in the error log, so you configured everything that's
needed. What about the strings way of determining the version (the
second option I gave in my previous mail)?

Patrick Wang schrieb:
 Thanks for the info.
 
 However my Apache log did not log any information listed below.
 
 I checked both error_log and access_log information. There seems that you can
 setup the log level for error_log using flags like info/debug.
 
 However there is not such as place for the access_log, can anybody shed some
 light on? My Apache version is 2.5.0.24.
 
 Attached my part of the httpd.conf.
 
 
 ErrorLog logs/error_log
 
 #
 # LogLevel: Control the number of messages logged to the error_log.
 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 #
 LogLevel debug
 
 #
 # The following directives define some format nicknames for use with
 # a CustomLog directive (see below).
 #
 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
 combined
 LogFormat %h %l %u %t \%r\ %s %b common
 LogFormat %{Referer}i - %U referer
 LogFormat %{User-agent}i agent
 
 # combinedio includes actual counts of actual bytes received (%I) and sent
 (%O); this
 # requires the mod_logio module to be loaded.
 #LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ %I 
 %O
 combinedio
 
 #
 # The location and format of the access logfile (Common Logfile Format).
 # If you do not define any access logfiles within a VirtualHost
 # container, they will be logged here.  Contrariwise, if you *do*
 # define per-VirtualHost access logfiles, transactions will be
 # logged therein and *not* in this file.
 #
 #CustomLog logs/access_log common
 
 #
 # If you would like to have separate agent and referer logfiles, uncomment
 # the following directives.
 #
 #CustomLog logs/referer_log referer
 #CustomLog logs/agent_log agent
 
 #
 # For a single logfile with access, agent, and referer information
 # (Combined Logfile Format), use the following directive:
 #
 CustomLog logs/access_log combined
 
 
 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 21, 2006 11:15 PM
 To: Tomcat Users List
 Subject: Re: Load Balance not working for mod_jk???
 
 When you are starting or restarting Apache it should log a line similar 
 to the following:
 
 [Sat Jul 22 07:59:41 2006] [notice] Apache/2.0.58 (Unix) DAV/2 
 mod_jk/1.2.15 configured -- resuming normal operations
 
 It includes the mod_jk version (mod_jk/1.2.15).
 
 The same should be found via
 
 myserver% strings PATH_TO_MOD_JK/mod_jk.so | grep mod_jk/1.2
 
  From your log output and a look at the revision history your version is 
 most likely 1.2.6. You really should download a new one and build it via 
 configure/make.
 
 Rainer
 
 Patrick Wang wrote:
 Things worked after I modify the workers.properties to use
 Worker.router.balanced_workers
 Instead of
 Worker.router.balance_workers

 Based on the TOMCAT documentation the balance_workers should be used instead
 of
 the balanced_workers after MOD_JK version 1.2.7.


 Did anybody know how to check the version of the MOD_JK?

 Thanks
 Pat

 -Original Message-
 From: Patrick Wang [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 21, 2006 11:55 AM
 To: 'Tomcat Users List'
 Subject: RE: Load Balance not working for mod_jk???

 Thanks for the info.

 The latest binary download 1.2.15 for Linux on tomcat website indicate the
 latest version is 1.2.14.


 Attach a log, it looks like the balance worker router is found, why it tried
 to
 connect port 8007, it suppose to delegate the work to TOMCAT_INSTANCE1 which
 listen on port 8009 or TOMCAT_instance2 which listen on port 8010.


 Thanks
 Pat

 [Fri Jul 21 11:47:05 2006]  [jk_uri_worker_map.c (459)]: Attempting to map 
 URI
 '/ucdiscovery'
 [Fri Jul 21 11:47:05 2006]  [jk_uri_worker_map.c (473)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found an exact match router -
 /ucdiscovery
 [Fri Jul 21 11:47:05 2006]  [mod_jk.c (1689)]: Into handler r-proxyreq=0
 r-handler=jakarta-servlet r-notes=165738416 worker=router
 [Fri Jul 21 11:47:05 2006]  [jk_worker.c (90)]: Into wc_get_worker_for_name
 router
 [Fri Jul 21 11:47:05 2006]  [jk_worker.c (94)]: wc_get_worker_for_name, done
 found a worker
 [Fri Jul 21 11:47:05 2006]  [mod_jk.c (472)]: agsp=80 agsn=ea hostn=ea
 shostn=ea.iucrp.org cbsport=0 sport=0 
 [Fri Jul 21 11:47:05 2006]  [jk_ajp12_worker.c (201)]: Into
 jk_worker_t::get_endpoint
 [Fri Jul 21 11:47:05 2006]  [jk_ajp12_worker.c (96)]: Into
 jk_endpoint_t::service
 [Fri Jul 21 11:47:05 2006]  [jk_connect.c (136)]: Into jk_open_socket
 [Fri Jul 21 11:47:05 2006]  [jk_connect.c (143)]: jk_open_socket, try to
 connect
 socket = 14 to 127.0.0.1:8007
 [Fri Jul 21 11:47:05 2006]  [jk_connect.c (159)]: jk_open_socket, after
 connect
 ret = -1
 [Fri Jul 21 11:47:05 2006]  [jk_connect.c (188)]: jk_open_socket, connect()
 failed errno = 111

 -Original 

Where is my Tomcat

2006-07-24 Thread OOzy Pal

Guys/Gals,

I am running (K)ubuntu. I installed the following packages:

Apache 1.3 connector for the Tomcat Java servlet engine
Servlet 2.3 and JSP 1.2 Java classes and documentation
Servlet 2.4 and JSP 2.0 Java classes and documentation
Java Servlet engine -- core libraries (libtomcat5)
Java Servlet 2.4 engine with JSP 2.0 support (tomcat5)
Java Servlet engine -- admin web interfaces(tomcat5-admin)
Sun Java(TM) Development Kit (JDK) 5.0
Sun Java(TM) Runtime Environment (JRE) 5.0

plus other Java libs,

Then I type

$sudo /etc/init.d/tomcat5 start

I get:

Starting Tomcat 5 servlet engine using Java from /usr/lib/j2se/1.4:

when I type:

sudo /usr/share/tomcat5/bin/startup.sh

I get:

Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JAVA_HOME:   /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/

$netstat -l -t -e | grep tomcat

I get nothing.

When I type

$sudo /etc/init.d/tomcat5 stop

I get

Stopping Tomcat 5 servlet engine: (not running)

Where is my tomcat how can I run it and test it?

--
OOzy
Kubuntu-Dapper

-
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 Memory Status?

2006-07-24 Thread Jon Wingfield

Hi OP,

They probably mean what they say ;)
See the jdk javadocs for the System/Runtime classes.

The Free Memory stat often causes confusion initially. It's the free 
memory in the block of RAM currently assigned to the JVM.
So, it looks like at startup Tomcat is assigned 8Mb under your JVM on 
Win95. The max the JVM is set to use is 64Mb, meaning you really had 
~58Mb free at the time of the snapshot.


How much physical memory do you have in the box?
You can tweak the maximum available memory using JAVA_OPTS

http://tomcat.apache.org/faq/memory.html#adjust

HTH,

Jon

Propes, Barry L wrote:

MB Not GB? How are you even running Win 95 with 63.56MB? That's not enough 
swap space for anything is it?

-Original Message-
From: Gamigin Gamigin [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 22, 2006 5:13 PM
To: users@tomcat.apache.org
Subject: Tomcat Memory Status?


I've been having OutOfMemory problems and I've been watching the
Server Status section under Tomcat Manager. Immediately after
starting Tomcat (with my main application undeployed) I see:

Free memory: 2.17 MB Total memory: 5.84 MB Max memory: 63.56 MB

Can anyone explain what these numbers mean? I can't find any
explanation in the Tomcat documentation. What is the difference
between Total memory and Max memory? Free memory is a lot lower than
expected for just starting the server. I can't only have 2MB available
after starting the server and not even running my application.

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



Links to relative URL's from a JSP

2006-07-24 Thread Mike Molina
This thread is related to relative URL within JSP's and how they refer to 
the local directory structure in a web application.


My directory structure in Tomcat goes something like this:

webapps/inprogress/WebContent
(Accessed through Tomcat as such: http://127.0.0.1:8080/inprogres/WebContent

where WebContent contains my JSP and HTML files, WEB-INF, etc.

When creating img links to image files in the WebContent folder, I noticed

1) HTML files can use the correct local pathname, e.g., img 
src=imagname.jpg


however,

2) JSP files, even though accessing image files in the same directory must 
use the previous directory, e.g., img src=../imagename.jpg even though 
the images are contained in the same directory.


My assumption is that JSP files are rooted in the WEB-INF directory and so 
must use the previous directory notation back up a directory to access the 
images contained the WebContent folder where everything else is.


Thus, I have two questions:

1) Why does this occur, and how can I modify my xml configuration files so 
that JSP's reference links exactly as an html file in the same directory 
would?


2) How can I change the root folder of tomcat to the 
webapps/inprogress/WebContent directory, which xml files, and how exactly 
should I modify them?


Thanks,
Mike M.



-
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: Where is my Tomcat

2006-07-24 Thread OOzy Pal

On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:

Guys/Gals,

I am running (K)ubuntu. I installed the following packages:

Apache 1.3 connector for the Tomcat Java servlet engine
Servlet 2.3 and JSP 1.2 Java classes and documentation
Servlet 2.4 and JSP 2.0 Java classes and documentation
Java Servlet engine -- core libraries (libtomcat5)
Java Servlet 2.4 engine with JSP 2.0 support (tomcat5)
Java Servlet engine -- admin web interfaces(tomcat5-admin)
Sun Java(TM) Development Kit (JDK) 5.0
Sun Java(TM) Runtime Environment (JRE) 5.0

plus other Java libs,

Then I type

$sudo /etc/init.d/tomcat5 start

I get:

Starting Tomcat 5 servlet engine using Java from /usr/lib/j2se/1.4:

when I type:

sudo /usr/share/tomcat5/bin/startup.sh

I get:

Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JAVA_HOME:   /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/

$netstat -l -t -e | grep tomcat

I get nothing.

When I type

$sudo /etc/init.d/tomcat5 stop

I get

Stopping Tomcat 5 servlet engine: (not running)

Where is my tomcat how can I run it and test it?

--
OOzy
Kubuntu-Dapper



After searching the archive, I checked catalina.out and here is the log

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

hmm, where is my JDK, I installed it.
--
OOzy
Kubuntu-Dapper

-
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: Load Balance not working for mod_jk???

2006-07-24 Thread Patrick Wang
You are Right, the Strings things work great, which shows the version of the
mod_jk 1.2.6.

Pat

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 10:26 AM
To: Tomcat Users List
Subject: Re: Load Balance not working for mod_jk???

It will appear in the error log, so you configured everything that's
needed. What about the strings way of determining the version (the
second option I gave in my previous mail)?

Patrick Wang schrieb:
 Thanks for the info.
 
 However my Apache log did not log any information listed below.
 
 I checked both error_log and access_log information. There seems that you can
 setup the log level for error_log using flags like info/debug.
 
 However there is not such as place for the access_log, can anybody shed some
 light on? My Apache version is 2.5.0.24.
 
 Attached my part of the httpd.conf.
 
 
 ErrorLog logs/error_log
 
 #
 # LogLevel: Control the number of messages logged to the error_log.
 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 #
 LogLevel debug
 
 #
 # The following directives define some format nicknames for use with
 # a CustomLog directive (see below).
 #
 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
 combined
 LogFormat %h %l %u %t \%r\ %s %b common
 LogFormat %{Referer}i - %U referer
 LogFormat %{User-agent}i agent
 
 # combinedio includes actual counts of actual bytes received (%I) and sent
 (%O); this
 # requires the mod_logio module to be loaded.
 #LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ %I
%O
 combinedio
 
 #
 # The location and format of the access logfile (Common Logfile Format).
 # If you do not define any access logfiles within a VirtualHost
 # container, they will be logged here.  Contrariwise, if you *do*
 # define per-VirtualHost access logfiles, transactions will be
 # logged therein and *not* in this file.
 #
 #CustomLog logs/access_log common
 
 #
 # If you would like to have separate agent and referer logfiles, uncomment
 # the following directives.
 #
 #CustomLog logs/referer_log referer
 #CustomLog logs/agent_log agent
 
 #
 # For a single logfile with access, agent, and referer information
 # (Combined Logfile Format), use the following directive:
 #
 CustomLog logs/access_log combined
 
 
 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 21, 2006 11:15 PM
 To: Tomcat Users List
 Subject: Re: Load Balance not working for mod_jk???
 
 When you are starting or restarting Apache it should log a line similar 
 to the following:
 
 [Sat Jul 22 07:59:41 2006] [notice] Apache/2.0.58 (Unix) DAV/2 
 mod_jk/1.2.15 configured -- resuming normal operations
 
 It includes the mod_jk version (mod_jk/1.2.15).
 
 The same should be found via
 
 myserver% strings PATH_TO_MOD_JK/mod_jk.so | grep mod_jk/1.2
 
  From your log output and a look at the revision history your version is 
 most likely 1.2.6. You really should download a new one and build it via 
 configure/make.
 
 Rainer
 
 Patrick Wang wrote:
 Things worked after I modify the workers.properties to use
 Worker.router.balanced_workers
 Instead of
 Worker.router.balance_workers

 Based on the TOMCAT documentation the balance_workers should be used instead
 of
 the balanced_workers after MOD_JK version 1.2.7.


 Did anybody know how to check the version of the MOD_JK?

 Thanks
 Pat

 -Original Message-
 From: Patrick Wang [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 21, 2006 11:55 AM
 To: 'Tomcat Users List'
 Subject: RE: Load Balance not working for mod_jk???

 Thanks for the info.

 The latest binary download 1.2.15 for Linux on tomcat website indicate the
 latest version is 1.2.14.


 Attach a log, it looks like the balance worker router is found, why it tried
 to
 connect port 8007, it suppose to delegate the work to TOMCAT_INSTANCE1 which
 listen on port 8009 or TOMCAT_instance2 which listen on port 8010.


 Thanks
 Pat

 [Fri Jul 21 11:47:05 2006]  [jk_uri_worker_map.c (459)]: Attempting to map
URI
 '/ucdiscovery'
 [Fri Jul 21 11:47:05 2006]  [jk_uri_worker_map.c (473)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found an exact match router -
 /ucdiscovery
 [Fri Jul 21 11:47:05 2006]  [mod_jk.c (1689)]: Into handler r-proxyreq=0
 r-handler=jakarta-servlet r-notes=165738416 worker=router
 [Fri Jul 21 11:47:05 2006]  [jk_worker.c (90)]: Into wc_get_worker_for_name
 router
 [Fri Jul 21 11:47:05 2006]  [jk_worker.c (94)]: wc_get_worker_for_name, done
 found a worker
 [Fri Jul 21 11:47:05 2006]  [mod_jk.c (472)]: agsp=80 agsn=ea hostn=ea
 shostn=ea.iucrp.org cbsport=0 sport=0 
 [Fri Jul 21 11:47:05 2006]  [jk_ajp12_worker.c (201)]: Into
 jk_worker_t::get_endpoint
 [Fri Jul 21 11:47:05 2006]  [jk_ajp12_worker.c (96)]: Into
 jk_endpoint_t::service
 [Fri Jul 21 11:47:05 2006]  [jk_connect.c (136)]: Into jk_open_socket
 [Fri Jul 21 11:47:05 2006]  

Re: Where is my Tomcat

2006-07-24 Thread edward
OOzy Pal wrote:

 Guys/Gals,

 I am running (K)ubuntu. I installed the following packages:

 Apache 1.3 connector for the Tomcat Java servlet engine
 Servlet 2.3 and JSP 1.2 Java classes and documentation
 Servlet 2.4 and JSP 2.0 Java classes and documentation
 Java Servlet engine -- core libraries (libtomcat5)
 Java Servlet 2.4 engine with JSP 2.0 support (tomcat5)
 Java Servlet engine -- admin web interfaces(tomcat5-admin)
 Sun Java(TM) Development Kit (JDK) 5.0
 Sun Java(TM) Runtime Environment (JRE) 5.0

 plus other Java libs,

 Then I type

 $sudo /etc/init.d/tomcat5 start

 I get:

 Starting Tomcat 5 servlet engine using Java from /usr/lib/j2se/1.4:

 when I type:

 sudo /usr/share/tomcat5/bin/startup.sh

 I get:

 Using CATALINA_BASE:   /usr/share/tomcat5
 Using CATALINA_HOME:   /usr/share/tomcat5
 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
 Using JAVA_HOME:   /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/

 $netstat -l -t -e | grep tomcat

 I get nothing.

 When I type

 $sudo /etc/init.d/tomcat5 stop

 I get

 Stopping Tomcat 5 servlet engine: (not running)

 Where is my tomcat how can I run it and test it?

it appears not to have started, so have a look at the log file(s)
(catalina.out probably, and probably  in /var/log/tomcat5 where it is
symlinked from your installation directory) and see where it fell over.

to find it, if it is running, point a browser at it - it's a server,
innit.  probably at http://localhost:8080/ but maybe the debian tomcat
packages uses port 8180 instead. Look at your server.xml file to see
where it has specified the catalina connector to run.

-
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: Links to relative URL's from a JSP

2006-07-24 Thread David Smith
 2) JSP files, even though accessing image files in the same directory 
must use the previous directory, e.g., img src=../imagename.jpg even 
though the images are contained in the same directory.


What does the URL in your browser look like when you are access the JSP 
pages?  The browser constructs the full path to the image from the URL 
used to request the page (JSP or HTML -- the browser doesn't know the 
difference).


 My assumption is that JSP files are rooted in the WEB-INF directory 
and so must use the previous directory notation back up a directory to 
access the images contained the WebContent folder where everything else is.


Nope.  They are rooted right where they are although internal 
forwarding can make the request URL different from the actual location 
of the JSP.  In the past, I've done stuff like img 
src=${pageContext.request.contextPath}/WebContent/image.jpg to get 
around these issues with an absolute path to the image.  My example 
assumes a servlet spec 2.4 webapp and container. 


--David

Mike Molina wrote:

This thread is related to relative URL within JSP's and how they refer 
to the local directory structure in a web application.


My directory structure in Tomcat goes something like this:

webapps/inprogress/WebContent
(Accessed through Tomcat as such: 
http://127.0.0.1:8080/inprogres/WebContent


where WebContent contains my JSP and HTML files, WEB-INF, etc.

When creating img links to image files in the WebContent folder, I 
noticed


1) HTML files can use the correct local pathname, e.g., img 
src=imagname.jpg


however,

2) JSP files, even though accessing image files in the same directory 
must use the previous directory, e.g., img src=../imagename.jpg 
even though the images are contained in the same directory.


My assumption is that JSP files are rooted in the WEB-INF directory 
and so must use the previous directory notation back up a directory to 
access the images contained the WebContent folder where everything 
else is.


Thus, I have two questions:

1) Why does this occur, and how can I modify my xml configuration 
files so that JSP's reference links exactly as an html file in the 
same directory would?


2) How can I change the root folder of tomcat to the 
webapps/inprogress/WebContent directory, which xml files, and how 
exactly should I modify them?


Thanks,
Mike M.



-
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: Where is my Tomcat

2006-07-24 Thread OOzy Pal

On 7/24/06, Hassan Schroeder [EMAIL PROTECTED] wrote:

On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:

 After searching the archive, I checked catalina.out and here is the log

 The JAVA_HOME environment variable is not defined correctly
 This environment variable is needed to run this program
 NB: JAVA_HOME should point to a JDK not a JRE

 hmm, where is my JDK, I installed it.

So you need to locate it and set that environment variable.

This is the reason people who use installers need to become very
proficient with the find command :-)

--
Hassan Schroeder  [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]




Where should I look for? I did this

$ slcoate -u

then

slocate jdk

I got so many /usr/share/doc kinda files?

How can I find my JDK?

OOzy
--
OOzy
Kubuntu-Dapper

-
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: Where is my Tomcat

2006-07-24 Thread Sunitha Kumar \(sunithak\)
Hi,
what is your tomcat version?  Is there any later versions of tomcat that
would work with only JRE ?
thnx
-sunitha

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 10:49 AM
To: Tomcat Users List
Subject: Re: Where is my Tomcat

On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:

 After searching the archive, I checked catalina.out and here is the 
 log

 The JAVA_HOME environment variable is not defined correctly This 
 environment variable is needed to run this program
 NB: JAVA_HOME should point to a JDK not a JRE

 hmm, where is my JDK, I installed it.

So you need to locate it and set that environment variable.

This is the reason people who use installers need to become very
proficient with the find command :-)

--
Hassan Schroeder  [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: Load Balance not working for mod_jk???

2006-07-24 Thread Rainer Jung
OK, then we are back to the suggestion: download and build a new one.
You might want to pick 1.2.18 from http://tomcat.apache.org/dev/dist/,
it's not yet officially released, but we are in the process of voting
about it and the results look promising. The latest officially released
version is 1.2.15 to be found at

http://tomcat.apache.org/download-connectors.cgi

Rainer

Patrick Wang schrieb:
 You are Right, the Strings things work great, which shows the version of the
 mod_jk 1.2.6.
 
 Pat
 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 24, 2006 10:26 AM
 To: Tomcat Users List
 Subject: Re: Load Balance not working for mod_jk???
 
 It will appear in the error log, so you configured everything that's
 needed. What about the strings way of determining the version (the
 second option I gave in my previous mail)?
 
 Patrick Wang schrieb:
 Thanks for the info.

 However my Apache log did not log any information listed below.

 I checked both error_log and access_log information. There seems that you can
 setup the log level for error_log using flags like info/debug.

 However there is not such as place for the access_log, can anybody shed some
 light on? My Apache version is 2.5.0.24.

 Attached my part of the httpd.conf.

 
 ErrorLog logs/error_log

 #
 # LogLevel: Control the number of messages logged to the error_log.
 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 #
 LogLevel debug

 #
 # The following directives define some format nicknames for use with
 # a CustomLog directive (see below).
 #
 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
 combined
 LogFormat %h %l %u %t \%r\ %s %b common
 LogFormat %{Referer}i - %U referer
 LogFormat %{User-agent}i agent

 # combinedio includes actual counts of actual bytes received (%I) and sent
 (%O); this
 # requires the mod_logio module to be loaded.
 #LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ %I
 %O
 combinedio

 #
 # The location and format of the access logfile (Common Logfile Format).
 # If you do not define any access logfiles within a VirtualHost
 # container, they will be logged here.  Contrariwise, if you *do*
 # define per-VirtualHost access logfiles, transactions will be
 # logged therein and *not* in this file.
 #
 #CustomLog logs/access_log common

 #
 # If you would like to have separate agent and referer logfiles, uncomment
 # the following directives.
 #
 #CustomLog logs/referer_log referer
 #CustomLog logs/agent_log agent

 #
 # For a single logfile with access, agent, and referer information
 # (Combined Logfile Format), use the following directive:
 #
 CustomLog logs/access_log combined



 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 21, 2006 11:15 PM
 To: Tomcat Users List
 Subject: Re: Load Balance not working for mod_jk???

 When you are starting or restarting Apache it should log a line similar 
 to the following:

 [Sat Jul 22 07:59:41 2006] [notice] Apache/2.0.58 (Unix) DAV/2 
 mod_jk/1.2.15 configured -- resuming normal operations

 It includes the mod_jk version (mod_jk/1.2.15).

 The same should be found via

 myserver% strings PATH_TO_MOD_JK/mod_jk.so | grep mod_jk/1.2

  From your log output and a look at the revision history your version is 
 most likely 1.2.6. You really should download a new one and build it via 
 configure/make.

 Rainer

 Patrick Wang wrote:
 Things worked after I modify the workers.properties to use
 Worker.router.balanced_workers
 Instead of
 Worker.router.balance_workers

 Based on the TOMCAT documentation the balance_workers should be used instead
 of
 the balanced_workers after MOD_JK version 1.2.7.


 Did anybody know how to check the version of the MOD_JK?

 Thanks
 Pat

 -Original Message-
 From: Patrick Wang [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 21, 2006 11:55 AM
 To: 'Tomcat Users List'
 Subject: RE: Load Balance not working for mod_jk???

 Thanks for the info.

 The latest binary download 1.2.15 for Linux on tomcat website indicate the
 latest version is 1.2.14.


 Attach a log, it looks like the balance worker router is found, why it tried
 to
 connect port 8007, it suppose to delegate the work to TOMCAT_INSTANCE1 which
 listen on port 8009 or TOMCAT_instance2 which listen on port 8010.


 Thanks
 Pat

 [Fri Jul 21 11:47:05 2006]  [jk_uri_worker_map.c (459)]: Attempting to map
 URI
 '/ucdiscovery'
 [Fri Jul 21 11:47:05 2006]  [jk_uri_worker_map.c (473)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found an exact match router -
 /ucdiscovery
 [Fri Jul 21 11:47:05 2006]  [mod_jk.c (1689)]: Into handler r-proxyreq=0
 r-handler=jakarta-servlet r-notes=165738416 worker=router
 [Fri Jul 21 11:47:05 2006]  [jk_worker.c (90)]: Into wc_get_worker_for_name
 router
 [Fri Jul 21 11:47:05 2006]  [jk_worker.c (94)]: wc_get_worker_for_name, done
 found a worker
 

Setting the classpath for my application

2006-07-24 Thread Darren Hall
Is the fact that I'm receiving a ClassNotFound error from Tomcat's
ClassLoader for a class that I've created indicative of a bad classpath?
Are jar files stored in WEB-INF/lib automatically included in Tomcat's
classpath for my application?

If so, how do I set the classpath for my application in Tomcat?

Thanks,

Darren

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 11:19 AM
To: 'Tomcat Users List'
Subject: ClassNotFound - Is WEB-INF/lib in my app's classpath?

Ok, I've deployed my application in Tomcat 5.5 on Solaris using the war
deploy feature in the manager.

The application (lets call it 'foo') shows up in the manager as '/foo', so I
know that it deploys. When I look in catalina.log, I see a ClassNotFound
exception, alerting me that the ClassLoader wasn't able to find my
ControllerServlet class. Here is the error from Catalina.log:

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Sending application start events

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Starting filters

2006-07-24 09:38:47,002 INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Marking servlet controller as unavailable

2006-07-24 09:38:47,002 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - Error
loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
 com.abc.framework.controller.ControlServlet
java.lang.ClassNotFoundException:
com.abc.framework.controller.ControlServlet

My ControlServlet class is located in this jar file
webapps/foo/WEB-INF/lib/abc.jar in the package
com.abc.framework.controller;.

Are the jar files in WEB-INF/lib included in my application's classpath by
default? Do I need to make a classpath change somewhere? Is the fact that
WEB-INF/lib not show up in the repositories listing above meaningful?

Why can't Tomcat's classloader find my ControlServlet class?

Thanks,

Darren


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



ResponseWrapper and sendRedirect not working

2006-07-24 Thread Mani Balasubramani
Hi,

  Here is the scenario.

 

In my filter I do the following

 

doFilter(){

 MyRequestWrapper reqWrapper = new MyRequestWrapper(servletRequest);

 MyResponseWrapper respWrapper = new
MyResponseWrapper(servletResponse);

 

 //get cookie from request and decrypt it.

 

 chain.doFilter(reqWrapper, respWrapper);   

 

 //create a cookie an encrypt it

 

 respWrapper.addCookie(NAME, encrypt(myobj));

}

 

 

The servlet class checks, if the user is authenticated using a variety
of conditions. If the user is not authenticated, then the servlet sends
a redirect to the login page.

 

 

When debugging using Eclipse, I can see that my response wrapper class
has the redirect url (http://my.com/login) set in it. But I never see
the login page on my browser. Should I implement any special methods in
my wrapper which is currently an empty class?

 

 

 

Thanks,

Mani

 


This email and any attachment(s) thereto, are intended for the use of
the addressee(s) named herein and may contain legally privileged and or
confidential information under applicable law. If you are not the
intended recipient of this e-mail, you are hereby notified any
dissemination, distribution or copying of this email, and any attachment(s)
thereto, is strictly prohibited. If you have received this communication
in error, please notify the sender at 415-281-2200 or via return e-mail at
[EMAIL PROTECTED] and permanently delete the original copy and
any copy of any e-mail, and any printout thereof. Thank you for your
cooperation.


-
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: Possible conflict between the build.xml and the mx4j-3.0.1.tar.gz

2006-07-24 Thread Rainer Jung
Hi,

I'm right now building from subversion head of 5.5 and I don't get the
error, although the URLs look exactly the same::

Rao Jianguo schrieb:
 downloadgz:
  [get] Getting:
 http://switch.dl.sourceforge.net/sourceforge/mx4j/mx4j-3.0.1.tar.gz
  [get] To: /export/data0/user/TOMCAT/usr/share/java/file.tar.gz
  [get] Error getting
 http://switch.dl.sourceforge.net/sourceforge/mx4j/mx4j-3.0.1.tar.gz to
 /export/data0/user/TOMCAT/usr/share/java/file.tar.gz

My output:

testexist:
 [echo] Testing  for /usr/share/java/mx4j-3.0.1/lib/mx4j.jar

downloadgz:
  [get] Getting:
http://switch.dl.sourceforge.net/sourceforge/mx4j/mx4j-3.0.1.tar.gz
  [get] To: D:\usr\share\java\file.tar.gz
   [gunzip] Expanding D:\usr\share\java\file.tar.gz to
D:\usr\share\java\file.tar
[untar] Expanding: \usr\share\java\file.tar into \usr\share\java
   [delete] Deleting: D:\usr\share\java\file.tar
   [delete] Deleting: D:\usr\share\java\file.tar.gz


 BUILD FAILED
 /export/data0/user/TOMCAT/apache-tomcat-5.5.17-src/build.xml:48: The
 following error occurred while executing this line:
 /export/data0/user/TOMCAT/apache-tomcat-5.5.17-src/build/build.xml:1910:
 The following error occurred while executing this line:
 /export/data0/user/TOMCAT/apache-tomcat-5.5.17-src/build/build.xml:1992:
 java.net.NoRouteToHostException: No route to host
 
 
 I have trace the reason as:
 
 The http://switch.dl.sourceforge.net/sourceforge/mx4j/mx4j-3.0 has

This file name is truncated! No wonder you don't get the file with this URL.

 moved to other places as indicated by the following file:
 
 
 !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
 htmlhead
 title302 Found/title
 /headbody
 h1Found/h1
 pThe document has moved a
 href=http://prdownloads.sourceforge.net/mx4j/mx4j-3.0?downloadamp;failedmirror=switch.dl.sourceforge.n
 
 ethere/a./p
 hr
 addressApache/2.0.54 (Debian GNU/Linux) Server at
 switch.dl.sourceforge.net Port 80/address
 /body/html
 
 Anyone there can resolve my problem?
 Your help, suggestions are highly appreciated.
 
 Jianguo

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



were there any major issues with 1.2.17??

2006-07-24 Thread Mohan2005

Dear All:

Please clarify:

We have used version 1.2.17 since its release for testing on linux platform.

We are using the new 'Busysness' method. There were no noticeable issues.

Why was 1.2.18 released ? Were there any issues related to Busyness method
or 1.2.17 as a whole.
Sorry for any inconvinience caused.
-- 
View this message in context: 
http://www.nabble.com/were-there-any-major-issues-with-1.2.17---tf1993998.html#a5472583
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]



Re: Links to relative URL's from a JSP

2006-07-24 Thread Mike Molina

I'm beginning to see my problem is a bit more complex than I had mentioned.

Here is the situtation: I have two JSP's, login.jsp and catalogue.jsp.  
Login JSP calls a servlet to do some processing. If it is successful, the 
servlet forwards the request and response objects to /catalogue.jsp.


Whenever I access catalogue.jsp by entering in its absolute URL, 
everything works fine.  I can still have my relative img links to the images 
contained in the same folder, e.g., img src=image.jpg


However, if catalogue.jsp is accessed by the servlet forwarding the 
request and response objects to catalogue.jsp then none of the usual 
relative URL's work.  In fact, the servlet will not even compile correctly:




SEVERE: Error loading WebappClassLoader
 delegate: false
 repositories:
   /WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
mm_lodging1.css
java.lang.ClassNotFoundException: catalogue.css
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)

[...]



This is only remedied if I use relative links to the images beginning with 
.. For example, if the image links are constructed like img 
src=../image.jpg.  Then the forwarding, runtime compilation of the 
servlet, and the image URL's in the document work fine.


To illustrate how this works, say I have 3 images, one of them with a 
correct relative URL location, and the other two using ../ before the 
image filename.  If I access the JSP using an absolute URL, one of the 
images will work, if I use dispatcher forwarding, 2 of them will work.


I am using Eclipse for development.

Sincerely,
Mike M.



From: David Smith [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Links to relative URL's from a JSP
Date: Mon, 24 Jul 2006 13:50:22 -0400

 2) JSP files, even though accessing image files in the same directory 
must use the previous directory, e.g., img src=../imagename.jpg even 
though the images are contained in the same directory.


What does the URL in your browser look like when you are access the JSP 
pages?  The browser constructs the full path to the image from the URL used 
to request the page (JSP or HTML -- the browser doesn't know the 
difference).


 My assumption is that JSP files are rooted in the WEB-INF directory 
and so must use the previous directory notation back up a directory to 
access the images contained the WebContent folder where everything else is.


Nope.  They are rooted right where they are although internal forwarding 
can make the request URL different from the actual location of the JSP.  In 
the past, I've done stuff like img 
src=${pageContext.request.contextPath}/WebContent/image.jpg to get 
around these issues with an absolute path to the image.  My example assumes 
a servlet spec 2.4 webapp and container.


--David

Mike Molina wrote:

This thread is related to relative URL within JSP's and how they refer to 
the local directory structure in a web application.


My directory structure in Tomcat goes something like this:

webapps/inprogress/WebContent
(Accessed through Tomcat as such: 
http://127.0.0.1:8080/inprogres/WebContent


where WebContent contains my JSP and HTML files, WEB-INF, etc.

When creating img links to image files in the WebContent folder, I noticed

1) HTML files can use the correct local pathname, e.g., img 
src=imagname.jpg


however,

2) JSP files, even though accessing image files in the same directory must 
use the previous directory, e.g., img src=../imagename.jpg even though 
the images are contained in the same directory.


My assumption is that JSP files are rooted in the WEB-INF directory and 
so must use the previous directory notation back up a directory to access 
the images contained the WebContent folder where everything else is.


Thus, I have two questions:

1) Why does this occur, and how can I modify my xml configuration files so 
that JSP's reference links exactly as an html file in the same directory 
would?


2) How can I change the root folder of tomcat to the 
webapps/inprogress/WebContent directory, which xml files, and how exactly 
should I modify them?


Thanks,
Mike M.



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



Help needed HTTP response header

2006-07-24 Thread Surya Bob
Hi all,
  I am trying to tighten up our Apache and Tomcat implementation. I 
want
to suppress server type and version to make fingerprinting harder.
   
  HTTP response header

HTTP/1.1 200 OK
Date: Tue, 05 Nov 2002 17:49:51 GMT
Server: XXX
Set-Cookie2: JSESSIONID=naa2in3fj1;Version=1;Discard;Path=/
Set-Cookie: JSESSIONID=naa2in3fj1;Path=/
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java
   
  How can i hide the server information.it would be great if someone 
can Help me in this
   
  Thanks
  Sbob.


-
Groups are talking. Weacute;re listening. Check out the handy changes to 
Yahoo! Groups. 

Re: Where is my Tomcat

2006-07-24 Thread OOzy Pal

On 7/24/06, Sunitha Kumar (sunithak) [EMAIL PROTECTED] wrote:

Hi,
what is your tomcat version?  Is there any later versions of tomcat that
would work with only JRE ?
thnx
-sunitha

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 10:49 AM
To: Tomcat Users List
Subject: Re: Where is my Tomcat

On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:

 After searching the archive, I checked catalina.out and here is the
 log

 The JAVA_HOME environment variable is not defined correctly This
 environment variable is needed to run this program
 NB: JAVA_HOME should point to a JDK not a JRE

 hmm, where is my JDK, I installed it.

So you need to locate it and set that environment variable.

This is the reason people who use installers need to become very
proficient with the find command :-)

--
Hassan Schroeder  [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]




Tomcat 5
--
OOzy
Kubuntu-Dapper

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



Custom Error page when Tomcat is down?

2006-07-24 Thread Eric B.
Hi,

I've been scouring the docs  newsgroups for the last hour or so, and have 
been unable to find a solution to my problem.  Currently, I have tomcat 
being access through the Apache httpd server, configured via the jk_mod 
connector/module.

My problem is I have to sometimes stop the tomcat server for general 
maintenance.  When this happens, Apache will show an error page The server 
encountered an internal error or misconfiguration and was unable to complete 
your request. , because the jkWorker is no longer able to access the 
Tomcat server.

Is there any way I can customize that error page to say/show something 
different?

My workers file is pretty simple:
JkWorkerProperty worker.host=localhost
JkWorkerProperty worker.type=ajp13
JkWorkerProperty worker.list=jkWorker1
JkWorkerProperty worker.jkWorker1=8010


Then the httpd.conf file has the following:
VirtualHost *:80
   ServerName www.mydomain.com
   DocumentRoot /var/www/html
   JkMount /test/* jkWorker1
/VirtualHost


So if I ever try to access www.mydomain.com/test when tomcat is down, I get 
that general server encountered internal error error page.  Is there 
anything I can do to avoid that?

If anyone can point me in the right direction, I'd really appreciate it.

Thanks!

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]



Re: Where is my Tomcat

2006-07-24 Thread Steve Ochani
On 24 Jul 2006 at 20:53, OOzy Pal wrote:

 On 7/24/06, Hassan Schroeder [EMAIL PROTECTED] wrote:
  On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:
 
   After searching the archive, I checked catalina.out and here is
   the log
  
   The JAVA_HOME environment variable is not defined correctly
   This environment variable is needed to run this program
   NB: JAVA_HOME should point to a JDK not a JRE
  
   hmm, where is my JDK, I installed it.

--snip--

 Where should I look for? I did this

 $ slcoate -u

 then

 slocate jdk

 I got so many /usr/share/doc kinda files?

 How can I find my JDK?


Try
which javac

if not found then.

Try running
javac -version
from the command line, if you can run it then it has to be in your path, search 
those path
directories with find.

I know you're not going to like this but I would advise to unload all the 
packages, download
and instal the jdk from sun manually and tomcat from apache.org. It's really 
not that hard and
it would give you some practice in using your system which it seems like you 
need (no
offense intended)

-Steve O.

«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Steve O.
http://www.steveo.us

Maui Vacation Pics.
http://steveo.us/maui/

B17G and B24
http://www.steveo.us/B17-B24

B17G WWII Bomber Yankee Lady Flight
http://www.steveo.us/b17ride

SUNY NCC MATH/COMPUTER Dept.
http://www.matcmp.ncc.edu



-
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: Links to relative URL's from a JSP

2006-07-24 Thread Michael Jouravlev

On 7/24/06, David Smith [EMAIL PROTECTED] wrote:

  My assumption is that JSP files are rooted in the WEB-INF directory
and so must use the previous directory notation back up a directory to
access the images contained the WebContent folder where everything else is.

Nope.  They are rooted right where they are although internal
forwarding can make the request URL different from the actual location
of the JSP.


Right. Mike, check this link:
http://wiki.apache.org/struts/StrutsTaglibHtmlBase Its wording could
be better, but hopefully you will get the idea. Basically, just use
html:base/ tag. Without parameter it will root to the directory
where JSP is, or you can use a parameter and to root anywhere you
like.

-
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: were there any major issues with 1.2.17??

2006-07-24 Thread Rainer Jung
mod_jk 1.2.17 had a subtle build problem e.g. on AS400 platform. There
is no known problem on Linux. Glad to hear it also worked for you, but
you should nevertheless take the next opportunity and move to the
official release. 1.2.17 will never be officially released. Furthermore
1.2.18 added a new minor enhancement, the recovery time is now allowed
below 60 seconds.

Rainer

Mohan2005 schrieb:
 Dear All:
 
 Please clarify:
 
 We have used version 1.2.17 since its release for testing on linux platform.
 
 We are using the new 'Busysness' method. There were no noticeable issues.
 
 Why was 1.2.18 released ? Were there any issues related to Busyness method
 or 1.2.17 as a whole.
 Sorry for any inconvinience caused.

-
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: Where is my Tomcat

2006-07-24 Thread Hassan Schroeder

On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:


 This is the reason people who use installers need to become very
 proficient with the find command :-)



How can I find my JDK?


Uh, did I mention the find command

Start with `man find`, perhaps.

And I heartily second rthe recommendation to uninstall all this stuff
and install the JDK and Tomcat from tar files...

Good luck,
--
Hassan Schroeder  [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: Custom Error page when Tomcat is down?

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Eric B. [EMAIL PROTECTED] wrote:


Is there any way I can customize that error page to say/show something
different?


See the Apache doc for ErrorDocument

--
Hassan Schroeder  [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: Setting the classpath for my application

2006-07-24 Thread Darren Hall
I wanted to confirm that jar files in the WEB-INF/lib  directory were
included in the classpath for my application. In reading through the online
documentation for Tomcat I found the following:

WebappX - A class loader is created for each web application that is
deployed in a single Tomcat 5 instance. All unpacked classes and resources
in the /WEB-INF/classes directory of your web application archive, plus
classes and resources in JAR files under the /WEB-INF/lib directory of your
web application archive, are made visible to the containing web application,
but to no others.

I am doing exactly this. My jar file (foo.jar) is in the
webapps/abc/WEB-INF/lib directory for my 'abc' application. However, in the
Catalina log file, when Tomcat starts, I get a ClassNotFound -
com.abc.framework.ControlServlet error. Why can my servlet not be found if
it resides in the jar under the WEB-INF/lib directory???

Any help would be appreciated.

Thanks,

Darren



-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 1:59 PM
To: 'Tomcat Users List'
Subject: Setting the classpath for my application

Is the fact that I'm receiving a ClassNotFound error from Tomcat's
ClassLoader for a class that I've created indicative of a bad classpath?
Are jar files stored in WEB-INF/lib automatically included in Tomcat's
classpath for my application?

If so, how do I set the classpath for my application in Tomcat?

Thanks,

Darren

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 11:19 AM
To: 'Tomcat Users List'
Subject: ClassNotFound - Is WEB-INF/lib in my app's classpath?

Ok, I've deployed my application in Tomcat 5.5 on Solaris using the war
deploy feature in the manager.

The application (lets call it 'foo') shows up in the manager as '/foo', so I
know that it deploys. When I look in catalina.log, I see a ClassNotFound
exception, alerting me that the ClassLoader wasn't able to find my
ControllerServlet class. Here is the error from Catalina.log:

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Sending application start events

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Starting filters

2006-07-24 09:38:47,002 INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Marking servlet controller as unavailable

2006-07-24 09:38:47,002 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - Error
loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
 com.abc.framework.controller.ControlServlet
java.lang.ClassNotFoundException:
com.abc.framework.controller.ControlServlet

My ControlServlet class is located in this jar file
webapps/foo/WEB-INF/lib/abc.jar in the package
com.abc.framework.controller;.

Are the jar files in WEB-INF/lib included in my application's classpath by
default? Do I need to make a classpath change somewhere? Is the fact that
WEB-INF/lib not show up in the repositories listing above meaningful?

Why can't Tomcat's classloader find my ControlServlet class?

Thanks,

Darren


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



Virtual Host related question

2006-07-24 Thread Ashok Madhavan

Hi All,

In our web-app multiple company users can login and each company get its own
setup. The entry point is the same for all the users but each company has a
different query string. something like
http://mycompany/com/mywebapp/login.do?companyKey=xxxyyy.

The web-app works fine. But obviously our clients want a better entry url.
something like http://client1.mycompany.com.

Is there any way by which i can map
http://mycompany/com/mywebapp/login.do?companyKey=xxxyyy to
http://client1.mycompany.com. other clients will get similar url changes.

is this possible and what is the way to do it.

thanks a lot.

regards
ashok


RE: Multiple security-constraint elements

2006-07-24 Thread Propes, Barry L
Steve,

I looked at mine and that looks correct. Try commenting one of the constraints, 
restart Tomcat and test it.

But I do recall, I had a little bit of problem with mine working, and it turned 
out, after I rebooted my entire box (I run Win2K), all the constraints seemed 
to work,

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 8:13 AM
To: users@tomcat.apache.org
Subject: Multiple security-constraint elements


I am trying to set up restricted access to several folders within the =
same engine context.

I have a web.xml file within the WEB-INF folder, and can get a single =
security constraint to work OK.  When I try and set up a second one, =
nothing happens, and the second constraint is never respected.

The current web.xml is pasted below.
?xml version=3D1.0 encoding=3DISO-8859-1?

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD =
WebApplication 2.3//EN

http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

security-constraint

display-nameLogin for Admin Privileges/display-name

web-resource-collection

web-resource-nameAdmin Group Access/web-resource-name

url-pattern/admin/*/url-pattern

/web-resource-collection

auth-constraint

role-nameadmin/role-name

/auth-constraint

/security-constraint

security-constraint

display-nameLogin for Family CUG/display-name

web-resource-collection

web-resource-nameDiane's Poetry Data/web-resource-name

url-pattern/poetry/*/url-pattern

url-pattern/family/*/url-pattern

/web-resource-collection

auth-constraint

role-namefamily/role-name

/auth-constraint

/security-constraint

login-config

auth-methodBASIC/auth-method

realm-nameRestricted Access/realm-name

/login-config

security-role

descriptionThis role includes all members permitted to perform =
admin tasks/description

role-nameadmin/role-name

/security-role

security-role

descriptionThis role describes CUG of family members/description

role-namefamily/role-name

/security-role

/web-app

Any suggestions, please...

Steve



-
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: Xorg vs XFree86

2006-07-24 Thread Ronald Klop

No.

You need the clientlibs or something like that for some GUI things.

Settings the property java.awt.headless=false helps a lot for server apps. But 
the port/package stilll has the dependency for xorg-client-libs. See 
/usr/ports/www/tomcat55.


Ronald.


On Mon Jul 24 17:27:45 CEST 2006 Tomcat Users List users@tomcat.apache.org 
wrote:
I want to install tomcat 5.5. I see references in the requirements to 
XF86 and its fonts. I installed freeBSD 6.1 with the default X11 
install (Xorg). Do I need to deinstall Xorg and install XF86?



-
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: Links to relative URL's from a JSP

2006-07-24 Thread Propes, Barry L
Mike,

That's not the case for me. I did, however, choose to make an images directory 
in the webapps folder, so that all my JSPs do indeed source back one directory, 
like you noted, src=../images/image.gif for example.

Try restarting Tomcat with the image in the JSP sourced like the HTMLs and see. 
See if it picks up your change.

-Original Message-
From: Mike Molina [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 12:32 PM
To: users@tomcat.apache.org
Subject: Links to relative URL's from a JSP


This thread is related to relative URL within JSP's and how they refer to 
the local directory structure in a web application.

My directory structure in Tomcat goes something like this:

webapps/inprogress/WebContent
(Accessed through Tomcat as such: http://127.0.0.1:8080/inprogres/WebContent

where WebContent contains my JSP and HTML files, WEB-INF, etc.

When creating img links to image files in the WebContent folder, I noticed

1) HTML files can use the correct local pathname, e.g., img 
src=imagname.jpg

however,

2) JSP files, even though accessing image files in the same directory must 
use the previous directory, e.g., img src=../imagename.jpg even though 
the images are contained in the same directory.

My assumption is that JSP files are rooted in the WEB-INF directory and so 
must use the previous directory notation back up a directory to access the 
images contained the WebContent folder where everything else is.

Thus, I have two questions:

1) Why does this occur, and how can I modify my xml configuration files so 
that JSP's reference links exactly as an html file in the same directory 
would?

2) How can I change the root folder of tomcat to the 
webapps/inprogress/WebContent directory, which xml files, and how exactly 
should I modify them?

Thanks,
Mike M.



-
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: Where is my Tomcat

2006-07-24 Thread Propes, Barry L
search for j2sdk in your files, folders.

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 12:36 PM
To: users@tomcat.apache.org
Subject: Re: Where is my Tomcat


On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:
 Guys/Gals,

 I am running (K)ubuntu. I installed the following packages:

 Apache 1.3 connector for the Tomcat Java servlet engine
 Servlet 2.3 and JSP 1.2 Java classes and documentation
 Servlet 2.4 and JSP 2.0 Java classes and documentation
 Java Servlet engine -- core libraries (libtomcat5)
 Java Servlet 2.4 engine with JSP 2.0 support (tomcat5)
 Java Servlet engine -- admin web interfaces(tomcat5-admin)
 Sun Java(TM) Development Kit (JDK) 5.0
 Sun Java(TM) Runtime Environment (JRE) 5.0

 plus other Java libs,

 Then I type

 $sudo /etc/init.d/tomcat5 start

 I get:

 Starting Tomcat 5 servlet engine using Java from /usr/lib/j2se/1.4:

 when I type:

 sudo /usr/share/tomcat5/bin/startup.sh

 I get:

 Using CATALINA_BASE:   /usr/share/tomcat5
 Using CATALINA_HOME:   /usr/share/tomcat5
 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
 Using JAVA_HOME:   /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/

 $netstat -l -t -e | grep tomcat

 I get nothing.

 When I type

 $sudo /etc/init.d/tomcat5 stop

 I get

 Stopping Tomcat 5 servlet engine: (not running)

 Where is my tomcat how can I run it and test it?

 --
 OOzy
 Kubuntu-Dapper


After searching the archive, I checked catalina.out and here is the log

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

hmm, where is my JDK, I installed it.
-- 
OOzy
Kubuntu-Dapper

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



tomcat strike

2006-07-24 Thread Asensio, Rodrigo
Hi guys, My boss want to kill me and my tomcat server, all that because
he die unexpectedly.
Windows 2003 server
JDK 1.5.0_2 with the server dll
My Little Tomcat. 5.5.17
Running as service with a specific admin user

The error in the event viewer of windows?
The Apache Tomcat service terminated unexpectedly. It has done this 1
time(s). ERROR 7034

Any clue ?

thanks
 
 
 
---
Rodrigo Asensio
Fuel Management Services
Gilbarco Veeder Root
phone: +1 336 547 5023
email: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately.

-
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: Xorg vs XFree86

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Ronald Klop [EMAIL PROTECTED] wrote:


...port/package stilll has the dependency for xorg-client-libs.
See /usr/ports/www/tomcat55.


So are you saying this port/package thing introduces a dependency
not found in a normal install?

--
Hassan Schroeder  [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: Custom Error page when Tomcat is down?

2006-07-24 Thread Eric B.
Hassan Schroeder [EMAIL PROTECTED] wrote in message

 Is there any way I can customize that error page to say/show something
 different?

 See the Apache doc for ErrorDocument


Thanks for the pointer, but the problem that I see is that Apache is 
returning the status code 200 to the browser.  Obviously I can't put an 
ErrorDOcument directive on status 200, or none of the pages would work. 
Should I be looking at some other status code instead?

Thanks,

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]



Re: ResponseWrapper and sendRedirect not working

2006-07-24 Thread Christopher Schultz
Mani,

 The servlet class checks, if the user is authenticated using a variety
 of conditions. If the user is not authenticated, then the servlet sends
 a redirect to the login page.
 
 When debugging using Eclipse, I can see that my response wrapper class
 has the redirect url (http://my.com/login) set in it. But I never see
 the login page on my browser.

What /does/ happen?

Is your filter supposed to do the redirect? In either case, the redirect
did not appear in the code you posted.

 Should I implement any special methods in
 my wrapper which is currently an empty class?

Assuming that your class subclasses an existing ServletRequest class,
then you should be okay. If you merely implemented the ServletRequest
interface but left the methods empty, then it is not surprising that
nothing is happening.

Please provide more details.

-chris



signature.asc
Description: OpenPGP digital signature


SSL - Self Signed Cert appears to work but doesn't.

2006-07-24 Thread Morel, Jeremy
All,

I'm sure this is a very basic queston and has been asked many times, but
I'm trying to import a self-signed cert.  I've followed instructions to
do so on the apache site, and also verified with several others who
concur I've done the steps correctly.  There are no errors indicated in
catalina.out, yet I can not access anything via HTTPS.  (I have changed
the connector port from 8443 to 443, but it's not working either way.)

Requests eventually time out.  HTTP requests work just fine.

Any help is greatly appreciated.  Please mail me directly at
[EMAIL PROTECTED]

 

-Jeremy

 

Jeremy M. Morel
Programmer / Analyst
Department of Computing Resources
Southern New Hampshire University
2500 North River Road
Manchester, NH, USA 03106-1045
Phone: (603) 668-2211 Ext. 2337
Fax: (603) 645-9775
IM: JeremySNHU
 


Re: Links to relative URL's from a JSP

2006-07-24 Thread Christopher Schultz
Mike,

 Whenever I access catalogue.jsp by entering in its absolute URL,
 everything works fine.  I can still have my relative img links to the
 images contained in the same folder, e.g., img src=image.jpg
 
 However, if catalogue.jsp is accessed by the servlet forwarding the
 request and response objects to catalogue.jsp then none of the usual
 relative URL's work.  In fact, the servlet will not even compile correctly:

I think these are unrelated issues; you are getting a
ClassNotFoundException, not a JSP compilation error. Why is something
looking for a class called catalogue.css?

The standard practice for including relative URLs is, in fact, /not/
to use them. Instead, use absolute URLs -- but since the context path
can change given the deployment configuration, you can use the following
(relatively standard) trick:

img src=%= request.getContextPath() %/your/full/path/image.png /
instead of
img src=../relative/path/image.png /

Note that if your webapp's context name is myApp, then the URL will
look like this:

/myApp/your/full/path/image.png

but you should omit the /myApp in the path that you include in your
JSP. Otherwise, the URL generated will be /myApp/myApp/your/full/

-chris




signature.asc
Description: OpenPGP digital signature


RE: Where is my Tomcat

2006-07-24 Thread Propes, Barry L
are you looking for it up on UNIX or on Windows?

I'd say on UNIX, use Putty or some such and run some -sl or -la commands.

Windows, use the Find feature.

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 12:54 PM
To: Tomcat Users List
Subject: Re: Where is my Tomcat


On 7/24/06, Hassan Schroeder [EMAIL PROTECTED] wrote:
 On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:

  After searching the archive, I checked catalina.out and here is the log
 
  The JAVA_HOME environment variable is not defined correctly
  This environment variable is needed to run this program
  NB: JAVA_HOME should point to a JDK not a JRE
 
  hmm, where is my JDK, I installed it.

 So you need to locate it and set that environment variable.

 This is the reason people who use installers need to become very
 proficient with the find command :-)

 --
 Hassan Schroeder  [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]



Where should I look for? I did this

$ slcoate -u

then

slocate jdk

I got so many /usr/share/doc kinda files?

How can I find my JDK?

OOzy
-- 
OOzy
Kubuntu-Dapper

-
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: tomcat strike

2006-07-24 Thread Martin Gainty
Known bug with Windows 2k03 SMTP server
http://support.microsoft.com/?kbid=827214

*
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: Asensio, Rodrigo [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, July 24, 2006 3:15 PM
Subject: tomcat strike


Hi guys, My boss want to kill me and my tomcat server, all that because
he die unexpectedly.
Windows 2003 server
JDK 1.5.0_2 with the server dll
My Little Tomcat. 5.5.17
Running as service with a specific admin user

The error in the event viewer of windows?
The Apache Tomcat service terminated unexpectedly. It has done this 1
time(s). ERROR 7034

Any clue ?

thanks
 
 
 
---
Rodrigo Asensio
Fuel Management Services
Gilbarco Veeder Root
phone: +1 336 547 5023
email: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

This message (including any attachments) contains confidential 
and/or proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on 
the contents of this information is strictly prohibited and may 
constitute a violation of law.  If you are not the intended 
recipient, please notify the sender immediately by responding to 
this e-mail, and delete the message from your system.  If you 
have any questions about this e-mail please notify the sender 
immediately.

-
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: Custom Error page when Tomcat is down?

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Eric B. [EMAIL PROTECTED] wrote:


Thanks for the pointer, but the problem that I see is that Apache is
returning the status code 200 to the browser.


If Apache is generating an internal server error as you indicated, it
should be returning a 5xx status, I'd think.

--
Hassan Schroeder  [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: Setting the classpath for my application

2006-07-24 Thread Darren Hall
*sigh*

Apologies to the group. There is no need to respond to my posts.
I knew it had to be something easy that I was overlooking.

The problem was caused by the fact that my build.xml was not including my
compiled code in the jar file I was creating, so my jar was essentially
empty, and thus the controller servet was not deployed with the war file.

Darren


-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 3:07 PM
To: 'Tomcat Users List'
Subject: RE: Setting the classpath for my application

I wanted to confirm that jar files in the WEB-INF/lib  directory were
included in the classpath for my application. In reading through the online
documentation for Tomcat I found the following:

WebappX - A class loader is created for each web application that is
deployed in a single Tomcat 5 instance. All unpacked classes and resources
in the /WEB-INF/classes directory of your web application archive, plus
classes and resources in JAR files under the /WEB-INF/lib directory of your
web application archive, are made visible to the containing web application,
but to no others.

I am doing exactly this. My jar file (foo.jar) is in the
webapps/abc/WEB-INF/lib directory for my 'abc' application. However, in the
Catalina log file, when Tomcat starts, I get a ClassNotFound -
com.abc.framework.ControlServlet error. Why can my servlet not be found if
it resides in the jar under the WEB-INF/lib directory???

Any help would be appreciated.

Thanks,

Darren



-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 1:59 PM
To: 'Tomcat Users List'
Subject: Setting the classpath for my application

Is the fact that I'm receiving a ClassNotFound error from Tomcat's
ClassLoader for a class that I've created indicative of a bad classpath?
Are jar files stored in WEB-INF/lib automatically included in Tomcat's
classpath for my application?

If so, how do I set the classpath for my application in Tomcat?

Thanks,

Darren

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 11:19 AM
To: 'Tomcat Users List'
Subject: ClassNotFound - Is WEB-INF/lib in my app's classpath?

Ok, I've deployed my application in Tomcat 5.5 on Solaris using the war
deploy feature in the manager.

The application (lets call it 'foo') shows up in the manager as '/foo', so I
know that it deploys. When I look in catalina.log, I see a ClassNotFound
exception, alerting me that the ClassLoader wasn't able to find my
ControllerServlet class. Here is the error from Catalina.log:

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Sending application start events

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Starting filters

2006-07-24 09:38:47,002 INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Marking servlet controller as unavailable

2006-07-24 09:38:47,002 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - Error
loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
 com.abc.framework.controller.ControlServlet
java.lang.ClassNotFoundException:
com.abc.framework.controller.ControlServlet

My ControlServlet class is located in this jar file
webapps/foo/WEB-INF/lib/abc.jar in the package
com.abc.framework.controller;.

Are the jar files in WEB-INF/lib included in my application's classpath by
default? Do I need to make a classpath change somewhere? Is the fact that
WEB-INF/lib not show up in the repositories listing above meaningful?

Why can't Tomcat's classloader find my ControlServlet class?

Thanks,

Darren


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



-
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: Setting the classpath for my application

2006-07-24 Thread David Smith
Ok. Confirmed.  Per the servlet spec, all jars in the WEB-INF/lib 
folder are included in the webapp's classloader.


Now, here are some questions that might help narrow down what's happening:

1. Is the jar a valid jar file?  Does it's internal folder structure 
mirror the package structure?
2. Are there any permission problems that might prevent tomcat from 
reading the jar file?
3. After placing this jar file in WEB-INF/lib, did you restart the 
webapp from the manager or tomcat itself?
4. Is there any indication in the logs that tomcat is having an issue 
loading your 'foo.jar' file?
5. Is foo.jar really in WEB-INF/lib or did you do some symlink/shortcut 
scheme that tomcat might not follow?


--David


Darren Hall wrote:


I wanted to confirm that jar files in the WEB-INF/lib  directory were
included in the classpath for my application. In reading through the online
documentation for Tomcat I found the following:

WebappX - A class loader is created for each web application that is
deployed in a single Tomcat 5 instance. All unpacked classes and resources
in the /WEB-INF/classes directory of your web application archive, plus
classes and resources in JAR files under the /WEB-INF/lib directory of your
web application archive, are made visible to the containing web application,
but to no others.

I am doing exactly this. My jar file (foo.jar) is in the
webapps/abc/WEB-INF/lib directory for my 'abc' application. However, in the
Catalina log file, when Tomcat starts, I get a ClassNotFound -
com.abc.framework.ControlServlet error. Why can my servlet not be found if
it resides in the jar under the WEB-INF/lib directory???

Any help would be appreciated.

Thanks,

Darren



-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 1:59 PM

To: 'Tomcat Users List'
Subject: Setting the classpath for my application

Is the fact that I'm receiving a ClassNotFound error from Tomcat's
ClassLoader for a class that I've created indicative of a bad classpath?
Are jar files stored in WEB-INF/lib automatically included in Tomcat's
classpath for my application?

If so, how do I set the classpath for my application in Tomcat?

Thanks,

Darren

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 11:19 AM

To: 'Tomcat Users List'
Subject: ClassNotFound - Is WEB-INF/lib in my app's classpath?

Ok, I've deployed my application in Tomcat 5.5 on Solaris using the war
deploy feature in the manager.

The application (lets call it 'foo') shows up in the manager as '/foo', so I
know that it deploys. When I look in catalina.log, I see a ClassNotFound
exception, alerting me that the ClassLoader wasn't able to find my
ControllerServlet class. Here is the error from Catalina.log:

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Sending application start events

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Starting filters

2006-07-24 09:38:47,002 INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Marking servlet controller as unavailable

2006-07-24 09:38:47,002 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - Error
loading WebappClassLoader
 delegate: false
 repositories:
   /WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
com.abc.framework.controller.ControlServlet
java.lang.ClassNotFoundException:
com.abc.framework.controller.ControlServlet

My ControlServlet class is located in this jar file
webapps/foo/WEB-INF/lib/abc.jar in the package
com.abc.framework.controller;.

Are the jar files in WEB-INF/lib included in my application's classpath by
default? Do I need to make a classpath change somewhere? Is the fact that
WEB-INF/lib not show up in the repositories listing above meaningful?

Why can't Tomcat's classloader find my ControlServlet class?

Thanks,

Darren


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

 




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

2006-07-24 Thread Propes, Barry L
anything listed in the Tomcat log files? I'd look there, since if it does print 
out to the console, it quits evidently before you can see it.
Perhaps there's something in the log file, though to indicate why.


And a bit of research makes me think 7034 is not a Tomcat error #, but perhaps 
a Windows 2003 Event ID? Am I correct in supposing this?

If so, maybe this will help.

http://groups.google.com/group/microsoft.public.windows.server.clustering/browse_thread/thread/62a9549694482cb4/8679601e867414bf%238679601e867414bf

-Original Message-
From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 2:16 PM
To: Tomcat Users List
Subject: tomcat strike


Hi guys, My boss want to kill me and my tomcat server, all that because
he die unexpectedly.
Windows 2003 server
JDK 1.5.0_2 with the server dll
My Little Tomcat. 5.5.17
Running as service with a specific admin user

The error in the event viewer of windows?
The Apache Tomcat service terminated unexpectedly. It has done this 1
time(s). ERROR 7034

Any clue ?

thanks
 
 
 
---
Rodrigo Asensio
Fuel Management Services
Gilbarco Veeder Root
phone: +1 336 547 5023
email: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

This message (including any attachments) contains confidential 
and/or proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on 
the contents of this information is strictly prohibited and may 
constitute a violation of law.  If you are not the intended 
recipient, please notify the sender immediately by responding to 
this e-mail, and delete the message from your system.  If you 
have any questions about this e-mail please notify the sender 
immediately.

-
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: Setting the classpath for my application

2006-07-24 Thread Martin Gainty
Darren

Perhaps you have a meta-tag in META-INF suggests re-routing to a different 
class?
I would also make sure you have reloaded your webapp after re-reploying your 
classes

M-
*
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: Darren Hall [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Monday, July 24, 2006 3:06 PM
Subject: RE: Setting the classpath for my application


I wanted to confirm that jar files in the WEB-INF/lib  directory were
included in the classpath for my application. In reading through the online
documentation for Tomcat I found the following:

WebappX - A class loader is created for each web application that is
deployed in a single Tomcat 5 instance. All unpacked classes and resources
in the /WEB-INF/classes directory of your web application archive, plus
classes and resources in JAR files under the /WEB-INF/lib directory of your
web application archive, are made visible to the containing web application,
but to no others.

I am doing exactly this. My jar file (foo.jar) is in the
webapps/abc/WEB-INF/lib directory for my 'abc' application. However, in the
Catalina log file, when Tomcat starts, I get a ClassNotFound -
com.abc.framework.ControlServlet error. Why can my servlet not be found if
it resides in the jar under the WEB-INF/lib directory???

Any help would be appreciated.

Thanks,

Darren



-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 1:59 PM
To: 'Tomcat Users List'
Subject: Setting the classpath for my application

Is the fact that I'm receiving a ClassNotFound error from Tomcat's
ClassLoader for a class that I've created indicative of a bad classpath?
Are jar files stored in WEB-INF/lib automatically included in Tomcat's
classpath for my application?

If so, how do I set the classpath for my application in Tomcat?

Thanks,

Darren

-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 11:19 AM
To: 'Tomcat Users List'
Subject: ClassNotFound - Is WEB-INF/lib in my app's classpath?

Ok, I've deployed my application in Tomcat 5.5 on Solaris using the war
deploy feature in the manager.

The application (lets call it 'foo') shows up in the manager as '/foo', so I
know that it deploys. When I look in catalina.log, I see a ClassNotFound
exception, alerting me that the ClassLoader wasn't able to find my
ControllerServlet class. Here is the error from Catalina.log:

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Sending application start events

2006-07-24 09:38:46,987 DEBUG
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Starting filters

2006-07-24 09:38:47,002 INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] -
Marking servlet controller as unavailable

2006-07-24 09:38:47,002 ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo] - Error
loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
 com.abc.framework.controller.ControlServlet
java.lang.ClassNotFoundException:
com.abc.framework.controller.ControlServlet

My ControlServlet class is located in this jar file
webapps/foo/WEB-INF/lib/abc.jar in the package
com.abc.framework.controller;.

Are the jar files in WEB-INF/lib included in my application's classpath by
default? Do I need to make a classpath change somewhere? Is the fact that
WEB-INF/lib not show up in the repositories listing above meaningful?

Why can't Tomcat's classloader find my ControlServlet class?

Thanks,

Darren


-
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: Tomcat on Win Server 2003?

2006-07-24 Thread David Smith

Can it be installed on Win 2003 Server?  Yes.

Can't find any ref's?  Probably because it's built in Java and as such 
is intended to be platform independent.  Take a look at the downloads 
page -- there is a download that installs it as a service.


--David


maya wrote:


can Tomcat be installed in Windows Server 2003?
I have searched for ref's to Windows Server 2003 on tomcat's site 
(http://tomcat.apache.org/) but found nothing..


thanks..

-m


-
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: Tomcat on Win Server 2003?

2006-07-24 Thread Propes, Barry L
I believe it can, yes.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of maya
Sent: Monday, July 24, 2006 3:09 PM
To: users@tomcat.apache.org
Subject: Tomcat on Win Server 2003?


can Tomcat be installed in Windows Server 2003?
I have searched for ref's to Windows Server 2003 on tomcat's site 
(http://tomcat.apache.org/) but found nothing..

thanks..

-m


-
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: Custom Error page when Tomcat is down?

2006-07-24 Thread Christopher Schultz
Eric,

 I've been scouring the docs  newsgroups for the last hour or so, and have 
 been unable to find a solution to my problem.  Currently, I have tomcat 
 being access through the Apache httpd server, configured via the jk_mod 
 connector/module.

I have the same setup, and just use ErrorDocument 500 for a particular
URL space and send the user to the down page, like this:

Location /yourWebapp
ErrorDocument 403 forbidden.html
ErrorDocument 404 not_found.html
ErrorDocument 500 down.html

# This one means 'servlet unavailable'
ErrorDocument 503 down.html
/Location

Yes, Tomcat /can/ issue a 500 error code, but I have that caught in
Tomcat and the user is sent to an error page (and the status code
returned is 200, even for an error). In this case, Apache never
inadvertently sends a user to the down page when Tomcat /is/ running,
but encounters an error.

Hope that helps.

-chris




signature.asc
Description: OpenPGP digital signature


Re: Help needed HTTP response header

2006-07-24 Thread David Smith
Don't think that's possible in a version of tomcat as old as the one you 
are using.  I believe that feature was added to the connectors in tomcat 
5.0.x or tomcat 5.5.x.  To get what you want in such an old (-cough- 
ancient) version of tomcat would probably require altering the source 
code and rebuilding.


--David

Surya Bob wrote:


Hi all,
 I am trying to tighten up our Apache and Tomcat implementation. I 
want

to suppress server type and version to make fingerprinting harder.
  
 HTTP response header


HTTP/1.1 200 OK
Date: Tue, 05 Nov 2002 17:49:51 GMT
Server: XXX
Set-Cookie2: JSESSIONID=naa2in3fj1;Version=1;Discard;Path=/
Set-Cookie: JSESSIONID=naa2in3fj1;Path=/
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java
  
 How can i hide the server information.it would be great if someone 
can Help me in this
  
 Thanks

 Sbob.


-
Groups are talking. Weacute;re listening. Check out the handy changes to Yahoo! Groups. 
 




-
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 on Win Server 2003?

2006-07-24 Thread maya
thank you.. I just asked because searching for sthg like 'tomcat windows 
2003 server' came across a post somewhere where they talk about running 
Tomcat under IIS.. (http://www.junlu.com/msg/77407.html)
so when I saw this I thought maybe in Win Server 2003, since it's kind 
of geared -- I think -- towards asp.NET development, you can only run it 
in conjunction with IIS..  but I don't want that.. I want to be able to 
run it as a stand-alone server, just like I did in Windows 2000..


thanks again..



David Smith wrote:

Can it be installed on Win 2003 Server?  Yes.

Can't find any ref's?  Probably because it's built in Java and as such 
is intended to be platform independent.  Take a look at the downloads 
page -- there is a download that installs it as a service.


--David


maya wrote:


can Tomcat be installed in Windows Server 2003?
I have searched for ref's to Windows Server 2003 on tomcat's site 
(http://tomcat.apache.org/) but found nothing..


thanks..

-m


-
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: Setting the classpath for my application

2006-07-24 Thread Christopher Schultz
Darren,

 My jar file (foo.jar) is in the
 webapps/abc/WEB-INF/lib directory for my 'abc' application. However, in the
 Catalina log file, when Tomcat starts, I get a ClassNotFound -
 com.abc.framework.ControlServlet error. Why can my servlet not be found if
 it resides in the jar under the WEB-INF/lib directory???

Can you confirm with jar tvf webapps/abd/WEB-INF/lib/abc.jar that your
class is actually in there with the path
com/abc/framework/ControlServlet.class?

Another thing you could try is this:

$ javap -classpath webapps/abc/WEB-INF/lib/abc.jar  \
   com.abc.framework.ControlServlet

This should print out the API of your class. If it does not, then either
the JAR is broken or the package and class names are incorrect.

-chris




signature.asc
Description: OpenPGP digital signature


Re: Where is my Tomcat

2006-07-24 Thread OOzy Pal

On 7/24/06, Propes, Barry L [EMAIL PROTECTED] wrote:

are you looking for it up on UNIX or on Windows?

I'd say on UNIX, use Putty or some such and run some -sl or -la commands.

Windows, use the Find feature.

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 12:54 PM
To: Tomcat Users List
Subject: Re: Where is my Tomcat


On 7/24/06, Hassan Schroeder [EMAIL PROTECTED] wrote:
 On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:

  After searching the archive, I checked catalina.out and here is the log
 
  The JAVA_HOME environment variable is not defined correctly
  This environment variable is needed to run this program
  NB: JAVA_HOME should point to a JDK not a JRE
 
  hmm, where is my JDK, I installed it.

 So you need to locate it and set that environment variable.

 This is the reason people who use installers need to become very
 proficient with the find command :-)

 --
 Hassan Schroeder  [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]



Where should I look for? I did this

$ slcoate -u

then

slocate jdk

I got so many /usr/share/doc kinda files?

How can I find my JDK?

OOzy
--
OOzy
Kubuntu-Dapper

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




I found the JKD but I am not sure how start tomcat. I am really stuck.
I am not sure what am I missing? Is there a good tutorial for installing tomcat?

Any help is appreciated.

--
OOzy
Kubuntu-Dapper

-
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: Links to relative URL's from a JSP

2006-07-24 Thread David Smith

SEVERE: Error loading WebappClassLoader
 delegate: false
 repositories:
   /WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
mm_lodging1.css
java.lang.ClassNotFoundException: catalogue.css
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) 

[...] 



There must be something very strange with your code if a css file is 
being interpretted as a class or resource on the classpath.  How are you 
calling it?  It should be in a standard link tag in the head of your jsp 
page as in link type=text/css src=%= request.getContextPath() 
%/stylesheets/catalogue.css or link type=text/css 
src=${pageContext.request.contextPath}/stylesheets/catalogue.css/


--David


Mike Molina wrote:

I'm beginning to see my problem is a bit more complex than I had 
mentioned.


Here is the situtation: I have two JSP's, login.jsp and 
catalogue.jsp.  Login JSP calls a servlet to do some processing. If it 
is successful, the servlet forwards the request and response objects 
to /catalogue.jsp.


Whenever I access catalogue.jsp by entering in its absolute URL, 
everything works fine.  I can still have my relative img links to the 
images contained in the same folder, e.g., img src=image.jpg


However, if catalogue.jsp is accessed by the servlet forwarding the 
request and response objects to catalogue.jsp then none of the usual 
relative URL's work.  In fact, the servlet will not even compile 
correctly:




SEVERE: Error loading WebappClassLoader
 delegate: false
 repositories:
   /WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
mm_lodging1.css
java.lang.ClassNotFoundException: catalogue.css
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) 


[...]



This is only remedied if I use relative links to the images beginning 
with .. For example, if the image links are constructed like img 
src=../image.jpg.  Then the forwarding, runtime compilation of the 
servlet, and the image URL's in the document work fine.


To illustrate how this works, say I have 3 images, one of them with a 
correct relative URL location, and the other two using ../ before 
the image filename.  If I access the JSP using an absolute URL, one of 
the images will work, if I use dispatcher forwarding, 2 of them will 
work.


I am using Eclipse for development.

Sincerely,
Mike M.



From: David Smith [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Links to relative URL's from a JSP
Date: Mon, 24 Jul 2006 13:50:22 -0400

 2) JSP files, even though accessing image files in the same 
directory must use the previous directory, e.g., img 
src=../imagename.jpg even though the images are contained in the 
same directory.


What does the URL in your browser look like when you are access the 
JSP pages?  The browser constructs the full path to the image from 
the URL used to request the page (JSP or HTML -- the browser doesn't 
know the difference).


 My assumption is that JSP files are rooted in the WEB-INF 
directory and so must use the previous directory notation back up a 
directory to access the images contained the WebContent folder where 
everything else is.


Nope.  They are rooted right where they are although internal 
forwarding can make the request URL different from the actual 
location of the JSP.  In the past, I've done stuff like img 
src=${pageContext.request.contextPath}/WebContent/image.jpg to get 
around these issues with an absolute path to the image.  My example 
assumes a servlet spec 2.4 webapp and container.


--David

Mike Molina wrote:

This thread is related to relative URL within JSP's and how they 
refer to the local directory structure in a web application.


My directory structure in Tomcat goes something like this:

webapps/inprogress/WebContent
(Accessed through Tomcat as such: 
http://127.0.0.1:8080/inprogres/WebContent


where WebContent contains my JSP and HTML files, WEB-INF, etc.

When creating img links to image files in the WebContent folder, I 
noticed


1) HTML files can use the correct local pathname, e.g., img 
src=imagname.jpg


however,

2) JSP files, even though accessing image files in the same 
directory must use the previous directory, e.g., img 
src=../imagename.jpg even though the images are contained in the 
same directory.


My assumption is that JSP files are rooted in the WEB-INF 
directory and so must use the previous directory notation back up a 
directory to access the images contained the WebContent folder where 
everything else is.


Thus, I have two questions:

1) Why does this occur, and how can I modify my xml configuration 
files so that JSP's reference links exactly as an html file in the 
same directory would?


2) How can I change the root folder of tomcat to the 
webapps/inprogress/WebContent directory, which xml files, and how 
exactly should I modify them?


Thanks,
Mike M.




RE: Re: Tomcat on Win Server 2003?

2006-07-24 Thread Propes, Barry L
you can do that.

I happen to be running it in conjunction with IIS. Why? Because (unfortunately! 
: () I'm bridging some parameters from JSP to ASP for email sake.

Before you criticize, it's a long story, and believe me the only alternative I 
have at the moment.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of maya
Sent: Monday, July 24, 2006 3:29 PM
To: users@tomcat.apache.org
Subject: Re: Tomcat on Win Server 2003?


thank you.. I just asked because searching for sthg like 'tomcat windows 
2003 server' came across a post somewhere where they talk about running 
Tomcat under IIS.. (http://www.junlu.com/msg/77407.html)
so when I saw this I thought maybe in Win Server 2003, since it's kind 
of geared -- I think -- towards asp.NET development, you can only run it 
in conjunction with IIS..  but I don't want that.. I want to be able to 
run it as a stand-alone server, just like I did in Windows 2000..

thanks again..



David Smith wrote:
 Can it be installed on Win 2003 Server?  Yes.
 
 Can't find any ref's?  Probably because it's built in Java and as such 
 is intended to be platform independent.  Take a look at the downloads 
 page -- there is a download that installs it as a service.
 
 --David
 
 
 maya wrote:
 
 can Tomcat be installed in Windows Server 2003?
 I have searched for ref's to Windows Server 2003 on tomcat's site 
 (http://tomcat.apache.org/) but found nothing..

 thanks..

 -m


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


-
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: Where is my Tomcat

2006-07-24 Thread Propes, Barry L
try this, and see if any of the links along the left side get you where you 
need to go.

http://tomcat.apache.org/

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 3:31 PM
To: Tomcat Users List
Subject: Re: Where is my Tomcat


On 7/24/06, Propes, Barry L [EMAIL PROTECTED] wrote:
 are you looking for it up on UNIX or on Windows?

 I'd say on UNIX, use Putty or some such and run some -sl or -la commands.

 Windows, use the Find feature.

 -Original Message-
 From: OOzy Pal [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 24, 2006 12:54 PM
 To: Tomcat Users List
 Subject: Re: Where is my Tomcat


 On 7/24/06, Hassan Schroeder [EMAIL PROTECTED] wrote:
  On 7/24/06, OOzy Pal [EMAIL PROTECTED] wrote:
 
   After searching the archive, I checked catalina.out and here is the log
  
   The JAVA_HOME environment variable is not defined correctly
   This environment variable is needed to run this program
   NB: JAVA_HOME should point to a JDK not a JRE
  
   hmm, where is my JDK, I installed it.
 
  So you need to locate it and set that environment variable.
 
  This is the reason people who use installers need to become very
  proficient with the find command :-)
 
  --
  Hassan Schroeder  [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]
 
 

 Where should I look for? I did this

 $ slcoate -u

 then

 slocate jdk

 I got so many /usr/share/doc kinda files?

 How can I find my JDK?

 OOzy
 --
 OOzy
 Kubuntu-Dapper

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



I found the JKD but I am not sure how start tomcat. I am really stuck.
I am not sure what am I missing? Is there a good tutorial for installing tomcat?

Any help is appreciated.

-- 
OOzy
Kubuntu-Dapper

-
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: Custom Error page when Tomcat is down?

2006-07-24 Thread Eric B.
Hassan Schroeder [EMAIL PROTECTED] wrote in message
 On 7/24/06, Eric B. [EMAIL PROTECTED] wrote:

 Thanks for the pointer, but the problem that I see is that Apache is
 returning the status code 200 to the browser.

 If Apache is generating an internal server error as you indicated, it
 should be returning a 5xx status, I'd think.


I'd think so too.  But I put in ErrorDocument 500 directives, and got 
nothing out of it.
In fact, I even went one step further and put in ErrorDocument directives 
for error codes 500-510 (just in case I was missing something) and none made 
a difference.  I tried putting them in the main body of the httpd.conf file 
(to ensure I wasn't having problems with VirtualHosts, etc), but still 
nothing.

ErrorDocument 500 Site down 500
ErrorDocument 501 Site down 501
ErrorDocument 502 Site down 503
ErrorDocument 503 Site down 504
ErrorDocument 504 Site down 504
ErrorDocument 505 Site down 505
ErrorDocument 506 Site down 506
ErrorDocument 507 Site down 507
ErrorDocument 508 Site down 508
ErrorDocument 509 Site down 509
ErrorDocument 510 Site down 510

ErrorDocument 404 Site down 404


The only one that seemed to make a difference was ErrorDocument 404 (when 
tested againsta a non-tomcat path).

Am I doing something wrong here?

Thanks,

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]



Re: Where is my Tomcat

2006-07-24 Thread edward
OOzy Pal wrote:




 I found the JKD but I am not sure how start tomcat. I am really stuck.
 I am not sure what am I missing? Is there a good tutorial for
 installing tomcat?

 Any help is appreciated.


The init scripts that come with the package are generally a pretty good
way to start it, as you did - /etc/init.d/tomcat5 start.  Especially if
you want to use them at boot time. But they're not working, for reasons
you've found out, i.e. that the $JAVA_HOME is pointing to a JRE not a JDK.

Ubuntu is based on Debian, and I don't know how it varies. But Debian
distros ship with gcj as the java compiler, and while it's free, it will
give you grief compared to the Sun one, so you're right (in every way
apart, perhaps, from the free-software-purist philosophical way) to try
and use the Sun version.

Chances are that the Debian tomcat init scripts point to gcj not to the
Sun jdk. It's OK, you can fix that. Try javac -version, it will tell you
about the compiler (which is part of the jdk, not the jre).  Probably
you will find that /usr/bin/java and about half a dozen other
/usr/bin/javax commands including javac and javah are symlinks to the
gcj versions of java somewhere in /usr/lib. So what you need to do is to
change those symlinks to point to the Sun ones, probably in
/usr/share/lib. Some distros have a command which lets you change the
system's version of java (Gentoo does, I'm not sure about Debian)
without manually editing all the symlinks.

Now you say you're using Tomcat 5 - this isn't quite a complete answer.
Tomcat5 comes in two flavours, the 5.0 series and the 5.5.  If you have
a 5.0 series, it will work with a 1.4.2 jdk out of the box, whereas 5.5
prefers a 1.5 (Java 5) jdk, Again I think the standard Debian tomcat 5
package, even in unstable, is a 5.0, because there aren't yet any free
1.5 javacs. Just don't go using Java 5 stuff like generics in your
servlets.

Don't think of this as a trial, think of it as a learning experience...
you'll find your way round your system, so that editing a symlink and
exporting an environment variable become second nature.  Getting to the
welcome orangey-yellow cat will only be the first part; what you really
want to see is your own webapp...


-
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.LinkageError: Class soap/xsd/CompanyInfo violates loader constraints

2006-07-24 Thread Luis Rivera

   Dear Martin,

Thanks again for the reply.

I added some questions to your responses, hoping that I can clarify what I
am trying to do. I think I have been very confusing and probably the
solution is so obvious I am just missing it.

2)

ClassLoader delegation-
Straight from the doc at
http://docs.sun.com/app/docs/doc/819-2556/6n4rap8qm?a=view

Servlet specification recommends that the Web Classloader look in the
local class loader before delegating to its parent. To make the Web
Classloader follow the delegation model in the Servlet specification, set
delegate=false in the class-loader element of the sun-web.xml file. *It's
safe to do this only for a web module that does not interact with any other
modules.*

The default value is delegate=true, which causes the Web Classloader to
delegate in the same manner as the other classloaders. Use delegate=truefor a 
web application that accesses EJB components or that acts as a web
service client or endpoint. For details about sun-web.xml, see The
sun-web.xml Filehttp://docs.sun.com/app/docs/doc/819-2556/6n4rap8u6?a=view
.

from the doc if your webapp is standalone set delegate = false
If it's accessing EJB components or is a webservice client and or endpoint
delegate = true
I defer to the sun application server site for accuracy on configuration
and installation details



If I understand this, this means this is possible in J2EE, which I had read
about. But, what about TOMCAT? Is it possible to do the same thing in
Tomcat, just to see if that would solve my problem?

I have looked around on the web, documentaiton and configuration files and
this does not seem to be possible in Tomcat



3)
JNI:
I *assume* you are attempting to build and configure your own mod_jk
worker?
http://tomcat.apache.org/connectors-doc/install/apache2.html
This is system related stuff which assumes you are backing up your current
installation beforehand
and using Platform specific utilities (cl/gcc/iSeries) to essentially make
your platform-specific binaries
The important point here is to use the platform specific
install/configuration/compile scripts which are blesses by the platform's
vendor-



No, I am trying to do something a lot simpler.

See, we already have a server side implementation of the services in C++
(Roguewave), but we are looking into a cheaper option, which is why I was
looking into axis/tomcat. My clients are using Axis anyway, so I thought
using Tomcat was going to be straight forward.

So, we don't want to reimplement everything in Java, which means I only need
a jni wrapper in the axis server to call my DCE proxies in C++.  So, the
picture looks like this

axis Client -- axis Server -- jniWrapper -- DCEProxy (C++ implementation)

And the problem lies on the fact that I need to place the jniWrapper outside
of the TOMCAT_HOME/webapps directory, causing all kind of problems with the
class loaders, despite the fact that all the classes are supposedly
correctly resolved. I still have that LinkageError, regardless of where I
place the classe (shared or common).

As I said before, if all the application is placed under
TOMCAT_HOME/webapps/axis/classes, there are no exceptions thrown!

Hope this clarifies my situation and if you have any advice, I would greatly
appreciate it.

   Thanks in advance,
   -Luis R.

HTH,

M-
*

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:* Luis Rivera [EMAIL PROTECTED]
*To:* Raju Balugu [EMAIL PROTECTED]
*Cc:* Tomcat Users List users@tomcat.apache.org
*Sent:* Monday, July 24, 2006 5:18 AM
*Subject:* Re: java.lang.LinkageError: Class soap/xsd/CompanyInfo violates
loader constraints


  Dear Raju and Martin,

First of all, thanks a lot for the replies. I do appreciate it. I am
including the WSDL so you can take a look if you have a chance. I will post
it over the axis lists very soon.

Martin:
1) I don't think it is the WSDL, because as you could appreciate in the
WSDL, it is defined. Also, if I have all the application inside
webapps/axis/WEB-INF/classes, it works! But as soon as I take the class that
load the JNI DLL to the common/classes or shared/classes directories, then I
run into the trouble with the class loaders. First I noticed that the errors
were due to classes I did not copy to the common directory (CompanyInfo), so
I did and the error changed to what LinkageError.

2) Regarding the class loading model. I understand why it is recommended,
but is it possible to change it? The reason I ask is because I found on the
web an email from a guy with the same exception, but using  J2EE and he said
that by setting the delegation to true in the 

Subject: Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Edmon Begoli

If you are using Apache to Tomcat try using mod_security module to
accomplish this.

Mod security has setting for hiding the server error output:

http://www.modsecurity.org/documentation/modsecurity-apache/1.9.3/modsecurity-manual.html#N1057D

as well as purposly missrepresenting the Apache (like show IIS instead of
Apache).

http://www.modsecurity.org/documentation/modsecurity-apache/1.9.3/modsecurity-manual.html#N108B5





On 7/24/06, Eric B. [EMAIL PROTECTED] wrote:


Thanks for the pointer, but the problem that I see is that Apache is
returning the status code 200 to the browser.


If Apache is generating an internal server error as you indicated, it
should be returning a 5xx status, I'd think.



I'd think so too.  But I put in ErrorDocument 500 directives, and got
nothing out of it.
In fact, I even went one step further and put in ErrorDocument directives
for error codes 500-510 (just in case I was missing something) and none made
a difference.  I tried putting them in the main body of the httpd.conf file
(to ensure I wasn't having problems with VirtualHosts, etc), but still
nothing.
--
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Eric B. [EMAIL PROTECTED] wrote:


 If Apache is generating an internal server error as you indicated, it
 should be returning a 5xx status, I'd think.

I'd think so too.  But I put in ErrorDocument 500 directives, and got
nothing out of it.


OK, simplest test: I took a standalone Apache 2.0.52, put a text-string

 ErrorDocument 500 Stimpy, you eediot

into httpd.conf, forced a server error with a CGI script, and got my
test string returned with status  500.

So I would try to get that configured properly first, outside of your
mod_jk stuff, and go on from there.
--
Hassan Schroeder  [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]



Roller deployment into JBoss, roller not available

2006-07-24 Thread Dave
http://rollerweblogger.org/wiki/Wiki.jsp?page=InstallationGuideJBoss
   
  I followed the instruction to deploy Roller into JBoss using exploded war 
file. But
   
  http://localhost:8080/roller
   
  The requested resource (/roller/) is not available.
   
  Other applications were available (the JBoss is running).  
   
  Thanks for help.


-
See the all-new, redesigned Yahoo.com.  Check it out.

  1   2   >