Re: Problem with AJP connector

2008-09-25 Thread Rainer Jung

Woytasik Joe wrote:

We are running IIS6 and Tomcat 6, with the AJP connector forwarding
traffic from IIS to Tomcat.  Everything has been working well until we
started running some load tests.  When we ramp up our testing we start
to see the following errors in the connector log.
 
[Wed Sep 24 14:28:42 2008] [3456:1504] [error] jk_ajp_common.c (1879):

(IppsClaimsWorker) Connecting to tomcat failed. Tomcat is probably not
started or is listening on the wrong port
[Wed Sep 24 14:28:42 2008] [3456:1504] [error] jk_isapi_plugin.c (1082):
service() failed
 
What could be causing this issue?  Any help or troubleshooting tips

would be appreciated.


1) Use netstat to find out, how many connections from the isapi plugin 
of IIS to Tomcat are in use. Those map to the number of parallel 
requests allowed. Also check, if you yourself can connect to the AJP 
port, e.g. with telnet.


2) Do a couple of Java thread dumps (not: memory dumps) for your Tomcat 
and have a look, what they are doing and if this fits your expectation.


3) Check the number of threads configured for your AJP connector. This 
is again the maximum concurrency in requests allowed. Don't go to far. 
If a backend, like a database gets to slow, your throughput goes down 
and new requests will get in trouble. It doesn't make sense to try to 
queue those by using an excessive number of threads.


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: Weird AccessControlException -mod_jk related?

2008-09-25 Thread Mark Thomas
Piller Sébastien wrote:
 Hello guys,
 
 I've a project that runs fine on almost every config (Tomcat5.5, 6,
 windows, linux, ...).
 
 But since I've installed mod_jk, I receive this quite weird exception:
snip/

 /var/lib/tomcat5.5/webapps/testservlet/WEB-INF/classes/logging.properties
read)

snip/

That looks like https://issues.apache.org/bugzilla/show_bug.cgi?id=45737

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: Weird AccessControlException -mod_jk related?

2008-09-25 Thread Piller Sébastien

Thanks ;)

Fixed with disabling tomcat security. As it's a test server, no problem. ;)

Mark Thomas a écrit :

Piller Sébastien wrote:
  

Hello guys,

I've a project that runs fine on almost every config (Tomcat5.5, 6,
windows, linux, ...).

But since I've installed mod_jk, I receive this quite weird exception:


snip/

  

/var/lib/tomcat5.5/webapps/testservlet/WEB-INF/classes/logging.properties
   read)



snip/

That looks like https://issues.apache.org/bugzilla/show_bug.cgi?id=45737

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]


  



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



context.xml not read

2008-09-25 Thread Dean Pehrsson-Chapman
We are trying to do a JNDI lookup to an ActiveMQ queue in tomcat.  We
have specified the resource in META-INF/context.xml

 

Context

Resource name=jms/esbConnectionFactory
type=org.apache.activemq.ActiveMQConnectionFactory  description=Esb
JMS Connection Factory
factory=org.apache.activemq.jndi.JNDIReferenceFactory
brokerURL=tcp://devserver.imd.local:61616
brokerName=LocalActiveMQBroker/ Resource name=jms/ ws_proxy
type=org.apache.activemq.command.ActiveMQQueue
factory=org.apache.activemq.jndi.JNDIReferenceFactory
physicalName=ws_proxy auth=Container/

/Context

 

This is working in a local windows dev tomcat 5.5.26, but when moving to
our staging environment (Suse tomcat 5.5.26), this file is not being
picked up (this is confirmed by making it invalid xml, with no exception
thrown). 

 

Placing resources in GlobalNamingResources in sevrer.xml

 

Returning a binding list for java:comp/env returns nothing.

 

Server.xml does not have useNaming=false.  Is there anything else that
could disable JNDI or the reading of this file?

 

 


This transmission is confidential and intended solely for the person or
organization to whom it is addressed. It may contain privileged and
confidential information.  If you are not the intended recipient, you
should not copy, distribute or take any action in reliance on it.

If you believe you received this transmission in error, please notify the 
sender.

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

Re: context.xml not read

2008-09-25 Thread Mark Thomas
Dean Pehrsson-Chapman wrote:
 This is working in a local windows dev tomcat 5.5.26, but when moving to
 our staging environment (Suse tomcat 5.5.26), this file is not being
 picked up (this is confirmed by making it invalid xml, with no exception
 thrown). 
 
 Placing resources in GlobalNamingResources in sevrer.xml
 
 Returning a binding list for java:comp/env returns nothing.
 
 Server.xml does not have useNaming=false.  Is there anything else that
 could disable JNDI or the reading of this file?

