Re: help with mod_jk autoconfigure

2007-03-08 Thread Bill Barker

Todd Nine [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi all,
  I'm trying to get the mod_jk auto configuration to work.  I have the
 following line in my conf/server.xml  right after the Listeners that are
 declared in the default file.  Here is what I have

 Listener classname=org.apache.jk.config.ApacheConfig
 modJk=/usr/lib/httpd/modules/mod_jk.so/


Attributes are case-sensitive, so it is 
className=org.apache.jk.config.ApacheConfig

 Here is my server information

 Server version: Apache Tomcat/5.5.20
 Server built:   Sep 12 2006 10:09:20
 Server number:  5.5.20.0
 OS Name:Linux
 OS Version: 2.6.9-5.ELsmp
 Architecture:   i386
 JVM Version:1.5.0_10-b03
 JVM Vendor: Sun Microsystems Inc.

 I receive this stack trace in the catalina log.
 WARNING: Catalina.start using conf/server.xml:
 java.lang.NullPointerException
at org.apache.tomcat.util.digester.Digester.createSAXException(
 Digester.java:2725)
at org.apache.tomcat.util.digester.Digester.createSAXException(
 Digester.java:2751)
at org.apache.tomcat.util.digester.Digester.startElement(
 Digester.java:1278)
at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
 AbstractSAXParser.java:533)
at
 com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
 (AbstractXMLDocumentParser.java:220)
at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement
 (XMLDocumentFragmentScannerImpl.java:872)
at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
 (XMLDocumentFragmentScannerImpl.java:1693)
at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (XMLDocumentFragmentScannerImpl.java:368)
at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
 XML11Configuration.java:834)
at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
 XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
 XMLParser.java:148)
at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
 AbstractSAXParser.java:1242)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java
 :1561)
at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
 Mar 7, 2007 8:30:30 PM org.apache.catalina.startup.Catalina start


 Any idea what's wrong, the exception isn't very helpful.  If I comment out
 my line everything is fine.  I'm currently testing it running as root to
 avoid any permission or port issue.  Any help would be greatly 
 appreciated.

 Thanks,
 Todd
 




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



Re: Retrieve list of all sessions

2007-03-08 Thread Glen Vermeylen

We use Tomcat 5.5.20.

I actually have no synchronization in place whatsoever. I will change to
hashtable and see if it solves the problem.

Thank you.

