Re: TC v5.5.12 Broke My Configuration

2005-09-26 Thread Peter Miller
Hi Bob,

I would suggest to try it with a directory name without spaces (Test 1).
Could be that tc5.5.12 handles directories with spaces not
correct/different than earlier versions.

Hth
Peter

Bob Bronson schrieb:

> Hi all,
>
> I've just tried to "upgrade" from TC v5.5.9 to v5.5.12 and it seems my
> (very simple) configuration is now broken.
>
> The following configuration works beautifully under 5.5.9 -- no
> exceptions, no warnings, just utter perfection.
>
> Here's a description of my configuration (BTW, CATALINA_HOME and
> JAvA_HOME are fine, I'm sure they're not causing the problem).
>
> I have CATALINA_BASE set to:
>  C:\Projects\Configs\
>
> Within this "Configs" directory I have two sub-directories: "conf" and
> "Engine_01" like this:
>   C:\Projects\Configs\
>   |
>   +-conf\
>   +-Engine01\
>
>
> Within the "conf" directory I have my "server.xml" and the default
> "web.xml" files. Here is the server.xml contents:
>
> 
>  
>
>
>  
>
>  
> 
>
>
> Notice I am using an engine named, "Engine_01".
>
> In the "Engine_01" directory I have a context fragment file named,
> "ROOT.xml". Here is its one line contents:
>   
>
>
> In my "server.xml" you'll notice I have my appBase property set to
> "..\Sites\Test 1". Here is the "Sites" directory structure:
>
>   C:\Projects\Sites\
>   |
>   +-Test 1\
>   |
>   +-index.html
>   +-WEB-INF\
>   |
>   +-web.xml
>   +-classes\
>   +-root\
>
>
> It's all quite simple, I think. When I run under v5.5.9 it is perfect,
> as I said.
>
> Using the EXACT SAME configuration, running under v5.5.12, I see this
> WARNING and EXCEPTION when I start TC:
>
> WARNING: A docBase C:\Projects\Sites\Test 1\. inside the host appBase
> has been specified, and will be ignored
> Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext
> resourcesStart
> SEVERE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> C:\Projects\Configs\..\Sites\Test 1\ROOT does not exist or is not a
> readable directory
>at
> org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
>
>at
> org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3777)
>
>at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3948)
>at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>
>at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
>
>at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
>
>at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
>at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>
>at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>
>at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
>at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>at java.lang.reflect.Method.invoke(Unknown Source)
>at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error in resourceStart()
> Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error getConfigured
> Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [] startup failed due to previous errors
> Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext stop
> INFO: Container
> org.apache.catalina.core.ContainerBase.[ENGINE_01].[localhost].[/] has
> not been started
> Sep 26, 2005 8:37:23 PM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-80
> Sep 26, 2005 8:37:23 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 796 ms
>
>
> So, you can see I have one WARNING a

Re: Generic Types support in Tomcat?

2005-09-26 Thread Nikola Milutinovic

Seak, Teng-Fong wrote:


   When I first saw the announcement that Tomcat 5.5 needs Java5 to
run, I thought it would supports Java5 features.  But it turns out that
it needs Java5 but not "supports" Java5.  Quite disappointed.  Anyway, I
have to go on with my webapp, so much for it.
 



Tomcat 5 supports all the features of the underlying JVM, the problem is 
in the JSPs. They are compiled by Jasper + Eclipse compiler module, 
which, in version 5.5.9, has no support for Java5. Later versions of 
Tomcat have a newer version of Eclipse Compiler and it works. Also, you 
can plugin manually a newer version of Eclipse compiler, try to search 
the mailing list for posts on how to do it (simple, if I remember 
correctly).


Nix.

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



log files not rolling over.

2005-09-26 Thread David Thielen
Hi;

Some of my log files (the ones specified in log4j.xml) are not rolling over.
Specifically, after 3 days my logs directory is:

09/23/2005  12:18 PM 0 admin.2005-09-23.log
09/25/2005  10:08 PM 0 admin.2005-09-25.log
09/23/2005  12:18 PM 0 catalina.2005-09-23.log
09/25/2005  10:08 PM 0 catalina.2005-09-25.log
09/23/2005  12:18 PM 0 host-manager.2005-09-23.log
09/25/2005  10:08 PM 0 host-manager.2005-09-25.log
09/25/2005  10:06 PM56,743 isapi_redirect.log
09/23/2005  12:18 PM 0 jakarta_service_20050923.log
09/25/2005  10:08 PM 0 jakarta_service_20050925.log
09/23/2005  12:18 PM 0 localhost.2005-09-23.log
09/25/2005  10:08 PM 0 localhost.2005-09-25.log
09/23/2005  12:18 PM 0 manager.2005-09-23.log
09/25/2005  10:08 PM 0 manager.2005-09-25.log
09/23/2005  12:18 PM 0 stderr_20050923.log
09/25/2005  10:08 PM 0 stderr_20050925.log
09/25/2005  08:20 PM10,748 stdout_20050923.log
09/26/2005  10:30 AM 4,149 stdout_20050925.log
09/26/2005  10:30 AM 1,076 tomcat.log
09/26/2005  02:52 AM 5,867 windward.log

And stdout_*.log has:

log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-24].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/windward.log] to [C:\Tomcat
5.5/logs/windward.log.2005-09-24].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/tomcat.log] to [C:\Tomcat
5.5/logs/tomcat.log.2005-09-23].
log4j:ERROR Failed to rename [C:\Tomcat 5.5/logs/tomcat.log] to [C:\Tomcat
5.5/logs/tomcat.log.2005-09-25].

Any idea why? Tomcat is running as Local System (default install) and System
has full rights on these files.

??? - thanks - dave


David Thielen
303-499-2544
www.windwardreports.com



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



Re: 'touch'ing jsp files to force recompilation

2005-09-26 Thread Anto Paul
On 9/27/05, steven <[EMAIL PROTECTED]> wrote:
> I was using the 'touch' command to force a recompile
> of some jsp files.  After a while, I checked lsof and
> noticed some files being left open:
>
> java  25139 fdblahh   21r   REG3,3
> 1214916783806
> /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
> java  25139 fdblahh   22r   REG3,3
> 741936783810
> /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/company_jsp.java
> java  25139 fdblahh   23r   REG3,3
> 741936783810
> /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/company_jsp.java
> java  25139 fdblahh   24r   REG3,3
> 1214916783806
> /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
> java  25139 fdblahh   25r   REG3,3
> 1214916783806
> /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
> java  25139 fdblahh   28r   REG3,3
> 1214916783806
> /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
> java  25139 fdblahh   29r   REG3,3
> 771226783804
> /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/index_jsp.java
> java  25139 fdblahh   30r   REG3,3
> 1214916783806
> /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
> java  25139 fdblahh   31r   REG3,3
> 771226783804
> /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/index_jsp.java
>
> After playing around, it seemed like one of these was
> added if I touched a page then visited it, but not
> every time.  When generating the above list of files,
> it happened about 1 out of every 4 times.  After the
> garbage collector ran, they all disappeared.  Any
> ideas on why these files are being left open?
>
> I'm using jre version 1.5.0 and tomcat 5.5.9.
>

