Re: [Off-Topic] Recommendation for Tomcat Security book

2003-11-13 Thread Yann Cébron

 Are there any recommendations for a tomcat security book?  I've found this
 one on amazon.com, but there are no reviews on the book so I thought I
would
 run it by the list first before I buy itany other suggestions
 Thanx for any insight




http://www.amazon.com/exec/obidos/tg/detail/-/1861008309/104-7975513-6438339
 ?v=glance

http://www.amazon.com/exec/obidos/tg/detail/-/1861008309/104-7975513-643833
 9?v=glance


Chapter 1 from this book is available @ TSS:
http://www.theserverside.com/resources/articles/TomcatSecurity/TomcatSecurity.pdf

Cheers,
Yann




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



Re: SSL support not working with 4.1.27 version

2003-10-29 Thread Yann Cébron
Hi,

there was a Bugzilla entry for this problem, but I can't seem to find it.

If I remember right, the solution had something to do w/ the version of
log4j used (I think it should work with log4j1.2.6).

HTH,

Yann

 I successfully configured Tomcat 4.1.24 (using JDK 1.3) for SSL, using
keystore generated by keytool  and used my  webapp over HTTPS.

 However, when I did the same for Tomcat 4.1.27. I'm getting the warning
Peer not authenticated when I tries to access the https url using a
browser.

 Also I could access my webapp over HTTPS only twice, but after this, I'm
getting the following error:

 [ERROR] Http11Protocol - -Error reading request, ignored
org.apache.commons.log
 ging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationExcep
 tion: org.apache.commons.logging.LogConfigurationException: Class
org.apache.com
 mons.logging.impl.SimpleLog does not implement
Logorg.apache.commons.logging.Lo
 gConfigurationException:
org.apache.commons.logging.LogConfigurationException: o
 rg.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.lo
 gging.impl.SimpleLog does not implement Log
 at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
 Impl.java:532)
 at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
 Impl.java:272)
 at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
 Impl.java:246)
 at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
 at
org.apache.tomcat.util.net.jsse.JSSESupport.init(JSSESupport.java:8
 7)
 at
org.apache.tomcat.util.net.jsse.JSSE13Factory.getSSLSupport(JSSE13Fac
 tory.java:84)
 at
org.apache.tomcat.util.net.jsse.JSSEImplementation.getSSLSupport(JSSE
 Implementation.java:118)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
 ssConnection(Http11Protocol.java:385)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
 :565)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
 ool.java:619)
 at java.lang.Thread.run(Thread.java:479)
 Is there any problem with 4.1.27 version regarding ssl support?

 thanks.
 Satish




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



Re: SSL support not working with 4.1.27 version

2003-10-29 Thread Yann Cébron
 there was a Bugzilla entry for this problem, but I can't seem to find it.

duh, found it:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22701


 If I remember right, the solution had something to do w/ the version of
 log4j used (I think it should work with log4j1.2.6).
 HTH,

 Yann

  I successfully configured Tomcat 4.1.24 (using JDK 1.3) for SSL, using
 keystore generated by keytool  and used my  webapp over HTTPS.
 
  However, when I did the same for Tomcat 4.1.27. I'm getting the warning
 Peer not authenticated when I tries to access the https url using a
 browser.
 
  Also I could access my webapp over HTTPS only twice, but after this, I'm
 getting the following error:
 
  [ERROR] Http11Protocol - -Error reading request, ignored
 org.apache.commons.log
  ging.LogConfigurationException:
 org.apache.commons.logging.LogConfigurationExcep
  tion: org.apache.commons.logging.LogConfigurationException: Class
 org.apache.com
  mons.logging.impl.SimpleLog does not implement
 Logorg.apache.commons.logging.Lo
  gConfigurationException:
 org.apache.commons.logging.LogConfigurationException: o
  rg.apache.commons.logging.LogConfigurationException: Class
 org.apache.commons.lo
  gging.impl.SimpleLog does not implement Log
  at
 org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
  Impl.java:532)
  at
 org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
  Impl.java:272)
  at
 org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
  Impl.java:246)
  at
 org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
  at
 org.apache.tomcat.util.net.jsse.JSSESupport.init(JSSESupport.java:8
  7)
  at
 org.apache.tomcat.util.net.jsse.JSSE13Factory.getSSLSupport(JSSE13Fac
  tory.java:84)
  at
 org.apache.tomcat.util.net.jsse.JSSEImplementation.getSSLSupport(JSSE
  Implementation.java:118)
  at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
  ssConnection(Http11Protocol.java:385)
  at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
  :565)
  at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
  ool.java:619)
  at java.lang.Thread.run(Thread.java:479)
  Is there any problem with 4.1.27 version regarding ssl support?
 
  thanks.
  Satish




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