A pre-existing context.xml for this webapp in
$CATALINA_BASE/conf/engine/host/context path.xml?

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: context.xml not read

2008-09-25 Thread Dean Pehrsson-Chapman
No, there isn't.  Thanks.

Dean Pehrsson-Chapman 
Senior Java Developer 



+44 (0)20 7468 6650 |  optimad 
+44 (0)20 7468 6647 |  direct 
+44 (0)7971 680 007 |  mobile 

www.imdplc.com 


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2008 12:25
To: Tomcat Users List
Subject: Re: context.xml not read
Importance: High

Dean Pehrsson-Chapman wrote:
 This is working in a local windows dev tomcat 5.5.26, but when moving to
 our staging environment (Suse tomcat 5.5.26), this file is not being
 picked up (this is confirmed by making it invalid xml, with no exception
 thrown). 
 
 Placing resources in GlobalNamingResources in sevrer.xml
 
 Returning a binding list for java:comp/env returns nothing.
 
 Server.xml does not have useNaming=false.  Is there anything else that
 could disable JNDI or the reading of this file?

A pre-existing context.xml for this webapp in
$CATALINA_BASE/conf/engine/host/context path.xml?

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]


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


This transmission is confidential and intended solely for the person or
organization to whom it is addressed. It may contain privileged and
confidential information.  If you are not the intended recipient, you
should not copy, distribute or take any action in reliance on it.

If you believe you received this transmission in error, please notify the 
sender.

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

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



Tomcat Master for PHP Hosting?

2008-09-25 Thread Johnny Kewl

Does anyone know if there is anything like this already...

What I need (want to do) is turn TC into a Virtual PHP hosting system...

This is the idea... one can layout a html/PHP site in tomcat...
Then point that at distributed servers out there, and use the remote links 
in JSP, servlets etc.


And it just happens... ie those Virtual Sites are deployed to remote httpd 
servers and it all just works.


Then there could be intelligent processing, like a form submitted to a 
remote PHP site is processed by tomcat... there will be bridges but I havnt 
got that all thought thru yet...


Then the idea is that from the company you run TC... its the brain... but it 
now can take advantage of all the cheap hosting PHP sites out there...


A kind of load sharing system... that can make use of dumbed down hosting 
sites...

And one develops on tomcat as if it was all right there on your machine...

The thing I'm after is making a kinda TC MASTER...

I dont know what others find, but locally if I talk to hosting services and 
mention Tomcat... I get a Oh, that will cost more... like its rocket 
science or something...


So I want to put tomcats brain into PHP without giving the brilliant admin 
dude a cranial embolism.


I think intelligence can actually be made very light... and the plebs can do 
the heavy lifting...
So in the end... the home site is the brain... running a whole worker 
population out there.


... Anyway thats the idea... does anyone know if there is anything like this 
already?

... TC as a PHP god... sort of thing.

Thanks 



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



[Fwd: Application Period Opens for Travel Assistance to ApacheCon US 2008]

2008-09-25 Thread Mark Thomas
The Travel Assistance Committee is taking in applications for those wanting
to attend ApacheCon US 2008 between the 3rd and 7th November 2008 in New
Orleans.

The Travel Assistance Committee is looking for people who would like to be
able to attend ApacheCon US 2008 who need some financial support in order to
get there. There are VERY few places available and the criteria is high,
that aside applications are open to all open source developers who feel that
their attendance would benefit themselves, their project(s), the ASF and
open source in general.

Financial assistance is available for flights, accomodation and entrance
fees either in full or in part, depending on circumstances. It is intended
that all our ApacheCon events are covered, so it may be prudent for those in
Europe and or Asia to wait until an event closer to them comes up - you are
all welcome to apply for ApacheCon US of course, but there must be
compelling reasons for you to attend an event further away that your home
location for your application to be considered above those closer to the
event location.

More information can be found on the main Apache website at
http://www.apache.org/travel/index.html - where you will also find a link to
the application form and details for submitting.

Time is very tight for this event, so applications are open now and will end
on the 2nd October 2008 - to give enough time for travel arrangements to be
made.

Good luck to all those that will apply.

Regards,

The Travel Assistance Committee




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



[TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-25 Thread Jon Haitz Legarreta Gorroño

Hi all,
since a couple of days ago I've been experiencing problems with a Web 
application of mine that worked fine until then: when I deployed the 
application (built with Java and JSP) under my Tomcat 5.0.28 I got the 
following error stack (sorry for the length):


HTTP Status 500

The server found an internal error tha prevented it from fulfilling this 
request


2008-09-25 16:18:52 StandardContext[/ADMPAC]StandardWrapper.Throwable
java.lang.NoClassDefFoundError
  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 

  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58) 

  at 
oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73) 

  at 
org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503) 


  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
  at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)


  // Some org.apache.catalina.core.* classes related lines more

  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)

2008-09-25 16:18:52 StandardWrapperValve[action]: Excepción de reserva 
de espacio para servlet action
javax.servlet.ServletException: Servlet.init() para servlet action lanzó 
excepción
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) 



  // Some org.apache.catalina.core.* classes related lines more

  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)
- Root Cause -
java.lang.NoClassDefFoundError
  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 

  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58) 

  at 
oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73) 

  at 
org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503) 


  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
  at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) 

  // Some org.apache.catalina.core.* classes related lines more 
  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)



I would say that I am 99% sure that it is not due to an error in my code 
(the same code worked three days ago), and I haven't changed anything else.


Could somebody cast some light on this error, please?
I am unable to make head or tail of it. And I did not find any useful 
information on the Web.


Many thanks in advance !!
JON HAITZ

--

Jon Haitz Legarreta Gorroño
Laguntzaile zientifikoa / Colaborador científico / Scientific collaborator

VICOMTech - Visual Interaction and Communication Technologies Center
Mikeletegi Pasealekua, 57 - Parque Tecnológico
E-20009 Donostia - San Sebastián, Spain
Tel: +[34] 943 30 92 30
Fax: +[34] 943 30 93 93
e-mail: [EMAIL PROTECTED]
http://www.vicomtech.org

*** member of INI-GraphicsNet 

Re: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-25 Thread David Smith
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 


... so what class is referenced at line 68 of 
StrutsPageLifecycleFactory.java?  It's weird that it didn't include the 
class name it couldn't find in the stack trace.


--David

Jon Haitz Legarreta Gorroño wrote:

Hi all,
since a couple of days ago I've been experiencing problems with a Web 
application of mine that worked fine until then: when I deployed the 
application (built with Java and JSP) under my Tomcat 5.0.28 I got the 
following error stack (sorry for the length):


HTTP Status 500

The server found an internal error tha prevented it from fulfilling 
this request


2008-09-25 16:18:52 StandardContext[/ADMPAC]StandardWrapper.Throwable
java.lang.NoClassDefFoundError
  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 

  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58) 

  at 
oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73) 

  at 
org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503) 


  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
  at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 



  // Some org.apache.catalina.core.* classes related lines more

  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)

2008-09-25 16:18:52 StandardWrapperValve[action]: Excepción de reserva 
de espacio para servlet action
javax.servlet.ServletException: Servlet.init() para servlet action 
lanzó excepción
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) 



  // Some org.apache.catalina.core.* classes related lines more

  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)
- Root Cause -
java.lang.NoClassDefFoundError
  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 

  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58) 

  at 
oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73) 

  at 
org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503) 


  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
  at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) 

  // Some org.apache.catalina.core.* classes related lines more   
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)



I would say that I am 99% sure that it is not due to an error in my 
code (the same code worked three days ago), and I haven't changed 
anything else.


Could somebody cast some light on this error, please?
I am unable to make head or tail of it. And I did not find any useful 
information on the Web.


Many thanks in advance !!
JON HAITZ





Re: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-25 Thread Jon Haitz Legarreta Gorroño

Hi again,
thanks for your interest, David.
Well, found that line 68 in StrutsPageLifecycleFactory.java is empty !!

The method menetioned is the following, and line 68 is the one above the 
return statement:


private static StrutsPageLifecycleFactory getDefaultInstance()
  {
 if (defaultInstance == null)
 {
defaultInstance = new DefaultStrutsPageLifecycleFactory();
 }

 return defaultInstance;

  }

I don't know whether sometime it contained something, but no doubt I 
haven't edited it !


BTW, forgot to mention that some other Web applications I've got work fine.

Thanks again for any suggestion.
JON HAITZ






David Smith escribió:
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 