I am interested in a solution to this.I have this problem in win2k,
JDK 1.4.2, Tomcat 5.5.9 and above. Sometimes I can't delete all the
files from work folder.

--
rgds
Anto Paul

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



Problem defining JNDI data source.

2005-09-26 Thread David C. Hicks
I'm having difficulty defining a JNDI data source using C3P0 pooling in 
Tomcat 5.5.9.  Here is the context descriptor for my app:



   verbosity="4" timestamp="true"/>
   reloadable="true" debug="1"/>

   


Here is the resource-ref portion of my application descriptor:

 
 Database Connection
   jdbc/EmsDb
   javax.sql.DataSource
   Container
 

And here is the error I get from Tomcat when deploying the application:
2005-09-27 00:55:33,559 [http-8080-Processor25] ERROR 
JDBCExceptionReporter - Cannot create JDBC driver of class '' for 
connect URL 'null'


It almost seems as if the resource-ref is somehow overriding the 
Resource definition in the application context.

Any suggestions?

Thanks,
Dave


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



Re: Generic Types support in Tomcat?

2005-09-26 Thread Seak, Teng-Fong
Stephan van Loendersloot wrote:

> Seak, Teng-Fong wrote:
>
>>I've received an announcement mail telling that 5.5.12 is in alpha
>> phase!  So what's this story?  Actually, I'm more interested in using
>> the new "for" loop in Java5 than using generic.
>>
> I always like to think that the modularity that comes with Java is one
> of it's greatest features.
>
> Combined with JSP and the recommended MVC model, this leaves me with
> enough options to generate pre-packaged JAR's for  inclusion with my
> web-applications.
>
> I use the latest Eclipse (which does support those features) and I use
> the enhanced for loop and generics a lot, though mostly pre-compiled
> and pre-packaged.
>
> Maybe it's a suitable workaround for you while waiting for the next
> stable Tomcat release.

Yup, I moved some code to compiled classes, but some I can't. 
That's why I've been confused during a whole hour wondering why my jsp
generated lot of errors until at last I made a search on google to find
out that Java5 features aren't support in JSP!!!  Damned!


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



Re: Generic Types support in Tomcat?

2005-09-26 Thread Seak, Teng-Fong
When I first saw the announcement that Tomcat 5.5 needs Java5 to
run, I thought it would supports Java5 features.  But it turns out that
it needs Java5 but not "supports" Java5.  Quite disappointed.  Anyway, I
have to go on with my webapp, so much for it.

Christoph Kutzinski wrote:

> What's what story?
>
> Java 5 features are not supported in latest tomcat stable (5.5.9), but
> are in the latest alphas (5.5.10-5.5.12)
> Just as I said in my previous mail.
>
> Seak, Teng-Fong wrote:
>
>> I've received an announcement mail telling that 5.5.12 is in alpha
>> phase!  So what's this story?  Actually, I'm more interested in using
>> the new "for" loop in Java5 than using generic.
>


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



TC v5.5.12 Broke My Configuration

2005-09-26 Thread Bob Bronson

Hi all,

I've just tried to "upgrade" from TC v5.5.9 to v5.5.12 and it seems my 
(very simple) configuration is now broken.


The following configuration works beautifully under 5.5.9 -- no 
exceptions, no warnings, just utter perfection.


Here's a description of my configuration (BTW, CATALINA_HOME and 
JAvA_HOME are fine, I'm sure they're not causing the problem).


I have CATALINA_BASE set to:
 C:\Projects\Configs\

Within this "Configs" directory I have two sub-directories: "conf" and 
"Engine_01" like this:

  C:\Projects\Configs\
  |
  +-conf\
  +-Engine01\


Within the "conf" directory I have my "server.xml" and the default 
"web.xml" files. Here is the server.xml contents:



 
   
   
 
   
 



Notice I am using an engine named, "Engine_01".

In the "Engine_01" directory I have a context fragment file named, 
"ROOT.xml". Here is its one line contents:

  


In my "server.xml" you'll notice I have my appBase property set to 
"..\Sites\Test 1". Here is the "Sites" directory structure:


  C:\Projects\Sites\
  |
  +-Test 1\
  |
  +-index.html
  +-WEB-INF\
  |
  +-web.xml
  +-classes\
  +-root\


It's all quite simple, I think. When I run under v5.5.9 it is perfect, 
as I said.


Using the EXACT SAME configuration, running under v5.5.12, I see this 
WARNING and EXCEPTION when I start TC:


WARNING: A docBase C:\Projects\Sites\Test 1\. inside the host appBase 
has been specified, and will be ignored
Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext 
resourcesStart

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base 
C:\Projects\Configs\..\Sites\Test 1\ROOT does not exist or is not a 
readable directory
   at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
   at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3777)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3948)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
   at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
   at 
org.apache.catalina.startup.Catalina.start(Catalina.java:536)

   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
Source)

   at java.lang.reflect.Method.invoke(Unknown Source)
   at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
   at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Sep 26, 2005 8:37:22 PM org.apache.catalina.core.StandardContext stop
INFO: Container 
org.apache.catalina.core.ContainerBase.[ENGINE_01].[localhost].[/] has 
not been started
Sep 26, 2005 8:37:23 PM org.apache.coyote.http11.Http11BaseProtocol 
start

INFO: Starting Coyote HTTP/1.1 on http-80
Sep 26, 2005 8:37:23 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 796 ms


So, you can see I have one WARNING and one EXCEPTION. Neither of these 
are present under v5.5.9. What's changed? Is 5.5.12 broke or was v5.5.9 
broke?


In case you are wondering, in response to the above exception I did 
indeed modify my "Sites" directory structure to include an outer "ROOT" 
directory (which I did not have to do with v5.5.9):


  C:\Projects\Sites\
  |
  +-Test 1\
  |
  +-ROOT\
 |
 +-

An error about Tomcat 4.0

2005-09-26 Thread Greece
Hi,Everyone,
 
I am using cewolf to draw chart in Tomcat 4.0. And The program has been run 
successfully, but when I moved the same program file and used JAR file to the 
web server, whose OS is Solorias, there has been appearing the error message as 
below:
 
javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
at 
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:262)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)




root cause 
java.lang.NoClassDefFoundError  at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)  at 
java.lang.Class.newInstance0(Class.java:308) at 
java.lang.Class.newInstance(Class.java:261)  at 
java.beans.Beans.instantiate(Beans.java:204) at 
java.beans.Beans.instantiate(Beans.java:48)  at 
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:72)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)   
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
  at 