2007/3/7, Caldarale, Charles R [EMAIL PROTECTED]:


 From: Glen Vermeylen [mailto:[EMAIL PROTECTED]
 Subject: Retrieve list of all sessions

 I've created a management screen which lists all currently
 logged in users. This list is kept as a hashmap and is kept
 in sync with reality in the following way:

A HashMap is unsynchronized; does your logic provide the necessary
synchronization for insertions, deletions, *and* retrievals?  If not,
switching to a HashTable might resolve your problem.

Or then again, it might just be a bug, but you didn't tell us the
version of Tomcat you're using, so searching bugzilla would be rather
tedious.

- Chuck


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

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




Re: Retrieve list of all sessions

2007-03-08 Thread albrecht andrzejewski

I actually track my connected users with this code:

public class MySessionManager{
public static Set String  connecteds;

/** Creates a new instance of MySessionManager */

public MySessionManager() {

connecteds = new java.util.HashSet();

and i use this method to add an entry for each new session created

public void valueBound(HttpSessionBindingEvent httpSessionBindingEvent) {

connectedPlayers.add((String)httpSessionBindingEvent.getSession().getAttribute(login));



}

I'm new to J2EE/servlet and i have not tested with multiple users, and  
i was not thinking about the concurrency.


Do i need to instantiate my set with something like:
Collections.synchronizedSet( new java.util.HashSet())

Or is it better to use directly the old hashtable ?

Best regards.


Quoting Glen Vermeylen [EMAIL PROTECTED]:


We use Tomcat 5.5.20.

I actually have no synchronization in place whatsoever. I will change to
hashtable and see if it solves the problem.

Thank you.

2007/3/7, Caldarale, Charles R [EMAIL PROTECTED]:



From: Glen Vermeylen [mailto:[EMAIL PROTECTED]
Subject: Retrieve list of all sessions

I've created a management screen which lists all currently
logged in users. This list is kept as a hashmap and is kept
in sync with reality in the following way:


A HashMap is unsynchronized; does your logic provide the necessary
synchronization for insertions, deletions, *and* retrievals?  If not,
switching to a HashTable might resolve your problem.

Or then again, it might just be a bug, but you didn't tell us the
version of Tomcat you're using, so searching bugzilla would be rather
tedious.

- Chuck


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

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







Ce message a ete envoye par le serveur IMP de l'EMA.



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



JSP Specification

2007-03-08 Thread Mendez Yanes, Jose Ignacio
Hi !!
 
I got this error when I startup tomcat:
 
INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
08-mar-2007 11:21:11 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(D:\apache-tomcat-6.0.10\webapps\octs\WEB-INF\lib\j2ee.ja
r) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class

I dont get any error at my developing local environment (WSSD) when
testing my web app.
 
I dont know where to get information about Servlet Spec 2.3, section
9.7.2.. 
 
I have removed the library and the error has not appear anymore but I
dont know if that is the solution since I dont know the spec I 2.3
section 9.7.2
 
 
Thanx in advance


Re: JSP Specification

2007-03-08 Thread Markus Schönhaber
Mendez Yanes, Jose Ignacio wrote:

 I got this error when I startup tomcat:

 INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
 08-mar-2007 11:21:11 org.apache.catalina.loader.WebappClassLoader
 validateJarFile
 INFO:
 validateJarFile(D:\apache-tomcat-6.0.10\webapps\octs\WEB-INF\lib\j2ee.ja
 r) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
 class: javax/servlet/Servlet.class

 I dont get any error at my developing local environment (WSSD) when
 testing my web app.

 I dont know where to get information about Servlet Spec 2.3, section
 9.7.2..

You'll find links to the Servlet specs here:
http://java.sun.com/products/servlet/download.html#specs
or more specific the download page for the 2.3 spec:
http://www.jcp.org/aboutJava/communityprocess/final/jsr053/

 I have removed the library and the error has not appear anymore but I
 dont know if that is the solution since I dont know the spec I 2.3
 section 9.7.2

That is the solution. Tomcat already provides an implementation of 
javax.servlet.Servlet. By adding a jar also containing an implementation of 
javax.servlet.Servlet you try to override Tomcat's version - which is what 
the cited part of the spec forbids.

Regards
  mks

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



RE: JSP Specification

2007-03-08 Thread Mendez Yanes, Jose Ignacio
OK,

THANX, that was what I thought but I wasn't sure because I hadnt be able to 
read the specs.

Greetz


-Mensaje original-
De: Markus Schönhaber [mailto:[EMAIL PROTECTED] 
Enviado el: jueves, 08 de marzo de 2007 11:59
Para: Tomcat Users List
Asunto: Re: JSP Specification

Mendez Yanes, Jose Ignacio wrote:

 I got this error when I startup tomcat:

 INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
 08-mar-2007 11:21:11 org.apache.catalina.loader.WebappClassLoader
 validateJarFile
 INFO:
 validateJarFile(D:\apache-tomcat-6.0.10\webapps\octs\WEB-INF\lib\j2ee.
 ja
 r) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
 class: javax/servlet/Servlet.class

 I dont get any error at my developing local environment (WSSD) when 
 testing my web app.

 I dont know where to get information about Servlet Spec 2.3, section 
 9.7.2..

You'll find links to the Servlet specs here:
http://java.sun.com/products/servlet/download.html#specs
or more specific the download page for the 2.3 spec:
http://www.jcp.org/aboutJava/communityprocess/final/jsr053/

 I have removed the library and the error has not appear anymore but I 
 dont know if that is the solution since I dont know the spec I 2.3 
 section 9.7.2

That is the solution. Tomcat already provides an implementation of 
javax.servlet.Servlet. By adding a jar also containing an implementation of 
javax.servlet.Servlet you try to override Tomcat's version - which is what the 
cited part of the spec forbids.

Regards
  mks

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


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



RE: More domains

2007-03-08 Thread Marcell Kiss-Toth
  From: Marcell Kiss-Toth [mailto:[EMAIL PROTECTED] 
  Subject: Re: More domains
  
  I mean that I copied the entire webapps\ROOT folder to 
  webapps\mydomain.com\ROOT.
 
 Why did you pick that location when the appBase for the
 www.mydomain.com
 Host is together.hu?  Your default app should be in
 together.hu/ROOT.
Sorry, I just miswrote, I have together.hu everywhere.

Only get blank page.

 
Host name=www.mydomain.com appBase=together.hu
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
  Aliasmydomain.com/Alias
  ... (the same as for the localhost)
/Host
 
  - Chuck

Marcell



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



Re: Retrieve list of all sessions

2007-03-08 Thread Glen Vermeylen

Thanks for the idea, putting a sessionbindinglistener on the session each
time a user logs on is a much cleaner approach.
Locally it seems to work nicely and I can delete the sessionlistener from
web.xml.

2007/3/8, albrecht andrzejewski [EMAIL PROTECTED]:


I actually track my connected users with this code:

public class MySessionManager{
 public static Set String  connecteds;

 /** Creates a new instance of MySessionManager */

 public MySessionManager() {

 connecteds = new java.util.HashSet();

and i use this method to add an entry for each new session created

public void valueBound(HttpSessionBindingEvent httpSessionBindingEvent) {

connectedPlayers.add
((String)httpSessionBindingEvent.getSession().getAttribute(login));


 }

I'm new to J2EE/servlet and i have not tested with multiple users, and
i was not thinking about the concurrency.

Do i need to instantiate my set with something like:
Collections.synchronizedSet( new java.util.HashSet())

Or is it better to use directly the old hashtable ?

Best regards.


Quoting Glen Vermeylen [EMAIL PROTECTED]:

 We use Tomcat 5.5.20.

 I actually have no synchronization in place whatsoever. I will change to
 hashtable and see if it solves the problem.

 Thank you.

 2007/3/7, Caldarale, Charles R [EMAIL PROTECTED]:

 From: Glen Vermeylen [mailto:[EMAIL PROTECTED]
 Subject: Retrieve list of all sessions

 I've created a management screen which lists all currently
 logged in users. This list is kept as a hashmap and is kept
 in sync with reality in the following way:

 A HashMap is unsynchronized; does your logic provide the necessary
 synchronization for insertions, deletions, *and* retrievals?  If not,
 switching to a HashTable might resolve your problem.

 Or then again, it might just be a bug, but you didn't tell us the
 version of Tomcat you're using, so searching bugzilla would be rather
 tedious.

 - Chuck


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

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






Ce message a ete envoye par le serveur IMP de l'EMA.



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




Re: More domains

2007-03-08 Thread Wayne Gemmell
Hi, I've been fighting with the same thing today. 

On Wed, 07 Mar 2007 19:27:30 +0100
Marcell Kiss-Toth [EMAIL PROTECTED] wrote:

 I copied the localhost Host section and replaced the localhost
 value to my domain name. Already created the folders so on. Have no
 errors, just getting a blank page.

To solve this I put a context.xml file in
a /var/lib/tomcat5.5/conf/Catalina/
Now I have the error
java.lang.IllegalArgumentException: Document
base /var/lib/tomcat5.5/webapps/ec_site/context does not exist or is
not a readable directory which I find pretty wierd but at least I'm
past the blank screen...

Cheers
Wayne

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



Re: Retrieve list of all sessions

2007-03-08 Thread Peter Stavrinides

You might want to use something like this:

//String,Visit is the sessionid and the Visit Object
   private static ConcurrentHashMapString,Visit visitHistory_ = new 
ConcurrentHashMapString,Visit();


   and implement it as a singleton with synchronized accessor methods.

Glen Vermeylen wrote:

We use Tomcat 5.5.20.

I actually have no synchronization in place whatsoever. I will change to
hashtable and see if it solves the problem.

Thank you.

2007/3/7, Caldarale, Charles R [EMAIL PROTECTED]:


 From: Glen Vermeylen [mailto:[EMAIL PROTECTED]
 Subject: Retrieve list of all sessions

 I've created a management screen which lists all currently
 logged in users. This list is kept as a hashmap and is kept
 in sync with reality in the following way:

A HashMap is unsynchronized; does your logic provide the necessary
synchronization for insertions, deletions, *and* retrievals?  If not,
switching to a HashTable might resolve your problem.

Or then again, it might just be a bug, but you didn't tell us the
version of Tomcat you're using, so searching bugzilla would be rather
tedious.

- Chuck


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

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






--
Peter Stavrinides
Albourne Partners (Cyprus) Ltd
Tel: +357 22 750652 

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. 




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



Re: More domains

2007-03-08 Thread Wayne Gemmell
K, forget about my last post, you need to put a context tag in the
server.xml file like this...

Context displayName=site name docBase= path=
workDir=work/Catalina/site name/_/Context

I don't think its a recommended method of doing things but it works...

Cheers
Wayne

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



Re: Tomcat process on windows

2007-03-08 Thread Stefan Baramov
Hernâni Cerqueira wrote:
 Hello all,

 I have a little curiosity, that may seem trivial for some of you. I
 usually do my work on linux, but sometime I work on a laptop that runs
 windows, and because i do lots of application reloads using tomcat
 manager, i usually ran out of memory, and then it comes the PermGem
 space exception. Then i have to go to task manager and kill the tomcat
 process because it wont even stop using regular ways, and restart
 again. But the strange is that sometimes i got a tomcat5 and a
 tomcat5w process using the memory, and some other times i got a javaw
 process. Can anyone tell me why this happens? It's not a annoying
 problem, is just a bit strange for me...

 Cheer's,
 Hernâni

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



Well, here is a theory:
Reloading an app leads to creating a new class loader to load all of the
application classes. The old class loader is still there it is just not
used. However, the old class loader takes space. Therefore each app
reload just create more garbage in PermGen space. Now, as far as I know
(I can be mistaken), the garbage collection of PermGen is turned off by
default. Even more, no garbage collection of PermGen is implemented in
JDK 4 and lower. This is no problem in production systems since you
don't reload your app very often. (It is however a problem for platfrom
such as OSGi). However, if you are running on JDK 5 and better you can
do this:

-XX:PermSize=64m
-XX:MaxPermSize=160m
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled


First, you increase your PermGen memory pool to 64m (not sure what is
the default but it is quite small), which will not resolve the problem,
rather postpone it . But second and most important you are enabling the
PermGen garbage collection and that should resolve your problem.

I have discovered these JVM options just recently fighting a very
similar problem with my Eclipse IDE. I think the Exadel CTO blog about
this awhile ago (not sure). These options are really deeply hidden and
not quite well known. I found the example in the NetBeans configuration
file. I am currently not working on web app so I can try it myself. But
give it a try and see what happens

Cheers,
Stefan Baramov


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



Re: Is APR worth it (for me?)

2007-03-08 Thread Peter Kennard
Hmm I woudl have thought otherwise, since after 
reading the protocol it seems specificly designed 
to support keeping connection alive.


That a sender would keep a pool of available 
connections and when a hit comes in get one 
which is already connected, and push the request 
out, and the destination looks up the servlet and 
dispatches to it (until the request is complete), 
and when complete, releases the still open 
connection so the sender and can recycles it back 
into its pool without disconnecting ie: socket 
remains open.  and there is some huristic for 
culling excess connections after heavy traffic 
may hve opened more than configured.


Anyway that is what I would do ;^

If by multiplexing you thought interleaving 
routed packets for simultaneous hits on one pipe I didn't mean that.


PK


At 02:41 3/8/2007, you wrote:

Peter Kennard wrote:
Doesn't AJP multiplex traffic, that is queued 
up requests are serialized through one 
connection that remains connected and it 
switches between servlets on the receiving end? 
and recycles the execution thread?


No multiplexing on connections.

Regards,

Rainer


At 19:19 3/7/2007, you wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rémy,

Rémy Maucherat wrote:
 The scalability improvement is twofold for AJP:
 - when running many Apache frontend servers (each with a sizeable
 number of workers), Tomcat would need a huge amount of AJP worker
 threads with the java.io connector

Makes sense. So, instead of a Java thread waiting in every single ajp
connection, you're using one native listener thread waiting on a
select(), right? It's sad that you can't do this in Java :(

 - threads will only be used for actually executing requests, thus
 making concurrency in business logic a bit more predictable (if you
 have 2000 threads, it's ok most of the time, as long as no lock gets
 contested by too many threads, in which case it's far better if you
 had only 200 threads)

Definitely. Unless I'm mistaken, Java threads on Linux are pthreads,
which are relatively heavy. Reducing them is certainly going to reduce
memory, thread counts (wrt system limits), and thread dump lengths.

 It also saves memory (no surprise). Socket polling will only be used
 for keepalive: during the processing of a request, the connector uses
 regular blocking IO.

Cool. So, it /does/ sound like something worth looking into. APR
installation looks like a snap, too, so it shouldn't be painful at all.

Thanks for the explanation, Rémy.

- -chris


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




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



Re: Is APR worth it (for me?)

2007-03-08 Thread Rainer Jung

Peter Kennard wrote:
Hmm I woudl have thought otherwise, since after reading the protocol it 
seems specificly designed to support keeping connection alive.


That a sender would keep a pool of available connections and when a 
hit comes in get one which is already connected, and push the request 
out, and the destination looks up the servlet and dispatches to it 
(until the request is complete), and when complete, releases the still 
open connection so the sender and can recycles it back into its pool 
without disconnecting ie: socket remains open.  and there is some 
huristic for culling excess connections after heavy traffic may hve 
opened more than configured.


Anyway that is what I would do ;^


And that's what it does :)

If by multiplexing you thought interleaving routed packets for 
simultaneous hits on one pipe I didn't mean that.


Yes, that's how I interpreted your question concerning multiplexing.


PK


Regards,

Rainer

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



Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrew,

Andrew Miehs wrote:
 If you need two devices load balancers to deal with your
 current load, then you already have a problem.

I was thinking from a failover standpoint, not so much a too much load
for a single piece of hardware stance. These things should be able to
handle more traffic that you can get through your pipe.

 We run our BigIPs Active/Standby - and when the one BigIP dies, the other
 takes over the 'VIPs' - virtual ips - from the other box. The one IP
 address points to a floating address which is shared by the load balancer.

That makes sense, and is more convenient than R-R DNS. My only
experience with BigIP was that they were used at an unnamed
registrar/SSL-cert provider as a contractor for about two years. The ops
folks took care of all of that, leaving us to work on the actual software.

 HA solutions work the same way, moving a floating addresses between the
 multiple boxes...

Sounds good to me.

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

iD8DBQFF8BgQ9CaO5/Lv0PARAo0qAKCsRdJwWBJxKuVYwehoYLvzIzuL3ACdGBaw
1cjg4vXG+GI3u57liSf5T1g=
=UyTV
-END PGP SIGNATURE-

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



GUI implementation with tomcat

2007-03-08 Thread Alicia Sánchez-Mora

Hi, after one week fighting with the same I decided to ask

I am implementig a web service class and a client in java, using tomcat and
axis and I have to create a GUI. When I start the application a  window has
to appear and  every time the client calls a method in the service class a
new message on the window must be displyed. The problem is that every time I
call a method in the service class and I add a new message to the List of
messages  nothing appears on the window.

I have the class Window to initialize the GUI and I call (locally) an
instance  of this class from my service class. The problem, or at least
what I think the problem is, is that every time I make a call the service
container unloads my class and nothing (related to my window) is
initiallized. The idea is to run my window only one time, when tomcat
starts. To do that I should specify somehow on the web.xml file to do this:
write a jsp class, put it somewhere and call the initialization of the
window..

Any more concrete suguestion or solutions?

Thanks in advance,

Alicia


Re: tomcat connector through cgi-bin?

2007-03-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jacob,

Jacob Rhoden wrote:
 Anyway, In case anyone is interested, I have now written a perl
 script which [acts as an HTTP proxy to Tomcat]. So if anyone needs a
 perl tomcat connector send me an email. (:

Why not post it to the list. Then it will be in the archives and we can
all point to it when someone asks for this kind of thing.

- -chris

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

iD8DBQFF8Bi29CaO5/Lv0PARAgRHAJ9Mxp/vPrr9i8feAE8kPye6u2ELEwCgkuZ9
gVYw48cJEvUMwTcSMnB8rpc=
=bLbO
-END PGP SIGNATURE-

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



performance increase - connection refused exceptions!!!

2007-03-08 Thread Leon van der Merwe
Hi guys
 
I need to know what the max is that I can set my connections to.
 
We are running the app of the server that is robust.
 
Want to up it to about maxProcessors from 75 to 500?
 
Thanks
 
Leon van der Merwe

FinSource

FinSource (Pty) Ltd
22 Leeuwen Street, Cape Town, 8001
PO Box 3149, Cape Town, 8000

Tel:  +27 (0)21 480 8600
Direct Line:  +27 (0)21 480 8710
Fax:  +27 (0)21 480 8700
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
www.finsourcegroup.com http://www.finsourcegroup.com/  

A Maitland group company

BVI   Cape Town   Dublin   Durban   Geneva  Isle of Man   Johannesburg
London   Luxembourg   Monaco   Paris 


**
This e-mail is confidential and may also be privileged.  If you are not
the intended recipient, please delete from your system and notify the
sender now; you may not use, disclose, distribute or copy it.  Anyone
who communicates with us by e-mail is taken to accept the risks in so
doing.  E-mails are subject to data corruption, delay, interception and
unauthorised amendment.  Nothing in the message is capable of or
intended to create any legally binding obligation and it is not intended
to provide legal advice.

**

 

 

 

#
This e-mail message has been scanned for Viruses and Content and cleared 
by FinSource Infrastructure Services' MailMarshal
#


Re: GUI implementation with tomcat

2007-03-08 Thread David Delbecq
En l'instant précis du 08/03/07 15:05, Alicia Sánchez-Mora s'exprimait
en ces termes:


 I have the class Window to initialize the GUI and I call (locally) an
 instance  of this class from my service class. The problem, or at least
 what I think the problem is, is that every time I make a call the service
 container unloads my class and nothing (related to my window) is
 initiallized. The idea is to run my window only one time, when tomcat
 starts. To do that I should specify somehow on the web.xml file to do
 this:
 write a jsp class, put it somewhere and call the initialization of the
 window..
Shouldn't the GUI be on the *client* side instead of the *server* side?
If you want to initialize something at webapp startup, you have 2 solutions
1) a servlet with load on startup
2) a context listener

 Any more concrete suguestion or solutions?

 Thanks in advance,

 Alicia



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



Re: Multiple Instances on one Machine

2007-03-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rahul,

Rahul wrote:
 While trying to debug that I am wondering if my way of using two
 server.xml files for this scenario correct or is there any other way?
 (A similar solution is mentioned at
 http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html
 although it's a bit legacy version.)

It won't do exactly what you are trying to do, but try reading the
RUNNING.txt that came with your Tomcat package. There's a section in
there regarding advanced configuration where you use a single install
and multiple base directories where completely separate configurations
live. So, it's slightly more complicated than just having more than one
server.xml file in your conf directory, but not by much.

- -chris

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

iD8DBQFF8BqA9CaO5/Lv0PARAqXIAKCB+0Yb2CEqIB+Rh47+kO7ejfBHQwCgo8VE
zKjICZHrXRZ1RqqD3rSuacU=
=sW6t
-END PGP SIGNATURE-

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



Re: GUI implementation with tomcat

2007-03-08 Thread Kristian Rink

Alicia;


[Alicia Sánchez-Mora [EMAIL PROTECTED] @ Thu, 8 Mar 2007
15:05:09 +0100]

 I have the class Window to initialize the GUI and I call (locally) an
 instance  of this class from my service class. The problem, or at
 least what I think the problem is, is that every time I make a call
 the service container unloads my class and nothing (related to my
 window) is initiallized. The idea is to run my window only one time,
 when tomcat starts. To do that I should specify somehow on the
 web.xml file to do this: write a jsp class, put it somewhere and call
 the initialization of the window..



honestly, the architecture of your overall application by now seems
somewhat obscure to me. What exactly do you intend to do? Is the
window supposed to display the web service calls actually supposed to
be a _desktop application_ window or rather an HTML page rendered by
some JSP? 

If you want to build a GUI, probably you will have to build something
like that:

* Web Service and related classes deployed to a tomcat application
context making use of axis and friends, and

* GUI application, built as a standalone Java application making use of
Swing(?) to render a GUI and using web service client classes to do
remote calls.

Can you be more verbose about your application architecture? :)

Cheers,
Kristian


-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality. (Hundertwasser)

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



Re: performance increase - connection refused exceptions!!!

2007-03-08 Thread David Delbecq
I recommend you play with jarkarta JMeter to have informations about
your response time depending on load, simulteanous request served and so
on. It's difficult to tell you the behaviour of tomcat with
maxprocessors at 500, this mainly depend on the os, the server, the
bandwidth and the response time of the webapplication running inside
tomcat. All tomcat does is dispatch incoming request to webapplication
after a small amount of preprocessing.

Increasing the maxProcessor could lead to more context switching by os
(which takes time) which will increase the response time for a request,
which mean a processor will be used for more time, which mean (if you
assume stable incoming requests rate) more processors needed at the same
time which will need more thread, which will stabilize at some point
overall decreasing your quality of service. On the other hand, reducing
processors could lead to people waiting longer on the processors queue,
reducing response time and reducing quality of service. There is an
optiumum you need to find experimentally :)


En l'instant précis du 08/03/07 15:00, Leon van der Merwe s'exprimait en
ces termes:
 Hi guys
  
 I need to know what the max is that I can set my connections to.
  
 We are running the app of the server that is robust.
  
 Want to up it to about maxProcessors from 75 to 500?
  
 Thanks
  
 Leon van der Merwe

 FinSource

 FinSource (Pty) Ltd
 22 Leeuwen Street, Cape Town, 8001
 PO Box 3149, Cape Town, 8000

 Tel:  +27 (0)21 480 8600
 Direct Line:  +27 (0)21 480 8710
 Fax:  +27 (0)21 480 8700
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] 
 www.finsourcegroup.com http://www.finsourcegroup.com/  

 A Maitland group company

 BVI   Cape Town   Dublin   Durban   Geneva  Isle of Man   Johannesburg
 London   Luxembourg   Monaco   Paris 

 
 **
 This e-mail is confidential and may also be privileged.  If you are not
 the intended recipient, please delete from your system and notify the
 sender now; you may not use, disclose, distribute or copy it.  Anyone
 who communicates with us by e-mail is taken to accept the risks in so
 doing.  E-mails are subject to data corruption, delay, interception and
 unauthorised amendment.  Nothing in the message is capable of or
 intended to create any legally binding obligation and it is not intended
 to provide legal advice.
 
 **

  

  

  

 #
 This e-mail message has been scanned for Viruses and Content and cleared 
 by FinSource Infrastructure Services' MailMarshal
 #

   


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



Re: Possible JSTL/EL bug in 6.0.10

2007-03-08 Thread Gerald Holl

David Delbecq wrote:

En l'instant précis du 07/03/07 14:43, Gerald Holl s'exprimait en ces
termes:

David Delbecq wrote:

En l'instant précis du 07/03/07 12:04, Gerald Holl s'exprimait en ces
termes:

David Delbecq wrote:

Please provide the full jsp please.
Side note: JSF and non-JSF tags do not mix very well.

  c:forEach items=#{handler.fields} var=it
h:inputText id=fieldPercent value=#{it.percentValue}/
h:message for=fieldPercent/
  /c:forEach

Sorry, should have seen it in your first message:
items=#{handler.fields} -- this expression is not evaluated by
tomcat. In jsp 2.0, expression must have the form
${handler.fields}

According to [1] the #{} should work with the new unified EL.
If I try your hint I can't view the page anymore:
Error: According to TLD or attribute directive in file, attribute
items does not accept any expressions.


[1] unified EL refers to jsp 2.1 specifications, i was referring to 2.0
specifications.
To ensure you are using 2.1 specifications, check mainly that
- your taglib contains jsp-version2.1/jsp-version


I extracted the jstl-1.2jar file and found many .tld files. Nearly all 
of them contain jsp-version1.2/jsp-version and not 2.1 as you said.



- your webapplication is properly configured to use the webapp2.5
specifications. The root element of web.xml should be like
web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;


The web.xml file is valid against the 2.5 spec, I verified it with XMLSpy.

cheers,
Gerald

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



RE: More domains

2007-03-08 Thread Caldarale, Charles R
 From: Wayne Gemmell [mailto:[EMAIL PROTECTED] 
 Subject: Re: More domains
 
 K, forget about my last post, you need to put a context tag in the
 server.xml file like this...
 
 Context displayName=site name docBase= path=
 workDir=work/Catalina/site name/_/Context
 
 I don't think its a recommended method of doing things but it works...

If it actually does work, it's purely an accident.  A docBase of  is
never correct, under any circumstanaces.  Also, putting Context
elements in server.xml is strongly discouraged, since it requires a
restart of Tomcat to change any attributes.  Read the doc and look at
the example webapp deployments that come with Tomcat.

 - Chuck


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

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



Re: Possible JSTL/EL bug in 6.0.10

2007-03-08 Thread Rémy Maucherat

On 3/8/07, Gerald Holl [EMAIL PROTECTED] wrote:

I extracted the jstl-1.2jar file and found many .tld files. Nearly all
of them contain jsp-version1.2/jsp-version and not 2.1 as you said.


Only tags version 2.1 will be passed deferred expressions. The .tlds
need to have a declaration like this one:
taglib xmlns=http://java.sun.com/xml/ns/javaee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd;
   version=2.1
(of course, the important part is version=2.1)

I offered to look into your war if you want me to. You can send it to
me privately (make sure it contains everything, JARs etc).

Rémy

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



RE: Multiple Instances on one Machine

2007-03-08 Thread Caldarale, Charles R
 From: Rahul [mailto:[EMAIL PROTECTED] 
 Subject: Multiple Instances on one Machine
 
 I have two webapps a and b with their respective web.xml
 files in $CATALINA_HOME\webapps\WEB-INF.

That's incorrect right there, assuming webapps is declared as the
appBase for your Host.  Sounds like yet another case of attempting to
equate appBase and docBase when in fact they must never be the same
location.

 I have two server.xml files (server-a.xml and server-b.xml),
 one for each webapp with different server and connector ports. 

Do the Host elements in each of your server-*.xml files declare the
same appBase?  If so, you're going to get both apps deployed in both
Tomcat instances.

 The $CATALINA_BASE/conf/Catalina/localhost directory contains 
 a.xml and b.xml files with Context path=/a docBase=a 
 debug=0 reloadable=true/ and Context path=/b 
 docBase=b debug=0 reloadable=true/ entries respectively. 

The path attribute is not allowed in this situation; it is instead
derived from the name of the .xml file.

 While trying to debug that I am wondering if my way of using 
 two server.xml files for this scenario correct or is there 
 any other way?

As Chris pointed out, read RUNNING.txt for the correct mechanism.  Your
current approach will have lots of file collisions between the two
instances, causing no end of grief.

 (A similar solution is mentioned at 
 http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html

Don't use such an ancient set of instructions - it's inappropriate for
version 5.5.  Stick with the doc for the level you've got.

 - Chuck


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

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



Re: GUI implementation with tomcat

2007-03-08 Thread Alicia Sánchez-Mora

Hi Kristian,

here I send you some short pieces of my code to make the arquitecture of my
application clearer :)

This is the class to initilize the window

public class ListItems  {
 List listOptions;
 private static ListItems instance;
 private Frame f;


 public static ListItems getInstance () {
 if(instance == null) {
instance = new ListItems ();
 }
 return instance;
  }
public  void initWindow(int i) {

if (i== 0){
 f = new Frame();
 listOptions = new List();
 f.add(listOptions);
listOptions.addItem(reqConn);
 f.pack();
 f.setVisible(true);}
if (i!=0){

listOptions.addItem(reqConn2);
f.add(listOptions);
}


 }


This is the web services class:

*public* *class* SDMInterfaceImpl  *extends* Thread *implements*SDMInterface{

public ListItems list = ListItems ();

*public* SDMInterfaceImpl() {   }

** *public* *void* init(){
*
*list.getInstance();
}

*public* String reqConn(String src, String dst){

 String result = ;
 list.initWindow(0);
   *return* result;
}

*public* String reqConn2(String src, String dst){

 String result = ;
 list.initWindow(1);
   *return* result;
}

The client will call the methods reqConn and reqConn2 and on the window
should appear these 2 messages:
reqConn
reqConn2

Is it clearer now? Do not look at the class, it is a simplification to show
you how my application tries to work

regards,

Alicia

On 3/8/07, Kristian Rink [EMAIL PROTECTED] wrote:



Alicia;


[Alicia Sánchez-Mora [EMAIL PROTECTED] @ Thu, 8 Mar 2007
15:05:09 +0100]

 I have the class Window to initialize the GUI and I call (locally) an
 instance  of this class from my service class. The problem, or at
 least what I think the problem is, is that every time I make a call
 the service container unloads my class and nothing (related to my
 window) is initiallized. The idea is to run my window only one time,
 when tomcat starts. To do that I should specify somehow on the
 web.xml file to do this: write a jsp class, put it somewhere and call
 the initialization of the window..



honestly, the architecture of your overall application by now seems
somewhat obscure to me. What exactly do you intend to do? Is the
window supposed to display the web service calls actually supposed to
be a _desktop application_ window or rather an HTML page rendered by
some JSP?

If you want to build a GUI, probably you will have to build something
like that:

* Web Service and related classes deployed to a tomcat application
context making use of axis and friends, and

* GUI application, built as a standalone Java application making use of
Swing(?) to render a GUI and using web service client classes to do
remote calls.

Can you be more verbose about your application architecture? :)

Cheers,
Kristian


--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality. (Hundertwasser)

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




RE: Tomcat process on windows

2007-03-08 Thread Caldarale, Charles R
 From: Stefan Baramov [mailto:[EMAIL PROTECTED] 
 Subject: Re: Tomcat process on windows
 
 Reloading an app leads to creating a new class loader to load 
 all of the application classes. The old class loader is still
 there it is just not used.

The old class loader will be discarded if the app is implemented
properly.  Read the FAQ:
http://tomcat.apache.org/faq/memory.html
and especially this article:
http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?
pageId=2669

 Now, as far as I know (I can be mistaken), the garbage
 collection of PermGen is turned off by default.

You are mistaken.  It's never been off by default in any release of a
Sun JVM since at least 1.2.

 Even more, no garbage collection of PermGen is implemented in
 JDK 4 and lower.

That is totally incorrect.  (BTW, there was no PermGen until JRE 1.4 was
released, other than a prototype 1.3 HotSpot that was not generally
available.)

In a HotSpot-based JVM (Sun 1.4 and above), PermGen is only collected
during a full GC, which is avoided as much as possible.  However, a full
GC is always done before returning an OOME for a potentially satisfiable
allocation request.

 -XX:PermSize=64m
 -XX:MaxPermSize=160m

Better to make PermSize and MaxPermSize the same, and 160m is probably
too small for any serious work.  There are lots of temporary classes and
interned String objects created by most app servers, and an
insufficiently sized PermGen will result in more frequent full GCs and
associated application pauses.

 -XX:+CMSClassUnloadingEnabled
 -XX:+CMSPermGenSweepingEnabled

The above only apply when Concurrent Mark-Sweep garbage collection is
enabled, which it is not by default.

This is a good introduction to HotSpot GC:
http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html

 - Chuck


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

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



Re: GUI implementation with tomcat

2007-03-08 Thread Kristian Rink

Alicia;

first off; thanks for your explanation and pointing things out a little
more. :) I think I slightly understand the structure of your
application but honestly I doubt it will work out this way:


[Alicia Sánchez-Mora [EMAIL PROTECTED] @ Thu, 8 Mar 2007
16:24:33 +0100]

 public class ListItems  {
   List listOptions;
   private static ListItems instance;
   private Frame f;

This is java.awt.Frame, isn't it?

In my opinion (list people feel free to correct me if I'm all too wrong
here), the issue with your application is that you try to instantiate
and access the java.awt.Frame object from within code running on your
server but you actually want it to appear and work on your client. This
is not going to work out. To do so, you need to have the client code
(containing the Frame stuff) run locally on the client - the fact that
some window does actually appear is likely due to that server and
client runs on the same machine in your setup.

To achieve the desired effect, you should really try separating the web
service and the window connecting to it into two different, separate
applications (a webapp hosting the service, and a desktop application
or an applet running the window/frame). Then, you need to implement
logic in your client to remotely call the web service and possibly get
some meaningful data from it. 

Don't know if this really is a helpful answer, feel free to ask if you
need more assistance. :)

Cheers,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality. (Hundertwasser)

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



Re: Cannot create resource instance

2007-03-08 Thread Natasha N Wright
Thanks, but i followed the examples on the tomcat site.  I have removed 
the factory declaration from server.xml but this still doesnt help I'm 
still getting a Cannot create resource instance error, i have pasted the 
stack dump to offer more clarity.


Cheers,

Natasha
STACK DUMP
---
Error naming exception:
javax.naming.NamingException: Cannot create resource instance
at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:142)
at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

at org.apache.naming.NamingContext.lookup(NamingContext.java:787)
at org.apache.naming.NamingContext.lookup(NamingContext.java:134)
at org.apache.naming.NamingContext.lookup(NamingContext.java:775)
at org.apache.naming.NamingContext.lookup(NamingContext.java:147)
at servlet.openConnection(Unknown Source)
at servlet.init(Unknown Source)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:163)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(Thread.java:539)
Cannot create resource instance









David Smith wrote:


Then I would point you to

http://tomcat.apache.org/tomcat-4.1-doc/jndi-resources-howto.html
and
http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html

for some excellent information on setting up this stuff.  I don't think 
you have to spec a resource factory as the built-in one for datasources 
is a slightly refactored (package rename only) version of DBCP.  Also, 
the JDBC driver needs to be stored in common/lib of the tomcat 
installation.  Lastly, unless you are directly using the commons-dbcp 
package or the commons-pool package in your code, the 
commons-dbcp-xx.xx.jar and commons-pool.jar are not necessary in WEB-INF.


--David

Natasha N Wright wrote:


I am using Tomcat version 4. with JDK 1.4 (quite old i know!)

David Smith wrote:

Before we can offer any relevant advice, please let us know which 
version of tomcat you are working with.  There are configuration 
differences between 5.0.x and 5.5.x.


--David

Natasha N Wright wrote:


Hi,

I am trying to create a servlet which connects to a oracle 
database.  My servlet is called from an HTML form.  When it is 

RE: Cannot create resource instance

2007-03-08 Thread Raghupathy, Gurumoorthy
Hi,
are you sure that you have put the jdbc drivers for oracle in
the common/lib directory of tomcat  somehitng tells me that there is
an issue with the JDBC driver jars   but I may be totally wrong 



Regards
Guru
 

---
Gurumoorthy Raghupathy
Email  :  [EMAIL PROTECTED]

---
-Original Message-
From: Natasha N Wright [mailto:[EMAIL PROTECTED] 
Sent: 08 March 2007 15:39
To: Tomcat Users List
Subject: Re: Cannot create resource instance

Thanks, but i followed the examples on the tomcat site.  I have removed 
the factory declaration from server.xml but this still doesnt help I'm 
still getting a Cannot create resource instance error, i have pasted the

stack dump to offer more clarity.

Cheers,

Natasha
STACK DUMP
---
Error naming exception:
javax.naming.NamingException: Cannot create resource instance
 at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact
ory.java:142)
 at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:787)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:134)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:775)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:147)
 at servlet.openConnection(Unknown Source)
 at servlet.init(Unknown Source)
 at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:888)
 at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
21)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:163)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:144)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:235
8)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:133)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:118)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:594)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:116)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:594)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:127)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
 at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
 at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
 at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
 at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