... so what class is referenced at line 68 of 
StrutsPageLifecycleFactory.java?  It's weird that it didn't include 
the class name it couldn't find in the stack trace.


--David

Jon Haitz Legarreta Gorroño wrote:

Hi all,
since a couple of days ago I've been experiencing problems with a Web 
application of mine that worked fine until then: when I deployed the 
application (built with Java and JSP) under my Tomcat 5.0.28 I got 
the following error stack (sorry for the length):


HTTP Status 500

The server found an internal error tha prevented it from fulfilling 
this request


2008-09-25 16:18:52 StandardContext[/ADMPAC]StandardWrapper.Throwable
java.lang.NoClassDefFoundError
  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 

  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58) 

  at 
oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73) 

  at 
org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503) 


  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
  at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 



  // Some org.apache.catalina.core.* classes related lines more

  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)

2008-09-25 16:18:52 StandardWrapperValve[action]: Excepción de 
reserva de espacio para servlet action
javax.servlet.ServletException: Servlet.init() para servlet action 
lanzó excepción
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) 



  // Some org.apache.catalina.core.* classes related lines more

  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)
- Root Cause -
java.lang.NoClassDefFoundError
  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 

  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58) 

  at 
oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73) 

  at 
org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503) 


  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
  at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) 

  // Some org.apache.catalina.core.* classes related lines more   
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

  at 

How to access JNDI resources on Tomcat level

2008-09-25 Thread Mikolaj Rydzewski

Hi all,

I'm using Tomcat 5.5 with JNDI DataSources. It works with no problem.

Now, I want to setup Josso single sign on system (www.josso.org) and 
force it to use JNDI DataSources as well. With no luck.


Problem lies (I suppose), that josso system is not only a webapp, but 
also a Tomcat's Valve and Realm. If one want to expose JNDI resource to 
a webapp he needs to use ResourceLink in context.xml and resource-ref in 
web.xml. How can I expose such JNDI resource to Valve and Realm?


Josso code simply calls

InitialContext ic = new InitialContext();
_datasource = (DataSource) ic.lookup( _dsJndiName );

to obtain reference.

I have tried to use jdbc/db (that's my resource name defined in global 
resources in server.xml), java:jdbc/db or java:comp/env/jdbc/db with no 
luck. The same error message Error During Lookup Name jdbc is not bound 
in this Context every time.


So - is there any 'special' way to obtain reference to JNDI resources 
from within a Realm?


--
Mikolaj Rydzewski [EMAIL PROTECTED]


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



Re: How to access JNDI resources on Tomcat level

2008-09-25 Thread Mark Thomas
Mikolaj Rydzewski wrote:
 So - is there any 'special' way to obtain reference to JNDI resources
 from within a Realm?

Make sure your data source is global (i.e. defined in server.xml) and then take
a look at how the JNDI realm uses global data sources.

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: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound

2008-09-25 Thread David Smith
Hmmm... and I take it you are sure the version being used when the stack 
trace is produced is the same version you are looking at.  In that case 
my next thought is to check for a classloader issue.  Do 
StrutsPageLifecycleFactory and DefaultStrutsPageLifecycleFactory only 
exist once in tomcat (if in common/[classes|lib], it can't be in 
WEB-INF/[classes|lib] and vice-versa)?  Lastly I'm wondering if there's 
a problem if DefaultStrusPageLifecycleFactory is in a different 
classloader than StrutsPageLifecycleFactory?


Overall I'm guessing this is some sort of classloader issue.

--David

Jon Haitz Legarreta Gorroño wrote:

Hi again,
thanks for your interest, David.
Well, found that line 68 in StrutsPageLifecycleFactory.java is empty !!

The method menetioned is the following, and line 68 is the one above 
the return statement:


private static StrutsPageLifecycleFactory getDefaultInstance()
  {
 if (defaultInstance == null)
 {
defaultInstance = new DefaultStrutsPageLifecycleFactory();
 }
 return defaultInstance;
  }

I don't know whether sometime it contained something, but no doubt I 
haven't edited it !


BTW, forgot to mention that some other Web applications I've got work 
fine.


Thanks again for any suggestion.
JON HAITZ






David Smith escribió:
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 




... so what class is referenced at line 68 of 
StrutsPageLifecycleFactory.java?  It's weird that it didn't include 
the class name it couldn't find in the stack trace.


--David

Jon Haitz Legarreta Gorroño wrote:

Hi all,
since a couple of days ago I've been experiencing problems with a 
Web application of mine that worked fine until then: when I deployed 
the application (built with Java and JSP) under my Tomcat 5.0.28 I 
got the following error stack (sorry for the length):


HTTP Status 500

The server found an internal error tha prevented it from fulfilling 
this request


2008-09-25 16:18:52 StandardContext[/ADMPAC]StandardWrapper.Throwable
java.lang.NoClassDefFoundError
  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 

  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58) 

  at 
oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73) 

  at 
org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503) 

  at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)

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

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 



  // Some org.apache.catalina.core.* classes related lines more

  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)

2008-09-25 16:18:52 StandardWrapperValve[action]: Excepción de 
reserva de espacio para servlet action
javax.servlet.ServletException: Servlet.init() para servlet action 
lanzó excepción
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071) 

  at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) 

  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) 



  // Some org.apache.catalina.core.* classes related lines more

  at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

  at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

  at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 

  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


  at java.lang.Thread.run(Unknown Source)
- Root Cause -
java.lang.NoClassDefFoundError
  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getDefaultInstance(StrutsPageLifecycleFactory.java:68) 

  at 
oracle.adf.controller.v2.struts.lifecycle.StrutsPageLifecycleFactory.getInstance(StrutsPageLifecycleFactory.java:58) 

  at 
oracle.adf.controller.v2.struts.actions.DataActionMapping.freeze(DataActionMapping.java:73) 

  at 
org.apache.struts.config.impl.ModuleConfigImpl.freeze(ModuleConfigImpl.java:503) 

  at 

Tomcat with LDAP - admin part authentication

2008-09-25 Thread yann bizouerne
Hi,

I have installed tomcat 6 on our Lunix server.
I have configure it in order to use LDAP authentication for our application
and it is working fine.
My concern is about the admin part of the tomcat server.
Now the tomcat-users.xml seems not used anymore for the admin,manager part.
I have tried my LDAP login,password but it doesn't work for that part of the
server.
Does somebody have a clue how I can now go in the admin part of the tomcat
server ?
Thanks in advance
Yann


RE: Stripping down the JSP engine from Tomcat

2008-09-25 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Subject: Stripping down the JSP engine from Tomcat

 I have tried removing the jasper jars but that fails
 tomcat from starting

What happens if you also remove the JSP servlet declaration from conf/web.xml?

 - Chuck


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

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



RE: Tomcat with LDAP - admin part authentication