org.apache.catalina.core.StandardPipeline.invo

error in the servlet spec v2.4?, not the Session issue!

2005-09-26 Thread Trond Hersløv
Hi,
How precise is the servlet spec v2.4? I guess the spec has been worked over 
many, many times before it is released so probably it is me that has got it 
wrong.

The introduction of srv.5 The Response: ".this information is transmitted 
from the server to the client either by HTTP headers or the message body of the 
request." My question: shouldn't it be ...body of the response?

\trond
 


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


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



'touch'ing jsp files to force recompilation

2005-09-26 Thread steven
I was using the 'touch' command to force a recompile
of some jsp files.  After a while, I checked lsof and
noticed some files being left open:

java  25139 fdblahh   21r   REG3,3  
1214916783806
/home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
java  25139 fdblahh   22r   REG3,3   
741936783810
/home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/company_jsp.java
java  25139 fdblahh   23r   REG3,3   
741936783810
/home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/company_jsp.java
java  25139 fdblahh   24r   REG3,3  
1214916783806
/home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
java  25139 fdblahh   25r   REG3,3  
1214916783806
/home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
java  25139 fdblahh   28r   REG3,3  
1214916783806
/home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
java  25139 fdblahh   29r   REG3,3   
771226783804
/home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/index_jsp.java
java  25139 fdblahh   30r   REG3,3  
1214916783806
/home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
java  25139 fdblahh   31r   REG3,3   
771226783804
/home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/index_jsp.java

After playing around, it seemed like one of these was
added if I touched a page then visited it, but not
every time.  When generating the above list of files,
it happened about 1 out of every 4 times.  After the
garbage collector ran, they all disappeared.  Any
ideas on why these files are being left open?

I'm using jre version 1.5.0 and tomcat 5.5.9.

Thanks for any help.

Steven

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



NullPointerException during error page forward

2005-09-26 Thread Scott Goldstein
I'm running Tomcat 5.0.28 and running into a problem during forward to
the error page.  Specifically, I'm seeing a NullPointerException and I'm
losing the original exception which I'd like to track.

 

When looking into the source code, in JspServlet.service(), I see the
following:

 

try {

String includeUri 

= (String)
request.getAttribute(Constants.INC_SERVLET_PATH);

String requestUri 

= (String)
request.getAttribute(Constants.INC_REQUEST_URI);



String jspUri;



// When jsp-property-group/url-matching is used, and when
the 

// jsp is not defined with , the url

// as to be passed as it is to the JSP container (since 

// Catalina doesn't know anything about the requested JSP 



// The first scenario occurs when the jsp is not directly
under /

// example: /utf16/foo.jsp

if (requestUri != null){

String currentIncludedUri 

=
requestUri.substring(requestUri.indexOf(includeUri));  <--

 

if ( !includeUri.equals(currentIncludedUri) ) {

includeUri = currentIncludedUri;

}

}



...

 

What appears to be happening, is that the requestUri is set to the URI
of the page on which the exception originally occurred and the
includeUri is null.  Therefore, when requestUri.indexOf(includeUri) is
invoked, a NullPointerException occurs.

 

The only info I've been able to find out, is that in PageContextImpl
during the handlePageException() method, forward() is invoked to forward
to the error page.  In the doForward() method, the attribute for the
include uri (Constants.INC_SERVLET_PATH) above is removed.  This leads
to it being null.  However, I don't see the other attribute ever being
removed.

 

So, the question is, what is the expected behavior of these two
attributes?  I believe that they should both be null for a forward (in
this case to the error page), correct?  Is there something that I can do
to avoid this NullPointerException?  Is it a bug which has been resolved
in future releases?

 

Thanks for the information.

 

Scott



CGIservlet strips socket permissions from CGI on windows

2005-09-26 Thread Randy Kunkee
It's a long story about why I'm running a CGI under Tomcat (okay,  
it's an older app, but it plugs nicely into Tomcat authentication).


My Tcl CGI script opens a socket. On Unix, this all works fine.  On  
windows server 2003, the Tcl script returns "invalid argument" when  
the socket command is attempted.


If I run the script from cmd as administrator, it opens the socket  
just fine.
I wrote a short java program to call the script, launched the Tcl  
script from Java, and it opens the socket fine.
I'm running Tomcat 4.1.31 as 'administrator' (perhaps not smart, but  
just testing right now).

I've tried changing the catalina.policy file to:

grant {
  permission java.security.AllPermission;
};

My understanding is that this grants AllPermission to everything.  
Still no joy. Perhaps I'm lost in Windows security land (it's a place  
I don't want to go without a gun). All I wanted to do was open a  
socket from my CGI script.


Can anybody here tell me how to fix this?

Thanks much (in advance),
Randy





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



RE: Tomcat working directory

2005-09-26 Thread Samit Paul
Bill,

Thanks for the insight. But it still didn't work. Also the gui interface
comes with  "Startup/Working Path" disabled.
I could change the path through command line //US//Tomcat5 --StartPath
. Once I do this the GUI interface shows me the Working Path
set to the new one, but the edit box is still disabled. I am actually
upgrading from tomcat 3 to 5.0.28. I could do this in tomcat 3 using
TOMCAT_HOME under wrapper.properties. So I do not know what is the
equivalent for tomcat5. ( I tried setting CATALINE_HOME under environment
variables, but no luck ).

Let me be clear here, All I want to do is when a jsp page is accessed the
following code should show me my working(.) directory as CATALINA_HOME
instead of C:\Windows\System32.

Somefile.jsp
-
<%

System.out.println("Current Dir:" + new File(".").getAbsolutePath());

%>
Thanks again,
~Samit Paul

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Saturday, September 24, 2005 9:43 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Tomcat working directory

The easiest way to to open up the nice GUI (If it isn't in the System-Tray 
or the Start menu, then it's usually at $CATALINA_HOME\bin\tomcat5w.exe), 
open the "Startup" tab, fill-in the "Working Path" box, and click 'OK'. 
Then restart the service.

It's also possible to do this from the command line, but I'll leave that as 
an exercise for people that have actually read the commons-daemon FM.

"Samit Paul" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
> How do I set tomcat-5's working directory to something other than
> C:\Windows\System32 when it is run as windows (XP) service .
> Even if I set CATALINA_HOME to point to the tomcat installation directory 
> it
> doesn't take it.
> Everything works great if I run tomcat from the command line using 
> tomcat's
> startup.bat file.
> Any help would be appreciated.
> ~Samit Paul
>
>
>






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




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



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



Re: isapi_redirector and danish chars

2005-09-26 Thread Mark Thomas

Michael Salmon wrote:

Hi everybody

 


I have a problem with Isapi_redirector and danish chars. I have a webapp
downloading files with special Danish chars in the filename. Everything
woks fine when Tomcat is doing the hole show, but when I do the same
thing through IIS and isapi_redirector I get and error.

 


Any help would be appreciated.


Some version numbers would be a start...



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



Re: Need to contact mailing list admin regarding delivery issues

2005-09-26 Thread Mark Thomas

As per the welcome e-mail you received when you subscribed:

[EMAIL PROTECTED]

David Delbecq wrote:

Hello,

I need to contact the admin of this mailing list regarding delivery
issues with it.
Please cc: your reply to david.delbecq at myrealbox.com to ensure delivery.


Thanks.



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








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



Re: Protecting applications in Tomcat using Directory Server

2005-09-26 Thread Mark Thomas

Surya Mishra wrote:

Thank You Mark,
My Tomcat server won't even start if the directory server is unreachable.
That means other applications that have not protected are also failing.
Second question: There is no attribute in the Realm definition to give a
name to realm (as per the how-to document.

Realm names are defined in web.xml


How do I configure different
realms for different applications?

You can nest realms inside contexts.

What is the default realm name for the

tomcat-users.xml?

It depends. Test your setup with basic auth and find out.

I want the manager application to run using the default

tomcat-users.xml. Another application is to be protected using JNDI realm. A
third one is public meaning nothing is protected in that application.

Set realms at the context level.

Mark



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



Re: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Steve Dodge

Mike,

Doing this with pure J2EE Servlet  code, I would use three components.  
First, use the Context Listener to check the Database on start up, if no 
DB connectivity set a ApplicationContext attribute to that effect.  The 
second part would be a javax.servlet.Filter which checks the status of 
the ApplicationContext attribute forwarding to an error page if the 
attribute indicates database connectivity issues.  Third, instead of 
just a String, I'd use a self-updating object as the attribute in the 
ApplicationContext.  This self updating object runs an internal timer 
thread which tests connectivity at a fixed interval setting the DB 
status to up or down.  This third component is optional.


Regarding your issue not wanting to start certain servlets if the 
Database is down, you could carry out a DB connectivity test in the base 
class to all your servlets, skipping initialization if no connectivity.


Steve

Mike Miller wrote:

Hi, 


I am looking for options to prevent my web application from being
available if our database is not available. I've used context listeners
in the past, but since you can return a bad return code they don't like
the cleanest approach.  




I have tried registering a context listener and then throwing a
RuntimeException if the database is not available but that seems like a
kludge.

Any other options?



Thanks in advance,

Mike


 




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



AW: jconsole & security manager

2005-09-26 Thread Pfingstl Gernot
Thanks for the reply,

I got it running, but I don't understand it, maybe you can help me:

Giving following permission to my tomcat (5.5.9)
grant {
   permission javax.management.MBeanPermission "*", "*";
   permission java.lang.management.ManagementPermission "monitor";
   permission java.util.PropertyPermission "java.class.path", "read";
   permission java.util.PropertyPermission "java.library.path", "read";
   permission java.net.SocketPermission "intranet-lx1", "resolve";
};
and I can monitor my tomcat with jconsole. But this means I give the above 
permissions to all jars & webapps on my tomcat. So guessed, giving these 
permissions only to $JAVA_HOME jars (lib, lib/ext) and tomcat jars 
(common,server,bin) should have the same result - but no I got a security 
excpetion:

access: access denied (javax.management.MBeanPermission 
sun.management.RuntimeImpl#-[java.lang:type=Runtime] isInstanceOf)
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1158)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:253)
at 
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1707)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isInstanceOf(DefaultMBeanServerInterceptor.java:1328)
at 
com.sun.jmx.mbeanserver.JmxMBeanServer.isInstanceOf(JmxMBeanServer.java:1074)
at 
com.sun.jmx.remote.security.MBeanServerAccessController.isInstanceOf(MBeanServerAccessController.java:439)
at 
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1414)
at 
javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
at 
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
at java.security.AccessController.doPrivileged(Native Method)
at 
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)

