Re: jk2 jni connector with iis - has anyone got this working?

2004-02-23 Thread Tariq Chalabi
Thanks for the advice.
 
I've tried the installer and it works fine for jk and the standard ajp13 connector.  
I've got both jk and jk2 working with this already
 
But what I'm really after is getting tomcat to run in-process with IIS.
 


George Hester [EMAIL PROTECTED] wrote:
http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm

Use his iis_redirector.dll

-- 
George Hester
__
Tariq Chalabi wrote in message news:[EMAIL PROTECTED]
 Hi,
 
 I've been banging my head against a wall trying to get tomcat to run in process in 
 IIS 5 on w2k
 
 I'm on the point of giving up on it - but if anyone out there has got it working I'd 
 love to see your config files.
 
 My workers2.properties is as follows...
 
 serverRoot=C:\java\Apache Group\Tomcat 4.1
 TOMCAT_HOME=C:\java\Apache Group\Tomcat 4.1
 [logger]
 level=DEBUG
 [config:]
 file=${serverRoot}/conf/workers2.properties
 debug=0
 debugEnv=0
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 # Alternate file logger
 [logger.file:0]
 level=DEBUG
 file=${serverRoot}/logs/jk2.log
 [shm:]
 info=Scoreboard. Required for reconfiguration and status with multiprocess servers
 file=${serverRoot}/logs/jk2.shm
 size=100
 debug=0
 disabled=0
 [workerEnv:]
 info=Global server options
 timing=1
 debug=0
 # Default Native Logger (apache2 or win32 ) 
 # can be overriden to a file logger, useful 
 # when tracing win32 related issues
 #logger=logger.file:0
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 debug=0
 tomcatId=localhost:8009
 
 [channel.jni:jni]
 info=The jni channel, used if tomcat is started inprocess
 [status:]
 info=Status worker, displays runtime informations
 [vm:]
 info=Parameters used to load a JVM in the server process
 #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
 classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar
 classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar
 OPT=-Dtomcat.home=${TOMCAT_HOME}
 OPT=-Dcatalina.home=${TOMCAT_HOME}
 OPT=-Xmx128M
 #OPT=-Djava.compiler=NONE
 disabled=0
 [worker.jni:onStartup]
 info=Command to be executed by the VM on startup. This one will start tomcat.
 class=org/apache/jk/apr/TomcatStarter
 ARG=start
 # For Tomcat 5 use the 'stard' for startup argument
 # ARG=stard
 disabled=0
 stdout=${serverRoot}/logs/stdout.log
 stderr=${serverRoot}/logs/stderr.log
 [worker.jni:onShutdown]
 info=Command to be executed by the VM on shutdown. This one will stop tomcat.
 class=org/apache/jk/apr/TomcatStarter
 ARG=stop
 disabled=0
 [uri:/jkstatus/*]
 info=Display status information and checks the config file for changes.
 group=status:
 [uri:/examples]
 info=Example webapp in the default context. 
 context=/examples
 debug=10
 
 [uri:/examples/servlet/*]
 info=Prefix mapping
 [uri:/examples/*.jsp]
 info=Extension mapping
 [uri:/examples/*]
 info=Map the whole webapp
 [uri:/examples/servlet/HelloW]
 info=Example with debug enabled.
 debug=10
 
 
 
 My jk2.properties looks like..
 
 ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
 ## WHEN YOU EDIT THE FILE.
 ## COMMENTS WILL BE _LOST_
 ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
 # Set the desired handler list
 handler.list=apr,request,channelJni
 #
 # Override the default port for the socketChannel
 # channelSocket.port=8019
 # Default: 
 # channelUnix.file=${jkHome}/work/jk2.socket
 # Just to check if the the config is working
 # shm.file=${jkHome}/work/jk2.shm
 # In order to enable jni use any channelJni directive
 channelJni.disabled = 0
 # And one of the following directives:
 # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
 # If set to inprocess the mod_jk2 will Register natives itself
 # This will enable the starting of the Tomcat from mod_jk2
 apr.jniModeSo=inprocess
 
 
 Basically these files are those in the conf directory of the source download for jk2 
 connector
 
 Anyhow - it doesn't work - and there isn't any useful logging to show why it doesn't 
 work.
 
 All help very much appreciated ;-)
 
 
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
 Messenger Now


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


-
 How much mail storage do you get for free? Yahoo! Mail gives you 6MB! Get Yahoo! Mail

Re: Relative links do not work with controller servlet.

2004-02-23 Thread Harry Mantheakis
Hi Jurgen


 I want to run all requests through a controller
 servlet.


That's a good thing to do, and I do it the same way - using extra path
information to determine where to send a request once the controller
receives it. I happen to have some cribs on this subject, so here goes...

When a Servlet forwards a request to a JSP, the JSP document is read 'out of
context' and the relative HTML links in that document cannot be interpreted.

Typically this means that images fail to load, and style sheet definitions
are not enforced. The relative HTML links in the JSP are 'broken'.

I *think* this is your problem.

The solution is to specify a 'base URL' for all the links in a JSP document.

The HTML BASE element - which must be placed within the HEAD element of
an HTML document - serves this purpose.

Using the BASE element will help ensure your image and CSS links are not
broken when a Servlet forwards a request to a JSP. It will also make your
JSPs more portable, by allowing you to specify relative URLs for all your
resource links.

The value of the HREF attribute in the BASE element must be an absolute
URI. The following example illustrates the HREF attribute being set with a
hard coded literal value:

head
base href=http://localhost:8080/;
/head

Note the trailing slash, just after the port number. This is necessary.

The above example assumes you are using the default 'ROOT' context in a
Servlet container running locally. (The port number '8080' is the Tomcat
default. If you are using port '80' you do not need to specify the port
number in the URI.)

If your application has its own context, then you must add the context name
to the URI:

head
base href=http://localhost:8080/context-name/;
/head

Again, note the trailing slash, just after the context name.

The above examples illustrate the use of hard-coded literal values to set
the base URL.

If the web application were to be deployed to another server, with a
different base URL, one would have to edit each and every JSP that specified
a base URL. In a large application that would be a tiresome and error-prone
exercise!

There is a simple solution to this problem: You can dynamically retrieved
the base URL from the ServletContext initialisation parameters at runtime:

% String baseURL = application.getInitParameter( baseURL ); %

And then set the HREF attribute value with a JSP expression:

head
base href=%= baseURL %
/head

I have a custom tag that takes care of this in all my JSPs.

Initialisation parameters are defined in a web application's 'web.xml'
deployment descriptor file. If the base URL were to change, one would simply
edit the 'web.xml' parameter, and leave the JSPs untouched!

When you specify a base URL you must take care to specify relative URLs
correctly for all the links in a JSP document.

The fundamental rule is: do NOT use leading forward slashes in the URLs.

An image file named 'flower.gif' located in the context root directory would
be referenced as follows:

img src=flower.gif

Notice there is no leading forward slash. The same rule applies to links for
HTML and JSP documents located in the context root directory:

a href=shopping.jspimg src=basket.gif/a

If a link is to a resource that is located in a sub-directory, forward
slashes are used to delineate the pathname, but a slash is still not
required at the start of the URL:

img src=images/flower.gif

In the above example, the 'flower.gif' file is assumed to be located in a
folder named 'images' which is itself located in the context root directory.

Finally, this is how you would specify a raw link to a Servlet named 'Login'
that is packaged under the ubiquitous 'com.foo.bar' name:

form action=servlet/com.foo.bar.Login method=post

Servlets can (and should) be registered and mapped in a web application's
'web.xml' deployment descriptor file. This enables you to reference them
with simple names.

For example, if the above 'com.foo.bar.Login' Servlet was mapped to
/login, then the link to this Servlet would be:

form action=login method=post

Again, notice there is no leading forward slash.


Good luck.

Harry Mantheakis
London, UK


 
 The requests should be like
 /controller/dir/fileXXX.html
 
 This is done with a
 
 servlet-mapping
   servlet-nameController/servlet-name
   url-pattern/controller/*/url-pattern
 /servlet-mapping
 
 
 request.getPathInfo() is dir/fileXXX.html
 
 
 fileXXX.html in reality are JSPs, which the Controller
 servlet forwards to.
 
 In the JSPs are relative links to images and CSS.
 Well, as in the browsers view the html files are below
 /controller, it requests these relative links also
 below /controller, but the controller cannot and
 should not handle CSS and images.
 
 This problem surfaces often in the newsgroups, but I
 did not find a solution.
 
 Is there a good, portable solution to the problem ?
 
 Ideally would be a
 

tomcat certificate

2004-02-23 Thread secam secam
hello,
 
I'm a new user of tomcat.
Can tomcat authenticate a user with a certifcate ?
 
Thanks,
Secam


-
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

RE: Relative links do not work with controller servlet.

2004-02-23 Thread Bodycombe, Andrew
The BASE tag may help you here (or html:base if you are using struts)

-Original Message-
From: Juergen Weber [mailto:[EMAIL PROTECTED] 
Sent: 22 February 2004 00:20
To: [EMAIL PROTECTED]
Subject: Relative links do not work with controller servlet.


I want to run all requests through a controller
servlet.

The requests should be like
/controller/dir/fileXXX.html

This is done with a 

servlet-mapping
servlet-nameController/servlet-name
url-pattern/controller/*/url-pattern
/servlet-mapping


request.getPathInfo() is dir/fileXXX.html


fileXXX.html in reality are JSPs, which the Controller
servlet forwards to.

In the JSPs are relative links to images and CSS.
Well, as in the browsers view the html files are below
/controller, it requests these relative links also
below /controller, but the controller cannot and
should not handle CSS and images. 

This problem surfaces often in the newsgroups, but I
did not find a solution.

Is there a good, portable solution to the problem ?

Ideally would be a
url-pattern-exclude*.css,*.jpg,*.gif/url-pattern-exclude
Tag in web.xml.

Thanks, Juergen


__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

-
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: tomcat certificate

2004-02-23 Thread Bodycombe, Andrew
It's in the documentation:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html

-Original Message-
From: secam secam [mailto:[EMAIL PROTECTED] 
Sent: 23 February 2004 10:00
To: [EMAIL PROTECTED]
Subject: tomcat certificate


hello,
 
I'm a new user of tomcat.
Can tomcat authenticate a user with a certifcate ?
 
Thanks,
Secam


-
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

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



Tomcat JNDI - mapping a String

2004-02-23 Thread Ondra Nekola
I have developed a small web-based aplication. I use an ant build script 
to compile it and to generate a war. The application is used in several 
servers with different settings (it uses different databases, connects to 
different xml-rpc resources...) so it has to somehow read the 
configuration from the server environment. 
I have used the tomcat Web server administration tool to set Resources - a 
data source and several Environment Entries. The tool regenerates 
server.xml file in such a manner:

Server
...
  GlobalNamingResources
Environment description= name=BLAH_USER type=java.lang.String 
value=MrSpock/
...
  /GlobalNamingResources
...
/Srver

Then I change my deployment descriptor get access to this environment:
web-app
...
  resource-env-ref
resource-env-ref-nameBLAh_USER/resource-env-ref-name
resource-env-ref-typejava.lang.String/resource-env-ref-type
  /resource-env-ref
...
/web-app

The code, that tryes to read this environmnt looks like this:

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
String res_user = (String) envCtx.lookup(BLAH_USER);

The problem is, that I get this exception:
javax.naming.NamingException: Cannot create resource instance
at 
org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFactory.java:146)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:837)
at org.apache.naming.NamingContext.lookup(NamingContext.java:197)
at myapp.servlets.MyAppListener.contextInitialized(MyAppListener.java:123)

When I try to access a mapped JDBC resource everything seems to be OK. 
When I list (NamingEnumeration enum = initCtx.list(java:comp/env);) the 
keys for mapped resources BLAH_USER appears.

I have tried look this situation in the Tomcat documentation and to google 
it, but I haven't get any reasonable idea to solve it.
-- 
   S pozdravem
   Ondrej Nekola
   [EMAIL PROTECTED]
   http://www.matfyz.cz/ondra
   ICQ# 160692888

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



Re: tomcat certificate

2004-02-23 Thread Rommel Sharma
If you mean two way authentication using SSL, then you have to write the
code that reads clients certificate and matches it with one present in
client keystore on the server. You enable client authentication in
server.xml for this and specify the serverkeystore and password in it.
Regards,
Rommel Sharma.

- Original Message -
From: secam secam [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 23, 2004 3:30 PM
Subject: tomcat certificate

 hello,

 I'm a new user of tomcat.
 Can tomcat authenticate a user with a certifcate ?

 Thanks,
 Secam


 -
 Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
 Créez votre Yahoo! Mail

*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com




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



Re: a question on viewing servlets

2004-02-23 Thread ches_nutsy
Yes.. um but i dont know anthing about xml, could you pleas please tell me how to do 
your saying?? i dont know how to configure any xml code... please... thanks.
do i just have to write the directory where i save my servlets??

:
ches_nutsy wrote:

hi, i would like to ask something about the servlets, i have followed all the 
tomcat's intructions diligently, and i am able to compile them correctly, my problem 
is that I'm not alble to view the servlets, why is this happenning? I have saved the 
class files under C:\tomcat\jakarta-tomcat-5.0.12\webapps\ROOT\WEB-INF\classes and it 
compiled ok, but when i tried to access them, through 
http://localhost/servlet/HelloServlet nothing happens! help me, please 
 


Add your servlet and a servlet-mapping to your WEB-INF/web.xml

Antonio Fiol


 ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s


-
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

Re: tomcat certificate

2004-02-23 Thread secam secam
Thanks,
 
Here is my real problem,
 
I've got an external server that authentificate user and deliver a certicate with the 
trio User/Group/Role.
 
In fact, i just want that the certificate give information of the user to tomcat in 
order to permit the access to some specifics url.
 
Is it possible?
 
Regard's
 
Secam
 
Rommel Sharma [EMAIL PROTECTED] wrote:
If you mean two way authentication using SSL, then you have to write the
code that reads clients certificate and matches it with one present in
client keystore on the server. You enable client authentication in
server.xml for this and specify the serverkeystore and password in it.
Regards,
Rommel Sharma.

- Original Message -
From: secam secam 
To: 
Sent: Monday, February 23, 2004 3:30 PM
Subject: tomcat certificate

 hello,

 I'm a new user of tomcat.
 Can tomcat authenticate a user with a certifcate ?

 Thanks,
 Secam


 -
 Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
 Créez votre Yahoo! Mail

*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com




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


-
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

RE: using jar files in place of class files

2004-02-23 Thread Evgeny Gesin
I set ownership tomcatUser:tomcatUser and permission
770 to the entire path
$CATALINA_HOME/webapps/app/WEB-INF/lib, including jar
files under 'lib',  and then got that exception again.
More advice?

Evgeny Gesin
Javadesk

--- Filip Hanik (lists) [EMAIL PROTECTED] wrote:
 - Root Cause -
 java.io.IOException: Permission denied
   at
 java.io.UnixFileSystem.createFileExclusively(Native
 
 you have a permission issue on your filesystem,
 make sure the entire tomcat tree is owned by the
 user running tomcat
 
 Filip
 
 -Original Message-
 From: Evgeny Gesin [mailto:[EMAIL PROTECTED]
 Sent: Sunday, February 22, 2004 8:46 AM
 To: Tomcat Users List
 Subject: Re: using jar files in place of class files
 
 
 When I add any JAR in the WEB-INF/lib I got the
 following exception. Any advice?
 
 Evgeny Gesin
 Javadesk
 
 2004-02-22 18:38:09 WebappLoader[/myapp]: Deploying
 class repositories to work directory
 /usr/java/tomcat/work/Catalina/127.0.0.1:80/myapp
 2004-02-22 18:38:09 WebappLoader[/myapp]: Deploy JAR
 /WEB-INF/lib/myapp.jar to
 /usr/java/tomcat/webapps/myapp/WEB-INF/lib/myapp.jar
 2004-02-22 18:38:10 ContextConfig[/myapp] Exception
 processing JAR at resource path
 /WEB-INF/lib/myapp.jar
 javax.servlet.ServletException: Exception processing
 JAR at resource path /WEB-INF/lib/myapp.jar
   at

org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
   at

org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
   at

org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
   at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
 243)
   at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
 t.java:166)
   at

org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
   at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at

org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
   at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
   at

org.apache.catalina.core.StandardService.start(StandardService.java:497)
   at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
   at

org.apache.catalina.startup.Catalina.start(Catalina.java:512)
   at

org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at

org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   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.main(Bootstrap.java:203)
 - Root Cause -
 java.io.IOException: Permission denied
   at
 java.io.UnixFileSystem.createFileExclusively(Native
 Method)
   at java.io.File.checkAndCreate(File.java:1314)
   at java.io.File.createTempFile(File.java:1402)
   at java.io.File.createTempFile(File.java:1439)
   at

sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
   at
 java.security.AccessController.doPrivileged(Native
 Method)
   at

sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
   at

sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
   at

sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
   at

sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
   at

sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:6
 9)
   at

org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
   at

org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
   at

org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
   at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
 243)
   at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
 t.java:166)
   at

org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
   at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at

org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
   at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
   at

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
   at

org.apache.catalina.core.StandardService.start(StandardService.java:497)
   at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
   at

org.apache.catalina.startup.Catalina.start(Catalina.java:512)
   at

org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   

Re: tomcat certificate

2004-02-23 Thread Rommel Sharma
Tomcat as such on its own does not parse and validate a certificate.
I don't think its possible. You can identify a client through the
certificate alias the client uses.
Access to specific URLs depends on the server certificate where you specify
the URL and send the client your public key.
I think there is no automatic mechanism in Tomcat that studies the
certificate and allows access to specific URLs. This needs to be implemented
by any our deployed programs.

- Original Message -
From: secam secam [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 23, 2004 4:17 PM
Subject: Re: tomcat certificate

 Thanks,

 Here is my real problem,

 I've got an external server that authentificate user and deliver a
certicate with the trio User/Group/Role.

 In fact, i just want that the certificate give information of the user to
tomcat in order to permit the access to some specifics url.

 Is it possible?

 Regard's

 Secam

 Rommel Sharma [EMAIL PROTECTED] wrote:
 If you mean two way authentication using SSL, then you have to write the
 code that reads clients certificate and matches it with one present in
 client keystore on the server. You enable client authentication in
 server.xml for this and specify the serverkeystore and password in it.
 Regards,
 Rommel Sharma.

 - Original Message -
 From: secam secam
 To:
 Sent: Monday, February 23, 2004 3:30 PM
 Subject: tomcat certificate

  hello,
 
  I'm a new user of tomcat.
  Can tomcat authenticate a user with a certifcate ?
 
  Thanks,
  Secam
 
 
  -
  Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
  Créez votre Yahoo! Mail

 *
 Disclaimer

 This message (including any attachments) contains
 confidential information intended for a specific
 individual and purpose, and is protected by law.
 If you are not the intended recipient, you should
 delete this message and are hereby notified that
 any disclosure, copying, or distribution of this
 message, or the taking of any action based on it,
 is strictly prohibited.

 *
 Visit us at http://www.mahindrabt.com




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


 -
 Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
 Créez votre Yahoo! Mail

*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com




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



Re: using jar files in place of class files

2004-02-23 Thread Jon Wingfield
Also make sure that the user running tomcat has write permissions to 
$CATALINA_TMPDIR. That's where the JVM does its temporary io work.

HTH,

Jon

Evgeny Gesin wrote:
I set ownership tomcatUser:tomcatUser and permission
770 to the entire path
$CATALINA_HOME/webapps/app/WEB-INF/lib, including jar
files under 'lib',  and then got that exception again.
More advice?
Evgeny Gesin
Javadesk
--- Filip Hanik (lists) [EMAIL PROTECTED] wrote:

- Root Cause -
java.io.IOException: Permission denied
at
java.io.UnixFileSystem.createFileExclusively(Native
you have a permission issue on your filesystem,
make sure the entire tomcat tree is owned by the
user running tomcat
Filip

-Original Message-
From: Evgeny Gesin [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 22, 2004 8:46 AM
To: Tomcat Users List
Subject: Re: using jar files in place of class files
When I add any JAR in the WEB-INF/lib I got the
following exception. Any advice?
Evgeny Gesin
Javadesk
2004-02-22 18:38:09 WebappLoader[/myapp]: Deploying
class repositories to work directory
/usr/java/tomcat/work/Catalina/127.0.0.1:80/myapp
2004-02-22 18:38:09 WebappLoader[/myapp]: Deploy JAR
/WEB-INF/lib/myapp.jar to
/usr/java/tomcat/webapps/myapp/WEB-INF/lib/myapp.jar
2004-02-22 18:38:10 ContextConfig[/myapp] Exception
processing JAR at resource path
/WEB-INF/lib/myapp.jar
javax.servlet.ServletException: Exception processing
JAR at resource path /WEB-INF/lib/myapp.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)

	at

org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)

	at

org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)

	at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:

243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor

t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)

	at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

	at

org.apache.catalina.core.StandardHost.start(StandardHost.java:754)

	at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

	at

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)

	at

org.apache.catalina.core.StandardService.start(StandardService.java:497)

	at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)

	at

org.apache.catalina.startup.Catalina.start(Catalina.java:512)

	at

org.apache.catalina.startup.Catalina.execute(Catalina.java:400)

	at

org.apache.catalina.startup.Catalina.process(Catalina.java:180)

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.main(Bootstrap.java:203)

- Root Cause -
java.io.IOException: Permission denied
at
java.io.UnixFileSystem.createFileExclusively(Native
Method)
at java.io.File.checkAndCreate(File.java:1314)
at java.io.File.createTempFile(File.java:1402)
at java.io.File.createTempFile(File.java:1439)
at
sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)

at
java.security.AccessController.doPrivileged(Native
Method)
at
sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)

	at

sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)

	at

sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)

	at

sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)

	at

sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:6

9)
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)

	at

org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)

	at

org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)

	at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:

243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor

t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)

	at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

	at

org.apache.catalina.core.StandardHost.start(StandardHost.java:754)

	at

org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

	at

org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)

	at

org.apache.catalina.core.StandardService.start(StandardService.java:497)

	at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)

	at

org.apache.catalina.startup.Catalina.start(Catalina.java:512)

	at

org.apache.catalina.startup.Catalina.execute(Catalina.java:400)

	at


Coyote/JK2 AJP 1.3 Connector

2004-02-23 Thread Rommel Sharma
Dear Tomcat Gurus,

What is the use of Coyote/JK2 AJP 1.3 Connector on port 8009 in server.xml.

If I have two different tomcats running, and I have already changed the http
and https ports for them, do I have to change the 8009 port in one of them
to avoid conflict?

Thanks,
Rommel Sharma.

FYR: [in server.xml]
..
..
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
..
..

*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com




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



Re: [ANN] Apache Tomcat 5.0.19 Stable and Tomcat 4.1.30 Stable released

2004-02-23 Thread Ronald Klop
On Mon Feb 23 10:38:08 CET 2004 Remy Maucherat [EMAIL PROTECTED] wrote:

The Tomcat Team announces the immediate availability of Apache Tomcat
5.0.18 Stable and Tomcat 4.1.30 Stable.


I think you copy-and-pasted a little to much. The subject and body don't match 5.0.19 - 5.0.18. The website is wrong about this also.

Greetings,

Ronald.


Begin event threw error

2004-02-23 Thread Peter Cinquini
I'm trying to install Tomcat ver 5.0.18 to work with IIS on Windows XP I
also have Java 1.3 installed.

When I run startup.bat to start Tomcat a second window opens but this
quickly closes.
I worked out the startup.bat script runs Catalina.
When I type catalina run at the dos prompt I get the following output list
ed below the line. What does Begin threw error mean? Am I using the right
versions of Tomcat / JDK?

Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\jdk1.3
[ERROR] Digester - -Begin event threw error
java.lang.ExceptionInInitializerErrorjava.lang.ExceptionInInitializerError
:
sun.misc.InvalidJarIndexException: Invalid index!
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594)
at sun.misc.URLClassPath.getResource(URLClassPath.java:134)
at java.net.URLClassLoader$2.run(URLClassLoader.java:349)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:346)
at org.apache.catalina.loader.StandardClassLoader.findResource
(StandardClassLoader.java:562)
at org.apache.catalina.loader.StandardClassLoader.getResource
(StandardClassLoader.java:638)
at org.apache.commons.modeler.Registry.loadDescriptors
(Registry.java:895)
at org.apache.catalina.mbeans.MBeanUtils.createRegistry
(MBeanUtils.java:1649)
at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit
(GlobalResourcesLifecycleListener.java:112)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.commons.digester.ObjectCreateRule.begin
(ObjectCreateRule.java:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.catalina.util.CatalinaDigester.startElement
(CatalinaDigester.java:112)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
wn
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.
dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:532)
at org.apache.catalina.startup.Catalina.load(Catalina.java:570)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)

java.lang.reflect.InvocationTargetException:
java.lang.ExceptionInInitializerError: sun.misc.InvalidJarIndexException:
Invalid index!
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594)
at sun.misc.URLClassPath.getResource(URLClassPath.java:134)
at java.net.URLClassLoader$2.run(URLClassLoader.java:349)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:346)
at org.apache.catalina.loader.StandardClassLoader.findResource
(StandardClassLoader.java:562)
at org.apache.catalina.loader.StandardClassLoader.getResource
(StandardClassLoader.java:638)
at org.apache.commons.modeler.Registry.loadDescriptors
(Registry.java:895)
at org.apache.catalina.mbeans.MBeanUtils.createRegistry
(MBeanUtils.java:1649)
at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit
(GlobalResourcesLifecycleListener.java:112)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.commons.digester.ObjectCreateRule.begin
(ObjectCreateRule.java:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.catalina.util.CatalinaDigester.startElement
(CatalinaDigester.java:112)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
wn
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.
dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at 

RE: [ANN] Apache Tomcat 5.0.19 Stable and Tomcat 4.1.30 Stable released

2004-02-23 Thread Shapira, Yoav

Howdy,

I think you copy-and-pasted a little to much. The subject and body
don't
match 5.0.19 - 5.0.18. The website is wrong about this also.

Where's the website wrong?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: [ANN] Apache Tomcat 5.0.19 Stable and Tomcat 4.1.30 Stable released

2004-02-23 Thread Brandon Goodin
Shouldn't this say Tomcat 5.0.19 in the body of the message? ;-)

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 23, 2004 1:38 AM
To: Tomcat Developers List; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [ANN] Apache Tomcat 5.0.19 Stable and Tomcat 4.1.30 Stable released

The Tomcat Team announces the immediate availability of Apache Tomcat
5.0.18 Stable and Tomcat 4.1.30 Stable.

Please refer to the changelog for the list of changes.

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Sources: http://jakarta.apache.org/site/sourceindex.cgi

The Apache Tomcat Team


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



ant emulation of Upload a WAR file to install

2004-02-23 Thread Dean A. Hoover
I am using ant 1.6 and tomcat 4.1.29.
I have set my webapps directory to someplace
other than the usual place. When I use
the /manager/html/list application through
my browser, I can use the Upload a WAR file to install
form to put my war file in the webapps directory,
unpack it and run it. This is exactly the behavior
I would like to emulate in ant, but I do not see
how. I have played around with the install and
deploy tasks, but they do not operate the same
as the upload form does. How can I do what the
form does using ant?
Thanks.
Dean Hoover
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Touble with context container

2004-02-23 Thread Didier Croutz
Hello,

I'm starting with Tomcat and I've got a configuration problem.

I've installed Tomcat 5.014 on a Windows 2K SP4 workstation into 
the default directory (C:\Program Files\Tomcat 5.0). I've kept the 
default settings (e.g. port 8080, admin.xml, server.xml ). I stored my 
applications on a network drive (H:) into a directory named Tomcat.

I've just modified C:\Program Files\Tomcat 5.0\conf\server.xml 
file a little bit adding Context path=/Tomcat docBase=H:/Tomcat 
debug=0 line (server.xml joined to this mail).

My testing application is into H:\Tomcat directory 
(departement.class and recherchDep.html files joined to this mail). I fill 
the address field of my web browser (internet explorer 6.0.2800.1106) with: 
htpp://localhost:8080/Tomcat/recherchDep.html. I  can reach the html page 
but when I tried to launch departement script I get a 404 message into my 
browser saying that it can reach departement resource.

Could somebody help me ?

Thanks,
Regards.
 


server.xml
Description: application/xml
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Begin event threw error

2004-02-23 Thread rgarg




Hi Peter,

The same error is happening with me.  Also the Tomcat 4 is giving
ResourceBundle locale en_US error.

But when i did run Tomcat 4 with j2sdk1.4.1 everything just worked fine.

And when I did run Tomcat 5 on j2sdk1.4.1 it also worked all fine

The problem is that it is written in the 'running.txt' in tomcat directory
that it shall work with any jdk version above jdk1.3.
But it is not working on my machine on any version below j2sdk1.4.1

Anyway, do let me know if anyone has solution to run tomcat in jdk1.3 or if
it is not compatible with jdk1.3

Thanks  Regards,

Rajesh Garg





...


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



RE: Touble with context container

2004-02-23 Thread Bodycombe, Andrew
What is in your H:\Tomcat\WEB-INF\web.xml file?

-Original Message-
From: Didier Croutz [mailto:[EMAIL PROTECTED] 
Sent: 23 February 2004 14:22
To: [EMAIL PROTECTED]
Subject: Touble with context container


 Hello,

 I'm starting with Tomcat and I've got a configuration problem.

 I've installed Tomcat 5.014 on a Windows 2K SP4 workstation into 
the default directory (C:\Program Files\Tomcat 5.0). I've kept the 
default settings (e.g. port 8080, admin.xml, server.xml ). I stored my 
applications on a network drive (H:) into a directory named Tomcat.

 I've just modified C:\Program Files\Tomcat 5.0\conf\server.xml 
file a little bit adding Context path=/Tomcat docBase=H:/Tomcat 
debug=0 line (server.xml joined to this mail).

 My testing application is into H:\Tomcat directory 
(departement.class and recherchDep.html files joined to this mail). I fill 
the address field of my web browser (internet explorer 6.0.2800.1106) with: 
htpp://localhost:8080/Tomcat/recherchDep.html. I  can reach the html page 
but when I tried to launch departement script I get a 404 message into my 
browser saying that it can reach departement resource.

 Could somebody help me ?

 Thanks,
 Regards.


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



RE: One user seeing another user's data

2004-02-23 Thread Anbu
Hello All,
 
I think that this problem (one user seeing another user's data) might be due to 
threadedness/concurrency of Tomcat. Ofcourse there could be problem with the JSP 
application too.
 
Can anyone throw some light on the possible session mixups happening with Tomcat 
server? I have seen the dev mailing list that such a thing happens when there are two 
or more tomcat server instances.
 
Thanks and Regards,
Anbu 


Kal Govindu [EMAIL PROTECTED] wrote:
We had this problem on our first JSP application. One of the things we
had to fix it was to remove all variable definitions from and
move them to .

Kal

-Original Message-
From: Antonio Fiol Bonnin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 2:17 AM
To: Tomcat Users List
Subject: Re: One user seeing another user's data


Hi Kuloth,

Seatch Tomcat-user for concurrency problems or threading issues. 
There has been recent discussion on the topic.

Concurrency problems are the main source of session mix-up. Also look 
for instance variables (hint: avoid them in Servlets)

Antonio Fiol



Anbu wrote:

Hello Bill and All,
 
Could any one of you throw some light on a problem that I am facing on
Apache 1.3.28/Mod-jk 1.2.0/Tomcat 4.0.6 setup?
 
The problem is that an user could see someother user's data (some kind
of session mix up). When I searched the tomcat-dev list I found that
Bill had replied that the problem could be related to error handling and
it is not a synchorinazation problem.
 
Bill, as you have already seen and analyized this issue, could you
please help me on this issue ?

 
Thank you all in advance.
 
Regards,
Kuloth
 




CONFIDENTIALITY NOTE: All e-mail sent to or from this address will be received by the 
Waterfield Group corporate e-mail system and is subject to archival, monitoring, 
and/or review by someone other than the recipient or the sender.

This e-mail and any of its attachments may contain proprietary information, which is 
privileged and confidential. This e-mail is intended solely for the use of the 
individual or entity to which it is addressed. If you are not the intended recipient 
of this e-mail, you are hereby notified that any dissemination, distribution, copying, 
or action taken in relation to the contents of and attachments to this e-mail is 
strictly prohibited and may be unlawful. If you have received this e-mail in error, 
please notify the sender immediately and permanently delete the original and any copy 
of this e-mail and any printout. Thank you.


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



-
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

RE: Touble with context container

2004-02-23 Thread Lerias, Hugo
Hi Didier,

I would create a directory under 
C:\Program Files\Tomcat
5.0\web-apps\write-your-web-application-here\
And then in the context I would try:
Context path=/myapp docBase=myapp debug=0/Context

It should work.

Hugo

PS: You can find a simple example on how to configure a tomcat to run a
simple application here:
http://kevinj.develop.com/javahome/javatomcat.jsp


-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Montag, 23. Februar 2004 15:42
To: 'Tomcat Users List'
Subject: RE: Touble with context container


What is in your H:\Tomcat\WEB-INF\web.xml file?

-Original Message-
From: Didier Croutz [mailto:[EMAIL PROTECTED] 
Sent: 23 February 2004 14:22
To: [EMAIL PROTECTED]
Subject: Touble with context container


 Hello,

 I'm starting with Tomcat and I've got a configuration problem.

 I've installed Tomcat 5.014 on a Windows 2K SP4 workstation
into 
the default directory (C:\Program Files\Tomcat 5.0). I've kept the 
default settings (e.g. port 8080, admin.xml, server.xml ). I stored
my 
applications on a network drive (H:) into a directory named Tomcat.

 I've just modified C:\Program Files\Tomcat 5.0\conf\server.xml 
file a little bit adding Context path=/Tomcat docBase=H:/Tomcat 
debug=0 line (server.xml joined to this mail).

 My testing application is into H:\Tomcat directory 
(departement.class and recherchDep.html files joined to this mail). I
fill 
the address field of my web browser (internet explorer 6.0.2800.1106)
with: 
htpp://localhost:8080/Tomcat/recherchDep.html. I  can reach the html
page 
but when I tried to launch departement script I get a 404 message into
my 
browser saying that it can reach departement resource.

 Could somebody help me ?

 Thanks,
 Regards.


-
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: a question on viewing servlets

2004-02-23 Thread QM
On Mon, Feb 23, 2004 at 02:28:30AM -0800, ches_nutsy wrote:
: Yes.. um but i dont know anthing about xml, could you pleas please tell me how to do 
your saying?? i dont know how to configure any xml code... please... thanks.
: do i just have to write the directory where i save my servlets??

You may want to start here:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/deployment.html

There's even a link to a sample web.xml.

For a more in-depth look, the full servlet 2.4 spec is available at:

http://jcp.org/aboutJava/communityprocess/final/jsr154/index.htm

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: ant emulation of Upload a WAR file to install

2004-02-23 Thread Adam Hardy
On 02/23/2004 03:04 PM Dean A. Hoover wrote:
I am using ant 1.6 and tomcat 4.1.29.
I have set my webapps directory to someplace
other than the usual place. When I use
the /manager/html/list application through
my browser, I can use the Upload a WAR file to install
form to put my war file in the webapps directory,
unpack it and run it. This is exactly the behavior
I would like to emulate in ant, but I do not see
how. I have played around with the install and
deploy tasks, but they do not operate the same
as the upload form does. How can I do what the
form does using ant?
You just need ant to copy the war into your APPBASE directory. Then 
tomcat will do the rest, assuming that your host (in server.xml) is 
configured to autoDeploy=true and unpackWARs=true.

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ant emulation of Upload a WAR file to install

2004-02-23 Thread Dean A. Hoover
Thanks. I'll give that a try... when does tomcat notice
the war file?
Adam Hardy wrote:

On 02/23/2004 03:04 PM Dean A. Hoover wrote:

I am using ant 1.6 and tomcat 4.1.29.
I have set my webapps directory to someplace
other than the usual place. When I use
the /manager/html/list application through
my browser, I can use the Upload a WAR file to install
form to put my war file in the webapps directory,
unpack it and run it. This is exactly the behavior
I would like to emulate in ant, but I do not see
how. I have played around with the install and
deploy tasks, but they do not operate the same
as the upload form does. How can I do what the
form does using ant?


You just need ant to copy the war into your APPBASE directory. Then 
tomcat will do the rest, assuming that your host (in server.xml) is 
configured to autoDeploy=true and unpackWARs=true.

Adam




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


Viewing errors

2004-02-23 Thread Leo Tomcat
Hi all, I'm using Tomcat 4.0.6 and I've already installed it as a service. 
My problem now, is that I can't see the console that was so usefull for viewing when 
some exception was thrown, or just for debugging using System.out.println.
I've searched the log files at $TOMCAT_HOME\logs and I couldn't find any of the logs 
that my webapp leaves.
I've tried System.err and nothing happend.
Does any one know, how to send my my error-logs or simplier logs to a file??
Is that configurable or a code matter??

Thanks





RE: ant emulation of Upload a WAR file to install

2004-02-23 Thread Lerias, Hugo
This says everything...Excerpt from
http://www.devx.com/Java/Article/17908/0/page/4
Tomcat does not detect changes to the WAR archive, so it does not
automatically deploy new versions of an application when new WAR files
are copied over old ones in the Tomcat deploy directory (except in the
case of statically specified Tomcat applications in the server.xml
configuration file).

Cheers,
Hugo

-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED] 
Sent: Montag, 23. Februar 2004 16:29
To: Tomcat Users List
Subject: Re: ant emulation of Upload a WAR file to install


Thanks. I'll give that a try... when does tomcat notice
the war file?

Adam Hardy wrote:

 On 02/23/2004 03:04 PM Dean A. Hoover wrote:

 I am using ant 1.6 and tomcat 4.1.29.
 I have set my webapps directory to someplace
 other than the usual place. When I use
 the /manager/html/list application through
 my browser, I can use the Upload a WAR file to install form to put 
 my war file in the webapps directory, unpack it and run it. This is 
 exactly the behavior I would like to emulate in ant, but I do not see
 how. I have played around with the install and
 deploy tasks, but they do not operate the same
 as the upload form does. How can I do what the
 form does using ant?


 You just need ant to copy the war into your APPBASE directory. Then
 tomcat will do the rest, assuming that your host (in server.xml) is 
 configured to autoDeploy=true and unpackWARs=true.


 Adam




-
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: ant emulation of Upload a WAR file to install

2004-02-23 Thread Shapira, Yoav

Howdy,

This says everything...Excerpt from
http://www.devx.com/Java/Article/17908/0/page/4
Tomcat does not detect changes to the WAR archive, so it does not
automatically deploy new versions of an application when new WAR files
are copied over old ones in the Tomcat deploy directory (except in the
case of statically specified Tomcat applications in the server.xml
configuration file).

Note that:
- The DevX article writer would have done well to tell people about the
Ant tasks tomcat supplies in order to deploy/undeploy/restart webapps,
instead of encouraging people to write their own (possibly buggy, likely
incompatible with future tomcat versions) tasks.
- The article was written prior to the release of tomcat 5 stable, which
contains behavioral changes in this area.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: ant emulation of Upload a WAR file to install

2004-02-23 Thread Dean A. Hoover
Shapira, Yoav wrote:

Howdy,

 

This says everything...Excerpt from
http://www.devx.com/Java/Article/17908/0/page/4
Tomcat does not detect changes to the WAR archive, so it does not
automatically deploy new versions of an application when new WAR files
are copied over old ones in the Tomcat deploy directory (except in the
case of statically specified Tomcat applications in the server.xml
configuration file).
   

Note that: 
- The DevX article writer would have done well to tell people about the
Ant tasks tomcat supplies in order to deploy/undeploy/restart webapps,
instead of encouraging people to write their own (possibly buggy, likely
incompatible with future tomcat versions) tasks.
- The article was written prior to the release of tomcat 5 stable, which
contains behavioral changes in this area.

Like what? I am using 4.1.29 and ant 1.6. All I want to do is emulate 
the behavior
of the upload war file form in the browser manager. I do not seem to be 
able to do
that with the ant manager tasks that come with 4.1.29. Are there more in 
5.0?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
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: ant emulation of Upload a WAR file to install

2004-02-23 Thread Shapira, Yoav

Howdy,

- The article was written prior to the release of tomcat 5 stable,
which
contains behavioral changes in this area.

Like what? I am using 4.1.29 and ant 1.6. All I want to do is emulate
the behavior
of the upload war file form in the browser manager. I do not seem to be
able to do
that with the ant manager tasks that come with 4.1.29. Are there more
in
5.0?

The relevant code (deployment of web applications) was modified
significantly in tomcat 5, as were the manager ant tasks.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Viewing errors

2004-02-23 Thread jerome moliere
Leo Tomcat wrote:

Hi all, I'm using Tomcat 4.0.6 and I've already installed it as a service. 
My problem now, is that I can't see the console that was so usefull for viewing when some exception was thrown, or just for debugging using System.out.println.
I've searched the log files at $TOMCAT_HOME\logs and I couldn't find any of the logs that my webapp leaves.
I've tried System.err and nothing happend.
Does any one know, how to send my my error-logs or simplier logs to a file??
Is that configurable or a code matter??

 

I highly suggest you to use chainsaw   to configure your logs using 
log4j
After this you will be able to view your logs on the machine of your 
choice with a nice GUI...
LOG4J resources (manual  so on) may guide you

HTH
Jerome
Thanks



 



--
Auteur cahier du programmeur Java tome 2 - Eyrolles 10/2003
http://www.eyrolles.com/php.informatique/Ouvrages/ouvrage.php3?ouv_ean13=9782212111941


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


Re: [Fwd: Catalina suspends for no reason?!?]

2004-02-23 Thread Sam Seaver
Well,  Catalina did it again, suspended this weekend.

But following Yoav's recommendation I ran './catalina.sh stop' and then 
did a 'kill -s SIGQUIT' on the JVM process and got this lovely long 
thread dump in my catalina.out.

The only thread that makes any sense to me, because it refers to a bit 
of my own code, is thread number 15.  I use my bean to download selected 
files from one of several ftp mirrors.

But nothing else seems to make sense, is it ture that I shouldn't be 
using ftp from a bean?

All the other threads were various parts of Java either 'waiting for a condition' or 'locked'...

Cheers
Sam
Thread-15 daemon prio=1 tid=0x085beba0 nid=0x38f7 waiting on condition 
[4e7f7000..4e7f8714]
   at 
java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:119)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:199)
   - locked 0x45152a48 (a java.io.BufferedInputStream)
   at 
sun.net.TransferProtocolClient.readServerResponse(TransferProtocolClient.java:49)
   at sun.net.ftp.FtpClient.readReply(FtpClient.java:211)
   at sun.net.ftp.FtpClient.openServer(FtpClient.java:424)
   at sun.net.ftp.FtpClient.init(FtpClient.java:692)
   at 
sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:175)
   - locked 0x45152ac8 (a sun.net.www.protocol.ftp.FtpURLConnection)
   at 
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:257)
   at 
edu.northwestern.monster.bean.UploadBean.pdbDownload(UploadBean.java:379)
   at 
edu.northwestern.monster.bean.UploadBean.doPost(UploadBean.java:298)
   at org.apache.jsp.monster_jsp._jspService(monster_jsp.java:81)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   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.access$000(ApplicationFilterChain.java:98)
   at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
   at java.security.AccessController.doPrivileged(Native Method)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at 

Embedded Tomcat and Classpath issues.

2004-02-23 Thread Brian Krisler
Hello, 

I have an application that has Tomcat embedded, running Xindice.
I would like to start Tomcat when my application starts which works
just fine if Tomcat jars are the only jars specified on the VM classpath.
However I also need to have Xindice jars on the classpath since my
application uses Xindice, through Tomcat.  Is it possible to tell Tomcat
to ignore the System classpath when starting?  I think this would solve
my problem.

The problem seems to be that including Xindice jars on the classpath,
so my application can use them, invalidates the jars that are in webapps
for Xindice.

Thanks

Brian

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



RE: [Fwd: Catalina suspends for no reason?!?]

2004-02-23 Thread Shapira, Yoav

Howdy,

The only thread that makes any sense to me, because it refers to a bit
of my own code, is thread number 15.  I use my bean to download
selected
files from one of several ftp mirrors.

Is it a daemon thread?

If you could post just the few lines of each thread in your dump (no
need for the whole stack trace), that'd be interesting.  Also look for
two threads waiting on/locked on the same object address.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Client Certificate Tomcat 4.1.19 HELP ME !!!!!!!!!!!!

2004-02-23 Thread Juan de Bravo

Hi,

I have configured Tomcat to use SSL with Client Authentication.

When I use a Web browser I import the certificate in PKCS12 format and it
works fine.

But now I need to use a client based on a Java application. I am using
HTTPClient API,
but I do not know how to configure the client certificate.

How can I develop that?



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



Re: [Fwd: Catalina suspends for no reason?!?]

2004-02-23 Thread Sam Seaver
By address I assume you mean the hexademical numbers in the square 
brackets on the first line of each?

15 is a daemon, I've posted a few lines from each:

Thread-35 daemon prio=1 tid=0x08454c30 nid=0x38f7 waiting on condition 
[4f20a000..4f20c714]
   at sun.security.provider.MD5.engineUpdate(MD5.java:252)
   at sun.security.provider.MD5.finish(MD5.java:290)
   at sun.security.provider.MD5.engineDigest(MD5.java:303)
--
Thread-34 daemon prio=1 tid=0x08454098 nid=0x38f7 waiting for monitor 
entry [4f189000..4f18b714]
   at 
org.apache.catalina.session.ManagerBase.generateSessionId(ManagerBase.java:706)
   - waiting to lock 0x450432e0 (a 
org.apache.catalina.session.StandardManager)
   at 
org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:584)
--
Thread-33 daemon prio=1 tid=0x080b3308 nid=0x38f7 waiting for monitor 
entry [4f108000..4f10a714]
   at 
org.apache.catalina.session.ManagerBase.generateSessionId(ManagerBase.java:706)
   - waiting to lock 0x450432e0 (a 
org.apache.catalina.session.StandardManager)
   at 
org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:584)
--
Thread-32 daemon prio=1 tid=0x080b2790 nid=0x38f7 in Object.wait() 
[4f089000..4f089714]
   at java.lang.Object.wait(Native Method)
   - waiting on 0x44847bc8 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
   at java.lang.Object.wait(Object.java:429)
--
Thread-31 daemon prio=1 tid=0x080b0c98 nid=0x38f7 waiting on condition 
[4f008000..4f008714]
   at 
java.text.DateFormatSymbols.initializeData(DateFormatSymbols.java:468)
   at java.text.DateFormatSymbols.init(DateFormatSymbols.java:103)
   at java.text.SimpleDateFormat.init(SimpleDateFormat.java:442)
--
Thread-30 daemon prio=1 tid=0x080b00e0 nid=0x38f7 waiting for monitor 
entry [4ef85000..4ef87714]
   at sun.net.www.protocol.file.Handler.openConnection(Handler.java:54)
   - waiting to lock 0x44e41da8 (a sun.net.www.protocol.file.Handler)
   at java.net.URL.openConnection(URL.java:896)
--
Thread-29 daemon prio=1 tid=0x080af528 nid=0x38f7 runnable 
[4ef06000..4ef06714]
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:129)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
--
Thread-28 daemon prio=1 tid=0x080aea28 nid=0x38f7 runnable 
[4ee85000..4ee85714]
   at java.net.SocketInputStream.socketRead0(Native Method)
   at java.net.SocketInputStream.read(SocketInputStream.java:129)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
--
Thread-27 daemon prio=1 tid=0x080ac988 nid=0x38f7 waiting for monitor 
entry [4ee02000..4ee04714]
   at sun.net.www.protocol.file.Handler.openConnection(Handler.java:54)
   - waiting to lock 0x44e41da8 (a sun.net.www.protocol.file.Handler)
   at java.net.URL.openConnection(URL.java:896)
--
Thread-26 daemon prio=1 tid=0x080abeb0 nid=0x38f7 waiting for monitor 
entry [4ed81000..4ed83714]
   at sun.net.www.protocol.file.Handler.openConnection(Handler.java:54)
   - waiting to lock 0x44e41da8 (a sun.net.www.protocol.file.Handler)
   at java.net.URL.openConnection(URL.java:896)
--
Thread-25 daemon prio=1 tid=0x080c3000 nid=0x38f7 waiting for monitor 
entry [4ed0..4ed02714]
   at sun.net.www.protocol.file.Handler.openConnection(Handler.java:54)
   - waiting to lock 0x44e41da8 (a sun.net.www.protocol.file.Handler)
   at java.net.URL.openConnection(URL.java:896)
--
Thread-24 daemon prio=1 tid=0x080c2500 nid=0x38f7 waiting for monitor 
entry [4ec7f000..4ec81714]
   at sun.net.www.protocol.file.Handler.openConnection(Handler.java:54)
   - waiting to lock 0x44e41da8 (a sun.net.www.protocol.file.Handler)
   at java.net.URL.openConnection(URL.java:896)
--
Thread-23 daemon prio=1 tid=0x080c0680 nid=0x38f7 waiting for monitor 
entry [4ebfe000..4ec00714]
   at sun.net.www.protocol.file.Handler.openConnection(Handler.java:54)
   - waiting to lock 0x44e41da8 (a sun.net.www.protocol.file.Handler)
   at java.net.URL.openConnection(URL.java:896)
--
Thread-22 daemon prio=1 tid=0x080bfac8 nid=0x38f7 waiting for monitor 
entry [4eb7d000..4eb7f714]
   at sun.net.www.protocol.file.Handler.openConnection(Handler.java:54)
   - waiting to lock 0x44e41da8 (a sun.net.www.protocol.file.Handler)
   at java.net.URL.openConnection(URL.java:896)
--
Thread-21 daemon prio=1 tid=0x080bef30 nid=0x38f7 waiting for monitor 
entry [4eafc000..4eafe714]
   at sun.net.www.protocol.file.Handler.openConnection(Handler.java:54)
   - waiting to lock 0x44e41da8 (a sun.net.www.protocol.file.Handler)
   at java.net.URL.openConnection(URL.java:896)
--
Thread-20 daemon prio=1 tid=0x080be470 nid=0x38f7 waiting on condition 
[4ea7d000..4ea7d714]
   at 
java.util.GregorianCalendar.computeTime(GregorianCalendar.java:1522)
   at 

RE: [ANN] Apache Tomcat 5.0.19 Stable and Tomcat 4.1.30 Stable released

2004-02-23 Thread Ronald Klop
On Mon Feb 23 14:44:30 CET 2004 Shapira, Yoav [EMAIL PROTECTED] wrote:

Howdy,

I think you copy-and-pasted a little to much. The subject and body
don't
match 5.0.19 - 5.0.18. The website is wrong about this also.
Where's the website wrong?

Yoav Shapira



 

http://jakarta.apache.org/site/news.html#20040223.1

But I see it's fixed already.

Greetings,

Ronald.


RE: Touble with context container

2004-02-23 Thread Bodycombe, Andrew
Tomcat will not see your servlet until you create a web.xml file for your
application.

The following document explains the directory layout:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/
Pay particular attention to this section:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/deployment.html

In short, you need to do the following:

1. Create a WEB-INF directory under H:\Tomcat.
2. Create a lib directory under H:\Tomcat\WEB-INF
3. Create a classes directory under H:\Tomcat\WEB-INF
4. Move your class file to H:\Tomcat\WEB-INF\classes\your\package. (I don't
know what package your class is in, so I'm assuming your.package for now)
5. Create a web.xml file under H:\Tomcat\WEB-INF. Add the following text:

?xml version=1.0 encoding=ISO-8859-1?
web-app
  servlet
servlet-namedepartement/servlet-name
servlet-classyour.package.departement/servlet-class
  servlet
  servlet-mapping
servlet-namedepartement/servlet-name
url-pattern/departement/url-pattern
  /servlet-mapping
/web-app

6. Restart tomcat
7. Type http://localhost:8080/Tomcat/departement into your browser to see if
your servlet is working.

Regards,
Andy

-Original Message-
From: Didier Croutz [mailto:[EMAIL PROTECTED] 
Sent: 23 February 2004 16:12
To: Bodycombe, Andrew
Subject: RE: Touble with context container


Hi,

First thanks for your response. I have no H:\Tomcat\WEB-INF\web.xml file 
but C:\Program Files\Tomcat 5.0\conf\server.xml.

Regards.

A 14:42 23/02/2004 +, vous avez écrit :
What is in your H:\Tomcat\WEB-INF\web.xml file?

-Original Message-
From: Didier Croutz [mailto:[EMAIL PROTECTED]
Sent: 23 February 2004 14:22
To: [EMAIL PROTECTED]
Subject: Touble with context container


  Hello,

  I'm starting with Tomcat and I've got a configuration problem.

  I've installed Tomcat 5.014 on a Windows 2K SP4 workstation into
the default directory (C:\Program Files\Tomcat 5.0). I've kept the
default settings (e.g. port 8080, admin.xml, server.xml ). I stored my
applications on a network drive (H:) into a directory named Tomcat.

  I've just modified C:\Program Files\Tomcat 5.0\conf\server.xml
file a little bit adding Context path=/Tomcat docBase=H:/Tomcat
debug=0 line (server.xml joined to this mail).

  My testing application is into H:\Tomcat directory
(departement.class and recherchDep.html files joined to this mail). I fill
the address field of my web browser (internet explorer 6.0.2800.1106) with:
htpp://localhost:8080/Tomcat/recherchDep.html. I  can reach the html page
but when I tried to launch departement script I get a 404 message into my
browser saying that it can reach departement resource.

  Could somebody help me ?

  Thanks,
  Regards.


-
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: [Fwd: Catalina suspends for no reason?!?]

2004-02-23 Thread Shapira, Yoav

Howdy,

By address I assume you mean the hexademical numbers in the square
brackets on the first line of each?

Yes.

15 is a daemon, I've posted a few lines from each:

Hmm, they're all daemons.  How strange...

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



JDK Versions

2004-02-23 Thread Tom . Williams

Return Receipt
   
Your  JDK Versions 
document   
:  
   
was   Tom Williams/HQ/dssi 
received   
by:
   
at:   02/23/2004 10:31:45 AM   
   





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



Re: Proposal: New parameter for JK2 connector

2004-02-23 Thread Antonio Fiol Bonnín
Hi Bill,

Seen that mod_jk has a socket_keepalive option for the Apache side, my
proposal consists in adding a similar setting in the Tomcat side.
Advantages:
If you pull the power cord of your Apache server (or something else bad
happens to it), Tomcat will notice shortly after, and will close the
associated connections, thus freeing threads, which are limited by
maxThreads.
I know it is an unlikely situation, but I still think it is a good idea.

Suggestions welcome!
   

It shouldn't be necessary, since the Tomcat side spends most of it's time
attempting a 'read' on the Socket.  It should throw an IOException as soon
as Apache drops its end of the Socket (via tripping over the power cord or
otherwise :).
 

How would that be possible?

Precisely because Tomcat is idle on a read() call on the socket, several 
things may happen:

1- A packet with data is received.
2- An ACK packet is received (or a keepalive by any means).
3- A FIN or RST or (what was it) packet is received.
4- Nothing is received.
And the OS will:
1- End the read() call by returning the received data to Tomcat.
2- The OS responds to the keepalive or ACK or anything, and Tomcat keeps 
idle on read().
3- The read() call will be aborted, and an exception will be risen.
4- Nothing happens (Tomcat keeps idle on read())

If you pull the porwer cord (or network cable, for this matters), (4) 
will happen. I mean: a dead machine does not (can not) send packets. So 
NOTHING will happen. Tomcat will not notice.

As I tried to show from the beginning...

Please consider that I am not looking into the case where Apache 
*process* dies, in which case (3) will happen, as you said. I really 
mean a *hardware* problem.

Yours,

Antonio Fiol

P.S.: If it is voted for, I may develop the necessary patch, as it is a 
fairly trivial one.




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Coyote/JK2 AJP 1.3 Connector

2004-02-23 Thread Antonio Fiol Bonnín
Simply comment out the connector. You are not using it, so you don't 
need it there.

Antonio Fiol

Rommel Sharma wrote:

Dear Tomcat Gurus,

What is the use of Coyote/JK2 AJP 1.3 Connector on port 8009 in server.xml.

If I have two different tomcats running, and I have already changed the http
and https ports for them, do I have to change the 8009 port in one of them
to avoid conflict?
Thanks,
Rommel Sharma.
FYR: [in server.xml]
..
..
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=2
  useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
..
..
*
Disclaimer
This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com


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




smime.p7s
Description: S/MIME Cryptographic Signature


Re: tomcat 5.0.19 cluster problem

2004-02-23 Thread Antonio Fiol Bonnn
Filip Hanik (lists) wrote:

In any case could a cluster node that ran out of memory destroy the
entire cluster?
   

it shouldn't, it can temporary slow it down if the node that is down is
accepting connections and broad casting its membership.
I'm running a load test right now with the latest version to make sure that
I am not BS:ing you here :)
Filip

 

Hi,

If you use in-memory replication, and the source of your 
OutOfMemoryError is that you have too many objects stored in sessions, 
or those objects are too big, or whatever, I think this could bring down 
your entire cluster. What do you think, Filip?

Antonio


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Fwd: Catalina suspends for no reason?!?]

2004-02-23 Thread Sam Seaver
So do you have any idea whats going on?
S
Shapira, Yoav wrote:

Howdy,

 

By address I assume you mean the hexademical numbers in the square
brackets on the first line of each?
   

Yes.

 

15 is a daemon, I've posted a few lines from each:
   

Hmm, they're all daemons.  How strange... 

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
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: [Fwd: Catalina suspends for no reason?!?]

2004-02-23 Thread Shapira, Yoav

Howdy,

So do you have any idea whats going on?

I don't have a good idea.  It's strange they're all daemons.  Does the
CPU usage go way up when the JVM process is hung?  Do the sockets remain
bound?

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: tomcat 5.0.19 cluster problem

2004-02-23 Thread Filip Hanik \(lists\)
yes, three servers in a cluster means three times the amount of memory used
for session data.
checking your -Xmx setting might be a good thing

-Original Message-
From: Antonio Fiol Bonnn [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 11:33 AM
To: Tomcat Users List
Subject: Re: tomcat 5.0.19 cluster problem


Filip Hanik (lists) wrote:

In any case could a cluster node that ran out of memory destroy the
entire cluster?



it shouldn't, it can temporary slow it down if the node that is down is
accepting connections and broad casting its membership.
I'm running a load test right now with the latest version to make sure that
I am not BS:ing you here :)

Filip




Hi,

If you use in-memory replication, and the source of your
OutOfMemoryError is that you have too many objects stored in sessions,
or those objects are too big, or whatever, I think this could bring down
your entire cluster. What do you think, Filip?


Antonio

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.585 / Virus Database: 370 - Release Date: 2/11/2004


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



custom realm administration issue

2004-02-23 Thread sushma
I wrote my custom realm. When I administer this
custom realm from the tomcat admin console, I see
'Error 500, Attribute debug not found'. I defined the
debug attribute in the mbean-descriptors.xml file. But
now I see another similiar error 'Attribute digest not
found'. How can I get rid of these errors ? Please
help.

Thanks,
sushma

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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



Re: One user seeing another user's data

2004-02-23 Thread Antonio Fiol Bonnín
Hi,

- Try to turn all your servlet's non-final STATIC or INSTANCE variables 
into LOCAL scope variables. This is definitely the first step, and will 
likely remove 90% of problems.

For singletons or static variables outside your servlet:

- Concentrate all your accesses to each of them in a short portion of 
code (put all accesses together). Surround them with a 
synchronized(object) { }. You will remove 80% of the remaining problems.

- If a collection is not in local scope, use a synchronized version of 
it. (??%)

For the rest, you will have to figure out   The most important point 
once the above are OK, in my opinion, is that you know the business 
logic concerning object access and its required independence. It's more 
difficult, but you probably know that better than anyone.

Yours,

Antonio Fiol



Anbu wrote:

Hello All,

I think that this problem (one user seeing another user's data) might be due to threadedness/concurrency of Tomcat. Ofcourse there could be problem with the JSP application too.

Can anyone throw some light on the possible session mixups happening with Tomcat server? I have seen the dev mailing list that such a thing happens when there are two or more tomcat server instances.

Thanks and Regards,
Anbu 

 



Keywords (for easier searches): threading issues, session mixup, 
concurrency problems.




smime.p7s
Description: S/MIME Cryptographic Signature


JAAS and Datasources

2004-02-23 Thread Dan Thiffault
Hello,
	I am trying to transition my companies internal applications from IIS 
contained ASP pages to jsp pages using struts on tomcat.  Currently we 
are using tomcat 4 but we could easily be swayed to switching to 
version 5 as we are just in the beginning stages of development.  
Currently our internal web apps are secured using integrated windows 
authentication.  We have a custom component to check user roles in 
active directory.  Connections to our sql db are handled using a 
component which runs under fixed permissions.  With our new setup we 
would like to continue using windows integrated authentication. We 
already have a form based login working with active directory.  
Secondly, but more importantly, after authenticating the user as valid 
for the particular resource, we would like to use their credentials to 
log on to our MS SQL server, which we currently have using mixed mode 
authentication. I've searched through a number of web sites but I feel 
a little lost as to where to begin.  My best guess is that we want to 
use JAAS with Kerberos 5 for authenticating but I'm not sure once a 
user is authenticated within an app how that would be applied to a 
datasource's credentials.  Is the db connection made using a JAAS run 
as?

Thank you for any direction, ideas, or sample code.

-Dan T 

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


Sporadic NoClassDefFoundError

2004-02-23 Thread Brett Knights
Hi,
I am running TC 4.1.29 on Linux with jdk 1.4.2. I have two machines that are set up to 
be quite similar.
Occasionally when I start tomcat my log contains such things as:

java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener (from one machine)

or 

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet (from the other machine)


If I restart tomcat it sometimes starts normally on the next restart. Sometimes it 
takes two or three restarts but eventually the tomcat process is started properly and 
everything runs.

There is only one copy of servlet.jar on these machines. 

Any ideas would be appreciated.

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



commons-validator validates empty field when it's not required

2004-02-23 Thread Yansheng Lin
Hi, 

(should've posted this message on 'commons' to get more answers, ah well, hope
there is enough talents in this pool to grind my petty problem into the dust).

As the title suggested, somehow my validator is trying to validate the
'minlength' of every single field no matter whether I set depends=required or
not.  It seems that all the empty fields are submited by the browser.  Based on
what's stated in validator documentation:  since browser will not submit empty
fields, any field that isn't required will skip all validations if the fields is
null or has a length of zero.  But my browser is doing the exact opposite.  Here
is my form:

form name=ManageForm method=post
action=/Manage.do;jsessionid=26CB107EF9925FB8EEDD4F1223FD89D9
enctype=multipart/form-data
input type=text name=hInput value=
input type=submit value=submit 
/form

-- in validation.xml --
   formset
  !-- Forms --
  form name=ManageTranslateForm
 field property=hInput
 depends=minlength
   arg0 key=hInput.displayname/
   arg1 name=minlength key=${var:minlength}
resource=false/
 var
   var-nameminlength/var-name
   var-value6/var-value
 /var
 /field
  /form
/formset

-- in validator-rules.xml --
  validator name=minlength
classname=org.apache.struts.validator.FieldChecks
   method=validateMinLength
 methodParams=java.lang.Object,
   org.apache.commons.validator.ValidatorAction,
   org.apache.commons.validator.Field,
   org.apache.struts.action.ActionErrors,
   javax.servlet.http.HttpServletRequest
  depends=
  msg=errors.minlength

I don't know how required() could be invoked when it's not set on this
particular field.  Also if browser do sumbit empty fields, then something is
wrong with the 'required' validator.  But the fact that I have used the
validator successfully before contradicts that conclusion.  But it's kind of
vague in w3 recommendation on whether or not the browser should support this
behaviour:
If a control doesn't have a current value when the form is submitted,
user agents are not required to treat it as a successful control. 

Any idea greatly appreciated!

-Yan


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



Apache Tomcat/5.0.19 manager app

2004-02-23 Thread Dean A. Hoover
I just upgraded from 4.1.29 to 5.0.19.
How does tomcat find the manager and admin
apps? In the older versions, they used
context fragments in the standard webapps
directory that effectively pointed to
../server/webapps. I don't see this
mechanism in 5.0.19 and want to know
how it works.
I need this because I am changing
Host appBase to another location so
that I can keep my apps separate from
tomcats home. When I did this under
4.1.x, I simply put a manager.xml file
in my webapps directory that pointed
to the standard app, with an absolute
path. That worked like a charm. I do
not know how to do the same thing
in 5.x.
Any help? Thanks.
Dean Hoover
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Apache Tomcat/5.0.19 manager app

2004-02-23 Thread Shapira, Yoav

Howdy,

I just upgraded from 4.1.29 to 5.0.19.
How does tomcat find the manager and admin
apps? In the older versions, they used
context fragments in the standard webapps
directory that effectively pointed to
../server/webapps. I don't see this
mechanism in 5.0.19 and want to know
how it works.

Boy, sometimes it's disheartening to see someone who's clearly
intelligent not bother to read the docs we spent time writing ;(

Look in the $CATALINA_HOME/conf/Catalina/localhost directory.  Or more
generally, $CATALINA_HOME/conf/[engine name]/[host name].  Also, make
sure you read the relevant docs linked below.  As I mentioned earlier
today, this is an area of significant change in tomcat5.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Automat
ic%20Application%20Deployment
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: JAAS and Datasources

2004-02-23 Thread Adam Hardy
On 02/23/2004 08:45 PM Dan Thiffault wrote:
Hello,
I am trying to transition my companies internal applications from 
IIS contained ASP pages to jsp pages using struts on tomcat.  Currently 
we are using tomcat 4 but we could easily be swayed to switching to 
version 5 as we are just in the beginning stages of development.  
Currently our internal web apps are secured using integrated windows 
authentication.  We have a custom component to check user roles in 
active directory.  Connections to our sql db are handled using a 
component which runs under fixed permissions.  With our new setup we 
would like to continue using windows integrated authentication. We 
already have a form based login working with active directory.  
Secondly, but more importantly, after authenticating the user as valid 
for the particular resource, we would like to use their credentials to 
log on to our MS SQL server, which we currently have using mixed mode 
authentication. I've searched through a number of web sites but I feel a 
little lost as to where to begin.  My best guess is that we want to use 
JAAS with Kerberos 5 for authenticating but I'm not sure once a user is 
authenticated within an app how that would be applied to a datasource's 
credentials.  Is the db connection made using a JAAS run as?
Hi Dan	
I've no experience with the windows security module but I know that a 
tomcat realm can be configured to use it - check the jakarta website 
under 'realms' :)

That's not a JAAS solution though. When writing your own JAAS module, 
you could easily just use the tomcat win realm code.

I have even less idea about the MSSQL login. If you have to do it at the 
same time as the realm login, then you will have to go with JAAS. Doing 
the webserver and db logins seperately will be tricky, since it is not 
easy to access the users session when logging them in, nor later to get 
any more than the username and roles of the user. Yet surely you will be 
using connection pooling? That conflicts with your DB security, methinks.

Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: commons-validator validates empty field when it's not required

2004-02-23 Thread Yansheng Lin
this one is killing me...

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 23, 2004 1:20 PM
To: 'Tomcat Users List'
Subject: commons-validator validates empty field when it's not required


Hi, 

(should've posted this message on 'commons' to get more answers, ah well, hope
there is enough talents in this pool to grind my petty problem into the dust).

As the title suggested, somehow my validator is trying to validate the
'minlength' of every single field no matter whether I set depends=required or
not.  It seems that all the empty fields are submited by the browser.  Based on
what's stated in validator documentation:  since browser will not submit empty
fields, any field that isn't required will skip all validations if the fields is
null or has a length of zero.  But my browser is doing the exact opposite.  Here
is my form:

form name=ManageForm method=post
action=/Manage.do;jsessionid=26CB107EF9925FB8EEDD4F1223FD89D9
enctype=multipart/form-data
input type=text name=hInput value=
input type=submit value=submit 
/form

-- in validation.xml --
   formset
  !-- Forms --
  form name=ManageTranslateForm
 field property=hInput
 depends=minlength
   arg0 key=hInput.displayname/
   arg1 name=minlength key=${var:minlength}
resource=false/
 var
   var-nameminlength/var-name
   var-value6/var-value
 /var
 /field
  /form
/formset

-- in validator-rules.xml --
  validator name=minlength
classname=org.apache.struts.validator.FieldChecks
   method=validateMinLength
 methodParams=java.lang.Object,
   org.apache.commons.validator.ValidatorAction,
   org.apache.commons.validator.Field,
   org.apache.struts.action.ActionErrors,
   javax.servlet.http.HttpServletRequest
  depends=
  msg=errors.minlength

I don't know how required() could be invoked when it's not set on this
particular field.  Also if browser do sumbit empty fields, then something is
wrong with the 'required' validator.  But the fact that I have used the
validator successfully before contradicts that conclusion.  But it's kind of
vague in w3 recommendation on whether or not the browser should support this
behaviour:
If a control doesn't have a current value when the form is submitted,
user agents are not required to treat it as a successful control. 

Any idea greatly appreciated!

-Yan


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



Is Tomcat with JRockit and Intel Xeon Processor okay?

2004-02-23 Thread tom ly
I hear that JRockit only works with Intel processors.  Will it work with the new Xeon 
Processor?
 


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Can't verify sources tomcat-5.0.19

2004-02-23 Thread Chris Johnson
Hi all,
	I think this question maybe should go on the dev list but I may be 
doing something wrong.
	I couldn't get the jarkarta-tomcat-5.0.19.tar.gz to verify using gpg 
and the KEY on the download site. I even downloaded both the file and 
the sig from different mirrors. I could get the .zip file to verify. So 
I'm in business.
thanks,
chrisj

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


RE: Question about webapp deployment or re-deployment

2004-02-23 Thread Tom . Williams





Thanks for the info.  I'm already using the web interface to deploy my
webapp in both Tomcat 4.1.29 and 5.0.18.   My question is, if I need to
deploy an upgrade, let's say, to the webapp how can I deploy the new
version of the webapp:

*) without using ant
*) without losing the changes made to web.xml
*) preferably without having to restart Tomcat or removing the webapp and
re-installing the new version of the webapp

I would like to retain the data sources I've defined as well as the web.xml
changes I've made as I upgrade my webapp as new versions are developed.

From what I've read, people seem to be using ant to do this kind of work.
Is ant required for what I need to accomplish?

Thanks in advance...

Peace...

Tom



   
 Shapira, Yoav   
 [EMAIL PROTECTED] 
 .com  To 
   Tomcat Users List 
 02/04/2004 05:47  [EMAIL PROTECTED]
 AM cc 
   
   Subject 
 Please respond to RE: Question about webapp   
   Tomcat Users   deployment or re-deployment 
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  
   
   
   





Howdy,
You can use the manager's webapp HTML interface without ant.  Connect to
http://yourhost:yourport/manager/deploy?path=/foo with an HTTP PUT
request containing your WAR.  See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html#Deplo
y%20A%20New%20Application%20Remotely

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 7:14 PM
To: [EMAIL PROTECTED]
Subject: Question about webapp deployment or re-deployment






Hi!  I've got Tomat 4.1 .29 and Tomcat 5.0.18 up and running on a
Windows
2000 server to test a webapp we're developing as well as learn some of
the
environmental issues that might impact our app when we deploy it in
production environments.

Currently, we use ant to build a war file that is then used to install
the
webapp via the Tomcat Manager web interface.We upload the war
directly
with the Manager and it deploys the webapp.Then I stop the webapp
and
update web.xml to configure some data sources and some servlet mappings
and
restart Tomcat and the webapp.  I'm working with Tomcat 4.1.29 when
doing
this.   That works fine and my webapp runs just fine.   Now, when I
make
changes to the webapp that I need to get installed, I'm not sure how to
upgrade (effectively) the running webapp.   I've been removing it and
re-deploying it but that results in the web.xml changes being lost.

I can't guarantee ant will be installed on the target server, so I'm
trying
to develop an installation and upgrade process that doesn't involve
ant.
When we install our webapp in a production environment, we'll most
likely
have a pre-built war on a CD that we install from.

I've been reading a TON of great info on re-deploying webapps but they
all
seem to involve running ant to handle the re-deployment.Will I be
forced to use ant or is there another way to 'upgrade' or re-deploy
an
existing running webapp?

I will be working on procedures for Tomcat 4.1.29 and Tomcat 5.0.18 as
I
think they handle re-deployment differently, but I'm not sure.

Thanks in advance for your time and help.

Peace

Tom


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender.  Thank you.


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





tomcat, iis, https how-to

2004-02-23 Thread John MccLain
We are currently using the jk2 redirector with iis on windows 2000 to
redirect jsps, and servlets to tomcat. It works great!
We would like to start using ssl/https. Where can I find out how to do this
with our current configuration???


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



tomcat, iis, https how-to

2004-02-23 Thread John MccLain
We are currently using the jk2 redirector with iis on windows 2000 to
redirect jsps, and servlets to tomcat. It works great!
We would like to start using ssl/https. Where can I find out how to do this
with our current configuration???


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



ServerSocketFactories for Connectors

2004-02-23 Thread Anton Ushakov
Hi,

For a webservices project we need to override the ServerSocketFactory
used with a http connector, - we are implementing our own httpg using
overriden Input/Output streams that do GSS-API authentication.

It works fine when I do this in server.xml on tomcat-4.1.29
Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=6688 scheme=httpg secure=true
Factory className=MyOwnServerSocketFactory /
/Connector

But I know that HttpConnector is deprecated in favor of CoyoteConnector,
and the same configuration with the CoyoteConnector basically ignores
the Factory setting, and just keeps using normal http. 

Question: how can we override the ServerSocketFactory for the
CoyoteConnector?

thank you
-anton


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



What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread George Hester
In Tomacat this works fine:

-- switch.jsp --
!-- BEGIN --
!doctype html public -//W3C//DTD HTML 4.0 Final//EN
%
int day = 3;
%
html
head
titleTest Switch/title
/head
body
% switch (day) {
 case 1:
  out.println(Sunday);
  break;
 case 2:
  out.println(Monday);
  break;
 default:
  out.println(No day);
  break;
   } %
/body
/html
!-- END --

but this does NOT

-- switch.jsp --
!-- BEGIN --
!doctype html public -//W3C//DTD HTML 4.0 Final//EN
%
int day = 3;
%
html
head
titleTest Switch/title
/head
body
% switch (day) { %
 % case 1:
  out.println(Sunday);
  break;
 case 2:
  out.println(Monday);
  break;
 default:
  out.println(No day);
  break;
   } %
/body
/html
!-- END --

-- 
George Hester
__


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



Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread Parsons Technical Services
George,

OK, I'll bite. Why?

Not sure why you want to try this but from what I understand, no it won't
work. The clue is that the jsp page is converted to a servlet and any code
between the % % must stand on it own as valid code. When you split the
code you have created two segments that if entered in a standard servlet
could not stand on their own IF separated at ALL. Thus if the segregation
was allowed then what would prevent you from inserting code between them?
Thus when the servlet is created you then have two fragments of invalid code
separated by other code. With that in mind, a simple test to determine if
what you want is valid is to enter whatever you want between the  % % in a
standard class and see if it complains.

Again this is from my understanding.

Doug Parsons
www.parsonstechnical.com


- Original Message - 
From: George Hester [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 23, 2004 9:03 PM
Subject: What's the problem with Tomcat 4.1.29 and Switch?


In Tomacat this works fine:

-- switch.jsp --
!-- BEGIN --
!doctype html public -//W3C//DTD HTML 4.0 Final//EN
%
int day = 3;
%
html
head
titleTest Switch/title
/head
body
% switch (day) {
 case 1:
  out.println(Sunday);
  break;
 case 2:
  out.println(Monday);
  break;
 default:
  out.println(No day);
  break;
   } %
/body
/html
!-- END --

but this does NOT

-- switch.jsp --
!-- BEGIN --
!doctype html public -//W3C//DTD HTML 4.0 Final//EN
%
int day = 3;
%
html
head
titleTest Switch/title
/head
body
% switch (day) { %
 % case 1:
  out.println(Sunday);
  break;
 case 2:
  out.println(Monday);
  break;
 default:
  out.println(No day);
  break;
   } %
/body
/html
!-- END --

-- 
George Hester
__


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



What changed between 5.0.18 and 5.0.19?

2004-02-23 Thread Brandon Goodin
I've looked through the release notes and various other files. But, I cannot
find anything that actually shows a list of changes for the versions. Am I
missing it? If not, then that seems pretty crucial to a release.

 

Thanks,

Brandon



Re: What changed between 5.0.18 and 5.0.19?

2004-02-23 Thread Jeanfrancois Arcand


Brandon Goodin wrote:

I've looked through the release notes and various other files. But, I cannot
find anything that actually shows a list of changes for the versions. Am I
missing it? If not, then that seems pretty crucial to a release.
 

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

-- Jeanfrancois



Thanks,

Brandon

 



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


Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread George Hester
Well according to Core JSP by Damon Hougland and Aaron Tavistock © 2001 Prentice Hall 
(pgs 26-28) it should work.

For example this works:

  % if (day == 1 | day == 7){ %
   font color=red size=+1
   It's the weekend!/font
  % } else { %
   font color=red size=+1
   Still in the work week./font
  % } %

then why not the same for the switch?  Note if breaking these tags up for the if - 
then - else (as shown above) like in the switch I showed you then by transference we'd 
have to conclude that the above if - then - else wouldn't work either.  But it does.

So I'm confused.  Why can we break the tags up in if - then - else but not in switch?

hmmm...

-- 
George Hester
__
Parsons Technical Services [EMAIL PROTECTED] wrote in message news:[EMAIL 
PROTECTED]
 George,
 
 OK, I'll bite. Why?
 
 Not sure why you want to try this but from what I understand, no it won't
 work. The clue is that the jsp page is converted to a servlet and any code
 between the % % must stand on it own as valid code. When you split the
 code you have created two segments that if entered in a standard servlet
 could not stand on their own IF separated at ALL. Thus if the segregation
 was allowed then what would prevent you from inserting code between them?
 Thus when the servlet is created you then have two fragments of invalid code
 separated by other code. With that in mind, a simple test to determine if
 what you want is valid is to enter whatever you want between the  % % in a
 standard class and see if it complains.
 
 Again this is from my understanding.
 
 Doug Parsons
 www.parsonstechnical.com
 
 
 - Original Message - 
 From: George Hester [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, February 23, 2004 9:03 PM
 Subject: What's the problem with Tomcat 4.1.29 and Switch?
 
 
 In Tomacat this works fine:
 
 -- switch.jsp --
 !-- BEGIN --
 !doctype html public -//W3C//DTD HTML 4.0 Final//EN
 %
 int day = 3;
 %
 html
 head
 titleTest Switch/title
 /head
 body
 % switch (day) {
  case 1:
   out.println(Sunday);
   break;
  case 2:
   out.println(Monday);
   break;
  default:
   out.println(No day);
   break;
} %
 /body
 /html
 !-- END --
 
 but this does NOT
 
 -- switch.jsp --
 !-- BEGIN --
 !doctype html public -//W3C//DTD HTML 4.0 Final//EN
 %
 int day = 3;
 %
 html
 head
 titleTest Switch/title
 /head
 body
 % switch (day) { %
  % case 1:
   out.println(Sunday);
   break;
  case 2:
   out.println(Monday);
   break;
  default:
   out.println(No day);
   break;
} %
 /body
 /html
 !-- END --
 
 -- 
 George Hester
 __
 
 
 -
 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: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread Carl Howells
Because the switch statement has different syntax.

  % switch (day) { %
   % case 1: // and so on...
  %
Could be translated to:
  switch (day) {
  out.print(\n );
  case 1: // and so on...
Which is clearly illegal syntax.  There is no equivalent illegal form of 
any other block construct, which is why this only shows up with switch 
statements.

George Hester wrote:
Well according to Core JSP by Damon Hougland and Aaron Tavistock © 2001 Prentice Hall (pgs 26-28) it should work.

For example this works:

  % if (day == 1 | day == 7){ %
   font color=red size=+1
   It's the weekend!/font
  % } else { %
   font color=red size=+1
   Still in the work week./font
  % } %
then why not the same for the switch?  Note if breaking these tags up for the if - then - else (as shown above) like in the switch I showed you then by transference we'd have to conclude that the above if - then - else wouldn't work either.  But it does.

So I'm confused.  Why can we break the tags up in if - then - else but not in switch?

hmmm...

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


Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread George Hester
Thanks.  I wish Damon Hougland and Aaron Tavistock knew that before they published 
their Sun sanctioned book.  It would have saved me a lot of frustration.  I really 
expected Sun's CORE books to be better then Wrox.

Their example was this which failed:

% switch (day) { %
% case 1: %
   font color=blue size=+1Sunday/font
   % break; %
% case 2: %
   font color=blue size=+1Monday/font
   % break; %
% default: %
   font color=blue size=+1No day/font
   % break; %
% } %

-- 
George Hester
__
Carl Howells [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 Because the switch statement has different syntax.
 
% switch (day) { %
 % case 1: // and so on...
%
 
 Could be translated to:
switch (day) {
out.print(\n );
case 1: // and so on...
 
 Which is clearly illegal syntax.  There is no equivalent illegal form of 
 any other block construct, which is why this only shows up with switch 
 statements.
 
 George Hester wrote:
  Well according to Core JSP by Damon Hougland and Aaron Tavistock © 2001 Prentice 
  Hall (pgs 26-28) it should work.
  
  For example this works:
  
% if (day == 1 | day == 7){ %
 font color=red size=+1
 It's the weekend!/font
% } else { %
 font color=red size=+1
 Still in the work week./font
% } %
  
  then why not the same for the switch?  Note if breaking these tags up for the if - 
  then - else (as shown above) like in the switch I showed you then by transference 
  we'd have to conclude that the above if - then - else wouldn't work either.  But 
  it does.
  
  So I'm confused.  Why can we break the tags up in if - then - else but not in 
  switch?
  
  hmmm...
 


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



A Tomcast Feature:

2004-02-23 Thread Justin Ruffin
Is a feature for including in Tomcat that would enable me to include
config files into the main config.

Thanks,
Justin


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



Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread Parsons Technical Services
Okay, so I learned something. I was right but also wrong. As I said my
understanding which now is New and Improved. Use ifs not switches on jsp.
Got to write that down somewhere .

Sorry George.

Doug

- Original Message - 
From: George Hester [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 23, 2004 10:22 PM
Subject: Re: What's the problem with Tomcat 4.1.29 and Switch?


Thanks.  I wish Damon Hougland and Aaron Tavistock knew that before they
published their Sun sanctioned book.  It would have saved me a lot of
frustration.  I really expected Sun's CORE books to be better then Wrox.

Their example was this which failed:

% switch (day) { %
% case 1: %
   font color=blue size=+1Sunday/font
   % break; %
% case 2: %
   font color=blue size=+1Monday/font
   % break; %
% default: %
   font color=blue size=+1No day/font
   % break; %
% } %

-- 
George Hester
__
Carl Howells [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Because the switch statement has different syntax.

% switch (day) { %
 % case 1: // and so on...
%

 Could be translated to:
switch (day) {
out.print(\n );
case 1: // and so on...

 Which is clearly illegal syntax.  There is no equivalent illegal form of
 any other block construct, which is why this only shows up with switch
 statements.

 George Hester wrote:
  Well according to Core JSP by Damon Hougland and Aaron Tavistock © 2001
Prentice Hall (pgs 26-28) it should work.
 
  For example this works:
 
% if (day == 1 | day == 7){ %
 font color=red size=+1
 It's the weekend!/font
% } else { %
 font color=red size=+1
 Still in the work week./font
% } %
 
  then why not the same for the switch?  Note if breaking these tags up
for the if - then - else (as shown above) like in the switch I showed you
then by transference we'd have to conclude that the above if - then - else
wouldn't work either.  But it does.
 
  So I'm confused.  Why can we break the tags up in if - then - else but
not in switch?
 
  hmmm...
 


-
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: Viewing errors

2004-02-23 Thread ****************

Leo,

You could use log4j and configure it to output to the console.  Attached
is a sample log4j.properties file.

Here is how you would declare the logger instance in a class
public static Logger log = Logger.getLogger(DbUtilTester.class);

Manuel

-Original Message-
From: Leo Tomcat [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 23, 2004 7:44 AM
To: [EMAIL PROTECTED]
Subject: Viewing errors

Hi all, I'm using Tomcat 4.0.6 and I've already installed it as a
service. 
My problem now, is that I can't see the console that was so usefull for
viewing when some exception was thrown, or just for debugging using
System.out.println.
I've searched the log files at $TOMCAT_HOME\logs and I couldn't find any
of the logs that my webapp leaves.
I've tried System.err and nothing happend.
Does any one know, how to send my my error-logs or simplier logs to a
file??
Is that configurable or a code matter??

Thanks




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

Re: Is Tomcat, Axis, JRockit and Intel Xeon Processor okay?

2004-02-23 Thread tom ly
Forgot to add that I'm running web services with Axis

tom ly [EMAIL PROTECTED] wrote:I hear that JRockit only works with Intel processors. 
Will it work with the new Xeon Processor?



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!


-
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

SSL on Tomcat

2004-02-23 Thread Anupama
Hi,
 I have referred to 2 links
 1. http://www.verisign.com/support/csr/tomcat/v00.html
 2 http://java.sun.com/webservices/docs/1.1/tutorial/doc/WebAppSecurity5.html
  According to first one I imported a chain certificate   
(http://www.verisign.com/support/install/intermediate.html)   and the new
certificate(received in the mail) in the keystore and the installed Test CA Root 
(http://www.verisign.com/server/trial/faq/index.html) in the
browser.
  The Test CA Root has been successfully been installed in the browser .On the 
server end the the logs show a client hello but Server hello does
  not follow. 

 I am facing problems with SSL using the Test certificate.
   I am using Tomcat 4.0 and platform is Windows.
   The version of jsse is 1.0.3 and using jdk1.3 and jre version is 1.3.1
   My classpath contains the 3 jars of the JSSE and the java.security  file
 contains the
   security.provider.2=com.sun.net.ssl.internal.ssl.Provider

I have installed the CA Test root in the browser and imported the
 intermediate and  mailed certificates in the certificate file of java
 %JAVA_HOME%\jre\lib\security\cacerts.
And enabled my tomcat configuration SSL settings

This is the dump i get on tomcat when i set the debugging on
*** ClientHello, v3.1
 RandomCookie:  GMT: 0 bytes = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 249,
72,
 245
 , 52, 87, 103, 49, 73, 141, 121, 46, 180, 203, 187, 39, 235 }
 Session ID:  {}
 Cipher Suites:  { 0, 4, 0, 5, 0, 10, 0, 9, 0, 100, 0, 98, 0, 3, 0, 6, 0,
19,
 0,
 18, 0, 99 }
 Compression Methods:  { 0 }
 ***
 %% Created:  [Session-2, SSL_NULL_WITH_NULL_NULL]
 HttpProcessor[8443][4], SEND SSL v3.1 ALERT:  fatal, description =
 handshake_failure
 HttpProcessor[8443][4], WRITE:  SSL v3.1 Alert, length = 2
 HttpProcessor[8443][4], SEND SSL v3.1 ALERT:  warning, description =
 close_notify
 HttpProcessor[8443][4], WRITE:  SSL v3.1 Alert, length = 2
 As per the SSL  specifications the client hello should be followed by a
 server hello.
 What could be the problem.? Could u please help out






  

Re: ServerSocketFactories for Connectors

2004-02-23 Thread Bill Barker

Anton Ushakov [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 For a webservices project we need to override the ServerSocketFactory
 used with a http connector, - we are implementing our own httpg using
 overriden Input/Output streams that do GSS-API authentication.

 It works fine when I do this in server.xml on tomcat-4.1.29
 Connector
 className=org.apache.catalina.connector.http.HttpConnector
port=6688 scheme=httpg secure=true
 Factory className=MyOwnServerSocketFactory /
 /Connector

 But I know that HttpConnector is deprecated in favor of CoyoteConnector,
 and the same configuration with the CoyoteConnector basically ignores
 the Factory setting, and just keeps using normal http.


Yes, the Factory element is deprecated for the CoyoteConnector.

 Question: how can we override the ServerSocketFactory for the
 CoyoteConnector?


You can set the
socketFactory=fully.qualified.name.of.MyOwnServerSocketFactory attribute
on the Connector element.  The catch is that you need to have:
  public class MyOwnServerSocketFactory extends
org.apache.tomcat.util.net.ServerSocketFactory {
...
}

However, it should still give you enough to do what you want.

 thank you
 -anton




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



Re: security constraint bug?

2004-02-23 Thread Bill Barker

Brandon Goodin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I have the following security constraint specified in my web.xml:



 security-constraint

 web-resource-collection

 web-resource-nameCustomer Area/web-resource-name

 url-pattern/customer/*/url-pattern

 /web-resource-collection

 auth-constraint

 role-namecustomer/role-name

 /auth-constraint

 /security-constraint



 When I go to the following url it gets blocked.



 http://phase.zapto.org:8282/customer.do



 I'm assuming this is a bug. Is it not?


It's a bug, which is fixed in 5.0.19.



 I'm using Tomcat 5.0.18



 Brandon Goodin










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



Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread Antonio Fiol Bonnín
George Hester wrote:

Thanks.  I wish Damon Hougland and Aaron Tavistock knew that before they published their Sun sanctioned book.  It would have saved me a lot of frustration.  I really expected Sun's CORE books to be better then Wrox.

Their example was this which failed:

% switch (day) { %
% case 1: %
  font color=blue size=+1Sunday/font
  % break; %
% case 2: %
  font color=blue size=+1Monday/font
  % break; %
% default: %
  font color=blue size=+1No day/font
  % break; %
% } %
 

I believe the following would work like a charm:

% switch (day) { 
  case 1: %
  font color=blue size=+1Sunday/font
% break; 
  case 2: %
  font color=blue size=+1Monday/font
% break; 
  default: %
  font color=blue size=+1No day/font
% break; 
  } %

Keep the elements that need to be together really together.

Antonio Fiol


smime.p7s
Description: S/MIME Cryptographic Signature


Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-23 Thread David Rees
Thanks.  I wish Damon Hougland and Aaron Tavistock knew that before they
published their Sun sanctioned book.  It would have saved me a lot of
frustration.  I really expected Sun's CORE books to be better then Wrox.
Their example was this which failed:

% switch (day) { %
% case 1: %
   font color=blue size=+1Sunday/font
   % break; %
% case 2: %
   font color=blue size=+1Monday/font
   % break; %
% default: %
   font color=blue size=+1No day/font
   % break; %
% } %
If you want to use a switch, this should work:

% switch (day) {
   case 1: %
   font color=blue size=+1Sunday/font
   % break; %
% case 2: %
   font color=blue size=+1Monday/font
   % break; %
% default: %
   font color=blue size=+1No day/font
   % break; } %
But really, the best way to do it is to use JSTL instead of scriptlets 
like this:

c:choose
  c:when test=${day == 1}
font color=blue size=+1Sunday/font
  /c:when
  c:when test=${day == 2}
font color=blue size=+1Monday/font
  /c:when
  c:otherwise
font color=blue size=+1No day/font
  /c:otherwise
/c:choose
Much more readable, too.

-Dave

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


[ANN] Apache Tomcat 5.0.19 Stable and Tomcat 4.1.30 Stable released

2004-02-23 Thread Remy Maucherat
The Tomcat Team announces the immediate availability of Apache Tomcat
5.0.18 Stable and Tomcat 4.1.30 Stable.
Please refer to the changelog for the list of changes.

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Sources: http://jakarta.apache.org/site/sourceindex.cgi
The Apache Tomcat Team

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


[ANN] Apache Tomcat 3.3.2 Release Candidate 1

2004-02-23 Thread Bill Barker
The Tomcat Team announces the immediate availability of Apache Tomcat
3.3.2 Release Candidate 1.

Downloads: http://www.apache.org/~larryi/tomcat-3.3.2-rc1

The Apache Tomcat Team



This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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