Re: Tomcat 5 vs. Resin?

2004-04-03 Thread Hiroshi Iwatani
Yes. Lately, Tomcat is unnecessarily complex. Resin is much simpler,
easy to use, easy to configure, has good performance, smarter code
generation for JSP than Tomcat, chief developer Scott is a very nice
guy with deep knowledge, etc., etc.
Best thing for me is, in Resin, you don't have to recompile the source
when you updated your servlet. Both recompile and reload is done
automatically. When you use jikes, recompile is very fast.
For test development and for learning, you don't have to write any
web.xml nor any conf. Very easy!
Josh Rehman wrote:
Has anyone compared Tomcat 5 and Resin?

Resin has a huge drawback of being closed-source, but it has a great 
reputation for being small, fast, and easy to configure. Tomcat is 
working for us, but has been something of a bear WRT learning curves and 
gotchas, so I'm interested in learning more about the alternatives.

Thanks.

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

--
Hiroshi Iwatani
*stop cruelty* Annual number of institutionally euthanized cats and dogs 
including kittens and puppies: US 5 million, JP 500 thousand. How about your 
country? *for our better karma*
-

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


Connecting Apache 2 and Tomcat 5 in process using JK2 on Solairs 9

2004-04-03 Thread Dale, Matt
Hi,

I'm having some trouble getting Tomcat to start in process, i've seen the error in the 
archives but no-one has suggested a solution.

I am using the minimum recommended configuration from the jakarta site for both 
jk2.properties and workers2.properties but have increased logging to DEBUG so you can 
see what is going on.

Basically as far as I can tell it seems to think it is on windows and although states 
that it is going to use LD_LIBRARY_PATH it ignores it.

below i'll include all my conf files and the apache error log that shows the errors.

Thanks for any help or tips
Matt



Apache is 2.0.48
Tomcat is 5.0.19
JK2 is 2.0.4
JDK is 1.4.2_04

bash-2.05# find /usr/local/j2sdk1.4.2_04 -name "libjvm.so"
/usr/local/j2sdk1.4.2_04/jre/lib/sparc/server/libjvm.so
/usr/local/j2sdk1.4.2_04/jre/lib/sparc/client/libjvm.so
/usr/local/j2sdk1.4.2_04/jre/lib/sparc/libjvm.so

bash-2.05# echo $LD_LIBRARY_PATH
/usr/local/j2sdk1.4.2_04/jre/lib/sparc/server:/usr/local/lib

bash-2.05# cat /usr/local/jakarta-tomcat-5.0.19/conf/jk2.properties
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
 handler.list=apr,request,container,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess



bash-2.05# cat /usr/local/apache2.0.48/conf/workers2.properties
[logger]
level=DEBUG

# Define the comunication channel
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