675)
 at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
 at java.lang.Thread.run(Thread.java:539)
Cannot create resource instance









David Smith wrote:

 Then I would point you to
 
 http://tomcat.apache.org/tomcat-4.1-doc/jndi-resources-howto.html
 and

http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.h
tml
 
 for some excellent information on setting up this stuff.  I don't
think 
 you have to spec a resource factory as the built-in one for
datasources 
 is a slightly refactored (package rename only) version of DBCP.  Also,

 the JDBC driver needs 

Re: Possible JSTL/EL bug in 6.0.10

2007-03-08 Thread Gerald Holl

Rémy Maucherat wrote:

On 3/8/07, Gerald Holl [EMAIL PROTECTED] wrote:

I extracted the jstl-1.2jar file and found many .tld files. Nearly all
of them contain jsp-version1.2/jsp-version and not 2.1 as you said.


Only tags version 2.1 will be passed deferred expressions. The .tlds
need to have a declaration like this one:
taglib xmlns=http://java.sun.com/xml/ns/javaee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd;
   version=2.1
(of course, the important part is version=2.1)


Ok, the c.tld file containts the above declaration.


I offered to look into your war if you want me to. You can send it to
me privately (make sure it contains everything, JARs etc).


Well, I think I can't give you access to all the details of our (secret) 
project. Anyway, thanks for the offer.


