RE: Upgrading Tomcat 5

2003-07-15 Thread Ralph Einfeldt
I prefer a different setup.

We separate the tomcat installation from the site.

With this approach the conf files are placed outside of
the tomcat directory tree. As long as the config files 
are compatible, an upgrade is just a matter of setting a 
different CATALINA_HOME.

Althoug we didn't use tomcat 5 by now the following 
should be appliable:

(An updated version of a post from yesterday)

We install different versions of jdk/tomcat like this:

/usr/local/java/jdk/ibm1.3
/usr/local/java/jdk/sun1.3
/usr/local/java/jdk/sun1.3.1
/usr/local/java/jdk/sun1.4

/usr/local/java/tomcat-4.0.3
/usr/local/java/tomcat-4.1.10

For each site we have something like this:

/www/online/site
the base directory for a tomcat instance (In our case typically a 
site, as we don't use vhosts withe different webapps)

/www/online/site/log
directory for the log file

/www/online/site/conf
web.xml
server.xml
  and other files that contain the site/instance specific setup 
  for tomcat (tailored versions of the files that are provided by 
  tomcat)
  make shure that all combinations of IP and port are unique for
  each instance of tomcat. 
...

/www/online/site/work
Directory where tomcat stores the generated files and classes

/www/online/site/webapps
 Directories for the contexts

/www/online/site/bin
start.sh
  Script that calls the tomcat version that we want to use for 
  this site/instance with the environment for this site/instance:

  JAVA_HOME=/usr/local/java/jdk/sun1.3.1
  CATALINA_HOME=/usr/local/java/tomcat-4.0.3
  CATALINA_BASE=/www/online/site

  export JAVA_HOME CATALINA_HOME CATALINA_BASE
  ${CATALINA_HOME}/bin/startup.sh

/www/online/site/???
 Depending on the tomcat version there may be further directories 
 that are needed on this level

This way we can have different versions of tomcat at the same time, 
all sites that use the same tomcat version use the same 'executable'
but different processes and individual configuration. If we want to 
use another version of tomcat we just have to change CATALINA_HOME 
in start.sh (unless the config files are incompatible between these 
versions)

 -Original Message-
 From: Gerry Reno [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 4:42 AM
 To: Tomcat Users List
 Subject: Re: Upgrading Tomcat 5
 
 
 Tim,
   Is this definitive?  I was hoping this would not be the case.  I
 think that requiring users to run content replacement scripts against
 their config files to accomplish an upgrade will definitely end up
 being problematic.
 
 Gerry
 

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



Tomcat 4.1.24 + Security Manager + weird Exceptions

2003-07-15 Thread Haug Thomas
Hi everybody,

I am experiencing some strange behaviour with Tomcat 4.1.24 running with a
SecurityManager. The system is running on Solaris 8 using Jdk 1.4.1_02
and/or 1.4.2
Our software seems to use up all available file descriptors. If then tomcat
tries to accept a new request the IO system throws an SocketException
telling us that there are too many files open (see stacktrace below). 
Tomcat seems to reinitialize the ServerSocket but then the whole Tomcat (or
the Coyote HTTP connector) 'breaks down': The securityManager starts to
throw exceptions that class files are not allowed to be loaded, Sockets are
not allowed to be opened (see below), and other strange things. At last we
are not able anymore to request any http page from tomcat.

Has anybody experienced a similar behaviour of tomcat. Or even better does
anybody know how to fix this problem (beside not using all file descriptors
;-) )

Thank you very much,
Thomas



*
StackTrace (in catalina.out)
*


Jul 14, 2003 5:06:32 PM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
ignored exception: java.net.SocketException: Too many open
 files
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe
rverSocketFactory.java:107)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java
:356)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)
Jul 14, 2003 5:06:32 PM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Reinitializing ServerSocket
Jul 14, 2003 5:06:33 PM org.apache.tomcat.util.net.TcpWorkerThread runIt
SEVERE: Exception in acceptSocket
java.security.AccessControlException: access denied
(java.net.SocketPermission 146.254.108.60:3156 accept,resolve)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:269)
at
java.security.AccessController.checkPermission(AccessController.java:401)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkAccept(SecurityManager.java:1149)
at java.net.ServerSocket.implAccept(ServerSocket.java:452)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe
rverSocketFactory.java:107)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java
:356)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)
Jul 14, 2003 5:06:33 PM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception executing
[EMAIL PROTECTED], terminating thread
java.lang.IllegalStateException: Terminating thread
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:532)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)

... (a whole lot more)

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



Getting problem in updating WAR files

2003-07-15 Thread bas perumal
Hi All,
   For Each version, I have to update the WAR file with cab files. So I used loop, for 
each version the loop will call the target where i am updating the WAR file. the 
problem is , first time (first version) i am able to update the WAR file with the cab 
files but for the other versions the control is coming into the target but it is not 
updating the WAR file. Please help me on this. This is my target where i am updating 
the war file(build.cds.war.corp)
 
 target name='Update Crystal Package'
  mkdir 
dir=${build.root}/cdswebCorps/${build.corp.fullname}/crystal/${config.crystal.corp.version}/sys/
  jar jarfile=${build.cds.war.corp} taskname=cds.${build.corp}.war.crystal 
update=true duplicate=preserve 
   fileset dir=${build.root}/cdswebCorps/${build.corp.fullname} 