And now I was surprised - all the packaeges in the stack trace (above 
doPrivileged) are contained in rt.jar, which do have AllPermission (and 
additional permissions described above - for the paranoid)!!

Why can the above access denied exception occur??
This excpetion is also thrown, when no webapp is deployed - this means that 
only $JAVA_HOME & tomcat core jars are found and loaded and all of these jars 
does have AllPermission?!

I'm confused,
Gernot

-Ursprüngliche Nachricht-
Von: Peter Rossbach [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 18. September 2005 10:55
An: Tomcat Users List
Betreff: Re: jconsole & security manager


You can find detail information here:
http://java.sun.com/j2se/1.5.0/docs/api/javax/management/MBeanPermission.html

Very simple config example:
http://mx4j.sourceforge.net/docs/ch03s10.html

Peter


Pfingstl Gernot schrieb:

>I like to monitor my tomcat 5.5 (running on jdk 1.5.0) with jconsole.
>If I run tomcat without security manager everything works well.
>If I run tomcat with security manager, monitoring the tomcat mbeans works well 
>- but jconsoles memory view doensn't work!
>Sun's doc says: "If your application runs a security manager, then additional 
>permissions are required in the security permissions file."
>
>But I have not found which permissions are required?
>
>Has somebody have solved this?
>Which permissions are required?
>
>Thanks,
>Gernot
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>  
>


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




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



RE: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Mike Miller
Thanks for the replies - several suggested filters.  I guess I have two
concerns with that approach:

1) Since this doesn't happen very often, I'm not sure I want to add
additional processing to EVERY request processed by the system.  I may
be wrong and it may not be much extra?

2) we have several servlets that are init'd in a specific order.  If the
database is not available, I don't even want them to be called.  If I
used a filter, I guess I could just configure the same filter to each
servlet...


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 26, 2005 1:22 PM
To: Tomcat Users List
Subject: Re: Options to prevent web app from being available if DB not
available?

Servlet filter.

The filter can check the database status on init. Then the filter could
be 
made smart enough to let all traffic through if the database comes back
to 
life. (or conversely also goes away)

-Tim

Mike Miller wrote:

> Hi, 
> 
> I am looking for options to prevent my web application from being
> available if our database is not available. I've used context
listeners
> in the past, but since you can return a bad return code they don't
like
> the cleanest approach.  
> 
>  
> 
> I have tried registering a context listener and then throwing a
> RuntimeException if the database is not available but that seems like
a
> kludge.
> 

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


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



Re: Problems setting up Webdav folder on Tomcat 5.5