2008-09-25 Thread Caldarale, Charles R
 From: yann bizouerne [mailto:[EMAIL PROTECTED]
 Subject: Tomcat with LDAP - admin part authentication

 Now the tomcat-users.xml seems not used anymore for the
 admin,manager part.

Since you changed the Realm, the tomcat-users.xml file is not used for 
anything.

 I have tried my LDAP login,password but it doesn't work for
 that part of the server.

You need to either configure the manager role in your LDAP server for the 
appropriate userids, or change the manager's WEB-INF/web.xml security 
constraint to use an appropriate existing role in your LDAP server.

 - 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: Stripping down the JSP engine from Tomcat

2008-09-25 Thread Mark Thomas
Caldarale, Charles R wrote:
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Subject: Stripping down the JSP engine from Tomcat

 I have tried removing the jasper jars but that fails
 tomcat from starting
 
 What happens if you also remove the JSP servlet declaration from conf/web.xml?

And the Jasper listener from server.xml

Knowing what the start-up errors were would enable the list to provide a more
informed response.

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: Tomcat Master for PHP Hosting?

2008-09-25 Thread Alan Chaney

Its called a 'web service'.

Make your tomcat application a web service. Use a php application to 
invoke it. Distribute the php applications to the php servers.


The php application has a user interface and generates the invocation 
request (probably as an xml file). Your 'MASTER' does the business logic 
and generates a reply, either as an xml file which you can use XSLT in 
php to render or some other form.


If you really wanted to get sophisticated you could write a tomcat 
application that generated most/all of the php against some 
specification and style the displayed pages with css.


There are, of course, numerous standards and implementations for web 
services. You could also make it an AJAX app if you wanted to.


HTH

Alan


Johnny Kewl wrote:

Does anyone know if there is anything like this already...

What I need (want to do) is turn TC into a Virtual PHP hosting system...

This is the idea... one can layout a html/PHP site in tomcat...
Then point that at distributed servers out there, and use the remote 
links in JSP, servlets etc.


And it just happens... ie those Virtual Sites are deployed to remote 
httpd servers and it all just works.


Then there could be intelligent processing, like a form submitted to a 
remote PHP site is processed by tomcat... there will be bridges but I 
havnt got that all thought thru yet...


Then the idea is that from the company you run TC... its the brain... 
but it now can take advantage of all the cheap hosting PHP sites out 
there...


A kind of load sharing system... that can make use of dumbed down 
hosting sites...

And one develops on tomcat as if it was all right there on your machine...

The thing I'm after is making a kinda TC MASTER...

I dont know what others find, but locally if I talk to hosting services 
and mention Tomcat... I get a Oh, that will cost more... like its 
rocket science or something...


So I want to put tomcats brain into PHP without giving the brilliant 
admin dude a cranial embolism.


I think intelligence can actually be made very light... and the plebs 
can do the heavy lifting...
So in the end... the home site is the brain... running a whole worker 
population out there.


... Anyway thats the idea... does anyone know if there is anything like 
this already?

... TC as a PHP god... sort of thing.

Thanks

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



!DSPAM:48db8629255436657853550!



-
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: Stripping down the JSP engine from Tomcat

2008-09-25 Thread Johnny Kewl


- Original Message - 
From: [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, September 25, 2008 6:39 PM
Subject: Stripping down the JSP engine from Tomcat


Hi,

Is there anyways we can strip down the JSP engine from the Tomcat?

I have to develop an application which would process a request using
servlets, but I don't need the JSP engine as there is a requirement for
the Servlet engine to be as light weight as possible and also have a
small memory footprint.
I have tried removing the jasper jars but that fails tomcat from
starting, has anyone tried their hands on this, would greatly appreciate
your guidance.

Regards,
Vivek Jaiswal
TCS - BT Global Services

---

I started pulling TC into a modular form a while back but never split out 
Jasper

I took out Clustering and SSI...
What I've got is no longer TC... I'm skinning it and making it app like when 
I get time.

TC is not very modular at present...

In the sandbox theres a chap working on a similar thing from a diff angle... 
he's pulled out the valves so far

http://svn.apache.org/repos/asf/tomcat/sandbox/tomcat-lite/

If you have a dev team that going to do serious work on this you may get 
really lucky... but this is work... its not plug and play.

If so you welcome to what I done so far... but I want the lite back ;)

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---



-
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 Master for PHP Hosting?

2008-09-25 Thread Johnny Kewl


- Original Message - 
From: Alan Chaney [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, September 25, 2008 8:58 PM
Subject: Re: Tomcat Master for PHP Hosting?



Its called a 'web service'.

Make your tomcat application a web service. Use a php application to 
invoke it. Distribute the php applications to the php servers.


The php application has a user interface and generates the invocation 
request (probably as an xml file). Your 'MASTER' does the business logic 
and generates a reply, either as an xml file which you can use XSLT in php 
to render or some other form.


If you really wanted to get sophisticated you could write a tomcat 
application that generated most/all of the php against some specification 
and style the displayed pages with css.


There are, of course, numerous standards and implementations for web 
services. You could also make it an AJAX app if you wanted to.


HTH

Alan


Thanks Alan... yes, u right.
Little things like common login and shared sessions and that sort of thing 
would have to be sorted...
But essentially even if we now had a functions like 
php_include_servlet('xyx')

it is at a generic level, a client talking to a server (web service).

Maybe there is something else really brilliant out there as well?
I'm fishing ;)

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



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



Re: Problem with mod_jk installation

2008-09-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

Martin Gainty wrote:
 this is a known bug in Apache 2.2.4+ distro modules
 https://issues.apache.org/bugzilla/show_bug.cgi?id=43095
 can you work around the error by either rollback to 2.2.0
 or roll forward to 2.4

It is not a bug in Apache when a user deploys an inappropriately-linked
version of a shared library.

Not only that, but this bug you referred to is actually not a bug in
Apache httpd, but a bug in their build process that fails to check the
status of an APR compile (which is not relevant, here).

Martin, you can't just google the key words from a mailing list post and
present one of the the resulting links as the answer to someone's
question. It's not fair to the OP to respond with obviously incorrect
information like this. Please stop.

- -chris

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

iEYEARECAAYFAkjcEG8ACgkQ9CaO5/Lv0PA0UgCggkVCzE4MvM6VPEJbDBgGTs1q
gWUAoL1aeFfd121I4ATlNo2wMn8wKSJP
=G0gb
-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: Some Prilim questions

2008-09-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

David Smith wrote:
 I have no idea where you are going with this ... it makes no sense to
 the original question.

Aah... there's your problem. Martin's not good with these things.

On the other hand, /one/ part of his statement does make sense:

 Martin Gainty wrote:
 the referenced jndi lookup in the webapp context is located in
 India and the DB is in Ithaca NY the Indian JNDI lookup is
 considerably slower than 'ordinary JDBC connection' from NY

This is true: if your LDAP server is geographically far from your app
server, then the lookup of your JNDI object could take a long time. What
Martin doesn't realize is that Tomcat always stores JNDI-based
DataSource objects locally, so this situation will never happen.
Martin's statement is a red herring: true, but irrelevant.

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

iEYEARECAAYFAkjcEhkACgkQ9CaO5/Lv0PDrhQCfeL9yv0lnC+izgbJtxj3NkBbn
rg4AoJhtPjHiqb4NwnI1Hj4c8gNip+Q0
=indY
-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: j_security_check requires session

2008-09-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul,

[EMAIL PROTECTED] wrote:
 It seems that tomcat expects that I already have a session established
 before posting the username and password.  If I don't already have a
 JSESSIONID cookie, j_security_check returns a 408.

This behavior adheres to the Servlet Specification. See section 12.5.3.
There is no provision for drive-by logins.

 Unfortunately, I
 have another application attempting to talk to this one that requires
 that the first thing it does is post credentials to the
 j_security_check, so I have no mechanism of hitting another page first
 to establish a session.

This is non-portable (as you have seen from moving between servlet
containers). I think you have a couple of options:

1. Change your remote client to first request the desired secure
   resource from the server, then submit the credentials with a second
   request (and you'll be sent to the originally-requested resource,
   as per the spec)

2. Switch to using securityfilter (which allows drive-bys, and which
   Mark already plugged)

3. Remove the security constraint from your target service and implement
   an alternate authentication and authorization strategy (such as
   checking the credentials yourself in the service) manually

 This mechanism worked fine with BEA Weblogic, but it seems that tomcat's
 handling of j_security_check is different.  Does anyone know of any
 options to modify the behavior of j_security_check so that it would just
 do the authentication and establish the session in one shot at the time
 of the POST request?

There are no spec-compliant options. BEA's behavior is an extension to
the servlet specification so whatever you do will be container-specific,
unless you go outside the container-managed security provider (say, by
using something like securityfilter).

- -chris

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

iEYEARECAAYFAkjcE+AACgkQ9CaO5/Lv0PCrUgCgrHAzHozD9/JjmHRlZE/Jpl2X
aucAn2mBQ/dIqkYQo2Nn9bYt8dBPUKM/
=g6J7
-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: Some Prilim questions

2008-09-25 Thread Martin Gainty

no no no..
he was NOT talking about LDAP but a DB connection
the statement stands
even with a 'local TC reference' you STILL have to contact the server !
there exists a company which sells server services for this very reason (if the 
op desires to know i will pass this on)
dont you have something/anything thats more constructive with your time 
Dumbkopf!
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Thu, 25 Sep 2008 18:35:05 -0400
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Re: Some Prilim questions
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 David,
 
 David Smith wrote:
  I have no idea where you are going with this ... it makes no sense to
  the original question.
 
 Aah... there's your problem. Martin's not good with these things.
 
 On the other hand, /one/ part of his statement does make sense:
 
  Martin Gainty wrote:
  the referenced jndi lookup in the webapp context is located in
  India and the DB is in Ithaca NY the Indian JNDI lookup is
  considerably slower than 'ordinary JDBC connection' from NY
 
 This is true: if your LDAP server is geographically far from your app
 server, then the lookup of your JNDI object could take a long time. What
 Martin doesn't realize is that Tomcat always stores JNDI-based
 DataSource objects locally, so this situation will never happen.
 Martin's statement is a red herring: true, but irrelevant.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkjcEhkACgkQ9CaO5/Lv0PDrhQCfeL9yv0lnC+izgbJtxj3NkBbn
 rg4AoJhtPjHiqb4NwnI1Hj4c8gNip+Q0
 =indY
 -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]
 

_
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

Re: Tomcat unable to find jars when deployed from Eclipse

2008-09-25 Thread Bai Shen

  Am I doing something wrong, or am I stuck with the only solution being
  to
  put them in the WebContent\WEB-INF\lib dir?

 The alternative is to go to the Java EE Module Dependencies page of the
 project's properties.  You should see your build time jars listed there.
  Check them to include them in the runtime classpath.  These jars will then
 be included in the WEB-INF/lib of the Web application when the project is
 published to a server or exported as a war.


That worked great.  Thanks a lot! :)

