Image problem

2007-04-23 Thread kz

Hi,

I am having this problem that images are not shown in the page properly when
we load the page for the first time.

I even tried to pre-load images in my cache. But the problem isn't solved. I
am using IE. Is there any configuration of Tomcat which I am not using
properly? What else could be the problem?


Regards


Khurram.


Re: Can't create jdbc resource in context.xml

2007-04-23 Thread Glen Vermeylen

Thanks for the response,

We use tomcat 5.5.

-Glen

2007/4/20, Rashmi Rubdi [EMAIL PROTECTED]:


Hello Glen,

What is the version of Tomcat? I'm asking for the version because the
JNDI Datasource configuration is different for different version of
Tomcat. The one for 4.x is different from the one for 6.x for example.

-Rashmi

-
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 + openejb exception

2007-04-23 Thread José Perdigão

Hi.
I'm trying to upgrade jakarta-tomcat 5.0 to apache-tomcat 5.5.23 doing 
the integration with openejb 1.0, but when I try to run the application, 
I get this exception:



java.lang.NullPointerException:
org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:152)
javax.naming.InitialContext.lookup(InitialContext.java:351)
org.apache.jsp.Vitacare.Geral.SeleccionarEntidade_jsp._jspx_meth_xsite_005fPortal_005f0(SeleccionarEntidade_jsp.java:137)
org.apache.jsp.Vitacare.Geral.SeleccionarEntidade_jsp._jspService(SeleccionarEntidade_jsp.java:109)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:9
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:32
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


Anyone else with this problem or anyone who knows how to solve it?
Thanks.
José Perdigão
--
José Miguel Perdigão
homepage: zeperdi.pt.vu zeperdi.pt.vu


tomcat + openejb exception

2007-04-23 Thread José Perdigão

Hi.
I'm trying to upgrade jakarta-tomcat 5.0 to apache-tomcat 5.5.23 doing 
the integration with openejb 1.0, but when I try to run the application, 
I get this exception:



java.lang.NullPointerException:
org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:152)
javax.naming.InitialContext.lookup(InitialContext.java:351)
org.apache.jsp.Vitacare.Geral.SeleccionarEntidade_jsp._jspx_meth_xsite_005fPortal_005f0(SeleccionarEntidade_jsp.java:137)
org.apache.jsp.Vitacare.Geral.SeleccionarEntidade_jsp._jspService(SeleccionarEntidade_jsp.java:109)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:9
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:32
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


Anyone else with this problem or anyone who knows how to solve it?
Thanks.
José Perdigão

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



Problem with compiling tomcat native

2007-04-23 Thread Orlando Reis

Hi, I'm having some trouble compiling tomcat-native-1.1.10-src, I've done
this before on several different platforms, but for some reason the lastest
debian (4.0 etch) is giving me problems.

vserv-deb:/usr/local/build/tomcat-native-1.1.10-src/jni/native# sh buildconf
--with-java-home=$JAVA_HOME --with-apr=/usr/local/build/httpd-2.2.4
/srclib/apr

Looking for apr source in /usr/local/build/httpd-2.2.4/srclib/apr
Creating configure ...
Generating 'make' outputs ...
rebuilding rpm spec file
vserv-deb:/usr/local/build/tomcat-native-1.1.10-src/jni/native# ./configure
--with-java-home=$JAVA_HOME --with-apr=/usr/local/apr-httpd
--with-ssl=/usr/local/openssl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.10
checking for chosen layout... tcnative
checking for APR... yes
 setting CC to gcc
 setting CPP to gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for JDK location (please wait)... /usr/local/java.1.6
checking Java platform... checking Java platform...
checking for sablevm... NONE
 adding -I/usr/local/java.1.6/include to TCNATIVE_PRIV_INCLUDES
checking os_type directory...  linux
 adding -I/usr/local/java.1.6/include/linux to TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for OpenSSL library... using openssl from /usr/local/openssl/lib
and /usr/local/openssl/include
checking OpenSSL library version... ok
checking for OpenSSL DSA support... yes
 adding -I/usr/local/openssl/include to TCNATIVE_PRIV_INCLUDES
 setting TCNATIVE_LDFLAGS to -L/usr/local/openssl/lib -lssl -lcrypto
 adding -DHAVE_OPENSSL to CFLAGS
 setting TCNATIVE_LIBS to 
 setting TCNATIVE_LIBS to  /usr/local/apr-httpd/lib/libapr-1.la -lrt
-lcrypt  -lpthread -ldl
./configure: line 4280: APR_INCLUDES: command not found
./configure: line 4281: APR_LIBS: command not found
./configure: line 4282: APR_LIB_TARGET: command not found
./configure: line 4283: APR_SO_EXT: command not found
./configure: line 4284: BASH: command not found
./configure: line 4285: BASH_ARGC: command not found
./configure: line 4286: BASH_ARGV: command not found
./configure: line 4287: BASH_LINENO: command not found
./configure: line 4288: BASH_SOURCE: command not found
./configure: line 4289: BASH_VERSINFO: command not found
./configure: line 4290: BASH_VERSION: command not found
./configure: line 4291: CC: command not found
./configure: line 4292: CFLAGS: command not found
./configure: line 4293: CPP: command not found





Line 4288

_ACEOF


# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
 for ac_var in `(set) 21 | sed -n
's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   eval ac_val=\$$ac_var
   case $ac_val in #(
   *${as_nl}*)
 case $ac_var in #(
 *_cv_*) { echo $as_me:$LINENO: WARNING: Cache variable $ac_var
contains a newline. 5
echo $as_me: WARNING: Cache variable $ac_var contains a newline. 2;} ;;
 esac
 case $ac_var in #(
 _ | IFS | as_nl) ;; #(
 *) $as_unset $ac_var ;;#line 4288
 esac ;;
   esac
 done


Any ideas?

Orlando


RE: Sticky sessions not changing servers

2007-04-23 Thread Tim Lucia


 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED]
 Sent: Sunday, April 22, 2007 12:54 PM
 To: Tomcat Users List
 Subject: Re: Sticky sessions not changing servers
 
 Please give details:
 
 - software (apache, tomcat, mod_jk) and platform versions
 - relevant parts of configuration (Apache Jk*, workers.properties,
 Connectors and jvmRoute from server.xml)
 - maybe parts of the log files showing your activity
 
 Please note:
 
 Sticky sessions use routing identifiers to identify the target servers.
 A tomcat instance with a jvmRoute attribute will put the value of the
 jvmRoute attribute at the end of each session id, either in rewritten
 URLs or in the JSESSIONID cookie. In order to make stickyness work, you
 have to use an lb worker with mod_jk, and the names of the sub workers
 must coincide with the jvmRoute of the target tomcat (or you use the
 route attribute of the workers).

Is there still a restriction about worker names / jvmRoute containing the
. character?  This got me the first time I set up a lb configuration, but
that was many years ago and I was using JK2 at the time.

Tim

 
 Stickyness is default behaviour for lb workers. As I understand you,
 stickyness in the sense of requests belonging to sessions always go to
 the tomcat instance that has the session is OK for you, but if you send
 a request without a session, it doesn't get load balanced.
 
 So your problem looks like you didn't correctly set up load balancing.
 If you don't send a session id (neither via URL rewriting nor via a
 cookie), your request should be really distributed via all sub workers
 of the lb worker whose name you used in your JkMount.
 
 You can do a quick test by using the ab binary inside of your apache bin
 directory, like
 
 ab -c 10 -n 1000 http://myserver:myport/myurl
 
 and watch the request counters going up in the mod_jk status worker.
 
 Regards,
 
 Rainer
 
 lightbulb432 wrote:
  I realize that sticky sessions always send requests from the same
 session to
  the same Tomcat instance. However, if my sample application isn't using
 a
  session (i.e. no cookies, URL rewriting, or hidden form fields),
 wouldn't
  every request be seen as a new session and distributed among Tomcats on
 a
  per-request basis (because in this case a session only lasts one request
  from the point of view of the servers).
 
  Of course once I've enabled some sort of session handling, then I'd
 expect
  to see the behavior I see now. Correct me if I've misunderstood, but
 this is
  why I believe I'm not seeing expected behavior and am likely doing
 something
  wrong.
 
  Also, how might I view the load balancing of different sessions in
 action?
  I've cleared cookies and opened up a new browser window (even though I
 don't
  think it's necessary in this case because I'm not using sessions), but
 it
  still goes back to the same server.
 
  Any thoughts? 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]




-
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: Sticky sessions not changing servers

2007-04-23 Thread Rainer Jung
The following characters are safe:

[a-z][A-Z][0-9][_\-]

A dot should be OK, but I would not bet on it, neither would we care, if
it won't. The above character set is given in the workers.properties
page of the reference guide.

Regards,

Rainer


Tim Lucia schrieb:
 
 Is there still a restriction about worker names / jvmRoute containing the
 . character?  This got me the first time I set up a lb configuration, but
 that was many years ago and I was using JK2 at the time.
 
 Tim
 

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



Re: Image problem

2007-04-23 Thread David Smith
Details would help here.  Are you saying the images show on the second 
page load?  Also what version of tomcat, some info on you setup, some 
example code showing the img / tag in the pages, etc. , ...


--David

kz wrote:


Hi,

I am having this problem that images are not shown in the page 
properly when

we load the page for the first time.

I even tried to pre-load images in my cache. But the problem isn't 
solved. I

am using IE. Is there any configuration of Tomcat which I am not using
properly? What else could be the problem?


Regards


Khurram.




-
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: file not found

2007-04-23 Thread David Smith
I've been bitten once or twice with problems like this just to find out 
after an hour of headache that I didn't put the file in the right folder 
or the permissions weren't set correctly.  Can you verify you are 
storing the file in the proper place and tomcat has permissions on it?  
Are there any log messages related to the missing html file?


Outside of that, maybe you just need to clear out the work directory and 
restart tomcat.


--David

Richard Dunne wrote:

I am having a problem with an html file.  In my project folder I have html, javascript and php files.  When I go to http://localhost/ProjectFolder/ All the files are listed except for 1 html file.  stopping and restarting the apache2 server has no effect, it still will not show up in the list of files.   does anyone know waht might be causing this?  


Richard.

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


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

 




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



Re: Cannot get a connection, pool exhausted

2007-04-23 Thread David Smith
What you have below looks good as far as I can tell.  Connections appear 
to be returned ASAP after using them.  Do all your calls to the database 
follow this pattern?  Are there any places where the connection isn't 
closed immediately and within a finally block?


As an aside, you can store the DataSource object once you've done the 
JNDI look-up for the first time.  That won't harm anything and might 
improve speed a little.


--David

[EMAIL PROTECTED] wrote:


Now instead of set connection static i just create a new one for each query to 
perform, so if there are concurrent queries it shouldn't cause any problem:


  private Connection getConnection() throws Exception {
// get context: provides the starting point for resolution of names
Context ctx = new InitialContext();
if (ctx == null) {
  throw new Exception(No Context);
}
// retrieve datasource
DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/xxDB);
if (ds == null) {
  throw new Exception(No Datasource);
}
// return db connection
return ds.getConnection();
  }

  public void doSomething() {
Connection con = null;
Statement stmt = null;
try {
  // get connection
  con = getConnection();
  if (con == null) {
throw new Exception(No Connection);
  }
  stmt = con.createStatement();
  stmt.executeUpdate(UPDATE yy SET `zz`=0 WHERE `ww`='oo');
}
catch (Exception e1) {
  //
}
// close resources
finally {
  try {
stmt.close();
stmt = null;
  }
  catch (Exception e2) {
//
  }
  try {
con.close();
con = null;
  }
  catch (Exception e3) {
//
  }
}
  }

is there anything else i should change for getting the pool connection to work?
Thanks in advance.


-- Initial Header ---

From  : [EMAIL PROTECTED] [EMAIL PROTECTED]
To  : users users@tomcat.apache.org
Cc  : 
Date  : Sat, 21 Apr 2007 10:08:21 +0200

Subject : Cannot get a connection, pool exhausted

 


Hello,
i'm trying to achieve DBCP with tomcat 5.5.9. I thought to have done things right since 
the application could connect to db, but after a night that the application was running, 
in the morning, in logs, i saw a lot of Cannot get a connection, pool 
exhausted errors.
This is my configuration:

SERVER.XML:

Server port=8005 shutdown=SHUTDOWN

 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / 
 Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / 
 Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener / 


GlobalNamingResources

 Environment name=simpleValue type=java.lang.Integer value=30 / 

 Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / 
 /GlobalNamingResources

Service name=Catalina
 Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / 
Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 /

Engine name=Catalina defaultHost=localhost
Realm className=org.apache.catalina.realm.UserDatabaseRealm 
resourceName=UserDatabase /
Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true liveDeploy=true 
xmlValidation=false xmlNamespaceAware=false
 /Host
 /Engine
 /Service
 /Server

CONTEXT.XML:

Context path=/xx docBase=xx debug=5 reloadable=true 
crossContext=true
 Resource
   name=jdbc/xxDB
   auth=Container
   type=javax.sql.DataSource
   maxActive=100
   maxIdle=30
   maxWait=1
   username=user
   password=pass
   driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://127.0.0.1:3306/xx_xx?autoReconnect=true/
/Context

WEB.XML:


?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; 
version=2.4
 display-namexx/display-name
 listener
   listener-classxxx.ApplicationWatch/listener-class
 /listener
 servlet
   servlet-namehtmlcontent/servlet-name
   servlet-classxxx.HtmlContentServlet/servlet-class
 /servlet
 servlet-mapping
   servlet-namehtmlcontent/servlet-name
   url-pattern/htmlcontent.view/url-pattern
 /servlet-mapping
 resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/xxDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref
 security-constraint
   display-nameSecurity Constraint/display-name
   web-resource-collection
 web-resource-nameProtected Area/web-resource-name
 url-pattern/*/url-pattern
   /web-resource-collection
   auth-constraint
 

Re: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 using mod_jk-1.2.22

2007-04-23 Thread David Smith
Could you post relevant sections of your httpd.conf file?  I'm 
suspecting something there is redirecting clients before mod_jk can 
handle the request ... if it's handling the request.  Any re-write rules 
related to your webapp?


--David

Khalil wrote:

Yes, exactly. When I type this url in the browser: 
examples/servlets/servlet/RequestInfoExample


I still see port 8080 in the url. I want all the urls in my webapp not 
to include 8080. Please tell me if you still don't understand.


Thank you!

- Original Message - From: Rainer Jung 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, April 20, 2007 4:27 PM
Subject: Re: Force Apache to drop port 8080 when forwarding to Tomcat 
6.0.10 using mod_jk-1.2.22



I've also got problems to understand the question. I guess, he is 
getting back responses with links (or redirects) which have an 
appended port 8080, although he is starting with port 80. If so, it 
sounds a little like a bug in his webapp.


Khalil: can you please comment?

Mladen Turk wrote:


Khalil wrote:


Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using 
mod_jk-1.2.22. The traffic seems to be flowing correctly to Tomcat 
on port 8080 from apache through the connector. Tomcat and Apache 
reside on the same machine.


I want to force apache to drop prot 8080 form the url when it 
forwards to tomcat since we're behined a firewall and port 8080 is 
closed.


For example, when I type in the browser: http://somehost/match2020/ 
apache forwadrs to tomcat and the url is changed to 
http://somhost:8080/match2020/. I want to get rid of 8080 form the 
url and just be on port 80.




What happens if you access the
/examples/servlets/servlet/RequestInfoExample
What is displayed for Remote Address

Are you still see port 8080, if that is what you are
trying to ask us?

I'm not the native English speaker, but I think I understand
that language a lot. However your entire question is unclear,
and I have no idea what the problem is,
and what do you mean by 'dropping ports'.

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]



--
--
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33aFax: 0228 98549 -50
53111 Bonn www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===
kippdata
informationstechnologie GmbH   Tel: +49 228 98549 -0
Bornheimer Str. 33aFax: +49 228 98549 -50
D-53111 Bonn   www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

-
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: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 using mod_jk-1.2.22

2007-04-23 Thread David Smith



I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-1.2.22. 
The traffic seems to be flowing correctly to Tomcat on port 8080 from apache 
through the connector. Tomcat and Apache reside on the same machine.
 



Just as a quick note, mod_jk does not send traffic to a http port (8080) 
on tomcat.  It should flow to an AJP port (8009 by default).  I'm 
suspecting mod_jk isn't doing what you think it is.


Can we see the active connectors in your server.xml file?  Just the ones 
that aren't commented out.  We don't need to see all the documentation 
stuff.


--David


Khalil wrote:


Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using mod_jk-1.2.22. 
The traffic seems to be flowing correctly to Tomcat on port 8080 from apache 
through the connector. Tomcat and Apache reside on the same machine.

I want to force apache to drop prot 8080 form the url when it forwards to 
tomcat since we're behined a firewall and port 8080 is closed.

For example, when I type in the browser: http://somehost/match2020/  apache 
forwadrs to tomcat and the url is changed to http://somhost:8080/match2020/. I 
want to get rid of 8080 form the url and just be on port 80.
. 


I have read and re-read the docs on http://tomcat.apache.org/connectors-doc and 
googled for few hours now but I am just unable to do it. I must be missing 
something?

Here is what I have done:

I have placed these lines in apache's httpd.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\workers.properties
JkLogFile C:\Program Files\Apache Software 
Foundation\Apache2.2\logs\mod_jk.log
JkLogLevel info
VirtualHost ip_address:80
   JkMount /* loadbalancer
   JkMount /match2020 loadbalancer
   JkMount /match2020/* loadbalancer
/VirtualHost

Workers.properties file looks like this:

worker.list=loadbalancer
# First tomcat server
# 
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=1
worker.loadbalancer.balance_workers=tomcat1
#worker.loadbalancer.balance_workers=tomcat2, tomcat4, tomcat1, tomcat3

I added the following connector to server.xml in Tomcat

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 
enableLookups=true/

Regards
Khalil
 




-
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: Memory leak detection

2007-04-23 Thread David Smith
Google for a java memory profiler.  Lot's of them exist -- some open 
source, some commercial.


--David

Marc wrote:


Is there any software or technique to detect memory leak on tomcat
applications?





Thanks

Flavio Tobias




 




-
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: Cannot get a connection, pool exhausted

2007-04-23 Thread Larry Meadors

Simple question - are there more than 100 requests active when this happens?

Larry


On 4/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Now instead of set connection static i just create a new one for each query to 
perform, so if there are concurrent queries it shouldn't cause any problem:


   private Connection getConnection() throws Exception {
 // get context: provides the starting point for resolution of names
 Context ctx = new InitialContext();
 if (ctx == null) {
   throw new Exception(No Context);
 }
 // retrieve datasource
 DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/xxDB);
 if (ds == null) {
   throw new Exception(No Datasource);
 }
 // return db connection
 return ds.getConnection();
   }

   public void doSomething() {
 Connection con = null;
 Statement stmt = null;
 try {
   // get connection
   con = getConnection();
   if (con == null) {
 throw new Exception(No Connection);
   }
   stmt = con.createStatement();
   stmt.executeUpdate(UPDATE yy SET `zz`=0 WHERE `ww`='oo');
 }
 catch (Exception e1) {
   //
 }
 // close resources
 finally {
   try {
 stmt.close();
 stmt = null;
   }
   catch (Exception e2) {
 //
   }
   try {
 con.close();
 con = null;
   }
   catch (Exception e3) {
 //
   }
 }
   }

is there anything else i should change for getting the pool connection to work?
Thanks in advance.


-- Initial Header ---

From  : [EMAIL PROTECTED] [EMAIL PROTECTED]
To  : users users@tomcat.apache.org
Cc  :
Date  : Sat, 21 Apr 2007 10:08:21 +0200
Subject : Cannot get a connection, pool exhausted

 Hello,
 i'm trying to achieve DBCP with tomcat 5.5.9. I thought to have done things right since 
the application could connect to db, but after a night that the application was running, in 
the morning, in logs, i saw a lot of Cannot get a connection, pool exhausted 
errors.
 This is my configuration:

 SERVER.XML:

  Server port=8005 shutdown=SHUTDOWN

   Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
   Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
   Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener /

  GlobalNamingResources

   Environment name=simpleValue type=java.lang.Integer value=30 /

   Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase 
description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory 
pathname=conf/tomcat-users.xml /
   /GlobalNamingResources
  Service name=Catalina
   Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 
enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true /
 Connector port=8009 enableLookups=false redirectPort=8443 
protocol=AJP/1.3 /
 Engine name=Catalina defaultHost=localhost
 Realm className=org.apache.catalina.realm.UserDatabaseRealm 
resourceName=UserDatabase /
 Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true liveDeploy=true 
xmlValidation=false xmlNamespaceAware=false
   /Host
   /Engine
   /Service
   /Server

 CONTEXT.XML:

 Context path=/xx docBase=xx debug=5 reloadable=true 
crossContext=true
   Resource
 name=jdbc/xxDB
 auth=Container
 type=javax.sql.DataSource
 maxActive=100
 maxIdle=30
 maxWait=1
 username=user
 password=pass
 driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://127.0.0.1:3306/xx_xx?autoReconnect=true/
 /Context

 WEB.XML:


 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
   display-namexx/display-name
   listener
 listener-classxxx.ApplicationWatch/listener-class
   /listener
   servlet
 servlet-namehtmlcontent/servlet-name
 servlet-classxxx.HtmlContentServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-namehtmlcontent/servlet-name
 url-pattern/htmlcontent.view/url-pattern
   /servlet-mapping
   resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/xxDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref
   security-constraint
 display-nameSecurity Constraint/display-name
 web-resource-collection
   web-resource-nameProtected Area/web-resource-name
   url-pattern/*/url-pattern
 /web-resource-collection
 auth-constraint
   role-namexx/role-name
 /auth-constraint
   /security-constraint
   login-config
 auth-methodBASIC/auth-method
 realm-nameProtected Area/realm-name
   /login-config
   

Re: file not found

2007-04-23 Thread Richard Dunne
The file has the same permissions as every other file in the dir which tomcat 
has access to via http://localhost/ProjectFolder.  One thing that I noticed 
with tomcat.  I had several subfolders in my project folder in windows, but whe 
I viewed the same dir in localhost, some of the sub folders were not present, 
instead the the remaining files were in the main projectfolder.  Has anyone had 
this problem?

Richard 
- Original Message 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, April 23, 2007 12:45:19 PM
Subject: Re: file not found


I've been bitten once or twice with problems like this just to find out 
after an hour of headache that I didn't put the file in the right folder 
or the permissions weren't set correctly.  Can you verify you are 
storing the file in the proper place and tomcat has permissions on it?  
Are there any log messages related to the missing html file?

Outside of that, maybe you just need to clear out the work directory and 
restart tomcat.

--David

Richard Dunne wrote:

I am having a problem with an html file.  In my project folder I have html, 
javascript and php files.  When I go to http://localhost/ProjectFolder/ All 
the files are listed except for 1 html file.  stopping and restarting the 
apache2 server has no effect, it still will not show up in the list of files.  
 does anyone know waht might be causing this?  

Richard.

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

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

  



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

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

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



Re: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

2007-04-23 Thread David Kerber
I really don't have time for a full refactoring on this project right 
now, but I got this going with a minor one.  When I looked more closesly 
at it, there was only one method in the equipment classes that was using 
the servlet API, so I was able to rework that method and the place from 
which it is called (which is in the webapp .war file), so that I was 
able to pass just the information that I needed from the 
HttpServletRequest, rather than the request object itself.  That 
eliminated the need to have the servlet api accessible from the utility 
jar.  Then I just had to apply this change to each of the 10 equipment 
clases, then make one change to the classpath entry for the standalone 
app, and I was done in about an hour.


Thanks for pointing this out, David!

Dave


David Kerber wrote:


David Smith wrote:

JAVA_HOME/lib/ext is in the bootstrap classloader (top-most, above 
System).  Given your need for running this code standalone and in a 
webapp, I think a refactoring is in order.  The parts that have to 
live in JAVA_HOME/lib/ext should not refer to the servlet api.  They 
should just return data to classes in your webapp which intern handle 
the servlet api stuff.  That should get you out of your classloader 
problem.




Hmm.  Good thought.  Please let me clarify my situation and ask for 
your comments:
What I have is classes that represent general types of equipment.  
Some of the methods for each equipment class are used from the webapp 
for managemnt and configuration purposes, and other methods are used 
from the standalone app for runtime purposes.  There are a few utility 
methods that are used both places, but not many.  I thought I was 
being smart by combining all aspects of each type of equipment into a 
single class, but you seem to be saying that I should split each 
equipment class into two classes, one for management/configuration, 
and one for runtime.  Is that interpretation correct?


Dave



--David


David Kerber wrote:

I did some more testing, and discovered an error in my OP.  See 
inline below...


I already have a message into the makers of the jni package I'm 
using with my standalone app to see if they have any input on this.


David Smith wrote:


And where is the class that can't find HttpServletRequest?  If in the
common/endorsed folder, try moving it to your WEB-INF/lib (just to 
test
 

Originally, I had the jar's with the classes in question in the 
jar/lib/ext folder, because they apparently need to be there for a 
standalone app that uses jni to access some of the classes in these 
same jars.  If I *move* them from the lib/ext folder into the 
web-inf/lib folder, then my web app works fine, but my standalone 
app fails.  What I had initially done when writing my op was to copy 
the jars, so that they existed in both lib/ext, and in web-inf/lib, 
and my web app doesn't like that, though my standalone app works ok.



a theory).  I suspect your startup parameters essentially added the
common/endorsed folder to the system classloader which puts it 
above the
 

My tomcat startup does specify the common/endorsed folders.  Can I 
take that out if I don't have anything of mine in there?  Or can I 
do something with common or shared to tell the tomcat to use the 
classes from lib/ext?


common classloader where HttpServletRequest would be.  If your 
class is

in the System classloader it won't see the servlet api at all.

See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
 

I've read that several times in the past, but it's kind of short on 
the information I need.  I'll look again...



--David

David Kerber wrote:
 


Running tomcat 5.5.15 on Windows server 2003.

Why would I get the subject error when I'm deep into my code, and not
near the top when I first use it?  I'm getting this in a class 
that is

buried several layers deep in a utility jar file.  The servlet that
calls this class is working fine, I get no compile errors, I am
importing the proper class, and my startup env vars are set to:

-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 
5.5

-Dcatalina.base=c:\TomcatClients\EddSrv
-Djava.endorsed.dirs=C:\Program Files\Apache Software
Foundation\Tomcat 5.5\common\endorsed

Here is the code snippet at issue, and the line where I'm getting the
error.  This is in a utility .jar file in web-inf/lib

import javax.servlet.http.HttpServletRequest;
...
  public static int updateDb( HttpServletRequest request ) {
  HttpSessionsession;
 


error line:
  





  session = request.getSession();

This is being called from a class in my .war file:

  rslt = TCfgHose.updateDb( request );


It works fine in dev mode in Eclipse, but fails when deployed.  What
am I missing?  Do I need to put out a jdk after all?  Or is there a
problem with passing a HttpServletRequest out of the webapp and 
into a

utility .jar?

Dave






-
To start a new 

Re: file not found

2007-04-23 Thread Martin Gainty

Richard
if you look at the file permissions for the folder you are viewing you will 
see the owner of the files

ls -al *
it is the owner or root that needs to grant access to the folder and the 
files in the folder for your user and your package to use
so if you're looking got direction on hot to grant folder for the correct 
permissions take a look at

http://java.sun.com/javase/6/docs/technotes/guides/security/PolicyFiles.html#Examples
Be aware that every package/jar (including tomcats startup jar which is 
bootstrap.jar) has to be granted permission to view/display, read and or 
execute code in the folders you are placing your files


HTH
Martin
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Richard Dunne [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, April 23, 2007 8:14 AM
Subject: Re: file not found


The file has the same permissions as every other file in the dir which 
tomcat has access to via http://localhost/ProjectFolder.  One thing that I 
noticed with tomcat.  I had several subfolders in my project folder in 
windows, but whe I viewed the same dir in localhost, some of the sub 
folders were not present, instead the the remaining files were in the main 
projectfolder.  Has anyone had this problem?


Richard
- Original Message 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, April 23, 2007 12:45:19 PM
Subject: Re: file not found


I've been bitten once or twice with problems like this just to find out
after an hour of headache that I didn't put the file in the right folder
or the permissions weren't set correctly.  Can you verify you are
storing the file in the proper place and tomcat has permissions on it?
Are there any log messages related to the missing html file?

Outside of that, maybe you just need to clear out the work directory and
restart tomcat.

--David

Richard Dunne wrote:

I am having a problem with an html file.  In my project folder I have 
html, javascript and php files.  When I go to 
http://localhost/ProjectFolder/ All the files are listed except for 1 html 
file.  stopping and restarting the apache2 server has no effect, it still 
will not show up in the list of files.   does anyone know waht might be 
causing this?


Richard.

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

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






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

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

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





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



Same entries in stderr and catalina logs

2007-04-23 Thread naveen nagaraja
HI all
I thought there was some problem with my earlier post. So i am reposting.

i am running tomcat 5.5.9 as a service in windows xp. i see log files are 
created under the
log folder correctly.
My question is that i see same entries in catalina and stderr files. following
is the entry of both the files.

Any idea why this is happenning?
Thanks in advance.
Naveen

Apr 22, 2007 7:23:47 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 22, 2007 7:23:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 672 ms
Apr 22, 2007 7:23:47 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 22, 2007 7:23:47 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Apr 22, 2007 7:23:47 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 22, 2007 7:23:48 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 22, 2007 7:23:48 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 22, 2007 7:23:48 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Apr 22, 2007 7:23:48 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 22, 2007 7:23:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1000 ms


Re: file not found

2007-04-23 Thread Richard Dunne
its my laptop, Im the only one using it, the files I create all have the same 
permissions and are in the same dir, for the pupose of this project. This is 
the only file that is not appearing, which is strange. I probably have about 20 
odd files in my projectfolder (html,javascript/php), they are all being created 
with EditPlus.
I might have to temporarily move the files, recreate the project folder and 
move the files back.  then restart tomat server.

Richard
- Original Message 
From: Martin Gainty [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, April 23, 2007 1:44:36 PM
Subject: Re: file not found


Richard
if you look at the file permissions for the folder you are viewing you will 
see the owner of the files
ls -al *
it is the owner or root that needs to grant access to the folder and the 
files in the folder for your user and your package to use
so if you're looking got direction on hot to grant folder for the correct 
permissions take a look at
http://java.sun.com/javase/6/docs/technotes/guides/security/PolicyFiles.html#Examples
Be aware that every package/jar (including tomcats startup jar which is 
bootstrap.jar) has to be granted permission to view/display, read and or 
execute code in the folders you are placing your files

HTH
Martin
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Richard Dunne [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, April 23, 2007 8:14 AM
Subject: Re: file not found


 The file has the same permissions as every other file in the dir which 
 tomcat has access to via http://localhost/ProjectFolder.  One thing that I 
 noticed with tomcat.  I had several subfolders in my project folder in 
 windows, but whe I viewed the same dir in localhost, some of the sub 
 folders were not present, instead the the remaining files were in the main 
 projectfolder.  Has anyone had this problem?

 Richard
 - Original Message 
 From: David Smith [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, April 23, 2007 12:45:19 PM
 Subject: Re: file not found


 I've been bitten once or twice with problems like this just to find out
 after an hour of headache that I didn't put the file in the right folder
 or the permissions weren't set correctly.  Can you verify you are
 storing the file in the proper place and tomcat has permissions on it?
 Are there any log messages related to the missing html file?

 Outside of that, maybe you just need to clear out the work directory and
 restart tomcat.

 --David

 Richard Dunne wrote:

I am having a problem with an html file.  In my project folder I have 
html, javascript and php files.  When I go to 
http://localhost/ProjectFolder/ All the files are listed except for 1 html 
file.  stopping and restarting the apache2 server has no effect, it still 
will not show up in the list of files.   does anyone know waht might be 
causing this?

Richard.

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

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





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

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

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

 


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

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

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



Re: sending smtp mail failure

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

MT,

Mighty Tornado wrote:
 I have ZoneAlarm running, but normally Zone Alarm notifies me if a program
 from within is trying to access the internet and let's me block it or
 let it
 go. Is it possible that ZA is blocking not my request to connect to the
 smtp
 server but the server's reply?

Yes, but most firewalls are configured to allow ESTABLISHED
communication channels to flow bidirectionally without additional
configuration. Making an outgoing TCP/IP connection should be possible
as long as port 25 is open from your machine - the Internet.

There could be another firewall in the way, too.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLLNV9CaO5/Lv0PARAuRhAKCsgi+OpWLahq7CtOKWwZ2yCJYfuQCgvgK8
sLzykRoL6VBG0A3SD7q6adk=
=9OMT
-END PGP SIGNATURE-

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



JNDI Problem

2007-04-23 Thread Aurélien Allienne

HI,

I have a problem with JNDIRealm.

I have this context.xml :

?xml version=1.0 encoding=UTF-8?
Context path=/test
docBase=test
debug=0
privileged=false
reloadable=false
 Realm className=org.apache.catalina.realm.JNDIRealm

connectionName=uid=tomcat,ou=appli,dc=univ-lille2,dc=fr
connectionPassword=g72jfacc
digest=SHA
connectionURL=ldap://ldapmasta:1389;
userBase=ou=people,dc=univ-lille2,dc=fr
userSearch=(supannAliasLogin={0})
roleBase=ou=appli,dc=univ-lille2,dc=fr
roleSubtree=true
roleName=cn
roleSearch=(member={0})
debug=99/
!--resourceName=UserDatabase
/--
/Context


And this web.xml :

?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/dtd/web-app_2_3.dtd;

   web-app
 display-nameMy secure webapp/display-name
   security-constraint
 web-resource-collection
web-resource-nameMy secure
webapp/web-resource-name
description accessible by authenticated users of
the admin role/description
url-pattern/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
http-methodDELETE/http-method
  /web-resource-collection
  auth-constraint
   descriptionThese roles are allowed
access/description
   role-nametomcat admin agenda/role-name
  /auth-constraint
   /security-constraint

   login-config
   auth-methodFORM/auth-method
   realm-nameMy secure webapp/realm-name
   form-login-config
   form-login-page/login.html/form-login-page
   form-error-page/autherr.html/form-error-page
   form-default-page/index.html/form-default-page
   /form-login-config
   /login-config

   security-role
   descriptionOnly 'admin' role is allowed to access this web
application/description
   role-nametomcat admin agenda/role-name
   /security-role

/web-app


I want to authenticate users and get their Roles but in my tomcat.log I have
:

DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   entry found for aurelien.allienne with dn
uid=43316,ou=people,dc=univ-lille2,dc=fr
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   entry found for aurelien.allienne with dn
uid=43316,ou=people,dc=univ-lille2,dc=fr
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   validating credentials by binding as the user
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   validating credentials by binding as the user
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   binding as uid=43316,ou=people,dc=univ-lille2,dc=fr
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   binding as uid=43316,ou=people,dc=univ-lille2,dc=fr
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
- Username aurelien.allienne successfully authenticated
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
- Username aurelien.allienne successfully authenticated
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   getRoles(uid=43316,ou=people,dc=univ-lille2,dc=fr)
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   getRoles(uid=43316,ou=people,dc=univ-lille2,dc=fr)
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   filter :(member=uid=43316,ou=people,dc=univ-lille2,dc=fr)
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   filter :(member=uid=43316,ou=people,dc=univ-lille2,dc=fr)
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   Returning 0 roles
DEBUG http-8080-Processor25
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test]
-   Returning 0 roles

In my ldap i have a super user name tomcat who can see all information. I
use it for log in. After I search after a user and this roles. But there is
a problem. I have a group in ldap tomcat admin agenda and a user for this
group, me :)

Thanks for your 

Re: JNDI Problem

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aurélien,

Aurélien Allienne wrote:
 roleSearch=(member={0})

Is this correct? Often, members of a group are uniqueMember
attributes. Can you confirm that similar queries return what you are
looking for when you issue them from an LDAP browser or by using
something simple like ldapsearch from the command line?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLLYX9CaO5/Lv0PARAkOnAJ9y5QtPoU82gw0mFrmLLErsN8QUxQCgrdaa
5tc86MVzuAiq4466HiFeZJ4=
=bH4f
-END PGP SIGNATURE-

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



Re: JNDI Problem

2007-04-23 Thread Aurélien Allienne

I have this in phpLDAPadmin :
  * 
cnhttp://ldapmasta.univ-lille2.fr/supann/phpldapadmin/schema.php?server_id=1view=attributesviewvalue=cn
*  required ,  rdntomcat admin agenda
* 
memberhttp://ldapmasta.univ-lille2.fr/supann/phpldapadmin/schema.php?server_id=1view=attributesviewvalue=member
*  required
http://ldapmasta.univ-lille2.fr/supann/phpldapadmin/edit.php?server_id=1dn=uid%3D1006%2Cou%3Dpeople%2Cdc%3Duniv-lille2%2Cdc%3Dfr
javascript:dnChooserPopup('edit_form.new_values_member_0', '');
http://ldapmasta.univ-lille2.fr/supann/phpldapadmin/edit.php?server_id=1dn=uid%3D43316%2Cou%3Dpeople%2Cdc%3Duniv-lille2%2Cdc%3Dfr
javascript:dnChooserPopup('edit_form.new_values_member_1', '');
(add 
valuehttp://ldapmasta.univ-lille2.fr/supann/phpldapadmin/add_value_form.php?server_id=1dn=cn%3Dtomcat%20admin%20agenda%2Cou%3Dappli%2Cdc%3Duniv-lille2%2Cdc%3Dfrattr=member
)
 * 
objectClasshttp://ldapmasta.univ-lille2.fr/supann/phpldapadmin/schema.php?server_id=1view=attributesviewvalue=objectClass
*  required
http://ldapmasta.univ-lille2.fr/supann/phpldapadmin/schema.php?server_id=1view=objectClassesviewvalue=groupOfNamesgroupOfNames
(structural)

http://ldapmasta.univ-lille2.fr/supann/phpldapadmin/schema.php?server_id=1view=objectClassesviewvalue=top


Re: Listener won't start - NoClassDefFoundError

2007-04-23 Thread Mike Peremsky


Pid [EMAIL PROTECTED] wrote:Rashmi Rubdi wrote:
 Hi Mike,
 
 Someone has posted a solution to the new error you're getting:
 http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/[EMAIL 
 PROTECTED] 
 
 
 their solution was under:
 
 6. Edited Tomcat 'server.xml' (in the 'conf' folder). Removed the line:
 


This only disables APR usage. Using APR is an improvement in most 
cases, as it permits Tomcat to take advantage of native library code.
This solution won't solve the problem below.

  This just produced an additional error in the catalina log file:
   
  Apr 23, 2007 9:39:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 23, 2007 9:39:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/fs] startup failed due to previous errors


 On 4/22/07, Mike Peremsky wrote:
 OK, I just reinstalled Tomcat 5.5.23 to resolve an issue with Tomcat 
 starting up. Now I have an issue with my listener not starting up. The 
 class in question LifecycleListener exists in the 
 %CATALINA_HOME%\server\lib\catalina.jar file. Do I need to set a 
 switch or something when calling startup.bat or setting something else 
 to use listeners? Why would it have an issue loading/finding 
 catalina.jar? There are no other error messages in my log file.


Where is the jar with com.sf.listener.SingletonLoader?
If it's not in server/lib (with catalina.jar) it won't share the right 
classloader, and thus is unable to 'see' the interface class.

What function does it perform in your web application?

   
  This is not an additional jar file. It is a class in my webapp directory. 
It's purpose is to load all the singletons for my application at application 
startup. So that there is no visible delay at code execution time while data is 
loaded from the database.





 Apr 22, 2007 10:31:32 PM org.apache.catalina.core.StandardContext 
 listenerStart
 SEVERE: Error configuring application listener of class 
 com.sf.listener.SingletonLoader
 java.lang.NoClassDefFoundError: org/apache/catalina/LifecycleListener
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at 
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
  

 at 
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873)
  



 The messages in the catalina.2007-04-22.log file are:

 Apr 22, 2007 10:31:31 PM 
 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the 
 java.library.path: 
 c:\java\jdk1.5.0_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program 
 Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1;C:\Program
  
 Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\IDM 
 Computer 
 Solutions\UltraEdit-32;c:\java\jdk1.5.0_11\bin;c:\ant\bin;c:\apache-tomcat-5.5.23\bin
  

 Apr 22, 2007 10:31:31 PM org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Apr 22, 2007 10:31:31 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 625 ms
 Apr 22, 2007 10:31:31 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Apr 22, 2007 10:31:31 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
 Apr 22, 2007 10:31:31 PM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Apr 22, 2007 10:31:32 PM org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Apr 22, 2007 10:31:32 PApr 22, 2007 10:31:32 PM 
 org.apache.catalina.core.StandardContext start
 SEVERE: Context [/fs] startup failed due to previous errors
 M org.apache.coyote.http11.Http11BaseProtocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Apr 22, 2007 10:31:32 PM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Apr 22, 2007 10:31:32 PM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/31 config=null
 Apr 22, 2007 10:31:32 PM org.apache.catalina.storeconfig.StoreLoader load
 INFO: Find registry server-registry.xml at classpath resource
 Apr 22, 2007 10:31:32 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 1578 ms

 - Mike



 -
 Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew 

Re: Listener won't start - NoClassDefFoundError

2007-04-23 Thread Mike Peremsky
If it helps at all I am running on Windows XP.
  

Mike Peremsky [EMAIL PROTECTED] wrote:
  

Pid [EMAIL PROTECTED] wrote: Rashmi Rubdi wrote:
 Hi Mike,
 
 Someone has posted a solution to the new error you're getting:
 http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/[EMAIL 
 PROTECTED] 
 
 
 their solution was under:
 
 6. Edited Tomcat 'server.xml' (in the 'conf' folder). Removed the line:
 


This only disables APR usage. Using APR is an improvement in most 
cases, as it permits Tomcat to take advantage of native library code.
This solution won't solve the problem below.

  This just produced an additional error in the catalina log file:
   
  Apr 23, 2007 9:39:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 23, 2007 9:39:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/fs] startup failed due to previous errors


 On 4/22/07, Mike Peremsky wrote:
 OK, I just reinstalled Tomcat 5.5.23 to resolve an issue with Tomcat 
 starting up. Now I have an issue with my listener not starting up. The 
 class in question LifecycleListener exists in the 
 %CATALINA_HOME%\server\lib\catalina.jar file. Do I need to set a 
 switch or something when calling startup.bat or setting something else 
 to use listeners? Why would it have an issue loading/finding 
 catalina.jar? There are no other error messages in my log file.


Where is the jar with com.sf.listener.SingletonLoader?
If it's not in server/lib (with catalina.jar) it won't share the right 
classloader, and thus is unable to 'see' the interface class.

What function does it perform in your web application?

   
  This is not an additional jar file. It is a class in my webapp directory. 
It's purpose is to load all the singletons for my application at application 
startup. So that there is no visible delay at code execution time while data is 
loaded from the database.





 Apr 22, 2007 10:31:32 PM org.apache.catalina.core.StandardContext 
 listenerStart
 SEVERE: Error configuring application listener of class 
 com.sf.listener.SingletonLoader
 java.lang.NoClassDefFoundError: org/apache/catalina/LifecycleListener
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at 
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
  

 at 
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873)
  



 The messages in the catalina.2007-04-22.log file are:

 Apr 22, 2007 10:31:31 PM 
 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the 
 java.library.path: 
 c:\java\jdk1.5.0_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program 
 Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1;C:\Program
  
 Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\IDM 
 Computer 
 Solutions\UltraEdit-32;c:\java\jdk1.5.0_11\bin;c:\ant\bin;c:\apache-tomcat-5.5.23\bin
  

 Apr 22, 2007 10:31:31 PM org.apache.coyote.http11.Http11BaseProtocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Apr 22, 2007 10:31:31 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 625 ms
 Apr 22, 2007 10:31:31 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Apr 22, 2007 10:31:31 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
 Apr 22, 2007 10:31:31 PM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Apr 22, 2007 10:31:32 PM org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Apr 22, 2007 10:31:32 PApr 22, 2007 10:31:32 PM 
 org.apache.catalina.core.StandardContext start
 SEVERE: Context [/fs] startup failed due to previous errors
 M org.apache.coyote.http11.Http11BaseProtocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Apr 22, 2007 10:31:32 PM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Apr 22, 2007 10:31:32 PM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/31 config=null
 Apr 22, 2007 10:31:32 PM org.apache.catalina.storeconfig.StoreLoader load
 INFO: Find registry server-registry.xml at classpath resource
 Apr 22, 2007 10:31:32 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 1578 ms

 - Mike



 -
 Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





integrate Tomcat 5.5.17 and Apache 2.2.23 with IPV6

2007-04-23 Thread SAVERIO FERRARO

Hi all,
I'm tring to integate Apache 2.2.23 and tomcat 5.5.17 on a windows XP with 
IPv4 and all is OK.

It runs well!
Now I want to integrate Tomcat 5.5.17 and Apache 2.2.23 on windows XP with 
IPV6 somone could help me?
I have just tried to replace IPv4 Address with IPv6 address in httpd.conf, 
server.xml and workers.proprierties but doesn't work!


Thanks
Saverio

_
Sai cosa è successo oggi?     http://notizie.msn.it


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



RE: Listener won't start - NoClassDefFoundError

2007-04-23 Thread Caldarale, Charles R
 From: Mike Peremsky [mailto:[EMAIL PROTECTED] 
 Subject: Re: Listener won't start - NoClassDefFoundError
 
 Apr 22, 2007 10:31:32 PM org.apache.catalina.core.StandardContext 
 listenerStart
 SEVERE: Error configuring application listener of class 
 com.sf.listener.SingletonLoader
 java.lang.NoClassDefFoundError: 
 org/apache/catalina/LifecycleListener

Two possibilities come to mind:

1) You have another copy of catalin.jar somewhere, or have changed
CLASSPATH to include server/lib, which it must not.

2) Your webapp is attempting to make a direct reference to the
LifecycleListener class, which it shouldn't, since that class is
intended to be used only by Tomcat itself.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Listener won't start - NoClassDefFoundError

2007-04-23 Thread Pid

Mike Peremsky wrote:

If it helps at all I am running on Windows XP.


If it's in the webapp directory, that explains it.
It's not in the same classloader.

You probably want ServletContextListener, rather than a 
LifecycleListener.  The latter is a Tomcat interface, rather than a 
Servlet spec definition - which would be more useful to you.


Lifecycle is server related as opposed to application.

You'll need to add a listener attribute to your web.xml to make it work.


p




Mike Peremsky [EMAIL PROTECTED] wrote:
  


Pid [EMAIL PROTECTED] wrote: Rashmi Rubdi wrote:

Hi Mike,

Someone has posted a solution to the new error you're getting:
http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/[EMAIL PROTECTED] 



their solution was under:

6. Edited Tomcat 'server.xml' (in the 'conf' folder). Removed the line:




This only disables APR usage. Using APR is an improvement in most 
cases, as it permits Tomcat to take advantage of native library code.

This solution won't solve the problem below.

  This just produced an additional error in the catalina log file:
   
  Apr 23, 2007 9:39:50 AM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart
Apr 23, 2007 9:39:50 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/fs] startup failed due to previous errors



On 4/22/07, Mike Peremsky wrote:
OK, I just reinstalled Tomcat 5.5.23 to resolve an issue with Tomcat 
starting up. Now I have an issue with my listener not starting up. The 
class in question LifecycleListener exists in the 
%CATALINA_HOME%\server\lib\catalina.jar file. Do I need to set a 
switch or something when calling startup.bat or setting something else 
to use listeners? Why would it have an issue loading/finding 
catalina.jar? There are no other error messages in my log file.



Where is the jar with com.sf.listener.SingletonLoader?
If it's not in server/lib (with catalina.jar) it won't share the right 
classloader, and thus is unable to 'see' the interface class.


What function does it perform in your web application?

   
  This is not an additional jar file. It is a class in my webapp directory. It's purpose is to load all the singletons for my application at application startup. So that there is no visible delay at code execution time while data is loaded from the database.






Apr 22, 2007 10:31:32 PM org.apache.catalina.core.StandardContext 
listenerStart
SEVERE: Error configuring application listener of class 
com.sf.listener.SingletonLoader

java.lang.NoClassDefFoundError: org/apache/catalina/LifecycleListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847) 

at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:873) 




The messages in the catalina.2007-04-22.log file are:

Apr 22, 2007 10:31:31 PM 
org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: 
c:\java\jdk1.5.0_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program 
Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1;C:\Program 
Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\IDM 
Computer 
Solutions\UltraEdit-32;c:\java\jdk1.5.0_11\bin;c:\ant\bin;c:\apache-tomcat-5.5.23\bin 


Apr 22, 2007 10:31:31 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 22, 2007 10:31:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 625 ms
Apr 22, 2007 10:31:31 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 22, 2007 10:31:31 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Apr 22, 2007 10:31:31 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 22, 2007 10:31:32 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 22, 2007 10:31:32 PApr 22, 2007 10:31:32 PM 
org.apache.catalina.core.StandardContext start

SEVERE: Context [/fs] startup failed due to previous errors
M org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 22, 2007 10:31:32 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 22, 2007 10:31:32 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
Apr 22, 2007 10:31:32 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 22, 2007 10:31:32 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1578 ms

- Mike




Re: integrate Tomcat 5.5.17 and Apache 2.2.23 with IPV6

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Saverio,

This was just answered recently (ans possibly before that). Check the
archives from the last week or two for the subject SOLUTION: Tomcat
5.5.17 and IPv6 configuration.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLL5/9CaO5/Lv0PARAhaDAJ4vJ7TbejD04xcAW9jPxUmWsqJcvACgqLaN
OINH9nm8deigguXvMPmYttg=
=jMiv
-END PGP SIGNATURE-

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



Re: JNDI Problem

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aurélien,

Aurélien Allienne wrote:
 member

Looks like member /is/ the correct attribute. Can you execute that
search independently to verify that you're not missing something? I'm
trying to establish if LDAPRealm is broken (which is unlikely) or if
your setup isn't exactly right (which is more likely).

Often, it helps to get a query such as this working in a more familiar
tool (such as phpLDAPadmin, with which I have no familiarity whatsoever)
before moving to a new setup (i.e. Tomcat's LDAPRealm).

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLL789CaO5/Lv0PARAqzyAJ9622JEup9KkaSPPu/K9roUQzeygQCdGyLF
nz1r0HmgYnlKSRRnjbJdcIQ=
=U0Fg
-END PGP SIGNATURE-

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



RE: Tomcat and Java6

2007-04-23 Thread gabores

Hi ..

 Does anyone know what the IS_INVALID_HANDLE(gWorker) is checking? 
 Or why the apxCreateJava(..) is failing why?

procmon from Mark Russinowitch showed, what happens :

After loading the jvm.dll there is an attempt to load msvcr71.dll form the
jvm dir and from the path (this dll is only in jdk/bin). Copying the
msvcr71.dll in one of this dirs solved the problem, Tomcat runs as a service
under Java 1.6 too.  


-- 
View this message in context: 
http://www.nabble.com/Tomcat-and-Java6-tf3148596.html#a10141209
Sent from the Tomcat - User mailing list archive 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: Image problem

2007-04-23 Thread Johnny Kewl


Mm I had something similar once... maybe same problem.

Are you reading parameters, that then say describe the path to the image?

If so, then what could be happening is you are going straight to the JSP 
page and the servlet has not initialised yet, it hasnt read the params yet!


ie Direct links to Jsps need to init themselves

So I imagine JSP looks imageLESS then you post a response to say the 
servlet params are read then JSP looks good again.


have fun


- Original Message - 
From: kz [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, April 23, 2007 8:36 AM
Subject: Image problem



Hi,

I am having this problem that images are not shown in the page properly 
when

we load the page for the first time.

I even tried to pre-load images in my cache. But the problem isn't solved. 
I

am using IE. Is there any configuration of Tomcat which I am not using
properly? What else could be the problem?


Regards


Khurram.




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



Re: Image problem

2007-04-23 Thread Christopher Schultz
Khurram,

kz wrote:
 I am having this problem that images are not shown in the page
 properly when we load the page for the first time.

Are you using Apache httpd in front of Tomcat? This often happens before
Tomcat has decided that your browser can support cookies and so all your
URLs have the session id encoded in them.

Apache httpd is confused by these URLs when asked to handle them and
ends up returning 404s for those requests. It happens with any encoded
URL that you use from Tomcat (such as CSS files, etc.) and the main
symptom is that images do not show up and the styles are missing.

A simple RELOAD of the page in the browser often will redisplay the page
properly.

If this is the problem, then there are two obvious solutions:

1. Use mod_rewrite to trim-off ;jsessionid=[0-9A-Z]+ from your URLs.
   This incantation worked for me:

   RewriteRule /your-app/(.*);jsessionid=[0-9A-Z]*(.*)   \ (no newline)
   /path/to/tomcat/webapps/your-app/$1$2 [L]

2. Use mod_jk's new JkStripSession attribute (1.2.21 or later, I think).

 I even tried to pre-load images in my cache. But the problem isn't 
 solved. I am using IE. Is there any configuration of Tomcat which I
 am not using properly? What else could be the problem?

Does this only happen in MSIE?

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



Re: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 using mod_jk-1.2.22

2007-04-23 Thread Khalil
Thank you so much John for your insights. I have resolved the issue over the 
weekend. I had port 8080 hard coded in my struts-config.xml. As far as the 
load balancing is concerned, at the moment I am only using 1 instance of 
tomcat for testing but I will actually be deploying to a farm (4 instances) 
of tomcats and hence the loadbalancer.


Again, I thank you for your input!!

Khalil
plug-in className=org.apache.struts.tiles.SecureTilesPlugin

set-property property=definitions-config

value=/WEB-INF/conf/tiles/tiles-defs.xml,

/WEB-INF/conf/tiles/tiles-welcome-defs.xml,

/WEB-INF/conf/tiles/tiles-account-defs.xml,

/WEB-INF/conf/tiles/tiles-profile-defs.xml,

/WEB-INF/conf/tiles/tiles-search-defs.xml,

/WEB-INF/conf/tiles/tiles-mail.xml,

/WEB-INF/conf/tiles/tiles-landscape.xml,

/WEB-INF/conf/tiles/tiles-mprofile-defs.xml,

/WEB-INF/conf/tiles/tiles-search-net-defs.xml,

/WEB-INF/conf/tiles/tiles-introduce-defs.xml /

set-property property=definitions-parser-validate value=true /

set-property property=moduleAware value=true /

set-property property=httpPort value=8080/

set-property property=httpsPort value=8443/

set-property property=enable value=true/

set-property property=addSession value=true/

/plug-in


- Original Message - 
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org; Khalil 
[EMAIL PROTECTED]

Sent: Friday, April 20, 2007 6:28 PM
Subject: Re: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 
using mod_jk-1.2.22





Actually... on a second look, the configuration doesnt look right 
either...
I mean you clearly NOT load balancing you just trying to use a JK 
connector... the worker should just look something like this

# BEGIN workers.properties

# Definition for Ajp13 worker

worker.list=ajp13

worker.ajp13.port=8009

worker.ajp13.host=localhost

worker.ajp13.type=ajp13

# END workers.properties



- Original Message - 
From: Khalil [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, April 20, 2007 10:09 PM
Subject: Force Apache to drop port 8080 when forwarding to Tomcat 6.0.10 
using mod_jk-1.2.22



Hi,

I am trying to integrate Tomcat 6.0.10 with Apache 2.2.4 using 
mod_jk-1.2.22. The traffic seems to be flowing correctly to Tomcat on port 
8080 from apache through the connector. Tomcat and Apache reside on the 
same machine.


I want to force apache to drop prot 8080 form the url when it forwards to 
tomcat since we're behined a firewall and port 8080 is closed.


For example, when I type in the browser: http://somehost/match2020/ 
apache forwadrs to tomcat and the url is changed to 
http://somhost:8080/match2020/. I want to get rid of 8080 form the url and 
just be on port 80.

.

I have read and re-read the docs on 
http://tomcat.apache.org/connectors-doc and googled for few hours now but 
I am just unable to do it. I must be missing something?


Here is what I have done:

I have placed these lines in apache's httpd.conf:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\workers.properties
JkLogFile C:\Program Files\Apache Software 
Foundation\Apache2.2\logs\mod_jk.log

JkLogLevel info
VirtualHost ip_address:80
   JkMount /* loadbalancer
   JkMount /match2020 loadbalancer
   JkMount /match2020/* loadbalancer
/VirtualHost

Workers.properties file looks like this:

worker.list=loadbalancer
# First tomcat server
# 
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=1
worker.loadbalancer.balance_workers=tomcat1
#worker.loadbalancer.balance_workers=tomcat2, tomcat4, tomcat1, tomcat3

I added the following connector to server.xml in Tomcat

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 
enableLookups=true/


Regards
Khalil

-
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: integrate Tomcat 5.5.17 and Apache 2.2.23 with IPV6

2007-04-23 Thread SAVERIO FERRARO


Excuse me Chrystopher,
this is different problem.
Last week I resolve the problem with Tomcat 5.5.17 and IPV6.
Now i want integrate Apache and tomcat on IPv6.

thanks

Saverio

From: Christopher Schultz [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: integrate Tomcat 5.5.17 and Apache 2.2.23 with IPV6
Date: Mon, 23 Apr 2007 10:11:11 -0400

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Saverio,

This was just answered recently (ans possibly before that). Check the
archives from the last week or two for the subject SOLUTION: Tomcat
5.5.17 and IPv6 configuration.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLL5/9CaO5/Lv0PARAhaDAJ4vJ7TbejD04xcAW9jPxUmWsqJcvACgqLaN
OINH9nm8deigguXvMPmYttg=
=jMiv
-END PGP SIGNATURE-

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



_
Ami i Quiz? Mettiti alla prova con Duell Live…Gratis su Messenger! 
http://specials.it.msn.com/DuelLive.aspx



-
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: integrate Tomcat 5.5.17 and Apache 2.2.23 with IPV6

2007-04-23 Thread Martin Gainty

Saveiro

As this is user list for tomcat specific questions.. apache specific 
questions should be posted to [EMAIL PROTECTED]


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: SAVERIO FERRARO [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, April 23, 2007 11:03 AM
Subject: Re: integrate Tomcat 5.5.17 and Apache 2.2.23 with IPV6




Excuse me Chrystopher,
this is different problem.
Last week I resolve the problem with Tomcat 5.5.17 and IPV6.
Now i want integrate Apache and tomcat on IPv6.

thanks

Saverio

From: Christopher Schultz [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: integrate Tomcat 5.5.17 and Apache 2.2.23 with IPV6
Date: Mon, 23 Apr 2007 10:11:11 -0400

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Saverio,

This was just answered recently (ans possibly before that). Check the
archives from the last week or two for the subject SOLUTION: Tomcat
5.5.17 and IPv6 configuration.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLL5/9CaO5/Lv0PARAhaDAJ4vJ7TbejD04xcAW9jPxUmWsqJcvACgqLaN
OINH9nm8deigguXvMPmYttg=
=jMiv
-END PGP SIGNATURE-

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



_
Ami i Quiz? Mettiti alla prova con Duell Live.Gratis su Messenger! 
http://specials.it.msn.com/DuelLive.aspx



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



Cannot pass parameters to tomcat5.exe //IS//MyService and a few other questions

2007-04-23 Thread tenley ludewig
Hi.

I have three questions and am pretty desperate and lost as to how to resolve 
them.  Here goes.

1.  I am using Tomcat 5.5 and JDK 1.5 and trying to install a Windows service 
with the following command.

%CATALINA_HOME%\bin\tomcat5.exe //IS//MyService --StartClass 
org.apache.catalina.startup.Bootstrap \
--StopClass org.apache.catalina.startup.Bootstrap --StartParams start 
--StopParams stop --JvmOptions \
-Dcatalina.base=%CATALINA_HOME%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed
 \
--StartMode jvm --StopMode jvm --Jvm %JAVA_HOME%\bin\client\jvm.dll 
--Classpath %CATALINA_HOME%\bin\bootstrap.jar; \
 --LogPath %CATALINA_HOME%\logs\catalina.out --LogLevel DEBUG 

Installing the service 'MyService' ...
Using CATALINA_HOME xxx
Using CATALINA_BASE xxx
Using JAVA_HOME my jdk
'--StopClass' is not recognized as an internal or external command, operable 
program or batch file.
'--StartMode',  is not recognized as an internal or external command, operable 
program or batch file.
'--LogPath'  is not recognized as an internal or external command, operable 
program or batch file.

2.  I have tried starting Tomcat with catalina.sh start, and my server.xml file 
points to an HTTP connector on port , and the log states that Tomcat does 
initialize on port .  BUT, when I hit http://localhost:, I get Server 
not Found.  And when I hit http://localhost, I get the IT WORKS page.  My 
catalina.log has the following:

Apr 23, 2007 9:35:25 AM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: C:\Program 
Files\AOL\OPIS30\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Common 
Files\GTK\2.0\bin;C:\sun\appserver\jdk\bin;C:\bea\weblogic81\server\bin;C:\Program
 Files\Apache Software Foundation\Maven 1.0.2\bin;C:\Program Files\Microsoft 
SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL 
Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL 
Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\MySQL\MySQL Server 
5.0\bin;C:\Program Files\Infozip;C:\Program Files\JProbe 7.0\bin;C:\Program 
Files\Microsoft SQL Server\MSSQL\Binn;C:\Program 
Files\NSS\nss-3.11.4\bin;C:\WINDOWS;
Apr 23, 2007 9:35:26 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-
Apr 23, 2007 9:35:26 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1953 ms
Apr 23, 2007 9:35:26 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 23, 2007 9:35:26 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Apr 23, 2007 9:35:26 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 23, 2007 9:35:26 AM org.apache.catalina.loader.WebappClassLoader 
validateJarFile
INFO: validateJarFile(C:\Program 
Files\AOL\OPIS30\webapps\aimauth\WEB-INF\lib\javaee.jar) - jar not loaded. See 
Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

Any ideas?

3.  Do I need to do anything special to start Tomcat with just a JRE (instead 
of a JDK) as of Tomcat 5.5?  I have seen conflicting messages regarding this.

Thanks so much for your help.

Sincerely,

Tenley




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

Re: Can't create jdbc resource in context.xml

2007-04-23 Thread Rashmi Rubdi

Hi Glen,

I compared your configuration with the standard configuration
mentioned 
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
and found a few differences.

Please see my replies to your post below:

On 4/20/07, Glen Vermeylen [EMAIL PROTECTED] wrote:

Hello everybody,

I'm trying to move a global jdbc resource out of server.xml so it is
application specific. Following is the server.xml (which works fine)

.


What I did was remove the the GlobalNamingResources and Realm  elements
from server.xml and put them inside
$CATALINA_HOME/conf/Catalina/localhost/esandwich.xml (don't mind the weird
name :) ), but I keep getting the error
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

esandwich.xml:
Context docBase=c:/workspace/esandwich/WebContent/ reloadable=true
crosscontext=true


crossContext attribute's case needs to be crossContext , but it is
specified as crosscontext.

One question, though a little irrelevant is -- do you really need
crossContext=true ? Just because it is specified in the sample on
the JDBC Datasource HowTo page, doesn't mean you would need it - this
is just a thought. If you don't need it, please set it to false or
remove the attribute.


Resource name=jdbc/sandwiches auth=Container driverClassName=
com.mysql.jdbc.Driver
password=tomcat type=javax.sql.DataSource
url=jdbc:mysql://192.168.16.39:3306/sandwiches?autoReconnect=true
username=tomcat /


Realm className=org.apache.catalina.realm.DataSourceRealm
dataSourceName=jdbc/sandwiches debug=99 roleNameCol=role
userCredCol=password userNameCol=user userRoleTable=userroles
userTable=users /
/Context

I believe the problem lies witht he Resource element


No the problem is in web.xml , I don't see any definition for:

resource-ref

please see under 3. web.xml configuration at
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
for the details on web.xml entries.


because if only move
the realm element to the esandwich.xml and leave the
GlobalNamingResourcesResource./... in server.xml everything still
works. We've been searching for a few hours now and can't find the solution.
Any help would be highly appreciated.

web.xml:
?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
display-nameesandwich/display-name
listener
listener-class
org.springframework.web.context.ContextLoaderListener
/listener-class
/listener
servlet
servlet-namedispatcher/servlet-name
servlet-class
org.springframework.web.servlet.DispatcherServlet
/servlet-class
/servlet
servlet-mapping
servlet-namedispatcher/servlet-name
url-pattern/app/*/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.html/form-login-page
form-error-page/loginError.html/form-error-page
/form-login-config
/login-config

security-constraint
web-resource-collection
web-resource-namedefault/web-resource-name
url-pattern/app/*/url-pattern
http-methodPOST/http-method
http-methodGET/http-method
/web-resource-collection
auth-constraint
descriptioneveryone can log in/description
role-name*/role-name
/auth-constraint
/security-constraint

security-role
descriptionThe Only Secure Role/description
role-nameadmin/role-name
/security-role

/web-app


Many thanks in advance,
Glen.



-Regards
Rashmi

-
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: Problem with compiling tomcat native

2007-04-23 Thread Fargusson.Alan
It may be that the configure script depends on the default shell (/bin/sh) 
being BASH.  Does it work if you do bash configure?

-Original Message-
From: Orlando Reis [mailto:[EMAIL PROTECTED]
Sent: Monday, April 23, 2007 4:25 AM
To: users@tomcat.apache.org
Subject: Problem with compiling tomcat native


Hi, I'm having some trouble compiling tomcat-native-1.1.10-src, I've done
this before on several different platforms, but for some reason the lastest
debian (4.0 etch) is giving me problems.

vserv-deb:/usr/local/build/tomcat-native-1.1.10-src/jni/native# sh buildconf
--with-java-home=$JAVA_HOME --with-apr=/usr/local/build/httpd-2.2.4
/srclib/apr

Looking for apr source in /usr/local/build/httpd-2.2.4/srclib/apr
Creating configure ...
Generating 'make' outputs ...
rebuilding rpm spec file
vserv-deb:/usr/local/build/tomcat-native-1.1.10-src/jni/native# ./configure
--with-java-home=$JAVA_HOME --with-apr=/usr/local/apr-httpd
--with-ssl=/usr/local/openssl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.10
checking for chosen layout... tcnative
checking for APR... yes
  setting CC to gcc
  setting CPP to gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for JDK location (please wait)... /usr/local/java.1.6
checking Java platform... checking Java platform...
checking for sablevm... NONE
  adding -I/usr/local/java.1.6/include to TCNATIVE_PRIV_INCLUDES
checking os_type directory...  linux
  adding -I/usr/local/java.1.6/include/linux to TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for OpenSSL library... using openssl from /usr/local/openssl/lib
and /usr/local/openssl/include
checking OpenSSL library version... ok
checking for OpenSSL DSA support... yes
  adding -I/usr/local/openssl/include to TCNATIVE_PRIV_INCLUDES
  setting TCNATIVE_LDFLAGS to -L/usr/local/openssl/lib -lssl -lcrypto
  adding -DHAVE_OPENSSL to CFLAGS
  setting TCNATIVE_LIBS to 
  setting TCNATIVE_LIBS to  /usr/local/apr-httpd/lib/libapr-1.la -lrt
-lcrypt  -lpthread -ldl
./configure: line 4280: APR_INCLUDES: command not found
./configure: line 4281: APR_LIBS: command not found
./configure: line 4282: APR_LIB_TARGET: command not found
./configure: line 4283: APR_SO_EXT: command not found
./configure: line 4284: BASH: command not found
./configure: line 4285: BASH_ARGC: command not found
./configure: line 4286: BASH_ARGV: command not found
./configure: line 4287: BASH_LINENO: command not found
./configure: line 4288: BASH_SOURCE: command not found
./configure: line 4289: BASH_VERSINFO: command not found
./configure: line 4290: BASH_VERSION: command not found
./configure: line 4291: CC: command not found
./configure: line 4292: CFLAGS: command not found
./configure: line 4293: CPP: command not found





Line 4288

_ACEOF


# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 21 | sed -n
's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
  case $ac_var in #(
  *_cv_*) { echo $as_me:$LINENO: WARNING: Cache variable $ac_var
contains a newline. 5
echo $as_me: WARNING: Cache variable $ac_var contains a newline. 2;} ;;
  esac
  case $ac_var in #(
  _ | IFS | as_nl) ;; #(
  *) $as_unset $ac_var ;;#line 4288
  esac ;;
esac
  done


Any ideas?

Orlando

-
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 http 408 error

2007-04-23 Thread Cain Marko

Hi,

I am running a servlet on tomcat 4.1.

When I hit my servlet, I sometime see the following error message:

uThe client did not produce a
request within the time that the server was prepared to wait
()./u


I am sure that my servlet generates that error message.
Can you please tell me what does this error message mean? Does the client
here mean my Web Browser? or my servlet?

Thank you.


Re: Tomcat + jk + Apache httpd on Windows 2003 Very Slow

2007-04-23 Thread Avi Flax

Rainer, thanks for the suggestion. I set JkLogLevel to debug, and
here's an example of what shows up in the file for a request:

[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] mod_jk.c (2092): Single
worker (localhost) configuration for /manager/status
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] mod_jk.c (2111): Into
handler jakarta-servlet worker=localhost r-proxyreq=0
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_worker.c (114):
found a worker localhost
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_worker.c (321):
Maintaining worker localhost
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_worker.c (290):
Found worker type 'ajp13'
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] mod_jk.c (607): Service
protocol=HTTP/1.1 method=GET host=(null) addr=172.17.100.161
name=java.avif.arc90-dev-01 port=80 auth=(null) user=(null)
laddr=172.17.200.40 raddr=172.17.100.161
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (2343):
acquired connection pool slot=0
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (548):
ajp marshaling done
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (1796):
processing localhost with 2 retries
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
sending to ajp13 pos=4 len=492 max=8192
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
12 34 01 E8 02 02 00 08 48 54 54 50 2F 31 2E 31  -
.4..HTTP/1.1
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
001000 00 0F 2F 6D 61 6E 61 67 65 72 2F 73 74 61 74  -
.../manager/stat
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
002075 73 00 00 0E 31 37 32 2E 31 37 2E 31 30 30 2E  -
us...172.17.100.
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
003031 36 31 00 FF FF 00 16 6A 61 76 61 2E 61 76 69  -
161.java.avi
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
004066 2E 61 72 63 39 30 2D 64 65 76 2D 30 31 00 00  -
f.arc90-dev-01..
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
005050 00 00 0B A0 0B 00 16 6A 61 76 61 2E 61 76 69  -
P...java.avi
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
006066 2E 61 72 63 39 30 2D 64 65 76 2D 30 31 00 A0  -
f.arc90-dev-01..
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
00700E 00 58 4D 6F 7A 69 6C 6C 61 2F 35 2E 30 20 28  -
..XMozilla/5.0.(
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
00804D 61 63 69 6E 74 6F 73 68 3B 20 55 3B 20 49 6E  -
Macintosh;.U;.In
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
009074 65 6C 20 4D 61 63 20 4F 53 20 58 3B 20 65 6E  -
tel.Mac.OS.X;.en
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
00a03B 20 72 76 3A 31 2E 38 2E 31 2E 32 70 72 65 29  -
;.rv:1.8.1.2pre)
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
00b020 47 65 63 6B 6F 2F 32 30 30 37 30 32 32 33 20  -
.Gecko/20070223.
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
00c043 61 6D 69 6E 6F 2F 31 2E 31 62 00 A0 01 00 63  -
Camino/1.1bc
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
00d074 65 78 74 2F 78 6D 6C 2C 61 70 70 6C 69 63 61  -
text/xml,applica
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
00e074 69 6F 6E 2F 78 6D 6C 2C 61 70 70 6C 69 63 61  -
tion/xml,applica
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
00f074 69 6F 6E 2F 78 68 74 6D 6C 2B 78 6D 6C 2C 74  -
tion/xhtml+xml,t
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
010065 78 74 2F 68 74 6D 6C 3B 71 3D 30 2E 39 2C 74  -
ext/html;q=0.9,t
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
011065 78 74 2F 70 6C 61 69 6E 3B 71 3D 30 2E 38 2C  -
ext/plain;q=0.8,
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
012069 6D 61 67 65 2F 70 6E 67 2C 2A 2F 2A 3B 71 3D  -
image/png,*/*;q=
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
013030 2E 35 00 A0 04 00 17 65 6E 2D 55 53 2C 65 6E  -
0.5.en-US,en
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
01403B 71 3D 30 2E 37 2C 68 65 3B 71 3D 30 2E 33 00  -
;q=0.7,he;q=0.3.
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
0150A0 03 00 0C 67 7A 69 70 2C 64 65 66 6C 61 74 65  -
gzip,deflate
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
016000 A0 02 00 1E 49 53 4F 2D 38 38 35 39 2D 31 2C  -
.ISO-8859-1,
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
017075 74 66 2D 38 3B 71 3D 30 2E 37 2C 2A 3B 71 3D  -
utf-8;q=0.7,*;q=
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
018030 2E 37 00 00 0A 4B 65 65 70 2D 41 6C 69 76 65  -
0.7...Keep-Alive
[Mon Apr 23 13:47:46 2007] [1188:2392] [debug] 

Re: Problem with compiling tomcat native

2007-04-23 Thread Orlando Reis

Thanks for the reply Alan.

I'm using bash, and have used bash in Solaris, Linux (Centos, RHE5, Fedora,
Ubuntu).

None of those platforms gave me a headache, only Debian 4.0, with
Debian 3.1I didn't have a problem.

Orlando

On 4/23/07, Fargusson.Alan [EMAIL PROTECTED] wrote:


It may be that the configure script depends on the default shell (/bin/sh)
being BASH.  Does it work if you do bash configure?

-Original Message-
From: Orlando Reis [mailto:[EMAIL PROTECTED]
Sent: Monday, April 23, 2007 4:25 AM
To: users@tomcat.apache.org
Subject: Problem with compiling tomcat native


Hi, I'm having some trouble compiling tomcat-native-1.1.10-src, I've done
this before on several different platforms, but for some reason the
lastest
debian (4.0 etch) is giving me problems.

vserv-deb:/usr/local/build/tomcat-native-1.1.10-src/jni/native# sh
buildconf
--with-java-home=$JAVA_HOME --with-apr=/usr/local/build/httpd-2.2.4
/srclib/apr

Looking for apr source in /usr/local/build/httpd-2.2.4/srclib/apr
Creating configure ...
Generating 'make' outputs ...
rebuilding rpm spec file
vserv-deb:/usr/local/build/tomcat-native-1.1.10-src/jni/native#
./configure
--with-java-home=$JAVA_HOME --with-apr=/usr/local/apr-httpd
--with-ssl=/usr/local/openssl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.10
checking for chosen layout... tcnative
checking for APR... yes
  setting CC to gcc
  setting CPP to gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for JDK location (please wait)... /usr/local/java.1.6
checking Java platform... checking Java platform...
checking for sablevm... NONE
  adding -I/usr/local/java.1.6/include to TCNATIVE_PRIV_INCLUDES
checking os_type directory...  linux
  adding -I/usr/local/java.1.6/include/linux to TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for OpenSSL library... using openssl from /usr/local/openssl/lib
and /usr/local/openssl/include
checking OpenSSL library version... ok
checking for OpenSSL DSA support... yes
  adding -I/usr/local/openssl/include to TCNATIVE_PRIV_INCLUDES
  setting TCNATIVE_LDFLAGS to -L/usr/local/openssl/lib -lssl -lcrypto
  adding -DHAVE_OPENSSL to CFLAGS
  setting TCNATIVE_LIBS to 
  setting TCNATIVE_LIBS to  /usr/local/apr-httpd/lib/libapr-1.la -lrt
-lcrypt  -lpthread -ldl
./configure: line 4280: APR_INCLUDES: command not found
./configure: line 4281: APR_LIBS: command not found
./configure: line 4282: APR_LIB_TARGET: command not found
./configure: line 4283: APR_SO_EXT: command not found
./configure: line 4284: BASH: command not found
./configure: line 4285: BASH_ARGC: command not found
./configure: line 4286: BASH_ARGV: command not found
./configure: line 4287: BASH_LINENO: command not found
./configure: line 4288: BASH_SOURCE: command not found
./configure: line 4289: BASH_VERSINFO: command not found
./configure: line 4290: BASH_VERSION: command not found
./configure: line 4291: CC: command not found
./configure: line 4292: CFLAGS: command not found
./configure: line 4293: CPP: command not found





Line 4288

_ACEOF


# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 21 | sed -n
's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
eval ac_val=\$$ac_var
case $ac_val in #(
*${as_nl}*)
  case $ac_var in #(
  *_cv_*) { echo $as_me:$LINENO: WARNING: Cache variable $ac_var
contains a newline. 5
echo $as_me: WARNING: Cache variable $ac_var contains a newline. 2;}
;;
  esac
  case $ac_var in #(
  _ | IFS | as_nl) ;; #(
  *) $as_unset $ac_var ;;#line 4288
  esac ;;
esac
  done


Any ideas?

Orlando

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




How can I control the path of my web app?

2007-04-23 Thread Christian Schröder

Hi list!
It seems that I have not yet understood the concept of webapps, 
contexts, servlet mappings etc. I have a long experience with good old 
Apache web server, but I'm quite new to servlet development / deployment 
in general and Tomcat in particular.
My problem is as follows: I have a Tomcat 5.5 server with the 
out-of-the-box configuration. And I have a webapp which is packed in a 
war file, say MyWebApp.war. This file contains some classes (servlets) 
in the WEB-INF/classes directory, a web.xml file in WEB-INF and a 
context.xml in META-INF. I have write access to the webapps 
directory of the server (but only to this directory), so I can place the 
war file there. Tomcat (having autoDeploy enabled) then creates a 
directory MyWebApp in the webapps directory and extracts everything 
from the war file to this directory. After this has been done, I can 
find my servlets at the url http://127.0.0.1:8080/MyWebApp/...;
Ok, this works fine. But now I want my servlets to be accessible at 
http://127.0.0.1:8080/foo/bar/MyWebApp/...;. How can I achieve this? I 
have tried to create the directory structure in the webapps directory 
and put the war file into webapps/foo/bar, but then Tomcat doesn't 
unpack the war file at all. Simply changing the path attribute of the 
Context element in my context.xml file didn't work, too.
Is this possible at all if I only have access to the webapps directory 
(and not, for example, to the manager application)?


Thanks a lot for your help,
   Christian

My context.xml file:
?xml version=1.0 encoding=UTF-8?
Context path=/MyWebApp/

My web.xml file:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

   servlet
   servlet-nameTestServlet/servlet-name
   servlet-classTestServlet/servlet-class
   /servlet
   servlet-mapping
   servlet-nameTestServlet/servlet-name
   url-pattern/TestServlet/url-pattern
   /servlet-mapping
   session-config
   session-timeout
   30
   /session-timeout
   /session-config
   welcome-file-list
   welcome-fileTestServlet/welcome-file
   /welcome-file-list
/web-app

--
Deriva GmbH Tel.: +49 551 489500-42
Financial IT and Consulting Fax:  +49 551 489500-91
Hans-Böckler-Straße 2  http://www.deriva.de
D-37079 Göttingen

Deriva CA Certificate: http://www.deriva.de/deriva-ca.cer


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



badly need help on some issues with jakarta Tomcat Connector for IIS

2007-04-23 Thread Swaroop George

Context: I am trying to setup a reverse proxy solution from a DMZ
server to an internal server. The DMZ server is running Windows
2003(32 bit) with IIS 6.0. The internal server is another Windows 2003
box running a JBoss/Tomcat app server.

Additional complexity: The product is Learning Management system from
Saba (http://www.saba.com/products/). The internal LMS server
communicates with a content server (another box running JBoss/Tomcat).

What have been achieved so far?: We used Jakarta Tomcat
Connector(isapi_redirect.dll) for redirection from the DMZ IIS server
to the Tomcat LMS server and that bit is working fine. Redirection to
the content server is also working fine without any specific entries
in the worker.properties file for the content server. DMZ IIS is
serving pages from both LMS and content servers.

What is not working?: The product uses SCORM API whenever the course
progress needs to be saved etc. SCORM API is a set of javascript calls
initiated from the user's browser (calls like LMSInitialize). These
javascript calls does not go through and shows javascript errors, and
the course progress is not being saved.

The precise error being shown is a dialog box with error message
LMSInitialize Error: General Exception

Any help will be highly appreciated

-
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: Problem with compiling tomcat native

2007-04-23 Thread Fargusson.Alan
I just want to make one point clear:  Even when you are using bash, if /bin/sh 
is linked to some other shell, or is a copy of some other shell, then shell 
scripts may be run by that other shell, and not bash.

I have seen problems due to the order in which packages are installed.  It 
seems that some packages link /bin/sh to the shell contained in that package, 
so even though bash was the default shell to start with, some other shell ends 
up replacing it, and fails to run configure scripts.

-Original Message-
From: Orlando Reis [mailto:[EMAIL PROTECTED]
Sent: Monday, April 23, 2007 12:06 PM
To: Tomcat Users List
Subject: Re: Problem with compiling tomcat native


Thanks for the reply Alan.

I'm using bash, and have used bash in Solaris, Linux (Centos, RHE5, Fedora,
Ubuntu).

None of those platforms gave me a headache, only Debian 4.0, with
Debian 3.1I didn't have a problem.

Orlando

On 4/23/07, Fargusson.Alan [EMAIL PROTECTED] wrote:

 It may be that the configure script depends on the default shell (/bin/sh)
 being BASH.  Does it work if you do bash configure?

 -Original Message-
 From: Orlando Reis [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 23, 2007 4:25 AM
 To: users@tomcat.apache.org
 Subject: Problem with compiling tomcat native


 Hi, I'm having some trouble compiling tomcat-native-1.1.10-src, I've done
 this before on several different platforms, but for some reason the
 lastest
 debian (4.0 etch) is giving me problems.

 vserv-deb:/usr/local/build/tomcat-native-1.1.10-src/jni/native# sh
 buildconf
 --with-java-home=$JAVA_HOME --with-apr=/usr/local/build/httpd-2.2.4
 /srclib/apr

 Looking for apr source in /usr/local/build/httpd-2.2.4/srclib/apr
 Creating configure ...
 Generating 'make' outputs ...
 rebuilding rpm spec file
 vserv-deb:/usr/local/build/tomcat-native-1.1.10-src/jni/native#
 ./configure
 --with-java-home=$JAVA_HOME --with-apr=/usr/local/apr-httpd
 --with-ssl=/usr/local/openssl
 checking build system type... i686-pc-linux-gnu
 checking host system type... i686-pc-linux-gnu
 checking target system type... i686-pc-linux-gnu
 checking for a BSD-compatible install... /usr/bin/install -c
 checking for working mkdir -p... yes
 Tomcat Native Version: 1.1.10
 checking for chosen layout... tcnative
 checking for APR... yes
   setting CC to gcc
   setting CPP to gcc -E
 checking for a BSD-compatible install... /usr/bin/install -c
 checking for JDK location (please wait)... /usr/local/java.1.6
 checking Java platform... checking Java platform...
 checking for sablevm... NONE
   adding -I/usr/local/java.1.6/include to TCNATIVE_PRIV_INCLUDES
 checking os_type directory...  linux
   adding -I/usr/local/java.1.6/include/linux to TCNATIVE_PRIV_INCLUDES
 checking for gcc... gcc
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ISO C89... none needed
 checking for OpenSSL library... using openssl from /usr/local/openssl/lib
 and /usr/local/openssl/include
 checking OpenSSL library version... ok
 checking for OpenSSL DSA support... yes
   adding -I/usr/local/openssl/include to TCNATIVE_PRIV_INCLUDES
   setting TCNATIVE_LDFLAGS to -L/usr/local/openssl/lib -lssl -lcrypto
   adding -DHAVE_OPENSSL to CFLAGS
   setting TCNATIVE_LIBS to 
   setting TCNATIVE_LIBS to  /usr/local/apr-httpd/lib/libapr-1.la -lrt
 -lcrypt  -lpthread -ldl
 ./configure: line 4280: APR_INCLUDES: command not found
 ./configure: line 4281: APR_LIBS: command not found
 ./configure: line 4282: APR_LIB_TARGET: command not found
 ./configure: line 4283: APR_SO_EXT: command not found
 ./configure: line 4284: BASH: command not found
 ./configure: line 4285: BASH_ARGC: command not found
 ./configure: line 4286: BASH_ARGV: command not found
 ./configure: line 4287: BASH_LINENO: command not found
 ./configure: line 4288: BASH_SOURCE: command not found
 ./configure: line 4289: BASH_VERSINFO: command not found
 ./configure: line 4290: BASH_VERSION: command not found
 ./configure: line 4291: CC: command not found
 ./configure: line 4292: CFLAGS: command not found
 ./configure: line 4293: CPP: command not found





 Line 4288

 _ACEOF


 # The following way of writing the cache mishandles newlines in values,
 # but we know of no workaround that is simple, portable, and efficient.
 # So, we kill variables containing newlines.
 # Ultrix sh set writes to stderr and can't be redirected directly,
 # and sets the high bit in the cache file unless we assign to the vars.
 (
   for ac_var in `(set) 21 | sed -n
 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 eval ac_val=\$$ac_var
 case $ac_val in #(
 *${as_nl}*)
   case $ac_var in #(
   *_cv_*) { echo $as_me:$LINENO: WARNING: Cache variable $ac_var
 

Re: badly need help on some issues with jakarta Tomcat Connector for IIS

2007-04-23 Thread Per Jonsson
Usually the SCORM functionality is hidden in a Servlet or something 
similar so the problem if the client can't get throu to that particular 
servlet or resource it needs. Ask the product support if there is any 
special path which the client have to have access to in the LMS. And 
make sure you have the right setup in the IIS, tomcat and conector 
settings so the client (webreader) have access to this servlet/resource.


/Per Jonsson

Swaroop George skrev:

Context: I am trying to setup a reverse proxy solution from a DMZ
server to an internal server. The DMZ server is running Windows
2003(32 bit) with IIS 6.0. The internalt server is another Windows 2003
box running a JBoss/Tomcat app server.

Additional complexity: The product is Learning Management system from
Saba (http://www.saba.com/products/). The internal LMS server
communicates with a content server (another box running JBoss/Tomcat).

What have been achieved so far?: We used Jakarta Tomcat
Connector(isapi_redirect.dll) for redirection from the DMZ IIS server
to the Tomcat LMS server and that bit is working fine. Redirection to
the content server is also working fine without any specific entries
in the worker.properties file for the content server. DMZ IIS is
serving pages from both LMS and content servers.

What is not working?: The product uses SCORM API whenever the course
progress needs to be saved etc. SCORM API is a set of javascript calls
initiated from the user's browser (calls like LMSInitialize). These
javascript calls does not go through and shows javascript errors, and
the course progress is not being saved.

The precise error being shown is a dialog box with error message
LMSInitialize Error: General Exception

Any help will be highly appreciated

-
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: How can I control the path of my web app?

2007-04-23 Thread Caldarale, Charles R
 From: Christian Schröder [mailto:[EMAIL PROTECTED] 
 Subject: How can I control the path of my web app?
 
 But now I want my servlets to be accessible at 
 http://127.0.0.1:8080/foo/bar/MyWebApp/...;.

If you want to use a multi-level URL path to access your webapp, you need to do 
two things:

1) Place your .war file outside of Tomcat's directory structure to avoid having 
it deployed twice.

2) Create a file named foo#bar#MyWebApp.xml in conf/Catalina/[host] that 
contains a Context element with a docBase attribute pointing to the absolute 
location of your .war file.  (The value of [host] in the above is usually 
localhost, unless you've fiddled with the Host element in the server.xml 
file.)  This will override the META-INF/context.xml file that you may have in 
your webapp.

Also, remove the path attribute from your context.xml; this is not allowed 
unless the Context element is within server.xml, which is strongly 
discouraged.  The path is determined by the name of the .war file (or 
directory) if under webapps, or the name of the .xml files under 
conf/Catalina/[host].

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Stable versions of Tomcat/JDK

2007-04-23 Thread Will Holmes
We are looking to upgrade our versions of Tomcat and JDK.  What versions
would you recommend?   We are currently on Tomcat version 5.0.28 and JDK
version 1.4.11.
 
Thanks!
 
Will Holmes
Programmer Analyst
Fremont Insurance Company
Ph: 231-924-0302 Ext. 145
E-Mail: [EMAIL PROTECTED]
 


Re: Tomcat + jk + Apache httpd on Windows 2003 Very Slow

2007-04-23 Thread Rainer Jung
OK, but for this request all log lines belonging to the request were
logged during a single second. So there's no indication, hat this
request took a long time (like the 10 seconds you mentioned in your
original post).

Regards,

Rainer

Avi Flax schrieb:
 Rainer, thanks for the suggestion. I set JkLogLevel to debug, and
 here's an example of what shows up in the file for a request:
 
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] mod_jk.c (2092): Single
 worker (localhost) configuration for /manager/status
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] mod_jk.c (2111): Into
 handler jakarta-servlet worker=localhost r-proxyreq=0
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_worker.c (114):
 found a worker localhost
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_worker.c (321):
 Maintaining worker localhost
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_worker.c (290):
 Found worker type 'ajp13'
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] mod_jk.c (607): Service
 protocol=HTTP/1.1 method=GET host=(null) addr=172.17.100.161
 name=java.avif.arc90-dev-01 port=80 auth=(null) user=(null)
 laddr=172.17.200.40 raddr=172.17.100.161
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (2343):
 acquired connection pool slot=0
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (548):
 ajp marshaling done
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (1796):
 processing localhost with 2 retries
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 sending to ajp13 pos=4 len=492 max=8192
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 12 34 01 E8 02 02 00 08 48 54 54 50 2F 31 2E 31  -
 .4..HTTP/1.1
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 001000 00 0F 2F 6D 61 6E 61 67 65 72 2F 73 74 61 74  -
 .../manager/stat
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 002075 73 00 00 0E 31 37 32 2E 31 37 2E 31 30 30 2E  -
 us...172.17.100.
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 003031 36 31 00 FF FF 00 16 6A 61 76 61 2E 61 76 69  -
 161.java.avi
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 004066 2E 61 72 63 39 30 2D 64 65 76 2D 30 31 00 00  -
 f.arc90-dev-01..
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 005050 00 00 0B A0 0B 00 16 6A 61 76 61 2E 61 76 69  -
 P...java.avi
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 006066 2E 61 72 63 39 30 2D 64 65 76 2D 30 31 00 A0  -
 f.arc90-dev-01..
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 00700E 00 58 4D 6F 7A 69 6C 6C 61 2F 35 2E 30 20 28  -
 ..XMozilla/5.0.(
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 00804D 61 63 69 6E 74 6F 73 68 3B 20 55 3B 20 49 6E  -
 Macintosh;.U;.In
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 009074 65 6C 20 4D 61 63 20 4F 53 20 58 3B 20 65 6E  -
 tel.Mac.OS.X;.en
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 00a03B 20 72 76 3A 31 2E 38 2E 31 2E 32 70 72 65 29  -
 ;.rv:1.8.1.2pre)
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 00b020 47 65 63 6B 6F 2F 32 30 30 37 30 32 32 33 20  -
 .Gecko/20070223.
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 00c043 61 6D 69 6E 6F 2F 31 2E 31 62 00 A0 01 00 63  -
 Camino/1.1bc
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 00d074 65 78 74 2F 78 6D 6C 2C 61 70 70 6C 69 63 61  -
 text/xml,applica
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 00e074 69 6F 6E 2F 78 6D 6C 2C 61 70 70 6C 69 63 61  -
 tion/xml,applica
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 00f074 69 6F 6E 2F 78 68 74 6D 6C 2B 78 6D 6C 2C 74  -
 tion/xhtml+xml,t
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 010065 78 74 2F 68 74 6D 6C 3B 71 3D 30 2E 39 2C 74  -
 ext/html;q=0.9,t
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 011065 78 74 2F 70 6C 61 69 6E 3B 71 3D 30 2E 38 2C  -
 ext/plain;q=0.8,
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 012069 6D 61 67 65 2F 70 6E 67 2C 2A 2F 2A 3B 71 3D  -
 image/png,*/*;q=
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 013030 2E 35 00 A0 04 00 17 65 6E 2D 55 53 2C 65 6E  -
 0.5.en-US,en
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 01403B 71 3D 30 2E 37 2C 68 65 3B 71 3D 30 2E 33 00  -
 ;q=0.7,he;q=0.3.
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 0150A0 03 00 0C 67 7A 69 70 2C 64 65 66 6C 61 74 65  -
 gzip,deflate
 [Mon Apr 23 13:47:46 2007] [1188:2392] [debug] jk_ajp_common.c (896):
 016000 A0 02 00 1E 49 53 4F 2D 38 38 35 39 2D 31 2C  -
 

How do I create a single jar of tomcat embedded on the Mac?

2007-04-23 Thread risky57

ok, ive got my tomcat embedded application working.

in eclipse. it runs. starts. stops. all fine.


i cant seem to jar this application up properly.

i need a single executable jar. 
i keep getting:
Exception in thread main java.lang.NoClassDefFoundError:


can anyone help?



-- 
View this message in context: 
http://www.nabble.com/How-do-I-create-a-single-jar-of-tomcat-embedded-on-the-Mac--tf3634310.html#a10148867
Sent from the Tomcat - User mailing list archive 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: How do I create a single jar of tomcat embedded on the Mac?

2007-04-23 Thread Martin Gainty
please display the name of the class which is missing (from 
ClassDefNotFound) which should be displayed in either

%CATALINA_HOME%/logs/localhost.-MM-DD.log
%CATALINA_HOME%/logs/stdout_MMDD.log

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: risky57 [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, April 23, 2007 4:46 PM
Subject: How do I create a single jar of tomcat embedded on the Mac?




ok, ive got my tomcat embedded application working.

in eclipse. it runs. starts. stops. all fine.


i cant seem to jar this application up properly.

i need a single executable jar.
i keep getting:
Exception in thread main java.lang.NoClassDefFoundError:


can anyone help?



--
View this message in context: 
http://www.nabble.com/How-do-I-create-a-single-jar-of-tomcat-embedded-on-the-Mac--tf3634310.html#a10148867

Sent from the Tomcat - User mailing list archive 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]





-
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: How do I create a single jar of tomcat embedded on the Mac?

2007-04-23 Thread Caldarale, Charles R
 From: risky57 [EMAIL PROTECTED]
 Subject: How do I create a single jar of tomcat embedded on the Mac?
 
 i need a single executable jar.
 i keep getting:
 Exception in thread main java.lang.NoClassDefFoundError:

The jar should have a META-INF/MANIFEST.MF file in it (the names must be
upper case).  Within this file, there should be a line declaring the
Main-Class of the application.  What does yours have in it?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Stable versions of Tomcat/JDK

2007-04-23 Thread Rashmi Rubdi

I use the current latest released (non-beta) version 6.0.10 with
the latest JDK --- 1.6.0 - it has been quite stable from my experience so far.

Please note that the directory structure in 6.x has changed to a
smaller, simpler structure.
I was successfully able to upgrade my web applications from 5.5.x to 6.x.

-Rashmi

On 4/23/07, Will Holmes [EMAIL PROTECTED] wrote:

We are looking to upgrade our versions of Tomcat and JDK.  What versions
would you recommend?   We are currently on Tomcat version 5.0.28 and JDK
version 1.4.11.

Thanks!

Will Holmes
Programmer Analyst
Fremont Insurance Company
Ph: 231-924-0302 Ext. 145
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: How can I control the path of my web app?

2007-04-23 Thread Christian Schröder
Caldarale, Charles R wrote:

 If you want to use a multi-level URL path to access your webapp, you need to 
 do two things:

 1) Place your .war file outside of Tomcat's directory structure to avoid 
 having it deployed twice.

 2) Create a file named foo#bar#MyWebApp.xml in conf/Catalina/[host] that 
 contains a Context element with a docBase attribute pointing to the 
 absolute location of your .war file.  (The value of [host] in the above is 
 usually localhost, unless you've fiddled with the Host element in the 
 server.xml file.)  This will override the META-INF/context.xml file that you 
 may have in your webapp.
   

Do I have any chance if I don't have access to any directory outside of
the webapps directory?

Regards,
Christian

-- 
Deriva GmbH Tel.: +49 551 489500-42
Financial IT and Consulting Fax:  +49 551 489500-91
Hans-Böckler-Straße 2  http://www.deriva.de
D-37079 Göttingen

Deriva CA Certificate: http://www.deriva.de/deriva-ca.cer


-
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: How can I control the path of my web app?

2007-04-23 Thread Caldarale, Charles R
 From: Christian Schröder [mailto:[EMAIL PROTECTED] 
 Subject: Re: How can I control the path of my web app?
 
 Do I have any chance if I don't have access to any directory 
 outside of the webapps directory?

Not that I can figure out, but others might have some ideas.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
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: Cannot pass parameters to tomcat5.exe //IS//MyService and a few other questions

2007-04-23 Thread Caldarale, Charles R
 From: tenley ludewig [mailto:[EMAIL PROTECTED] 
 Subject: Cannot pass parameters to tomcat5.exe 
 //IS//MyService and a few other questions
 
 1.  I am using Tomcat 5.5 and JDK 1.5 and trying to install a 
 Windows service with the following command.

Why aren't you using the supplied .bat script or Tomcat's Windows
installer to create the service?  Rolling your own is rather risky.

 2.  I have tried starting Tomcat with catalina.sh start

That would be a good trick on Windows.

 INFO: validateJarFile(C:\Program 
 Files\AOL\OPIS30\webapps\aimauth\WEB-INF\lib\javaee.jar) - 
 jar not loaded. See Servlet Spec 2.3, section 9.7.2. 
 Offending class: javax/servlet/Servlet.class

Do not ever, ever put javaee.jar inside your webapp.  Whatever container
you're using will supply the necessary EE classes to run in its
environment.

 3.  Do I need to do anything special to start Tomcat with 
 just a JRE (instead of a JDK) as of Tomcat 5.5?  I have seen 
 conflicting messages regarding this.

You have to set the environment variable JRE_HOME rather than JAVA_HOME.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: How can I control the path of my web app?

2007-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
 From: Christian Schröder [mailto:[EMAIL PROTECTED] 
 Subject: Re: How can I control the path of my web app?

 Do I have any chance if I don't have access to any directory 
 outside of the webapps directory?
 
 Not that I can figure out, but others might have some ideas.

Does the manager application allow you to deploy WARs with custom
configuration (such as this), or does it only allow vanilla WARs with a
context.xml within them?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGLTLX9CaO5/Lv0PARAkYOAJwJ8irCITrkpmrcs+a2DvsxGaQMRwCeNHpM
WTfMm/mAWo8X+TrgHDpC5qU=
=jPs5
-END PGP SIGNATURE-

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



RE: How can I control the path of my web app?

2007-04-23 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
 Subject: Re: How can I control the path of my web app?
 
 Does the manager application allow you to deploy WARs with custom
 configuration (such as this), or does it only allow vanilla 
 WARs with a context.xml within them?

It wouldn't surprise me if it does, but I haven't been able to figure it
out yet.  You can specify a path and an alternate location for the .xml
file; there may be some trick to getting it work with a multi-level
path, but it's not obvious.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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 http 408 error

2007-04-23 Thread Mark Thomas
Cain Marko wrote:
 Hi,
 
 I am running a servlet on tomcat 4.1.
 
 When I hit my servlet, I sometime see the following error message:
 
 uThe client did not produce a
 request within the time that the server was prepared to wait
 ()./u
In this case, the client is your browser. It means a connection was
established but no data was sent with in the timeout period. This is
the connectionTimeout parameter of the connector.

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: Same entries in stderr and catalina logs

2007-04-23 Thread Rashmi Rubdi

Hi Naveen,

I don't know the big picture about why the same logs get posted to
Standard Output (Console) and Catalina log files , but this is default
behavior.

There might be some logging configuration that may allow one to turn
off logging to either the console or the log file, but I wouldn't
worry too much about it. It's only a few lines that get written when
TC starts up.

You can separately write your application level logs (INFO, ERROR,
etc) in separate log files with utilities like Log4J --- discussions
on Log4J are outside the scope of this list, but there's a Log4J user
mailing list if you are interested in it.

-Regards
Rashmi

On 4/23/07, naveen nagaraja [EMAIL PROTECTED] wrote:

HI all
I thought there was some problem with my earlier post. So i am reposting.

i am running tomcat 5.5.9 as a service in windows xp. i see log files are 
created under the
log folder correctly.
My question is that i see same entries in catalina and stderr files. following
is the entry of both the files.

Any idea why this is happenning?
Thanks in advance.
Naveen

Apr 22, 2007 7:23:47 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 22, 2007 7:23:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 672 ms
Apr 22, 2007 7:23:47 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 22, 2007 7:23:47 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Apr 22, 2007 7:23:47 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 22, 2007 7:23:48 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 22, 2007 7:23:48 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 22, 2007 7:23:48 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Apr 22, 2007 7:23:48 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 22, 2007 7:23:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1000 ms



-
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 http 408 error

2007-04-23 Thread Cain Marko

Thanks.

I notice in the server code, in some case, it does this in the doGet():
response.setStatus(408);
   return;

Will it cause tomcat to send down and error page to client with the error
message?

uThe client did not produce a request within the time that the server was
prepared to wait()./u

On 4/23/07, Mark Thomas [EMAIL PROTECTED] wrote:


Cain Marko wrote:
 Hi,

 I am running a servlet on tomcat 4.1.

 When I hit my servlet, I sometime see the following error message:

 uThe client did not produce a
 request within the time that the server was prepared to wait
 ()./u
In this case, the client is your browser. It means a connection was
established but no data was sent with in the timeout period. This is
the connectionTimeout parameter of the connector.

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]




Listener vs. load-on-startup

2007-04-23 Thread lizhg
Hi all,I have some problem with Listener and  load-on-startup,I serch on google 
and I find this article below,it do a lot good to me, but I still want to ask , 
using the init() of a servlet and the contextDestroyed() of a listener are 
equal to Iusing the  contexInitialized() and the contextDestroyed() of a
listener?
 
On 9 Nov 2001, Dr. Evil wrote:

 Date: 9 Nov 2001 07:43:17 -
 From: Dr. Evil [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: API 2.3: Listener vs. load-on-startup


 I have a few classes that need to be loaded by Tomcat before it starts
 to serve any requests.  One of these opens a database pool, another
 opens a logger, etc.  The traditional way to do this is with
 load-on-startup like this:

servlet
   servlet-namestartlogging/servlet-name
   servlet-classstartlogging/servlet-class
   load-on-startup1/load-on-startup
/servlet

 which calls the init() method of the class.

 However, I need to have an object installed into the ServletContext
 object before any requests can be serviced.  The init() method of a
 servlet seems to have no access to the ServletContext object (is this
 correct?).

You have access to the servlet context via the getServletContext() method
of the servlet -- it is pre-initialized to work for you.  However, using a
listener is the better way to do this in a Servlet 2.3 environment.

  Because of this, I am thinking of using the new listener
 declaration to achieve this same goal.  I can declare a listener like
 this:

 listener
 listener-classdostartupstuff/listener-class
 /listener

 and then in the dostartupstuff class, I declare a method:

 public void contexInitialized(ServletContextEvent e) { ... }

 which will be called as soon as the context is created.

 Is this the right way to do this?

Yes.  That is exactly what context listeners are designed to do.

Why is it better than a servlet init() method?  Because the container
gives you *no* guarantee that it will keep a servlet loaded for the
lifetime of the application (although many of them do), so if you clean up
your resources in the destroy() method -- such as closing database
connections -- this might happen to you at a bad time.  The
contextDestroyed() method of your listener will not get called until the
application is really being shut down.

 And is there a way I can control
 the order in which listeners are called?


At startup time, listeners are called in the order they are defined in the
deployment descriptor -- at shutdown time, they are called in reverse
order.  For more info, see the 2.3 spec:

  http://java.sun.com/products/servlet/download.html

 Thanks


Craig