Gerald

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



Re: Cannot create resource instance

2007-03-08 Thread Natasha N Wright

Raghupathy, Gurumoorthy wrote:
My javax.servlet classes  oracle drivers were in a file called 
classes12.zip

I created a jar of this  placed it into my WEB-INF/lib as classes.jar.
classes.zip is the file listed in my classpath.
I suspect that this is the issue too - is there a naming convention here 
i'm not adhering to?

Thanks



Hi,
are you sure that you have put the jdbc drivers for oracle in
the common/lib directory of tomcat  somehitng tells me that there is
an issue with the JDBC driver jars   but I may be totally wrong 



Regards
Guru
 


---
Gurumoorthy Raghupathy
Email  :  [EMAIL PROTECTED]

---
-Original Message-
From: Natasha N Wright [mailto:[EMAIL PROTECTED] 
Sent: 08 March 2007 15:39

To: Tomcat Users List
Subject: Re: Cannot create resource instance

Thanks, but i followed the examples on the tomcat site.  I have removed 
the factory declaration from server.xml but this still doesnt help I'm 
still getting a Cannot create resource instance error, i have pasted the


stack dump to offer more clarity.

Cheers,

Natasha
STACK DUMP
---
Error naming exception:
javax.naming.NamingException: Cannot create resource instance
 at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact

ory.java:142)
 at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

 at