Bai Shen


Tomcat manager 'list' command - why does it return html markup

2008-09-25 Thread sk1ds

Hi all

probably a silly question from a newbie but...

According to the doco 
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Introduction HERE 

I says I should be able to use the Manager web application using 

A minimal version using HTTP requests only which is suitable for use by
scripts setup by system administrators. Commands are given as part of the
request URI, and responses are in the form of simple text that can be easily
parsed and processed.

However, when using wget or curl from a command line shell under redhat it
returns it with HTML markup.

Any ideas what I am doing wrong ?

Many thanks
-- 
View this message in context: 
http://www.nabble.com/Tomcat-manager-%27list%27-command---why-does-it-return-html-markup-tp19681579p19681579.html
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]



tomcat won't download large files -- out of memory error

2008-09-25 Thread DIGLLOYD INC
I have some large zip files I want to make available for download.   
When I try to download a 70MB file, tomcat is trying to cache these  
huge files (it seems).  The result is that downloading them always  
fails.  I *want* caching for most everything eg jpegs, html, etc and  
I've set tomcat to use up to 1.5GB of memory.


Is there a way to limit the size of the file that will be cached? It's  
regrettable that failure to cache a file can't gracefully degrade into  
just not caching it.



Sep 25, 2008 9:50:17 PM org.apache.catalina.connector.CoyoteAdapter  
service
SEVERE: An exception or error occurred in the container during the  
request processing