2005-09-26 Thread David Goodenough
On Monday 26 September 2005 16:51, David Goodenough wrote:
> I am trying to set up a webdav application on a machine running Tomcat 5.5.
>
> The effect I want to create is that anyone can use
> http:
> to read files, but only those who have logged on should be able to use
> webdav to create, update or delete files from the folder.
>
> I tried to do this by copying the web.xml file from the webdav WEB-INF
> folder into the /WEB-INF directory, and also creating a Context file
> in conf/Catalina/localhost/>.xml as I want to authenticate those who
> are having to log on against a database (using JDBCRealm).
>
> But having set all this up I have obviously got something messed up as in
> catalina.out it complains about a NullPointerException, and says the
> problem happened while processing the default web.xml, at line 5 row 56. 
> Now I take it that this is actually NOT refering to the default web.xml in
> the conf directory, as it is only this application that is hit (the others
> including the webdav one initialise correctly).  I assume it is actually
> refering to the one for this webapp.  But what is odd is that line 5 is in
> the middle of a comment, which my xml editor says is quite correctly
> formed.
>
> It is a shame that when putting out such messages the real file name
> that it is processing is not included, and the line of text it is parsing
> is not included.
>
> The other thing that is odd is that the call stack trace suggests that it
> is not the web.xml file it is processing, but rather then context file.  I
> assume this out because it talks about functions called:-
>
> org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfi
>g.java:778)
> org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:
>718) org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:974)
>
> If it is my context file, that does have something to parse at line 5, and
> it reads:-
>
> 
>driverName="org.postgresql.Driver"
>  connectionURL="jdbc:postgresql:authority" connectionName="david"
> connectionPassword=""
>  userTable="users" userNameCol="user_name" userCredCol="user_pass"
>  userRoleTable="roles" roleNameCol="role_name">
> 
>   
>
> and for the life of me I can not see what is wrong with line 5 of that -
> although that is the last line so perhaps it is just an error somewhere in
> the Realm tag.  The Postgresql driver is in common/lib, the db exists and
> has those tables and columns in them.
>
> Any ideas?
>
> David
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Well it would seem that my suspicions are correct, the problem is with
the context file, not the web.xml file.  If I comment out the Realm in the
context file the problem goes away.  I suspect that if it having problems
loading one of the two classes mentioned, JDBCRealm or the JDBC driver.
But I can not tell which.  Both are in JARs in the server/lib directory.  Any
idea how I debug it.

David

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



RE: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Arup Vidyerthy
Haven't really thought it through as I just woke up :-) 

However, I don't see why couldn't write a filter that filters all request.
It checks the DB connection and if it isn't there it just simply forwards
the user to an appropriate page.

As to making the whole web app unavailable - I am not sure dude.

Arup 