org.apache.naming.NamingContext.lookup(NamingContext.java:787)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:134)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:775)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:147)
 at servlet.openConnection(Unknown Source)
 at servlet.init(Unknown Source)
 at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav

a:888)
 at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6

21)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv

e.java:163)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4

33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv

e.java:144)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4

33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:235

8)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java

:133)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa

lve.java:118)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:594)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java

:116)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:594)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4

33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.

java:127)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4

33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
 at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
 at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
 at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
 at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:

675)
 at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool

.java:683)
 at java.lang.Thread.run(Thread.java:539)
Cannot create resource instance









David Smith wrote:



Then I would point you to


Re: Cannot create resource instance

2007-03-08 Thread Natasha N Wright
My javax.servlet classes  oracle drivers were in a file called 
classes12.zip

I created a jar of this  placed it into my WEB-INF/lib as classes.jar.
classes.zip is the file listed in my classpath.
I suspect that this is the issue too - is there a naming convention here 
i'm not adhering to?

Thanks


Raghupathy, Gurumoorthy wrote:


Hi,
are you sure that you have put the jdbc drivers for oracle in
the common/lib directory of tomcat  somehitng tells me that there is
an issue with the JDBC driver jars   but I may be totally wrong 



Regards
Guru
 


---
Gurumoorthy Raghupathy
Email  :  [EMAIL PROTECTED]

---
-Original Message-
From: Natasha N Wright [mailto:[EMAIL PROTECTED] 
Sent: 08 March 2007 15:39

To: Tomcat Users List
Subject: Re: Cannot create resource instance

Thanks, but i followed the examples on the tomcat site.  I have removed 
the factory declaration from server.xml but this still doesnt help I'm 
still getting a Cannot create resource instance error, i have pasted the


stack dump to offer more clarity.

Cheers,

Natasha
STACK DUMP
---
Error naming exception:
javax.naming.NamingException: Cannot create resource instance
 at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact

ory.java:142)
 at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

 at
org.apache.naming.NamingContext.lookup(NamingContext.java:787)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:134)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:775)
 at
org.apache.naming.NamingContext.lookup(NamingContext.java:147)
 at servlet.openConnection(Unknown Source)
 at servlet.init(Unknown Source)
 at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav

a:888)
 at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6

21)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv

e.java:163)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4

33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv

e.java:144)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4

33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:235

8)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java

:133)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa

lve.java:118)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:594)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java

:116)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:594)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4

33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.

java:127)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i

nvokeNext(StandardPipeline.java:596)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4

33)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
 at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
 at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
 at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
 at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:

675)
 at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool

.java:683)
 at java.lang.Thread.run(Thread.java:539)
Cannot create resource instance









David Smith wrote:



Then I would point you to


Re: Cannot create resource instance

2007-03-08 Thread David Smith
The JDBC driver has to be in common/lib of the tomcat installation to be
available to tomcat as well as your webapp.  WEB-INF/lib just won't work.

--David

Natasha N Wright wrote:
 Raghupathy, Gurumoorthy wrote:
 My javax.servlet classes  oracle drivers were in a file called
 classes12.zip
 I created a jar of this  placed it into my WEB-INF/lib as classes.jar.
 classes.zip is the file listed in my classpath.
 I suspect that this is the issue too - is there a naming convention
 here i'm not adhering to?
 Thanks


 Hi,
 are you sure that you have put the jdbc drivers for oracle in
 the common/lib directory of tomcat  somehitng tells me that there is
 an issue with the JDBC driver jars   but I may be totally wrong 



 Regards
 Guru
  
 
 ---
 Gurumoorthy Raghupathy
 Email  :  [EMAIL PROTECTED]
 
 ---
 -Original Message-
 From: Natasha N Wright [mailto:[EMAIL PROTECTED] Sent: 08 March
 2007 15:39
 To: Tomcat Users List
 Subject: Re: Cannot create resource instance

 Thanks, but i followed the examples on the tomcat site.  I have
 removed the factory declaration from server.xml but this still doesnt
 help I'm still getting a Cannot create resource instance error, i
 have pasted the

 stack dump to offer more clarity.

 Cheers,

 Natasha
 STACK DUMP
 ---
 Error naming exception:
 javax.naming.NamingException: Cannot create resource instance
  at
 org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact
 ory.java:142)
  at
 javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
  at
 org.apache.naming.NamingContext.lookup(NamingContext.java:787)
  at
 org.apache.naming.NamingContext.lookup(NamingContext.java:134)
  at
 org.apache.naming.NamingContext.lookup(NamingContext.java:775)
  at
 org.apache.naming.NamingContext.lookup(NamingContext.java:147)
  at servlet.openConnection(Unknown Source)
  at servlet.init(Unknown Source)
  at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
 a:888)
  at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
 21)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
 e.java:163)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:596)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 33)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
 e.java:144)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:596)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 33)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:235
 8)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
 :133)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:596)
  at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
 lve.java:118)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:594)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
 :116)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:594)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 33)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
 java:127)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
 nvokeNext(StandardPipeline.java:596)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
 33)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
  at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
  at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
  at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
  at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
  at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
 675)
  at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
  at
 

RE: Cannot create resource instance

2007-03-08 Thread Caldarale, Charles R
 From: Natasha N Wright [mailto:[EMAIL PROTECTED] 
 Subject: Re: Cannot create resource instance
 
 classes.zip is the file listed in my classpath.

Do not add any extra .zip or .jar files to the Tomcat classpath - that
is guaranteed to cause problems with the classloaders.

 - Chuck


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

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



Re: Installing Apache Portable Runtime on Linux

2007-03-08 Thread Orlando Reis

Download the latest apache source.


APR compiling
# Build and install apr 1.2
cd srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make
make install

# Build and install apr-util 1.2
cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/
--with-apr=/usr/local/apr-httpd/
make
make install
Then
[EMAIL PROTECTED] native]# ./configure --with-apr=/usr/local/apr-httpd

I usually build everything.

Orlando



On 3/7/07, DM [EMAIL PROTECTED] wrote:


Hi,

I'm tring to install the Apache Portable Runtime on Linux as per the
instructions here:

http://tomcat.apache.org/tomcat-6.0-doc/apr.html

When I run configure I get the following output

[EMAIL PROTECTED] native]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.8
checking for chosen layout... tcnative
checking for APR... no
configure: error: APR could not be located. Please use the --with-apr
option.


I think the problem might be that I have version 0.9.4 of the apr-devel
package installed, because the installation instructions seem to indicate
that I need version 1.2+. I tried finding a more up-to-date version of
this package for Red Hat Enterprise Linux 4 (the system I'm using), but
failed.

Can someone tell me whether it is the version of the apr-devel package
that is causing the install to fail, and if so, where I might get a more
up-to-date version?

Many Thanks,
DM



___
The all-new Yahoo! Mail goes wherever you go - free your email address
from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

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




apache22 + mod_jk + tomcat55 on FreeBSD - configuration problem (maybe ?)

2007-03-08 Thread Mario Pavlov
Hello guys
I'm trying to set up apache to redirect requests to tomcat on my 
FreeBSD-6.2-STABLE
but I can't get this to work
please help me :)
here is what I do:
so first I've installed the latest ports
apache-2.2.4
mod_jk-ap2-1.2.21,1
tomcat-5.5.20

and I've edited the config files to look like this:
for apache httpd and mod_jk
/usr/local/etc/apache22/httpd.conf
[CODE]
ServerRoot /usr/local

Listen 80