Re: Tomcat and Active Directory / 2003

2003-10-08 Thread Yann Cébron
Two guesses:

* Did you try using the IP-address instead or use the FQDN for
connectionURL, maybe there's something wrong w/ DNS?

* Try w/o MD5 and see if it works then.

   roleSubtree=True

typo - or shouldn't this be true

I guess you already found the documentation here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JNDIRealm

HTH,
Yann

 BTW: I am using 4.1.27 on Windows 2000 and we're
 trying to connect to a Windows 2003 AD. Has this
 changed at all?

 here is the error trace:

 Catalina.start: LifecycleException:  Exception opening
 directory server connecti
 on:  javax.naming.CommunicationException:
 localhost:389 [Root exception is java.
 net.ConnectException: Connection refused: connect]
 LifecycleException:  Exception opening directory
 server connection:  javax.namin
 g.CommunicationException: localhost:389 [Root
 exception is java.net.ConnectExcep
 tion: Connection refused: connect]

 It keeps saying localhost:389 and I clearly don't have
 it in the Realm. Here is my setup.

 Realm className=org.apache.catalina.realm.JNDIRealm
   debug=99
   connectionName=cn=TomcatRole,dc=vo,dc=net
   connectionPassword=***
   connectionURL=ldap://orlmsdc001:389;
   digest=MD5
   roleBase=dc=roles,dc=vo,dc=net
   roleName=cn
   roleSearch=(uniqueMember={0})
   roleSubtree=True
   userPassword=***
   userPattern=cn={0},dc=vacationsonly,dc=net  /



 --- Matt Fury [EMAIL PROTECTED] wrote:
  Hi All,
 
  I've been trying for several weeks to compile
  information on Tomcat and Active Directory through
  LDAP. I can't quite get all the information I need
  and
  I am hoping someone has a link to what needs to be
  done. I want to use the Realms in Tomcat but I can't
  seem to connect properly. For some reason it seems
  to
  keep trying to connect to localhost even though its
  not specified.
 
  Also, does SSL NEED to be implemented in order to
  get
  this to work? I will be doing AD connectivity
  through
  LAN only.
 
  Thanks.
 
  -Matt
 
 
 -
  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: JavaMail doesn't work

2003-10-07 Thread Yann Cébron

 I installed Tomcat4.1.27 on one win2000 and one winXP. I tried the
SendMailServlet that ships with it. The servlet worked fine on win2000 and
it gave the following message on winXP:java.lang.NoClassDefFoundError:
javax/mail/Message

 I guess this is because somehow Tomcat can't find the class. (This is
wierd since I do not have the problem on win2000). So I downloaded the
JavaMail and copied the mail.jar and activation.jar to
$CATALINA_HOME/server/lib. But the problem was still there.

put them in $CATALINA_HOME/common/lib, that should work

Yann




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



Re: How do I config Tomcat to only service requests from localhost?

2003-09-25 Thread Yann Cébron
Try Remote Address/Host Filter:

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

Cheers,
Yann


***
I'm sure the answer is quite simple, but I haven't been able to
find it online yet.

I've got Tomcat running on a PC, and I want it to only service
requests coming from the same PC (i.e. localhost).
If a request come in from the LAN, I want to ignore it.

I found references to the inet attribute to the Connector element,
but it doesn't work for me.

Thanks,  Mike




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



Re: Possible bug in Tomcat JSTL

2003-09-24 Thread Yann Cébron

Julien,