-Original Message-
From: Mike Miller [mailto:[EMAIL PROTECTED] 
Sent: 26 September 2005 19:18
To: tomcat-user@jakarta.apache.org
Subject: Options to prevent web app from being available if DB not
available?

Hi, 

I am looking for options to prevent my web application from being available
if our database is not available. I've used context listeners in the past,
but since you can return a bad return code they don't like the cleanest
approach.  

 

I have tried registering a context listener and then throwing a
RuntimeException if the database is not available but that seems like a
kludge.

Any other options?

 

Thanks in advance,

Mike




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



Re: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Tim Funk

Servlet filter.

The filter can check the database status on init. Then the filter could be 
made smart enough to let all traffic through if the database comes back to 
life. (or conversely also goes away)


-Tim

Mike Miller wrote:

Hi, 


I am looking for options to prevent my web application from being
available if our database is not available. I've used context listeners
in the past, but since you can return a bad return code they don't like
the cleanest approach.  

 


I have tried registering a context listener and then throwing a
RuntimeException if the database is not available but that seems like a
kludge.



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



Options to prevent web app from being available if DB not available?

2005-09-26 Thread Mike Miller
Hi, 

I am looking for options to prevent my web application from being
available if our database is not available. I've used context listeners
in the past, but since you can return a bad return code they don't like
the cleanest approach.  

 

I have tried registering a context listener and then throwing a
RuntimeException if the database is not available but that seems like a
kludge.

Any other options?

 

Thanks in advance,

Mike



Re: Why doesn't my context work?

2005-09-26 Thread Michael Sullivan
On Sun, 2005-09-25 at 23:21 -0700, Mark Eggers wrote:
> --- Michael Sullivan <[EMAIL PROTECTED]> wrote:
>  
> > Right now I use symlinks
> > to my individual
> > users' website directories, but now that I've
> > discovered Alias I'll
> > probably switch completely to using Aliases.
> 
> Good.  
> > I
> > created a test Alias
> > point to the ~/webspace/webapps directory in my
> > personal account, but I
> > can't seem to JkMount it, and I can't figure out
> > why.  Here is the
> > mod_jk portion of my httpd.conf file:
> > 
> > #mod_jk stuff
> > 
> > LoadModule jk_module
> > modules/mod_jk.so
> > 
> > JkMount /*.jsp wrkr
> 
> I think your JSP JkMount line will only get
> /*.jsp.  It won't match /*/*.jsp. 
> I think you'll need another line in there that says:
> 
> JkMount /*/*.jsp wrkr
> 
> > JkMount /servlet/* wrkr
> 
> You will probably have the same issue with the servlet
> matching.  Try this instead:
> 
> JkMount /*/servlet/* wrkr
> 
> Good idea here.
> 
> > # Deny direct access to WEB-INF
> > 
> >AllowOverride None
> >deny from all
> > 
> 
> Good start.
> 
> > Alias /michael /home/michael/webspace/webapps
> 
> I would probably change some of the Directory
> directives.  Since this lives outside your normal
> DocumentRoot, this Directory is not going to inherit
> the permissions you gave to DocumentRoot.
> 
> Something like the following might work better:
> 
> 
>   Options Indexes
>   Allow Override None
>   Order allow,deny
>   Allow from all
> 
> 
> > 
> > Options FollowSymLinks
> > AllowOverride None
> > 
> 
> I tend to put the Directory and Aliases before the
> JkMount statement, if I do that, then I can do the
> following:
> 
> Alias /michael /home/michael/webspace/webapps
> 
>   Options Indexes
>   Allow Override None
>   Order allow,deny
>   Allow from all
> 
> 
> JkMount /michael/*.jsp wrkr
> JkMount /michael/*/*.jsp wrkr
> JkMount /michael/*/servlet/* wrkr
> 
> Finally, make sure the user Tomcat is running as has
> read access to everything in
> /home/michael/webspace/webapps.
> 
> If there are a lot of applications, you can group all
> the  directives, followed by all the Alias
> directives, followed by all the JkMount statements.
> 
> Another way to organize your httpd.conf file is by
> application.  In other words, for each application:
> 
> 
>   # directory directives
> 
> Alias / /
> JkMount //*.jsp 
> JkMount //servlet/* 
> 
> I'm away from my system right now, but I think either
> of these methods should work fine.
> 
> The ugly thing about doing it this way is that every
> time you add a new user, you'll have to update Apache,
> which means you'll have to stop and start the server.
> 
> If you could get the user directory idea to work, then
> everything would just "happen".
> 
> HTH
> 
> /mde/


Here is my updated mod_jk section in /etc/apache2/httpd.conf:

#mod_jk stuff

LoadModule jk_module modules/mod_jk.so

JkMount /*.jsp wrkr
JkMount /*/*.jsp wrkr
JkMount /servlet/* wrkr
JkMount /*/servlet/* wrkr
# Deny direct access to WEB-INF

   AllowOverride None
   deny from all

Alias /michael /home/michael/webspace/webapps

Options Indexes
AllowOverride None
Order allow,deny
Allow from all


JkMount /michael/*.jsp wrkr
JkMount /michael/*/*.jsp wrkr
JkMount /michael/*/servlet/* wrkr


It still doesn't work.  Everything in the directory tree from /home
to /home/michael/webspace/webapps/colors.jsp is all readable/executable.
I don't know why this isn't working.  www.espersunited.com/index.jsp
still works though, but www.espersunited.com/michael/colors.jsp gives me
Tomcat 404.


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



RE: What to put into JAVA_HOME on Windows xp

2005-09-26 Thread Ramnish Kalsi
Remove bin from the JAVA_HOME. 

JAVA_HOME=C:\JDK1.4\AppServer\jdk

-ramnish.
-Original Message-
From: Markus Hapke [mailto:[EMAIL PROTECTED] 
Sent: 25 September 2005 21:27
To: tomcat-user@jakarta.apache.org
Subject: What to put into JAVA_HOME on Windows xp

Hello,

I just installed tomcat 5.0.28 successfully.

Then tested the samples in
C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked.

Thed tried to test a .jsp of my own- getting the error msg in the MS
Internet-Explorer:
=== BEGIN of error Msg  HTTP
Status 500 - 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:97)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
46)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
11)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the
JDK

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C
ompilerAdapterFactory.java:106)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
11)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.28 logs.
=== END of error Msg= ==

I set the environment entry of JAVA_HOME to C:\JDK1.4\AppServer\jdk\bin

Is that correct?

OK, nobody of you could know where I have my J2EE (1.4) :
it is 'mounted' under:
C:\JDK1.4\AppServer
and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin

Is my entry of the JAVA_HOME correct? 

Is there another error?

Thanx in advance, Markus

--
,,

5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



Re: Question about tomcat startup ConcurrentModificationException

2005-09-26 Thread Tim Funk
Search bugzilla.  There is a bug report about ConcurrentModificationException 
- it has to do with mx4j having a race condition. The bug describes a fix.


-Tim

Maurice Yarrow wrote:


Hello Tomcat people

When tomcat is restarted, it occasionally (1 in 25 times)
gets the below exception.  (tomcat 5.0.28, on Fedora Core 1)

What is the significance of this?

Thanks
Maurice


INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 26, 2005 9:29:19 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Sep 26, 2005 9:29:19 AM org.apache.coyote.tomcat5.MapperListener init
WARNING: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at 
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at 
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160 


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



Multiple realms in Tomcat

2005-09-26 Thread Surya Mishra
My Tomcat server doesn't start if the JNDI realm fails to load (due to
unavailability of the directory server). I want the server to start properly
and serve the unprotected applications at least. Is there a way to specify
multiple realms so that different applications can use different realms for
authentication?
 Thanks
-Surya


Question about tomcat startup ConcurrentModificationException

2005-09-26 Thread Maurice Yarrow

Hello Tomcat people

When tomcat is restarted, it occasionally (1 in 25 times)
gets the below exception.  (tomcat 5.0.28, on Fedora Core 1)

What is the significance of this?

Thanks
Maurice


INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 26, 2005 9:29:19 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Sep 26, 2005 9:29:19 AM org.apache.coyote.tomcat5.MapperListener init
WARNING: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at 
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at 
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603)
at 
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at 
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at 
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at 
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:489)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


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



Re: connecting httpd with Tomcat

2005-09-26 Thread Tim Funk

development on  mod_jk2 has been abandoned, not mod_jk

-Tim

Dale, Matt wrote:


JK 1.2.13 is the latest mod_jk and the one you should use. Development on 
mod_jk has been abandoned due to lack of developer interest and most of the 
features backported to JK.

 


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



Re: tomcat start exception

2005-09-26 Thread Jun Zhu
Thanks very much for your big help. After adding the attribute,
catalina.out has no exception when server startup. But the same
exception now is appearing when server shutdown. In addition, if I try
to access server's manager page, catalina.out records exception as:
An exception or error occurred in the container during the
request processing
 java.lang.NoSuchFieldError: debug

I still unable to access the manager page, just a broken link. Do you
have some ideal of that?  


Julia

>>>  9/25/2005 3:29:12 PM >>>
If you add the attribute channelSocket.soLinger="-1" to your AJP/1.3 
 element in server.xml, it should make the error go away. 
It's 
beyond me why Sun has decided to throw an exception here.

"Jun Zhu" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I have a Tomcat5.5.9 server that works fine with JDBCRealm. I am
trying
> to configure a customRealm for the sever. The customRealm.jar file
was
> placed in the directory of $Tomcat_Home/server/lib. The realm in the
> server.xml has been defined as:
>
>connectionName=""
>   connectionPassword="XXX"
>
>
connectionURL="jdbc:mysql://oscar.acesag.auburn.edu:3306/authenticate"
>   driverName="org.gjt.mm.mysql.Driver"
>   roleNameCol="role_name"
>   userCredCol="user_pass"
>   userNameCol="user_name"
>   userRoleTable="tomcat_user_roles"
>   userTable="tomcat_users"
>   validate="true" />
>
> After starting tomcat, I can see tomcat page via IE browser, but
when
> click on Tomcat Manager, just got a blank page.
> I got exception in catalina.out as:
>WARNING: Exception executing accept
>java.net.SocketException: Invalid argument
>at java.net.PlainSocketImpl.socketSetOption(Native Method)
>at
> java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
>at java.net.Socket.setSoLinger(Socket.java:869)
>at
> org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
>at
>
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.j$
>at
> org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:852)
>at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread$
>at java.lang.Thread.run(Thread.java:595)
>
> In most case this exception means  "The server is not running
(nobody
> is listening on the specified port)" or "The host is not reachable".
>
> Is there any additional configuration I missed? How to fix this
> problem? Please help.
>
> Julia Zhu 




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



isapi_redirector and danish chars

2005-09-26 Thread Michael Salmon
Hi everybody

 

I have a problem with Isapi_redirector and danish chars. I have a webapp
downloading files with special Danish chars in the filename. Everything
woks fine when Tomcat is doing the hole show, but when I do the same
thing through IIS and isapi_redirector I get and error.

 

Any help would be appreciated.

 

 

Regrads

Michael Salmon



RE: connecting httpd with Tomcat

2005-09-26 Thread Dale, Matt

JK 1.2.13 is the latest mod_jk and the one you should use. Development on 
mod_jk has been abandoned due to lack of developer interest and most of the 
features backported to JK.


-Original Message-
From: Peter Menzel [mailto:[EMAIL PROTECTED]
Sent: 26 September 2005 16:53
To: Tomcat Users List
Subject: connecting httpd with Tomcat


Hello tomcat users,

I am trying to connect my Apache httpd 2.0.50 on SuSE 9.2 with a Tomcat 
5.5.9.
Actually I cannot figure out which Connector to use.
I read about mod_jk, mod_jk2 and came to the Tomcat Connectors project, 
which provides JK 1.2.13 and JK 2.0.4.

I tried JK 2.0.4. Is this the same as mod_jk2? It was not pretty stable, 
only a bunch of requests came through..
Is JK 1.2.13 the same as mod_jk?
But mod_jk2 should have replaced mod_jk, while they say that JK 2.0.4 is 
deprecated ?

I am totally confused about all the similiar names for different(?) stuff?

Which one is now the right one for my task?

Can anybody bring to the good side of the force?

Regards, Peter Menzel


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


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



connecting httpd with Tomcat

2005-09-26 Thread Peter Menzel

Hello tomcat users,

I am trying to connect my Apache httpd 2.0.50 on SuSE 9.2 with a Tomcat 
5.5.9.

Actually I cannot figure out which Connector to use.
I read about mod_jk, mod_jk2 and came to the Tomcat Connectors project, 
which provides JK 1.2.13 and JK 2.0.4.


I tried JK 2.0.4. Is this the same as mod_jk2? It was not pretty stable, 
only a bunch of requests came through..

Is JK 1.2.13 the same as mod_jk?
But mod_jk2 should have replaced mod_jk, while they say that JK 2.0.4 is 
deprecated ?


I am totally confused about all the similiar names for different(?) stuff?

Which one is now the right one for my task?

Can anybody bring to the good side of the force?

Regards, Peter Menzel


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



Problems setting up Webdav folder on Tomcat 5.5

2005-09-26 Thread David Goodenough
I am trying to set up a webdav application on a machine running Tomcat 5.5.

The effect I want to create is that anyone can use 
http:
to read files, but only those who have logged on should be able to use webdav
to create, update or delete files from the folder.

I tried to do this by copying the web.xml file from the webdav WEB-INF folder
into the /WEB-INF directory, and also creating a Context file in 
conf/Catalina/localhost/>.xml as I want to authenticate those who are
having to log on against a database (using JDBCRealm).

But having set all this up I have obviously got something messed up as in 
catalina.out it complains about a NullPointerException, and says the problem
happened while processing the default web.xml, at line 5 row 56.  Now I take 
it that this is actually NOT refering to the default web.xml in the conf 
directory, as it is only this application that is hit (the others including 
the webdav one initialise correctly).  I assume it is actually refering to
the one for this webapp.  But what is odd is that line 5 is in the middle
of a comment, which my xml editor says is quite correctly formed.

It is a shame that when putting out such messages the real file name
that it is processing is not included, and the line of text it is parsing is
not included.

The other thing that is odd is that the call stack trace suggests that it is
not the web.xml file it is processing, but rather then context file.  I
assume this out because it talks about functions called:-

org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:778)
org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:718)
org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:974)

If it is my context file, that does have something to parse at line 5, and it 
reads:-


  

  

and for the life of me I can not see what is wrong with line 5 of that -
although that is the last line so perhaps it is just an error somewhere in the
Realm tag.  The Postgresql driver is in common/lib, the db exists and has 
those tables and columns in them.

Any ideas?

David


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



Re: HTTP trace

2005-09-26 Thread Tim Funk

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

See the allowTrace option

-Tim

Wilding, Gregory wrote:


Does anybody know how to disable HTTP trace within Tomcat

Thanks
 


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



Re: What to put into JAVA_HOME on Windows xp

2005-09-26 Thread Seak, Teng-Fong

   I remember when I was using Tomcat 5.0.x.  It was giving me
headaches!  After changing JAVA_HOME, it was still necessary to do a
"service remove" and then "service install", or else Tomcat won't take
that into account.

   Try Tomcat 5.5.  You don't need to declare JAVA_HOME anymore, and
you could use the configure console to point Tomcat to the correct JRE.

Jan Fredrik Fallsen wrote:

>your java home is C:\jsdk1\Àppserver\jdk
>
>-Original Message-
>From: Arthur D'Alessandro [mailto:[EMAIL PROTECTED]
>Sent: 26. september 2005 00:16
>To: Tomcat Users List
>Subject: Re: What to put into JAVA_HOME on Windows xp
>
>Move it up one level, in your case:
>C:\JDK1.4\AppServer\jdk
>
> On 9/25/05, Markus Hapke <[EMAIL PROTECTED]> wrote:
>
>
>>Hello,
>>
>>I just installed tomcat 5.0.28 successfully.
>>
>>Then tested the samples in
>>C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked.
>>
>>Thed tried to test a .jsp of my own- getting the error msg in the
>>MS Internet-Explorer:
>>=== BEGIN of error Msg 
>>HTTP Status 500 -
>>
>>type Exception report
>>
>>message
>>
>>description The server encountered an internal error () that prevented it
>>from fulfilling this request.
>>
>>exception
>>
>>org.apache.jasper.JasperException: Unable to compile class for
>>JSP
>>org.apache.jasper.compiler.DefaultErrorHandler.javacError(
>>DefaultErrorHandler.java:97)
>>org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java
>>:346)
>>org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
>>:511)
>>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
>>:295)
>>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>root cause
>>
>>Unable to find a javac compiler;
>>com.sun.tools.javac.Main is not on the classpath.
>>Perhaps JAVA_HOME does not point to the
>>JDK
>>org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler
>>(CompilerAdapterFactory.java:106)
>>org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
>>org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
>>org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
>>:511)
>>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
>>:295)
>>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>note The full stack trace of the root cause is available in the Apache
>>Tomcat/5.0.28 logs.
>>=== END of error Msg= ==
>>
>>I set the environment entry of JAVA_HOME to
>>C:\JDK1.4\AppServer\jdk\bin
>>
>>Is that correct?
>>
>>OK, nobody of you could know where I have my J2EE (1.4) :
>>it is 'mounted' under:
>>C:\JDK1.4\AppServer
>>and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin
>>
>>Is my entry of the JAVA_HOME correct?
>>
>>Is there another error?
>>
>>Thanx in advance, Markus
>>
>>--
>>,,
>>
>>


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



HTTP trace

2005-09-26 Thread Wilding, Gregory
Does anybody know how to disable HTTP trace within Tomcat

Thanks


> Gregory Wilding 
> EDS Business Exchange Services 
> Abney Park 
> Manchester Road 
> Cheadle 
> Cheshire SK8 2PD 
> Tel   +44 (0) 161 495 3488 
> Fax +44(0) 161 428 5009 
>  
> 
> 


Re: change path of the session cookie

2005-09-26 Thread cristi

Many thanks Tim

Cristi




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

emptySessionPath="true"

-Tim

cristi wrote:


Hello all

Is there any possibility of changing the path of the
session cookie ?



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



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



Re: change path of the session cookie

2005-09-26 Thread Tim Funk


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

emptySessionPath="true"

-Tim

cristi wrote:


Hello all

Is there any possibility of changing the path of the
session cookie ?



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



RE: change path of the session cookie

2005-09-26 Thread Raghupathy,Gurumoorthy
Why do you want it ?

-Original Message-
From: cristi [mailto:[EMAIL PROTECTED] 
Sent: 26 September 2005 14:12
To: Tomcat Users List
Subject: change path of the session cookie


Hello all

Is there any possibility of changing the path of the
session cookie ?

Thx.
Cristi Z.


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

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



change path of the session cookie

2005-09-26 Thread cristi

Hello all

Is there any possibility of changing the path of the
session cookie ?

Thx.
Cristi Z.


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



An error about Tomcat 4.0

2005-09-26 Thread Greece
Hi,Everyone,
 
I am using cewolf to draw chart in Tomcat 4.0. And The program has been run 
successfully, but when I moved the same program file and used JAR file to the 
web server, whose OS is Solorias, there has been appearing the error message as 
below:
 
javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
at 
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:262)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)




root cause 
java.lang.NoClassDefFoundError  at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)  at 
java.lang.Class.newInstance0(Class.java:308) at 
java.lang.Class.newInstance(Class.java:261)  at 
java.beans.Beans.instantiate(Beans.java:204) at 
java.beans.Beans.instantiate(Beans.java:48)  at 
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:72)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)   
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apach

Need to contact mailing list admin regarding delivery issues

2005-09-26 Thread David Delbecq
Hello,

I need to contact the admin of this mailing list regarding delivery
issues with it.
Please cc: your reply to david.delbecq at myrealbox.com to ensure delivery.


Thanks.



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



RE: What to put into JAVA_HOME on Windows xp

2005-09-26 Thread Jan Fredrik Fallsen
your java home is C:\jsdk1\Àppserver\jdk

-Original Message-
From: Arthur D'Alessandro [mailto:[EMAIL PROTECTED] 
Sent: 26. september 2005 00:16
To: Tomcat Users List
Subject: Re: What to put into JAVA_HOME on Windows xp

Move it up one level, in your case:
C:\JDK1.4\AppServer\jdk

 On 9/25/05, Markus Hapke <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I just installed tomcat 5.0.28 successfully.
>
> Then tested the samples in
> C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked.
>
> Thed tried to test a .jsp of my own- getting the error msg in the
> MS Internet-Explorer:
> === BEGIN of error Msg 
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Unable to compile class for
> JSP
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(
> DefaultErrorHandler.java:97)
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java
> :346)
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
> :511)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :295)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
> root cause
>
> Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the
> JDK
> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler
> (CompilerAdapterFactory.java:106)
> org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
> org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
> :511)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :295)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.0.28 logs.
> === END of error Msg= ==
>
> I set the environment entry of JAVA_HOME to
> C:\JDK1.4\AppServer\jdk\bin
>
> Is that correct?
>
> OK, nobody of you could know where I have my J2EE (1.4) :
> it is 'mounted' under:
> C:\JDK1.4\AppServer
> and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin
>
> Is my entry of the JAVA_HOME correct?
>
> Is there another error?
>
> Thanx in advance, Markus
>
> --
> ,,
>
> 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> +++ GMX - die erste Adresse für Mail, Message, More +++
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
-Art D'Alessandro


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



Re: tomcat exception handling

2005-09-26 Thread James Cowan

thanks. that is what I am looking for.

James

- Original Message - 
From: "Alon Belman" <[EMAIL PROTECTED]>
To: "Tomcat Users List" ; "James Cowan"
<[EMAIL PROTECTED]>
Sent: Friday, September 23, 2005 10:41 PM
Subject: Re: tomcat exception handling


you want to define an error page in your web.xml. try adding something like
the following:


500
/yourErrorPage.html


On 9/23/05, James Cowan <[EMAIL PROTECTED]> wrote:
>
>
> thanks for the reply.
>
> I tried that but it does not seem to make any difference.
>
> what version of tomcat are you using?
>
> James
> - Original Message -
> From: "Jilles van Gurp" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Thursday, September 22, 2005 5:33 PM
> Subject: Re: tomcat exception handling
>
>
> > swallowoutput=true in your context should help
> >
> > Jilles
> >
> > James Cowan wrote:
> > > Hi
> > >
> > > How do I suppress the stack trace from exception handling globally (
> i.e.
> not
> > > using an errorPage directive)?
> > >
> > > I have tried setting the Verbosity of the Logger elements in the
> server.xml
> > > (for Tomcat 5.0.28) to 0 but this does not seem to stop stack trace.
> > >
> > > A simple jsp like this:
> > >
> > > <%
> > > if (true)
> > > throw new Exception("Some exception");
> > > %>
> > >
> > > produces this output:
> > > exception
> > >
> > > javax.servlet.ServletException: Some exception
> > >
> > >
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException
> (PageContextI
> > > mpl.java:825)
> > >
> org.apache.jasper.runtime.PageContextImpl.handlePageException
> (PageContextImp
> > > l.java:758)
> > > org.apache.jsp.e_jsp._jspService(e_jsp.java:53)
> > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > >
> > >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :3
> > > 24)
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
> :292)
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > >
> > > I just want the HTTP 500 error displayed and no more information.
> > >
> > > James Cowan
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: Generic Types support in Tomcat?

2005-09-26 Thread Christoph Kutzinski

What's what story?

Java 5 features are not supported in latest tomcat stable (5.5.9), but 
are in the latest alphas (5.5.10-5.5.12)

Just as I said in my previous mail.

Seak, Teng-Fong wrote:

I've received an announcement mail telling that 5.5.12 is in alpha
phase!  So what's this story?  Actually, I'm more interested in using
the new "for" loop in Java5 than using generic.

Christoph Kutzinski wrote:



Hi,

it is only since 5.5.10
5.5.10 was already released, but it is only supposed to be "alpha".
I.e. not recommended for production use.
I have no idea, when the next stable tomcat version will be released


Christoph





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




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