LoadModule authn_file_module libexec/apache22/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so
LoadModule authn_default_module libexec/apache22/mod_authn_default.so
LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so
LoadModule authz_default_module libexec/apache22/mod_authz_default.so
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
LoadModule file_cache_module libexec/apache22/mod_file_cache.so
LoadModule cache_module libexec/apache22/mod_cache.so
LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so
LoadModule include_module libexec/apache22/mod_include.so
LoadModule filter_module libexec/apache22/mod_filter.so
LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
LoadModule deflate_module libexec/apache22/mod_deflate.so
LoadModule log_config_module libexec/apache22/mod_log_config.so
LoadModule logio_module libexec/apache22/mod_logio.so
LoadModule env_module libexec/apache22/mod_env.so
LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so
LoadModule expires_module libexec/apache22/mod_expires.so
LoadModule headers_module libexec/apache22/mod_headers.so
LoadModule usertrack_module libexec/apache22/mod_usertrack.so
LoadModule unique_id_module libexec/apache22/mod_unique_id.so
LoadModule setenvif_module libexec/apache22/mod_setenvif.so
LoadModule version_module libexec/apache22/mod_version.so
LoadModule ssl_module libexec/apache22/mod_ssl.so
LoadModule mime_module libexec/apache22/mod_mime.so
LoadModule dav_module libexec/apache22/mod_dav.so
LoadModule status_module libexec/apache22/mod_status.so
LoadModule autoindex_module libexec/apache22/mod_autoindex.so
LoadModule asis_module libexec/apache22/mod_asis.so
LoadModule info_module libexec/apache22/mod_info.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache22/mod_negotiation.so
LoadModule dir_module libexec/apache22/mod_dir.so
LoadModule imagemap_module libexec/apache22/mod_imagemap.so
LoadModule actions_module libexec/apache22/mod_actions.so
LoadModule speling_module libexec/apache22/mod_speling.so
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule php5_modulelibexec/apache22/libphp5.so
LoadModule jk_module  libexec/apache22/mod_jk.so

IfModule !mpm_netware_module
User www
Group www
/IfModule

ServerAdmin [EMAIL PROTECTED]

ServerName 85.11.148.165:80

DocumentRoot /usr/local/www/apache22/data

Directory /
AllowOverride None
Order deny,allow
Deny from all
/Directory

Directory /usr/local/www/apache22/data
Options Indexes FollowSymLinks

AllowOverride None

Order allow,deny
Allow from all

/Directory

IfModule dir_module
DirectoryIndex index.html index.php
/IfModule

FilesMatch ^\.ht
Order allow,deny
Deny from all
Satisfy All
/FilesMatch

ErrorLog /var/log/httpd-error.log

LogLevel warn

IfModule log_config_module
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ 
combined
LogFormat %h %l %u %t \%r\ %s %b common

IfModule logio_module
  LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ 
%I %O combinedio
/IfModule

CustomLog /var/log/httpd-access.log combined
/IfModule

IfModule alias_module
ScriptAlias /cgi-bin/ /usr/local/www/apache22/cgi-bin/
/IfModule

IfModule cgid_module
/IfModule

Directory /usr/local/www/apache22/cgi-bin
AllowOverride None
Options None
Order allow,deny
Allow from all
/Directory

DefaultType text/plain

IfModule mime_module
TypesConfig etc/apache22/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
/IfModule

Include etc/apache22/extra/httpd-autoindex.conf
Include etc/apache22/extra/httpd-userdir.conf
Include etc/apache22/extra/mod_jk.conf

IfModule ssl_module

tomcat 5.5 wants to shut down on its own

2007-03-08 Thread tk-2506

When the following exceptions occurs (from the tomcat log, and for which
tomcat doesn't include stack 
traces), tomcat says it's shutting down, although it never does. Any idea:
1) Why these exceptions?
2) Failed to restart: What is it trying to restart?
3) Why tomcat wants to shut down?
4) What to do about them? I don't believe we are throwing these exceptions
out to tomcat, as we are
catching all Throwables.

It is true that we have various hosts around the cluster in the application,
which may go up and down.
Happens with any version up to 5.5.20.

11:16:54 Info [Tomcat]: Server startup in 50896 ms
13:20:52 Warning [Tomcat]: Failed to restart: java.io.IOException: Failed to
get a RMI stub: javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: ; nested
exception is: 
java.net.ConnectException: Connection refused: connect]
13:20:53 Warning [Tomcat]: Failed to call the method
close():java.rmi.ConnectException: Connection refused to host: 10.10.101.27;
nested exception is: 
java.net.ConnectException: Connection refused: connect
13:20:53 Warning [Tomcat]: Failed to check connection:
java.net.ConnectException: Connection refused: connect
13:20:53 Warning [Tomcat]: stopping

tia


-- 
View this message in context: 
http://www.nabble.com/tomcat-5.5-wants-to-shut-down-on-its-own-tf3371375.html#a9381355
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: apache22 + mod_jk + tomcat55 on FreeBSD - configuration problem (maybe ?)

2007-03-08 Thread Rainer Jung

JkMount works with respect to URLs, not file system pathes:

Use