if I remember right there were some problems with earlier releases of JSTL
regarding TagPooling and not re-setting the Locale, try the latest one (I
think it's 1.0.3) to see if problems disappear.


Cheers,

Yann

**
I am struggling to get the fmt:message tag working in Tomcat 5.05.  Here is
what I do and the result I get:

1. I set the locale using a el expressions as follows:
fmt:setLocale value=${requestScope.lang}/

2. I then choose a resource bundle as follows:
fmt:bundle basename=com.parispano.latinamericaguide.resources.labels

3. I finally display a message as follows:
fmt:message key=country_index_jsp/

I have to retranslate and recompile the jsp in order for the locale to be
taken into account.

Is this a bug in Tomcat?  If no what I am getting wrong?

Thanks in advance,

Julien.




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



Re: How to set autodeploy?

2003-09-19 Thread Yann Cébron

 In Tomcat 4.1.27, where and how do you set autodeploy to true?

$CATALINA_HOME/conf/server.xml, find the Host:

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

 I thought that autodeploy=true was the default, but it does not appear
 to be working in my newly installed copy.

  (This must be in the documentation a somewhere but I haven't been able
 to find it and there's nothing for autodeploy in the archive.)

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment


Yann

 Thanks,

 bw




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



Re: error when starting tomcat

2003-09-16 Thread Yann Cébron
Hello,

 Hello.
 in my linux i start the tomcat and appears this error:
 can anybody helps me for solving it?
 thnaks


 Sep 16, 2003 1:07:14 PM org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
 returnNull=true
 Sep 16, 2003 1:07:14 PM org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
 returnNull=true
 Sep 16, 2003 1:07:15 PM org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
 returnNull=true
 Sep 16, 2003 1:07:18 PM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Sep 16, 2003 1:07:18 PM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=4/38
 config=/opt/jakarta/tomcat/conf/jk2.properties

don't worry, that's just INFOrmation messages from Tomcat resp. the
admin-webapp starting up.
As long as you don't get any WARN oder ERROR messages, everything is
allright.

Yann




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



TC5: Question about TagPlugins and generated JSP-code

2003-09-12 Thread Yann Cébron
Hi,

I'm pretty new to this TagPlugins-thing in TC5, but after finding the
tagPlugins.xml in CVS I successfully got up.

So here's my question:

I have this simple Testcase JSP-page:


%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

c:choose
  c:when test=${1  2}
Case 1
  /c:when
  c:otherwise
Case 2
  /c:otherwise
/c:choose


Using JSTL1.1 nightly build and the tagPlugins.xml from TC CVS, Jasper
produces the following code (only relevant parts shown):


[...]
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_choose;
  private org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_c_when_test;
  private org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_c_otherwise;
[...]

  public void _jspInit() {
_jspx_tagPool_c_choose =
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig(
));
_jspx_tagPool_c_when_test =
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig(
));
_jspx_tagPool_c_otherwise =
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig(
));
  }

  public void _jspDestroy() {
_jspx_tagPool_c_choose.release();
_jspx_tagPool_c_when_test.release();
_jspx_tagPool_c_otherwise.release();
  }


Since all c:.. - tags used in this page are being replaced by their
corresponding TagPlugins to JAVA-code (namely if () {..} else {..}), why
is a TagHandlerPool instance for all these tags created? Is this a
limitation of the current version of Jasper?

TIA,

   Yann




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



Re: Tomcat and Active Directory

2003-09-08 Thread Yann Cébron
 I am trying to use the JNDI realm to access our Active Directory.  The
 server.xml entry I have is:

Realm className=org.apache.catalina.realm.JNDIRealm debug=99
 connectionURL=ldap://ou=migrated
users,ou=nmr,dc=enterprisenet,dc=org
 userBase=cn=Users,dc=enterprisenet,dc=org
 userSearch=(userPrincipalName={0})
 userRoleName=member
 roleBase=CN=Users,dc=enterprisenet.org,dc=org
 roleName=cn
 roleSearch=(member={0})
 connectionName=CN=jndildap,CN=Users,DC=enterprisenet.org,DC=org
 connectionPassword=Umisvc01
 roleSubtree=true
 userSubtree=true /

 When I start Tomcat I get

 Catalina.start: LifecycleException:  Exception opening directory server
 connecti
 on:  javax.naming.CommunicationException: localhost:389 [Root exception is
 java.
 net.ConnectException: Connection refused: connect]
 LifecycleException:  Exception opening directory server connection:
 javax.namin
 g.CommunicationException: localhost:389 [Root exception is
 java.net.ConnectExcep
 tion: Connection refused: connect]

 Does anyone have any idea what may be wrong with this?