includes=crystal/${config.crystal.corp.version}/sys/*.cab/
   fileset dir=${build.root}/cdsweb2.0 
includes=crystal/${config.crystal.corp.version}/sys/*.cab/
  /jar
 /target

Please let me know asap,
 
Thanks,
bas

SMS using the Yahoo! Messenger;Download latest version.

when the browser back button is clicked how can i get the previous page to be displayed instead of a content expired message?

2003-07-15 Thread Chris Woollard



We have a problem where when the back button is pressed in the browser it
displays a This page has expired message. How can i get tomcat to display
the previous page correctly?
 
The Web server is IIS5 with the redirector 2 connector with tomcat 4.1.24
 
 thanks
chris
 

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



I'm still officially lost with mod_jk

2003-07-15 Thread Werner van Mook
Hi,

I changed some settings as some of you suggested.
Still no luck.

- remove JkMount from global configuration.  JkMount directives are 
VirtualHost-specific.
It's removed.

- verify the ServerName in httpd.conf matches the name in your Host 
container in server.xml
Done.

- change your worker name to ajp13 (worker1 is probably OK but since 
it doesn't matter, there's no reason not to use ajp13 and in some 
cases the name ajp13 makes a difference)
Done.


- remove the extra stuff from workers.properties...you only need 
.list, .host, .type, and .port.
Done.


- check contents of your JK log file...it is typically pretty 
specific, telling you exactly what is wrong.
Can't find it !  At least not in the location I thought it would be.
I did set it in httpd.conf didn't I?
What I did do is look at catalina.out I found these lines :

INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jul 15, 2003 8:42:53 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=4/771  
config=/usr/jakarta-tomcat-4.1.24/conf/jk2.properties

In my humble opinion it says that JK is running and using 
jk2.properties.
I never put anything in this file. Should I haven done that?

Kind regards
Werner
Here are my files :


I have apache 1.3.x with tomcat 4.1.24
I installed mod_jk
in httpd.conf I put :

LoadModule jk_module modules/mod_jk.so

.
.
.
# MY OWN STUFF HERE
IfModule mod_jk.so
AddModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
This is the location of the logfile. Right?

JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
# JkMount  /Friss/* worker1
/IfModule
In workers.properties I have :

#Define 1 real worker using ajp13

worker.list=ajp13

#Set properties for worker1(ajp13)

worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
# worker.ajp13.lbfactor=50
# worker.ajp13.cahcesize=10
# worker.ajp13.cache_timeout=600
# worker.ajp13.socket_keepalive=1
# worker.ajp13.socket_timeout=300
In the webapps dir I created a dir called Friss wich contains a 
WEB_INF dir and a index.html file.

When I restart tomcat and apache I want to request : 
www.connecties.com/Friss.

I suspected to get the index.html file from the Friss webapp. Instead 
I got a 404 document not found.





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


Re: Servlet Context Listener problem...

2003-07-15 Thread Jon Wingfield
Is that the entirety of your web.xml? The error looks like the parser 
can't find the definition of the listener element, it hasn't even got 
to the point of worrying about element order yet.
Have you got an xml prolog and a doctype at the top of the file? eg:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

(Apologies for line-wrap)

Jon

Mufaddal Khumri wrote:

Hi:

I implemented ServletContextListener in my class. I then wrote the xml  
in the web.xml file and started tomcat. The error tomcat threw tells me  
that it did not recognize the listener and listener-class elements ?? i  
have them declared in the web.xml as:

web-app

!-- ServletContextListener --
listener
listener-class

com.wavesinmotion.cw.classes.jsphelpers.CourseWizardContextListener
/listener-class
/listener
/web-app

Any ideas where I am going wrong ?
Thanks.
Tomcat threw this error below:

SEVERE: Parse Error at line 10 column 12: Element type listener must  
be declared.
org.xml.sax.SAXParseException: Element type listener must be declared.
at  
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error 
HandlerWrapper.java:232)
at  
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav 
a:173)
at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:371)
at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:305)
at  
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVali 
dator.java:1833)
at  
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator. 
java:724)
at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X 
MLDocumentFragmentScannerImpl.java:759)
at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis 
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo 
cumentFragmentScannerImpl.java:329)
at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 
25)
at  
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5 
81)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at  
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java 
:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at  
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi 
g.java:282)
at  
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at  
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j 
ava:243)
at  
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu 
pport.java:166)
at  
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567 )
at  
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
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 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav 
a:39)
at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor 
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jul 14, 2003 3:56:11 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 11 column 19: Element type listener-class  
must be declared.
org.xml.sax.SAXParseException: Element type listener-class must be  
declared.
at  
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error 
HandlerWrapper.java:232)
at  
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav 
a:173)
at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:371)
at  
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav 
a:305)
at  
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVali 
dator.java:1833)
at  
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator. 
java:724)
at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X 
MLDocumentFragmentScannerImpl.java:759)
at  

Re: Re: mod_jk round robin problem stateless session beans

2003-07-15 Thread Simon Pabst
Thanks for you wisdom guys :-)


I'll try and test if Apache 2 with worker mpm works better,
although i still suspect the stateless session beans are part of the problem.

Since like i said with sticky_session off 
or the SessionExample with sticky_session on 
the round robin seems to works fine.

Besides the behaviour of sticky_session off should be theoretically similar as when 
any new user logs on to the server and hasn't established a session yet, right?


The mod_jk lb_factor and lb_value also seem to do pretty nothing (on prefork Apache):
- Tested low lb_factor on first Tomcat and increased lb_factor on following Tomcats,
  last Tomcats with higher lb_factor still got no requests
- lb_value is almost always the same as lb_factor in JK2's jkstatus page
  when you access the application the lb_value changes to exactly twice as the 
lb_factor 
  (on first Tomcat mostly) and then goes down to value of lb_factor again 
  (before request: lb_factor 100, lb_value 100 
  after request: lb_factor 100, lb_value 200
  a bit later: lb_factor 100, lb_value 100 again)


How the Load Balanciung of mod_jk could be enhanced to be a real load balancing, not 
just round robin:
Have some rules regarding the Status/Load of Tomcat/JVM, which you can put in any 
order you prefer (mod_backhand does sth. similar) (those will propably need jni or 
sth. else to work):
- byJVMThreads
- byJVMMemoryUsage
- byJVMCPUUsage
- byRoundRobin (and one which actually works ;-)
etc.


We considered alternative methods for load balancing too, but they all have some other 
downsides, so the best thing would still be if mod_jk round robin works as its 
supposed to be:

- DNS Round Robin or Apache mod_rewrite Round Robin (similar sub-URLs for one app on 
same server - saves you from buying several SSL certificates)
Problems: 
- Bookmarks
- No real load balancing (ok mod_jk doesn't seem to have this either) 
- Requests go to down Tomcats also, no failover 


- Apache Loadbalancing with mod_backhand
   Nice approach of several Load Balancing decision rules (byCPU, byApacheChilds, 
byRandom etc.), which the user can put in any order he likes
   See http://www.backhand.org/mod_backhand/FAQ.shtml#question7

Problems:
- HTTPS Apache in Front with mod_backhand using Proxy Connections to connect 
to Apache/Tomcats in back causes problems because of URL Redirects from Tomcat/Java
- Requests go to down Tomcats also, no failover 
- Not sure if keeping Sessions works (backhand could use JSESSIONID for sticky 
sessions, have yet to test that)


- Hardware Load Balancer (dind't investigate much on that)
 Problems:   
 - IP based, read sth. that this ain't a particular good solution too




mod_jk 
Tomcat Users List [EMAIL PROTECTED] schrieb am 15.07.03 07:45:11:
 
 This is a pretty good description of what goes on, and it results in the
 highly skewed distributions that you are seeing.  I had thought that if you
 are using Apache-2 with the 'worker' MPM, that you should get a better
 distribution (but haven't tried it myself).  With Apache-1.3.x or Apache-2
 with the 'pre-fork' MPM this is as good as it gets at the moment (since the
 'pre-forked' processes don't talk to each other).  In theory, it should be a
 relatively easy fix in Jk2 to get 'pre-fork' working, but AFAIK, it hasn't
 been implemented yet.
 
 NormW [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Good morning Simon.
  'RoundRobin' is less likely the more Tomcat's you add I suspect. The
  balanced worker program always searches for a new worker by starting
  pointers from 1 rather than the last successful worker used, (AFAICT), and
  if a worker is free for the task it makes for muddy water indeed if you
  bypass it in the hope of finding something better... You need to remember
  which one was used 'last', which is a 'state' not remembered if/once
 session
  ID's are used (which go to the worker that handled it the last time). If
 you
  think about 'balancing' it is 'mindgame' to decide how a 'load' might be
  distributed... based on session counts? based on request handling time?
 and
  what 'integration' period would you use? ... and then there are
 preferences
  based on load, server grunt, network traffic, background tasks...  at the
  end of the day, the idea is to handle user requests, so if they're getting
  processed in a 'timely' manner perhaps you can put the 'unused' Tomcat's
  behind another Apache? ... or start a new thread here on how balancing
 might
  be better handled in different situations...
 
  Another 'possible' might be to add more balance workers and split your
 url's
  to these, in turn connected to more ajp13 workers using some of the
 Tomcat's
  currently sitting idle.
  Norm
 
 
  - Original Message -
  From: Simon Pabst [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, July 15, 2003 7:17 AM
  Subject: mod_jk round robin problem  stateless session beans
 

help!

2003-07-15 Thread Steven Chee
i just started using J2EE. i encountered some problem when starting my JSP. 

when i'm using a data connection with my database, its work fine but if i change to 
data source (jndi), my jsp could not load and display the following error

Directory Listing for/

FilenameSizeLast Modified 

Apache Tomcat/4.01


**

i had to use data source for my project. can anyone help me on this. thanks in advance.
( i'm using win2k, java1.4)

_
Get your FREE email address
http://www.hootingowl.com
The Wise Way To Search

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



Ajp Connector Replacement

2003-07-15 Thread Holden Robbins

Hello, 

I was wondering should I be using something other than Ajp to connect IIS
to Tomcat 4.0.2 beta 2? 

Ajp is crashing with a NumberFormatException when I use Siteminder to do
access control on some of the servlets I'm using. 

It looks like Ajp doesn't handle very large header fields very well.
I submitted a bug report, but it looks like the project is deprecated?
:/  Any suggestions on alternatives would be much appreciated.

Thanks in advance for any advice.
-Holden



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



Using JNI in WebServices with Tomcat

2003-07-15 Thread Grossert Alexander EXT
Hi there!
I'm working on a project with WebServices were I need to implement native code into my 
java app.
At the beginning I only had one function calling getpid() from the unistd.h Library 
and everything worked fine. But now I enlarged the code a little bit
and everything I receive is a java.net.ConnectException. The same exception also 
accures when closing tomcat.
I've found a cryptic error message in a dumped core file of tomcat, that I need a 
patch to make tomcat work with JNI. So why did it work until the code got bigger?
And why do some simple functions influence the connection to the Web Server? When I 
commented the lines were the native code is used everything worked fine.

Pleas help

Alex

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



Re: Upgrading Tomcat 5

2003-07-15 Thread Tim Funk
I haven't played (much) with the new deployer functionality yet. So I am 
unfamiliar with the minor details (and issues) of the path based dependencies.

Running a script on config files is not a big deal for an upgrade. Most 
commercial software probably does that with (or without) our acknowledgement. 
  If the script were consistent it could always be packaged with tomcat to 
aid in upgrades.

The way apps are deployed (configured) is new and will have gotchas like 
this. But the code is open for anyone to say I don't like that and propose 
their change. (Or fork if you change isn't made)

-Tim

Gerry Reno wrote:
Tim,
  Is this definitive?  I was hoping this would not be the case.  I
think that requiring users to run content replacement scripts against
their config files to accomplish an upgrade will definitely end up
being problematic.
Gerry



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


Re: Tomcat 4.1.24 + Security Manager + weird Exceptions

2003-07-15 Thread Tim Funk
- man ulimit
- Google (java Too many open files solaris)
-Tim

Haug Thomas wrote:
Hi everybody,

I am experiencing some strange behaviour with Tomcat 4.1.24 running with a
SecurityManager. The system is running on Solaris 8 using Jdk 1.4.1_02
and/or 1.4.2
Our software seems to use up all available file descriptors. If then tomcat
tries to accept a new request the IO system throws an SocketException
telling us that there are too many files open (see stacktrace below). 
Tomcat seems to reinitialize the ServerSocket but then the whole Tomcat (or
the Coyote HTTP connector) 'breaks down': The securityManager starts to
throw exceptions that class files are not allowed to be loaded, Sockets are
not allowed to be opened (see below), and other strange things. At last we
are not able anymore to request any http page from tomcat.

Has anybody experienced a similar behaviour of tomcat. Or even better does
anybody know how to fix this problem (beside not using all file descriptors
;-) )
Thank you very much,
Thomas


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


Re: Ajp Connector Replacement

2003-07-15 Thread Tim Funk
The Coyote connectors.

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1.0-rc2/

-Tim

Holden Robbins wrote:
Hello, 

I was wondering should I be using something other than Ajp to connect IIS
to Tomcat 4.0.2 beta 2? 

Ajp is crashing with a NumberFormatException when I use Siteminder to do
access control on some of the servlets I'm using. 

It looks like Ajp doesn't handle very large header fields very well.
I submitted a bug report, but it looks like the project is deprecated?
:/  Any suggestions on alternatives would be much appreciated.
Thanks in advance for any advice.
-Holden
 


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


Re: tomcat startup

2003-07-15 Thread Souren Sinha
Hi,
I am trying to run it on a desktop that is on a network...in fact it acts as
the gateway to the net too.
As per my network settings, I have TCP/IP installed and after having done a
netstat I can confirm that nothing else is listening on port 8080. Just for
the sake of it, I tried running on port 9090 too with the same resulting
exceptions!
I am not sure what else to try...any help would be appreciated.
Regards
Souren

- Original Message -
From: Andrew Liles [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 11:56 PM
Subject: RE: tomcat startup


 Are you trying this on a laptop/standalone machine that has no network
 stack?  You need a TCP/IP stack.

 (It could be another process is listening on the same IP/port; but the
usual
 symptom in that case is a different error)

  -Original Message-
  From: Souren Sinha [mailto:[EMAIL PROTECTED]
  Sent: 14 July 2003 13:30
  To: Tomcat Users List
  Subject: tomcat startup
 
 
  Hi,
  I am having trouble starting up tomcat from the Start menu.
  I get the following exception:
 
  Using CATALINA_BASE:   ..
  Using CATALINA_HOME:   ..
  Using CATALINA_TMPDIR: ..\temp
  Using JAVA_HOME:   C:\j2sdk1.4.0_03
  Jul 14, 2003 10:28:26 PM org.apache.commons.modeler.Registry
  loadRegistry
  INFO: Loading registry information
  Jul 14, 2003 10:28:27 PM org.apache.commons.modeler.Registry
  getRegistry
  INFO: Creating new Registry instance
  Jul 14, 2003 10:28:28 PM org.apache.commons.modeler.Registry getServer
  INFO: Creating MBeanServer
  Jul 14, 2003 10:28:29 PM org.apache.coyote.http11.Http11Protocol init
  SEVERE: Error initializing endpoint
  java.net.SocketException: Network is down: listen failed
  at java.net.PlainSocketImpl.socketListen(Native Method)
  at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:333)
  at java.net.ServerSocket.bind(ServerSocket.java:309)
  at java.net.ServerSocket.bind(ServerSocket.java:266)
  at java.net.ServerSocket.init(ServerSocket.java:182)
  at java.net.ServerSocket.init(ServerSocket.java:138)
 
  Can someone please help me out.
  Regards
  Souren
 
 
  - Original Message -
  From: Agarwal, Naresh [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, July 14, 2003 10:09 PM
  Subject: Do we have any control on Tomcat threads?
 
 
  Hi
 
  Web apps in tomcat run in threads spawned by Tomcat. Do we
  have any control
  on these threads?
 
  I want to perform some Init and UnInit operations at the time
  creation and
  destruction of these threads. Is it possible to do with
  Tomcat threads?
 
  thanks  regards,
  Naresh Agarwal
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  _
  This e-mail has been scanned for viruses by MessageLabs.
 

 _
 This e-mail has been scanned for viruses by MessageLabs.

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



tomcat-3.3.2 dev 12. July 2003

2003-07-15 Thread Power-Netz \(Schwarz\)

[EMAIL PROTECTED] /java]# less /var/log/tomcat.log
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at
org.apache.tomcat.util.compat.Jdk11Compat.clinit(Jdk11Compat.java:77)
at org.apache.tomcat.startup.Main.clinit(Main.java:153)
[EMAIL PROTECTED] /java]# cd tomcat

something is missing in the tomcat.jar .
Has someone a replacement for it?


Ihr Support-Team

 POWER-NETZĀ®
Full-Service-Provider 


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



[jk_ajp13_worker.c (209)]: connection_tcp_get_message: Error - Wrong message format

2003-07-15 Thread Sergio Vigo

Hi!

I triying to install apache and tomcat in redhat 7.2 but when trying to
make work them I get this messages.

[jk_ajp13_worker.c (209)]: connection_tcp_get_message: Error - Wrong
message format

The versions installed are:

apache-1.3.27-1.7.2
tomcat-mod-3.2.1-1


Thnks

Sergio Vigo



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



RE: RPM Pacakages for RHLinux

2003-07-15 Thread Zille Hassan
Dear Hari 
 
Below is the link where you can get the RPM for jdk1.4.1_03. You can
download it and use it on any linux platform let it be SuSE or Ret Hat
or Mandrake.

As for Tomcat Ver 4 , unfortunately there is no RPM that I am aware of
available for linux, you have got to download the latest release of
TOMCAT SERVER from their site. 

The best way possible for this is to download the RPMs they are easier
to instal. All the best 
Regards
Zille Hassan 



-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 12:45 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RPM Pacakages for RHLinux

where can I download rpm file for JDK and Tomcat on Red Hat Linux  7.1
I tried rpmfind.net freshrpms.net and rpmseek.com

what is better way to INSTALL above pacakages on Red Hat
Linux...(1)TAR/GZ 
or (2) RPM...?

Where is the FORUM for RED HAT LINUX...?

MILLION THANKS!

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Apache Tomcat/4.0.1 - HTTP Status 404

2003-07-15 Thread Julio Lopez Marquez

Hello!
I triying to install an application, but when i call it, send the message


Apache Tomcat/4.0.1 - HTTP Status 404 - /mafi




type Status report

message /mafi

description The requested resource (/mafi) is not available.


i guess that is the configuration file, but,which?

thanks.
J.


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



JK2 problems

2003-07-15 Thread Werner van Mook
Hi Again,

after a not succesfull attempt to get mod_jk working I'm now trying to 
get
mod_jk2 to work.

Apache 1.3.20
tomcat 4.1.24
linux customized version of RedHat  2.2.16C35_III
It's a sun cobalt box somewhere in europe. This means it's not in my 
room so I can't touch the box or do anything with it.
Only remote access is possible.

httpd.conf additions :

LoadModule jk2_module modules/mod_jk2.so

IfModule mod_jk2.so
  AddModule mod_jk2.c
  JKWorkersFile /etc/httpd/conf/workers.properties
/IfModule


worker2.properties :

[shm]
info=Scoreboard. Required see tomcat book pg 116
file=/etc/httpd/logs/shm.file
size=100
debug=0
disabled=0
#my server is not a localhost
# or is it localhost because apache and tomcat run on the same server?
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
port=8009
host=127.0.0.1
# define the worker
[status:status]
[uri:/jkstatus/*]
info=Display status information and check the config file for changes
worker=status:status
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
#The webapp I want to connect to is running on 
www.connecties.com:8080/Friss
#Is this mapping correct?

# Uri mapping
[uri:/Friss/*]
worker=ajp13:localhost:8009
debug=1
the generated jk2_log logfile contains :

( info) [jk_logger_file.c (217)]: Level DEBUG 0
( info) [jk_uriEnv.c (211)]: uriEnv.setAttribute() the worker directive 
is depriciated
( info) [jk_uriEnv.c (211)]: uriEnv.setAttribute() the worker directive 
is depriciated
( info) [jk_logger_file.c (177)]: Initializing log file 
/etc/httpd/logs/jk2.log
(debug) [jk_uriMap.c (337)]: uriMap.init() Fixing Host *
(debug) [jk_uriMap.c (423)]: uriMap: fix uri (null) context (null)
(debug) [jk_uriMap.c (423)]: uriMap: fix uri /jkstatus/* context (null)
(debug) [jk_uriMap.c (423)]: uriMap: fix uri /Friss/* context (null)
(debug) [jk_uriMap.c (423)]: uriMap: fix uri (null) context (null)
(debug) [jk_uriMap.c (423)]: uriMap: fix uri / context /
(debug) [jk_uriEnv.c (367)]: uriEnv.init() prefix mapping 
/Friss/=ajp13:localhost:8009
(debug) [jk_uriEnv.c (386)]: uriEnv.init()  uri:/Friss/*  host=*  
uri=/Friss/* type=1 ctx=(null) prefix=/Friss/ suffix=(null)
( info) [jk_workerEnv.c (403)]: workerEnv.init() ok 
/etc/httpd/conf/workers2.properties

Here is catalina.out :

Jul 15, 2003 1:14:57 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jul 15, 2003 1:14:57 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jul 15, 2003 1:15:00 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Jul 15, 2003 1:15:04 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Jul 15, 2003 1:15:22 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Jul 15, 2003 1:15:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jul 15, 2003 1:15:23 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=4/869  
config=/usr/jakarta-tomcat-4.1.24/conf/jk2.properties

I have changed nothing in server.xml, jk2.properties or any other file 
that I can think of.

Is there somewhere somebody who can hold my hand and fix it with/for me?
I need it up and running somewhere next week.
Kind regards
Werner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache Tomcat/4.0.1 - HTTP Status 404

2003-07-15 Thread Daniel Zhang
Check your server.xml file under TOMCAT_HOME/conf. You need to add a 
Context for your /mafi
path.

Julio Lopez Marquez wrote:

Hello!
I triying to install an application, but when i call it, send the message
Apache Tomcat/4.0.1 - HTTP Status 404 - /mafi



type Status report

message /mafi

description The requested resource (/mafi) is not available.

i guess that is the configuration file, but,which?

thanks.
J.
 



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


Re: Newbie question on Tomcat security

2003-07-15 Thread John Turner
First, no direct requests for anything under WEB-INF is allowed.

Second, check out the welcome-file element in web.xml.  Make sure it says 
index.jsp.

Third, check out the listings parameter, make sure it is set to off or 
false.

Fourth, TURN OFF the Invoker, and DON'T use it.

Fifth, use the security manager.

Sixth, don't put ANYTHING confidential in a JSP...move it (like a database 
connection URL, a username, or a password) to web.xml or server.xml, or a 
properties file under WEB-INF.

Seventh, if you really want to obscure paths when people view HTML source, 
simply make all URLs a call to a servlet with a parameter.  This is a lot 
of extra work for not much benefit, but it can be done.  The servlet reads 
the file from a protected area (like WEB-INF/*), sets the appropriate 
Content-Type, and spools the file to the client.  This will work for any 
file, CSS, GIF, JPEG, whatever, as in a sense your servlet will just be a 
web server...the client doesn't care where the file is coming from, as 
long as the request is satisfied and the Content-Type is correct.  Thus, 
when viewing HTML source, the path to a CSS file would not be 
myApp/my.css but soemthing like /servlet/fileGet?file=my.css.

And, if you still want more info, consider the Apache Tomcat Security 
Handbook published by Wrox Press.

John

On Mon, 14 Jul 2003 19:05:18 -0500, epyonne [EMAIL PROTECTED] wrote:

Thanks for the reply.  Actually, I don't worry about people can do view
source.  I just don't like the fact that they can type in the folder and
list the whole directory tree on the browser.  They can open any file on 
the
directory and potentially alter the code.

Most web sites I've been to, if you type in the folder directory, you 
will
get an access deny or something like that.  I am wondering if I can set 
up
something similar in Tomcat?

By the way, I do have an index.jsp.

Thanks.



- Original Message -
From: Reginald Oake [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 5:58 PM
Subject: Re: Newbie question on Tomcat security

Hi.

I'm not certain about this but it seems to me that it would be next to
impossible to keep the html source from being viewed by someone using
any browser (this is not a server side issue). The source has to be
uploaded to the browser and, once it is uploaded anyone can view source
on the page.
As far as keeping your directory structure at least a little bit more
obscured you can do two things. You can never fully obscure the
directory structure as the browser requires this information to load
images, style sheets and links.
The first is to put an index.jsp or index.html file in so that people
cannot view your directory structure directly (there is probably a
better way to do this).
The second is to use servlet mappings.

I'm not sure if this needs to be said but even though people can
determine your directory structure with fairly little effort this does
not, in itself, pose a security risk.
Thanx

Reg

On Mon, 2003-07-14 at 15:49, substring wrote:
 Hello All,

 I just developed a JSP application called myapp,
 running on Tomcat 4.1.24.  How can I keep people from
 accessing my files under tomcat/webapps/myapp?  For
 example, people can do a simple view source and find
 the path to my css file, then they can type in the
 path on the browser to access my files.

 What kind of security that I should set up for that?
 I am pretty new to Tomcat so I need help.

 By the way, my OS is Windows 2000 Pro.

 Any help will be very much appreciated.


 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com

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

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

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Please help with unusual configuration

2003-07-15 Thread John Turner
I typically do:

NameVirtualHost *

VirtualHost *

I don't put port numbers on IP addresses in VirtualHost containers, I don't 
even use IP addresses there.

VirtualHost *
   ServerName server1.host.com
/VirtualHost
VirtualHost *
   ServerName server2.host.com
/VirtualHost
John

On Mon, 14 Jul 2003 17:58:24 -0700, Goehring, Chuck Mr., RCI - San Diego 
[EMAIL PROTECTED] wrote:



Tried like below.  Seams simple enough, but it complains about 
overlapping and localhost:0. All I want is two virtual hosts that are 
identical except for the protocol and port.  I think I want overlapping 
in this case

#Listen 206.128.139.123:80
#Listen 206.128.139.123:443
Listen 80
Listen 443
ServerName dis.resourceconsultants.com

NameVirtualHost 206.128.139.123:80
NameVirtualHost 206.128.139.123:443
ServerAdmin [EMAIL PROTECTED]

VirtualHost 206.128.139.123:80
# Didn't like this VirtualHost _default_:80
DocumentRoot c:/apache/htdocs
#ServerName dis.resourceconsultants.com
ErrorLog logs/error_log.txt
/VirtualHost
VirtualHost 206.128.139.123:443
# Didn't like this VirtualHost _default_:443
DocumentRoot c:/apache/htdocs2
#ServerName dis.resourceconsultants.com
ErrorLog logs/error_ssl_log.txt
/VirtualHost
And it complains about localhost and overlapping like

C:\Apache\binapache
[Mon Jul 14 18:07:49 2003] [warn] VirtualHost localhost:0 overlaps with 
VirtualH
ost localhost:0, the first has precedence, perhaps you need a 
NameVirtualHost di
rective
[Mon Jul 14 18:07:49 2003] [warn] VirtualHost 206.128.139.123:443 
overlaps with
VirtualHost dis.resourceconsultants.com:0, the first has precedence, 
perhaps you
need a NameVirtualHost directive

Got any pointers

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 8:34 PM
To: Tomcat Users List
Subject: Re: Please help with unusual configuration
Yhea,

I do something similar using the virtualhost directive.  It works great.

Rick Roberts wrote:

It doesn't sound like you are doing at all unusual.
It sounds like pretty normal HTTP/HTTPS apache/tomcat configuration.
Just have the firewall block port 80 traffic and have apache listen on 
ports 80 and 443.

Then outside traffic uses https://yoursite.gov (port 443) and inside 
traffic uses http://yoursite.gov (port 80)

1 Apache
1 Tomcat
1 computer



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


configuration problem

2003-07-15 Thread awischer
Hi all,

I'am struglling with an application using Lotus Domino Taglibs. When 
accessing the jsp i always get a tomcat error page telling:

...
org.apache.jasper.JasperException: no lsxbe in java.library.path
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 and so on

For this reason I changed the startup script adding the parameter

 -Djava.library.path=$PATH:/opt/lotus/notes/latest/linux

after this it seems tomcat is able to find the shared library but it'll 
raise another error:

...
org.apache.jasper.JasperException: 
/opt/lotus/notes/60010/linux/liblsxbe.so: libxmlpar.so: cannot load shared 
object file: No such file or directory
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
... and so on

the recomended file libxmlpar.so is in the same directory as the 
liblsxbe.so, so i wonder why tomcat can't find this

the tomcat server is version 4.1 and is  running on SuSE Linux 7.2, my JDK 
is version 1.4.1_02 from Sun.


any help is appreciated
Andreas


Re: RPM Pacakages for RHLinux

2003-07-15 Thread Brendan
java.sun.com for the JDK - personally I like the tar better, but its
preference

for Tomcat
http://apache.mirrorcentral.com/dist/jakarta/tomcat-4/binaries/

Monday, July 14, 2003, 5:44:35 PM, you wrote:

 where can I download rpm file for JDK and Tomcat on Red Hat Linux  7.1
 I tried rpmfind.net freshrpms.net and rpmseek.com

 what is better way to INSTALL above pacakages on Red Hat Linux...(1)TAR/GZ 
 or (2) RPM...?

 Where is the FORUM for RED HAT LINUX...?

 MILLION THANKS!

 _
 The new MSN 8: smart spam protection and 2 months FREE*  
 http://join.msn.com/?page=features/junkmail


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




-- 
Best regards,
 Brendan[EMAIL PROTECTED]


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



Re: virtual hosts in Tomcat and Apache

2003-07-15 Thread John Turner
Yes, in general you need a VirtualHost in httpd.conf for all virtual hosts 
in server.xml.  Otherwise, AFAIK, Tomcat will use the defaultHost defined 
in the Engine container, which is typically set to localhost by default.

John

On Tue, 15 Jul 2003 13:17:03 +1000, [EMAIL PROTECTED] wrote:

Hi again, Apache2+Tomcat+mod_jk working find until...
I used a virtual host directive in server.xml, that's fine; but
When I start adding virtual hosts in Apache, one for each developer's
directory, I got following error message :

RemoteORAClient: set URL to http://www.myhost.com/myhost/RemoteORAServer
java.io.FileNotFoundException:
http://www.myhost.com/myhost/RemoteORAServer
at sun.net.www.protocol ...bla

As soon as I remove the virtual host directives in APACHE2, all okay
again.
I am beginning to wonder whether I need a corresponding virtual host in
Server.xml for each virtual host in Apache2 ???
Where do I start with this problem, I coded the a2s and I don't remember
hardcoding any FQDN anywhere... ???
But errare humanum est


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RPM Pacakages for RHLinux

2003-07-15 Thread John Turner
Complete HOWTO, step by step: http://www.johnturner.com/howto

This has been posted MANY times, do yourself a favor and check archives and 
Google before posting.

John

On Mon, 14 Jul 2003 21:44:35 +, Hari Om [EMAIL PROTECTED] wrote:

where can I download rpm file for JDK and Tomcat on Red Hat Linux  7.1
I tried rpmfind.net freshrpms.net and rpmseek.com
what is better way to INSTALL above pacakages on Red Hat Linux...(1) 
TAR/GZ or (2) RPM...?

Where is the FORUM for RED HAT LINUX...?

MILLION THANKS!

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JK2 problems

2003-07-15 Thread John Turner
OK, now we have more information.

Apache 1.3.20?  Godd luck getting mod_jk or mod_jk2 to work.  You will need 
to build your own connector from source, and if it were me, I wouldn't 
waste any time whatsoever on JK2 with 1.3.20.  Even JK is dicey.

There is a complete Linux HOWTO here: http://www.johnturner.com/howto.  It 
is for JK, and it is as painless as I can make it.  Every change to default 
configuration files, without exception, is described.

Your first problem will be getting an Apache module compatible with 1.3.20. 
Once that is done, the rest is easy.

John

On Tue, 15 Jul 2003 14:03:45 +0200, Werner van Mook [EMAIL PROTECTED] 
wrote:

Hi Again,

after a not succesfull attempt to get mod_jk working I'm now trying to 
get
mod_jk2 to work.

Apache 1.3.20
tomcat 4.1.24
linux customized version of RedHat  2.2.16C35_III
It's a sun cobalt box somewhere in europe. This means it's not in my room 
so I can't touch the box or do anything with it.
Only remote access is possible.

httpd.conf additions :

LoadModule jk2_module modules/mod_jk2.so

IfModule mod_jk2.so
AddModule mod_jk2.c
JKWorkersFile /etc/httpd/conf/workers.properties
/IfModule


worker2.properties :

[shm]
info=Scoreboard. Required see tomcat book pg 116
file=/etc/httpd/logs/shm.file
size=100
debug=0
disabled=0
#my server is not a localhost
# or is it localhost because apache and tomcat run on the same server?
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
port=8009
host=127.0.0.1
# define the worker
[status:status]
[uri:/jkstatus/*]
info=Display status information and check the config file for changes
worker=status:status
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
#The webapp I want to connect to is running on 
www.connecties.com:8080/Friss
#Is this mapping correct?

# Uri mapping
[uri:/Friss/*]
worker=ajp13:localhost:8009
debug=1
the generated jk2_log logfile contains :

( info) [jk_logger_file.c (217)]: Level DEBUG 0
( info) [jk_uriEnv.c (211)]: uriEnv.setAttribute() the worker directive 
is depriciated
( info) [jk_uriEnv.c (211)]: uriEnv.setAttribute() the worker directive 
is depriciated
( info) [jk_logger_file.c (177)]: Initializing log file 
/etc/httpd/logs/jk2.log
(debug) [jk_uriMap.c (337)]: uriMap.init() Fixing Host *
(debug) [jk_uriMap.c (423)]: uriMap: fix uri (null) context (null)
(debug) [jk_uriMap.c (423)]: uriMap: fix uri /jkstatus/* context (null)
(debug) [jk_uriMap.c (423)]: uriMap: fix uri /Friss/* context (null)
(debug) [jk_uriMap.c (423)]: uriMap: fix uri (null) context (null)
(debug) [jk_uriMap.c (423)]: uriMap: fix uri / context /
(debug) [jk_uriEnv.c (367)]: uriEnv.init() prefix mapping 
/Friss/=ajp13:localhost:8009
(debug) [jk_uriEnv.c (386)]: uriEnv.init()  uri:/Friss/*  host=*  
uri=/Friss/* type=1 ctx=(null) prefix=/Friss/ suffix=(null)
( info) [jk_workerEnv.c (403)]: workerEnv.init() ok 
/etc/httpd/conf/workers2.properties

Here is catalina.out :

Jul 15, 2003 1:14:57 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jul 15, 2003 1:14:57 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jul 15, 2003 1:15:00 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Jul 15, 2003 1:15:04 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Jul 15, 2003 1:15:22 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Jul 15, 2003 1:15:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jul 15, 2003 1:15:23 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=4/869  config=/usr/jakarta-tomcat- 
4.1.24/conf/jk2.properties

I have changed nothing in server.xml, jk2.properties or any other file 
that I can think of.

Is there somewhere somebody who can hold my hand and fix it with/for me?
I need it up and running somewhere next week.
Kind regards
Werner
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: configuration problem

2003-07-15 Thread Grossert Alexander EXT
Do you wrote the application by yourself, or do you have the source code at least?
If so, youo could go to the position where your shared library is loaded. It should 
look like this:

static{
   System.loadLibrary(xmlpar);
}
If you change this to

System.load(/opt/lotus/notes/60010/linux/libxmlpar.so);

it should work. If you're not able to change the code try updating the CLASSPATH env 
with the path where your library
is situated. And don't append your path to the PATH var. Write yourPath:$PATH - I've 
experienced this to work sometimes.


-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 15. Juli 2003 14:29
An: [EMAIL PROTECTED]
Betreff: configuration problem


Hi all,

I'am struglling with an application using Lotus Domino Taglibs. When 
accessing the jsp i always get a tomcat error page telling:

...
org.apache.jasper.JasperException: no lsxbe in java.library.path
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 and so on

For this reason I changed the startup script adding the parameter

 -Djava.library.path=$PATH:/opt/lotus/notes/latest/linux

after this it seems tomcat is able to find the shared library but it'll 
raise another error:

...
org.apache.jasper.JasperException: 
/opt/lotus/notes/60010/linux/liblsxbe.so: libxmlpar.so: cannot load shared 
object file: No such file or directory
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
... and so on

the recomended file libxmlpar.so is in the same directory as the 
liblsxbe.so, so i wonder why tomcat can't find this

the tomcat server is version 4.1 and is  running on SuSE Linux 7.2, my JDK 
is version 1.4.1_02 from Sun.


any help is appreciated
Andreas

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



Re: How to perform uri mapping with jk2

2003-07-15 Thread John Turner
I have no idea.  I don't use JK2.  My point was that in server.xml, a URL 
(Context path) can point to any docBase.

John

On Tue, 15 Jul 2003 09:05:15 +0800, Kent Tong [EMAIL PROTECTED] wrote:

John Turner wrote:
mod_rewrite

mod_jk isn't going to rewrite URLs for you.

Alternatively, in Tomcat's server.xml:

Context pathe=/def docBase=abc

but then the URL in the address bar of the browser won't change.
Thanks for the reply. But then what is the purpose
of the context entry in:
[uri:/def/*]
context=/abc/*
?



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: I'm still officially lost with mod_jk

2003-07-15 Thread John Turner
We (or at least I) need more information.

Versions?

Output of apachectl configtest?

etc. etc. etc.

John

On Tue, 15 Jul 2003 08:55:57 +0200, Werner van Mook [EMAIL PROTECTED] 
wrote:

Hi,

I changed some settings as some of you suggested.
Still no luck.

- remove JkMount from global configuration.  JkMount directives are 
VirtualHost-specific.
It's removed.

- verify the ServerName in httpd.conf matches the name in your Host 
container in server.xml
Done.

- change your worker name to ajp13 (worker1 is probably OK but since it 
doesn't matter, there's no reason not to use ajp13 and in some cases the 
name ajp13 makes a difference)
Done.


- remove the extra stuff from workers.properties...you only need .list, 
.host, .type, and .port.
Done.


- check contents of your JK log file...it is typically pretty specific, 
telling you exactly what is wrong.
Can't find it !  At least not in the location I thought it would be.
I did set it in httpd.conf didn't I?
What I did do is look at catalina.out I found these lines :

INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jul 15, 2003 8:42:53 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=4/771  config=/usr/jakarta-tomcat- 
4.1.24/conf/jk2.properties

In my humble opinion it says that JK is running and using jk2.properties.
I never put anything in this file. Should I haven done that?
Kind regards
Werner
Here are my files :


I have apache 1.3.x with tomcat 4.1.24
I installed mod_jk
in httpd.conf I put :

LoadModule jk_module modules/mod_jk.so

.
.
.
# MY OWN STUFF HERE
IfModule mod_jk.so
AddModule mod_jk.c
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
This is the location of the logfile. Right?

JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
# JkMount  /Friss/* worker1
/IfModule
In workers.properties I have :

#Define 1 real worker using ajp13

worker.list=ajp13

#Set properties for worker1(ajp13)

worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
# worker.ajp13.lbfactor=50
# worker.ajp13.cahcesize=10
# worker.ajp13.cache_timeout=600
# worker.ajp13.socket_keepalive=1
# worker.ajp13.socket_timeout=300
In the webapps dir I created a dir called Friss wich contains a WEB_INF 
dir and a index.html file.

When I restart tomcat and apache I want to request : 
www.connecties.com/Friss.

I suspected to get the index.html file from the Friss webapp. Instead I 
got a 404 document not found.





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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1

2003-07-15 Thread sankara
Hi all,
I have problems in setting up SSL in Tomcat 3.3.1 and the JDK used is 1.3.1.
Steps followed:
---
I have downloaded the JSSE jar files and placed them in the
%JAVA_HOME%/jre/lib/ext
My server.xml's SSL config. part is as follows:
Http10Connector  port=8443
secure=true
keystore=d:/keystore/keystore
authclient=false /

When I restarted the server, the port 8080 is working properly, but when I
try to communicate
with port 8443 under HTTPS, the following exception is thrown in the
Tomcat's console.

PoolTcpEndpoint: Handshake failed
java.net.SocketException: Socket closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:56)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)



at java.lang.Thread.run(Thread.java:479)
PoolTcpEndpoint: Handshake failed
javax.net.ssl.SSLException: javax.net.ssl.SSLProtocolException: handshake
alert:
  no_certificate
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)


Please help me out of this problem.
Thanks,
Sankaran.



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



RE: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1

2003-07-15 Thread Abid Ali Teepo
If this is similiar to version 4 i think you miss a password to your keystore. The 
default in version 4 is changeit. You must add keypass=changeit, or your password, 
to your server.xml. Put it right after keystore.

And i think it's clientAuth, not authclient as in your server.xml and 
XML is case-sensitive ...

Abid

-Original Message-
From: sankara [mailto:[EMAIL PROTECTED]
Sent: 15. juli 2003 14:41
To: Tomcat Users
Subject: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1


Hi all,
I have problems in setting up SSL in Tomcat 3.3.1 and the JDK used is 1.3.1.
Steps followed:
---
I have downloaded the JSSE jar files and placed them in the
%JAVA_HOME%/jre/lib/ext
My server.xml's SSL config. part is as follows:
Http10Connector  port=8443
secure=true
keystore=d:/keystore/keystore
authclient=false /

When I restarted the server, the port 8080 is working properly, but when I
try to communicate
with port 8443 under HTTPS, the following exception is thrown in the
Tomcat's console.

PoolTcpEndpoint: Handshake failed
java.net.SocketException: Socket closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:56)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)



at java.lang.Thread.run(Thread.java:479)
PoolTcpEndpoint: Handshake failed
javax.net.ssl.SSLException: javax.net.ssl.SSLProtocolException: handshake
alert:
  no_certificate
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)


Please help me out of this problem.
Thanks,
Sankaran.



-
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: AW: configuration problem

2003-07-15 Thread awischer
both library's are precompiled and are delivered as part of the domino 
server  without sourcecode. So, there is no chance to change it. 
Adding the library path to CLASSPATH dosen't really help. 
This is the part of catalina.sh i've changed for getting the second error 
message:

---schnipp--
  $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.library.path=$PATH:/opt/lotus/notes/latest/linux: \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath 
/opt/lotus/notes/latest/linux:$CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start \
   $CATALINA_BASE/logs/catalina.out 21 
---schnapp---

any other idea ??

RE: Tomcat 4.1.24: file access problem?

2003-07-15 Thread Shapira, Yoav

Howdy,
It appears to be a Clickshare problem: ask them.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: The Wolf [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 6:20 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.24: file access problem?

Hi,
I am running Tomcat 4.1.24 on Red Hat Linux 7.3 with Sun JVM 1.4.1.

I am experiencing a problem with a Java webapp (clickshare):

***
3403 [Thread-19] INFO click.cs.CSConfiguration - Reading
configuration file /etc/opt/clickshare/www.mysite.com.conf
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9)
at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
com.clickshare.config.Instantiator.configure(Instantiator.java:257)
at

com.clickshare.servlet.AbstractVirtualHostAwareConfigurableServlet.init
(Abs
tractVirtualHostAwareConfigurableServlet.java:
138)
at

com.clickshare.servlet.TrafficCopServlet.service(TrafficCopServlet.java
:112
)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknow
n
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(Unknown
Source)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(Unknown
Source)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(Unknown
Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(Unknown
Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at

org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
Source)
at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.Exception: Validation servlet has been
incompletely configured: validator: null confirmationTemplate: null
erro
rPageTemplate: null cancelPageTemplate: null
limitExceededPageTemplate: null purchaseDisabledPageTemplate: null
at

com.clickshare.ccp.ValidationServlet.completeConfiguration(ValidationSe
rvle
t.java:176)
... 36 more
***


The /etc/opt directory is recursively chown-ed to tomcat4:tomcat4 and
the
permissions are set to 777.
The Tomcat SecurityManager is disabled: I have commented out the
-security option from the /etc/init.d/tomcat4 file.

I am new to Java/Tomcat and I don't know where to start in order to fix
the problem.
Any idea?

Thanks.

--
http://www.fastmail.fm - Access your email from home and the web

-
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 

AW: AW: configuration problem

2003-07-15 Thread Grossert Alexander EXT
I'm sorry! Then I don't have an idea either.

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 15. Juli 2003 14:53
An: Tomcat Users List
Betreff: Re: AW: configuration problem


both library's are precompiled and are delivered as part of the domino 
server  without sourcecode. So, there is no chance to change it. 
Adding the library path to CLASSPATH dosen't really help. 
This is the part of catalina.sh i've changed for getting the second error 
message:

---schnipp--
  $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -Djava.library.path=$PATH:/opt/lotus/notes/latest/linux: \
  -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath 
/opt/lotus/notes/latest/linux:$CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start \
   $CATALINA_BASE/logs/catalina.out 21 
---schnapp---

any other idea ??

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



SSL and mod_jk setup

2003-07-15 Thread Leander Jedamus
Hi!

I have followed the paper from John Turner
http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html
and everything is working.
Now I want to have https://localhost/examples/ working.
How can I do that?

Thanks in advance
Leander
--
Leander Jedamus
Presse- und Ɩffentlichkeitsarbeit
FH Worms
Erenburger Str. 19
67549 Worms
+49 6241 509-172

---

-- 
Leander Jedamus
Presse- und Ɩffentlichkeitsarbeit
FH Worms
Erenburger Str. 19
67549 Worms
+49 6241 509-172

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



tomcat's webdav and Premature End of File error ...

2003-07-15 Thread Dinh, Chinh
Hi ,
I am testing Tomcat's webdav and could open the webdav as a web folder.  When I double 
clicked on a MSOffice (MSWord, PPT, etc.) from the browsed folder, the files could be 
opened fine.  However, with any other files (zip, pdf, txt, xml), it gave me the error 
:
[Fatal Error] :-1:-1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
 at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
 at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
 at WebdavServlet.doPropfind(IMOWebdavServlet.java:356)

The exception was thrown at   Document document = documentBuilder.parse
   (new InputSource(req.getInputStream()));
in webdavservlet's doPropfind() .
Is there a solution for this problem ? Thank you very much .  

Another problem is that , every time I double click on a file, it asks me to log in 
again with the login dialog box (even though I already logged in after browsing to the 
web folder).
- Chinh


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: RPM Pacakages for RHLinux

2003-07-15 Thread Matthew Budzik
try java.sun.com for the JDK and
www.apache.org for tomcat

you might not be able to get rpm's for the Tomcat but you will at least get something 
to compile

 [EMAIL PROTECTED] 07/14/03 04:44PM 
where can I download rpm file for JDK and Tomcat on Red Hat Linux  7.1
I tried rpmfind.net freshrpms.net and rpmseek.com

what is better way to INSTALL above pacakages on Red Hat Linux...(1)TAR/GZ 
or (2) RPM...?

Where is the FORUM for RED HAT LINUX...?

MILLION THANKS!

_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail 


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



Tomcat 4: howto get (connector's) port in Servlet.init()

2003-07-15 Thread Hans Schlenker

Hi!

Is there a way (apart from scanning the log files or reading config 
files) to get the port of the Connector of a Servlet from within 
Servlet.init()?

Hans Schlenker



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



RE: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1

2003-07-15 Thread sankara
yes. it worked with the changes you have mentioned.
Thanks-Sankaran.

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 6:17 PM
To: Tomcat Users List
Subject: RE: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1


If this is similiar to version 4 i think you miss a password to your
keystore. The default in version 4 is changeit. You must add
keypass=changeit, or your password, to your server.xml. Put it right after
keystore.

And i think it's clientAuth, not authclient as in your server.xml and
XML is case-sensitive ...

Abid

-Original Message-
From: sankara [mailto:[EMAIL PROTECTED]
Sent: 15. juli 2003 14:41
To: Tomcat Users
Subject: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1


Hi all,
I have problems in setting up SSL in Tomcat 3.3.1 and the JDK used is 1.3.1.
Steps followed:
---
I have downloaded the JSSE jar files and placed them in the
%JAVA_HOME%/jre/lib/ext
My server.xml's SSL config. part is as follows:
Http10Connector  port=8443
secure=true
keystore=d:/keystore/keystore
authclient=false /

When I restarted the server, the port 8080 is working properly, but when I
try to communicate
with port 8443 under HTTPS, the following exception is thrown in the
Tomcat's console.

PoolTcpEndpoint: Handshake failed
java.net.SocketException: Socket closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:56)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)



at java.lang.Thread.run(Thread.java:479)
PoolTcpEndpoint: Handshake failed
javax.net.ssl.SSLException: javax.net.ssl.SSLProtocolException: handshake
alert:
  no_certificate
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)


Please help me out of this problem.
Thanks,
Sankaran.



-
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: tomcat-3.3.2 dev 12. July 2003

2003-07-15 Thread Sudhir Movva

Check and see if you have commons-logging-api.jar under the
%CATALINA_HOME%/common/lib directory. If you don't, you can download one at
http://mirrors.ccs.neu.edu/Apache/dist/jakarta/commons/logging/binaries/

-Sudhir.

-Original Message-
From: Power-Netz (Schwarz) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 7:22 AM
To: tomcat liste
Subject: tomcat-3.3.2 dev 12. July 2003


[EMAIL PROTECTED] /java]# less /var/log/tomcat.log
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at
org.apache.tomcat.util.compat.Jdk11Compat.clinit(Jdk11Compat.java:77)
at org.apache.tomcat.startup.Main.clinit(Main.java:153)
[EMAIL PROTECTED] /java]# cd tomcat

something is missing in the tomcat.jar .
Has someone a replacement for it?


Ihr Support-Team

 POWER-NETZ(r)
Full-Service-Provider 


-
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: Tomcat 4: howto get (connector's) port in Servlet.init()

2003-07-15 Thread Tim Funk
No. A servlet can be served by any port that the server is configured to.

For example, in a dev environment - I run apache on 80 and the standalone 
connectors on 8080. So in the dame tomcat instance, I can issue one request 
to port 80, then another to 8080 for the same servlet.

You can only (reliably) get the port used within the scope of that particualr 
request. Look at the HttpServletRequest object.

-Tim

Hans Schlenker wrote:
Hi!

Is there a way (apart from scanning the log files or reading config 
files) to get the port of the Connector of a Servlet from within 
Servlet.init()?

Hans Schlenker




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


RE: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1

2003-07-15 Thread Murray
My server.xml file contains the following connector stanza and works...

!-- Define an SSL HTTP/1.1 Connector on port 8443 --

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   keystoreFile=S:\mysqldatabase\.keystore
   keystorePass=
   clientAuth=false protocol=TLS/
/Connector


This was based pretty literally on the How to document for SSL setup
supplied with Tomcat or on the Tomcat homepage.


Murray Nicholas

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 15 July 2003 22:47
To: Tomcat Users List
Subject: RE: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1


If this is similiar to version 4 i think you miss a password to your
keystore. The default in version 4 is changeit. You must add
keypass=changeit, or your password, to your server.xml. Put it right after
keystore.

And i think it's clientAuth, not authclient as in your server.xml and
XML is case-sensitive ...

Abid

-Original Message-
From: sankara [mailto:[EMAIL PROTECTED]
Sent: 15. juli 2003 14:41
To: Tomcat Users
Subject: Configuring SSL in Tomcat 3.3.1 with JDK 1.3.1


Hi all,
I have problems in setting up SSL in Tomcat 3.3.1 and the JDK used is 1.3.1.
Steps followed:
---
I have downloaded the JSSE jar files and placed them in the
%JAVA_HOME%/jre/lib/ext
My server.xml's SSL config. part is as follows:
Http10Connector  port=8443
secure=true
keystore=d:/keystore/keystore
authclient=false /

When I restarted the server, the port 8080 is working properly, but when I
try to communicate
with port 8443 under HTTPS, the following exception is thrown in the
Tomcat's console.

PoolTcpEndpoint: Handshake failed
java.net.SocketException: Socket closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at java.io.OutputStream.write(OutputStream.java:56)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)



at java.lang.Thread.run(Thread.java:479)
PoolTcpEndpoint: Handshake failed
javax.net.ssl.SSLException: javax.net.ssl.SSLProtocolException: handshake
alert:
  no_certificate
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)


Please help me out of this problem.
Thanks,
Sankaran.



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



AW: tomcat-3.3.2 dev 12. July 2003

2003-07-15 Thread Power-Netz \(Schwarz\)
 
 Check and see if you have commons-logging-api.jar under the
 %CATALINA_HOME%/common/lib directory. If you don't, you can 
 download one at
 http://mirrors.ccs.neu.edu/Apache/dist/jakarta/commons/logging/binaries/
 
 -Sudhir.

thx..


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



Re: JK2 problems

2003-07-15 Thread Werner van Mook
Hi John,

Thanx for your response.

I did all that is in your HOWTO.
I still have no luck with it.
I downloaded : mod_jk-1.3-eapi.so from jakarta.apacheetc and 
renamed it to mod_jk.so.

Could you please have look ?
Or some else of course.
This is a piece of my localhost_log file :

2003-07-15 15:17:02 StandardHost[www.connecties.com]: Installing web 
application at context path /Friss from URL 
file:/usr/jakarta-tomcat-4.1.24/webapps/Friss
2003-07-15 15:17:02 WebappLoader[/Friss]: Deploying class repositories 
to work directory 
/usr/jakarta-tomcat-4.1.24/work/Standalone/www.connecties.com/Friss
2003-07-15 15:17:02 WebappLoader[/Friss]: Deploy class files 
/WEB-INF/classes to 
/usr/jakarta-tomcat-4.1.24/webapps/Friss/WEB-INF/classes
2003-07-15 15:17:03 ContextConfig[/Friss]: Configured an authenticator 
for method FORM
2003-07-15 15:17:03 StandardManager[/Friss]: Seeding random number 
generator class java.security.SecureRandom
2003-07-15 15:17:03 StandardManager[/Friss]: Seeding of random number 
generator has been completed
2003-07-15 15:17:03 StandardWrapper[/Friss:default]: Loading container 
servlet default
2003-07-15 15:17:03 StandardWrapper[/Friss:invoker]: Loading container 
servlet invoker

Here are some parts of the auto generated mod_jk conf file :

# Auto generated on Tue Jul 15 15:16:47 CEST 2003##

IfModule !mod_jk.c
  LoadModule jk_module /etc/httpd/modules/mod_jk.so
/IfModule
JkWorkersFile /usr/jakarta-tomcat-4.1.24/conf/jk/workers.properties
JkLogFile /usr/jakarta-tomcat-4.1.24/logs/mod_jk.log
JkLogLevel emerg



VirtualHost www.connecties.com
ServerName www.connecties.com
.
.
.
 www.connecties.com:/Friss 

# Static files
Alias /Friss /usr/jakarta-tomcat-4.1.24/webapps/Friss
Directory /usr/jakarta-tomcat-4.1.24/webapps/Friss
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
# Deny direct access to WEB-INF and META-INF
#
Location /Friss/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /Friss/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /Friss/login/j_security_check  ajp13
JkMount /Friss/klanten/Login  ajp13
JkMount /Friss/admin/Werktijden  ajp13
JkMount /Friss/admin/UpdateExpertise  ajp13
JkMount /Friss/admin/Logout  ajp13
JkMount /Friss/kapper/Confirm  ajp13
JkMount /Friss/klanten/Datum  ajp13
JkMount /Friss/Store  ajp13
JkMount /Friss/klanten/Kapper  ajp13
JkMount /Friss/Tijd  ajp13
JkMount /Friss/klanten/StoreNaw  ajp13
JkMount /Friss/*.jsp  ajp13
JkMount /Friss/klanten/Behandeling  ajp13
JkMount /Friss/admin/Personeel  ajp13
JkMount /Friss/klanten/Naw  ajp13
JkMount /Friss/admin/OpeningsTijden  ajp13
JkMount /Friss/admin/Behandel  ajp13
.
.
.
/VirtualHost
substitute the 3 dots with the 'standard' tomcat webapps.

I added this to my httpd.conf :

LoadModule jk_module modules/mod_jk.so

and at the end :

Include /usr/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf

Starting tomcat.wait 10 or more seconds  start apache

If I try to get to www.connecties.com/Friss I still get a 404 file not 
found.

In the error log file for apache it says :

[Tue Jul 15 15:36:22 2003] [crit] (98)Address already in use: 
make_sock: could not bind to port 80

I can still go to www.connecties.com (which is a normal website with 
some static pages).

Kind regards,

Werner van Mook
Java Lead Developer / Trainer
Connecties Voor Internet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JK2 problems

2003-07-15 Thread John Turner
Sounds like you have more than one copy of Apache running, and the copy of 
Apache you are modifying isn't the running copy.

Also, change your JkLogLevel to info.

Also, please post the output of apachectl configtest.

John

On Tue, 15 Jul 2003 15:44:24 +0200, Werner van Mook [EMAIL PROTECTED] 
wrote:

Hi John,

Thanx for your response.

I did all that is in your HOWTO.
I still have no luck with it.
I downloaded : mod_jk-1.3-eapi.so from jakarta.apacheetc and renamed 
it to mod_jk.so.

Could you please have look ?
Or some else of course.
This is a piece of my localhost_log file :

2003-07-15 15:17:02 StandardHost[www.connecties.com]: Installing web 
application at context path /Friss from URL file:/usr/jakarta-tomcat- 
4.1.24/webapps/Friss
2003-07-15 15:17:02 WebappLoader[/Friss]: Deploying class repositories to 
work directory /usr/jakarta-tomcat- 
4.1.24/work/Standalone/www.connecties.com/Friss
2003-07-15 15:17:02 WebappLoader[/Friss]: Deploy class files /WEB- 
INF/classes to /usr/jakarta-tomcat-4.1.24/webapps/Friss/WEB-INF/classes
2003-07-15 15:17:03 ContextConfig[/Friss]: Configured an authenticator 
for method FORM
2003-07-15 15:17:03 StandardManager[/Friss]: Seeding random number 
generator class java.security.SecureRandom
2003-07-15 15:17:03 StandardManager[/Friss]: Seeding of random number 
generator has been completed
2003-07-15 15:17:03 StandardWrapper[/Friss:default]: Loading container 
servlet default
2003-07-15 15:17:03 StandardWrapper[/Friss:invoker]: Loading container 
servlet invoker

Here are some parts of the auto generated mod_jk conf file :

# Auto generated on Tue Jul 15 15:16:47 CEST 2003##

IfModule !mod_jk.c
LoadModule jk_module /etc/httpd/modules/mod_jk.so
/IfModule
JkWorkersFile /usr/jakarta-tomcat-4.1.24/conf/jk/workers.properties
JkLogFile /usr/jakarta-tomcat-4.1.24/logs/mod_jk.log
JkLogLevel emerg



VirtualHost www.connecties.com
ServerName www.connecties.com
.
.
.
 www.connecties.com:/Friss 

# Static files
Alias /Friss /usr/jakarta-tomcat-4.1.24/webapps/Friss
Directory /usr/jakarta-tomcat-4.1.24/webapps/Friss
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
# Deny direct access to WEB-INF and META-INF
#
Location /Friss/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /Friss/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /Friss/login/j_security_check  ajp13
JkMount /Friss/klanten/Login  ajp13
JkMount /Friss/admin/Werktijden  ajp13
JkMount /Friss/admin/UpdateExpertise  ajp13
JkMount /Friss/admin/Logout  ajp13
JkMount /Friss/kapper/Confirm  ajp13
JkMount /Friss/klanten/Datum  ajp13
JkMount /Friss/Store  ajp13
JkMount /Friss/klanten/Kapper  ajp13
JkMount /Friss/Tijd  ajp13
JkMount /Friss/klanten/StoreNaw  ajp13
JkMount /Friss/*.jsp  ajp13
JkMount /Friss/klanten/Behandeling  ajp13
JkMount /Friss/admin/Personeel  ajp13
JkMount /Friss/klanten/Naw  ajp13
JkMount /Friss/admin/OpeningsTijden  ajp13
JkMount /Friss/admin/Behandel  ajp13
.
.
.
/VirtualHost
substitute the 3 dots with the 'standard' tomcat webapps.

I added this to my httpd.conf :

LoadModule jk_module modules/mod_jk.so

and at the end :

Include /usr/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf

Starting tomcat.wait 10 or more seconds  start apache

If I try to get to www.connecties.com/Friss I still get a 404 file not 
found.

In the error log file for apache it says :

[Tue Jul 15 15:36:22 2003] [crit] (98)Address already in use: make_sock: 
could not bind to port 80

I can still go to www.connecties.com (which is a normal website with some 
static pages).

Kind regards,

Werner van Mook
Java Lead Developer / Trainer
Connecties Voor Internet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: AW: configuration problem

2003-07-15 Thread Ralph Einfeldt
Try to strace the tomcat process to find out where 
tomcat is looking for the library.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 2:53 PM
 To: Tomcat Users List
 Subject: Re: AW: configuration problem
 
 
 both library's are precompiled and are delivered as part of 
 the domino server  without sourcecode. So, there is no chance 
 to change it. 
 Adding the library path to CLASSPATH dosen't really help. 
 This is the part of catalina.sh i've changed for getting the 
 second error message:
 
 ---schnipp--
   $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
   -Djava.library.path=$PATH:/opt/lotus/notes/latest/linux: \
   -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath 
 /opt/lotus/notes/latest/linux:$CLASSPATH \
   -Dcatalina.base=$CATALINA_BASE \
   -Dcatalina.home=$CATALINA_HOME \
   -Djava.io.tmpdir=$CATALINA_TMPDIR \
   org.apache.catalina.startup.Bootstrap $@ start \
$CATALINA_BASE/logs/catalina.out 21 
 ---schnapp---
 
 any other idea ??
 

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



Logging off container authenticated user

2003-07-15 Thread Christian J. Dechery - ACCENTURE
I finally got a FORM-based authentication from the container (in this case,
Tomcat) working.
 
But I have a little doubt, how can I logoff this user?
 
Cuz in my system, the login doesn't deppend only on authenticating him for
username and password, I must validate some other stuff, so it would be
interesting if I could authenticate him, and if I could not validate the
other stuff, log him off and present a message.
 
Thanks.

___
:: Christian J. Dechery 
:: Accenture do Brasil 
:: CHT - Solutions Operations 
:: [EMAIL PROTECTED] 

 


Re: RPM Pacakages for RHLinux

2003-07-15 Thread Boris Folgmann
Hari Om wrote:
 where can I download rpm file for JDK and Tomcat on Red Hat Linux  7.1
 I tried rpmfind.net freshrpms.net and rpmseek.com

Have you checked jpackage.org?

cu,
boris


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



RE: AW: configuration problem

2003-07-15 Thread awischer
hm, may be it sound's like I'm a little bit stupid but... can you tell me 
howto or even better where to read?

thanx
andreas

RE: AW: configuration problem

2003-07-15 Thread Ralph Einfeldt
strace is a standard linux program that prints out system calls.
(Like truss under solaris)

You can either attach it to a running process 
or trace a program from scratch.


Sources for information:
  man strace

  http://www.wi.leidenuniv.nl/~wichert/strace/
  http://www.die.net/doc/linux/man/man1/strace.1.html

  http://www.google.de/search?q=linux+strace

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 4:04 PM
 To: Tomcat Users List
 Subject: RE: AW: configuration problem
 
 
 hm, may be it sound's like I'm a little bit stupid but... can 
 you tell me 
 howto or even better where to read?
 
 thanx
 andreas
 

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



SSL and mod_jk not working

2003-07-15 Thread Leander Jedamus
Hi!

I installed mod_jk and it is working for http, but not for https.
In catalina.out I have:
...
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
15.07.2003 15:52:51 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
15.07.2003 15:52:52 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
15.07.2003 15:52:52 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/171  config=/usr/local/tomcat/conf/jk2.properties

in /usr/local/tomcat/conf/auto/mod_jk.conf
I changed JkLogLevel to info
and restarted apache and fetched http://localhost/examples/
but there is nothing in /usr/local/tomcat/logs/mod_jk.log
Why is that?
What am I missing?

Thanks in advance
Leander
--
Leander Jedamus
Presse- und Ɩffentlichkeitsarbeit
FH Worms
Erenburger Str. 19
67549 Worms
+49 6241 509-172

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



Re: JK2 problems

2003-07-15 Thread Werner van Mook
Call me stupid if you wish,

Where do I have to change the JkLogLevel ?
I did it in the auto generated file without restarting tomcat ( then it 
will be overwritten. I know)

I do not have apachectl on my machine. so I can't do a config test.
Sorry.
If I want this I have to reinstall Apache.
I don't know how that is going to affect my Cobalt machine?
Do you know sun cobalt? It's a completely pre-configured web server.
It can be very usefull if you have only static webpages or if you want 
to use asp/perl.

For java well I don't know jet.

Werner

On Tuesday, July 15, 2003, at 03:47 PM, John Turner wrote:

Sounds like you have more than one copy of Apache running, and the 
copy of Apache you are modifying isn't the running copy.

Also, change your JkLogLevel to info.

Also, please post the output of apachectl configtest.

John

On Tue, 15 Jul 2003 15:44:24 +0200, Werner van Mook 
[EMAIL PROTECTED] wrote:

Hi John,

Thanx for your response.

I did all that is in your HOWTO.
I still have no luck with it.
I downloaded : mod_jk-1.3-eapi.so from jakarta.apacheetc and 
renamed it to mod_jk.so.

Could you please have look ?
Or some else of course.
This is a piece of my localhost_log file :

2003-07-15 15:17:02 StandardHost[www.connecties.com]: Installing web 
application at context path /Friss from URL file:/usr/jakarta-tomcat- 
4.1.24/webapps/Friss
2003-07-15 15:17:02 WebappLoader[/Friss]: Deploying class 
repositories to work directory /usr/jakarta-tomcat- 
4.1.24/work/Standalone/www.connecties.com/Friss
2003-07-15 15:17:02 WebappLoader[/Friss]: Deploy class files /WEB- 
INF/classes to 
/usr/jakarta-tomcat-4.1.24/webapps/Friss/WEB-INF/classes
2003-07-15 15:17:03 ContextConfig[/Friss]: Configured an 
authenticator for method FORM
2003-07-15 15:17:03 StandardManager[/Friss]: Seeding random number 
generator class java.security.SecureRandom
2003-07-15 15:17:03 StandardManager[/Friss]: Seeding of random number 
generator has been completed
2003-07-15 15:17:03 StandardWrapper[/Friss:default]: Loading 
container servlet default
2003-07-15 15:17:03 StandardWrapper[/Friss:invoker]: Loading 
container servlet invoker

Here are some parts of the auto generated mod_jk conf file :

# Auto generated on Tue Jul 15 15:16:47 CEST 2003##

IfModule !mod_jk.c
LoadModule jk_module /etc/httpd/modules/mod_jk.so
/IfModule
JkWorkersFile /usr/jakarta-tomcat-4.1.24/conf/jk/workers.properties
JkLogFile /usr/jakarta-tomcat-4.1.24/logs/mod_jk.log
JkLogLevel emerg



VirtualHost www.connecties.com
ServerName www.connecties.com
.
.
.
 www.connecties.com:/Friss 

# Static files
Alias /Friss /usr/jakarta-tomcat-4.1.24/webapps/Friss
Directory /usr/jakarta-tomcat-4.1.24/webapps/Friss
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
# Deny direct access to WEB-INF and META-INF
#
Location /Friss/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /Friss/META-INF/*
AllowOverride None
deny from all
/Location
JkMount /Friss/login/j_security_check  ajp13
JkMount /Friss/klanten/Login  ajp13
JkMount /Friss/admin/Werktijden  ajp13
JkMount /Friss/admin/UpdateExpertise  ajp13
JkMount /Friss/admin/Logout  ajp13
JkMount /Friss/kapper/Confirm  ajp13
JkMount /Friss/klanten/Datum  ajp13
JkMount /Friss/Store  ajp13
JkMount /Friss/klanten/Kapper  ajp13
JkMount /Friss/Tijd  ajp13
JkMount /Friss/klanten/StoreNaw  ajp13
JkMount /Friss/*.jsp  ajp13
JkMount /Friss/klanten/Behandeling  ajp13
JkMount /Friss/admin/Personeel  ajp13
JkMount /Friss/klanten/Naw  ajp13
JkMount /Friss/admin/OpeningsTijden  ajp13
JkMount /Friss/admin/Behandel  ajp13
.
.
.
/VirtualHost
substitute the 3 dots with the 'standard' tomcat webapps.

I added this to my httpd.conf :

LoadModule jk_module modules/mod_jk.so

and at the end :

Include /usr/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf

Starting tomcat.wait 10 or more seconds  start apache

If I try to get to www.connecties.com/Friss I still get a 404 file 
not found.

In the error log file for apache it says :

[Tue Jul 15 15:36:22 2003] [crit] (98)Address already in use: 
make_sock: could not bind to port 80

I can still go to www.connecties.com (which is a normal website with 
some static pages).

Kind regards,

Werner van Mook
Java Lead Developer / Trainer
Connecties Voor Internet


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


Remote debugging on linux for TOMCAT 4.1.24

2003-07-15 Thread Gustavson, John (IDS ECCS)
The documentation states add 
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
to catalina.bat.  

Does anyone know what the correct procedure for linux is?


Regards

John Gustavson
Enterprise Central Software Services (ECSS)
570 Washington Street - 2nd floor
New York, New York, 10080-6802

Telephone: 1-212-647-3793
Fax: 1-212-647-3321
Email: [EMAIL PROTECTED]



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



RE: SSL and mod_jk not working

2003-07-15 Thread Abid Ali Teepo
Have you uncommented the SSL Connector in tomcat's server.xml file ?
I can't see any ssl connector starting up at all...

If you go to your tomcat's homepage, look up the SSL-HowTO

-Original Message-
From: Leander Jedamus [mailto:[EMAIL PROTECTED]
Sent: 15. juli 2003 16:09
To: Tomcat Users List
Subject: SSL and mod_jk not working


Hi!

I installed mod_jk and it is working for http, but not for https.
In catalina.out I have:
...
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
15.07.2003 15:52:51 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
15.07.2003 15:52:52 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
15.07.2003 15:52:52 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/171  config=/usr/local/tomcat/conf/jk2.properties

in /usr/local/tomcat/conf/auto/mod_jk.conf
I changed JkLogLevel to info
and restarted apache and fetched http://localhost/examples/
but there is nothing in /usr/local/tomcat/logs/mod_jk.log
Why is that?
What am I missing?

Thanks in advance
Leander
--
Leander Jedamus
Presse- und Ɩffentlichkeitsarbeit
FH Worms
Erenburger Str. 19
67549 Worms
+49 6241 509-172

-
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: SSL and mod_jk not working

2003-07-15 Thread John Turner
SSL would be configured in httpd.conf, not server.xml, if they are using 
mod_jk.

John

On Tue, 15 Jul 2003 16:28:06 +0200, Abid Ali Teepo 
[EMAIL PROTECTED] wrote:

Have you uncommented the SSL Connector in tomcat's server.xml file ?
I can't see any ssl connector starting up at all...
If you go to your tomcat's homepage, look up the SSL-HowTO

-Original Message-
From: Leander Jedamus [mailto:[EMAIL PROTECTED]
Sent: 15. juli 2003 16:09
To: Tomcat Users List
Subject: SSL and mod_jk not working
Hi!

I installed mod_jk and it is working for http, but not for https.
In catalina.out I have:
...
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
15.07.2003 15:52:51 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
15.07.2003 15:52:52 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
15.07.2003 15:52:52 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/171  
config=/usr/local/tomcat/conf/jk2.properties

in /usr/local/tomcat/conf/auto/mod_jk.conf
I changed JkLogLevel to info
and restarted apache and fetched http://localhost/examples/
but there is nothing in /usr/local/tomcat/logs/mod_jk.log
Why is that?
What am I missing?
Thanks in advance
Leander
--
Leander Jedamus
Presse-und Ɩffentlichkeitsarbeit
FH Worms
Erenburger Str. 19
67549 Worms
+49 6241 509-172
-
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]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat jsp file is locked on win32

2003-07-15 Thread Vladimer Shioshvili
Hello all,

I am not sure what could be the reason for this behavior. I did not have 
much luck finding any information on the web about this either. One 
particular jsp file is being locked and cannot be deleted. I am trying to 
update the file and replace with an updated copy from CVS, but because of 
it is locked it can't be done unless Tomcat is stopped. Out of 30 or so jsp 
pages I am using for the project this is the only one that gets locked. The 
only difference is that the file is the biggest (41K). Is that the reason? 
Also, if you could point me to where I should be looking for an answer to 
this question, would be greatly appreciated.

Thanks,
Vlad

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


Re: Remote debugging on linux for TOMCAT 4.1.24

2003-07-15 Thread Larry Meadors
I use './catalana.sh jpda run' fron the $CATALINA_HOME/bin directory.

Larry

 [EMAIL PROTECTED] 07/15/03 8:20 AM 
The documentation states add 
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
to catalina.bat.  

Does anyone know what the correct procedure for linux is?


Regards

John Gustavson
Enterprise Central Software Services (ECSS)
570 Washington Street - 2nd floor
New York, New York, 10080-6802

Telephone: 1-212-647-3793
Fax: 1-212-647-3321
Email: [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: RPM Pacakages for RHLinux

2003-07-15 Thread Michele Neylon:: Blacknight Solutions
Hi

If you are looking for JDK you would need to look on sun.com
For Tomcat you'll find all the rpms on apache.org under the tomcat project
download section.
RH 7.1 is rather old. I would upgrade if at all possible.

M

Mr. Michele Neylon
Blacknight Solutions
http://www.blacknightsolutions.com
Spam and virus scanning available 

 
 -Original Message-
 From: Hari Om [mailto:[EMAIL PROTECTED] 
 Sent: 14 July 2003 23:45
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 
 where can I download rpm file for JDK and Tomcat on Red Hat 
 Linux  7.1 I tried rpmfind.net freshrpms.net and rpmseek.com
 
 what is better way to INSTALL above pacakages on Red Hat 
 Linux...(1)TAR/GZ or (2) RPM...?
 
 Where is the FORUM for RED HAT LINUX...?
 
 MILLION THANKS!
 
 _
 The new MSN 8: smart spam protection and 2 months FREE* 
 http://join.msn.com/?page=features/junkmail
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


#
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance to it is prohibited. 


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



Re: Tomcat jsp file is locked on win32

2003-07-15 Thread Tim Funk
Check bugzilla. There was a conversation about this (don't know if it was 
fixed or not - or for which release).

It has to do with after files reaching a certain size - then the file is read 
as stream and the File descriptor is not closed causing the OS to keep a lock.

-Tim

Vladimer Shioshvili wrote:
Hello all,

I am not sure what could be the reason for this behavior. I did not have 
much luck finding any information on the web about this either. One 
particular jsp file is being locked and cannot be deleted. I am trying 
to update the file and replace with an updated copy from CVS, but 
because of it is locked it can't be done unless Tomcat is stopped. Out 
of 30 or so jsp pages I am using for the project this is the only one 
that gets locked. The only difference is that the file is the biggest 
(41K). Is that the reason? Also, if you could point me to where I should 
be looking for an answer to this question, would be greatly appreciated.

Thanks,
Vlad

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155

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


Tomcat as a service - starting up with security

2003-07-15 Thread Pooleery, Manoj
Hi,

I have a requirement like this - I want to install Tomcat as a service which
when starts up, should be in the secure mode.  I want to do a cleanup of the
logs/localhost directories when I do so. (Currently, I have a batch file
which does it for me). I could get hold of information to start Tomcat as a
service, but not with security or the additional cleanup I require.  Does
anybody know how to go about this?  Any information in this regard is highly
appreciated.

Thanks
-Manoj.


Migration problem (JServ - Tomcat)

2003-07-15 Thread Yiannis Mavroukakis

Hi everyone,

I'm trying to migrate an app from Jserv to Tomcat 4.1.24. Everything up to
now
seems to be a success aside from this:

java.lang.VerifyError: (class: org/apache/xalan/xpath/xdom/XercesLiaison,
method: parse signature: (Lorg/xml/sax/InputSource;)V) Incompatible object
argument for function call

I get this from the following snippet of code:
XSLTProcessor processor = XSLTProcessorFactory.getProcessor(new
org.apache.xalan.xpath.xdom.XercesLiaison());

I am aware that there are some issues concerning the use of xerces/xalan
with Tomcat, and I have
seen similar (but not the same) probs in the list, however i've tried a lot
of things which
do not seem to have produced any positive result, so any wisdom would be
appreciated :)

Thank you,

Yiannis.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


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



Re: JK2 problems

2003-07-15 Thread Werner van Mook
I have a bad feeling about this.

After going to the advised webpage I restarted apache and got :

Cannot load /etc/httpd/modules/mod_webapp.so into server: 
/lib/libc.so.6: version `GLIBC_2.2' not found (required by 
/etc/httpd/modules/mod_webapp.so)

When trying to install glibc 2.2 I got all kinds of dependence problems.

I will contact the support team of my provider.

Kind regards to all who tried to help me.

Werner



On Tuesday, July 15, 2003, at 04:15 PM, John Turner wrote:


If you changed it in your auto generated file, did you restart Apache?

This link might be of some help: 
http://www.spaceprogram.com/knowledge/tomcat4_on_cobalt_setup.html

John

On Tue, 15 Jul 2003 16:09:23 +0200, Werner van Mook 
[EMAIL PROTECTED] wrote:



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


[ANN] Tomcat 5.0.4 Alpha released

2003-07-15 Thread Remy Maucherat
Tomcat 5.0.4 Alpha is now available for testing.

Please refer to the changelog included in the release for the list of 
changes.

Downloads:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v5.0.4-alpha/
Remy



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


Re: Servlet Context Listener problem...

2003-07-15 Thread Mufaddal Khumri
Yes , my listener has been declared before anything else under  
web-app .. the problem persists .. any clues ?
On Tuesday, July 15, 2003, at 07:00  AM, Januski, Ken wrote:

Listeners must be declared before any servlets in web.xml. I'd check  
that
first.

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 6:41 AM
To: Tomcat List
Subject: Servlet Context Listener problem...
Hi:

I implemented ServletContextListener in my class. I then wrote the xml
in the web.xml file and started tomcat. The error tomcat threw tells me
that it did not recognize the listener and listener-class elements ?? i
have them declared in the web.xml as:
web-app

!-- ServletContextListener --
listener
listener-class

com.wavesinmotion.cw.classes.jsphelpers.CourseWizardContextListener
/listener-class
/listener
/web-app
Any ideas where I am going wrong ?
Thanks.
Tomcat threw this error below:

SEVERE: Parse Error at line 10 column 12: Element type listener must
be declared.
org.xml.sax.SAXParseException: Element type listener must be  
declared.
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro 
r
HandlerWrapper.java:232)
	at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja 
v
a:173)
	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
v
a:371)
	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
v
a:305)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVal 
i
dator.java:1833)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator 
.
java:724)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( 
X
MLDocumentFragmentScannerImpl.java:759)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi 
s
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD 
o
cumentFragmentScannerImpl.java:329)
	at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
5
25)
	at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
5
81)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
	at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav 
a
:1175)
	at org.apache.commons.digester.Digester.parse(Digester.java:1495)
	at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConf 
i
g.java:282)
	at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
	at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig. 
j
ava:243)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS 
u
pport.java:166)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:356 
7
)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	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 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
v
a:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
r
Impl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jul 14, 2003 3:56:11 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 11 column 19: Element type listener-class
must be declared.
org.xml.sax.SAXParseException: Element type listener-class must be
declared.
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro 
r
HandlerWrapper.java:232)
	at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja 
v
a:173)
	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
v
a:371)
	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
v
a:305)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVal 
i
dator.java:1833)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator 
.
java:724)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( 
X
MLDocumentFragmentScannerImpl.java:759)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi 
s
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
	at

RE: Servlet Context Listener problem...

2003-07-15 Thread Bodycombe, Andrew
Make sure your DTD is the correct servlet 2.3 DTD. The listener element was
introduced in version 2.3 of the servlet spec.

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] 
Sent: 15 July 2003 04:58
To: Tomcat Users List
Subject: Re: Servlet Context Listener problem...


Yes , my listener has been declared before anything else under  
web-app .. the problem persists .. any clues ?
On Tuesday, July 15, 2003, at 07:00  AM, Januski, Ken wrote:

 Listeners must be declared before any servlets in web.xml. I'd check  
 that
 first.


 -Original Message-
 From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 14, 2003 6:41 AM
 To: Tomcat List
 Subject: Servlet Context Listener problem...


 Hi:

 I implemented ServletContextListener in my class. I then wrote the xml
 in the web.xml file and started tomcat. The error tomcat threw tells me
 that it did not recognize the listener and listener-class elements ?? i
 have them declared in the web.xml as:

 web-app
   
   !-- ServletContextListener --
   listener
   listener-class
   
 com.wavesinmotion.cw.classes.jsphelpers.CourseWizardContextListener
   /listener-class
   /listener
 /web-app

 Any ideas where I am going wrong ?
 Thanks.

 Tomcat threw this error below:

 SEVERE: Parse Error at line 10 column 12: Element type listener must
 be declared.
 org.xml.sax.SAXParseException: Element type listener must be  
 declared.
   at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro 
 r
 HandlerWrapper.java:232)
   at
 org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja 
 v
 a:173)
   at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
 v
 a:371)
   at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
 v
 a:305)
   at
 org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVal 
 i
 dator.java:1833)
   at
 org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator 
 .
 java:724)
   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( 
 X
 MLDocumentFragmentScannerImpl.java:759)
   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi 
 s
 patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD 
 o
 cumentFragmentScannerImpl.java:329)
   at
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
 5
 25)
   at
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
 5
 81)
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
   at
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav 
 a
 :1175)
   at org.apache.commons.digester.Digester.parse(Digester.java:1495)
   at
 org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConf 
 i
 g.java:282)
   at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
   at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig. 
 j
 ava:243)
   at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS 
 u
 pport.java:166)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:356 
 7
 )
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   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 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
 v
 a:39)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
 r
 Impl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 Jul 14, 2003 3:56:11 PM org.apache.commons.digester.Digester error
 SEVERE: Parse Error at line 11 column 19: Element type listener-class
 must be declared.
 org.xml.sax.SAXParseException: Element type listener-class must be
 declared.
   at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro 
 r
 HandlerWrapper.java:232)
   at
 org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja 
 v
 a:173)
   at
 

Re: Servlet Context Listener problem...

2003-07-15 Thread John Turner
Is declared before anything else a literal statement?  Are you following 
the DTD?  listener comes after several other elements, it can't come 
first unless you don't use any of the preceeding elements at all.

John

On Tue, 15 Jul 2003 09:27:39 +0530, Mufaddal Khumri [EMAIL PROTECTED] 
wrote:

Yes , my listener has been declared before anything else under  web-app 
.. the problem persists .. any clues ?
On Tuesday, July 15, 2003, at 07:00  AM, Januski, Ken wrote:

Listeners must be declared before any servlets in web.xml. I'd check  
that
first.

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 6:41 AM
To: Tomcat List
Subject: Servlet Context Listener problem...
Hi:

I implemented ServletContextListener in my class. I then wrote the xml
in the web.xml file and started tomcat. The error tomcat threw tells me
that it did not recognize the listener and listener-class elements ?? i
have them declared in the web.xml as:
web-app

!-- ServletContextListener --
listener
listener-class

com.wavesinmotion.cw.classes.jsphelpers.CourseWizardContextListener
/listener-class
/listener
/web-app
Any ideas where I am going wrong ?
Thanks.
Tomcat threw this error below:

SEVERE: Parse Error at line 10 column 12: Element type listener must
be declared.
org.xml.sax.SAXParseException: Element type listener must be  
declared.
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro 
r
HandlerWrapper.java:232)
	at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja 
v
a:173)
	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
v
a:371)
	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
v
a:305)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVal 
i
dator.java:1833)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator 
.
java:724)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( 
X
MLDocumentFragmentScannerImpl.java:759)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi 
s
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD 
o
cumentFragmentScannerImpl.java:329)
	at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
5
25)
	at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
5
81)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
	at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav 
a
:1175)
	at org.apache.commons.digester.Digester.parse(Digester.java:1495)
	at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConf 
i
g.java:282)
	at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
	at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig. 
j
ava:243)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS 
u
pport.java:166)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:356 
7
)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	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 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
v
a:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
r
Impl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jul 14, 2003 3:56:11 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 11 column 19: Element type listener-class
must be declared.
org.xml.sax.SAXParseException: Element type listener-class must be
declared.
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro 
r
HandlerWrapper.java:232)
	at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja 
v
a:173)
	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
v
a:371)
	at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
v
a:305)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVal 
i
dator.java:1833)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator 
.
java:724)
	at

Dispatching Request to Another Servlet Context

2003-07-15 Thread Paresh Joshi
Hi,
 
I want to forward a request from one servlet context to a JSP page in another 
servlet context. Both the applications are running on same tomcat. I would appreciate 
if any one can shed some light on how to do this. 
 
Thanks,
Paresh

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

Re: RPM Pacakages for RHLinux

2003-07-15 Thread Yu Meng Chong
Hari Om wrote:

where can I download rpm file for JDK and Tomcat on Red Hat Linux  7.1
I tried rpmfind.net freshrpms.net and rpmseek.com
I use the rpm version of IBM's Java, which you can download from :
https://www6.software.ibm.com/dl/lxdk/lxdk-p
what is better way to INSTALL above pacakages on Red Hat 
Linux...(1)TAR/GZ or (2) RPM...?
They're both the same, more or less. For the tarball, you have to create 
a directory and untar Java into that. For the rpm, you can just install 
using rpm -ivh xxx.

Where is the FORUM for RED HAT LINUX...?
I don't know ! I use Red Hat on my laptop, but am considering shifting 
back to TurboLinux because of double byte support.

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


Resolved Re: Servlet Context Listener problem...

2003-07-15 Thread Mufaddal Khumri
CHANGED the reference to the dtd and it worked. That was the error 
because I was referencing the old dtd which does not recognize listener 
or listener-class.

I had:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
Changed it to:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web 
Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;


RE: Servlet Context Listener problem...

2003-07-15 Thread Sudhir Movva
If you are using ant, this target can validate your web.xml and see if the
listener is in the right place according to the 2.3 specification. Run the
target and check it out.

target name=validate-web-xml description=validates the web.xml file
xmlvalidate file=WEB-INF/web.xml warn=true
dtd publicid=-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
location=http://java.sun.com/dtd/web-app_2_3.dtd; /
/xmlvalidate
/target

-Sudhir.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 12:27 PM
To: Tomcat Users List
Subject: Re: Servlet Context Listener problem...


Is declared before anything else a literal statement?  Are you following 
the DTD?  listener comes after several other elements, it can't come 
first unless you don't use any of the preceeding elements at all.

John

On Tue, 15 Jul 2003 09:27:39 +0530, Mufaddal Khumri [EMAIL PROTECTED] 
wrote:

 Yes , my listener has been declared before anything else under  web-app 
 .. the problem persists .. any clues ?
 On Tuesday, July 15, 2003, at 07:00  AM, Januski, Ken wrote:

 Listeners must be declared before any servlets in web.xml. I'd check  
 that
 first.


 -Original Message-
 From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 14, 2003 6:41 AM
 To: Tomcat List
 Subject: Servlet Context Listener problem...


 Hi:

 I implemented ServletContextListener in my class. I then wrote the xml
 in the web.xml file and started tomcat. The error tomcat threw tells me
 that it did not recognize the listener and listener-class elements ?? i
 have them declared in the web.xml as:

 web-app
  
  !-- ServletContextListener --
  listener
  listener-class
  
 com.wavesinmotion.cw.classes.jsphelpers.CourseWizardContextListener
  /listener-class
  /listener
 /web-app

 Any ideas where I am going wrong ?
 Thanks.

 Tomcat threw this error below:

 SEVERE: Parse Error at line 10 column 12: Element type listener must
 be declared.
 org.xml.sax.SAXParseException: Element type listener must be  
 declared.
  at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro 
 r
 HandlerWrapper.java:232)
  at
 org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja 
 v
 a:173)
  at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
 v
 a:371)
  at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja 
 v
 a:305)
  at
 org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVal 
 i
 dator.java:1833)
  at
 org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator 
 .
 java:724)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( 
 X
 MLDocumentFragmentScannerImpl.java:759)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi 
 s
 patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD 
 o
 cumentFragmentScannerImpl.java:329)
  at
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
 5
 25)
  at
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
 5
 81)
  at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
  at
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav 
 a
 :1175)
  at org.apache.commons.digester.Digester.parse(Digester.java:1495)
  at
 org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConf 
 i
 g.java:282)
  at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
  at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig. 
 j
 ava:243)
  at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS 
 u
 pport.java:166)
  at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:356 
 7
 )
  at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  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 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
 v
 a:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
 r
 Impl.java:25)
  at 

Re: SSL and mod_jk not working

2003-07-15 Thread Simon Pabst
Where do you have JkMount for examples Context?
In global httpd.conf or in a VirtualHost for Port 80?
Try putting the JkMount into the SSL VirtualHost too (which is configured 
in apache2/conf/ssl.conf)

At 16:09 15.07.2003 +0200, you wrote:
Hi!

I installed mod_jk and it is working for http, but not for https.
In catalina.out I have:
...
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
15.07.2003 15:52:51 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
15.07.2003 15:52:52 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
15.07.2003 15:52:52 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/171  config=/usr/local/tomcat/conf/jk2.properties
in /usr/local/tomcat/conf/auto/mod_jk.conf
I changed JkLogLevel to info
and restarted apache and fetched http://localhost/examples/
but there is nothing in /usr/local/tomcat/logs/mod_jk.log
Why is that?
What am I missing?
Thanks in advance
Leander
--
Leander Jedamus
Presse- und Ɩffentlichkeitsarbeit
FH Worms
Erenburger Str. 19
67549 Worms
+49 6241 509-172
-
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: Dispatching Request to Another Servlet Context

2003-07-15 Thread Shapira, Yoav

Howdy,
ServletContext myContext = getServletContext();
ServletContext otherContext = myContext.getContext(/otherWebApp);
RequestDispatcher rd =
otherContext.getRequestDispatcher(/pathUnderOtherWebApp);
rd.forward(request, response);

RTFM.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Paresh Joshi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 12:29 PM
To: Tomcat Users List
Subject: Dispatching Request to Another Servlet Context

   Hi,

   I want to forward a request from one servlet context to a JSP
page in
another servlet context. Both the applications are running on same
tomcat.
I would appreciate if any one can shed some light on how to do this.

   Thanks,
   Paresh




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]



Tomcat load not distributed equally by Apache

2003-07-15 Thread Scott Burns
All:

We have Apache 2 load balancing two tomcat 4.1.x workers. There are two
primary applications running under tomcat. One app has long session
times - eg the user logs-in in the morning and doesn't end their session
until evening. The other app has short sessions - a connection is made,
some work is performed, and they get out in under 3 minutes.

Mod_jk is providing the load balancing via weighted round-robin. Both
workers are equally weighted. In theory, each worker should have the
same load distribution. (Truly in theory, each worker gets an equivalent
number of sessions. Right? Our apps have sessions with a
disproportionate number of transactions per session.)

We see worker1 averaging higher CPU usage. I can justify this behavior
because of session affinity being enabled -- and the huge difference in
transactions per session in the applications.

Two questions. 

(1) Am I missing something or are our assumptions wrong? 

 

(2) How could we distribute load to the tomcat workers via tomcat CPU
usage instead of round-robin? Is there is a different Apache module that
can load balance via tomcat CPU usage?

Any help, guidance, direction you can provide would be greatly
appreciated.

Scott



Re: Re: mod_jk round robin problem stateless session beans

2003-07-15 Thread Simon Pabst
I did a short test with Apache 2 worker mpm today and now mod_jk2 seems to 
distribute the sessions more evenly,
will post more results tomorrow.

So round robin code is broken with current mod_jk1/2 and prefork Apache 
(1.3.27 and default Apache 2 configuration)
Unfortunately you can't use Apache 2 everywhere, i think it doesn't compile 
with worer mpm on solaris for example.

To install Apache 2 with worker mpm you need to build it from source and 
use the following configure:
./configure --with-mpm=worker ...

This should be fixed so Apache 1 users get a working round robin too.

Although i don't know much about the mod_jk(2) code, I agree to Bill, this 
should be a relatively easy fix.
In jk2 there's a shared memory file at least, should be enough to store the 
information about the last used worker if there's no other way.

At 11:37 15.07.2003 +0200, you wrote:
Thanks for you wisdom guys :-)

I'll try and test if Apache 2 with worker mpm works better,
although i still suspect the stateless session beans are part of the problem.
Since like i said with sticky_session off
or the SessionExample with sticky_session on
the round robin seems to works fine.
Besides the behaviour of sticky_session off should be theoretically 
similar as when
any new user logs on to the server and hasn't established a session yet, 
right?

The mod_jk lb_factor and lb_value also seem to do pretty nothing (on 
prefork Apache):
- Tested low lb_factor on first Tomcat and increased lb_factor on 
following Tomcats,
  last Tomcats with higher lb_factor still got no requests
- lb_value is almost always the same as lb_factor in JK2's jkstatus page
  when you access the application the lb_value changes to exactly twice 
as the lb_factor
  (on first Tomcat mostly) and then goes down to value of lb_factor again
  (before request: lb_factor 100, lb_value 100
  after request: lb_factor 100, lb_value 200
  a bit later: lb_factor 100, lb_value 100 again)

How the Load Balanciung of mod_jk could be enhanced to be a real load 
balancing, not just round robin:
Have some rules regarding the Status/Load of Tomcat/JVM, which you can put 
in any order you prefer (mod_backhand does sth. similar) (those will 
propably need jni or sth. else to work):
- byJVMThreads
- byJVMMemoryUsage
- byJVMCPUUsage
- byRoundRobin (and one which actually works ;-)
etc.

We considered alternative methods for load balancing too, but they all 
have some other downsides, so the best thing would still be if mod_jk 
round robin works as its supposed to be:

- DNS Round Robin or Apache mod_rewrite Round Robin (similar sub-URLs for 
one app on same server - saves you from buying several SSL certificates)
Problems:
- Bookmarks
- No real load balancing (ok mod_jk doesn't seem to have this 
either)
- Requests go to down Tomcats also, no failover

- Apache Loadbalancing with mod_backhand
   Nice approach of several Load Balancing decision rules (byCPU, 
byApacheChilds, byRandom etc.), which the user can put in any order he likes
   See http://www.backhand.org/mod_backhand/FAQ.shtml#question7

Problems:
- HTTPS Apache in Front with mod_backhand using Proxy Connections 
to connect to Apache/Tomcats in back causes problems because of URL 
Redirects from Tomcat/Java
- Requests go to down Tomcats also, no failover
- Not sure if keeping Sessions works (backhand could use 
JSESSIONID for sticky sessions, have yet to test that)

- Hardware Load Balancer (dind't investigate much on that)
 Problems:
 - IP based, read sth. that this ain't a particular good solution too


mod_jk
Tomcat Users List [EMAIL PROTECTED] schrieb am 15.07.03 
07:45:11:

 This is a pretty good description of what goes on, and it results in the
 highly skewed distributions that you are seeing.  I had thought that if you
 are using Apache-2 with the 'worker' MPM, that you should get a better
 distribution (but haven't tried it myself).  With Apache-1.3.x or Apache-2
 with the 'pre-fork' MPM this is as good as it gets at the moment (since the
 'pre-forked' processes don't talk to each other).  In theory, it should 
be a
 relatively easy fix in Jk2 to get 'pre-fork' working, but AFAIK, it hasn't
 been implemented yet.

 NormW [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Good morning Simon.
  'RoundRobin' is less likely the more Tomcat's you add I suspect. The
  balanced worker program always searches for a new worker by starting
  pointers from 1 rather than the last successful worker used, 
(AFAICT), and
  if a worker is free for the task it makes for muddy water indeed if you
  bypass it in the hope of finding something better... You need to remember
  which one was used 'last', which is a 'state' not remembered if/once
 session
  ID's are used (which go to the worker that handled it the last time). If
 you
  think about 'balancing' it is 'mindgame' to decide how a 'load' might be
  distributed... based on session counts? 

RE: Dispatching Request to Another Servlet Context

2003-07-15 Thread Paresh Joshi
Hi, 
 
I am still stuck
myContext.getContext(/otherWebApp) is returning me a null object. I have changed the 
context setting in server.xml for myWebAPP and otherWebAPP as crossContext=true. 

Do I need to do something else?

Thanks,

Paresh


-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tue 7/15/2003 10:05 AM 
To: Tomcat Users List 
Cc: 
Subject: RE: Dispatching Request to Another Servlet Context




Howdy,
ServletContext myContext = getServletContext();
ServletContext otherContext = myContext.getContext(/otherWebApp);
RequestDispatcher rd =
otherContext.getRequestDispatcher(/pathUnderOtherWebApp);
rd.forward(request, response);

RTFM.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Paresh Joshi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 12:29 PM
To: Tomcat Users List
Subject: Dispatching Request to Another Servlet Context

   Hi,

   I want to forward a request from one servlet context to a JSP
page in
another servlet context. Both the applications are running on same
tomcat.
I would appreciate if any one can shed some light on how to do this.

   Thanks,
   Paresh




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: Tomcat load not distributed equally by Apache

2003-07-15 Thread Simon Pabst
We had the same problem, see this thread 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg97638.html

Unless mod_jk Developers fix this, the only possible solution seems to
build and use Apache 2 with Multithreading support (i used the worker mpm, 
perchild should work too, see http://httpd.apache.org/docs-2.0/mpm.html )
then build mod_jk1/2 again with the new apxs.

I used for my Apache2/mod_jk2/mod_ssl:
httpd-2.0.47:
./configure --prefix=/path/to/apache2 --with-mpm=worker --enable-ssl 
--enable-so --enable-rewrite --enable-proxy

tomcat-connectors-1.1M1-src:
./configure --with-apxs2=/path/to/apache2/bin/apxs [ 
--with-java-home=/path/to/java --with-jni ]



At 13:09 15.07.2003 -0400, you wrote:
All:

We have Apache 2 load balancing two tomcat 4.1.x workers. There are two
primary applications running under tomcat. One app has long session
times - eg the user logs-in in the morning and doesn't end their session
until evening. The other app has short sessions - a connection is made,
some work is performed, and they get out in under 3 minutes.
Mod_jk is providing the load balancing via weighted round-robin. Both
workers are equally weighted. In theory, each worker should have the
same load distribution. (Truly in theory, each worker gets an equivalent
number of sessions. Right? Our apps have sessions with a
disproportionate number of transactions per session.)
We see worker1 averaging higher CPU usage. I can justify this behavior
because of session affinity being enabled -- and the huge difference in
transactions per session in the applications.
Two questions.

(1) Am I missing something or are our assumptions wrong?



(2) How could we distribute load to the tomcat workers via tomcat CPU
usage instead of round-robin? Is there is a different Apache module that
can load balance via tomcat CPU usage?
Any help, guidance, direction you can provide would be greatly
appreciated.
Scott


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


RE: Tomcat load not distributed equally by Apache

2003-07-15 Thread Scott Burns
Thanks very much Simon. :)  We will take a look at this.

Best Regards,

Scott

-Original Message-
From: Simon Pabst [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 1:25 PM
To: Tomcat Users List
Subject: Re: Tomcat load not distributed equally by Apache


We had the same problem, see this thread 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg97638.html

Unless mod_jk Developers fix this, the only possible solution seems to
build and use Apache 2 with Multithreading support (i used the worker
mpm, 
perchild should work too, see http://httpd.apache.org/docs-2.0/mpm.html
) then build mod_jk1/2 again with the new apxs.

I used for my Apache2/mod_jk2/mod_ssl:
httpd-2.0.47:
./configure --prefix=/path/to/apache2 --with-mpm=worker --enable-ssl 
--enable-so --enable-rewrite --enable-proxy

tomcat-connectors-1.1M1-src:
./configure --with-apxs2=/path/to/apache2/bin/apxs [ 
--with-java-home=/path/to/java --with-jni ]




At 13:09 15.07.2003 -0400, you wrote:
All:

We have Apache 2 load balancing two tomcat 4.1.x workers. There are two

primary applications running under tomcat. One app has long session 
times - eg the user logs-in in the morning and doesn't end their 
session until evening. The other app has short sessions - a connection 
is made, some work is performed, and they get out in under 3 minutes.

Mod_jk is providing the load balancing via weighted round-robin. Both 
workers are equally weighted. In theory, each worker should have the 
same load distribution. (Truly in theory, each worker gets an 
equivalent number of sessions. Right? Our apps have sessions with a 
disproportionate number of transactions per session.)

We see worker1 averaging higher CPU usage. I can justify this behavior 
because of session affinity being enabled -- and the huge difference in

transactions per session in the applications.

Two questions.

(1) Am I missing something or are our assumptions wrong?



(2) How could we distribute load to the tomcat workers via tomcat CPU 
usage instead of round-robin? Is there is a different Apache module 
that can load balance via tomcat CPU usage?

Any help, guidance, direction you can provide would be greatly 
appreciated.

Scott


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



session timeout in tomcat

2003-07-15 Thread Ravi Pachipala
Hi,

I am using Tomcat 4.1.24. After running some tests/sessions sequentially,
the Tomcat is exiting with outofmemory error. What are the paramters that
control session timeout in Tomcat? I see the following paratmeters in
server.xml but none of these seem to relate to idel timeout.

Thanks
Ravi
Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store className=org.apache.catalina.session.FileStore/
  /Manager



RE: session timeout in tomcat

2003-07-15 Thread Shapira, Yoav

Howdy,
session-config in web.xml.  It's in the Servlet Specification.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ravi Pachipala [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: session timeout in tomcat

Hi,

I am using Tomcat 4.1.24. After running some tests/sessions
sequentially,
the Tomcat is exiting with outofmemory error. What are the paramters
that
control session timeout in Tomcat? I see the following paratmeters in
server.xml but none of these seem to relate to idel timeout.

Thanks
Ravi
Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager




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]



Re: Tomcat jsp file is locked on win32

2003-07-15 Thread Reginald Oake
Hello.

I have found that under Windows file locks are not always released when
a file is closed and the only way after this to release a file lock is
to reboot the system. Sometimes file locks seem to clear on their own,
other times I have to restart the computer to release a file lock
(sometimes even this does not work).

If you are on a UNIX based system try running lsof and grep for the name
of the file. Part of the information you will get will be the id of the
process that has the file open. You can then go to that process and
release the file or terminate the process (either should release the
file lock).

Hope this helps.


Reg


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



Re: Upgrading Tomcat 5

2003-07-15 Thread Gerry Reno
Tim,
  For config files what about having Tomcat use variable constructions
like we see in Ant scripts: $catalina.home, rather than fixed paths. 
Then Tomcat could write out server.xml with constructions like
configFile=$catalina.home/conf/Catalina/www.vhost.com/ROOT.xml.  This
would make upgrading easier.

Gerry Reno


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Autodeploy WAR File to ROOT Context Problem

2003-07-15 Thread Aaron Longwell
I'm deploying a WAR file to the root context (path=). I've created the 
appropriate context XML file in the webapps dir and pointed it to a WAR 
(which I do NOT want to be expanded). It's working great... except for 
one thing:

Tomcat is deleting the context XML file so that when I stop and 
restart the server, my WAR file is re-deployed at /WARFileName instead of /

Why does tomcat delete this XML file for my webapp but not for Admin or 
Manager webapps? Am I doing this incorrectly?

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


Re: Remote debugging on linux for TOMCAT 4.1.24

2003-07-15 Thread Norris Shelton
This works if you want to use the defaults.  I usually connect
via a socket via IntelliJ for remote debugging.  I run on
windows and have a startup_debug.bat file with the following
contents:

set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=5005
call catalina.bat jpda start





--- Larry Meadors [EMAIL PROTECTED] wrote:
 I use './catalana.sh jpda run' fron the $CATALINA_HOME/bin
 directory.
 
 Larry
 
  [EMAIL PROTECTED] 07/15/03 8:20 AM 
 The documentation states add 
 SET CATALINA_OPTS=-server -Xdebug -Xnoagent
 -Djava.compiler=NONE
 -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
 to catalina.bat.  
 
 Does anyone know what the correct procedure for linux is?
 
 
 Regards
 
 John Gustavson
 Enterprise Central Software Services (ECSS)
 570 Washington Street - 2nd floor
 New York, New York, 10080-6802
 
 Telephone: 1-212-647-3793
 Fax: 1-212-647-3321
 Email: [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]
 


=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Autodeploy WAR File to ROOT Context Problem

2003-07-15 Thread Aaron Longwell
OK, Tried again, and this time the file was not deleted not sure 
what happened last time. But now I'm getting the WAR autoDeployed 
according to both the context XML file AND as a war file to a directory 
with the same name as the WAR file. In other words, my webapp is now 
accessible via 2 contexts, no big deal, but I'd prefer to have only the 
root context.

Also, let me explain a little better.

I am reading this section in the Docs:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment
And it indicates I can autoDeploy by creating a file *.xml with a 
Context tag inside. This will act as if that context was entered in my 
server.xml. This enables me to control where my WAR will be deployed via 
a file external to server.xml. This is exactly what I want.

The second autoDeploy takes each *.war file and deploys it to a webapp 
named the same as the war file. For example, my SoiledDove.war gets 
deployed to a /SoiledDove webapp.

Because my context XML file deploys to path= (the ROOT context in 
other words), AND my SoiledDove.war file is in the webapps directory... 
I am getting double auto-deployment.

How can I control which autoDeployment methods are enabled for a 
particular WAR?

Thanks,
Aaron
Aaron Longwell wrote:

I'm deploying a WAR file to the root context (path=). I've created 
the appropriate context XML file in the webapps dir and pointed it to 
a WAR (which I do NOT want to be expanded). It's working great... 
except for one thing:

Tomcat is deleting the context XML file so that when I stop and 
restart the server, my WAR file is re-deployed at /WARFileName instead 
of /

Why does tomcat delete this XML file for my webapp but not for Admin 
or Manager webapps? Am I doing this incorrectly?

Thanks,
Aaron
-
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: Autodeploy WAR File to ROOT Context Problem

2003-07-15 Thread John Turner
AFAIK, you have to stop putting your WAR file in /webapps.

There should probably be a check, or something, though, so that Tomcat can 
tell if it has already deployed a webapp.

John

On Tue, 15 Jul 2003 13:59:24 -0600, Aaron Longwell 
[EMAIL PROTECTED] wrote:

OK, Tried again, and this time the file was not deleted not sure what 
happened last time. But now I'm getting the WAR autoDeployed according to 
both the context XML file AND as a war file to a directory with the same 
name as the WAR file. In other words, my webapp is now accessible via 2 
contexts, no big deal, but I'd prefer to have only the root context.

Also, let me explain a little better.

I am reading this section in the Docs:
http://jakarta.apache.org/tomcat/tomcat-4.1- 
doc/config/host.html#Automatic%20Application%20Deployment

And it indicates I can autoDeploy by creating a file *.xml with a 
Context tag inside. This will act as if that context was entered in my 
server.xml. This enables me to control where my WAR will be deployed via 
a file external to server.xml. This is exactly what I want.

The second autoDeploy takes each *.war file and deploys it to a webapp 
named the same as the war file. For example, my SoiledDove.war gets 
deployed to a /SoiledDove webapp.

Because my context XML file deploys to path= (the ROOT context in other 
words), AND my SoiledDove.war file is in the webapps directory... I am 
getting double auto-deployment.

How can I control which autoDeployment methods are enabled for a 
particular WAR?

Thanks,
Aaron
Aaron Longwell wrote:

I'm deploying a WAR file to the root context (path=). I've created the 
appropriate context XML file in the webapps dir and pointed it to a WAR 
(which I do NOT want to be expanded). It's working great... except for 
one thing:

Tomcat is deleting the context XML file so that when I stop and 
restart the server, my WAR file is re-deployed at /WARFileName instead 
of /

Why does tomcat delete this XML file for my webapp but not for Admin or 
Manager webapps? Am I doing this incorrectly?

Thanks,
Aaron
-
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]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Autodeploy WAR File to ROOT Context Problem

2003-07-15 Thread Aaron Longwell
Is there a standard alternate location for the WAR file?

John Turner wrote:

AFAIK, you have to stop putting your WAR file in /webapps.

There should probably be a check, or something, though, so that Tomcat 
can tell if it has already deployed a webapp.

John

On Tue, 15 Jul 2003 13:59:24 -0600, Aaron Longwell 
[EMAIL PROTECTED] wrote:

OK, Tried again, and this time the file was not deleted not sure 
what happened last time. But now I'm getting the WAR autoDeployed 
according to both the context XML file AND as a war file to a 
directory with the same name as the WAR file. In other words, my 
webapp is now accessible via 2 contexts, no big deal, but I'd prefer 
to have only the root context.

Also, let me explain a little better.

I am reading this section in the Docs:
http://jakarta.apache.org/tomcat/tomcat-4.1- 
doc/config/host.html#Automatic%20Application%20Deployment

And it indicates I can autoDeploy by creating a file *.xml with a 
Context tag inside. This will act as if that context was entered in 
my server.xml. This enables me to control where my WAR will be 
deployed via a file external to server.xml. This is exactly what I want.

The second autoDeploy takes each *.war file and deploys it to a 
webapp named the same as the war file. For example, my SoiledDove.war 
gets deployed to a /SoiledDove webapp.

Because my context XML file deploys to path= (the ROOT context in 
other words), AND my SoiledDove.war file is in the webapps 
directory... I am getting double auto-deployment.

How can I control which autoDeployment methods are enabled for a 
particular WAR?

Thanks,
Aaron
Aaron Longwell wrote:

I'm deploying a WAR file to the root context (path=). I've created 
the appropriate context XML file in the webapps dir and pointed it 
to a WAR (which I do NOT want to be expanded). It's working great... 
except for one thing:

Tomcat is deleting the context XML file so that when I stop and 
restart the server, my WAR file is re-deployed at /WARFileName 
instead of /

Why does tomcat delete this XML file for my webapp but not for Admin 
or Manager webapps? Am I doing this incorrectly?

Thanks,
Aaron
-
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: Autodeploy WAR File to ROOT Context Problem

2003-07-15 Thread John Turner

From the doc:  The docBase attribute of this Context element will 
typically be the absolute pathname to a web applicationd directory, or the 
absolute pathname of a web application archive (WAR) file (which will not 
be expanded).

With an absolute docBase, your WAR file can go anywhere...it doesn't have 
to go in webapps.

John

On Tue, 15 Jul 2003 13:59:24 -0600, Aaron Longwell 
[EMAIL PROTECTED] wrote:

OK, Tried again, and this time the file was not deleted not sure what 
happened last time. But now I'm getting the WAR autoDeployed according to 
both the context XML file AND as a war file to a directory with the same 
name as the WAR file. In other words, my webapp is now accessible via 2 
contexts, no big deal, but I'd prefer to have only the root context.

Also, let me explain a little better.

I am reading this section in the Docs:
http://jakarta.apache.org/tomcat/tomcat-4.1- 
doc/config/host.html#Automatic%20Application%20Deployment

And it indicates I can autoDeploy by creating a file *.xml with a 
Context tag inside. This will act as if that context was entered in my 
server.xml. This enables me to control where my WAR will be deployed via 
a file external to server.xml. This is exactly what I want.

The second autoDeploy takes each *.war file and deploys it to a webapp 
named the same as the war file. For example, my SoiledDove.war gets 
deployed to a /SoiledDove webapp.

Because my context XML file deploys to path= (the ROOT context in other 
words), AND my SoiledDove.war file is in the webapps directory... I am 
getting double auto-deployment.

How can I control which autoDeployment methods are enabled for a 
particular WAR?

Thanks,
Aaron
Aaron Longwell wrote:

I'm deploying a WAR file to the root context (path=). I've created the 
appropriate context XML file in the webapps dir and pointed it to a WAR 
(which I do NOT want to be expanded). It's working great... except for 
one thing:

Tomcat is deleting the context XML file so that when I stop and 
restart the server, my WAR file is re-deployed at /WARFileName instead 
of /

Why does tomcat delete this XML file for my webapp but not for Admin or 
Manager webapps? Am I doing this incorrectly?

Thanks,
Aaron
-
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]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache + Tomcat+4.0.6 (unpackWARs not decompress)

2003-07-15 Thread Alvaro

Hello,

I work with Apache + Tomcat 4.0.6 and I want deploy war file.

The problem is that  when I start Tomcat  not decompress File.war and
therefore Apache cannot respond static files (*.gif,*.jpg... static
files)

The option unpackWARs=true is not working???

As it is  the problem? Why  it does not  decompress? Is possible  to do
this  in Tomcat 4.0.x?

I have not found  any information about this.It  is not left but  remedy
that to decompress by hand?


This is part of the configuration in my server.xml:

Host name=localhost debug=0  appBase=/opt/app1 unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve
prefix=access_log. suffix=.txt pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
prefix=tomcat_log. suffix=.txt timestamp=true/
 Context path=/hs docBase=FILE.war debug=0  privileged=true
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
jkConfig=/var/opt/app1/conf/mod_jk.conf
workersConfig=/var/opt/app1/conf/workers.properties
modJk=/usr/local/lib/apache/mod_jk.so
jkLog=/var/opt/app1/logs/mod_jk.log
jkDebug=error
jkWorker=ajp13
forwardAll=false
noRoot=false
append=true /



Resource name=jdbc/HTT auth=Container
type=javax.sql.DataSource /
  ResourceParams name=jdbc/HTT
  parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter

 AND MORE PARAMETERS OF DATASOURCE
 AND CLOSED TAGS

Thanks in advance.



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



Re: Autodeploy WAR File to ROOT Context Problem

2003-07-15 Thread Aaron Longwell
I found out what caused the delete of the context XML file:

It is deleted after removing the SoiledDove web application (in other 
words the webapp with the same name as the war... I think this may be 
because my war and xml have the same name: SoiledDove.xml., SoiledDove.war)

Aaron Longwell wrote:

OK, Tried again, and this time the file was not deleted not sure 
what happened last time. But now I'm getting the WAR autoDeployed 
according to both the context XML file AND as a war file to a 
directory with the same name as the WAR file. In other words, my 
webapp is now accessible via 2 contexts, no big deal, but I'd prefer 
to have only the root context.

Also, let me explain a little better.

I am reading this section in the Docs:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment 

And it indicates I can autoDeploy by creating a file *.xml with a 
Context tag inside. This will act as if that context was entered in 
my server.xml. This enables me to control where my WAR will be 
deployed via a file external to server.xml. This is exactly what I want.

The second autoDeploy takes each *.war file and deploys it to a webapp 
named the same as the war file. For example, my SoiledDove.war gets 
deployed to a /SoiledDove webapp.

Because my context XML file deploys to path= (the ROOT context in 
other words), AND my SoiledDove.war file is in the webapps 
directory... I am getting double auto-deployment.

How can I control which autoDeployment methods are enabled for a 
particular WAR?

Thanks,
Aaron
Aaron Longwell wrote:

I'm deploying a WAR file to the root context (path=). I've created 
the appropriate context XML file in the webapps dir and pointed it to 
a WAR (which I do NOT want to be expanded). It's working great... 
except for one thing:

Tomcat is deleting the context XML file so that when I stop and 
restart the server, my WAR file is re-deployed at /WARFileName 
instead of /

Why does tomcat delete this XML file for my webapp but not for Admin 
or Manager webapps? Am I doing this incorrectly?

Thanks,
Aaron
-
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]


Question regarding jakarta-commons/fileupload

2003-07-15 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi friends,
can anybody help me? I am trying to retrieve fields and one file from a
submitted form. Is it possible, if i use jakarta-commons/fileupload? Or, i
should use O'reilly package. Code  sample would be appreciated.
Thanks in advance,
Euclides.

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



contextDestroyed being called twice ???

2003-07-15 Thread Mufaddal Khumri
I have defined a listener class that implements:

	public void contextDestroyed(ServletContextEvent sce) { ... }

The problem is this method is being called twice when i use the tomcat 
admin manager to reload the webapplication by clicking on the Reload 
link. Why does this happen ? Is this correct behaviour ?

Thanks.

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


IIS and Tomcat 4

2003-07-15 Thread BBui
Hi, 

I just installed Tomcat4 and IIS.  I have set up IIS to redirect jsps to
Tomcat with the isapi_redirect.dll and the arrow in the IIS property screen
is up and green.

When I accessed a jsp page in my localhost, I get a download confirmation
screen instead of the page being served up.  I can see the jsp ok in my
localhost:8080.  Could any one tell me what I am missing?  

Thanks very much. 

Baoha Bui 
 


* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*


Tomcat Site

2003-07-15 Thread John Lindley
Hi All. There is a site that has some info on Tomcat.
They have some listings of programs and tools. Plus
there is a support forum. Anyway, if you are looking
for some Tomcat-related stuff or want to post a cool
program, check them out. It's free to post.

www.tomcatsolutions.com

John

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



cannot load db driver in Tomcat 5.0.4

2003-07-15 Thread Raible, Matt
I'm trying to upgrade to Tomcat 5.0.4 and I'm getting the lovely error that
I love so much:

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



cannot load db driver in Tomcat 5.0.4

2003-07-15 Thread Raible, Matt
I'm trying to upgrade to Tomcat 5.0.4 and I'm getting the lovely error that
I love so much:

java.sql.SQLException: Cannot load JDBC driver class 'null'

This app works beautifully in Tomcat 4.1.24 and I can put the exact same
directory, app.xml and jdbc driver in common/lib and it works.  Has anything
changed configuration-wise in 5.0.4?

Thanks,

Matt

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



RE: cannot load db driver in Tomcat 5.0.4

2003-07-15 Thread Raible, Matt
I found that adding log4j.jar to $CATALINA_HOME/common/lib solved my
problem, but now I get the following error when I start Tomcat and there is
no logging to catalina.out:

log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.

Any help is appreciated.

Matt

-Original Message-
From: Raible, Matt 
Sent: Tuesday, July 15, 2003 2:53 PM
To: '[EMAIL PROTECTED]'
Subject: cannot load db driver in Tomcat 5.0.4


I'm trying to upgrade to Tomcat 5.0.4 and I'm getting the lovely error that
I love so much:

java.sql.SQLException: Cannot load JDBC driver class 'null'

This app works beautifully in Tomcat 4.1.24 and I can put the exact same
directory, app.xml and jdbc driver in common/lib and it works.  Has anything
changed configuration-wise in 5.0.4?

Thanks,

Matt

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



Re: Re: mod_jk round robin problem stateless session beans

2003-07-15 Thread NormW
Good morning Simon.
Thanks for the research.
Norm


- Original Message - 
From: Simon Pabst [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 3:58 AM
Subject: Re: Re: mod_jk round robin problem  stateless session beans


 I did a short test with Apache 2 worker mpm today and now mod_jk2 seems to
 distribute the sessions more evenly,
 will post more results tomorrow.

 So round robin code is broken with current mod_jk1/2 and prefork Apache
 (1.3.27 and default Apache 2 configuration)
 Unfortunately you can't use Apache 2 everywhere, i think it doesn't
compile
 with worer mpm on solaris for example.

 To install Apache 2 with worker mpm you need to build it from source and
 use the following configure:
 ./configure --with-mpm=worker ...

 This should be fixed so Apache 1 users get a working round robin too.

 Although i don't know much about the mod_jk(2) code, I agree to Bill, this
 should be a relatively easy fix.
 In jk2 there's a shared memory file at least, should be enough to store
the
 information about the last used worker if there's no other way.


 At 11:37 15.07.2003 +0200, you wrote:
 Thanks for you wisdom guys :-)
 
 
 I'll try and test if Apache 2 with worker mpm works better,
 although i still suspect the stateless session beans are part of the
problem.
 
 Since like i said with sticky_session off
 or the SessionExample with sticky_session on
 the round robin seems to works fine.
 
 Besides the behaviour of sticky_session off should be theoretically
 similar as when
 any new user logs on to the server and hasn't established a session yet,
 right?
 
 
 The mod_jk lb_factor and lb_value also seem to do pretty nothing (on
 prefork Apache):
 - Tested low lb_factor on first Tomcat and increased lb_factor on
 following Tomcats,
last Tomcats with higher lb_factor still got no requests
 - lb_value is almost always the same as lb_factor in JK2's jkstatus page
when you access the application the lb_value changes to exactly twice
  as the lb_factor
(on first Tomcat mostly) and then goes down to value of lb_factor
again
(before request: lb_factor 100, lb_value 100
after request: lb_factor 100, lb_value 200
a bit later: lb_factor 100, lb_value 100 again)
 
 
 How the Load Balanciung of mod_jk could be enhanced to be a real load
 balancing, not just round robin:
 Have some rules regarding the Status/Load of Tomcat/JVM, which you can
put
 in any order you prefer (mod_backhand does sth. similar) (those will
 propably need jni or sth. else to work):
 - byJVMThreads
 - byJVMMemoryUsage
 - byJVMCPUUsage
 - byRoundRobin (and one which actually works ;-)
 etc.
 
 
 We considered alternative methods for load balancing too, but they all
 have some other downsides, so the best thing would still be if mod_jk
 round robin works as its supposed to be:
 
 - DNS Round Robin or Apache mod_rewrite Round Robin (similar sub-URLs for
 one app on same server - saves you from buying several SSL certificates)
  Problems:
  - Bookmarks
  - No real load balancing (ok mod_jk doesn't seem to have this
  either)
  - Requests go to down Tomcats also, no failover
 
 
 - Apache Loadbalancing with mod_backhand
 Nice approach of several Load Balancing decision rules (byCPU,
  byApacheChilds, byRandom etc.), which the user can put in any order he
likes
 See http://www.backhand.org/mod_backhand/FAQ.shtml#question7
 
  Problems:
  - HTTPS Apache in Front with mod_backhand using Proxy
Connections
  to connect to Apache/Tomcats in back causes problems because of URL
  Redirects from Tomcat/Java
  - Requests go to down Tomcats also, no failover
  - Not sure if keeping Sessions works (backhand could use
  JSESSIONID for sticky sessions, have yet to test that)
 
 
 - Hardware Load Balancer (dind't investigate much on that)
   Problems:
   - IP based, read sth. that this ain't a particular good
solution too
 
 
 
 
 mod_jk
 Tomcat Users List [EMAIL PROTECTED] schrieb am 15.07.03
 07:45:11:
  
   This is a pretty good description of what goes on, and it results in
the
   highly skewed distributions that you are seeing.  I had thought that
if you
   are using Apache-2 with the 'worker' MPM, that you should get a better
   distribution (but haven't tried it myself).  With Apache-1.3.x or
Apache-2
   with the 'pre-fork' MPM this is as good as it gets at the moment
(since the
   'pre-forked' processes don't talk to each other).  In theory, it
should
  be a
   relatively easy fix in Jk2 to get 'pre-fork' working, but AFAIK, it
hasn't
   been implemented yet.
  
   NormW [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
Good morning Simon.
'RoundRobin' is less likely the more Tomcat's you add I suspect. The
balanced worker program always searches for a new worker by starting
pointers from 1 rather than the last successful worker used,
  (AFAICT), and
if a worker is 

Tomcat/Apache and mod_jk2

2003-07-15 Thread Daniel Herbison
I'm trying to install the mod_jk2 connector under Apache 1.3.27 and Tomcat
4.1.18.  When I place the mod_jk2.so in apache/modules and run the apachectl
configtest I get the error message:
 
Syntax error on line 224 of /coi/home/apache/conf/httpd.conf:
Cannot load /coi/home/apache/modules/mod_jk2.so into server: ld.so.1:
/coi/home/apache/bin/httpd: fatal: relocation error: file
/coi/home/apache/modules/mod_jk2.so: symbol apr_pool_cleanup_null:
referenced symbol not found
 
Con anyone tell me why?


RE: session timeout in tomcat

2003-07-15 Thread Ravi Pachipala
Thanks. That works.

Ravi

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 12:20 PM
To: Tomcat Users List
Subject: RE: session timeout in tomcat



Howdy,
session-config in web.xml.  It's in the Servlet Specification.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ravi Pachipala [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: session timeout in tomcat

Hi,

I am using Tomcat 4.1.24. After running some tests/sessions
sequentially,
the Tomcat is exiting with outofmemory error. What are the paramters
that
control session timeout in Tomcat? I see the following paratmeters in
server.xml but none of these seem to relate to idel timeout.

Thanks
Ravi
Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager




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]


  1   2   >