Re: prevent directory list

2008-05-11 Thread Hassan Schroeder
On Sat, May 10, 2008 at 12:24 PM, Dave [EMAIL PROTECTED] wrote:

  I tried to prevent directory listing by adding the following in web.xml,

adding? That's in web.xml already, and the listings default is false
in every TC version I've got laying around :-)

Why do you think you need to add anything?

-- 
Hassan Schroeder  [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: [newbie] Unable to find a javac compiler;

2008-05-11 Thread sakari . aaltonen

Lainaus Caldarale, Charles R [EMAIL PROTECTED]:


As Hassan suggested, look in your logs.  I just installed JSPWiki 2.6.2
on a Windows box without problem.  However, when I did the same on an
OpenSUSE system, the JSPWiki webapp died with SEVERE: Error
filterStart and a couple of NullPointerExceptions.  Looks a bit buggy
to me.



One problem solved, or, at least I get to the JSPWiki Installer page now.

What finally worked was restarting Tomcat (no, I don't know why.) That  
is, after putting JSPWiki.war into $CATALINA_HOME/webapps, I shutdown,  
then started, Tomcat. Then, browsing to  
http://localhost:8080/JSPWiki/Install.jsp had the intended result.



Sakari Aaltonen   (OpenSUSE 10.3, Tomcat 6.0.16, JSPWiki 2.6.2)





-
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: [newbie] Unable to find a javac compiler;

2008-05-11 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: RE: [newbie] Unable to find a javac compiler;
 
 What finally worked was restarting Tomcat (no, I don't know why.)

Hmmm - that doesn't work for me on OpenSUSE.  I'm still getting this
error at startup:

May 11, 2008 12:49:55 PM org.apache.catalina.core.StandardContext
filterStart
SEVERE: Exception starting filter WikiServletFilter
com.ecyrd.jspwiki.InternalWikiException: No wiki engine, check logs.
at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:340)
at
com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:55)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:275)
   ...

But since yours is working, I guess we're done.

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



static method to get servlet context

2008-05-11 Thread Nilesh Bansal
hi all,

I want to know if Tomcat (servlet api) provides some way by which a
Java method can get session information or page context associated
with the current executing thread?

Inside a JSP or a class implementing HttpServlet, one can easily get
the page context and session information. But is there some static
helper function which can return the same information for the current
executing thread? I don't want to pass the pageContext as an
additional variable to all method calls in JSP.

DWR for example provides the following for all DWR requests:
WebContext webContext = WebContextFactory.get();  // get() is a static function
HttpSession session = webContext.getHttpServletRequest().getSession();

thanks
Nilesh

-- 
Nilesh Bansal

-
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: session.getMaxInactiveInterval() always returns default?

2008-05-11 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

[EMAIL PROTECTED] wrote:
| Sorry - wrong title obviously...

... and wrong thread. Please post to a new thread instead of hijacking
an old one.

- -chris

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

iEYEARECAAYFAkgnj2AACgkQ9CaO5/Lv0PBuaACfYy9Cz4Xb5/LIrtAUgagSBfMs
NUcAn2Cfu4+iPRZXHe3hOsCwkDDZZJI7
=EdoE
-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: static method to get servlet context

2008-05-11 Thread Bill Barker

Nilesh Bansal [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 hi all,

 I want to know if Tomcat (servlet api) provides some way by which a
 Java method can get session information or page context associated
 with the current executing thread?

The short answer is no:  Tomcat out-of-the-box doesn't provide this type of 
functionality

 Inside a JSP or a class implementing HttpServlet, one can easily get
 the page context and session information. But is there some static
 helper function which can return the same information for the current
 executing thread? I don't want to pass the pageContext as an
 additional variable to all method calls in JSP.

Long answer:  There is nothing to prevent you from creating you a static 
ThreadLocal and storing whatever information you need in that.  If you don't 
actually need the pageContext, then a simple Filter could be used to set 
this information up.

 DWR for example provides the following for all DWR requests:
 WebContext webContext = WebContextFactory.get();  // get() is a static 
 function
 HttpSession session = webContext.getHttpServletRequest().getSession();

 thanks
 Nilesh

 -- 
 Nilesh Bansal

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



Tomcat installation on Windows - different install directory than default

2008-05-11 Thread Doom Dog

I'd like to launch the Tomcat installation on Windows, silently, so that I can 
install it in a different directory than the usual   \Program Files\Apache 
Software Foundation\Tomcat 5.5,  is there a way of passing the alternate 
directory on the command line to the installer in silent mode?

Thanks for your feedback !!
_
With Windows Live for mobile, your contacts travel with you.
http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_Refresh_mobile_052008
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[newbie] Error starting endpoint

2008-05-11 Thread sakari . aaltonen
I'm trying to install Tomcat 6.0.16 on a Linux machine running  
OpenSUSE 10.3, but cannot get past the Error starting endpoint. Here  
is output from $CATALINA_HOME/logs/catalina.out:


###
12.5.2008 7:30:51 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal  
performance in production environments was not found on the  
java.library.path:  
/usr/lib/jvm/java-1.6.0.u1-sun-1.6.0.u1/jre/lib/i386/se

rver:/usr/lib/jvm/java-1.6.0.u1-sun-1.6.0.u1/jre/lib/i386:/usr/lib/jvm/java-1.6.0.u1-sun-1.6.0.u1/jre/
../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
12.5.2008 7:30:51 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:501)
at  
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at  
org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
at  
org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at  
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)

at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
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:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
12.5.2008 7:30:51 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:  
java.net.BindException: Address already in use:8080
at  
org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
at  
org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at  
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)

at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
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:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
12.5.2008 7:30:51 org.apache.catalina.startup.Catalina load
##

This is a machine on which Tomcat 5.5 ran seemingly OK. However,  
JSPWiki steadfastly refused to install, so I thought I would try  
Tomcat 6.0.16 (because another OpenSUSE 10.3 machine with that version  
of Tomcat does deploy JSPWiki.)


Possibly there is a conflict between the two Tomcat versions? I did  
try to delete everything having to do with the previous Tomcat  
version, even files with Jakarta somewhere, but I may well have  
overlooked something...



Sakari Aaltonen



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