You are trying to connect to a LDAP server on your localhost, and apparently
your company's Active Directory server != your dev-box ;-)

Try setting connectionURL to something like
ldap://ads-servername.mydomain.com:389; - I wonder what all that stuff in
your connectionURL means, IMHO this rather belongs to userBase.

See also
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JNDIRealm
for a very good explanation and some example configurations.

HTH,
Yann




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



Re: Downloading previous versions of Tomcat

2003-09-08 Thread Yann Cébron

 Unfortunately, we can't find tomcat 4.1.18 anywhere, does anyone knwo
where
 we can download a copy?

http://archive.apache.org/dist/jakarta/tomcat-4/archive/v4.1.18/




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



Re: I still don't understand the need for the connection between Apache and Tomcat

2003-09-07 Thread Yann Cébron
 I still don't understand why is there a need for a connection between
 Apache and Tomcat since Tomcat can work on its own.


Maybe this sheds some light on a few motivations

http://jakarta.apache.org/tomcat/faq/connectors.html#integrate

HTH,

Yann




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



Re: Tomcate and Windows XP Question

2003-09-07 Thread Yann Cébron
I installed Tomcate 5.0.9 on Windows XP Home edition.
It seems the Tomcate starts sucessfully, but when I browse to
http://127.0.0.1:8080, I get error message saying
  The page cannot be displayed
  There is a problem with the page you are trying to reach and it
cannot be displayed.

Here is what I did:

snip/

This looks allright

Seems like you're having a network/proxy configuration problem.

From RUNNING.txt in your TOMCAT installation directory:

*
3) The 'localhost' machine isn't found.  This could happen if you're behind
a
   proxy.  If that's the case, make sure the proxy configuration for your
   browser knows that you shouldn't be going through the proxy to access the
   localhost.

   In Netscape, this is under Edit/Preferences - Advanced/Proxies, and in
   Internet Explorer, Tools - Internet Options - Connections - LAN
Settings.
*

Yann




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



Re: Newbie- Https and Jakarta-tomcat

2003-09-06 Thread Yann Cébron


 Please tell me where could I find document about creating secure website
(https) using jakarta-tomcat 3.2.4 as server, JSP as programming language,
and Mysql as database storage?

from the TC docs regarding use of SSL
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html

HTH,
Yann




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



Re: Manager Component configuration

2003-08-20 Thread Yann Cébron
It's in the docs ;-)

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

saveOnRestart=false should do the job

HTH,

Yann

 Does anyone have any examples of Manager Component configuration (which I
 believe is nested within the Context tags) ?  I am using Tomcat 5.0.6 and
 want to disable the (default) saving of session data that occurs when
Tomcat
 is shutdown.

 thanks





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



Re: high memory usage ....

2003-08-20 Thread Yann Cébron
 I believe many other of you have encountered the high memory usage with
 tomcat? Is there a way to decrease the amount the java processes use?

yes, take a close look at the Tomcat configuration reference (Connectors)

 Furthermore, all the java processes are started under user root.
 Is there a way to start the java processes under another user?

This has been discussed approx. 2874438 times on this list ;-)

 Any particular version of java and/or tomcat adviced to deal with these
 problems?

In general, memory comsumption is likely to decrease with newer JDKs. I also
noted a noticeably startup speed improvement using 1.4.2 - but YMMV
depending on deployment needs/restrictions. It might also be worth trying
JDKs from different vendors.

Regarding TC versions: always try to stay as up to date as possible - there
are lot of continuos improvements regarding speed, stability, memory
consumption and of cause fixed bugs. Additionally, TC5 has seen a lot of
improvements regarding its inner workings resulting in better overall
speed and less memory consumption.

 I guess auditing the java applications which are written is also very nice
 to do and fixup some memory leaks if they're there?

There a lot of different tools (commercial and OSS) available, just do a
search on google.

Yann




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



Re: Problem with Tag files in Tomcat 5.0.7