JkMount /jsp-examples/* damnjk

instead of

JkMount /usr/local/tomcat5.5/webapps/jsp-examples/* damnjk

There might be further config bugs after fixing this one :)

Regards,

Rainer

Mario Pavlov wrote:

Hello guys
I'm trying to set up apache to redirect requests to tomcat on my 
FreeBSD-6.2-STABLE
but I can't get this to work
please help me :)
here is what I do:
so first I've installed the latest ports
apache-2.2.4
mod_jk-ap2-1.2.21,1
tomcat-5.5.20

and I've edited the config files to look like this:
for apache httpd and mod_jk
/usr/local/etc/apache22/httpd.conf
[CODE]
ServerRoot /usr/local

Listen 80

LoadModule authn_file_module libexec/apache22/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so
LoadModule authn_default_module libexec/apache22/mod_authn_default.so
LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so
LoadModule authz_default_module libexec/apache22/mod_authz_default.so
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
LoadModule file_cache_module libexec/apache22/mod_file_cache.so
LoadModule cache_module libexec/apache22/mod_cache.so
LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so
LoadModule include_module libexec/apache22/mod_include.so
LoadModule filter_module libexec/apache22/mod_filter.so
LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
LoadModule deflate_module libexec/apache22/mod_deflate.so
LoadModule log_config_module libexec/apache22/mod_log_config.so
LoadModule logio_module libexec/apache22/mod_logio.so
LoadModule env_module libexec/apache22/mod_env.so
LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so
LoadModule expires_module libexec/apache22/mod_expires.so
LoadModule headers_module libexec/apache22/mod_headers.so
LoadModule usertrack_module libexec/apache22/mod_usertrack.so
LoadModule unique_id_module libexec/apache22/mod_unique_id.so
LoadModule setenvif_module libexec/apache22/mod_setenvif.so
LoadModule version_module libexec/apache22/mod_version.so
LoadModule ssl_module libexec/apache22/mod_ssl.so
LoadModule mime_module libexec/apache22/mod_mime.so
LoadModule dav_module libexec/apache22/mod_dav.so
LoadModule status_module libexec/apache22/mod_status.so
LoadModule autoindex_module libexec/apache22/mod_autoindex.so
LoadModule asis_module libexec/apache22/mod_asis.so
LoadModule info_module libexec/apache22/mod_info.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache22/mod_negotiation.so
LoadModule dir_module libexec/apache22/mod_dir.so
LoadModule imagemap_module libexec/apache22/mod_imagemap.so
LoadModule actions_module libexec/apache22/mod_actions.so
LoadModule speling_module libexec/apache22/mod_speling.so
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule php5_modulelibexec/apache22/libphp5.so
LoadModule jk_module  libexec/apache22/mod_jk.so

IfModule !mpm_netware_module
User www
Group www
/IfModule

ServerAdmin [EMAIL PROTECTED]

ServerName 85.11.148.165:80

DocumentRoot /usr/local/www/apache22/data

Directory /
AllowOverride None
Order deny,allow
Deny from all
/Directory

Directory /usr/local/www/apache22/data
Options Indexes FollowSymLinks

AllowOverride None

Order allow,deny
Allow from all

/Directory

IfModule dir_module
DirectoryIndex index.html index.php
/IfModule

FilesMatch ^\.ht
Order allow,deny
Deny from all
Satisfy All
/FilesMatch

ErrorLog /var/log/httpd-error.log

LogLevel warn

IfModule log_config_module
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ 
combined
LogFormat %h %l %u %t \%r\ %s %b common

IfModule logio_module
  LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ %I 
%O combinedio
/IfModule

CustomLog /var/log/httpd-access.log combined
/IfModule

IfModule alias_module
ScriptAlias /cgi-bin/ /usr/local/www/apache22/cgi-bin/
/IfModule

IfModule cgid_module
/IfModule

Directory /usr/local/www/apache22/cgi-bin
AllowOverride None
Options None
Order allow,deny
Allow from all
/Directory

DefaultType text/plain

IfModule mime_module
   

Re: apache22 + mod_jk + tomcat55 on FreeBSD - configuration problem (maybe ?)

2007-03-08 Thread Joe Riopel

On 3/8/07, Rainer Jung [EMAIL PROTECTED] wrote:

Mario Pavlov wrote:
 and I've edited the config files to look like this:
 for apache httpd and mod_jk
 /usr/local/etc/apache22/httpd.conf
 [CODE]
 ServerRoot /usr/local


Is your httpd working at all? I am not 100% sure but the server root
doesn't seem right to me, when looking at the paths you specified
above. I would think your ServerRoot would be set to
/usr/local/etc/apache22?

http://httpd.apache.org/docs/2.0/mod/core.html#serverroot

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



Re: Re: apache22 + mod_jk + tomcat55 on FreeBSD - configuration problem (maybe ?)

2007-03-08 Thread Mario Pavlov
This worked :)
thank you very much man! :) 

 JkMount works with respect to URLs, not file system pathes:
 
 Use
 
  JkMount /jsp-examples/* damnjk
 
 instead of
 
  JkMount /usr/local/tomcat5.5/webapps/jsp-examples/* damnjk
 
 There might be further config bugs after fixing this one :)
 
 Regards,
 
 Rainer
 
 Mario Pavlov wrote:
  Hello guys
  I'm trying to set up apache to redirect requests to tomcat on my 
  FreeBSD-6.2-STABLE
  but I can't get this to work
  please help me :)
  here is what I do:
  so first I've installed the latest ports
  apache-2.2.4
  mod_jk-ap2-1.2.21,1
  tomcat-5.5.20
  
  and I've edited the config files to look like this:
  for apache httpd and mod_jk
  /usr/local/etc/apache22/httpd.conf
  [CODE]
  ServerRoot /usr/local
  
  Listen 80
  
  LoadModule authn_file_module libexec/apache22/mod_authn_file.so
  LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so
  LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so
  LoadModule authn_default_module libexec/apache22/mod_authn_default.so
  LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so
  LoadModule authz_host_module libexec/apache22/mod_authz_host.so
  LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so
  LoadModule authz_user_module libexec/apache22/mod_authz_user.so
  LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so
  LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so
  LoadModule authz_default_module libexec/apache22/mod_authz_default.so
  LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
  LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
  LoadModule file_cache_module libexec/apache22/mod_file_cache.so
  LoadModule cache_module libexec/apache22/mod_cache.so
  LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so
  LoadModule include_module libexec/apache22/mod_include.so
  LoadModule filter_module libexec/apache22/mod_filter.so
  LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
  LoadModule deflate_module libexec/apache22/mod_deflate.so
  LoadModule log_config_module libexec/apache22/mod_log_config.so
  LoadModule logio_module libexec/apache22/mod_logio.so
  LoadModule env_module libexec/apache22/mod_env.so
  LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
  LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so
  LoadModule expires_module libexec/apache22/mod_expires.so
  LoadModule headers_module libexec/apache22/mod_headers.so
  LoadModule usertrack_module libexec/apache22/mod_usertrack.so
  LoadModule unique_id_module libexec/apache22/mod_unique_id.so
  LoadModule setenvif_module libexec/apache22/mod_setenvif.so
  LoadModule version_module libexec/apache22/mod_version.so
  LoadModule ssl_module libexec/apache22/mod_ssl.so
  LoadModule mime_module libexec/apache22/mod_mime.so
  LoadModule dav_module libexec/apache22/mod_dav.so
  LoadModule status_module libexec/apache22/mod_status.so
  LoadModule autoindex_module libexec/apache22/mod_autoindex.so
  LoadModule asis_module libexec/apache22/mod_asis.so
  LoadModule info_module libexec/apache22/mod_info.so
  LoadModule cgi_module libexec/apache22/mod_cgi.so
  LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
  LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
  LoadModule negotiation_module libexec/apache22/mod_negotiation.so
  LoadModule dir_module libexec/apache22/mod_dir.so
  LoadModule imagemap_module libexec/apache22/mod_imagemap.so
  LoadModule actions_module libexec/apache22/mod_actions.so
  LoadModule speling_module libexec/apache22/mod_speling.so
  LoadModule userdir_module libexec/apache22/mod_userdir.so
  LoadModule alias_module libexec/apache22/mod_alias.so
  LoadModule rewrite_module libexec/apache22/mod_rewrite.so
  LoadModule php5_modulelibexec/apache22/libphp5.so
  LoadModule jk_module  libexec/apache22/mod_jk.so
  
  IfModule !mpm_netware_module
  User www
  Group www
  /IfModule
  
  ServerAdmin [EMAIL PROTECTED]
  
  ServerName 85.11.148.165:80
  
  DocumentRoot /usr/local/www/apache22/data
  
  Directory /
  AllowOverride None
  Order deny,allow
  Deny from all
  /Directory
  
  Directory /usr/local/www/apache22/data
  Options Indexes FollowSymLinks
  
  AllowOverride None
  
  Order allow,deny
  Allow from all
  
  /Directory
  
  IfModule dir_module
  DirectoryIndex index.html index.php
  /IfModule
  
  FilesMatch ^\.ht
  Order allow,deny
  Deny from all
  Satisfy All
  /FilesMatch
  
  ErrorLog /var/log/httpd-error.log
  
  LogLevel warn
  
  IfModule log_config_module
  LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ 
  \%{User-Agent}i\ combined
  LogFormat %h %l %u %t \%r\ %s %b common
  
  IfModule logio_module
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ 
  \%{User-Agent}i\ %I %O combinedio
  /IfModule
  
  CustomLog /var/log/httpd-access.log combined
  

Re: [OT] tomcat 5.5 wants to shut down on its own

2007-03-08 Thread tk-2506

Apparently, these are RMI exceptions from the RMI threads outside the
application's control.
Does tomcat attempt to shut down on a Warning log message?


tk-2506 wrote:
 
 When the following exceptions occurs (from the tomcat log, and for which
 tomcat doesn't include stack 
 traces), tomcat says it's shutting down, although it never does. Any idea:
 1) Why these exceptions?
 2) Failed to restart: What is it trying to restart?
 3) Why tomcat wants to shut down?
 4) What to do about them? I don't believe we are throwing these exceptions
 out to tomcat, as we are
 catching all Throwables.
 
 It is true that we have various hosts around the cluster in the
 application, which may go up and down.
 Happens with any version up to 5.5.20.
 
 11:16:54 Info [Tomcat]: Server startup in 50896 ms
 13:20:52 Warning [Tomcat]: Failed to restart: java.io.IOException: Failed
 to get a RMI stub: javax.naming.ServiceUnavailableException [Root
 exception is java.rmi.ConnectException: Connection refused to host: ;
 nested exception is: 
   java.net.ConnectException: Connection refused: connect]
 13:20:53 Warning [Tomcat]: Failed to call the method
 close():java.rmi.ConnectException: Connection refused to host:
 10.10.101.27; nested exception is: 
   java.net.ConnectException: Connection refused: connect
 13:20:53 Warning [Tomcat]: Failed to check connection:
 java.net.ConnectException: Connection refused: connect
 13:20:53 Warning [Tomcat]: stopping
 
 tia
 
 
 

-- 
View this message in context: 
http://www.nabble.com/tomcat-5.5-wants-to-shut-down-on-its-own-tf3371375.html#a9381483
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Possible JSTL/EL bug in 6.0.10

2007-03-08 Thread Rémy Maucherat

On 3/8/07, Gerald Holl [EMAIL PROTECTED] wrote:

Well, I think I can't give you access to all the details of our (secret)
project. Anyway, thanks for the offer.


Ok, I am obviously not going to look at your application. What I meant
is I would look at a minimal war (containing only one JSP).

Rémy

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



Standalone Tomcat - Does vulnerability CVE-2007-0774 apply?

2007-03-08 Thread shishir patil
Hi,
  I have standalone Tomcat version 5.5 running on my production machine 
(Windows 2003 server). I think in this case vulnerability CVE-2007-0774 
(http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0774)  does not apply 
as there is no other Webserver (apache etc.) to which tomcat talks to. So there 
is no connector. But I read on the web that, tomcat comes with default 
connector to serve Static content. I am not sure which connector it is. 
   
  But this vulnerability is about mod_jk, which is not in tomcat but is part of 
apache. So I still think I do need to take care of this vulnerability. But 
would like to confirm with you before informing my team.
   
  thanks,
  shishir

 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

Re: Multiple Instances on one Machine

2007-03-08 Thread Rahul J
Thanks Chris and Chuck. I have created separate bases (e.g. aBase) and within 
it I have webapps\a and so on respectively. It works fine now. 
 
One question: I don't have the Context spec file like 
aBase\conf\catalina\localhost\a.xml etc, but it doesn't seem to be affecting 
anything. What's the significance of that?
 
- Rahul.

PS: This was a typo in original message $CATALINA_HOME\webapps\WEB-INF, should 
have been $CATALINA_HOME\webapps\a or b\WEB-INF



- Original Message 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 8, 2007 6:55:06 AM
Subject: RE: Multiple Instances on one Machine


 From: Rahul [mailto:[EMAIL PROTECTED] 
 Subject: Multiple Instances on one Machine
 
 I have two webapps a and b with their respective web.xml
 files in $CATALINA_HOME\webapps\WEB-INF.

That's incorrect right there, assuming webapps is declared as the
appBase for your Host.  Sounds like yet another case of attempting to
equate appBase and docBase when in fact they must never be the same
location.

 I have two server.xml files (server-a.xml and server-b.xml),
 one for each webapp with different server and connector ports. 

Do the Host elements in each of your server-*.xml files declare the
same appBase?  If so, you're going to get both apps deployed in both
Tomcat instances.

 The $CATALINA_BASE/conf/Catalina/localhost directory contains 
 a.xml and b.xml files with Context path=/a docBase=a 
 debug=0 reloadable=true/ and Context path=/b 
 docBase=b debug=0 reloadable=true/ entries respectively. 

The path attribute is not allowed in this situation; it is instead
derived from the name of the .xml file.

 While trying to debug that I am wondering if my way of using 
 two server.xml files for this scenario correct or is there 
 any other way?

As Chris pointed out, read RUNNING.txt for the correct mechanism.  Your
current approach will have lots of file collisions between the two
instances, causing no end of grief.

 (A similar solution is mentioned at 
 http://tomcat.apache.org/tomcat-3.3-doc/tomcat-apache-howto.html

Don't use such an ancient set of instructions - it's inappropriate for
version 5.5.  Stick with the doc for the level you've got.

- Chuck


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

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


 

Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html

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



noob in Tomcat installation hell

2007-03-08 Thread kjcollins
I am attempting to set up Tomcat 5.5.2  in a Linux  Red Hat environment. I 
am also looking to
include Tomcat Administration  Manager.

However, I can not get Tomcat Administration to work.


First I set up Java version 6, and when things were not working, I scaled 
back to 5.   (JDK 5 )

jdk-1_5_0_11-linux-i586-rpm.bin

I re-set up user accounts in ../conf/tomcat-users.xml

which includes:
  role rolename=manager/
  role rolename=admin/
  user username=tomcat password=passwrd1 roles=admin,manager/


I currently have  set:JAVA_HOME=/usr/java/jdk1.5.0_11
 
  CATALINA_HOME=/usr/local/tomcat 

I run  'set' to confirm that these settings were exported.

When I attempt to run Tomcat Manager through E-links,  it confirms my 
password, and seems to be running.
(Not sure hwat to look for beyond the page saying it is unning.)

When I attempt to run Tomcat Administration through E-links,  I  am asked 
if I want to 

post data form to 
http://localhost:8080/admin/j_security_check;jsessionid=3BCF622079C7F8B1BD4A252CE3754563
 
'

Then, I click on yes and get this error message: 


Apache Tomcat/5.5.20 - Error 
report 
   HTTP Status 404 - /admin/  
  
 
--- 
 
  
   type Status report  
  
   message /admin/  
  
   description The requested resource (/admin/) is not available.  
  
 
--- 
 
  
  Apache Tomcat/5.5.20 

Re: [OT] tomcat 5.5 wants to shut down on its own

2007-03-08 Thread tk-2506

It looks like stopping is not written by Tomcat, but by RMI again... case
closed.


tk-2506 wrote:
 
 Apparently, these are RMI exceptions from the RMI threads outside the
 application's control.
 Does tomcat attempt to shut down on a Warning log message?
 
 
 tk-2506 wrote:
 
 When the following exceptions occurs (from the tomcat log, and for which
 tomcat doesn't include stack 
 traces), tomcat says it's shutting down, although it never does. Any
 idea:
 1) Why these exceptions?
 2) Failed to restart: What is it trying to restart?
 3) Why tomcat wants to shut down?
 4) What to do about them? I don't believe we are throwing these
 exceptions out to tomcat, as we are
 catching all Throwables.
 
 It is true that we have various hosts around the cluster in the
 application, which may go up and down.
 Happens with any version up to 5.5.20.
 
 11:16:54 Info [Tomcat]: Server startup in 50896 ms
 13:20:52 Warning [Tomcat]: Failed to restart: java.io.IOException: Failed
 to get a RMI stub: javax.naming.ServiceUnavailableException [Root
 exception is java.rmi.ConnectException: Connection refused to host: ;
 nested exception is: 
  java.net.ConnectException: Connection refused: connect]
 13:20:53 Warning [Tomcat]: Failed to call the method
 close():java.rmi.ConnectException: Connection refused to host:
 10.10.101.27; nested exception is: 
  java.net.ConnectException: Connection refused: connect
 13:20:53 Warning [Tomcat]: Failed to check connection:
 java.net.ConnectException: Connection refused: connect
 13:20:53 Warning [Tomcat]: stopping
 
 tia
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/tomcat-5.5-wants-to-shut-down-on-its-own-tf3371375.html#a9381520
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Correct static member cluster configuration for Tomcat 6/JDK.1.6.0/Linux

2007-03-08 Thread Filip Hanik - Dev Lists

I will look into this for you
Filip

Gmail User wrote:

I am trying to configure a cluster with static members, but so far no
luck. Am I missing something or is it not meant to be tested with both
members on localhost?

Both instances create their own sessions and no session propagation is
recorded in the logs. The log also shows that there are no active
members in the cluster, so there is no session transfer.


Thanks for suggestions,

Ed


PS:


Sample config (all ports incremented by +10 for the 2nd instance, and
uniqueId is changed for the 2nd instance):

Server port=8005 shutdown=SHUTDOWN

  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  Service name=Catalina
Connector port=8080 protocol=HTTP/1.1 
   maxThreads=150 connectionTimeout=2 
   redirectPort=8443 /

Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /
Engine name=Standalone defaultHost=localhost
jvmRoute=jvm1 



Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster
 channelSendOptions=8

  Manager
className=org.apache.catalina.ha.session.DeltaManager
   expireSessionsOnShutdown=false
   notifyListenersOnReplication=true/

  Channel
className=org.apache.catalina.tribes.group.GroupChannel
Receiver
className=org.apache.catalina.tribes.transport.nio.NioReceiver
  address=auto
  port=4000
  autoBind=100
  selectorTimeout=5000
  maxThreads=6/

Sender
className=org.apache.catalina.tribes.transport.ReplicationTransmitter
  Transport
className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/
/Sender
Interceptor
className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/
 Interceptor
className=org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor
   Member
className=org.apache.catalina.tribes.membership.StaticMember
  port=5678
  securePort=-1
  host=localhost
  domain=staging-cluster
  uniqueId={0,1,2,3,4,5,6,7,8,9}/
 /Interceptor
   Interceptor
className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/
  /Channel

  Valve className=org.apache.catalina.ha.tcp.ReplicationValve
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*
\.html;.*\.css;.*\.txt;/

  Valve
className=org.apache.catalina.ha.session.JvmRouteBinderValve/

  Deployer
className=org.apache.catalina.ha.deploy.FarmWarDeployer
tempDir=/tmp/war-temp/
deployDir=/tmp/war-deploy/
watchDir=/tmp/war-listen/
watchEnabled=false/

  ClusterListener
className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/
  ClusterListener
className=org.apache.catalina.ha.session.ClusterSessionListener/
/Cluster

  Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
  /Host
/Engine
  /Service
/Server


Sample log:


Feb 23, 2007 10:32:58 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
setProperty
WARNING: Dynamic setProperty(className,value) has been disabled, please
use explicit properties for the element you are trying to identify
Feb 23, 2007 10:32:59 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the
java.library.path: 
/usr/java/jdk1.6.0/jre/lib/i386/client:/usr/java/jdk1.6.0/jre/lib/i386:/usr/java/jdk1.6.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Feb 23, 2007 10:32:59 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8090
Feb 23, 2007 10:32:59 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 4302 ms
Feb 23, 2007 10:32:59 PM org.apache.catalina.realm.JAASRealm
setContainer
INFO: Set JAAS app name Standalone
Feb 23, 2007 10:32:59 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 23, 2007 10:32:59 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.9
Feb 23, 2007 10:32:59 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Feb 23, 2007 10:32:59 PM
org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Receiver Server Socket bound to:/127.0.0.1:4010

unable to launch a servlet using tomcat 5.5.20

2007-03-08 Thread suchitha koneru

Hello Tomcat Users ,
I am facing a problem starting  a servlet from tomcat's
web.xml . I am using Tomcat 5.5.20. The reason , I am placing this servlet
in tomcat's web.xml instead of a web app is because I want , this servlet to
start before  tomcat loads any of the web application contexts. I have java
1.5  on my system
The following is the code for the servlet.

*

public* *class* ActiveMQBrokerServlet *extends* GenericServlet{

BrokerService broker ;

*public* *void* init(ServletConfig config)* **throws* ServletException* *{

*try*{

broker = *new* BrokerService();

System.*out*.println(Starting ActiveMQ Broker Service...);

broker.addConnector(
tcp://localhost:61616?trace=truewireFormat.maxInactivityDuration=-1);

broker.start();

System.*out*.println(Active MQ Broker Started at local host port 61616);

}*catch*(Exception e){

e.printStackTrace();

}

}

*public* *void* destroy(){

*try*{

broker.stop();

System.*out*.println(Active MQ Broker Stopped at localhost port 61616);

}*catch*(Exception e){

*throw* *new* RuntimeException(e);

}

}

*public* *void* service(ServletRequest req , ServletResponse resp){

}

}

This servet is specified as follows in tomcat's conf/web.xml

servlet
   servlet-nameactivemqbroker/servlet-name

   servlet-class
 com.cisco.cpnm.common.messaging.ActiveMQBrokerServlet
   /servlet-class

   load-on-startup6/load-on-startup
/servlet

For some reason , the servlet is not loaded , and I do not see any error
messages.

The servlet class file and the required jars are placed in
Tomcat/common/lib.

Please let me know, if Iam missing anything.

thanks,

Suchitha.


Re: Standalone Tomcat - Does vulnerability CVE-2007-0774 apply?

2007-03-08 Thread Mark Thomas
No.

Mark

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



RE: Multiple Instances on one Machine

2007-03-08 Thread Caldarale, Charles R
 From: Rahul J [mailto:[EMAIL PROTECTED] 
 Subject: Re: Multiple Instances on one Machine
 
 One question: I don't have the Context spec file like 
 aBase\conf\catalina\localhost\a.xml etc, but it doesn't seem 
 to be affecting anything. What's the significance of that?

You don't actually need a Context element for a webapp unless you
can't deploy under appBase or have to change the default attributes.

 - Chuck


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

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



RE: noob in Tomcat installation hell

2007-03-08 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Subject: noob in Tomcat installation hell
 
 However, I can not get Tomcat Administration to work.

Did you download and install the admin package?  If so, is it located in
server/webapps/admin and does conf/Catalina/[host] the admin.xml file?

 - Chuck


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

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



RE: installing the admin on 5.5

2007-03-08 Thread Donal

I had similar difficulty setting up the admin package.

My issue was that I was starting tomcat as user tomcat, but after unzipping
the admin files were owned by root. Once I did  chown -R tomcat:tomcat
CATALINA_HOME/server/webapps/admin/ I was able to login to the admin (after
clearing the browser cache).




Fran Varin wrote:
 
 Thanks for all of  your help...it is much appreciated! It just goes to
 show you that you can get too close to a problem and not consider possible
 causes that seem somewhat abstract. You're comments about the browser
 cache are most reasonable. It could very well be the case. 
 
 Thanks again, 
 Fran 
 
 
 
 Caldarale, Charles R wrote:
 
 From: Fran Varin [mailto:[EMAIL PROTECTED] 
 Subject: RE: installing the admin on 5.5
 
 So, it appears that the issue has been resolved but,
 I must admit I'm uncomfortable with the resolution, 
 specifically in not knowing what actually addressed
 the issue.
 
 I have seen problems with the admin not installed page being displayed
 because the browser insists on using its cached copy rather than
 actually submitting a new request.  If that were the case here, the real
 error may have been fixed for some time, but masked by browser behavior.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/installing-the-admin-on-5.5-tf2542730.html#a9389059
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



the cluster deployer can not work on 6.0.10

2007-03-08 Thread Li She
Hello guys

 

On tomcat 6.0.10 , I use FarmWarDeployer and set watchEnabled=true, but I
always get the error 

 

 

2007-3-9 10:47:51 org.apache.catalina.ha.deploy.FarmWarDeployer
messageReceived

severe: javax.management.RuntimeOperationsException: Exception occured
trying to get an MBean

 

 

on the Apache Tomcat Configuration Reference, under The Cluster Deployer
object, it said This goober is currently pretty broken, but we are working
hard to fix it. Does it means the FarmWarDeployer on 6.0.10 can't work?

 

thank you

 

L.S.