# Define the parameters for the Java Virtual Machine
[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=/usr/local/jakarta-tomcat-5.0.19/lib/tomcat-jni.jar;/usr/local/jakarta-tomcat-5.0.19/lib/tomcat.jar
OPT=-Dtomcat.home=/usr/local/jakarta-tomcat-5.0.19
OPT=-Dcatalina.home=/usr/local/jakarta-tomcat-5.0.19
OPT=-Xmx128M

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
stdout=${serverRoot}/logs/stdout.log
stderr=${serverRoot}/logs/stderr.log

# JNI worker shutdown handler
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp


bash-2.05# cat error_log
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done logger
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done channel.jni:jni
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done vm:
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done worker.jni:onStartup
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done worker.jni:onShutdown
[Sat Apr 03 11:01:30 2004] [notice] config.update(): done uri:/examples/*
[Sat Apr 03 11:01:30 2004] [notice] shm.init(): shm file not specified
[Sat Apr 03 11:01:30 2004] [notice] jk2_init() Setting scoreboard slot 0 for child 
24354
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/bin/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/bin/client/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/lib/i386/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/bin/classic/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
[Sat Apr 03 11:01:30 2004] [error] vm.init(): no jvm_dll_path, will use 
LD_LIBRARY_PATH libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jk2_init() Setting scoreboard slot 0 for child 
24355
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/bin/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/bin/client/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/lib/i386/classic/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed 
/usr/local/j2sdk1.4.2_04/jre/bin/classic/jvm.so
[Sat Apr 03 11:01:30 2004] [notice] jni.guessJvmDll() failed
[Sat Apr 0

Re: FW: jsp:include tag does not preserve encoding of the text

2004-04-03 Thread Hiroshi Iwatani
In your deployment, html is handled by Apache and not processed by JSP/Servlet
engine. Included JSP inherit main-page setting. If you run Tomcat stand-alone
without other HTTP server, you will find its html handling characteristics.
I don't expect much from Tomcat, though ;-)
eMantra Information wrote:
hi

I am using Apache web server and Tomcat 4.1.

I have a jsp:include tag (in say test1.jsp) and I am trying to include a data1.html file. This html file contains UTF-8 encoded text. When this JSP is executed, the UTF-8 text is displayed as garbage characters.

I have included following in the JSP
<%@ page contentType="text/html; charset=UTF-8" %> 

I have included following in the info.html

However if I rename the info.html to data1.jsp and then include, the UTF-8 text gets displayed correctly.

I suppose, the JSP engine does not interprete the content of the html file correctly 
according to its encoding.
Where as if it is a .jsp, then it is int erpreting it appropriately?
Can anybody throw some lite on this?

regards
haresh

sample files...

test1.jsp..
<%@ page contentType="text/html; charset=UTF-8" %> 

<% 

response.setContentType("text/html; charset=UTF-8");

%>




















data1.html.


 à àà  .


--
Hiroshi Iwatani
*stop cruelty* Annual number of institutionally euthanized cats and dogs 
including kittens and puppies: US 5 million, JP 500 thousand. How about your 
country? *for our better karma*
-

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


JNDI Datasource receives AccessControlException with Security Manager

2004-04-03 Thread Juergen Weber
I got database connection up and running as described
in tomcat-docs/jndi-datasource-examples-howto.html

But it does not run with the Security Manager enabled.

The mysql driver and commons-dbcp are in common/lib,
so 

grant codeBase "file:${catalina.home}/common/-" {
permission java.security.AllPermission;
};

should trigger.

What permissions are needed, too?

BTW, I test with Windows.

Thanks,
Jürgen



org.apache.commons.dbcp.SQLNestedException: Cannot
create PoolableConnectionFact
ory, cause:
java.sql.SQLException: Server connection failure
during transaction. Due to unde
rlying exception:
'java.security.AccessControlException: access denied
(java.net
.SocketPermission 127.0.0.1:3306 connect,resolve)'.
Attempted reconnect 3 times. Giving up.
at
com.mysql.jdbc.Connection.createNewIO(Connection.java:1811)
at
com.mysql.jdbc.Connection.(Connection.java:432)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:400)
at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv
erConnectionFactory.java:82)
at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
ConnectionFactory.java:300)
at
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas
icDataSource.java:838)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:821)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:518)
at
de.jwi.jgallery.db.DBManager.getAndIncFolderCounter(DBManager.java:47
)
at
de.jwi.jgallery.Folder.getCounter(Folder.java:975)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:314)
at
org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
at
org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEval
uatorImpl.java:263)
at
org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEval
uatorImpl.java:190)
at
org.apache.jasper.runtime.PageContextImpl$13.run(PageContextImpl.java
:926)
at
java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageCon
textImpl.java:922)
at
org.apache.jsp.skins.Standard.slide_jsp._jspx_meth_jg_if_6(slide_jsp.
java:846)
at
org.apache.jsp.skins.Standard.slide_jsp._jspService(slide_jsp.java:17
7)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:311)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
01)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284
)
at
java.security.AccessController.doPrivileged(Native
Method)
at
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:3
06)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.
java:200)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:278)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(Applicatio
nFilterChain.java:97)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilt
erChain.java:187)
at
java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:183)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:750)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:510)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:445)
at
org.apache.catalina.core.ApplicationDispatcher.access$000(Application
Dispatcher.java:118)
at
org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(
ApplicationDispatcher.java:133)
at
java.security.AccessController.doPrivilege

Re: Tomcat Site slow and stops responding after certain number of threads

2004-04-03 Thread Graham Bleach
On Thu, Apr 01, 2004 at 10:39:37PM -0500, sp k wrote:
> We have a Tomcat site which becomes terribly slow and then stops responding 
> after the thread count in windows task manager reaches 107 threads. We are 
> using Tomcat 4.1.27 on windows 2000 machine.  Our load tests could never 
> emulate this behavior that occurs under real load. When the site crashes 
> the memory consumption of the site is less than the initial max heap size 
> set for it.
> 
> Did any one ever face similar issues, we are baffled as to why 107 threads? 
> Is related to the connector threads or JVM's garbage collection?
> 
> Does anyone have any idea why the site would crash at the same thread level?

Have you checked the minProcessors and maxProcessors setting for your
connector in $CATALINA_HOME/conf/server.xml? You don't say which
connector you are using, but the Coyote connectors all have a limit on
the number of threads dedicated to connection handling.

Documentation on connector configuration:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html

It should be logged when you reach the maximum processors, but I can't,
offhand remember where.

G
-- 
One of my most productive days was throwing away 1000 lines of code.
-- Ken Thompson

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



Mapping to a different port on localhost, using mod_jk2

2004-04-03 Thread Dominique Kraus-Ahma
Hi,

i am using jk2 for the connection between Apache 2.0.49 and Tomcat  5.0.19
(on Win32). In httpd.conf, i am using a virtual host (localhost:8090),
where my project resides. Now i am trying to figure out, how to map the
standard worker to process all JSPs on that virtual host. I tried
---
#  mapping mime types for tomcat

JkUriSet worker ajp13:localhost:8009


JkUriSet worker ajp13:localhost:8009


JkUriSet worker ajp13:localhost:8009

---
in the httpd.conf, but when doing so, tomcat answers with a 404?

I also edited workers.properties
---
[uri:localhost:8090/*]
worker=ajp13:localhost:8009
---

instead of/in addition to the settings above. But this would display the
tomcat main page!

Then i thought, i should try to add a new virtual additional  in the
Standard  in server.xml
---

---
but this did not work at all!

Any ideas?

Thanx,
Dominique




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



Re: AGAIN jk2 2.0.4 compile

2004-04-03 Thread Graham Bleach
On Thu, Apr 01, 2004 at 06:40:24PM +0100, Dale, Matt wrote:
> I think that using JK2 with apache 1.3 is unsupported and that you
> should either use the JK connector or upgrade to apache 2.

Is this correct? I'm planning to use mod_jk2 with Apache 1.3.29 and Tomcat
4.1.29 in a production environment and would appreciate it if someone
could confirm whether it is supported.

G
-- 
The art of taxation consists of plucking the goose so as to obtain the
most feathers with the least hissing.
-- Jean-Baptiste Colbert

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



Problem with starting up Tomcat 5.0.1.9 using launcher - a classpath issue?

2004-04-03 Thread Yair Fine
Hi,
I installed Tomcat 5.0.1.9 on Windows 2000.
 
When I run Start menu-> programs -> Apache Tomcat 5.0 -> Start Tomcat ,
nothing happens, and no tomcat icon appears.
 
When i go to bin directory and run startup-using-launcher.bat , I get an
exception :
java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at org.apache.commons.launcher.Launcher.start(Launcher.java:385)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at LauncherBootstrap.main(LauncherBootstrap.java:185)
 
Indeed, if i look at ant.jar ion common\lib, there is no
org/apache/tools/ant/launch/AntMain class
Though is if run startup.bat, the server starts and work 
I have my JAVA_HOME variable path going to the right place
 
Enyone have a clue ?
Regards 
Yair Fine
 


RE: Problem with starting up Tomcat 5.0.1.9 using launcher - a classpath issue?

2004-04-03 Thread FRANCOIS Dufour
i ad the same ive red somwere to copy tool .jar to a folder in tomcat i tink 
its comun/lib
not shure try to ad catalina_home environement variable  pointing to your 
tomcat instalation folder



[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc




From: "Yair Fine" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Problem with starting up Tomcat 5.0.1.9 using launcher - a 
classpath issue?
Date: Sat, 3 Apr 2004 14:52:43 +0200

Hi,
I installed Tomcat 5.0.1.9 on Windows 2000.
When I run Start menu-> programs -> Apache Tomcat 5.0 -> Start Tomcat ,
nothing happens, and no tomcat icon appears.
When i go to bin directory and run startup-using-launcher.bat , I get an
exception :
java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at org.apache.commons.launcher.Launcher.start(Launcher.java:385)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at LauncherBootstrap.main(LauncherBootstrap.java:185)
Indeed, if i look at ant.jar ion common\lib, there is no
org/apache/tools/ant/launch/AntMain class
Though is if run startup.bat, the server starts and work
I have my JAVA_HOME variable path going to the right place
Enyone have a clue ?
Regards
Yair Fine
_
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/

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


SendRedirect and IllegalStateException

2004-04-03 Thread Umesha Balasubramaniam
Hi Everyone,

I am brushing up on my servlet programming after a long lay off. I was 
working through this book and came across the perils of using 
sendRedirect after commiting the response. My understanding according 
to the book and the 2.4 servlet api is that if you call the 
sendRedirect method after outputting something with the PrintWriter and 
flushing it should throw an Illegal exception, right? I want to know if 
anyone out there also noticed this or am I doing something wrong?
Tomcat version: 5.0.19
OS: Mac OS X 10.3.3
J2SDK:  1.4.2_03

My code:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class RedirectException extends HttpServlet{

  public void doGet(HttpServletRequest request,
  HttpServletResponse response) throws 
ServletException,
  IOException {

  PrintWriter writer = response.getWriter();
  writer.println("");
  writer.println("");
  writer.println("Company News!!");
  writer.println("");
  writer.println("");
  writer.flush();
  response.sendRedirect("http://news.bbc.co.uk";);


  }
}
What is happening is that the browser is displaying Company News!

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


RE: Problem with starting up Tomcat 5.0.1.9 using launcher - a classpath issue?

2004-04-03 Thread Yair Fine
Did you mean tools.jar ? It is already in common\lib
I also have my CATALINA_HOME environement variable set (C:\Program
Files\Apache Software Foundation\Tomcat 5.0) 
It still don't work
Yair

-Original Message-
From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] 
Sent: ש 03 אפריל 2004 15:48
To: [EMAIL PROTECTED]
Subject: RE: Problem with starting up Tomcat 5.0.1.9 using launcher - a
classpath issue?


i ad the same ive red somwere to copy tool .jar to a folder in tomcat i
tink 
its comun/lib
not shure try to ad catalina_home environement variable  pointing to
your 
tomcat instalation folder




[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc





>From: "Yair Fine" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Problem with starting up Tomcat 5.0.1.9 using launcher - a
>classpath issue?
>Date: Sat, 3 Apr 2004 14:52:43 +0200
>
>Hi,
>I installed Tomcat 5.0.1.9 on Windows 2000.
>
>When I run Start menu-> programs -> Apache Tomcat 5.0 -> Start Tomcat ,

>nothing happens, and no tomcat icon appears.
>
>When i go to bin directory and run startup-using-launcher.bat , I get 
>an exception :
>java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at
>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> at
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> at
org.apache.commons.launcher.Launcher.start(Launcher.java:385)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>v
>a:39)
> at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
>Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at LauncherBootstrap.main(LauncherBootstrap.java:185)
>
>Indeed, if i look at ant.jar ion common\lib, there is no 
>org/apache/tools/ant/launch/AntMain class Though is if run startup.bat,

>the server starts and work I have my JAVA_HOME variable path going to 
>the right place
>
>Enyone have a clue ?
>Regards
>Yair Fine
>

_
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/


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


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



Apllications used to work - now hangs without any message in the logs

2004-04-03 Thread Christian Riedel
Hi,

using Tomcat 5.0.19 we ran a web app that used to work just fine until 
Wednesday. But here is our problem:

The app uses an OracleConnectionCache for database access. Without 
having changed anything on the code responsible for this, the app hangs. 
Debugging via System.out.println(...) commands before every actual 
command showed, that the app's main class is entered, the servlet init 
params are parsed and then a method is called to prepare database 
access. This method is entered as well (System.out.println(...) in the 
constructor confirmed this) and the next command is

	ods = new OracleConnectionCacheImpl();

This instanciating seems to hang for ever. No command behind this call 
is reached. We have not changed any byte of this code. Even a complete 
Web-app, packed as war, that definetely used to work a few days ago does 
not work any longer.

The Oracle-JDBC-Driver is packed in the war's WEB-INF/lib dir and, as 
said before, did not make any trouble until Wednesday.

Now, when I execute the same code, that the webapps uses, as standalone 
java app, there is no problem: database connection can be established 
properly.

I dont think, that any of our settings can be the cause, as the 
instaciating of OracleConnectionCacheImpl uses the default constructor 
and the settings would be done manually later via appropriate set...() 
methods.

We even tried a complete, clean, reinstall of tomcat (both 5.x (5.0.19) 
and 4.x (4.1.24)) using a war archive from our backups that definetely 
worked a few days ago (and hasn't been touched since then). But the 
problem remains.

As there is no problem accessing the db with the same code as standalone 
app (using exactly the same oracle driver as in the war archive) we 
assume, that the problem is something with the conatiner. But we are 
pretty clueless what it is.

I hope anyone can give us some usefull hints. We have spent 2 whole days 
now trying to figure out the root of the problem but have not been 
succesfull so far.

TIA

Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SendRedirect and IllegalStateException

2004-04-03 Thread Tim Funk
It should display company news. And you should see in your logs an 
IllegalStateException. (And the stack trace should contain the sendRedirect 
method)

-Tim

Umesha Balasubramaniam wrote:

Hi Everyone,

I am brushing up on my servlet programming after a long lay off. I was 
working through this book and came across the perils of using 
sendRedirect after commiting the response. My understanding according to 
the book and the 2.4 servlet api is that if you call the sendRedirect 
method after outputting something with the PrintWriter and flushing it 
should throw an Illegal exception, right? I want to know if anyone out 
there also noticed this or am I doing something wrong?
Tomcat version: 5.0.19
OS: Mac OS X 10.3.3
J2SDK:  1.4.2_03

My code:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class RedirectException extends HttpServlet{

  public void doGet(HttpServletRequest request,
  HttpServletResponse response) throws 
ServletException,
  IOException {

  PrintWriter writer = response.getWriter();
  writer.println("");
  writer.println("");
  writer.println("Company News!!");
  writer.println("");
  writer.println("");
  writer.flush();
  response.sendRedirect("http://news.bbc.co.uk";);


  }
}
What is happening is that the browser is displaying Company News!

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


Tomcat 5 not starting on Windows/MAC OS X

2004-04-03 Thread alistair
Hi folks,
no matter what I do with Tomcat 5.0.19 it won't start under Windows or MAC
OS X. It always complains about Boostrap start can't Catalina.setAwait().
I had a look at the source and Catalina extends Embedded, which contains
the setAwait method but the Bootstrap class causes a method not found
error for Catalina.setAwait (true).
Funnily enough, if I download the Sun Web Services Development Pack, the
Tomcat that comes with it works fine!
Is there any way I can get round this to get the distro from the jakarta
site to work?
Thanks,
Alistair


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



RE: Tomcat configuration

2004-04-03 Thread Taj
Under ROOT exists  directory
The structure goes like :




Html pages 

Web.xml

Class files

See whether u can help
If u have set ur server successfully, u would definitely know this one.
Thanks

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 02, 2004 7:39 PM
To: Tomcat Users List
Subject: RE: Tomcat configuration


Hi,
What are your files under ROOT instead of just under webapps?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Taj [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 02, 2004 2:26 AM
>To: 'Tomcat Users List'
>Subject: Tomcat configuration
>
>Hi
>
>
>
>Iam having problem in setting my application running in Tomcat 4.1
>
>The applications directory is situated at
>/Tomcat4.1/webapps/ROOT/myapplication
>
>This is the only place that my pages are visible to the server.
>
>My class files are situated at
>/Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/classes/
>
>
>
>The html pages in the directory /Tomcat4.1/webapps/ROOT/myapplication/
are
>visible to the server but my class files
>
>are not. I have tried everthing. The web.xml file is kept in the
directory
>/Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/
>
>and the web.xml file goes like:
>
>
>
>
>
>
>
>   
>
>GetInput
>
>GetInput
>
>   
>
>
>
>   
>
>GetInput
>
>/GetInput
>
>   
>
>
>
>
>
>
>
>Where the GetInput in the servlet-name.
>
>
>
>The HTML page that calls the servlet has the following syntax for the
POST
>command:
>
>
>
>
>
>
>
>I have also added to the environment variables of my OS, the following:
>
>
>
>CATALINA_HOME=E:\Program Files\Apache Group\Tomcat 4.1
>
>TOMCAT_HOME=E:\Program Files\Apache Group\Tomcat 4.1
>
>But to no difference
>
>
>
>Even after all this I get the 404 error: the required source was not
found.
>
>I would by very thankful to anyone who can find what I have missed and
help
>me out.
>
>
>
>Thanks
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>




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


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


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



A couple of performance related questions

2004-04-03 Thread Randy Paries
Hello,
I have a couple of performance questions.

BTW, yesterday someone sent out to the list a chart of times for connectors.


I accidentally deleted it and can not find it on the archive. Could someone
that still has that please email it to me directly?

I am using rh9, tomcat 4, apache 2

1) Is there any advantages/disadvantage to using mod_jk2 instead of mod_jk?

2) has anyone used Jikes and seen a noticeable difference?

3) setting -Xmx ,-Xss. (what is the default? I noticed in the catalina.sh,
there is no -Xmx ,-Xss)
   I am moving from one prod box rh7.3
   in 7.3 it show each thread individually. Any idea how to tell how much 
   memory my tomcat is using? Currently I have 120 threads.  
   But each thread looks like this(I am pretty sure)

Ie from top
  4012 apache 9   0 92160  65M  2412 S 0.3  6.4   0:15 java

Thanks for any help and answers to any of these questions.

randy   


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



Memory Issues

2004-04-03 Thread shyam
Hi All,

I have an application running on tomcat4.1.24. I have allocated 1500 mb
to the java vm. What happens is in 3-4 days my total memory reaches the
1500mb. The free memory is low. I force the GC to run so that the memory
is freed. What I don't understand why is the total memory maximum. I
want tomcat to deallocate and resize the heap so that the total memory
doesn't max out. And also I need the GC to run more aggressively .

My JAVA_OPTS are java -noclassgc -jmx1500 -jms1500.

Any help in this issue will be grateful.

Thanks
shyam



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



RE: Memory Issues

2004-04-03 Thread SH Solutions
Hi


> I have an application running on tomcat4.1.24.

Upgrade. 4.1.30 is latest in 4.1.x.
I can even recommend 5.0.19, that I am running without problems. For some it
has shown to be even faster.


> I force the GC to run so that the memory is freed.

No. You can not. You can tell the system, that it should. You cannot enforce
it.


> What I don't understand why is the total memory maximum.

USE A PROFILER. This is a important step. You may be able to adjust some
parameters to take the OoME to happen less frequently, but it will NOT solve
your memory leaks.


> I want tomcat to deallocate and resize the heap so that the total memory
doesn't max out.

Tomcat cannot deallocate anything, since tomcat is also only a java program.
If you do have memory leaks, no java code can change anything. Solve your
leaks.


> And also I need the GC to run more aggressively.

There are some VM options that allow you to control the way, GC works. Read
its release notes.

BTW, which VM are you using? Upgrade to latest. It was said, that where were
StringBuffer memory leaks in at least one of the recent versions.


Regards,
  Steffen


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



Load testing using ApacheBench

2004-04-03 Thread Christopher Schultz
All,
I've started load testing my application using ApacheBench and I think I 
must be missing something. I only heard about this tool very recently, 
so I have pretty much no experience with it.

I was getting some odd behavior (i.e. very long response times compared 
to what I observe when just hitting the app myself via a browser) so I 
decided to lower the number of requests. The response times became very 
erratic. I tried 10 requests. Sometimes, I'd get all of them back within 
a few (<10) ms. Other times, it would take 5-10 seconds for the last few 
requests. I figured I'd profile it.

So I did. But I continued to get strange results. For example, making a 
single request would take 30 seconds and create a ton of objects, etc. 
During the "30-second test", I could use my browser and make the same 
request with a reasonable response time (<5 sec). Bizarre.

So, I started studying the output of ab: (Sorry for the full output, but 
I need some advice and I figured that more info would be better).

===

localhost[root]:/usr/local/src/httpd-2.0.48/support$ ./ab -n 1 
"http://host/app/simple_search.do?query=test&resourceType=-1&search=Search";
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.4 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, 
http://www.apache.org/

Benchmarking host (be patient).done

Server Software:Apache/2.0.46
Server Hostname:host
Server Port:8180
Document Path: 
/app/simple_search.do?query=test&resourceType=-1&search=Search
Document Length:14140 bytes

Concurrency Level:  1
Time taken for tests:   108.739776 seconds
Complete requests:  1
Failed requests:215
   (Connect: 0, Length: 0, Exceptions: 215)
Write errors:   0
Total transferred:  3069721 bytes
HTML transferred:   3017449 bytes
Requests per second:0.01 [#/sec] (mean)
Time per request:   108739.777 [ms] (mean)
Time per request:   108739.777 [ms] (mean, across all concurrent 
requests)
Transfer rate:  27.56 [Kbytes/sec] received

Connection Times (ms)
  min  mean[+/-sd] median   max
Connect:00   0.0  0   0
Processing:  1422 1422   0.0   14221422
Waiting: 1059 1059   0.0   10591059
Total:   1422 1422   0.0   14221422
localhost[root]:/usr/local/src/httpd-2.0.48/support$
===

WTF? 215 failed requests? I only asked for one! Not only that, but I 
tailed my apache request log during a subsequent identical test and 
found lots of these:

192.168.1.43 - - [03/Apr/2004:13:29:49 -0500] "GET 
/app/simple_search.do?query=test&resourceType=-1&search=Search HTTP/1.0" 
200 14146
192.168.1.43 - - [03/Apr/2004:13:29:49 -0500] "GET 
/app/simple_search.do?query=test&resourceType=-1&search=Search HTTP/1.0" 
200 14140
192.168.1.43 - - [03/Apr/2004:13:29:50 -0500] "GET 
/app/simple_search.do?query=test&resourceType=-1&search=Search HTTP/1.0" 
200 14140
192.168.1.43 - - [03/Apr/2004:13:29:50 -0500] "GET 
/app/simple_search.do?query=test&resourceType=-1&search=Search HTTP/1.0" 
200 14140

WTF? Response=200 looks good to me! Why am I getting all of these 
"failed" requests? Am I totally missing something?

This tool seems stupidly simple to use. Am I not reading the output 
correctly?

I tried to use the -v switch for verbose troubleshooting information, 
but I don't know what the following argument should be. I tried 
everything I could think of like numbers and stuff like "debug" "error", 
etc. -- no dice.

Please, can someone help me understand what I'm doing wrong?

Thanks a /ton/ in advance,
-chris


signature.asc
Description: OpenPGP digital signature


RE: Memory Issues

2004-04-03 Thread shyam


Hi,
Thanks a lot for the information. I am using java 1.4.1_02 . 

> I force the GC to run so that the memory is freed.

No. You can not. You can tell the system, that it should. You cannot
enforce
it.

I ask the System to the GC. Sorri for the wrong interpretation.

We are pretty soon moving to tomcat5.0.19. But it will take some time.
Until then I don't to see outofmemory errors. I guess I should ask the
System to run the GC .

Regarding memory leaks, I realize that I need to use a profiler . I will
do it .
Thanks again
shyam
-Original Message-
From: SH Solutions [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 03, 2004 1:56 PM
To: 'Tomcat Users List'
Subject: RE: Memory Issues

Hi


> I have an application running on tomcat4.1.24.

Upgrade. 4.1.30 is latest in 4.1.x.
I can even recommend 5.0.19, that I am running without problems. For
some it
has shown to be even faster.


> I force the GC to run so that the memory is freed.

No. You can not. You can tell the system, that it should. You cannot
enforce
it.


> What I don't understand why is the total memory maximum.

USE A PROFILER. This is a important step. You may be able to adjust some
parameters to take the OoME to happen less frequently, but it will NOT
solve
your memory leaks.


> I want tomcat to deallocate and resize the heap so that the total
memory
doesn't max out.

Tomcat cannot deallocate anything, since tomcat is also only a java
program.
If you do have memory leaks, no java code can change anything. Solve
your
leaks.


> And also I need the GC to run more aggressively.

There are some VM options that allow you to control the way, GC works.
Read
its release notes.

BTW, which VM are you using? Upgrade to latest. It was said, that where
were
StringBuffer memory leaks in at least one of the recent versions.


Regards,
  Steffen


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




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



RE: [OT] The Way Java Handles Date

2004-04-03 Thread George Sexton
I got tired of it once and wrote this class.

http://www.mhsoftware.com/resources/jar/doc/com/MHSoftware/dates/SaneDat
e.html

The totally brilliant thing about it is like xbase, date addition and
subtraction are greatly simplified.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 02, 2004 9:48 AM
To: 'Tomcat Users List'
Subject: [OT] The Way Java Handles Date



Hi, Just wondering if anyone found this aspect of Java annoying.  I know
this is
usually a faq, and a lot of people have put a lot of efforts making it
better.
But I just find that the learning curve is a bit too steep for new
comers.  And
it hasn't been improve in j2sdk-1.5 either, at least from the interface
point of
view.  For example, a developer still has to go through the whole
Calendar and
DateFormat process to get a Date from a String 

I feel like complaining today:). 

-yan


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



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



ChannelSocket.read -- always runnable?

2004-04-03 Thread Christopher Schultz
All,
I'm currently profiling my app running on:
RH Linux 9 / kernel 2.4.20-8
Sun JDK 1.4.2
Tomcat 4.1.29
I'm using Borland's OptimizeIt v4.2 (a bit old, but hey! it's 
expensive!). Technically, I'm running the host on my server (on Linux) 
and the OptimizeIt profiling client on a separate windoze box and 
attaching to the process over the network. It's really irrelevant, but 
often people ask about these things.

When I do a "CPU profile" (really a "what are threads doing" profile) 
during a test where I just make requests as fast as possible, one at a 
time, I'm seeing that most of the time spent by runnable 
(RequestProcessor) threads is in this method:

java.net.SocketInputStream.read()

which gets called by org.apache.jk.common.ChannelSocket.read.

I assume that this is just the Java part of the JK connector sitting 
there waiting for a connection from Apache.

My question is this: why is it runnable? A VM thread dump says that 
they're *all* runnable, instead of sleeping, waiting for data. Is this 
just the way that Java does its sockets? I don't know a ton about the 
Java socket and I/O implementations, but I didn't think that it did a 
spin-wait on stream reading (rather than a blocking read, which would... 
well, block).

Anyhow, it makes the thread profile look very weird, because all of the 
threads are runnable all of the time. Makes it tough to find out which 
threads are actually doing any work :(

It this behavior consistent across Java versions? Are different socket 
implementations used with different connectors? It would be nice if 
fewer threads were runnable when they're really not doing anything.

If someone can give me a good reason for these threads being runnable, 
I'd love to hear it.

Thanks,
-chris


signature.asc
Description: OpenPGP digital signature


RE: Memory Issues

2004-04-03 Thread SH Solutions
Hi

> Thanks a lot for the information. I am using java 1.4.1_02 . 

I am not sure, maybe someone else can jump in, but I think, this was one the
those VM releases I mentioned here:

> It was said, that where were StringBuffer memory leaks in at least one of
the recent versions.

So this might be the first thing to update instantly.

Regards,
  Steffen


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



Re: Problem with starting up Tomcat 5.0.1.9 using launcher - a classpath issue?

2004-04-03 Thread Bill Barker
The 'startup-using-launcher.bat' is pretty much unmaintained at the moment
(and has nothing to do with the "Start Menu" shortcut :).

To reproduce what the shortcut should be doing, cd to the Tomcat bin
directory and run:
  tomcatw //GT//Tomcat5

To review your startup settings run:
  tomcatw //ES//Tomcat5


"Yair Fine" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I installed Tomcat 5.0.1.9 on Windows 2000.
>
> When I run Start menu-> programs -> Apache Tomcat 5.0 -> Start Tomcat ,
> nothing happens, and no tomcat icon appears.
>
> When i go to bin directory and run startup-using-launcher.bat , I get an
> exception :
> java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> at org.apache.commons.launcher.Launcher.start(Launcher.java:385)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at LauncherBootstrap.main(LauncherBootstrap.java:185)
>
> Indeed, if i look at ant.jar ion common\lib, there is no
> org/apache/tools/ant/launch/AntMain class
> Though is if run startup.bat, the server starts and work
> I have my JAVA_HOME variable path going to the right place
>
> Enyone have a clue ?
> Regards
> Yair Fine
>
>




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



RE: Memory Issues

2004-04-03 Thread shyam
Hi,
Thanks a lot again. I just checked the release notes of java 1.4.2. The
memory leak problem is fixed in 1.4.2. We will upgrade our VM. And I
guess this is the problem coz I am using StringBuffer extensively. Will
also run the profiler to check for any other memory leaks.

Thanks
shyam





-Original Message-
From: SH Solutions [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 03, 2004 3:22 PM
To: 'Tomcat Users List'
Subject: RE: Memory Issues

Hi

> Thanks a lot for the information. I am using java 1.4.1_02 . 

I am not sure, maybe someone else can jump in, but I think, this was one
the
those VM releases I mentioned here:

> It was said, that where were StringBuffer memory leaks in at least one
of
the recent versions.

So this might be the first thing to update instantly.

Regards,
  Steffen


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




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



Re: Apache security certificate vs. Tomcat security certificate

2004-04-03 Thread Bill Barker

"Hollerman Geralyn M" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I currently have Tomcat 5.0.16 running using the SSL connector and a
self-signed
> certificate - I followed the directions in the Tomcat SSL HOW-TO in how to
> create the certificate and set up Tomcat for SSL. This is running with no
> problems in my development environment.
>
> I have been asked to put SSL on our production Tomcat. It is also v
5.0.16. My
> sysadmin gave me two files he uses for Apache, running with SSL, on
another
> system; he said he thought I would need them. They are called server.crt
and
> server.key - he said he was giving me the certificate and the key for it.
How do
> I intergrate this with Tomcat? How does this correspond to what I've got
for
> Tomcat - I presume that the .crt file is like the .cer file I exported
from
> cacerts.jks (my keystore), but what does the .key file correspond to? How
does
> that fit in?
>

The '.key' file is the private key corresponding to the public key stored in
the '.crt' file.

IMHO, the easiest way to integrate your Apache cert with Tomcat is to export
the cert and the key to a PKCS12 file (see the "Prepare the Certificate
Keystore" section of the Tomcat ssl-howto for an example of how to do this),
and just use this file as your keystoreFile in Tomcat (remembering to set
keystoreType="PKCS12" as well :).

There are also utilities floating around the net to import Apache certs into
a JKS keystore (e.g. http://www.comu.de/docs/tomcat_ssl.htm).  You can try
Google and/or searching the archives for other solutions (since this topic
comes up a lot :).

> Thanks!
> -- 
> Lynn Hollerman.




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



Re: How to set up JAVA_OPTS while running tomcat as a service

2004-04-03 Thread Bill Barker
Well, Tomcat 5 has the nice GUI to do most of this (right-click the Tomcat
sys-tray icon), as well as the 'service.bat' file that you can customize for
your settings.  There should never be a reason to edit the registry settings
directly.  However, for those people that don't want to heed the warning :),
the settings are located at:
 HKLM\Software\Apache Software Foundation\Tomcat Service
Manager\Tomcat5\Parameters.

"Antoni Unkovich" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
> I'm keen to try this with tomcat 5.0.19.
> Please can you supply a little more detail regarding the registry
settings?
> Thanks in advance
> Antoni
>
>
>
> -Original Message-
> From: Mandy Joss [mailto:[EMAIL PROTECTED]
> Sent: Saturday, 3 April 2004 9:57 a.m.
> To: [EMAIL PROTECTED]
> Subject: RE: How to set up JAVA_OPTS while running tomcat as a service
>
>
> Tom Reis,
>
>  Thanks a lot. It worked. You were awesome. I wish I could
give
> you some Duke dollars :) Thanks again,
>
> Mandy
>
> >From: "Reis, Tom" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> >Subject: RE: How to set up JAVA_OPTS while running tomcat as a service
> >Date: Fri, 2 Apr 2004 15:10:31 -0600
> >
> >You can set the options for services in the registry.
> >[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
> >4.1\Parameters set the JVM Option Count to the number of parameters you
> >are setting (it is probably already set to 2) and then add JVM Option
> >Number # strings for each new option.
> >the setting for maximum heap is -Xmx###M,  minimum is -Xms###M
> >
> >Let me know if this works. I have done it to 1 server so far and it
> >seems to works, but I can't tell how much memory is being used.
> >
> >-Original Message-
> >From: Mandy Joss [mailto:[EMAIL PROTECTED]
> >Sent: Friday, April 02, 2004 2:58 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: How to set up JAVA_OPTS while running tomcat as a service
> >
> >
> >But the problem is when it runs as a windows service the tomcat.exe is
> >called directly. if I put any echo message in catalina.bat file I don't
> >see my message anywhere. I don't think it goes into catalina.bat at all
> >when runniing as an service.
> >
> >
> > >From: Paul Mansfield <[EMAIL PROTECTED]>
> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >To: Tomcat Users List <[EMAIL PROTECTED]>
> > >Subject: Re: How to set up JAVA_OPTS while running tomcat as a
> > >service
> > >Date: Fri, 02 Apr 2004 18:23:40 +0100
> > >
> >I put the settings into the catalina.sh file, e.g.
> > >
> > > >
> > > > # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ #
> > >-
> > >--
> >--
> > > >
> > > > JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so
> >
> > >On Fri, 2004-04-02 at 17:54, Mandy Joss wrote:
> > > > I am running Tomcat 4.1.24 as service but under stress I get
> > > > OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server
> > >-Xms256m
> > > > -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where
> > >should I
> > > > specify JAVA_OPTS so that Tomcat running as service will look at
them.
> > >
> > >
> > >
> > >
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >_
> >Check out MSN PC Safety & Security to help ensure your PC is protected
> >and safe. http://specials.msn.com/msn/security.asp
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> MSN Toolbar provides one-click access to Hotmail from any Web page - FREE
> download! http://toolbar.msn.com/go/onm00200413ave/direct/01/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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



RE: Problem with starting up Tomcat 5.0.1.9 using launcher - a classpath issue?

2004-04-03 Thread Yair Fine
I did both :
tomcatw //GT//Tomcat5
And 
tomcatw //ES//Tomcat5
And there was no response .Any other suggestions?

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: ש 03 אפריל 2004 23:03
To: [EMAIL PROTECTED]
Subject: Re: Problem with starting up Tomcat 5.0.1.9 using launcher - a
classpath issue?


The 'startup-using-launcher.bat' is pretty much unmaintained at the
moment (and has nothing to do with the "Start Menu" shortcut :).

To reproduce what the shortcut should be doing, cd to the Tomcat bin
directory and run:
  tomcatw //GT//Tomcat5

To review your startup settings run:
  tomcatw //ES//Tomcat5


"Yair Fine" <[EMAIL PROTECTED]> wrote 
> Hi,
> I installed Tomcat 5.0.1.9 on Windows 2000.
>
> When I run Start menu-> programs -> Apache Tomcat 5.0 -> Start Tomcat 
> , nothing happens, and no tomcat icon appears.
>
> When i go to bin directory and run startup-using-launcher.bat , I get 
> an exception :
> java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at
>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> at
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> at
org.apache.commons.launcher.Launcher.start(Launcher.java:385)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> av
> a:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at LauncherBootstrap.main(LauncherBootstrap.java:185)
>
> Indeed, if i look at ant.jar ion common\lib, there is no 
> org/apache/tools/ant/launch/AntMain class Though is if run 
> startup.bat, the server starts and work I have my JAVA_HOME variable 
> path going to the right place
>
> Enyone have a clue ?
> Regards
> Yair Fine
>
>




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



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



Re: A couple of performance related questions

2004-04-03 Thread David Rees
Randy Paries wrote, On 4/3/2004 9:57 AM:
1) Is there any advantages/disadvantage to using mod_jk2 instead of mod_jk?
Not really from my point of view.

2) has anyone used Jikes and seen a noticeable difference?
It compiles faster, which is good if you have a slow machine and/or 
don't precompile your JSPs.  Performance is the same once compiled.

-Dave

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


Re: A couple of performance related questions

2004-04-03 Thread Parsons Technical Services
Randy,

Since David did 1 & 2 I'll give you 3.


> 3) setting -Xmx ,-Xss. (what is the default? I noticed in the catalina.sh,
> there is no -Xmx ,-Xss)

If you are using catalina.sh then you set the enviroment settings by
exporting a system variable in the shell.
If you are running it as a daemon, well that's another issue.

>From a prompt:
export JAVA_OPTS="-Xms128m -Xmx128m"

Put which setting you want in place of the ones above.

Default is 64M.


> 4012 apache 9   0 92160  65M  2412 S 0.3  6.4   0:15 java

For this the thread count doesn't matter. Each shows the total available to
all threads. In this case 64M or 65M.

So even with 300 threads the most memory used is 64M for all threads
combined. Search the archives for listings on memory. There were a couple of
good post on this in the last couple of months.

 Doug
www.parsonstechnical.com



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



Re: Tomcat 5 vs. Resin?

2004-04-03 Thread Hiroshi Iwatani
And, Resin is open-source, kind of ...

Josh Rehman wrote:
Has anyone compared Tomcat 5 and Resin?

Resin has a huge drawback of being closed-source, but it has a great 
reputation for being small, fast, and easy to configure. Tomcat is 
working for us, but has been something of a bear WRT learning curves and 
gotchas, so I'm interested in learning more about the alternatives.

Thanks.

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

--
Hiroshi Iwatani
*stop cruelty* Annual number of institutionally euthanized cats and dogs 
including kittens and puppies: US 5 million, JP 500 thousand. How about your 
country? *for our better karma*
-

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


unable to start tomcat 5.0.19 using startup launcher file

2004-04-03 Thread daffy duck
Hi, 
 
Does anyone know how to start tomcat 5.0.19 using startup-using-launcher.bat?
 
I tried and it gives me error
 
F:\jakarta-tomcat-5.0.19\bin>startup-using-launcher
java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at org.apache.commons.launcher.Launcher.start(Launcher.java:385)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at LauncherBootstrap.main(LauncherBootstrap.java:185)
 
Thanks


-
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today

RE: How to set up JAVA_OPTS while running tomcat as a service

2004-04-03 Thread Antoni Unkovich
Excellent! (the system tray Icon that is)
Just what I was looking for.
Thanks
Antoni 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Sunday, 4 April 2004 9:36 a.m.
To: [EMAIL PROTECTED]
Subject: Re: How to set up JAVA_OPTS while running tomcat as a service

Well, Tomcat 5 has the nice GUI to do most of this (right-click the Tomcat
sys-tray icon), as well as the 'service.bat' file that you can customize for
your settings.  There should never be a reason to edit the registry settings
directly.  However, for those people that don't want to heed the warning :),
the settings are located at:
 HKLM\Software\Apache Software Foundation\Tomcat Service
Manager\Tomcat5\Parameters.

"Antoni Unkovich" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
> I'm keen to try this with tomcat 5.0.19.
> Please can you supply a little more detail regarding the registry
settings?
> Thanks in advance
> Antoni
>
>
>
> -Original Message-
> From: Mandy Joss [mailto:[EMAIL PROTECTED]
> Sent: Saturday, 3 April 2004 9:57 a.m.
> To: [EMAIL PROTECTED]
> Subject: RE: How to set up JAVA_OPTS while running tomcat as a service
>
>
> Tom Reis,
>
>  Thanks a lot. It worked. You were awesome. I wish I could
give
> you some Duke dollars :) Thanks again,
>
> Mandy
>
> >From: "Reis, Tom" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> >Subject: RE: How to set up JAVA_OPTS while running tomcat as a 
> >service
> >Date: Fri, 2 Apr 2004 15:10:31 -0600
> >
> >You can set the options for services in the registry.
> >[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 
> >4.1\Parameters set the JVM Option Count to the number of parameters 
> >you are setting (it is probably already set to 2) and then add JVM 
> >Option Number # strings for each new option.
> >the setting for maximum heap is -Xmx###M,  minimum is -Xms###M
> >
> >Let me know if this works. I have done it to 1 server so far and it 
> >seems to works, but I can't tell how much memory is being used.
> >
> >-Original Message-
> >From: Mandy Joss [mailto:[EMAIL PROTECTED]
> >Sent: Friday, April 02, 2004 2:58 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: How to set up JAVA_OPTS while running tomcat as a 
> >service
> >
> >
> >But the problem is when it runs as a windows service the tomcat.exe 
> >is called directly. if I put any echo message in catalina.bat file I 
> >don't see my message anywhere. I don't think it goes into 
> >catalina.bat at all when runniing as an service.
> >
> >
> > >From: Paul Mansfield <[EMAIL PROTECTED]>
> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >To: Tomcat Users List <[EMAIL PROTECTED]>
> > >Subject: Re: How to set up JAVA_OPTS while running tomcat as a 
> > >service
> > >Date: Fri, 02 Apr 2004 18:23:40 +0100
> > >
> >I put the settings into the catalina.sh file, e.g.
> > >
> > > >
> > > > # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ #
> > >---
> > >--
> > >--
> >--
> > > >
> > > > JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so
> >
> > >On Fri, 2004-04-02 at 17:54, Mandy Joss wrote:
> > > > I am running Tomcat 4.1.24 as service but under stress I get 
> > > > OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server
> > >-Xms256m
> > > > -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me 
> > > > where
> > >should I
> > > > specify JAVA_OPTS so that Tomcat running as service will look at
them.
> > >
> > >
> > >
> > >
> > >
> > >
> > >---
> > >-- To unsubscribe, e-mail: 
> > >[EMAIL PROTECTED]
> > >For additional commands, e-mail: 
> > >[EMAIL PROTECTED]
> > >
> >
> >_
> >Check out MSN PC Safety & Security to help ensure your PC is 
> >protected and safe. http://specials.msn.com/msn/security.asp
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> MSN Toolbar provides one-click access to Hotmail from any Web page - 
> FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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




---

Re: Re: >> problem with new 2.04 mod_jk2

2004-04-03 Thread Daniel Savard
Walter Truitt a écrit:

...
>
> I don't know why someone would have X11 libraries linked in with an
> Apache module.
>
>  -walter

I don't know either, but it's a simple fact. However, I discovered I am
getting different results from different users while running the ldd on
the mod_jk2.so module:

With my user, I am getting:

[EMAIL PROTECTED] dsavard]$ ldd /usr/local/apps/apache2/modules/mod_jk2.so 
/usr/lib/libgdkxft.so => /usr/lib/libgdkxft.so (0x4002c000)
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x40031000)
libc.so.6 => /lib/i686/libc.so.6 (0x40054000)
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x4019)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x402be000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x402f4000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x402f7000)
libdl.so.2 => /lib/libdl.so.2 (0x4031b000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x4031f000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x40327000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x40336000)
libm.so.6 => /lib/i686/libm.so.6 (0x4040)
libXft.so.1 => /usr/lib/libXft.so.1 (0x40423000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x4044d000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40452000)
libz.so.1 => /usr/lib/libz.so.1 (0x404a3000)

And using another user:

[EMAIL PROTECTED] gnometest]$ ldd
/usr/local/apps/apache2/modules/mod_jk2.so 
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40046000)
libc.so.6 => /lib/i686/libc.so.6 (0x4004f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)

I know it's no longer a Tomcat question, but anyone knows what can
influence the result of the ldd command? A but? A problem with the glibc
library? Anyone has ever encountered such a problem?

I tried unsetting the LIBRARY and LD_LIBRARY_PATH environment variables
without anoy success. And anyway, I don't see how any variable can
influence which libraries are required to resolve a symbol, except the
path to these libraries.


-- 

===
Daniel Savard
Consultation Informatique Daniel Savard
551, boul. Sir-Wilfrid-Laurier
suite 105
Beloeil, (Québec)
Canada J3G 4J1

Tél: (450) 467-8014
Internet: [EMAIL PROTECTED]
===



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



RE: Re: Re: >> problem with new 2.04 mod_jk2 (KMM16055293V54052L0KM)

2004-04-03 Thread Auto-Reply ACD Systems
**This is an automated response.**
**Do not reply to this message.**

Thank you for contacting the ACD Systems Online Store. If you require
the assistance of our Customer Care Center representatives, please
review the below information so that we can help you with your
question(s) as fast as possible.

Do you have DOWNLOAD, BILLING AND/OR SHIPPING QUESTIONS?

Our Customer Care Center at http://service.digitalriver.com/acd/cs can
help you perform the following tasks:
  - Download a digital order
  - Check the shipping status of a physical order
  - View and print an invoice
  - Get answers to common questions
  - Contact our Customer Care Center representatives

If you need to contact our Customer Care Center via email or have been
unable to login to our Customer Care Center page, you can go directly to
our email web form located at: http://service.digitalriver.com/acd/question

Do you have TECHNICAL SUPPORT QUESTIONS?

Please review your order confirmation message for the appropriate
technical support contact information for assistance with any of the
following:
  - Questions on installation
  - Troubleshooting software
  - Help with features
  - General questions regarding the product

Thank you for contacting the ACD Systems Online Store.

Sincerely,

Customer Care Center
http://www.acdsystems.com/
Case ID 6834531




Original Message Follows:


Walter Truitt a écrit:
...
>
> I don't know why someone would have X11 libraries linked in with an
> Apache module.
>
>  -walter
I don't know either, but it's a simple fact. However, I discovered I am
getting different results from different users while running the ldd on
the mod_jk2.so module:
With my user, I am getting:
[EMAIL PROTECTED] dsavard]$ ldd /usr/local/apps/apache2/modules/mod_jk2.so
/usr/lib/libgdkxft.so => /usr/lib/libgdkxft.so (0x4002c000)
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x40031000)
libc.so.6 => /lib/i686/libc.so.6 (0x40054000)
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x4019)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x402be000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x402f4000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x402f7000)
libdl.so.2 => /lib/libdl.so.2 (0x4031b000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x4031f000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x40327000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x40336000)
libm.so.6 => /lib/i686/libm.so.6 (0x4040)
libXft.so.1 => /usr/lib/libXft.so.1 (0x40423000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x4044d000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40452000)
libz.so.1 => /usr/lib/libz.so.1 (0x404a3000)
And using another user:
[EMAIL PROTECTED] gnometest]$ ldd
/usr/local/apps/apache2/modules/mod_jk2.so
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40046000)
libc.so.6 => /lib/i686/libc.so.6 (0x4004f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)
I know it's no longer a Tomcat question, but anyone knows what can
influence the result of the ldd command? A but? A problem with the glibc
library? Anyone has ever encountered such a problem?
I tried unsetting the LIBRARY and LD_LIBRARY_PATH environment variables
without anoy success. And anyway, I don't see how any variable can
influence which libraries are required to resolve a symbol, except the
path to these libraries.
--
===
Daniel Savard
Consultation Informatique Daniel Savard
551, boul. Sir-Wilfrid-Laurier
suite 105
Beloeil, (Québec)
Canada J3G 4J1
Tél: (450) 467-8014
Internet: [EMAIL PROTECTED]
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Re: >> problem with new 2.04 mod_jk2

2004-04-03 Thread QM
On Sat, Apr 03, 2004 at 11:38:37PM -0500, Daniel Savard wrote:

: I know it's no longer a Tomcat question, but anyone knows what can
: influence the result of the ldd command? A but? A problem with the glibc
: library? Anyone has ever encountered such a problem?


Smells like $LD_PRELOAD.

What's the result of a "diff" between "env | sort" for each user?

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



How to grant write permission on tomcat 5?

2004-04-03 Thread daffy duck
Hi all,

I'm using Tomcat 5.0.19

I know read permission is implicitly granted (recursively) to all files and 
subdirectories of the current directory.

but, how do I grant write permission (recursively) to all files and subdirectories of 
the current directory ?

I tried adding either one of these in the catalina.policy


grant {
   permission java.io.FilePermission"-", "write";
};



or 


grant {
   permission java.io.FilePermission"*", "write";
};



Both didn't work
Does anyone know how?

Thanks



-
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today

Re: Problem with starting up Tomcat 5.0.1.9 using launcher - a classpath issue?

2004-04-03 Thread JavaNetIn
hello Friend,

Which JDK Version do you have? Have you tried on jdk1.3.x version.

Because I can not compile jsp pages on tomcat 5.0 as well as tomcat 
4.1.0 build 7 in jdk1.4.2 environment but both perfectly runs in jdk1.3 
environment. I don't know the reason.

./Nikhil

Yair Fine wrote:

Did you mean tools.jar ? It is already in common\lib
I also have my CATALINA_HOME environement variable set (C:\Program
Files\Apache Software Foundation\Tomcat 5.0) 
It still don't work
Yair

-Original Message-
From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] 
Sent: ש 03 אפריל 2004 15:48
To: [EMAIL PROTECTED]
Subject: RE: Problem with starting up Tomcat 5.0.1.9 using launcher - a
classpath issue?

i ad the same ive red somwere to copy tool .jar to a folder in tomcat i
tink 
its comun/lib
not shure try to ad catalina_home environement variable  pointing to
your 
tomcat instalation folder



[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc




 

From: "Yair Fine" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Problem with starting up Tomcat 5.0.1.9 using launcher - a
classpath issue?
Date: Sat, 3 Apr 2004 14:52:43 +0200
Hi,
I installed Tomcat 5.0.1.9 on Windows 2000.
When I run Start menu-> programs -> Apache Tomcat 5.0 -> Start Tomcat ,
   

 

nothing happens, and no tomcat icon appears.

When i go to bin directory and run startup-using-launcher.bat , I get 
an exception :
java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at
   

java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
 

   at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
   at
   

java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
 

   at
   

org.apache.commons.launcher.Launcher.start(Launcher.java:385)
 

   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
a:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
   

r
 

Impl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at LauncherBootstrap.main(LauncherBootstrap.java:185)
Indeed, if i look at ant.jar ion common\lib, there is no 
org/apache/tools/ant/launch/AntMain class Though is if run startup.bat,
   

 

the server starts and work I have my JAVA_HOME variable path going to 
the right place

Enyone have a clue ?
Regards
Yair Fine
   

_
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/

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




RE: How to grant write permission on tomcat 5? (KMM16055616V57685L0KM)

2004-04-03 Thread Auto-Reply ACD Systems
**This is an automated response.**
**Do not reply to this message.**

Thank you for contacting the ACD Systems Online Store. If you require 
the assistance of our Customer Care Center representatives, please 
review the below information so that we can help you with your 
question(s) as fast as possible.

Do you have DOWNLOAD, BILLING AND/OR SHIPPING QUESTIONS?

Our Customer Care Center at http://service.digitalriver.com/acd/cs can 
help you perform the following tasks:
  - Download a digital order
  - Check the shipping status of a physical order
  - View and print an invoice
  - Get answers to common questions
  - Contact our Customer Care Center representatives 

If you need to contact our Customer Care Center via email or have been 
unable to login to our Customer Care Center page, you can go directly to
our email web form located at: http://service.digitalriver.com/acd/question

Do you have TECHNICAL SUPPORT QUESTIONS?

Please review your order confirmation message for the appropriate 
technical support contact information for assistance with any of the 
following:
  - Questions on installation
  - Troubleshooting software
  - Help with features
  - General questions regarding the product

Thank you for contacting the ACD Systems Online Store.

Sincerely,

Customer Care Center
http://www.acdsystems.com/
Case ID 6834730




Original Message Follows:


Hi all,
I'm using Tomcat 5.0.19
I know read permission is implicitly granted (recursively) to all files 
and subdirectories of the current directory.
but, how do I grant write permission (recursively) to all files and 
subdirectories of the current directory ?
I tried adding either one of these in the catalina.policy
grant {
   permission java.io.FilePermission"-", "write";
};
or 
grant {
   permission java.io.FilePermission"*", "write";
};
Both didn't work
Does anyone know how?
Thanks
-
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today


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