2003-08-19 Thread Yann Cébron
This is known problem in 5.0.7 (can't find the Bugzilla ID right now),
but try setting suppressSmap to true in your conf/web.xml.

HTH,
Yann

 Hi

  There is a problem in running JSP2 examples for Tag files. I just removed
the Servlet mapping generated by JSPC from the web.xml for jsp-examples
context and started to access directly JSP files.


  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.JspCompilationContext.compile(JspCompilationContext.java:5
61)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
00) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



 root cause
 java.lang.IllegalArgumentException: -52
org.apache.jasper.compiler.SmapStratum$LineInfo.setOutputLineIncrement(SmapS
tratum.java:124)
org.apache.jasper.compiler.SmapStratum.optimizeLineSection(SmapStratum.java:
221) org.apache.jasper.compiler.SmapUtil.evaluateNodes(SmapUtil.java:490)
org.apache.jasper.compiler.SmapUtil.generateSmap(SmapUtil.java:123)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:301)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
55)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
00) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



 note The full stack trace of the root cause is available in the Tomcat
logs.

 -
 Apache Tomcat/5.0.7


 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software




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



TC 5.0.6: Random errors when deploying/reloading webapps via ANT

2003-08-14 Thread Yann Cébron
Hi,

does anyone else experience random errors when deploying/reloading webapps
via ANT-tasks?

