Re: Getting other Sessions

2005-03-23 Thread Joseph Shraibman

Michael Greer wrote:
List servers = MBeanServerFactory.findMBeanServer(null);
MBeanServer server = (MBeanServer)servers.get(0);
ObjectName objName = new 
ObjectName(Catalina:type=Manager,path=/contextPath,host=localhost);

String sessionIds = 
(String)server.invoke(objName,listSessionIds,null, null);

You can get the rest by each sessionId.
How do I get a refrence to the Session once I have the id?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Getting other Sessions

2005-02-22 Thread Joseph Shraibman
I want to make an admin page in my application.  I needs to be able to 
get access to all the current Session objects to access their 
attributes.  Is this possible?

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


Re: Getting other Sessions

2005-02-22 Thread Joseph Shraibman

Antony Paul wrote:
You can put all the sessions in List or Map when they login or use
HttpSessionListener to listen to session events.
That was my fallback plan, if there wasn't an easier way.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat 5.5.7 won't start because of NPE

2005-02-13 Thread Joseph Shraibman
Yup, that was it.  I could have sworn I chwoned all the files but I 
guess I didn't.  Thanks.

Parsons Technical Services wrote:
The real problem is the lines above it. Either the server.xml is hosed, 
missing, corrupted or Tomcat doesn't have rights to it.

What OS are you running on?
Doug
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat 5.5.7 won't start because of NPE

2005-02-10 Thread Joseph Shraibman
Using the out of box config files and webapps:
java version 1.5.0_01
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
This appears on catalina.out:
Feb 11, 2005 12:35:51 AM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Feb 11, 2005 12:35:51 AM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Feb 11, 2005 12:35:51 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
... 6 more

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


Re: Analysing dead threads

2004-11-17 Thread Joseph Shraibman
Is this a redhat 9 box by any chance?
Steffen Heil wrote:
Hi
I have a situation, where a lot of threads seem to stop working right in my
servlet.
From debug output, I know they entered the servlet but never leave it.
My problem is that this never occurs on our development system, but only on
the production system.
I need to stop tomcat end even do a killall -9 java to get everything to
stop. Then I restart tomcat.
But I don't know what happened.
I know there is a way to kill the JVM, so that I see the stack trace of kill
threads.
How can I do it?
(Is there another way to see what those threads are waiting for?)
Regards,
  Steffen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk2 Ready/Recommended For Production?

2004-10-13 Thread Joseph Shraibman
From the tomcat-devel list:
 So is JK2 dead because of proxy_ajp? Why doesn't JK2 just replace JK?

JK2 is dead because (like mod_webapp before it :), it failed to attract a
community interested in maintaining it.  You might as well ask 'why doesn't
mod_webapp just replace JK?'
For some reason the online archive at 
http://www.mail-archive.com/[EMAIL PROTECTED]/ only has 
messages through the 8th, and that was posted on the 11th.

Mike Millson wrote:
The Tomcat FAQ page still says that mod_jk is great and should be used
for production and mod_jk2 may not be production worthy for everyone.
http://jakarta.apache.org/tomcat/faq/connectors.html#vs
Is this still accurate, or is mod_jk2 now ready/recommended for
production?
Thank you,
Mike

-
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: JK2 2.0.4

2004-10-04 Thread Joseph Shraibman
No, this is a known bug and will not work. See 
http://issues.apache.org/bugzilla/show_bug.cgi?id=28758