java.lang.OutOfMemoryError: Java heap space
	at  
org 
.apache 
.naming.resources.ProxyDirContext.cacheLoad(ProxyDirContext.java:1571)
	at  
org 
.apache 
.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java:1449)
	at  
org 
.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java: 
283)
	at  
org 
.apache.tomcat.util.http.mapper.Mapper.internalMapWrapper(Mapper.java: 
782)
	at org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java: 
626)

at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:516)
	at  
org 
.apache 
.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java: 
444)
	at  
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
284)
	at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
844)
	at org.apache.coyote.http11.Http11Protocol 
$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 
447)

at java.lang.Thread.run(Thread.java:613)


Lloyd Chambers
http://diglloyd.com

[Mac OS X 10.5.2 Intel, Tomcat 6.0.16]





-
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 won't download large files -- out of memory error

2008-09-25 Thread DIGLLOYD INC

I came across the following:

-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true

at this page: 
http://hillert.blogspot.com/2008/05/if-tomcat-is-running-out-of-memory.html

I haven't tried it yet, and I don't know what it does (limits  
something apparently).


Anyone know?


Lloyd

On Sep 25, 2008, at 10:01 PM, DIGLLOYD INC wrote:

I have some large zip files I want to make available for download.   
When I try to download a 70MB file, tomcat is trying to cache these  
huge files (it seems).  The result is that downloading them always  
fails.  I *want* caching for most everything eg jpegs, html, etc and  
I've set tomcat to use up to 1.5GB of memory.


Is there a way to limit the size of the file that will be cached?  
It's regrettable that failure to cache a file can't gracefully  
degrade into just not caching it.



Sep 25, 2008 9:50:17 PM org.apache.catalina.connector.CoyoteAdapter  
service
SEVERE: An exception or error occurred in the container during the  
request processing

java.lang.OutOfMemoryError: Java heap space
	at  
org 
.apache 
.naming.resources.ProxyDirContext.cacheLoad(ProxyDirContext.java:1571)
	at  
org 
.apache 
.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java: 
1449)
	at  
org 
.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java: 
283)
	at  
org 
.apache 
.tomcat.util.http.mapper.Mapper.internalMapWrapper(Mapper.java:782)
	at  
org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java:626)

at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:516)
	at  
org 
.apache 
.catalina 
.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:444)
	at  
org 
.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
284)
	at  
org 
.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
844)
	at org.apache.coyote.http11.Http11Protocol 
$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint 
$Worker.run(JIoEndpoint.java:447)

at java.lang.Thread.run(Thread.java:613)


Lloyd Chambers
http://diglloyd.com

[Mac OS X 10.5.2 Intel, Tomcat 6.0.16]





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