I don't have the stacktraces at hand right now, but e.g. one of the errors
was it couldn't find/access a .TLD inside a .JAR (Struts). IMHO this seems
like a timing problem when copying the required .JAR-files (TC is already
starting the webapp or I'm accessing a JSP page -  but not all required
files are already deployed/avaible in the webapp's directory).

Yann





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



Re: connecting tomcat 5.0 to apache 2.0.47

2003-07-29 Thread Yann Cébron
 2. I can't find any mod_jk2.so in that directory nor can I find so file in
 tomcat.  What is the file I need and where can I get it from?

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/bin/win32/

just pick any of the .dll depending on the connector you want to use

read through the resources here to get started with configuring:
http://jakarta.apache.org/tomcat/faq/connectors.html

HTH,
Yann




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



Re: how-to specify Java runtime options -Xmx128m, w/ Tomcat 4 as Win2k service

2003-07-24 Thread Yann Cébron
Paul,

this tool will do the job when running TC as Windows-Service:
http://web.bvu.edu/staff/david/tcservcfg/

HTH,
Yann

after assigning the following environment variables the java runtime options
as follows:

eg: JAVA_OPTS=-Xmx128m -Xms128m

tried with:
CATALINA_OPTS
JAVA_OPTS

amount of RAM memory used stayed aprox the same.  Though i was expecting
more memory to be used because of the extra memory that should have been
allotted to java instance for Tomcat.  Consequently, i am assuming that
options were not applied by simply setting these environment variables, at
least when Tomcat is started as a service.

Where and how are java runtime options to be specified with Tomcat 4.1 (JDK
1.4.2) when it is started as a win2k service?

[EMAIL PROTECTED]





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



Re: Where can i find mod_webapp ?

2003-07-19 Thread Yann Cébron
mod_webapp is deprecated, you should use mod_jk(2):

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

Yann

 Hi,
 i am looking for a connector between Apache 1.3 and TomCat 4.1.18. Can
 anybody help me?
 Regards,
 Euclides.




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



Re: Where can i find mod_webapp ?

2003-07-19 Thread Yann Cébron
This should you get started:

http://jakarta.apache.org/tomcat/faq/connectors.html

HTH,
Yann

 Sorry,
 but i guess i am a little bit confused. First, which file(s) should i
 download ? Second, where can i find the main steps to install it?
 Thanks, Euclides.

 -Mensagem original-
 De: Yann Cibron [mailto:[EMAIL PROTECTED]
 Enviada em: sabado, 19 de julho de 2003 11:01
 Para: [EMAIL PROTECTED]
 Assunto: Re: Where can i find mod_webapp ?


 mod_webapp is deprecated, you should use mod_jk(2):

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

 Yann

  Hi,
  i am looking for a connector between Apache 1.3 and TomCat 4.1.18. Can
  anybody help me?
  Regards,
  Euclides.




 -
 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: Adherence to DTD issue

2003-07-17 Thread Yann Cébron
No, you are *not* adhering to the DTD ;-)

Very easy solution: *all* servlet-tags must be first, followed by all
servlet-mapping elements

Your example would have to changed to:

**
servlet
 servlet-nameHello3/servlet-name
 servlet-classHello3/servlet-class
/servlet

servlet
 servlet-nameSurveyServlet/servlet-name
 servlet-classSurveyServlet/servlet-class
/servlet

 servlet-mapping
 servlet-name
 Hello3
  /servlet-name
 url-pattern
 /test/Hello3
/url-pattern
 /servlet-mapping

 servlet-mapping
 servlet-name
 SurveyServlet
  /servlet-name
 url-pattern
 /MedSurvey
/url-pattern
 /servlet-mapping
*

HTH,
Yann


 I have altered a web.xml file in my \webapps\test\WEB-INF directory.
 Upon startup I get a parse error about the structure of the file.
 I opened the file in XML spy and it said it was an servlet tag
unexpected
 child element.
 I then downloaded the DTD from sun and printed it out. I am adhering to
the
 DTD from what it seems.
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 web-app
 servlet
 servlet-name
Hello3
  /servlet-name
 servlet-class
Hello3
  /servlet-class
 /servlet
 servlet-mapping
 servlet-name
 Hello3
  /servlet-name
 url-pattern
 /test/Hello3
/url-pattern
 /servlet-mapping
 servlet ---  IT GIVES THE ERROR AT THIS LINE
 servlet-name
SurveyServlet
  /servlet-name
 servlet-class
 SurveyServlet
  /servlet-class
 /servlet
 servlet-mapping
 servlet-name
 SurveyServlet
  /servlet-name
 url-pattern
 /MedSurvey
/url-pattern
 /servlet-mapping

 Any ideas? Need more info?




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



Re: images not appearing

2003-07-08 Thread Yann Cébron

Robert Wray [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
 Is capitalization important? docbase instead of docBase?


Yeah, it is (welcome to the world of XML ;-) )

see http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

HTH,
Yann

 At 03:09 PM 08/07/2003 -0400, you wrote:
 I am deploying a test servlet on Tomcat 4.1.24.  Everything works great,
the
 servlet executes, I get results back at my browser, but none of the
images
 show up.
 
 In conf/server.xml, I have added the following:
 
  Context path= docbase=helloworld debug=99
  Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_helloworld_log. suffix=.txt
timestamp=true/
  /Context
 
 In webapps/hello/WEB-INF/web.xml, I have the following:
 
  web-app
  ...
  servlet
  servlet-namehelloworld/servlet-name
  servlet-classhelloworld.Hello/servlet-class
  /servlet
 
  servlet-mapping
  servlet-namehelloworld/servlet-name
  url-pattern//url-pattern
  /servlet-mapping
 
  /web-app
 
 
 The image directory has been created in webapps/hello, and the requested
 image does exist.  As part of trying to resolve this, have placed copies
of
 the image directory up and down the directory tree and tried calling the
 image in the servlet in a number of ways (ie: /images/image.gif,
 ../images/image.gif, images/image.gif).  Nothing seems to work to get the
 image to display!!!
 
 Any and all ideas would be greatly appreciated at this point!!!
 
 Mark
 [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 Robert Wray, Engineer
 Forestry Products, Alberta Research Council
 Phone: (780) 450-5045
 Fax: (780) 450-5397
 [EMAIL PROTECTED]




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



Re: Getting an error while using forEach Tag

2003-07-05 Thread Yann Cébron

 Dear All,

I am using forEach tag for iterating over an ArrayList present in
 the session scope. The code I have used is

/snip

Please ask your question on the taglibs-user mailing list.





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



[Manager] Start/Stop Remove not relaeasing struts.jar on WIN

2003-03-18 Thread Yann Cébron
Hi,

I just wanted to get some feedback from the list upon this bugreport:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10026

Can anybody else confirm this behaviour on WIN-Platforms ?
It does not happen under Linux (Suse 2.4.10).

For several reasons, I'm restricted on using Win2K on the server, and
updating the
applications always requires a complete shutdown/restart of Tomcat to
release
the webapp-dir in order to make Tomcat recognize the updated .war-file.

Greetings,

Yann

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de

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