Cox, Charlie wrote:
To avoid all confusion, I would remove your [uri: mappings from the
workers2.properties and then specify the mappings in your httpd.conf:
VirtualHost 1.1.1.1:80
Location /
JkUriSet worker ajp13:localhost:8409
/Location
/VirtualHost
VirtualHost 2.2.2.2:80
Location /
JkUriSet worker ajp13:localhost:8209
/Location
/VirtualHost
This gives you a well-defined mapping and will be more useful should you
want to allow Apache to host any of your files/urls
Charlie

-Original Message-
From: Paul D. Hester [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 6:00 PM
To: 'Tomcat Users List'
Subject: RE: JK2 2.0.4
I've attached my workers.properties file below.
Paul


#define the shared memory file
[shm:]
file=/usr/local/apache-2.0.50/logs/jk2.log
size=100
debug=1
# Define the communication channel
[channel.socket:localhost:8409]
[channel.socket:localhost:8209]
#define the worker
[ajp13:localhost:8409]
channel=channel.socket:localhost:8409
[ajp13:localhost:8209]
channel=channel.socket:localhost:8209
[uri:/*]
group=ajp13:localhost:8409
[uri:/*]
group=ajp13:localhost:8209
-
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: mod_jk2 and subdirectories

2004-08-19 Thread Joseph Shraibman
YOu have to use LocationMatch instead because * won't match a /.  I had 
this problem myself.

Webmaster wrote:
Hi all,
I'm trying to upgrade a setup I was using with mod_jk to mod_jk2.
This setup has 2 workers. Here it is:
With mod_jk:
JkMount /webapp1/*.jsp worker1
JkMount /webapp2/*.jsp worker2
Everything works fine if call, for instance, http://localhost/webapp1/admin/login.jsp
With mod_jk2 I'm trying:
Location /webapp1/*.jsp
  JkUriSet worker ajp13:localhost:8009
/Location
Location /webapp2/*.jsp
  JkUriSet worker ajp13:localhost:8010
/Location
If I call http://localhost/webapp1/login.jsp, it works, but if I call: http://localhost/webapp1/admin/login.jsp, it doesn't !! Since I don't know which subdirectories I'll have, I don't want to hardcode all the entries 

What can I do ?
Thanks !!
Renato.


-
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: FW: Memory Usage - Tomcat 5.0.25

2004-08-12 Thread Joseph Shraibman
What memory are you looking at, what ps returns?
What does  Runtime.freeMemory() and Runtime.totalMemory() return?
Nandish Rudra wrote:
Hi,
Yes the objects are GC'd but memory stays. If you look through yesterday's
posts you will see emails that helped me solve the issue on Windows machine,
but the issue is still alive with RedHat 9.0. I am in the process probing
the linux boex's mepry to see what the is going on.
Nandish Rudra
ECI Conference Call Services, LLC
-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 8:54 PM
To: Tomcat Users List
Subject: Re: FW: Memory Usage - Tomcat 5.0.25

Nandish Rudra wrote:
Hello Everyone,
I am writing about this error from yesterday. I used JProfiler to monitor
my
memory usage. And am now sure that each and every static object is trashed
when the application is undeployed and the profiler shows that memory is
free and all instance of the objects are GC'd. This works on a Windows
2000
setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but
fails miserably on RedHat 9 setup. this happens with both tomcat 5.0.25
and
5.0.27

I'm a bit confused.  Are you saying that the objects are GC'd on redhat 
9 but the jvm is still big, or are you saying that the objects were 
never GC'd?

-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: LD_ASSUME_KERNEL

2004-08-11 Thread Joseph Shraibman

Sunitha Kumar wrote:
Hey folks:
Would setting CATALINA_OPTS to -DLD_ASSUME_KERNEL=2.2.5 work?
No, this isn't a java option.  It is an environment variable you want to 
set at the shell level.  In catalina.sh at the top:

export LD_ASSUME_KERNEL=2.4.1
See
http://www.blackdown.org/java-linux/[EMAIL PROTECTED]/java-linux-msg00093.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FW: Memory Usage - Tomcat 5.0.25

2004-08-11 Thread Joseph Shraibman

Nandish Rudra wrote:

Hello Everyone,
I am writing about this error from yesterday. I used JProfiler to monitor my
memory usage. And am now sure that each and every static object is trashed
when the application is undeployed and the profiler shows that memory is
free and all instance of the objects are GC'd. This works on a Windows 2000
setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but
fails miserably on RedHat 9 setup. this happens with both tomcat 5.0.25 and
5.0.27
I'm a bit confused.  Are you saying that the objects are GC'd on redhat 
9 but the jvm is still big, or are you saying that the objects were 
never GC'd?

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


Re: Can't compile jk 1.2.6

2004-08-04 Thread Joseph Shraibman
The problem was that my notes said to use -with-apxs2= instead of 
-with-apxs=

David Rees wrote:
Joseph Shraibman wrote, On 8/3/2004 7:29 PM:
no apxs given
checking for target platform... unix
no apache given
configure: error: Cannot find the WebServer
But the apxs does exist.  This is apache 2.0.50
I can't compile 1.2.5 either

Look above, closely.  Ask again if you can't figure it out.
-Dave
-
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 do I manage the thread pool in 5.0.27?

2004-08-04 Thread Joseph Shraibman
But the jk connector doesn't have those paramaters, does it?
Shapira, Yoav wrote:
Hi,
You would lower maxSpareThreads on your Connector configuration in
server.xml.  See the various *Threads parameters for the Connector for
more tuning options.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 04, 2004 12:15 AM
To: Tomcat Users List
Subject: How do I manage the thread pool in 5.0.27?
After handling a lot of requests in 5.0.27 I'm left with a lot of
threads with names like TP-Processor245.  How do I make these go
away?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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]


jsp:forward

2004-08-03 Thread Joseph Shraibman
What is supposed to happen when a jsp:forward tag is encountered? 
Logically when writing a jsp I would think that execution stops there 
and the client goes ahead to the new url.  Does jasper always do this? 
Did it always do this?

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


Re: iis, jk2, virtual hosts.

2004-08-03 Thread Joseph Shraibman
jk2 has problems with virtual hosts.  See 
http://issues.apache.org/bugzilla/show_bug.cgi?id=22045
and
http://issues.apache.org/bugzilla/show_bug.cgi?id=18472

Alex wrote:
is this something that no one has had experience with?
On Wed, 21 Jul 2004, Alex wrote:

Date: Wed, 21 Jul 2004 09:39:15 -0400 (EDT)
From: Alex [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: iis, jk2, virtual hosts.
Greetings,
Does the jk2 adapter, and workers2.properties support virtual hosts?  I
have a few domains which are configured as virt. hosts with iis, and i'd
like them all to connect to a different context on the tomcat backend via
jk2/ajp13.
can virtual hosts be configured in the workers2.properties file?  i don't
want to create and deploy multiple dll's/workers2.properties file if it's
not necessary.
thanks.
-sd

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


Can't compile jk 1.2.6

2004-08-03 Thread Joseph Shraibman
# ./buildconf.sh
rm autom4te.cache
libtoolize --force --automake --copy
aclocal
autoheader
automake -a --foreign --copy
configure.in:8: `automake requires `AM_CONFIG_HEADER', not 
`AC_CONFIG_HEADER'
configure.in: installing `scripts/build/unix/mkinstalldirs'
autoconf
rm autom4te.cache

Then configure ends with:
creating libtool
checking for test... /usr/bin/test
checking for rm... /bin/rm
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
checking for snprintf... yes
checking for vsnprintf... yes
no apxs given
checking for target platform... unix
no apache given
configure: error: Cannot find the WebServer
But the apxs does exist.  This is apache 2.0.50
I can't compile 1.2.5 either
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How do I manage the thread pool in 5.0.27?

2004-08-03 Thread Joseph Shraibman
After handling a lot of requests in 5.0.27 I'm left with a lot of 
threads with names like TP-Processor245.  How do I make these go away?

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


Re: Trouble running Tomcat using Sun's JDK1.4.2_05

2004-07-09 Thread Joseph Shraibman
Are you sure when you upgraded that you moved everything over, like jars 
in lib/endorsed, you java.policy, etc?

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


Re: Tomcat 5 Apache Authentication

2004-07-09 Thread Joseph Shraibman
[EMAIL PROTECTED] wrote:
Hmmm...so is there any workaround? For example, using an older version of the 
JK connector or some older combination of Tomcat/Apache and the JK connector?

Thanks,
Kevin
Not as far as I know.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5 Apache Authentication

2004-07-08 Thread Joseph Shraibman
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25367
[EMAIL PROTECTED] wrote:
Hi all,
 I am having a problem getting Tomcat 5 to use Apache authentication. We
have an existing CGI application that is handled by Apache 2, and I am tring to
integrate some java stuff using Tomcat 5. Here is what I have:
##
## APACHE 2 conf/httpd.conf:
##
# Tomcat Connector
LoadModule jk2_module modules/mod_jk2.so
JKSet config.file /opt/apps/apache/conf/workers2.properties
# Tomcat 5
Alias /web/ja/ /opt/web/prod/ja/
Directory /opt/web/prod/ja/
  SSLRequireSSL
  AuthType Basic
  AuthUserFile /opt/work/apps/trade/conf/ft_webauth
  AuthGroupFile /opt/work/apps/trade/conf/ft_webauthg
  require group mygroup
  AllowOverride All
  order allow,deny
  allow from all
  Options MultiViews Indexes FollowSymLinks
/Directory
# CGI Webapp
ScriptAlias /web/ /opt/web/prod/
directory /opt/web/prod/
  SSLRequireSSL
  AuthUserFile /opt/work/apps/trade/conf/ft_webauth
  AuthGroupFile /opt/work/apps/trade/conf/ft_webauthg
  AuthName privy
  AuthType Basic
  require group ftgroup1 vedp demoskin umass choosemd wtctacoma wtcstl wtcc
belmont wtcchicago wtcdemo wtcfrance wisconsin aim medc efi testgroup webdev twr
dcca wtcdn matrade ft_g2 ft_g3 ft_g4 ft_g5 ft_g6 ft_g7 ft_g8 ft_g9
  AllowOverride All
  order allow,deny
  allow from all
  Options MultiViews ExecCGI
/directory
##
## workers2.properties
##
[shm]
info=Scoreboard. Required for reconfiguration
file=/opt/apps/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0
# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
# java web app
[uri:/web/ja/*]
worker=ajp13:localhost:8009
group=lb
##
## TOMCAT 5 conf/server.xml
##
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  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
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service name=Catalina
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 tomcatAuthentication=false /
Engine name=Catalina defaultHost=localhost debug=0
  Valve className=org.apache.catalina.valves.RequestDumperValve/
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
  Host name=localhost debug=0 appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
!-- Java Web App --
Context path=/web/ja docBase=/opt/web/prod/ja debug=2
reloadable=true
   Logger className=org.apache.catalina.logger.FileLogger
 prefix=wtprod_file_log. suffix=.txt
 timestamp=true/
/Context
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log. suffix=.txt
 pattern=common resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
  /Host
/Engine
  /Service
/Server
##
## END SCRIPTS
##
Ok, so I placed tomcatAuthentication=false and also in my httpd.conf file, I
put the directory to my java stuff since I want it to be protected by Apache's
authentication. However, when I try my java app, the request.getRemoteUser()
comes up null, now do I get prompted for a password. Any help would be greatly
appreciated!
Thanks,
Kevin
-
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]


Problem using jsp to handle 404s from nonjsps

2004-06-25 Thread Joseph Shraibman
I have a 404.jsp for logging broken links.  I get the missing page by 
doing this:

String url =  request.getRequestURL().toString();
This works when the missing page is a jsp.  When it is something else 
like a .html, my url variable ends up with the url to my 404 handler.  I 
assume this is a problem with apache forwarding to 404.jsp.  How can I 
work around this?

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


Re: Problem using jsp to handle 404s from nonjsps

2004-06-25 Thread Joseph Shraibman
Akash Jauhar wrote:
Assuming that you have an apache in front of tomcat configure apache to
specify that 404.jsp is your custom page for handling 404 errors for
content that is served by apache. This should help you log all broken
links as well as missing images and other content
Hope this helps
Apache directive that needs to be modified is as follows
ErrorDocument 404 /cgi-bin/error404.cgi or /404.jsp

Right, I already do that.  My problem is in the jsp that 
request.getRequestURL().toString() returns 404.jsp and not the page that 
the user requested.

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


Re: Tomcat5/mod_jk Memory Leak/mod_jk bypass

2004-06-02 Thread Joseph Shraibman
Try this:
http://marc.theaimsgroup.com/?l=tomcat-userm=107976963131361w=2
I wasn't able to get it to work myself, but maybe you can.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to get the offending uri when handling a 404 error?

2004-06-01 Thread Joseph Shraibman
I put this in my web.xml:
error-page
error-code404/error-code
location/404.jsp/location
/error-page
... and this in 404.jsp:
ErrorData ed = pageContext.getErrorData();
if (ed != null) url = ed.getRequestURI() ;
but it throws:
StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
java.lang.NullPointerException
at javax.servlet.jsp.PageContext.getErrorData(PageContext.java:514)
at org.apache.jsp._404_jsp._jspService(_404_jsp.java:102)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

(this is with tomcat 5.0.24)
So how can I get the url the the user tried to request?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [ANN] The Reference Scanner and Jakarta Tomcat - Heap Profiling, Memory Leaks

2004-05-11 Thread Joseph Shraibman
Joerg Baumgaertel wrote:
Hi all,

because often requested,
I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website.
You find the following documents
- How to scan a Java webapplication
  http://jb2works.com/refscan/tomcat.html
- How to scan Jakarta-Tomcat full-space
  http://jb2works.com/refscan/tomcatfull.html
I tried that, but when trying to run tomcat I got:

Due to new licensing guidelines mandated by the Apache Software
Foundation Board of Directors, a JMX implementation can no longer
be distributed with the Apache Tomcat binaries. As a result, you
must download a JMX 1.2 implementation (such as the Sun Reference
Implementation) and copy the JAR containing the API and
implementation of the JMX specification to:
${catalina.home}/bin/jmx.jar
...which confuses me, because jmx.jar is still where it always was. 
Using the bootstrap.jar that came with tomcat works fine.

BTW in your instructions you say to add:

 HttpScanner.start( startupInstance );

... but what is really needed is:

com.jb2works.reference.HttpScanner.start( startupInstance ); // -- !!

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


Re: strange memory problem

2004-05-11 Thread Joseph Shraibman
java.lang.OutOfMemoryError is also thrown when java can't start up a 
thread because it reached the system limit.  Could that be your problem?

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


Re: [ANN] The Reference Scanner and Jakarta Tomcat - Heap Profiling, Memory Leaks

2004-05-11 Thread Joseph Shraibman
Jacob Kjome wrote:
At 11:47 PM 5/11/2004 -0400, you wrote:

Joerg Baumgaertel wrote:

Hi all,
because often requested,
I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website.
You find the following documents
- How to scan a Java webapplication
  http://jb2works.com/refscan/tomcat.html
- How to scan Jakarta-Tomcat full-space
  http://jb2works.com/refscan/tomcatfull.html


I tried that, but when trying to run tomcat I got:

Due to new licensing guidelines mandated by the Apache Software
Foundation Board of Directors, a JMX implementation can no longer
be distributed with the Apache Tomcat binaries. As a result, you
must download a JMX 1.2 implementation (such as the Sun Reference
Implementation) and copy the JAR containing the API and
implementation of the JMX specification to:
${catalina.home}/bin/jmx.jar
...which confuses me, because jmx.jar is still where it always was. 
Using the bootstrap.jar that came with tomcat works fine.


If you use the latest version of Tomcat5, you'll find that this is not 
an issue.  Download Tomcat-5.0.24.  The implementation of JMX that said 
version of Tomcat comes with is MX4J which is open source so there is no 
problem anymore.

Jake
I am using 5.0.24, and jmx.jar is there.  Tomcat works if I use the
Bootstrap.class that comes with it, but if I recompile Bootstrap.class 
per the instructions on http://jb2works.com/refscan/tomcatfull.html it 
suddenly gives me that error message.

I can post the jar file if you think that will help.

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


Re: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-22 Thread Joseph Shraibman
I know, I ran a few hundred lynx's at a time.

Ralph Einfeldt wrote:
To your question: I don't know.

Having a delay in the jsp (or servlet) isn't enough to
enshure concurrent requests. You have to do something 
on the calling site to enforce this.

If you just call lynx as in your example, lynx will
wait until the response is there. So if you delay the 
jsp, you just delay the return of lynx.

So you have either to run more than one instace of your 
script at the same time or to extend the scrip in a way
that it runs several lynx instances at the same time.

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


Re: java.lang.OutOfMemoryError

2004-03-21 Thread Joseph Shraibman
Sounds like the same memory leak problem I've been having.  The problem 
is when new threads are created to handle concurrent connections.

Marco Pöhler wrote:
Hi,

I'm running tomcat 5.0.19  J2SDK1.4.2_03 on a suse linux 8.1. I wrote a
really simple application, just one servlet and a few jsp pages, using
dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I have to
restart the tomcat to fix the problem. Here is the log entry:
2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]: Servlet.service()
for servlet mapperServlet threw exception
java.lang.OutOfMemoryError
Okay, I've investigated my source code for some kind of memory leak, but
without any success. How can I found what the problem is ? Are there tools
which can help me ?
thanks in advance

Marco Poehler

---
http://www.poehlerpoehler.de


-
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: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-19 Thread Joseph Shraibman
Ralph Einfeldt wrote:
That may be a bit to simple, as this is just performing one 
request after the other. You may have to force concurrent 
request:

Why are those message generated by a thread starting up or something? 
If so I already have a jsp with a built in delay I can use to make sure 
there are a bunch of requests at the same time

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


Re: Horrible memory leak in tomcat 5.0.19

2004-03-19 Thread Joseph Shraibman
Robert Krüger wrote:
Hi,

we had the same problem (enormous memory leak which frequently made our 
production system crash), downgraded to 5.0.18 and everything went back 
to normal. Just yesterday a colleague of mine came to the conclusion 
that it is not too unlikely that it is the problem described in the message

http://www.mail-archive.com/[EMAIL PROTECTED]/msg53035.html

It that is so, you can simply disable the JMX registration of requests 
to get rid of the problem. We will try that probably later today but of 
course you can give it a shot yourself. There is not much to lose.

I was able to figure out how to reproduce this problem on my test 
machine (using multiple concurrent requests).

I added to my jk2.properties:

request.registerRequests=false

This got rid of some of the messages in catalina.out but left these:

Mar 19, 2004 1:47:51 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 19, 2004 1:47:52 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
... and the memory leak did not go away.

The message that I'm not getting anymore are:

Mar 19, 2004 1:25:34 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 19, 2004 1:25:34 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Out of memory -Tomcat4.x

2004-03-18 Thread Joseph Shraibman
Put this in catalina.sh:

CATALINA_OPTS=$CATALINA_OPTS -Xmx512M;

armalai wrote:
Hi.,
   I'm getting out of memory Error.
How do i know the current jvm memory?
I know the hardware memory details?
Please advise me which one is causing this error and how do i know the current 
settings?
Thanks.,
MALAI


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


Re: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-18 Thread Joseph Shraibman
Great, thanks for the info!  But I already downgraded my production 
machine to 4.1.18 to avoid this problem.  I wish I knew how to reproduce 
this on my development box so I can know for sure if this solves the 
problem.  Otherwise I can't justify trying this in productions.

My test to try to reproduce this bug was:
i=1
while [ $i -lt 2 ] ; do
lynx -source $URL  /dev/null
i=`expr $i + 1`
done
... where I changed $URL to point to different servlets or jsps.

What is this JMX thing anyway?  Is it supposed to produce a report for 
the jk status page (that I could never get to work anyway?)

Robert Krüger wrote:
Hi,

we had the same problem (enormous memory leak which frequently made our 
production system crash), downgraded to 5.0.18 and everything went back 
to normal. Just yesterday a colleague of mine came to the conclusion 
that it is not too unlikely that it is the problem described in the message

http://www.mail-archive.com/[EMAIL PROTECTED]/msg53035.html

It that is so, you can simply disable the JMX registration of requests 
to get rid of the problem. We will try that probably later today but of 
course you can give it a shot yourself. There is not much to lose.

Regards,

Robert

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


Re: how to use multiple jk2 connectors?

2004-03-18 Thread Joseph Shraibman
Robert Hall wrote:
Joseph,

We're using Apache 1.3.27 on solaris with mod_jk2 to connect to two 
JBoss/Tomcat instances
listening on separate ports.  I experienced the same thing you 
described, all requests going to
one of the jk2 ports.

However, if I shutdown the JBoss/Tomcat instance that was getting all of 
requests, then the
other instance would start gettng the traffic.  After restarting the 
primary instance I examined
jk2.log.  It looked like the requests were heading to the correct 
server, but then would be redirected
to the primary.

So the bug is in tomcat somewhere, not in mod_jk2?

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


Re: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-18 Thread Joseph Shraibman
So how do I reproduce these messages:

Mar 18, 2004 2:33:31 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 18, 2004 2:46:46 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
... which presumably are related to the memory leak?

Shapira, Yoav wrote:
Hi,


What is this JMX thing anyway?  Is it supposed to produce a report for
the jk status page (that I could never get to work anyway?)


It's a lot more than that: many tomcat components are now manageable via
JMX (any JMX console will do).  There's also a nice report in the
Manager webapp (http://localhost:8080/manager/status is the default
URL), not related to JK.
Yoav Shapira



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]


Re: how to use multiple jk2 connectors?

2004-03-18 Thread Joseph Shraibman
Robert Hall wrote:
Hi,

Actually, I'm leaning towards a bug in mod_jk2 since a change in
workers2.properties resulted in everything (so far) working.  The only
extra detail I had to add was explicit reference to index.jsp for both
app's.
Did you have a chance to try the config change I suggested?

That wouldn't work for me, since I have ip based virtual hosts.

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


Re: how to use multiple jk2 connectors?

2004-03-18 Thread Joseph Shraibman
Robert Hall wrote:
Hi,

No offense intended, but I have to ask:

o Does your jk2.log give any hints as to what is going on?

Nope.

o Did you try stopping the TC instance that is listening on 8009
  to see if one or more of the others would respond?
No, when I have time I'll try that on my test machine


o  Is it possible to make the URIs in JkUriSet/  more explicit -
   like /app1/* and /app2/*   ?
No, everything is at the top level

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


Horrible memory leak in tomcat 5.0.19

2004-03-17 Thread Joseph Shraibman
I recently upgraded my production server from jk 1.2.5/tomcat 4.1.18 to 
jk 2.0.2/tomcat 5.0.19.  I'm having a horrible memory leak now and need 
to restart tomcat frequently when it runs out of memory.  I always had 
set the max memory to 512m, now after running around 50 minutes memory 
usage is already 178,143,080 bytes.  Does anyone have any idea what 
could be the problem?  The only messages in catalina.out are:

Mar 17, 2004 1:52:51 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:52 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:53 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:57 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:52:59 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:02 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:03 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:06 PM org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
Mar 17, 2004 1:53:11 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:35 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:37 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Mar 17, 2004 1:53:42 PM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
PS The faq at http://jakarta.apache.org/tomcat/faq/connectors.html says 
that mod_jk is the preferred connector and that jk2 is not production 
quality.  My understanding was that jk was in maintence mode and jk2 is 
considered the stable connector.  Is the faq right or is it just out of 
date?

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


Re: Horrible memory leak in tomcat 5.0.19

2004-03-17 Thread Joseph Shraibman
Shapira, Yoav wrote:
Hi,
Does the memory leak occur when you run tomcat standalone?
I can't run the production server in standalone, and I can't seem to hit 
my test server hard enough to reproduce the problem clearly.  I'll keep 
trying.

  Can you
point out its source e.g. by running with a profiler?
I don't have a profiler :(

  Was the load
during these 50 minutes exceptionally heavy?

On the heavy side, but not really stressing the server except for this 
memroy leak.  Tomcat 4.1.18 handled loads like this all the time.

BTW How can I view the jk2 status?  I tried both of these:
In httpd.conf:
Location /jkstatus/*
JkUriSet worker status
/Location
in workers2.properties:
[uri:/status/*]
worker=status:status
In my error_log I see:
[Wed Mar 17 14:26:42 2004] [notice] Apache/2.0.48 (Unix) mod_ssl/2.0.48 
OpenSSL/0.9.7a mod_jk2/2.0.2 configured -- resuming normal operations
[Wed Mar 17 14:26:42 2004] [error] uriEnv.init() map to invalid worker 
/jkstatus/* status
[Wed Mar 17 14:26:42 2004] [error] uriEnv.init() map to invalid worker 
/status/* status:status
[Wed Mar 17 14:26:42 2004] [error] mod_jk child init 1 -2
[Wed Mar 17 14:26:43 2004] [error] jk2_init() Can't find child 2506 in 
scoreboard

... and going to the url just produces a 500 error.

Also The faq at http://jakarta.apache.org/tomcat/faq/connectors.html 
says that mod_jk is the preferred connector and that jk2 is not 
production quality.  My understanding was that jk was in maintence mode 
and jk2 is considered the stable connector.  Is the faq right or is it 
just out of date?

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


Re: Apache not starting with Mod_JK

2004-03-17 Thread Joseph Shraibman
Seems strange that apache would complain about a file only tomcat should 
deal with.

Chris Haines wrote:
Hello,

I am trying to start Apache with mod_jk. When I try starting apache, I 
get the following error. I haven't modified the admin.xml file. If 
anyone can help, I would greatly appreciated it.

Syntax error on line 25 of 
/usr/local/jakarta-tomcat-5.0.19/conf/Catalina/localhost/admin.xml:
Expected /!-- but saw /Context

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]


how to use multiple jk2 connectors?

2004-03-17 Thread Joseph Shraibman
I have multiple ip based virtual hosts, so in tomcat I configured three 
seperate engines with connectors on different ports, and in the apache 
VirtualHost I JkMount the worker that I configured in 
worker.properties to connect on a specific port.  This works fine for 
mod_jk, but when I try mod_jk2 it insistes on using the default host of 
the engine that has the connector listening on port 8009.

This is how I configure jk2:
Location /*.jsp
JkUriSet worker ajp13:localhost:8019
/Location
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to set CATALINA_OPTS?

2004-03-15 Thread Joseph Shraibman
My tomcat rc script looks like this:

 start)
echo -n Starting tomcat: 
su - ${TOMCAT_USER} -c  . ~/.bashrc ; CATALINA_OPTS=-Xmx512M 
$TOMCAT_HOME/startup.sh
echo
;;

... but CATALINA_OPTS is not making it into startup.sh.  What am I doing 
wrong?  I don't like hacking catalina.sh

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


Re: can't get tomcat 5 to work

2004-02-26 Thread Joseph Shraibman
What I really want is more error messages, so I can figure out what is 
going wrong with my webapps.

Bill Barker wrote:
You can get rid of the messages by setting:
  request.registerRequests=false
in your jk2.properties file.  However the error itself is harmless.
Joseph Shraibman [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I set up tomcat 5 but when I try to view a jsp or servlet all I get is a
blank page and these unhelpful messages in catalina.out:
Feb 27, 2004 12:01:26 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:27 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:28 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:29 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
The tomcat examples work, but my own webapps do not.  Any ideas?




-
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: can't get tomcat 5 to work

2004-02-26 Thread Joseph Shraibman
Oswald Campesato wrote:
Hello, Joseph:
 
Perhaps you can try starting with startup.bat debug and/or copying
some JSPs into webapps\ROOT or webapps\jsp-examples to see if
the problem occurs.
 
starting with startup.sh -debug doesn't produce any good error messages.

Copying my webapp to the tomcat/webapp-name/ROOT does work (for the jsps 
anyway) but that isn't what I want.

In tomcat 4.1.18 I had this in my tomcat/webapp-name/default.xml:

Context path= docBase=/local/webapps/name
debug=9
  Resources className=org.apache.naming.resources.FileDirContext
 allowLinking=true docBase= /
/Context

... why isn't this working with tomcat 5?

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


can't get tomcat 5 to work

2004-02-26 Thread Joseph Shraibman
I set up tomcat 5 but when I try to view a jsp or servlet all I get is a 
blank page and these unhelpful messages in catalina.out:

Feb 27, 2004 12:01:26 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:27 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:28 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:29 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
The tomcat examples work, but my own webapps do not.  Any ideas?

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


Re: Number Format

2004-02-26 Thread Joseph Shraibman
Quick and easy way: cast to an int

Cui Xiaojing-a13339 wrote:
 Hello All,
 
 I need to format number 12345.00 to 12345, I use below code to do the format, but 
 the result is 12,345. Could please  give some advice about how to delete the 
 separator. Thanks a lot.
 
 NumberFormat nf= NumberFormat.getInstance();
 nf.setMaximumFractionDigits(0);
 nf.setMinimumFractionDigits(0);
 ((DecimalFormat)nf).setDecimalSeparatorAlwaysShown(false);
 
 Regards,
 Xiaojing
 
 
 -
 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: crash on startup: java.util.zip.ZipException: Permission denied

2003-09-03 Thread Joseph Shraibman
I've discovered the problem is that I have a symlink to bsh-1.3b2.jar (beanshell) in 
shared/lib.  I don't know why that is a problem but it is.  I tried both 1.3.0 and 2.0b1 
and they both have the problem, but 1.2b7 does not

Joseph Shraibman wrote:
I've been running tomcat 4.1.18 on rh9 with jdk 1.4.2 for a while.  
Suddenly today trying to start tomcat results in:

java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:112)
at java.util.jar.JarFile.init(JarFile.java:127)
at java.util.jar.JarFile.init(JarFile.java:65)
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1082) 

at 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.java:221) 

at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:204) 

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:155)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: 
java.util.zip.ZipException: Permission denied
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1110) 

at 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.java:221) 

at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:204) 

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:155)



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


crash on startup: java.util.zip.ZipException: Permission denied

2003-09-02 Thread Joseph Shraibman
I've been running tomcat 4.1.18 on rh9 with jdk 1.4.2 for a while.  Suddenly today trying 
to start tomcat results in:

java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:112)
at java.util.jar.JarFile.init(JarFile.java:127)
at java.util.jar.JarFile.init(JarFile.java:65)
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1082)
at 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.java:221)
at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:204)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:155)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: 
Permission denied
at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1110)
at 
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.java:221)
at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:204)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:155)

What could be causing this?

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


Re: crash on startup: java.util.zip.ZipException: Permission denied

2003-09-02 Thread Joseph Shraibman
Even if that would cause a webapp not to load, it wouldn't keep tomcat from starting, 
would it?

Filip Hanik wrote:
check your permissions on your libraries in WEB-INF/lib
did you copy them in under a different user?
Filip


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


Re: crash on startup: java.util.zip.ZipException: Permission denied

2003-09-02 Thread Joseph Shraibman
Filip Hanik wrote:
actually looking at the stack trace,
looks like a tomcat classloader,
so this could be related to jar files in common/lib and server/lib
and yes, this would keep tomcat from starting :)
Filip
All of those have global read permission, and haven't changed recently.  So why would 
tomcat stop working all of a sudden?

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


Re: Form Data IE vs NS

2003-01-23 Thread Joseph Shraibman
Is it a https:// url?

Kevin Wilson wrote:

[problem]
Form data not retained using back operation in IE v6.0.2800.1160 after a
form is posted but a required field was missing. Versions of IE prior to
this would allow the retention of form data.

[info]
Netscape v7.0 retains the data after an unsuccessful post and the back
button is used to return.

[System]
Tomcat 4.0.4 (using built-in HTTP connector) on SuSE Linux 8.1 
MySQL database 3.x
Servlet application using JDBC.  

Any ideas as to why the above version of IE doesn't keep form data in cache
would be very appreciated.

Thanks,

Kevin



--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


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




Memory leak with ThreadGroups

2003-01-23 Thread Joseph Shraibman
One of my classes creates a static ThreadGroup.  I notice that when I update a class and 
tomcat reloads that context the ThreadGroup is still around. If the ThreadGroup is still 
around that means the old class is still around, which means that class loader is still 
around.  Why is it still around?  I tried making the ThreadGroup daemon but it didn't help.

I think the fact that the old class loaders are still around goes a long way to explaining 
why tomcat takes up so much memory.


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



Re: Memory leak with ThreadGroups

2003-01-23 Thread Joseph Shraibman
Sorry, forgot to mention: tomcat 4.1.18, jdk 1.4.1_01 on linux.

Joseph Shraibman wrote:

One of my classes creates a static ThreadGroup.  I notice that when I 
update a class and tomcat reloads that context the ThreadGroup is still 
around. If the ThreadGroup is still around that means the old class is 
still around, which means that class loader is still around.  Why is it 
still around?  I tried making the ThreadGroup daemon but it didn't help.

I think the fact that the old class loaders are still around goes a long 
way to explaining why tomcat takes up so much memory.




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




Re: can tomcat do dynamic virtual hosts?

2003-01-05 Thread Joseph Shraibman
Turner, John wrote:




Tomcat has an Alias element in server.xml.  It goes under Host.


OK thanks for pointing that out.




 

Tomcat needs to do what it needs to do because a web app is 

more than just a


directory that has content in it.



Right, but sometimes you might want to lump multiple things into one 
webapp.


Sorry, I have no idea what that means.


Somtimes you want a.host.com and b.host.com to be in the same webapp




Which is my point.  Using auto-deply is not the same thing as simply 
creating a directory and putting files in it. Apache has the dynamic 
virtual host feature for a reason.  Using auto-deply requires 
that all 
your content be under directories, which doesn't look as nice 
as having a 
hostname.  name.host.com is better than host.com/name


You can have name.host.com.  I just don't understand why you think you can't
do that.  Tomcat's Host element can take ANYTHING as its name parameter
(within reason) and the Host element can take an Alias element.

Nowhere in Tomcat is a rule that says host.com/name is the only legal URL.
You can have name.host.com all you like, you just configure Host
accordingly and put the webapp in the special ROOT Context and your webapp
is served as name.host.com/.  How is that not what you want?

My point is that a webapp is not just a directory with some files in it.
There's a lot more to a webapp then that, and thus, there is more that
Tomcat has to do and more configuration overhead required or possible
(Realms, etc).  You can auto-deploy a Context.


How?  If I want to add a new Context don't I have to restart tomcat to reread the 
server.xml file.

Scroll down to the section that says automatic application deployment and
the following section on host name aliases.  Basically, for a dynamic
virtual host, since you're going to need a restart anyway (see Craig's
comments on possible future ability to pick up config changes on-the-fly
without a restart):

That's my point. In apache it doesn't need a restart.



- add a new Host element to server.xml with one or more Alias
- drop an XML file into the appBase directory, according to the auto deploy
specs to auto-define your web app

Since you have a restart, a new mod_jk.conf file is generated, and it will
have the new Host information in it.


I gave up on autogeneration.


Even so, you wouldn't WANT a restart, because having a monolithic Tomcat
with many many virtual hosts and webapps in it is the wrong way to go in an
ISP/ASP scenario (in my opinion). 

This isn't that scenario, but we do have multiple webapps and hosts.

 So, if you agree with that, then what

you're really talking about is a small shell script that simply copies the
default server.xml to server-customer-account.xml, creates a
work-customer-account directory, and does all of the other things required
to have a distinct instance of Tomcat running (including the Host and web
app config listed above), and then does a start on the new Tomcat.


Distinct tomcat? That would mean a different port for each tomcat, plus the overhead (90 
megs of memory on my test machine)



Maybe I'm just a tree stump, but I haven't seen you propose a case that
can't be handled.


The case where tomcat works with my Apache dynamic virtual hosts. Apache doesn't *need* 
dynamic virtual hosts either, you could just use a lost of virtual hosts. It would be nice 
if tomcat supported the same thing.


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



Re: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Joseph Shraibman
Apache already supports dynamic virtual hosting. See 
http://httpd.apache.org/docs-2.0/vhosts/mass.html. That's what I'm talking about. The 
problem is that when connecting apache to tomcat you can't map into a contect directly, 
you only pass the request along to tomcat so somcat has to find the proper Host based on 
the requested host name. If the connector could map directly into a context then Apache 
could do something like:
JkMount /* worker1:mycontext/%0/

Craig R. McClanahan wrote:




As for the web connectors, you'll need to ask someone who understands and
works on them what the plans are for supporting dynamic configuration
changes.  Given that Apache doesn't appear to support them, I would guess
this is going to be a challenge -- but that's outside my area of
expertise.




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




Re: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Joseph Shraibman
Sorry, having a bad keyboard day. 'contect' should be context and 'somcat' should be tomcat.

Joseph Shraibman wrote:

Apache already supports dynamic virtual hosting. See 
http://httpd.apache.org/docs-2.0/vhosts/mass.html. That's what I'm 
talking about. The problem is that when connecting apache to tomcat you 
can't map into a contect directly, you only pass the request along to 
tomcat so somcat has to find the proper Host based on the requested 
host name. If the connector could map directly into a context then 
Apache could do something like:
JkMount /* worker1:mycontext/%0/



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




Re: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Joseph Shraibman
Turner, John wrote:

Hmmm...you lost me there.  Yes, you do map to a Context directly, at least
you do with JK.  That's exactly what having a JK block for /examples,
does, for example.  With Apaches 'apachectl restart' or 'apachectl graceful'
you can pick up both new virtual hosts and new JkMounts for those virtual
hosts.

On the Apache side, what more does there need to be?  

That means that all myhost.com/examples can be passed to tomcat, who looks at 
myhost.com/examples and does its own mapping to find the right context.  It doesn't mean 
that you can map myhost.com/some/arbirtray/path to the examples webapp (unless you also 
change the tomcat config) and it doesn't mean you can map a.myhost.com to /examples/a and 
b.myhost.com to /examples/b and it doesn't mean you can map *.myhost.com to /examples/%0 
where %0 is what is in *.  Or not as far as I can tell, anyway. JServ is much more 
flexible in this regard.

On another note I've totally given up on the apache autoconfiguration because of its 
inconsistant behavior.


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



mysterious parse exception on startup

2003-01-01 Thread Joseph Shraibman
If I put the latest xerces and xalan in tomcat/common/endorsed, I get the following error 
on startup. I don't get this with the xerces/xalan that comes with jdk 1.4.1.  What is 
causing this?  What *file* is this?

Starting service Tomcat-Apache
Apache Tomcat/4.1.18-LE-jdk14
Parse Fatal Error at line 551 column 44: The string -- is not permitted within comments.
org.xml.sax.SAXParseException: The string -- is not permitted within comments.
	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
	at org.apache.xerces.impl.XMLScanner.scanComment(Unknown Source)
	at org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown Source)
	at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)
	at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(Unknown Source)
	at org.apache.struts.digester.Digester.parse(Digester.java:755)
	at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1434)
	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
	at org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:152)
	at javax.servlet.GenericServlet.init(GenericServlet.java:256)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
	at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:529)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
	at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
	at org.apache.commons.digester.Digester.endElement(Digester.java:1036)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.commons.digester.Digester.parse(Digester.java:1514)
	at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
	at 

Re: mysterious parse exception on startup

2003-01-01 Thread Joseph Shraibman
It isn't server.xml.  In fact I validate all xml files under my tomcat and webapps 
directories, and none of them have a problem.  Perhaps it is dynamically generated xml 
inside the tomcat admin app? 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:152)  is in the 
stack trace.

Jerry wrote:
If it were me, I'd check server.xml carefully for nested comments, or an 
extraneous !-- or --

Jerry

Joseph Shraibman wrote:

If I put the latest xerces and xalan in tomcat/common/endorsed, I get 
the following error on startup. I don't get this with the xerces/xalan 
that comes with jdk 1.4.1.  What is causing this?  What *file* is this?

Starting service Tomcat-Apache
Apache Tomcat/4.1.18-LE-jdk14
Parse Fatal Error at line 551 column 44: The string -- is not 
permitted within comments.
org.xml.sax.SAXParseException: The string -- is not permitted within 
comments.
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown 
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanComment(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown 
Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)
at 
org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1434) 

at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
at 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:152) 

at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) 

at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) 

at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) 

at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at 
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:529) 

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228) 

at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at 
org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335) 

at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452) 

at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent

can tomcat do dynamic virtual hosts?

2003-01-01 Thread Joseph Shraibman
Can tomcat do dynamic virtual hosts?  I'm currently doing dynamic virtual hosts with 
apache + Jserv but I don't know how to do that with tomcat.


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



FileDirContext and case sensitivity

2002-12-25 Thread Joseph Shraibman
The following is in the relase notes:

[4.1.15] FileDirContext:
 allowLinking will also disable case sensitivity checks (which are
 relatively similar).

What exactly does it mean when it says disable case sensitivity?  Is that a windows thing?


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




Re: why can't tomcat 4.1.17 can't find javamail?

2002-12-23 Thread Joseph Shraibman
My bean is in classes.

Cox, Charlie wrote:

is your bean in WEB-INF/classes(or lib) or in the same directory as
mail.jar?

did you review the classloading document to make sure your classses/libs are
in the correct places?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Charlie



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




why can't tomcat 4.1.17 can't find javamail?

2002-12-19 Thread Joseph Shraibman
I tried putting the javamail jar in tomcat/shared/lib, tomcat/common/lib, and in 
myapp/WEB-INF/lib. I still get:

java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
at mybean.init(mybean.java:56)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at java.beans.Beans.instantiate(Beans.java:204)
at java.beans.Beans.instantiate(Beans.java:48)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:84)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)

I'm running Apache Tomcat/4.1.17-LE-jdk14 with java 1.4.1_01 on linux


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



Re: why can't tomcat 4.1.17 can't find javamail?

2002-12-19 Thread Joseph Shraibman
Dodd Gatsos wrote:

Still using Tomcat 4.0.3, so don't know if this is valid.

I use Tomcat/lib


I tried that and that didn't work either.


Have to restart Tomcat after you place it in there though.

mail.jar

right?


Right


Don't know if you already had it working in 4.0.3 or something.

I didn't.

BTW I upgraded to 4.1.18 since my original message, but it still doesn't work.


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




Re: jsps and servlets don't work

2002-12-18 Thread Joseph Shraibman
How can I patch if I can't even figure out how to set it up? Tomat and mod_jk are very 
poorly documented. I'm not even sure where the source to the autogenerator is.

Turner, John wrote:
Maybe so.  Seems pretty straightforward to me.  I'm sure the dev team would
welcome a patch.

Since the dev team is focusing on JK2, and ApacheConfig only works for JK,
I'm not sure they will give it much attention.  Worth a shot, though.

John


-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 17, 2002 7:22 PM
To: Tomcat Users List
Subject: Re: jsps and servlets don't work

Then at least it should put into the generated config file a comment that
ajp13 should be 
converted into the name of the worker.

Turner, John wrote:

AFAIK, no.  I believe ajp13 is hardcoded in the ApacheConfig class, but


I


could be wrong.  I guess convenience has its tradeoffs.

John


-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 7:36 PM
To: Tomcat Users List
Subject: Re: jsps and servlets don't work

Turner, John wrote:


Check the last error message: wc_get_worker_for_name ajp13.  Your
workers.properties file has a worker called test1 but the worker being
sought is ajp13.

If your JkMount commands look like this:

JkMount /*.jsp ajp13

Then change the worker name in workers.properties to ajp13, not test1.



Ah, I was wondering about that. Is there any way to get the autogenerated
conf file to 
have test1 instead of ajp13?







--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


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




Re: ssl and mod_jk won't work

2002-12-18 Thread Joseph Shraibman
Nevermind, I worked around it by playing with VirtualHost directives.

Now I want to create a standard conf file for including in VirtualHost directives to 
enable ssl. One of the things I want to do is CustomLog logs/serveramegoeshere-log.txt
Is there any kind of macro expansion I can use?


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



ssl and mod_jk won't work

2002-12-18 Thread Joseph Shraibman
I have a mod_jk.conf I include in my apache.conf

If it looks like this:
IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule

JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log

JkLogLevel warn

... I have no problem with ssl. If I add just:
VirtualHost d1.selectacast.net
ServerName d1.selectacast.net
/VirtualHost

...then all ssl calls fail, and I get this in my apache log:

[Wed Dec 18 15:17:56 2002] [notice] Apache/2.0.43 (Unix) mod_ssl/2.0.43 OpenSSL/0.9.6 
mod_jk/1.2.2 configured -- resuming normal operations
[Wed Dec 18 15:18:06 2002] [error] [client 64.7.9.58] Invalid method in request
[Wed Dec 18 15:21:32 2002] [error] [client 64.7.9.58] Invalid method in request €F
[Wed Dec 18 15:21:35 2002] [error] [client 64.7.9.58] Invalid method in request €F

so what am I doing wrong?


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



Tomcat Documentation WAS: jsps and servlets don't work

2002-12-18 Thread Joseph Shraibman
Jerry Ford wrote:



With all due respect and recognition to the enormous efforts you 
personally appear to have put into making Tomcat accessible, the 
documentation is neither comprehensive nor adequate, for either Tomcat 
or whatever is the connector du jour.  There are pockets of good 
documentation, such as your how-tos and seemingly tireless presence on 
this mail list, surrounded by lots of chaffe---incomplete, inaccurate, 
out-of-date, even non-existent files inside of tarballs or littered 
around the jakarta.apache.org website.

I have to agree.  Someone on this mailing list said that jk2 is beta. You say jk is 
deprecated. All I know is I got mod_jk to work, but couldn't get jk2 to work because the 
documentation was so bad.  I didn't even know what the JkMount directive took, so I 
couldn't figure out that ajp13 needed to be replaced with the name of my worker. As a 
starting point there should be nice documentation for the conf directives like the ones 
found at http://httpd.apache.org/docs-2.0/mod/ for those modules.

Among the things I can't find:
*) A list of properties to set in the workers.properties (and workers2.properties)
*) A list of conf directives (see above) for mod_jk and mod_jk2
*) A list of valves available in tomcat (besides the ones listed in the tomcat javadocs, 
 which are now up again, are there more?)
*) Besides valves there is no list of available Engines and Loggers and a whole bunch of 
other great things that are out there. I found that putting some of the Loggers in my 
server.xml broken the auto-generator for no apparent reason. I don't know why I have to 
include:
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
or the autogeneration fails.

I don't mean to rag on you, or the Apache group.


ditto


I know it's all free software and, though it may not sound like it, I am 
an appreciative fan, now that I have stumbled onto this list and located 
your how-to page. 
But I've spent a lot of time fruitlessly searching the 
jakarta.apache.org website for answers to my questions and I have found 
the doc set taken as a whole to be contradictory, poorly organized, and 
in some cases downright misleading.

ditto. Especially since jk contains refrences to jk2, which really confuse me. For example 
when I start tomcat I see in catalina.out:
INFO: Jk running ID=0 time=3/219  config=/usr/local/tomcat/conf/jk2.properties
... and I have no idea why jk would be accessing jk2.properties, or what I can set in there.




My point was that Tomcat is free, and it is developed in the open source
model.  That means the quickest way to get your suggestions 
implemented is
to do them yourself.

But in order to do that, I first need to have a basic knowledge of how things work, which 
I currently don't. And I can't log into bugzilla to post patches (who do I mail for that?)


The source for the ApacheConfig class is in the Tomcat source bundle, 
where
it should be. 

But I thought it should have been in the mod_jk tarball, which has a build.xml file but no 
java code. Like I said I am confused. In fact there are all sorts of directories in that 
tarball (and especially in mod_jk2) that serve no purpose I can see, besides native.

Tomcat is a mess. I'm just upgrading from jserv now, and I thought it would take a day or 
two. It has already taken a week.

And btw what is the official status of webapp, jk, and jk2?



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



Re: jsps and servlets don't work

2002-12-17 Thread Joseph Shraibman
Then at least it should put into the generated config file a comment that ajp13 should be 
converted into the name of the worker.

Turner, John wrote:
AFAIK, no.  I believe ajp13 is hardcoded in the ApacheConfig class, but I
could be wrong.  I guess convenience has its tradeoffs.

John


-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 7:36 PM
To: Tomcat Users List
Subject: Re: jsps and servlets don't work

Turner, John wrote:

Check the last error message: wc_get_worker_for_name ajp13.  Your
workers.properties file has a worker called test1 but the worker being
sought is ajp13.

If your JkMount commands look like this:

JkMount /*.jsp ajp13

Then change the worker name in workers.properties to ajp13, not test1.



Ah, I was wondering about that. Is there any way to get the autogenerated
conf file to 
have test1 instead of ajp13?



--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


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




Re: jsps and servlets don't work

2002-12-16 Thread Joseph Shraibman
Turner, John wrote:

You need JkMounts for every URL you intend to send to Tomcat.  Most people
use the default wildcards:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


I'm getting the static content from examples, so obviously all of /examples/ is mounted. 
And I added extra JkMount directives but they didn't change anything.

--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


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



Re: Configuring mod_jk2

2002-12-16 Thread Joseph Shraibman
But that doesn't say how to set the workers file

Patrick GIRY wrote:

You can found any information on the jk2.properties on

the
http://localhost:8080/tomcat-docs/jk2/jk2/configtc.html

when you have installed your tomcat.

--- [EMAIL PROTECTED] a écrit :  Where is the
jk2.properties file documented?


On Thu, 12 Dec 2002, Bill Barker wrote:



ApacheConfig is for use with mod_jk 1.x.  It


doesn't work with jk2.  With


jk2, you only need the 'LoadModule' statement in


httpd.conf.  The rest of


the configuration is handled by the


'jk2.properties' file.


Joseph Shraibman [EMAIL PROTECTED] wrote in


message


[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...


I have in my server.xml:

Listener



className=org.apache.ajp.tomcat4.config.ApacheConfig


modJk=/usr/local/apache2/modules/mod_jk2.so /

... which generated:

## Auto generated on Thu Dec 12 16:58:06


EST 2002##


IfModule !mod_jk.c
  LoadModule jk_module


/usr/local/apache2/modules/mod_jk2.so


/IfModule

JkWorkersFile


/local/tomcat/conf/jk/workers.properties


JkLogFile /local/tomcat/logs/mod_jk.log

JkLogLevel emerg

== end file

The problem is that if I include that file in my


httpd.conf I get:


Starting apache2: 

/usr/local/apache2/bin/apache2


Syntax error on line 3 of


/local/tomcat/conf/mod_jk.conf:


Can't locate API module structure `jk_module' in


file


/usr/local/apache2/modules/mod_jk2.so:


/usr/local/apache2/modules/mod_jk2.so: undefined


symbol: jk_module

If I change my mod_jk.conf to look like:

IfModule !mod_jk.c
#  LoadModule jk_module


/usr/local/apache2/modules/mod_jk2.so


  LoadModule jk2_module


/usr/local/apache2/modules/mod_jk2.so


/IfModule
..etc.

I get:
Starting apache2: 

/usr/local/apache2/bin/apache2


Syntax error on line 7 of


/local/tomcat/conf/mod_jk.conf:


Invalid command 'JkWorkersFile', perhaps


mis-spelled or defined by a


module not included


in the server configuration

This is apache 2.0.43 on linux with tomcat


4.1.12 and mod_jk2 2.0.2






--
To unsubscribe, e-mail:  

mailto:[EMAIL PROTECTED]


For additional commands, e-mail:


mailto:[EMAIL PROTECTED]


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



=
A+
Patrick GIRY
e-mail : [EMAIL PROTECTED]

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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



--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


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




Re: jsps and servlets don't work

2002-12-16 Thread Joseph Shraibman
OK I got the autogenerated conf file to have the jkmounts in it (don't know why it didn't 
work before), but now whenever I go to a jsp or servlet I get a ServerError.
In my mod_jk.log I get (my loglevel is debug):

[Mon Dec 16 18:30:47 2002]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker[Mon Dec 16 18:30:47 2002]  [jk_uri_worker_map.c 
(477)]: Attempting to map URI '/examples/jsp/snp/snoop.jsp'
[Mon Dec 16 18:30:47 2002]  [jk_uri_worker_map.c (558)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp
[Mon Dec 16 18:30:47 2002]  [jk_uri_worker_map.c (558)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp
[Mon Dec 16 18:30:47 2002]  [mod_jk.c (1668)]: Into handler r-proxyreq=0 
r-handler=jakarta-servlet r-notes=135705328 worker=ajp13
[Mon Dec 16 18:30:47 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13
[Mon Dec 16 18:30:47 2002]  [jk_worker.c (136)]: wc_get_worker_for_name, done did not 
found a worker

My worker file looks like this:
=
workers.apache_log=/usr/local/apache2/logs
workers.tomcat_home=/local/tomcat
workers.java_home=/usr/local/jdk1.4.1
ps=/


worker.list=test1

worker.test1.type=ajp13
worker.test1.host=d1.selectacast.net
#worker.test1.port=8008
worker.test1.port=8009
==

Where can I find detailed information on the workers file (besides the howto) and the 
autogeneration?






--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


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




Re: jsps and servlets don't work

2002-12-16 Thread Joseph Shraibman
Turner, John wrote:

Check the last error message: wc_get_worker_for_name ajp13.  Your
workers.properties file has a worker called test1 but the worker being
sought is ajp13.

If your JkMount commands look like this:

JkMount /*.jsp ajp13

Then change the worker name in workers.properties to ajp13, not test1.


Ah, I was wondering about that. Is there any way to get the autogenerated conf file to 
have test1 instead of ajp13?

--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


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



RemoteAddrValve and ajp13 connections

2002-12-16 Thread Joseph Shraibman
I put these lines in my server.xml for a tomcat that only talks to apache.
I keep getting 403 errors when these are in. How can I configure tomcat to only allow 
connections (ajp13) from certain ip addresses?

Valve className=org.apache.catalina.valves.RemoteAddrValve
 allow=127.*/
Valve className=org.apache.catalina.valves.RemoteAddrValve
 allow=real ip of the server/
--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


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



Re: app roll out.

2002-12-16 Thread Joseph Shraibman
But that doesn't explain why apache would be any better at that than tomcat.

James Higginbotham wrote:

That's probably the case if you were using cookies to track sessions.
The cookie spec mentions that the port is also part of the scope of a
cookie, so when you went from www.foo.com:80 to www.foo.com:443 you
changed the scope of the original cookie and thus created a new
session on the server side. The fix is to either change the cookie's
domain to be foo.com rather than www.foo.com, which will make it match
to all servers in that domain on all ports. At least, this seems to be
what I remember the issue being several years ago for a similar
deployment I did. 


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




Apache threads and tomcat connections

2002-12-16 Thread Joseph Shraibman
Will apache create on connection to tomcat for each child server, or for each thread?


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




Re: How to build jk2?

2002-12-12 Thread Joseph Shraibman
Turner, John wrote:


Using configure is familiar to most systems administrators.


once you find it.


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




Where did the tomcat javadocs go?

2002-12-12 Thread Joseph Shraibman
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/ is empty.


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




Configuring mod_jk2

2002-12-12 Thread Joseph Shraibman
I have in my server.xml:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/usr/local/apache2/modules/mod_jk2.so /

... which generated:

## Auto generated on Thu Dec 12 16:58:06 EST 2002##

IfModule !mod_jk.c
  LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so
/IfModule

JkWorkersFile /local/tomcat/conf/jk/workers.properties
JkLogFile /local/tomcat/logs/mod_jk.log

JkLogLevel emerg

== end file

The problem is that if I include that file in my httpd.conf I get:
Starting apache2:  /usr/local/apache2/bin/apache2
Syntax error on line 3 of /local/tomcat/conf/mod_jk.conf:
Can't locate API module structure `jk_module' in file 
/usr/local/apache2/modules/mod_jk2.so: /usr/local/apache2/modules/mod_jk2.so: undefined 
symbol: jk_module

If I change my mod_jk.conf to look like:

IfModule !mod_jk.c
#  LoadModule jk_module /usr/local/apache2/modules/mod_jk2.so
  LoadModule jk2_module /usr/local/apache2/modules/mod_jk2.so
/IfModule
..etc.

I get:
Starting apache2:  /usr/local/apache2/bin/apache2
Syntax error on line 7 of /local/tomcat/conf/mod_jk.conf:
Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included 
in the server configuration

This is apache 2.0.43 on linux with tomcat 4.1.12 and mod_jk2 2.0.2




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



Re: How does mod_jk2 find properties file.

2002-12-12 Thread Joseph Shraibman
Bill Barker wrote:

One of the reasons that jk2 is a beta :-).  It looks like it is trying to


jk2 is beta?


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




Re: Configuring mod_jk2

2002-12-12 Thread Joseph Shraibman
Jacob Kjome wrote:

Hello Joseph,

Yeah, that is a problem.  That line should be output as a relative
path, but I've never been able to figure out how to set up the
aut-generation in the Listener to do that for me without messing other
stuff up.  What I do is auto-generate once, make a copy and modify
that line to be relative such as...

LoadModule jk_module modules/mod_jk2.so



No, that wasn't the problem. The problem with that line was that jk_module should have 
been jk2_module. The absolute path worked fine.


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



jsps and servlets don't work

2002-12-12 Thread Joseph Shraibman
I finally got apache to connect to tomcat using mod_jk, but jsps and servlets don't work. 
Going to a jsp just shows the source. Is having the web.xml in my conf directory enough, 
or do I have to include in some other config file?

To see what is happening:
http://d1.selectacast.net:8000/examples/jsp/


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



How to build jk2?

2002-12-11 Thread Joseph Shraibman
On http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html it talks about 
configure scripts, but the actual source I downloaded from 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/src/ doesn't 
have configure scripts. It does have README.txt that says:

* Copy build.properties.sample to build.properties

* Edit build.properties to taste. In particular it's important to set
the paths to tomcat and apache.

But when I do that I get:

detect:
 [echo]  jakarta-tomcat-connectors 

prepare:
[mkdir] Created dir: 
/local/download/apache/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/conf
[mkdir] Created dir: 
/local/download/apache/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/classes
[mkdir] Created dir: 
/local/download/apache/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/classes/META-INF
[mkdir] Created dir: 
/local/download/apache/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/lib
 [copy] Copying 8 files to 
/local/download/apache/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/conf

BUILD FAILED
file:/local/download/apache/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105: 
Warning: Could not find file 
/local/download/apache/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-coyote.jar 
to
copy.

Total time: 5 seconds

This source package doesn't seem to be release quality. The README.txt has:
Setting tomcat 4.1
==

Restart tomcat.

( XXX this is not completely implemented. For now we'll use the same
mechanism as in 4.0 - i.e. add Connector in server.xml.  )

Configuring JK1
===



Configuring JK2
===

and the build.properties.sample has:


# If you want to build/install on  both 4.0
# and 4.1, set this to point to 4.0 and 'catalina.home'
# to point to 4.0
# ( most people need only the first, but developers should
# have both )
tomcat41.home=../../jakarta-tomcat-4.1/build

So how do I get a connector?  Does 2.0.1 work?  Should I just use jk?


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



Re: How to build jk2?

2002-12-11 Thread Joseph Shraibman
Turner, John wrote:

You don't need to build the connector JARs.  They are already built for you
(check a binary install package of Tomcat).  The only thing you need to
build is the Apache side (the Apache module) of the connector, and even then
you can probably get a binary from the Jakarta site or even my own site at:

http://www.johnturner.com/howto

That said, building the Apache side of the connectors is fairly
straight-forward, 

yeah, easy once you figure out you need to run the configure script in the native2 
directory. Why isn't there a README in the tarball?


--
Joseph Shraibman
[EMAIL PROTECTED]
Increase signal to noise ratio.  http://xis.xtenit.com


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