NPE while undeploying webapp on Tomcat 5.5.12

2005-11-08 Thread Stanislav Mironov
Hi All!

I get such exception report in catalina..log when I undeploy web
application (deployed as WAR).

09.11.2005 10:46:59 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/context1]
09.11.2005 10:47:12 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/context1]
09.11.2005 10:47:12
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor
processChildren
SEVERE: Exception invoking periodic operation:
java.lang.NullPointerException
at 
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:883)
at 
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1019)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1178)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1304)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1568)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1577)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1557)
at java.lang.Thread.run(Unknown Source)

What is the reason - bug in tomcat?

--
Stanislav Mironov

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



upgrading a war file

2005-11-08 Thread Zohar Amir

Hi,
I have a servlet deployed on my tomcat server. What are the options of 
upgrading this servlet (I have a new war file)? Which is the best way? What 
if I do not have admin web access to the server? 


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



RE: ROOT webapp question confused with hosts

2005-11-08 Thread Michael Forster

You need to set up multiple host entries in the conf.

ie

 





-Original Message-
From: Narahari 'n' Savitha [mailto:[EMAIL PROTECTED]
Sent: 08 November 2005 17:23
To: users@tomcat.apache.org
Subject: ROOT webapp question confused with hosts


Friends,

I am unable to decipher this.

I am on windows xp running tomcat as my webserver/jsp engine 5.5.09

I have http://savithari.dyndns.org/vruksha that works correctly.

but

http://savithari.dyndns.org always brings up the default page of tomcat.

I know that I can rename the ROOT folder to be able accomplish a direct hit
to http://savithari.dyndns.org to bring up the page I want.

BUT THAT IS NOT WHAT I WANT.

I want to be able to keep my webpage contents under M:\VRUKSHA which
contains the entire webpage.

I still want the configurate of tomcat to point the ROOT to this folder
M:\VRUKSHA so that I can update the correct folder.

Is this too much to ask ?

If not that atleast tell me an alternate way to much with the ROOT so that
RENAMING MY APPLICATION TO ROOT is not the only solution.

Thank your for your time and help.
-Narahari


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



Re: deploying war file

2005-11-08 Thread Khawaja Shams
Could you include your ant script? Make sure that you have the proper
directory structure, and that you have a web.xml file in the WEB-INF file.
ANT script can definitely cause errors in the war file creation.

On 11/8/05, Lothar Krenzien <[EMAIL PROTECTED]> wrote:
>
>
> Hi there,
>
> I'm just trying to create a war file for a web projects (with JSP's and
> Struts) and want to deploy it using the Tomcat manager. I configured a user
> for the manager like descriped in the docu, created the war file with Ant
> and wanted to deploy the app using the following command :
> http://remoteServer:/manager/reload?path=/webapp&war=file:/webapp.war
>
>
> But even Tomcat returns OK nothing happens. When I try to call the app
> like
> http://remoteServer:/webapp/Welcome.do
> I get an error that the resource does not exists. This seems to be true
> for me because there are no files in the app-dir. In the past all files are
> copied in the appBase dir of Tomcat. The file webapp.war is located in the
> appBase dir of Tomcat and has the same name as the context path for the
> project (webapp).
> So what I'm doing wrong ?
>
> autoDeploy and unpackWARs are set to true.
>
> Thank,
> Lothar Krenzien
>
> P.S. I notified that in the 'WEB-INF' dir of the war file all files exists
> twice or even 3-times. It seems that the war file was created wrong by Ant
> (maybe an error in my script). Could that be the reason ?
> __
> Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!
> Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Tomcat Authentication

2005-11-08 Thread Khawaja Shams
Hello everyone,
I have a few strict requirements for security on my project, and I am having
a hard time understanding some concepts. I cannot use SSL due to the
performance loss, and the application must be accessed only by authenticated
users. Meanwhile, I am required to never send the password in cleartext. I
have successfully implemented a DIGEST authentication with the helpful
response from Mark Thomas, but I am curious about how authentication for
further requests takes place. I notice that the user is prompted for the
password only the first time, and subsequent requests are automatically
authenticated. Is the authentication information stored in a session
somewhere? Is this easy to obtain through sniffing? Could a sniffer
potentially fake an authenticated client's session id to get access to an
application? I would appreciate any input or any links/books where I can
read up on how this works. I sincerely appreciate your time and help.


Best Regards,
Khawaja Shams


FW: Securing Manager Role

2005-11-08 Thread Nehal Sangoi

Hi,
Please go thru below mailu will get the answer..
-Original Message-
From: Nehal Sangoi [mailto:[EMAIL PROTECTED]
Sent: Friday, October 28, 2005 9:15 AM
To: 'Tomcat Users List'
Subject: RE: Securing Manager Role


Hi,

I could do it successfully yesterday. The right commandline in as follows.

$ java -classpath 
$CATALINA_HOME/server/lib/catalina.jar:/opt/commons-logging/commons-
logging.jar org.apache.catalina.realm.RealmBase -a sha1 manager


Thank You so much for providing this solution.

Regds,
Nehal

-Original Message-
From: Charlie C.L. King [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 8:12 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Securing Manager Role


hi,
looks like you're stuck with your kshell.
how about specifying canonical path to your java executable, e.g.
/opt/bin/java?

or if you're under some unix environment like FreeBSD, you can just use
'md5' or 'sha1' provided by system:
% sha1 -s 'passphrase here'
it will produce the same result for you.

On 10/27/05, Nehal Sangoi <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I modified my server.xml as follows.
>
>  resourceName="UserDatabase" digest="SHA1"/>
>
> Also, downloaded "commons-logging-20051027.tar.gz" and untarred the same.
>
> Later i tried giving below command :
>
> $ java -classpath
> $CATALINA_HOME/server/lib/catalina.jar:/opt/commons-logging/commons-
> logging.jar org.apache.catalina.realm.RealmBase -a sha1 
> But recd. following error :
>
> ksh: syntax error: `newline or ;' unexpected
>
> Please help doing this successfully.
>
>
> Thanks,
> Nehal
>

--
Regards, Charlie






Hi,
you can change it to a digested form, either in md5 or in sha1 or some
others(see java.security.MessageDigest). but sha1 should be safer. here's
the choir you have to do.

1. in your server.xml, add to its child element  a new attribute
named "digest" and with its value "SHA1"(whatever you want).

2. run this

% java -classpath $CATALINA_HOME/server/lib/catalina.jar:/path/to/commons-
logging.jar org.apache.catalina.realm.RealmBase -a sha1 

you'll get the digested passphrase

3. use the digested passphrase as password in you tomcat-user.xml

4. be sure to restart tomcat and then you can try it

the way digest means it should be difficult *BUT NOT IMPOSSIBLE* to decrypt
in case anyone might be able to read that file, thus you should secure the
user file and prevent others from reading it.

--
Regards, Charlie


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



How do i setup https connection tomcat5 + jk2 + apache2 on RedHat 9.0?

2005-11-08 Thread Gangaa D
Hi, I have done tomcat5 + jk2 + apache2 on RedHat 9.0.

So I have made keystore file on Win32 and use it on 
RedHat 9.0 for tomcat5 + jk2 + apache2. 
I have configured server.xml for https.
But https does not work.

Please recommend us for solve it.





__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



tomcat connector isapi_redirect.dll not available

2005-11-08 Thread Goay Zee Ling \(ACM/MIS\)
Hi. I have some problem with tomcat connector. I've installed tomcat
5.0.28 and IIS

I managed to view http://localhost   and
http://localhost:8080/examples/index.html
 

But http://localhost/examples/index.html
  show error:

HTTP Status 404 - /jakarta/isapi_redirect-1.2.14.dll is not available

I have created a virtual directory with execute permission pointing to
where isapi_redirect-1.2.14.dll is located.

May I know how to correct the problem? appreciate any help. Thank you.

 



RE: JAAS implementation with URL callback

2005-11-08 Thread Mark Benussi
I am going to have one of the most stupid rants in the world considering I
am on an open source distribution list but when did developers stop wanting
to learn stuff? I appreciate that there is time pressure on most projects,
and that frameworks like Struts make life very easy but come on, I have the
code here for doing my own Callback handler and it's about 5 LOC with a
class constructor. "because it will have been tested, verified, etc..." <--
This says a lot to me.

-Original Message-
From: Pat Young [mailto:[EMAIL PROTECTED] 
Sent: 08 November 2005 18:30
To: Tomcat Users List
Subject: RE: JAAS implementation with URL callback

Yes, but an existing one in the open source domain
would be nice, because it will have been tested,
verified, etc...

I would think that a component such as this would be
used my many.


--- Mark Benussi <[EMAIL PROTECTED]> wrote:

> Write your own CallbackHandler and LoginModule.
> 
> -Original Message-
> From: Pat Young [mailto:[EMAIL PROTECTED] 
> Sent: 07 November 2005 20:01
> To: 'Tomcat Users List'
> Subject: JAAS implementation with URL callback
> 
> Does anyone know of an available JAAS implementation
> that comes with a URL callback?  The Catalina
> implementation only comes with a name and password
> callback, but there is no way to get to the URL.
> 
> Thanks,
> Pat Young
> 
> 
>   
>   
> __ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> 
>
-
> 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]
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-
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 as a service under Linux... "To dream theimpossible dream"

2005-11-08 Thread George Sexton
> 
> --- Preston Crawford <[EMAIL PROTECTED]> wrote:
> 
> > I've tried this so many different ways and I can't
> > get it to work. Why is
> > something that works out of the box on Windows so
> > hard on Linux? Shouldn't
> > there be a defined way to do this? I feel like I'm
> > tilting at Windmills at
> > this point.

Windows assumes you know nothing about the operating system and consequently
takes care of everything for you. Linux assumes you know everything about
the OS and want to do it yourself. 

The downside to the Windows approach, is when it doesn't work there is no
way to fix it. Witness the two major Windows troubleshooting techniques,
rebooting the computer, and re-installing the package.

The downside to the Linux side is you have to be an expert on what you are
doing if you don't want to use your distribution's default pacakges.


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  


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



Re: DIGEST Authnetication with Tomcat

2005-11-08 Thread Mark Thomas
If you use DIGEST authentication and digest passwords, the cleartext 
used to generate the digest is not just the user's password. This is 
documented at 
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#Digested%20Passwords


Mark

Khawaja Shams wrote:

Hello all,
I am having difficulty setting up digest authentication on Tomcat. I have
tried tomcat 5.5.9 and 5.5.12, and I am having mixed results. I tried
setting up the HTTP DIGEST authentication by placing a security constraint
on my web.xml file, which works fine. However, my project also has a
restraint that I must store digested versions of the password in a mysql
database. This also worked perfectly using the JDBC realm and using the
digest="MD5" attribute in my realm definiton in the server.xml file.
Although, both of these methods work individually, I cannot get it to work
in compliance with each other. The mysql digested passwords only work with
HTTP BASIC authentication, and the HTTP DIGEST authentication only works
with non digested passwords (even though I am properly setting the right
flags (in server.xml, and in web.xml). Has anyone else observed this? Any
solutions? I tried both the jdbc realm and going the tomcat-users.xml route,
and I have had no luck getting it to work. I would sincerely appreciate any
input.


Sincerely,
Khawaja Shams





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



DIGEST Authnetication with Tomcat

2005-11-08 Thread Khawaja Shams
Hello all,
I am having difficulty setting up digest authentication on Tomcat. I have
tried tomcat 5.5.9 and 5.5.12, and I am having mixed results. I tried
setting up the HTTP DIGEST authentication by placing a security constraint
on my web.xml file, which works fine. However, my project also has a
restraint that I must store digested versions of the password in a mysql
database. This also worked perfectly using the JDBC realm and using the
digest="MD5" attribute in my realm definiton in the server.xml file.
Although, both of these methods work individually, I cannot get it to work
in compliance with each other. The mysql digested passwords only work with
HTTP BASIC authentication, and the HTTP DIGEST authentication only works
with non digested passwords (even though I am properly setting the right
flags (in server.xml, and in web.xml). Has anyone else observed this? Any
solutions? I tried both the jdbc realm and going the tomcat-users.xml route,
and I have had no luck getting it to work. I would sincerely appreciate any
input.


Sincerely,
Khawaja Shams


Re: Config problem: AAA and LDAP

2005-11-08 Thread PHIL CAVAZOS
what ldap server are you trying to connect to? Active Directory, eDirectory, or 
OpenLDAP

>>> [EMAIL PROTECTED] 11/8/2005 1:20:00 pm >>>
Hi all,

I have just created a simple webapp hosted with Tomcat v5.0.28, and I 
want to add container managed security against an LDAP server.

Following the Tomcat instructions for adding a realm against JNDI does 
not seem to have had any effect: Attempts to access the webapp are 
always successful, no username or password is asked for at all.

The realm is added within the  tag, and is defined like this:

ldap://localhost:389";
 connectionName="cn=Mail,dc=yyy"
 connectionPassword="zzz"
 userPattern="uid={0},ou=People,ou=Testing,yyy"
 roleBase="ou=Groups,ou=Testing,yyy"
 roleName="cn"
 roleSearch="(uniqueMember={0})"
/>

The file jndi-ldap.jar was copied into the server/lib directory, and the 
logfile includes this single line about LDAP:

2005-11-08 22:41:58 JNDIRealm[/julia]: Connecting to URL 
ldap://localhost:389

I am using JDK v1.5.0_05 from Sun which I notice does not contain any 
specific jndi-ldap.jar file anywhere in the distro.

Does Tomcat v5.0.28 work with JDK v1.5?

Can anyone point out what I might be doing wrong? The instructions are 
pretty straightforward, but the AAA just "doesn't work", I am at a loss 
as to what is wrong.

Regards,
Graham
--


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



Re: Config problem: AAA and LDAP

2005-11-08 Thread Graham Leggett

Klotz Jr, Dennis wrote:


What are your security constraints within your web.xml?


There were no security constrints in the web.xml, I had not checked them 
:( Thank you for pointing this out, I had looked everywhere except here.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


RE: Config problem: AAA and LDAP

2005-11-08 Thread Klotz Jr, Dennis
What are your security constraints within your web.xml?

-Dennis

-Original Message-
From: Graham Leggett [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 08, 2005 4:20 PM
To: users@tomcat.apache.org
Subject: Config problem: AAA and LDAP

Hi all,

I have just created a simple webapp hosted with Tomcat v5.0.28, and I 
want to add container managed security against an LDAP server.

Following the Tomcat instructions for adding a realm against JNDI does 
not seem to have had any effect: Attempts to access the webapp are 
always successful, no username or password is asked for at all.

The realm is added within the  tag, and is defined like this:

ldap://localhost:389";
 connectionName="cn=Mail,dc=yyy"
 connectionPassword="zzz"
 userPattern="uid={0},ou=People,ou=Testing,yyy"
 roleBase="ou=Groups,ou=Testing,yyy"
 roleName="cn"
 roleSearch="(uniqueMember={0})"
/>

The file jndi-ldap.jar was copied into the server/lib directory, and the

logfile includes this single line about LDAP:

2005-11-08 22:41:58 JNDIRealm[/julia]: Connecting to URL 
ldap://localhost:389

I am using JDK v1.5.0_05 from Sun which I notice does not contain any 
specific jndi-ldap.jar file anywhere in the distro.

Does Tomcat v5.0.28 work with JDK v1.5?

Can anyone point out what I might be doing wrong? The instructions are 
pretty straightforward, but the AAA just "doesn't work", I am at a loss 
as to what is wrong.

Regards,
Graham
--

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



Config problem: AAA and LDAP

2005-11-08 Thread Graham Leggett

Hi all,

I have just created a simple webapp hosted with Tomcat v5.0.28, and I 
want to add container managed security against an LDAP server.


Following the Tomcat instructions for adding a realm against JNDI does 
not seem to have had any effect: Attempts to access the webapp are 
always successful, no username or password is asked for at all.


The realm is added within the  tag, and is defined like this:

ldap://localhost:389";
connectionName="cn=Mail,dc=yyy"
connectionPassword="zzz"
userPattern="uid={0},ou=People,ou=Testing,yyy"
roleBase="ou=Groups,ou=Testing,yyy"
roleName="cn"
roleSearch="(uniqueMember={0})"
/>

The file jndi-ldap.jar was copied into the server/lib directory, and the 
logfile includes this single line about LDAP:


2005-11-08 22:41:58 JNDIRealm[/julia]: Connecting to URL 
ldap://localhost:389


I am using JDK v1.5.0_05 from Sun which I notice does not contain any 
specific jndi-ldap.jar file anywhere in the distro.


Does Tomcat v5.0.28 work with JDK v1.5?

Can anyone point out what I might be doing wrong? The instructions are 
pretty straightforward, but the AAA just "doesn't work", I am at a loss 
as to what is wrong.


Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tomcat as a service under Linux... "To dream theimpossibledream"

2005-11-08 Thread Preston CRAWFORD
Oh, and the modification I made for my version of Linux (CentOS 4.2, so
a rebuild of RHEL 4 Update 2) was to change lines that read like

"su - tomcat - c $TOMCAT_START"

to read..

"su $TOMCAT_USER -c "$TOMCAT_START >> $TOMCAT_LOG_FILE 2>&1" &
RETVAL=$?"

It was seemingly getting hung up on a non-interactive startup by the
fact that it didn't have a place to put any out put from startup.sh and
it didn't like su - tomcat, it preferred su tomcat. I don't know why.

Preston

>>> [EMAIL PROTECTED] 11/8/2005 10:11 AM >>>
Hi,

Can you give a few comments on what was going wrong and what you did to
fix
it? For people who find this message later which searching archives for
the
answer to their problem!

Thanks,
Andoni.
- Original Message - 
From: Preston CRAWFORD
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, November 08, 2005 5:42 PM
Subject: Re: Tomcat as a service under Linux... "To dream
theimpossible
dream"


Thanks. I actually got it working, though, so life is good. I've used
Linux for years and there never seems to be a shortage of new
challenges. Which is fine, though, when weighed against the
alternative
in terms of stability and security.

Preston

>>> [EMAIL PROTECTED] 11/7/2005 9:42:41 PM >>>
Dude,

I am wiling to help you, but you have to understand
that Linux is SOO different from windows.  Out of
the box?  That's not really a term we use in Linux.
We put things into the box.

So if you are willing to follow some careful
explanations, you can get it to work.

Actually, I'm headed to be now, but tomorrow, I'll
fill you in if you are willing to try.

I run several servers with SuSE linux 10.0 and tomcat
5.5 and a SQL server (postgresql).  I've been doing it
for several years, and when I started, it was a real
challange.  The only reason it's easy now is because I
fought the uphill battle until I knew what was what.
I'll try to tell you, but you have to be willing to
read other sources as well.  Study study study.

Tomorrow ... Justin Jaynes

--- Preston Crawford <[EMAIL PROTECTED]> wrote:

> I've tried this so many different ways and I can't
> get it to work. Why is
> something that works out of the box on Windows so
> hard on Linux? Shouldn't
> there be a defined way to do this? I feel like I'm
> tilting at Windmills at
> this point.
>
> Don Quixote
>
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>





__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com 

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



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


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



Re: ROOT webapp question confused with hosts

2005-11-08 Thread Hassan Schroeder
Narahari 'n' Savitha wrote:

> I want to be able to keep my webpage contents under M:\VRUKSHA which
> contains the entire webpage.
> 
> I still want the configurate of tomcat to point the ROOT to this folder
> M:\VRUKSHA so that I can update the correct folder.
> 
> Is this too much to ask ?

Uh, would it be too much to ask to read the doc? :-) specifically:

  

To summarize:
  Create a file for your context, e.g.

 $CATALINA_HOME/conf/Catalina/localhost/ROOT.xml

  Put whatever file system location you want in it, e.g.,

 
  
 

That's it.

HTH!
-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: Tomcat as a service under Linux... "To dream theimpossibledream"

2005-11-08 Thread Preston CRAWFORD
Oh, I thought I'd posted it earlier. I guess I didn't here. 

I used a modified version of this script...

http://www.linuxjava.net/howto/webapp/install_files/tomcatd 

Found here

http://www.linuxjava.net/howto/webapp/#mod_jk

Preston

>>> [EMAIL PROTECTED] 11/8/2005 10:11 AM >>>
Hi,

Can you give a few comments on what was going wrong and what you did to
fix
it? For people who find this message later which searching archives for
the
answer to their problem!

Thanks,
Andoni.
- Original Message - 
From: Preston CRAWFORD
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, November 08, 2005 5:42 PM
Subject: Re: Tomcat as a service under Linux... "To dream
theimpossible
dream"


Thanks. I actually got it working, though, so life is good. I've used
Linux for years and there never seems to be a shortage of new
challenges. Which is fine, though, when weighed against the
alternative
in terms of stability and security.

Preston

>>> [EMAIL PROTECTED] 11/7/2005 9:42:41 PM >>>
Dude,

I am wiling to help you, but you have to understand
that Linux is SOO different from windows.  Out of
the box?  That's not really a term we use in Linux.
We put things into the box.

So if you are willing to follow some careful
explanations, you can get it to work.

Actually, I'm headed to be now, but tomorrow, I'll
fill you in if you are willing to try.

I run several servers with SuSE linux 10.0 and tomcat
5.5 and a SQL server (postgresql).  I've been doing it
for several years, and when I started, it was a real
challange.  The only reason it's easy now is because I
fought the uphill battle until I knew what was what.
I'll try to tell you, but you have to be willing to
read other sources as well.  Study study study.

Tomorrow ... Justin Jaynes

--- Preston Crawford <[EMAIL PROTECTED]> wrote:

> I've tried this so many different ways and I can't
> get it to work. Why is
> something that works out of the box on Windows so
> hard on Linux? Shouldn't
> there be a defined way to do this? I feel like I'm
> tilting at Windmills at
> this point.
>
> Don Quixote
>
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>





__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com 

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



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


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



IIS 6, Tomcat 5.5, jk-1.2.14 and jCifs-1.2.6 authentication

2005-11-08 Thread juhani
Hi,

we are having IIS-Tomcat website in domain A and service S. Users are
authenticated using IIS Windows-authentication. Everything is ok.

Users in domain B, outside our domain, need to use service S. IIS
authentication won't work because there is no trust between A and B. jCifs
can authenticate to domain B but because of IIS-JK it doesn't work. IIS
can not be removed.

Is it possible use IIS-JK-jCifs-Tomcat combination and make it work?




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

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



Re: ROOT webapp question confused with hosts

2005-11-08 Thread Narahari 'n' Savitha
Som,
Thanks for replying back. Its a good idea. That is not what I am looking for
though. What you have given looks like a work around.
 Coming from the IIS world, I can set aside the folder c:\vruksha as the
folder where I have my html files are. Then I go to IIS set aside a virtual
folder then say that c:\vruksha is the folder that the acutal files reside
in.
 May be this is a feature of APACHE WEBSERVER and I am trying to look for
that inside of tomcat.
 But still I should be able to say that the ROOT is not the default app but
/vruksha is. I am not sure if this is even configurable inside server.xml or
at the hosts level, saying ROOT for the default host is /vruksha.
 -Narahari

 On 11/8/05, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
>
>
> By default the Tomcat renders the default home page which is specified in
> the conf/web.xml such as index.html which is located under the
> /Tomcat5.0/webapps/ROOT folder. You need to redirect the URL from
> index.html to your default home page. So, Please modify the index.htmlfile
> one located under /Tomcat5.0/webapps/ROOT with the following content
>
> 
> 
> 
> Re-direct
> 
> 
> 
>
> 
> 
>
> You can also mention the default home page URL in the
> /Tomcat5.0/conf/web.xml in  element as below
> 
> index.html
> index.htm
> index.jsp
> 
>
> Hope this will solve your problem.
>
> Thanks
> T.G. Somashekara
>
>
>
> Narahari 'n'
> Savitha To: users@tomcat.apache.org
> <[EMAIL PROTECTED] cc:
> .com> Subject: ROOT webapp question confused with hosts
>
> 11/08/2005 09:23
> AM
> Please respond
> to "Tomcat Users
> List"
>
>
>
>
>
>
> Friends,
>
> I am unable to decipher this.
>
> I am on windows xp running tomcat as my webserver/jsp engine 5.5.09
>
> I have http://savithari.dyndns.org/vruksha that works correctly.
>
> but
>
> http://savithari.dyndns.org always brings up the default page of tomcat.
>
> I know that I can rename the ROOT folder to be able accomplish a direct
> hit
> to http://savithari.dyndns.org to bring up the page I want.
>
> BUT THAT IS NOT WHAT I WANT.
>
> I want to be able to keep my webpage contents under M:\VRUKSHA which
> contains the entire webpage.
>
> I still want the configurate of tomcat to point the ROOT to this folder
> M:\VRUKSHA so that I can update the correct folder.
>
> Is this too much to ask ?
>
> If not that atleast tell me an alternate way to much with the ROOT so that
> RENAMING MY APPLICATION TO ROOT is not the only solution.
>
> Thank your for your time and help.
> -Narahari
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Use of JSF view in welcome file list

2005-11-08 Thread Tim Dean
Thanks for the info, Peter. I'm somewhat new to using Tomcat, so if there's 
somewhere particular I should post this as a bug, please let me know.

It is at least comforting to know that I can work around this by avoiding the 
use of a wildcard mapping to the JSF servlet.

Thanks,

- Tim


-Original Message-
From: Peter Menzel <[EMAIL PROTECTED]>
Sent: Nov 8, 2005 10:07 AM
To: Tomcat Users List 
Subject: Re: Use of JSF view in welcome file list

Tim Dean wrote:
> Peter,
> 
> Thanks for the example: I had seen examples like this in the archives, which 
> is why I thought that I could do what I'm trying to do: I want the same kind 
> of behavior you are describing, but with a mapping to the Faces servlet 
> instead.
> 
> If the examply you've provided works, any ideas why my JSF setup would not 
> work? In my environment, I request "http://localhost:8080/pdm/main.faces";, 
> which works fine. If I instead request "http://localhost:8080/pdm/";, it 
> instead shows me a directory listing of the files in my web app.
> 
> Is there a problem with using a wildcard in my JSF servlet mapping that 
> causes it to fail with welcom files? Or is there something inherently odd 
> with JSF that makes this impossible to do?
> 
> Thanks,
> 
> - Tim

Actually, I never worked with Faces before, so I can't tell.

Therefore I tried with a normal servlet and wildcard extension:


Home
*.bar


foo.bar


and: accessing http://localhost/mywebapp/ prints the directory listing !
Unfortunately, that is not what I expected.

Tomcat should have appended "foo.bar" to "/" resulting in "/foo.bar" and 
  should then match Home servlet to this request.

Using this mapping


Home
/foo.bar


Tomcat is invoking the Home Servlet.

So this looks not like a specific JSF problem.
It looks like a bug in Tomcat?

The Servlet spec states: "The web server must append each welcome file 
in the order specified in the DD to the partial request and check 
whether a static resource or servlet in the WAR is mapped to that 
request URI."

Peter


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



tomcat 4.1 crashing after few minutes / java.net.ConnectException: Connection timed out

2005-11-08 Thread Emmanuel JACQUET
Hello gurus

I got a problem with a tomcat server, hosting multiple websites. Tomcat
is crashing after a few minutes, the only message i have is

"Cannot connect to this database.
java.sql.SQLException: Unable to connect to any hosts due to exception:
java.net.ConnectException: Connection timed out"

Normally, it works perfectly, but we had a shutdown due to a power cut.
Now, Tomcat runs a few minutes without problems then crashes.

Thanks for your suggestions!

Here is the description of the system

Httpd service is in front of Tomcat with a Apj13 connector between.
There are multiple virtualhosts in httpd.conf. There is only one
connector called with JkMount. Tomcat has been configured with one
engine tag and several hosts (see server.xml here included). We mostly
use Opencms with a mysql 3.23 database

Some informations:
Mysql is up and running. It accepts a lot of simultaneous connections
(2048 at least).
Tomcat runs with JAVA_OPTS="-Xms600m -Xmx600m"
The server has 2go memory (never using swap)

Red Hat Linux release 9 (Shrike)
tomcat : Apache Tomcat/4.1.30
java : j2sdk1.4.2_05
httpd : Apache/2.0.40
mysqld : 3.23.58



*  extract of catalina.out *




starting :


Démarrage du service Tomcat-Apache
Apache Tomcat/4.1.30
WebappLoader[/opencms]: Deploying class repositories to work directory
/usr/local/jakarta-tomcat-4.1.30/work/AllWebSites/www.bureau-alsace.c
om/opencms
WebappLoader[/opencms]: Deploy class files /WEB-INF/classes to
/home/tomcat/bureaualsace/webapps/opencms/WEB-INF/classes
WebappLoader[/opencms]: Deploy JAR /WEB-INF/lib/PDFBox-0.5.6-mpb.jar to
/home/tomcat/bureaualsace/webapps/opencms/WEB-INF/lib/PDFBox-0.5.6-m


[etc etc, no problems]
then


Ajp13Connector[8009] Opening server socket on host IP address localhost
Ajp13Connector[8009] Starting background thread
Ajp13Processor[8009][0] Starting background thread
Ajp13Processor[8009][1] Starting background thread
Ajp13Processor[8009][2] Starting background thread
...
Ajp13Processor[8009][9] Starting background thread


at this point, all websites are running normally.

then a few minutes after :


Ajp13Processor[8009][10] Starting background thread
Ajp13Processor[8009][11] Starting background thread
Cannot connect to this database.
java.sql.SQLException: Unable to connect to any hosts due to exception:
java.net.ConnectException: Connection timed out
Arrêt du service Tomcat-Apache
Ajp13Processor[8009][11] Stopping background thread
Ajp13Processor[8009][10] Stopping background thread
...
Ajp13Processor[8009][1] Stopping background thread
Ajp13Processor[8009][0] Stopping background thread
Ajp13Connector[8009] Stopping background thread


at this point, tomcat is down.



***
*  server.xml *
***












www.trucmuche.com









***
*   workers.properties*
***

# workers.properties - ajp13
#
# List workers
worker.list=wrkr
#
# Define wrkr
worker.wrkr.port=8009
worker.wrkr.host=localhost
worker.wrkr.type=ajp13
worker.wrkr.cachesize=10
worker.wrkr.cache_timeout=20
worker.wrkr.socket_timeout=10

-- 
Emmanuel JACQUET
IT engineer
ADEC (http://www.adec.fr)
Tel : +33.388722910
Fax : +33.388722919
http://pgpkeys.mit.edu (ID : 0x7309430A)



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



Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread David Smith
No.  Only one.  I was saying that any one webapp named ROOT could be in 
that role.  I'll be more specific next time.  If you want to name it 
something else and avoid the double initialization, you'll have to store 
it outside of the webapps folder and write a custom ROOT.xml file in 
config/Catalina/localhost with a  tag that looks something like:



 


--David

MC Moisei wrote:

That implies that I can have more than one application in ROOT 
folder...that would require some URL  filtering in each app. Also if I 
look under webapps/ROOT folder there is a WEB-INF in there...


Are you basically saying that instead of naming my application 
"someapp" I'd have to name it ROOT ?


TIA!
MC
http://www.goodstockimages.com





From: David Smith <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the 
proper way

Date: Tue, 08 Nov 2005 10:45:16 -0500

To answer the question, yes.  Any webapp in the webapps folder named 
ROOT will become the root app.


--David

Caldarale, Charles R wrote:

From: Francis Galiegue [mailto:[EMAIL PROTECTED] Subject: Re: 
Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way


Will renaming the directory to ROOT have the same effect?




Don't know, haven't tried it.  Should only take you a few minutes to
test.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
PROPRIETARY

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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






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





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




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



Re: AW: ANT build + Read Password

2005-11-08 Thread Mark Thomas

Marcus Franke wrote:

Hello,

Since when are passwords in tomcat-users.xml stored in hashed
form?

Or how can I activate this, as in my tomcat-users.xml they are
stored in clear text form.


http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#Digested%20Passwords



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



RE: JAAS implementation with URL callback

2005-11-08 Thread Pat Young
Yes, but an existing one in the open source domain
would be nice, because it will have been tested,
verified, etc...

I would think that a component such as this would be
used my many.


--- Mark Benussi <[EMAIL PROTECTED]> wrote:

> Write your own CallbackHandler and LoginModule.
> 
> -Original Message-
> From: Pat Young [mailto:[EMAIL PROTECTED] 
> Sent: 07 November 2005 20:01
> To: 'Tomcat Users List'
> Subject: JAAS implementation with URL callback
> 
> Does anyone know of an available JAAS implementation
> that comes with a URL callback?  The Catalina
> implementation only comes with a name and password
> callback, but there is no way to get to the URL.
> 
> Thanks,
> Pat Young
> 
> 
>   
>   
> __ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> 
>
-
> 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]
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: ROOT webapp question confused with hosts

2005-11-08 Thread TG . Somashekara

By default the Tomcat renders the default home page which is specified in
the conf/web.xml such as index.html which is located under the
/Tomcat5.0/webapps/ROOT folder. You need to redirect the URL from
index.html to your default home page. So, Please modify the index.html file
one located under /Tomcat5.0/webapps/ROOT with the following content




Re-direct







You can also mention the default home page URL in the
/Tomcat5.0/conf/web.xml in  element as below
  
   index.html
index.htm
index.jsp


Hope this will solve your problem.

Thanks
T.G. Somashekara




  Narahari 'n'  

  Savitha  To:  users@tomcat.apache.org 

  <[EMAIL PROTECTED] cc:
  
  .com>Subject: ROOT webapp question 
confused with hosts


  11/08/2005 09:23  

  AM

  Please respond

  to "Tomcat Users  

  List" 









Friends,

I am unable to decipher this.

I am on windows xp running tomcat as my webserver/jsp engine 5.5.09

I have http://savithari.dyndns.org/vruksha that works correctly.

but

http://savithari.dyndns.org always brings up the default page of tomcat.

I know that I can rename the ROOT folder to be able accomplish a direct hit
to http://savithari.dyndns.org to bring up the page I want.

BUT THAT IS NOT WHAT I WANT.

I want to be able to keep my webpage contents under M:\VRUKSHA which
contains the entire webpage.

I still want the configurate of tomcat to point the ROOT to this folder
M:\VRUKSHA so that I can update the correct folder.

Is this too much to ask ?

If not that atleast tell me an alternate way to much with the ROOT so that
RENAMING MY APPLICATION TO ROOT is not the only solution.

Thank your for your time and help.
-Narahari





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



Re: Tomcat as a service under Linux... "To dream theimpossible dream"

2005-11-08 Thread Andoni
Hi,

Can you give a few comments on what was going wrong and what you did to fix
it? For people who find this message later which searching archives for the
answer to their problem!

Thanks,
Andoni.
- Original Message - 
From: Preston CRAWFORD
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, November 08, 2005 5:42 PM
Subject: Re: Tomcat as a service under Linux... "To dream theimpossible
dream"


Thanks. I actually got it working, though, so life is good. I've used
Linux for years and there never seems to be a shortage of new
challenges. Which is fine, though, when weighed against the alternative
in terms of stability and security.

Preston

>>> [EMAIL PROTECTED] 11/7/2005 9:42:41 PM >>>
Dude,

I am wiling to help you, but you have to understand
that Linux is SOO different from windows.  Out of
the box?  That's not really a term we use in Linux.
We put things into the box.

So if you are willing to follow some careful
explanations, you can get it to work.

Actually, I'm headed to be now, but tomorrow, I'll
fill you in if you are willing to try.

I run several servers with SuSE linux 10.0 and tomcat
5.5 and a SQL server (postgresql).  I've been doing it
for several years, and when I started, it was a real
challange.  The only reason it's easy now is because I
fought the uphill battle until I knew what was what.
I'll try to tell you, but you have to be willing to
read other sources as well.  Study study study.

Tomorrow ... Justin Jaynes

--- Preston Crawford <[EMAIL PROTECTED]> wrote:

> I've tried this so many different ways and I can't
> get it to work. Why is
> something that works out of the box on Windows so
> hard on Linux? Shouldn't
> there be a defined way to do this? I feel like I'm
> tilting at Windmills at
> this point.
>
> Don Quixote
>
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>





__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

-
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 as a service under Linux... "To dream theimpossible dream"

2005-11-08 Thread Preston CRAWFORD
Thanks. I actually got it working, though, so life is good. I've used
Linux for years and there never seems to be a shortage of new
challenges. Which is fine, though, when weighed against the alternative
in terms of stability and security.

Preston

>>> [EMAIL PROTECTED] 11/7/2005 9:42:41 PM >>>
Dude,

I am wiling to help you, but you have to understand
that Linux is SOO different from windows.  Out of
the box?  That's not really a term we use in Linux. 
We put things into the box.

So if you are willing to follow some careful
explanations, you can get it to work.

Actually, I'm headed to be now, but tomorrow, I'll
fill you in if you are willing to try.

I run several servers with SuSE linux 10.0 and tomcat
5.5 and a SQL server (postgresql).  I've been doing it
for several years, and when I started, it was a real
challange.  The only reason it's easy now is because I
fought the uphill battle until I knew what was what. 
I'll try to tell you, but you have to be willing to
read other sources as well.  Study study study.

Tomorrow ... Justin Jaynes

--- Preston Crawford <[EMAIL PROTECTED]> wrote:

> I've tried this so many different ways and I can't
> get it to work. Why is
> something that works out of the box on Windows so
> hard on Linux? Shouldn't
> there be a defined way to do this? I feel like I'm
> tilting at Windmills at
> this point.
> 
> Don Quixote
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED] 
> For additional commands, e-mail:
> [EMAIL PROTECTED] 
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com 

-
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 on Mac

2005-11-08 Thread Carl Olivier
Hi.

Just received this from Apple lists:


"Looking at the errors, I think this is a known OS problem. If you create a
ServerSocket before loading the AWT in headless mode, the application will
die.

The workaround is to start up the AWT first by creating a
java.awt.Dimension(), or Toolkit.getDefaultToolkit(), then start listening
for connections. I don't know enough about Tomcat to know if that's even
feasible, but that's the best we have right now."

When does the Tomcat initialisation sequence create the ServerSocket and
start listening?  Any way to put something like that in easily?

Thanks.

Carl


-Original Message-
From: Edoardo Panfili [mailto:[EMAIL PROTECTED] 
Sent: 08 November 2005 16:37
To: Tomcat Users List
Subject: Re: Tomcat on Mac

Carl Olivier ha scritto:
> Greetings.
> 
> Ok, well I can verify that it breaks every time when the 
> http://www.jfree.org/jfreechart/index.php JFreeChart library is used 
> to dynamically render a graph from data.
> 
> I am unsure exactly where in the code this is happening, will step 
> through and provide additional information as I have it.
> 
> I am using jfreechart 0.9.20.
> 
The problem for me is with ImageIO, for this reason I report the problem to
apple. After all a Java VM crash is not part of the specification...

Edoardo Panfili


--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

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



Tomcat 5.5.12 and SSL - https doesn't work, was ok with 5.5.9

2005-11-08 Thread Jean-Pierre Pelletier

Hi,

I upgraded from Tomcat 5.5.9 to Tomcat 5.5.12 and cannot get
https connectors to work.

https://localhost hangs for a few minutes before displaying "page cannot be
displayed".

Here is an extract from my server.xml



I created the keystore with jdk 1.5.

It was working fine with Tomcat 5.5.9.
I am using Windows XP with Service Pack 2.
I tried it on both Internet Explorer 6 and Firefox.

Thanks
Jean-Pierre Pelletier
e-djuster


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



ROOT webapp question confused with hosts

2005-11-08 Thread Narahari 'n' Savitha
Friends,

I am unable to decipher this.

I am on windows xp running tomcat as my webserver/jsp engine 5.5.09

I have http://savithari.dyndns.org/vruksha that works correctly.

but

http://savithari.dyndns.org always brings up the default page of tomcat.

I know that I can rename the ROOT folder to be able accomplish a direct hit
to http://savithari.dyndns.org to bring up the page I want.

BUT THAT IS NOT WHAT I WANT.

I want to be able to keep my webpage contents under M:\VRUKSHA which
contains the entire webpage.

I still want the configurate of tomcat to point the ROOT to this folder
M:\VRUKSHA so that I can update the correct folder.

Is this too much to ask ?

If not that atleast tell me an alternate way to much with the ROOT so that
RENAMING MY APPLICATION TO ROOT is not the only solution.

Thank your for your time and help.
-Narahari


RE: deploying war file (UNCLASSIFIED)

2005-11-08 Thread Lothar Krenzien

Hi Fadi,

for testing reasons I copied my application to a temp directory with the same 
structure as the real application.

So the app looks like :

C:\Temp\ant-test\application
 |
 | src
|
| --- com 
 |
 | web
   |
   |  css / js / jsp / Meta-INF / Web-INF ...
 |
 | deployment (temporary working dir)

The Ant script copies all files under src/com and web to the deployment dir, 
compiles the classes (put it under the Web-INF/classes dir) and then building a 
war-archive using the Ant war-task. 

Here's my Ant script:

 
   
  
 
   
   
  
  
   
  
 

The created war-file  looks like :

 |
 | -- css
 |
 | -- js
 |
 | -- jsp
 |
 | -- Web-INF
 |  |
 |  | -- classes
 |
 |
 | -- Meta-INF

and so on.  At the moment I try to call the deployment url in the web browser. 
But in the future I want to deploy the war-file from Ant.
Hope that helps.

Lothar

"Tomcat Users List"  schrieb am 08.11.05 17:46:07:
> 
> Classification:  UNCLASSIFIED 
> Caveats: NONE
> 
> Send your application hierarchy please
> Fadi 
> 
> -Original Message-
> From: Lothar Krenzien [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 08, 2005 11:41 AM
> To: users@tomcat.apache.org
> Subject: deploying war file
> 
> 
> Hi there,
> 
> I'm just trying to create a war file for a web projects (with JSP's and
> Struts) and want to deploy it using the Tomcat manager. I configured a user
> for the manager like descriped in the docu, created the war file with Ant
> and wanted to deploy the app using the following command :
>   http://remoteServer:/manager/reload?path=/webapp&war=file:/webapp.war
> 
> 
> But even Tomcat returns OK nothing happens. When I try to call the app like
>   http://remoteServer:/webapp/Welcome.do
> I get an error that the resource does not exists. This seems to be true for
> me because there are no files in the app-dir.  In the past all files are
> copied in the appBase dir of Tomcat. The  file webapp.war is located in the
> appBase dir of Tomcat and has the same name as the context path for the
> project (webapp). 
> So what I'm doing wrong ?
> 
> autoDeploy and unpackWARs are set to true.
> 
> Thank,
> Lothar Krenzien
> 
> P.S. I notified that in the 'WEB-INF' dir of the war file all files exists
> twice or even 3-times. It seems that the war file was created wrong by Ant
> (maybe an error in my script). Could that be the reason ?
> __
> Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!
> 
> Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Classification:  UNCLASSIFIED 
> Caveats: NONE
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



RE: deploying war file (UNCLASSIFIED)

2005-11-08 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Send your application hierarchy please
Fadi 

-Original Message-
From: Lothar Krenzien [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 08, 2005 11:41 AM
To: users@tomcat.apache.org
Subject: deploying war file


Hi there,

I'm just trying to create a war file for a web projects (with JSP's and
Struts) and want to deploy it using the Tomcat manager. I configured a user
for the manager like descriped in the docu, created the war file with Ant
and wanted to deploy the app using the following command :
  http://remoteServer:/manager/reload?path=/webapp&war=file:/webapp.war


But even Tomcat returns OK nothing happens. When I try to call the app like
  http://remoteServer:/webapp/Welcome.do
I get an error that the resource does not exists. This seems to be true for
me because there are no files in the app-dir.  In the past all files are
copied in the appBase dir of Tomcat. The  file webapp.war is located in the
appBase dir of Tomcat and has the same name as the context path for the
project (webapp). 
So what I'm doing wrong ?

autoDeploy and unpackWARs are set to true.

Thank,
Lothar Krenzien

P.S. I notified that in the 'WEB-INF' dir of the war file all files exists
twice or even 3-times. It seems that the war file was created wrong by Ant
(maybe an error in my script). Could that be the reason ?
__
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!

Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE


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



deploying war file

2005-11-08 Thread Lothar Krenzien

Hi there,

I'm just trying to create a war file for a web projects (with JSP's and Struts) 
and want to deploy it using the Tomcat manager. I configured a user for the 
manager like descriped in the docu, created the war file with Ant and wanted to 
deploy the app using the following command :
  http://remoteServer:/manager/reload?path=/webapp&war=file:/webapp.war


But even Tomcat returns OK nothing happens. When I try to call the app like 
  http://remoteServer:/webapp/Welcome.do
I get an error that the resource does not exists. This seems to be true for me 
because there are no files in the app-dir.  In the past all files are copied in 
the appBase dir of Tomcat. The  file webapp.war is located in the appBase dir 
of Tomcat and has the same name as the context path for the project (webapp). 
So what I'm doing wrong ?

autoDeploy and unpackWARs are set to true.

Thank, 
Lothar Krenzien

P.S. I notified that in the 'WEB-INF' dir of the war file all files exists 
twice or even 3-times. It seems that the war file was created wrong by Ant 
(maybe an error in my script). Could that be the reason ?
__
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!

Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131


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



Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Michael Neel
Not tried this myself, but it sounds like a *nix system (/etc)?  Have
you tried making ROOT a symlink to your app?

On 11/8/05, Francis Galiegue <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> We have a problem here. Tomcat 5.0.x (x being 27 or 30), packages from
> jpackage, BEA 1.4.2 JVM used.
>
> Prior to today, the relevant parts (I think so, at least, not being at
> all an expert with Tomcat) of the /etc/tomcat5/server.xml were as
> such:
>
>  autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
> [...]
>   
>  prefix="access-kitu-"
>  suffix=".log" pattern="common"/>
>  prefix="kitu-" suffix=".log"
>  verbosity="2" timestamp="true"/>
>   
> 
>
> The problem with this setup is that the application was loaded
> *twice*. Once at the / of the webserver (which is good, that's what we
> want - the webserver is Apache BTW but I think that's irrelevant), but
> then another one under /one2team, which is not desired.
>
> So, after much tinkering around with the configuration files, we came
> up with this solution:
>
>   deployXML="false" deployOnStartup="true" unpackWARs="true"
> xmlValidation="false"
>  xmlNamespaceAware="false">
> [...]
>   
>  prefix="access-kitu-"
>  suffix=".log" pattern="common"/>
>  prefix="kitu-" suffix=".log"
>  verbosity="2" timestamp="true"/>
>   
> 
>
> This does what we want. As expected we now see a
> Catalina/localhost/ROOT.xml created, the application is only loaded
> once, so all is fine.
>
> But then this is flawed:
> * The external-webapps directory does not exist, and tomcat doesn't
> seem to complain. However, future versions may. What's more, if this
> directory is created and a webapp exists in there we get to the same
> problem...
> * I'm no expert at all with Tomcat but this just looks like there's a
> far more simple, elegant way...
>
> Google has brought up no results at all, but then I may have entered
> the wrong keywords :(
> Can anyone enlighten me?
>
> --
> Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
> One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980
> "When it comes to performance, weight is everything" - Tiff Needell
>
> -
> 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 on Mac

2005-11-08 Thread Edoardo Panfili

Carl Olivier ha scritto:

Greetings.

Ok, well I can verify that it breaks every time when the
http://www.jfree.org/jfreechart/index.php JFreeChart library is used to
dynamically render a graph from data.

I am unsure exactly where in the code this is happening, will step through
and provide additional information as I have it.

I am using jfreechart 0.9.20.

The problem for me is with ImageIO, for this reason I report the 
problem to apple. After all a Java VM crash is not part of the 
specification...


Edoardo Panfili


--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

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



Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Paul Singleton

Francis Galiegue wrote:


...

[...]
  


  


...
But then this is flawed:
* The external-webapps directory does not exist, and tomcat doesn't
seem to complain. However, future versions may.


Indeed.  I recommend setting appBase to a real, empty directory.
It seems a bit odd having to maintain an empty dir as part of
the configuration, but you can do it if you try :-)  You may want
to put a README in there, saying "do not interfere"...


What's more, if this
directory is created and a webapp exists in there we get to the same
problem...


If webapps just magically come into existence on your server then
it needs stricter administration :-)


* I'm no expert at all with Tomcat but this just looks like there's a
far more simple, elegant way...


(before you're an expert you'll stop expecting this ;-)

e.g. an attribute to retain deployment on startup from explicit
contexts while suppressing implicit deployment from the appBase?

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 5/Nov/2005


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



Deploy with Ant Task over HTTPS : how does it work ?

2005-11-08 Thread [EMAIL PROTECTED]
Hello,

I've wrote an ant script to deploy a webapp into tomcat 5.0.28
Here is a snippet of it :
https://my.domain.name/manager";
update="true"
path="/mywebapp"
username="myusername"
password="mypassword"/>

When I run it, I get this exception :
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target

What's the problem ?
I think that this is a trustStore problem, but where can I specify
where is my trustStore ?

Thanks,
Arnaud.

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



RE: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Caldarale, Charles R
> From: MC Moisei [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat 5.0 : howto make a webapp the ROOT webapp 
> the proper way
> 
> That implies that I can have more than one application in 
> ROOT folder...

?? No.  You can have as many servlets or JSPs as you like, but they
would all be part of the default webapp.  You have to replace, not
augment, the existing default webapp in ROOT with your own.

> Are you basically saying that instead of naming my 
> application "someapp" I'd have to name it ROOT ?

Exactly.  As an alternative, you could write a trivial default webapp
that would forward to the desired one.

 - Chuck


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

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



RE: Tomcat on Mac

2005-11-08 Thread Carl Olivier
Greetings.

Ok, well I can verify that it breaks every time when the
http://www.jfree.org/jfreechart/index.php JFreeChart library is used to
dynamically render a graph from data.

I am unsure exactly where in the code this is happening, will step through
and provide additional information as I have it.

I am using jfreechart 0.9.20.

Regards,

Carl

-Original Message-
From: Edoardo Panfili [mailto:[EMAIL PROTECTED] 
Sent: 08 November 2005 15:50
To: Tomcat Users List
Subject: Re: Tomcat on Mac

Carl Olivier ha scritto:
> Greetings.
>  
> I am having a problem with my Tomcat server (5.0.28) running on Mac
XServe.
> 
> Not sure if anyone here can help, but trying my luck...
> 
> output from /usr/bin/sw_vers below:
>  
> ProductName:Mac OS X Server
> ProductVersion: 10.4.2
> BuildVersion:   8C47
>  
> java - version output:
>  
> java version "1.4.2_09"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232) 
> Java
> HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)
>  
> It seems when anything (well a lot?) executing withing the JVM 
> requiring any java imaging libs, or access to a default toolkit for 
> image processing causes this (or similar errors) to occur - and result 
> in the java process exiting!  Log entries from Tomcat log file at the 
> time of process exit and
> failure:
>  
> Exception in declaration()
> Exception in declaration()
> Exception in declaration()
> Exception in declaration()
> Exception in declaration()
> Exception in declaration()
> Exception in declaration()
> Exception in declaration()
> Exception in declaration()
> Exception in declaration()
> Exception in declaration()
> 2005-11-08 15:05:17.195 java[5522] CFLog (0): CFMessagePort:
> bootstrap_register(): failed 1100 (0x44c), port = 0x5a20f, name = 
> 'Processes-2.5522'
> See /usr/include/servers/bootstrap_defs.h for the error codes.
> 2005-11-08 15:05:17.196 java[5522] CFLog (99): CFMessagePortCreateLocal():
> failed to name Mach port (Processes-2.5522) CFMessagePortCreateLocal 
> failed (name = Processes-2.5522 error = 0)
>  
> The java runtime switches I am using are below:
>  
> -Xms784m -Xmx784m -Xss128k -XX:+UseParallelGC -XX:MaxPermSize=196m 
> -XX:+DisableExplicitGC -Djava.awt.headless=true
>  
> Does anyone have any idea as to why this is happening, or what could 
> potentially cause this?
> 
One my application (Servlet) that works with bitmap images hangs in the same
way (java VM exits). Ther error don't occurs overy times, is not easily
reproducible.

There is a bug report at apple
"3844767:1.4.2_05-141.3:java vm crash when using javax.image 
19-Oct-2004 06:11 PM"
But no solution.
Now I am using SVG, o "very" alternative vay. I'd like to change my server.

output from /usr/bin/sw_vers below:
ProductName:Mac OS X
ProductVersion: 10.3.9
BuildVersion:   7W98

java - version output:
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-233) Java
HotSpot(TM) Client VM (build 1.4.2-56, mixed mode)


Edoardo Panfili


--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

-
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: Passing options to the JVM at startup

2005-11-08 Thread Caldarale, Charles R
> From: Eric Boudrand [mailto:[EMAIL PROTECTED] 
> Subject: Passing options to the JVM at startup
> 
> There is no catanila.bat file, so I use tomcat5w.

For debugging, you probably do want to use the scripts, rather than
running Tomcat as a service.  The scripts are not included in the .exe
download, but are in the .zip, for no discernable reason.

 - Chuck


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

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



Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread MC Moisei
That implies that I can have more than one application in ROOT folder...that 
would require some URL  filtering in each app. Also if I look under 
webapps/ROOT folder there is a WEB-INF in there...


Are you basically saying that instead of naming my application "someapp" I'd 
have to name it ROOT ?


TIA!
MC
http://www.goodstockimages.com





From: David Smith <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper 
way

Date: Tue, 08 Nov 2005 10:45:16 -0500

To answer the question, yes.  Any webapp in the webapps folder named ROOT 
will become the root app.


--David

Caldarale, Charles R wrote:

From: Francis Galiegue [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 
5.0 : howto make a webapp the ROOT webapp the proper way


Will renaming the directory to ROOT have the same effect?




Don't know, haven't tried it.  Should only take you a few minutes to
test.

- Chuck


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

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






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





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



Re: Use of JSF view in welcome file list

2005-11-08 Thread Peter Menzel

Tim Dean wrote:

Peter,

Thanks for the example: I had seen examples like this in the archives, which is 
why I thought that I could do what I'm trying to do: I want the same kind of 
behavior you are describing, but with a mapping to the Faces servlet instead.

If the examply you've provided works, any ideas why my JSF setup would not work? In my environment, 
I request "http://localhost:8080/pdm/main.faces";, which works fine. If I instead request 
"http://localhost:8080/pdm/";, it instead shows me a directory listing of the files in my 
web app.

Is there a problem with using a wildcard in my JSF servlet mapping that causes 
it to fail with welcom files? Or is there something inherently odd with JSF 
that makes this impossible to do?

Thanks,

- Tim


Actually, I never worked with Faces before, so I can't tell.

Therefore I tried with a normal servlet and wildcard extension:


Home
*.bar


foo.bar


and: accessing http://localhost/mywebapp/ prints the directory listing !
Unfortunately, that is not what I expected.

Tomcat should have appended "foo.bar" to "/" resulting in "/foo.bar" and 
 should then match Home servlet to this request.


Using this mapping


Home
/foo.bar


Tomcat is invoking the Home Servlet.

So this looks not like a specific JSF problem.
It looks like a bug in Tomcat?

The Servlet spec states: "The web server must append each welcome file 
in the order specified in the DD to the partial request and check 
whether a static resource or servlet in the WAR is mapped to that 
request URI."


Peter


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



Re: Tomcat on Mac

2005-11-08 Thread Edoardo Panfili

Carl Olivier ha scritto:

Greetings.
 
I am having a problem with my Tomcat server (5.0.28) running on Mac XServe.


Not sure if anyone here can help, but trying my luck...

output from /usr/bin/sw_vers below:
 
ProductName:Mac OS X Server

ProductVersion: 10.4.2
BuildVersion:   8C47
 
java - version output:
 
java version "1.4.2_09"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232) Java
HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)
 
It seems when anything (well a lot?) executing withing the JVM requiring any

java imaging libs, or access to a default toolkit for image processing
causes this (or similar errors) to occur - and result in the java process
exiting!  Log entries from Tomcat log file at the time of process exit and
failure:
 
Exception in declaration()

Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
2005-11-08 15:05:17.195 java[5522] CFLog (0): CFMessagePort:
bootstrap_register(): failed 1100 (0x44c), port = 0x5a20f, name =
'Processes-2.5522'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2005-11-08 15:05:17.196 java[5522] CFLog (99): CFMessagePortCreateLocal():
failed to name Mach port (Processes-2.5522) CFMessagePortCreateLocal failed
(name = Processes-2.5522 error = 0)
 
The java runtime switches I am using are below:
 
-Xms784m -Xmx784m -Xss128k -XX:+UseParallelGC -XX:MaxPermSize=196m

-XX:+DisableExplicitGC -Djava.awt.headless=true
 
Does anyone have any idea as to why this is happening, or what could

potentially cause this?

One my application (Servlet) that works with bitmap images hangs in 
the same way (java VM exits). Ther error don't occurs overy times, is 
not easily reproducible.


There is a bug report at apple
"3844767:1.4.2_05-141.3:java vm crash when using javax.image  	 
19-Oct-2004 06:11 PM"

But no solution.
Now I am using SVG, o "very" alternative vay. I'd like to change my 
server.


output from /usr/bin/sw_vers below:
ProductName:Mac OS X
ProductVersion: 10.3.9
BuildVersion:   7W98

java - version output:
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-233)
Java HotSpot(TM) Client VM (build 1.4.2-56, mixed mode)


Edoardo Panfili


--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

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



Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread David Smith
To answer the question, yes.  Any webapp in the webapps folder named 
ROOT will become the root app.


--David

Caldarale, Charles R wrote:

From: Francis Galiegue [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat 5.0 : howto make a webapp the ROOT webapp 
the proper way


Will renaming the directory to ROOT have the same effect?
   



Don't know, haven't tried it.  Should only take you a few minutes to
test.

- Chuck


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

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



Passing options to the JVM at startup

2005-11-08 Thread Eric Boudrand
Hi,

I am using tomcat 5.5.12. I would like to debug a servlet from Eclipse. I
am using ObjectWeb Lomboz 1.0.0. I am trying to pass "-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y, suspend=n" to the
JVM. There is no catanila.bat file, so I use tomcat5w. In "Java" tab, I
added in "Java Options" :
--JvmOptions "-Xdebug;-Xrunjdwp:transport=dt_socket,address=8000,server=y,
suspend=n"

But when I start debug session, I have the message : "Failed to connect to
remote VM. Connection refused." Is that way for configuring tomcat
start-up correct ?

Regard

Eric








___ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

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



Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Francis Galiegue
2005/11/8, sudip shrestha <[EMAIL PROTECTED]>:
> Read the Tomcat documentation First!

I *HAVE*, and it didn't solve my problem at all!

I cannot easily rename the webapp dir to ROOT, so I'd prefer a
solution where the directory name remains the same and STILL have the
webapp under /. This, AFAICS, the documentation does NOT cover.

--
Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980
"When it comes to performance, weight is everything" - Tiff Needell

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



Tomcat on Mac

2005-11-08 Thread Carl Olivier
Greetings.
 
I am having a problem with my Tomcat server (5.0.28) running on Mac XServe.

Not sure if anyone here can help, but trying my luck...

output from /usr/bin/sw_vers below:
 
ProductName:Mac OS X Server
ProductVersion: 10.4.2
BuildVersion:   8C47
 
java - version output:
 
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232) Java
HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)
 
It seems when anything (well a lot?) executing withing the JVM requiring any
java imaging libs, or access to a default toolkit for image processing
causes this (or similar errors) to occur - and result in the java process
exiting!  Log entries from Tomcat log file at the time of process exit and
failure:
 
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
Exception in declaration()
2005-11-08 15:05:17.195 java[5522] CFLog (0): CFMessagePort:
bootstrap_register(): failed 1100 (0x44c), port = 0x5a20f, name =
'Processes-2.5522'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2005-11-08 15:05:17.196 java[5522] CFLog (99): CFMessagePortCreateLocal():
failed to name Mach port (Processes-2.5522) CFMessagePortCreateLocal failed
(name = Processes-2.5522 error = 0)
 
The java runtime switches I am using are below:
 
-Xms784m -Xmx784m -Xss128k -XX:+UseParallelGC -XX:MaxPermSize=196m
-XX:+DisableExplicitGC -Djava.awt.headless=true
 
Does anyone have any idea as to why this is happening, or what could
potentially cause this?
 
Thanks in advance,
 
Carl


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



RE: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Caldarale, Charles R
> From: Francis Galiegue [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat 5.0 : howto make a webapp the ROOT webapp 
> the proper way
> 
> Will renaming the directory to ROOT have the same effect?

Don't know, haven't tried it.  Should only take you a few minutes to
test.

 - Chuck


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

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



Re: j_security_check event?=20

2005-11-08 Thread Peter Menzel

[EMAIL PROTECTED] schrieb:

Hi everyone,

first of all i would like to thanks you guys out there who help me me the last 
week with my issue on the freenode #tomcat channel!


well im now having a bit complicated issue (for me at least) what i'am trying 
to do is:
when a user log in forma based authentication i want to perform a request and 
see if the authentication was succeessfull or not
if the authentification was okay so i want to submite some cookies and some 
data into the users session, if the authentication was not successfull so i 
will redirect the user either to an error page or back to the login page

so my aim is to know if there is a way /  a solution/ a kind of a listner  or a 
manner that i can use/ask  to request this event so that i can set my cookies 
and session data since im trying to achieve a singel sign on it is important 
for me to get this kind of cookies for only authenticated users



The only way I see, is to write your own Authenticator, e.g. a subclass 
of FormAuthenticator.

It worked for me, implementing the cookie single sign on.

Peter


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



RE: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Caldarale, Charles R
> From: sudip shrestha [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat 5.0 : howto make a webapp the ROOT webapp 
> the proper way
> 
> Then, you will have to define your new  element properly (in
> server.xml).

Unless I badly misread the post, he's not asking about changing the host
name, just the default application under the default host.  Defining a
new  element should not be necessary.

 - Chuck


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

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



Re: j_security_check event?=20

2005-11-08 Thread David Smith
You could just have a filter watch request.getRemoteUser().  When it 
returns a not empty string, check for the other stuff (cookies, session 
info, etc., ...) and add as necessary.


--David

[EMAIL PROTECTED] wrote:


Hi everyone,

first of all i would like to thanks you guys out there who help me me the last 
week with my issue on the freenode #tomcat channel!


well im now having a bit complicated issue (for me at least) what i'am trying 
to do is:
when a user log in forma based authentication i want to perform a request and 
see if the authentication was succeessfull or not
if the authentification was okay so i want to submite some cookies and some 
data into the users session, if the authentication was not successfull so i 
will redirect the user either to an error page or back to the login page

so my aim is to know if there is a way /  a solution/ a kind of a listner  or a 
manner that i can use/ask  to request this event so that i can set my cookies 
and session data since im trying to achieve a singel sign on it is important 
for me to get this kind of cookies for only authenticated users


thanks in advance!

yel



-
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 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Francis Galiegue
2005/11/8, Caldarale, Charles R <[EMAIL PROTECTED]>:
[...]
>
> At least for 5.5, the proper way is to put your application in ROOT.war
> (caps required) rather than any other name.  I think this applies to 5.0
> as well, but I haven't used that level in some time.
>

That's a solution, except that the configuration files for this
application lie within its directory, so making it a WAR file is
rather impractical. Will renaming the directory to ROOT have the same
effect?

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



Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread sudip shrestha
Read the Tomcat documentation First!
Then, you will have to define your new  element properly (in
server.xml). Read about virtual hosts.
let's say: you have your webapp under dir /yyy/ (your webapp in ROOT.war).
Read about the contexts.
then you need to define your appBase="/yyy" (in ).
your docBase="/yyy/ROOT" (in con/Catalina//ROOT.xml)

On 11/8/05, Francis Galiegue <[EMAIL PROTECTED]> wrote:
>
> 2005/11/8, sudip shrestha <[EMAIL PROTECTED]>:
> > I had the similar problem before..
> > http://www.mail-archive.com/users@tomcat.apache.org/msg00057.html
> > Just remove the  elment from the server.xml file. Tomcat 5 docs
> > don't recommend putting  in server.xml. If you do so, it will
> > create .xml file in your conf/Catalina//. Tomcat
> will
> > always refer to the one in conf/ and the one in server.xml as
> wellYou
> > can also provide a context.xml under your META-INF/ directory in your
> > webapp, but again this will be overridden by the one under conf/ if one
> > already exists in here and if not, a new one will be created in the
> conf/
> > and will be referred to in the future unless you manually delete it and
> > tomcat will create it again...so you can't avoid the one under conf/
> >
> >
>
> Yes but the problem is not there. The problem is that if I do things
> this way, the application won't be under / but under /one2team, and I
> need it to be under / :(
>
> I can do with the Catalina/localhost/ROOT.xml file, I just rm -f it
> when I uninstall the RPM... It's just this / thing which is annoying,
> and the way I found around the problem is certainly not the proper one
> :(
>
> --
> Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
> One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980
> "When it comes to performance, weight is everything" - Tiff Needell
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


j_security_check event?=20

2005-11-08 Thread [EMAIL PROTECTED]
Hi everyone,

first of all i would like to thanks you guys out there who help me me the last 
week with my issue on the freenode #tomcat channel!


well im now having a bit complicated issue (for me at least) what i'am trying 
to do is:
when a user log in forma based authentication i want to perform a request and 
see if the authentication was succeessfull or not
if the authentification was okay so i want to submite some cookies and some 
data into the users session, if the authentication was not successfull so i 
will redirect the user either to an error page or back to the login page

so my aim is to know if there is a way /  a solution/ a kind of a listner  or a 
manner that i can use/ask  to request this event so that i can set my cookies 
and session data since im trying to achieve a singel sign on it is important 
for me to get this kind of cookies for only authenticated users


thanks in advance!

yel



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



RE: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Caldarale, Charles R
> From: Francis Galiegue [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat 5.0 : howto make a webapp the ROOT webapp 
> the proper way
> 
> Yes but the problem is not there. The problem is that if I do things
> this way, the application won't be under / but under /one2team, and I
> need it to be under / :(

At least for 5.5, the proper way is to put your application in ROOT.war
(caps required) rather than any other name.  I think this applies to 5.0
as well, but I haven't used that level in some time.

 - Chuck


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

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



Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Francis Galiegue
2005/11/8, sudip shrestha <[EMAIL PROTECTED]>:
> I had the similar problem before..
> http://www.mail-archive.com/users@tomcat.apache.org/msg00057.html
> Just remove the  elment from the server.xml file. Tomcat 5 docs
> don't recommend putting  in server.xml. If you do so, it will
> create .xml file in your conf/Catalina//. Tomcat will
> always refer to the one in conf/ and the one in server.xml as wellYou
> can also provide a context.xml under your META-INF/ directory in your
> webapp, but again this will be overridden by the one under conf/ if one
> already exists in here and if not, a new one will be created in the conf/
> and will be referred to in the future unless you manually delete it and
> tomcat will create it again...so you can't avoid the one under conf/
>
>

Yes but the problem is not there. The problem is that if I do things
this way, the application won't be under / but under /one2team, and I
need it to be under / :(

I can do with the Catalina/localhost/ROOT.xml file, I just rm -f it
when I uninstall the RPM... It's just this / thing which is annoying,
and the way I found around the problem is certainly not the proper one
:(

--
Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980
"When it comes to performance, weight is everything" - Tiff Needell

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



Re: Use of JSF view in welcome file list

2005-11-08 Thread Tim Dean
Peter,

Thanks for the example: I had seen examples like this in the archives, which is 
why I thought that I could do what I'm trying to do: I want the same kind of 
behavior you are describing, but with a mapping to the Faces servlet instead.

If the examply you've provided works, any ideas why my JSF setup would not 
work? In my environment, I request "http://localhost:8080/pdm/main.faces";, 
which works fine. If I instead request "http://localhost:8080/pdm/";, it instead 
shows me a directory listing of the files in my web app.

Is there a problem with using a wildcard in my JSF servlet mapping that causes 
it to fail with welcom files? Or is there something inherently odd with JSF 
that makes this impossible to do?

Thanks,

- Tim

-Original Message-
From: Peter Menzel <[EMAIL PROTECTED]>
Sent: Nov 8, 2005 6:48 AM
To: Tomcat Users List 
Subject: Re: Use of JSF view in welcome file list

Charlie C.L. King wrote:
> you *MUST* use real files in  instead of a mapped path.
> 

Actually this is not true.

In the  you specify only partial URIs in the 
 Elements.
If the Container encounters a request, which does not map to a 
 in the DD, it appends each  in the order 
appearing in the list to this partial request and looks, if there is a 
static file OR a  which matches the modified request. 
If yes, then this request will be processed. Therefore the first 
matching  wins. If no  matches, the 
container may show a directory listing or 404. Welcome files may not 
contain leading or trailing slashes.

working example:


Home
my.servlet.Home



Home
/home



home


If a request comes to http://example.com/mywebapp/ ,  the container 
appends "home" to the partial request "/" and matches "/home". The 
my.servlet.Home gets the request.

See servlet Spec SRV 9.10 for more details.

Peter Menzel


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



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



Re: Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread sudip shrestha
I had the similar problem before..
http://www.mail-archive.com/users@tomcat.apache.org/msg00057.html
Just remove the  elment from the server.xml file. Tomcat 5 docs
don't recommend putting  in server.xml. If you do so, it will
create .xml file in your conf/Catalina//. Tomcat will
always refer to the one in conf/ and the one in server.xml as wellYou
can also provide a context.xml under your META-INF/ directory in your
webapp, but again this will be overridden by the one under conf/ if one
already exists in here and if not, a new one will be created in the conf/
and will be referred to in the future unless you manually delete it and
tomcat will create it again...so you can't avoid the one under conf/


On 11/8/05, Francis Galiegue <[EMAIL PROTECTED]> wrote:
>
> Hello everyone,
>
> We have a problem here. Tomcat 5.0.x (x being 27 or 30), packages from
> jpackage, BEA 1.4.2 JVM used.
>
> Prior to today, the relevant parts (I think so, at least, not being at
> all an expert with Tomcat) of the /etc/tomcat5/server.xml were as
> such:
>
>  autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
> [...]
> 
>  prefix="access-kitu-"
> suffix=".log" pattern="common"/>
>  prefix="kitu-" suffix=".log"
> verbosity="2" timestamp="true"/>
> 
> 
>
> The problem with this setup is that the application was loaded
> *twice*. Once at the / of the webserver (which is good, that's what we
> want - the webserver is Apache BTW but I think that's irrelevant), but
> then another one under /one2team, which is not desired.
>
> So, after much tinkering around with the configuration files, we came
> up with this solution:
>
>  autoDeploy="false"
> deployXML="false" deployOnStartup="true" unpackWARs="true"
> xmlValidation="false"
> xmlNamespaceAware="false">
> [...]
> 
>  prefix="access-kitu-"
> suffix=".log" pattern="common"/>
>  prefix="kitu-" suffix=".log"
> verbosity="2" timestamp="true"/>
> 
> 
>
> This does what we want. As expected we now see a
> Catalina/localhost/ROOT.xml created, the application is only loaded
> once, so all is fine.
>
> But then this is flawed:
> * The external-webapps directory does not exist, and tomcat doesn't
> seem to complain. However, future versions may. What's more, if this
> directory is created and a webapp exists in there we get to the same
> problem...
> * I'm no expert at all with Tomcat but this just looks like there's a
> far more simple, elegant way...
>
> Google has brought up no results at all, but then I may have entered
> the wrong keywords :(
> Can anyone enlighten me?
>
> --
> Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
> One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980
> "When it comes to performance, weight is everything" - Tiff Needell
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Vote for this java RFE

2005-11-08 Thread Klotz Jr, Dennis
I have been investigating ways of improving the load times of our web
applets and with the help of a Sun developer the following RFE has been
created:

 

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6346341

 

I ask that you please consider voting for it (getting an account is easy
and so far hassle free :-) ). If you know of another java developer or
user that would find it useful please forward the link.

 

I started this discussion here:

 

http://forum.java.sun.com/thread.jspa?threadID=678853&tstart=0

 

 

In a nutshell, the RFE is asking that Sun add an option within the java
control panel to pre-load the Java Virtual Machine at system startup and
keep it around. Why? The cold start time of our applet has increased
since moving to java 1.5 despite claims by Sun that this version has
better load times.  After testing, it has been determined that simply
preloading the JVM cuts the load time dramatically.

 

Dennis Klotz, Senior Software Engineer
EMPIRIX | Communications Infrastructure Group | 



 



BUGS ?? - jsp: implicit object pageContext not AVAILABLE in scriptlet

2005-11-08 Thread Debora Desideri
I'm working with tomcat version 5.0 and I've written a tag file using scriplet 
inside.
But the implicit object pageContext can be used within the expression language 
and NOT  into the scriptlet.
It works if I use use the implicit object jspContext instead of pageContext.

Anyway if I substitute the jasper library with an older one I can use 
pageContext everywhere and it works fine!

In the new version of tomcat the method doTag() of the tag java class produced 
by jasper library is the following:

public void doTag() throws JspException, java.io.IOException {
PageContext _jspx_page_context = (PageContext)jspContext;
HttpServletRequest request = (HttpServletRequest) 
_jspx_page_context.getRequest();
HttpServletResponse response = (HttpServletResponse)  
_jspx_page_context.getResponse();
HttpSession session = _jspx_page_context.getSession();
ServletContext application = _jspx_page_context.getServletContext();
ServletConfig config = _jspx_page_context.getServletConfig();
.

}
  
You can noticed that the _jspx_page_context variable should be called 
pageContext as in the old version.

Can anyone tell me if it is a bug or a voluntary choice?

Thanks


Tomcat 5.0 : howto make a webapp the ROOT webapp the proper way

2005-11-08 Thread Francis Galiegue
Hello everyone,

We have a problem here. Tomcat 5.0.x (x being 27 or 30), packages from
jpackage, BEA 1.4.2 JVM used.

Prior to today, the relevant parts (I think so, at least, not being at
all an expert with Tomcat) of the /etc/tomcat5/server.xml were as
such:


[...]
  


  


The problem with this setup is that the application was loaded
*twice*. Once at the / of the webserver (which is good, that's what we
want - the webserver is Apache BTW but I think that's irrelevant), but
then another one under /one2team, which is not desired.

So, after much tinkering around with the configuration files, we came
up with this solution:


[...]
  


  


This does what we want. As expected we now see a
Catalina/localhost/ROOT.xml created, the application is only loaded
once, so all is fine.

But then this is flawed:
* The external-webapps directory does not exist, and tomcat doesn't
seem to complain. However, future versions may. What's more, if this
directory is created and a webapp exists in there we get to the same
problem...
* I'm no expert at all with Tomcat but this just looks like there's a
far more simple, elegant way...

Google has brought up no results at all, but then I may have entered
the wrong keywords :(
Can anyone enlighten me?

--
Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980
"When it comes to performance, weight is everything" - Tiff Needell

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



obtaining http port in a running application

2005-11-08 Thread Gaurav Kushwaha
How do i programmatically determine the HTTP port on which tomcat is
listeming for requests in a web application ?

Thanks,
Gaurav.
http://www.gauravkushwaha.com


DBCP Max Pool Size recommendation

2005-11-08 Thread Edmon Begoli
Are there any recommendations on the maximum DBCP pool size for Oracle
drivers.

We want to raise the number from default 15 to whatever (for 100 concurrent
users), so I wanted to check if there are
any best practices to follow.

--
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


Re: Tomcat WAP/WML

2005-11-08 Thread t.n.a.
My colleagues directed me to the same site. I guess that should be the 
way to go.


t.n.a.

Zohar Amir wrote:


http://www.kannel.org/

- Original Message - From: "Carl Olivier" 
<[EMAIL PROTECTED]>

To: "'Tomcat Users List'" 
Sent: Tuesday, November 08, 2005 2:16 PM
Subject: RE: Tomcat WAP/WML



Hi.

Great.  Thanks! Is there Gateway software available though?  If you 
wanted

to set your own gateway up?

Carl

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: 08 November 2005 12:11
To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

You don't need a WAP gateway. The mobile operator's have them and 
they proxy
the browser request :) You just need to make sure the wml you vend is 
valid
and sent with the correct mime type and the operator's gateway will 
do the

rest (conversion to wmlc, a wbxml tokenized version of the markup).

HTH,

Jon

Carl Olivier wrote:


Thanks!

Appreciate that.

-Original Message-
From: t.n.a. [mailto:[EMAIL PROTECTED]
Sent: 08 November 2005 11:54
To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

Carl Olivier wrote:



Hi.

Thanks for the info - but I was actually wonderin about the whole WAP
gateway - generating the different presentation layers is no problem -
however the protocol handler?  Maybe I should go do more reading - but
I assume a WAP gateway is required in order to process the WAP stacck
to HTTP stack and send to the web server?




I see your point. I'll forward your query to my colleagues and see
what they have to say about it.

t.n.a.


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



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





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



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




-
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: Use of JSF view in welcome file list

2005-11-08 Thread Peter Menzel

Charlie C.L. King wrote:

you *MUST* use real files in  instead of a mapped path.



Actually this is not true.

In the  you specify only partial URIs in the 
 Elements.
If the Container encounters a request, which does not map to a 
 in the DD, it appends each  in the order 
appearing in the list to this partial request and looks, if there is a 
static file OR a  which matches the modified request. 
If yes, then this request will be processed. Therefore the first 
matching  wins. If no  matches, the 
container may show a directory listing or 404. Welcome files may not 
contain leading or trailing slashes.


working example:


Home
my.servlet.Home



Home
/home



home


If a request comes to http://example.com/mywebapp/ ,  the container 
appends "home" to the partial request "/" and matches "/home". The 
my.servlet.Home gets the request.


See servlet Spec SRV 9.10 for more details.

Peter Menzel


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



Re: Tomcat WAP/WML

2005-11-08 Thread Jon Wingfield
Sure. All the big boys sell gateways. The Nokia gateway seems to be used 
 (or at least was) a fair bit within the operators themselves.

Here's a Nokia SDK which may be of use:
http://www.forum.nokia.com/main/0,,034-741,00.html

The major OSS gateway is kannel (http://www.kannel.org/)
The last time I looked there weren't any mature OSS gateways written in 
java. That could have changed though...


Jon

Carl Olivier wrote:

Hi.

Great.  Thanks! Is there Gateway software available though?  If you wanted
to set your own gateway up?

Carl 


-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: 08 November 2005 12:11

To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

You don't need a WAP gateway. The mobile operator's have them and they proxy
the browser request :) You just need to make sure the wml you vend is valid
and sent with the correct mime type and the operator's gateway will do the
rest (conversion to wmlc, a wbxml tokenized version of the markup).

HTH,

Jon

Carl Olivier wrote:


Thanks!

Appreciate that. 


-Original Message-
From: t.n.a. [mailto:[EMAIL PROTECTED]
Sent: 08 November 2005 11:54
To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

Carl Olivier wrote:




Hi.

Thanks for the info - but I was actually wonderin about the whole WAP 
gateway - generating the different presentation layers is no problem - 
however the protocol handler?  Maybe I should go do more reading - but 
I assume a WAP gateway is required in order to process the WAP stacck 
to HTTP stack and send to the web server?





I see your point. I'll forward your query to my colleagues and see 
what they have to say about it.


t.n.a.


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



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






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



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





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



Re: Tomcat WAP/WML

2005-11-08 Thread Zohar Amir

http://www.kannel.org/

- Original Message - 
From: "Carl Olivier" <[EMAIL PROTECTED]>

To: "'Tomcat Users List'" 
Sent: Tuesday, November 08, 2005 2:16 PM
Subject: RE: Tomcat WAP/WML



Hi.

Great.  Thanks! Is there Gateway software available though?  If you wanted
to set your own gateway up?

Carl

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: 08 November 2005 12:11
To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

You don't need a WAP gateway. The mobile operator's have them and they 
proxy
the browser request :) You just need to make sure the wml you vend is 
valid

and sent with the correct mime type and the operator's gateway will do the
rest (conversion to wmlc, a wbxml tokenized version of the markup).

HTH,

Jon

Carl Olivier wrote:

Thanks!

Appreciate that.

-Original Message-
From: t.n.a. [mailto:[EMAIL PROTECTED]
Sent: 08 November 2005 11:54
To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

Carl Olivier wrote:



Hi.

Thanks for the info - but I was actually wonderin about the whole WAP
gateway - generating the different presentation layers is no problem -
however the protocol handler?  Maybe I should go do more reading - but
I assume a WAP gateway is required in order to process the WAP stacck
to HTTP stack and send to the web server?




I see your point. I'll forward your query to my colleagues and see
what they have to say about it.

t.n.a.


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



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





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



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




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



RE: Tomcat WAP/WML

2005-11-08 Thread Carl Olivier
Hi.

Great.  Thanks! Is there Gateway software available though?  If you wanted
to set your own gateway up?

Carl 

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Sent: 08 November 2005 12:11
To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

You don't need a WAP gateway. The mobile operator's have them and they proxy
the browser request :) You just need to make sure the wml you vend is valid
and sent with the correct mime type and the operator's gateway will do the
rest (conversion to wmlc, a wbxml tokenized version of the markup).

HTH,

Jon

Carl Olivier wrote:
> Thanks!
> 
> Appreciate that. 
> 
> -Original Message-
> From: t.n.a. [mailto:[EMAIL PROTECTED]
> Sent: 08 November 2005 11:54
> To: Tomcat Users List
> Subject: Re: Tomcat WAP/WML
> 
> Carl Olivier wrote:
> 
> 
>>Hi.
>>
>>Thanks for the info - but I was actually wonderin about the whole WAP 
>>gateway - generating the different presentation layers is no problem - 
>>however the protocol handler?  Maybe I should go do more reading - but 
>>I assume a WAP gateway is required in order to process the WAP stacck 
>>to HTTP stack and send to the web server?
>> 
>>
> 
> I see your point. I'll forward your query to my colleagues and see 
> what they have to say about it.
> 
> t.n.a.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



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



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



Re: Tomcat WAP/WML

2005-11-08 Thread Jon Wingfield
You don't need a WAP gateway. The mobile operator's have them and they 
proxy the browser request :)
You just need to make sure the wml you vend is valid and sent with the 
correct mime type and the operator's gateway will do the rest 
(conversion to wmlc, a wbxml tokenized version of the markup).


HTH,

Jon

Carl Olivier wrote:

Thanks!

Appreciate that. 


-Original Message-
From: t.n.a. [mailto:[EMAIL PROTECTED] 
Sent: 08 November 2005 11:54

To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

Carl Olivier wrote:



Hi.

Thanks for the info - but I was actually wonderin about the whole WAP 
gateway - generating the different presentation layers is no problem - 
however the protocol handler?  Maybe I should go do more reading - but 
I assume a WAP gateway is required in order to process the WAP stacck 
to HTTP stack and send to the web server?





I see your point. I'll forward your query to my colleagues and see what they
have to say about it.

t.n.a.


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



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





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



RE: Tomcat WAP/WML

2005-11-08 Thread Carl Olivier
Thanks!

Appreciate that. 

-Original Message-
From: t.n.a. [mailto:[EMAIL PROTECTED] 
Sent: 08 November 2005 11:54
To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

Carl Olivier wrote:

>Hi.
>
>Thanks for the info - but I was actually wonderin about the whole WAP 
>gateway - generating the different presentation layers is no problem - 
>however the protocol handler?  Maybe I should go do more reading - but 
>I assume a WAP gateway is required in order to process the WAP stacck 
>to HTTP stack and send to the web server?
>  
>
I see your point. I'll forward your query to my colleagues and see what they
have to say about it.

t.n.a.


-
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 WAP/WML

2005-11-08 Thread t.n.a.

Carl Olivier wrote:


Hi.

Thanks for the info - but I was actually wonderin about the whole WAP
gateway - generating the different presentation layers is no problem -
however the protocol handler?  Maybe I should go do more reading - but I
assume a WAP gateway is required in order to process the WAP stacck to HTTP
stack and send to the web server?
 

I see your point. I'll forward your query to my colleagues and see what 
they have to say about it.


t.n.a.


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



RE: Tomcat WAP/WML

2005-11-08 Thread Carl Olivier
Hi.

Thanks for the info - but I was actually wonderin about the whole WAP
gateway - generating the different presentation layers is no problem -
however the protocol handler?  Maybe I should go do more reading - but I
assume a WAP gateway is required in order to process the WAP stacck to HTTP
stack and send to the web server?

Thanks.

Carl 

-Original Message-
From: t.n.a. [mailto:[EMAIL PROTECTED] 
Sent: 08 November 2005 11:44
To: Tomcat Users List
Subject: Re: Tomcat WAP/WML

Carl Olivier wrote:

>Greetings
>
>This may be a very stupid question, but I am busy researching serving 
>WML content to WAP devices - from my existing Tomcat (5.0.28) server - 
>from existing web apps - as the content is shared - standard HTML/HTTP 
>via JSP - would like to provide a WAP/WML access point to the same
site/content.
>
>Has anyone had experience with this - and who would be able to point me 
>in the right direction?
>  
>
I've built a small WAP app running on tomcat a couple of months ago. A
couple of my collegues have done just what you sad, built a site that could
serve either HTML or WML, but using PHP.
I don't know what exactly you would like to know more about? Using the same
content for both presentation layers? That shouldn't be too
difficult: generate your docs as XML and build a couple of XSLT
adapters: one for HTML and one for WML.

Regards,
t.n.a.

-
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 WAP/WML

2005-11-08 Thread t.n.a.

Carl Olivier wrote:


Greetings

This may be a very stupid question, but I am busy researching serving WML
content to WAP devices - from my existing Tomcat (5.0.28) server - from
existing web apps - as the content is shared - standard HTML/HTTP via JSP -
would like to provide a WAP/WML access point to the same site/content.

Has anyone had experience with this - and who would be able to point me in
the right direction?
 

I've built a small WAP app running on tomcat a couple of months ago. A 
couple of my collegues have done just what you sad, built a site that 
could serve either HTML or WML, but using PHP.
I don't know what exactly you would like to know more about? Using the 
same content for both presentation layers? That shouldn't be too 
difficult: generate your docs as XML and build a couple of XSLT 
adapters: one for HTML and one for WML.


Regards,
t.n.a.

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



AW: ANT build + Read Password

2005-11-08 Thread Marcus Franke
Hello,

Since when are passwords in tomcat-users.xml stored in hashed
form?

Or how can I activate this, as in my tomcat-users.xml they are
stored in clear text form.


Marcus
-Ursprüngliche Nachricht-
Von: Nehal Sangoi [mailto:[EMAIL PROTECTED]
Gesendet: Di 11/8/2005 9:33
An: 'Tomcat Users List'
Betreff: RE: ANT build + Read Password
 
Hi Mark,

Your concern is correct. Even i was thinking the same.

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 08, 2005 12:39 AM
To: Tomcat Users List
Subject: Re: ANT build + Read Password


Nehal Sangoi wrote:
> Hi All,
>
> I want my ANT Build script be reading manager-deployer's password (stored
in
> "tomcat-users.xml") from mentioned file instead of i do supply clear text
> password while deployment. How can i configure this in ANT script?
>
> I am aware of the option of supplying password at the prompt in ANT. But i
> want ant script be reading it automatically from the configuration file
that
> would have encrypted password.

If the password is hashed in the tomcat-users.xml, how is Ant going to
unhash it to present it to Tomcat? Equally, if it is stored anywhere
in encrypted form, how will Ant decrypt it?

Mark




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



Tomcat WAP/WML

2005-11-08 Thread Carl Olivier
Greetings

This may be a very stupid question, but I am busy researching serving WML
content to WAP devices - from my existing Tomcat (5.0.28) server - from
existing web apps - as the content is shared - standard HTML/HTTP via JSP -
would like to provide a WAP/WML access point to the same site/content.

Has anyone had experience with this - and who would be able to point me in
the right direction?

Thanks in advance,

Carl



session replication errors

2005-11-08 Thread Olve Hansen
Hi,
First I must congratulate on the improvements of the clustering docs!
Now I don't have to guess nearly as much as before when trying to set up
clustering. :-)

But I still have some troubles regarding clustering.
We have a webapp clustered over three tomcats, all on the same machine,
load balanced by mod_jk in an Apache frontend, using sticky lb, session
replication by fastasyncqueue. 

It seems OK - no session dropouts in sticky mode, we can turn on and off
tomcats as we please.

But, in the logs, we see numerous:
SEVERE: TCP Worker thread in cluster caught 'java.io.IOException:
Connection reset by peer' closing channel
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
at sun.nio.ch.IOUtil.read(IOUtil.java:206)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
at
o.a.c.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125)
at
o.a.c.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69)

I am trying to track these down, as they are marked as SEVERE. The
tomcats sits on a Red Hat Linux server. It is configured with two
networks, one open to the world, and firewalled, the other is internal,
and is fully open. The internal net is used for clustering, db-access,
and mod_jk connections.

How severe are these? Can they be a result of two near concurrent
requests, and the second request cancels the serialisation of the first
session object? If not, where should I start to look?

Log files and cluster setup follows:

cluster part of server.xml (only tcpListenPort differs among our
configurations):
=





















Logs demonstrating the steps toward exceptions:
=
###Request #1, trying to access  home page, redirected to login
page:

###Access log from apache:
i.p.add.ress - - [07/Nov/2005:11:11:00 +0100] "GET /npweb/t-app
HTTP/1.1" 302 -
i.p.add.ress - - [07/Nov/2005:11:11:00 +0100]
"GET /npweb/t-app?service=external/bitecore.loginPage HTTP/1.1" 200 4633
i.p.add.ress - - [07/Nov/2005:11:11:00 +0100] "GET /favicon.ico
HTTP/1.1" 404 288




###Tail from tomcat logs:
==> tomcat1/logs/catalina.out <==
Nov 7, 2005 11:11:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
logSendMessage
INFO: SEND Nov 7, 2005:11:11:00 AM 1 -
B07DBFF28ACB2BAC0F28FE9DAC65A69B.bserv2tc11131358260068
Nov 7, 2005 11:11:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
logSendMessage
INFO: SEND Nov 7, 2005:11:11:00 AM 0 -
B07DBFF28ACB2BAC0F28FE9DAC65A69B.bserv2tc11131358260072
[np-norway] INFO [TP-Processor29]
BiteEngine.registerTestFormatConfigs(91) | registering all test format
configs
[np-norway] INFO [TP-Processor29]
BiteEngine.registerTestFormatConfigs(108) | TOTALLY REGISTERED 12 TEST
FORMAT CONFIGS IN SYSTEM
Nov 7, 2005 11:11:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
logSendMessage
INFO: SEND Nov 7, 2005:11:11:00 AM 0 -
B07DBFF28ACB2BAC0F28FE9DAC65A69B.bserv2tc11131358260109

==> tomcat2/logs/catalina.out <==
Nov 7, 2005 11:11:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
logReceiveMessage
INFO: RECEIVE Nov 7, 2005:11:11:00 AM 0 192.168.5.112:4,001
B07DBFF28ACB2BAC0F28FE9DAC65A69B.bserv2tc11131358260068 true
Nov 7, 2005 11:11:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
logReceiveMessage
INFO: RECEIVE Nov 7, 2005:11:11:00 AM 1 192.168.5.112:4,001
B07DBFF28ACB2BAC0F28FE9DAC65A69B.bserv2tc11131358260072 true
Nov 7, 2005 11:11:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
logReceiveMessage
INFO: RECEIVE Nov 7, 2005:11:11:00 AM 0 192.168.5.112:4,001
B07DBFF28ACB2BAC0F28FE9DAC65A69B.bserv2tc11131358260109 true

==> tomcat3/logs/catalina.out <==
Nov 7, 2005 11:11:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
logReceiveMessage
INFO: RECEIVE Nov 7, 2005:11:11:00 AM 0 192.168.5.112:4,001
B07DBFF28ACB2BAC0F28FE9DAC65A69B.bserv2tc11131358260068 true
Nov 7, 2005 11:11:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
logReceiveMessage
INFO: RECEIVE Nov 7, 2005:11:11:00 AM 1 192.168.5.112:4,001
B07DBFF28ACB2BAC0F28FE9DAC65A69B.bserv2tc11131358260072 true
Nov 7, 2005 11:11:00 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
logReceiveMessage
INFO: RECEIVE Nov 7, 2005:11:11:00 AM 1 192.168.5.112:4,001
B07DBFF28ACB2BAC0F28FE9DAC65A69B.bserv2tc11131358260109 true


###Request #2 (after login):

###Access log from apache:
i.p.add.ress - - [07/Nov/2005:11:12:03 +0100]
"POST /npweb/j_acegi_security_check HTTP/1.1" 302 -
i.p.add.ress - - [07/Nov/2005:11:12:03 +0100] "GET /npweb/t-app
HTTP/1.1" 200 6454
i.p.add.ress - - [07/Nov/2005:11:12:05 +0100] "GET /favicon.ico
HTTP/1.1" 404 288

###Tail from tomcat logs:
==> tomcat1/logs/catalina.out <==
[np-norway] INFO [TP-Pr

Re: [ANN] Apache Tomcat mod_jk 1.2.15 Web Server Connector released

2005-11-08 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi,

Great work!

I just checked out the changelog for this. could you tell me what this
patch fixed:

35298: Multiple JK/ISAPI redirectors on a single IIS site are not
supported Patch provided by Tim Whittington. (mturk)

Can I now run multiple configurations of ISAPI redierectors in one IIS
server ? How is the configuration different ? (for example how can I
tell one redirector to use another uriworkermap.properties?)

thanx
- [EMAIL PROTECTED]



Mladen Turk wrote:
> The Apache Tomcat team is pleased to announce the release of
> version 1.2.15 of the Apache Tomcat mod_jk web server connector.
> 
> Tomcat is the reference implementation of a web application server
> which implements the Java Servlet and JavaServer Pages specifications.
> 
> mod_jk is a connector which allows a web server such as Apache HTTPD
> to act as a front end to the Tomcat web application server.
> This version fixes a number of minor bugs.
> 
> See http://tomcat.apache.org/connectors-doc/changelog.html
> for a complete list of changes.
> 
> Source distribtions can be downloaded from an
> Apache Software Foundation mirror at:
> (they are named jakarta-tomcat-connectors-1.2.15-src.tar.gz
>  and jakarta-tomcat-connectors-1.2.15-src.zip)
> 
> http://tomcat.apache.org/download-connectors.cgi
> 
> Binary distributions for a number of different operating systems and
> web servers can be downloaded from an
> Apache Software Foundation mirror at:
> 
> http://tomcat.apache.org/download-connectors.cgi
> 
> Documentation for using mod_jk with Tomcat 3.3, 4.1, 5.0 and 5.5
> can be found at:
> 
> http://tomcat.apache.org/connectors-doc/
> 
> The Apache Tomcat team.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDcH0b19KgIQihNwgRAqeMAKC49Ml3ccdmK+e+cq9Hxf8quuvfaQCgq9f2
1k/37ubBypr8FlW3w53qq6A=
=twbZ
-END PGP SIGNATURE-

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



[ANN] Apache Tomcat mod_jk 1.2.15 Web Server Connector released

2005-11-08 Thread Mladen Turk

The Apache Tomcat team is pleased to announce the release of
version 1.2.15 of the Apache Tomcat mod_jk web server connector.

Tomcat is the reference implementation of a web application server
which implements the Java Servlet and JavaServer Pages specifications.

mod_jk is a connector which allows a web server such as Apache HTTPD
to act as a front end to the Tomcat web application server.
This version fixes a number of minor bugs.

See http://tomcat.apache.org/connectors-doc/changelog.html
for a complete list of changes.

Source distribtions can be downloaded from an
Apache Software Foundation mirror at:
(they are named jakarta-tomcat-connectors-1.2.15-src.tar.gz
 and jakarta-tomcat-connectors-1.2.15-src.zip)

http://tomcat.apache.org/download-connectors.cgi

Binary distributions for a number of different operating systems and
web servers can be downloaded from an
Apache Software Foundation mirror at:

http://tomcat.apache.org/download-connectors.cgi

Documentation for using mod_jk with Tomcat 3.3, 4.1, 5.0 and 5.5
can be found at:

http://tomcat.apache.org/connectors-doc/

The Apache Tomcat team.

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



SAP Jco with Tomcat Pooling

2005-11-08 Thread KEREM ERKAN
Hi people,

Is there anyone here who did a succesful SAP Jco connection pool with
Tomcat? If possible can someone send some insight about it?

Cheers,

Kerem


RE: ANT build + Read Password

2005-11-08 Thread Nehal Sangoi
Hi Mark,

Your concern is correct. Even i was thinking the same.

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 08, 2005 12:39 AM
To: Tomcat Users List
Subject: Re: ANT build + Read Password


Nehal Sangoi wrote:
> Hi All,
>
> I want my ANT Build script be reading manager-deployer's password (stored
in
> "tomcat-users.xml") from mentioned file instead of i do supply clear text
> password while deployment. How can i configure this in ANT script?
>
> I am aware of the option of supplying password at the prompt in ANT. But i
> want ant script be reading it automatically from the configuration file
that
> would have encrypted password.

If the password is hashed in the tomcat-users.xml, how is Ant going to
unhash it to present it to Tomcat? Equally, if it is stored anywhere
in encrypted form, how will Ant decrypt it?

Mark




-
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: Use of JSF view in welcome file list

2005-11-08 Thread Nikola Milutinovic

Tim Dean wrote:


Hello,

I am trying to configure a welcome file list in my Tomcat-deployed   
web app so that a Java Server Faces (JSF) view is used as the welcome  
file. My web.xml file contains the following:



main.faces


As well as the following JSF servlet configurations:


FacesServlet
javax.faces.webapp.FacesServlet



FacesServlet
*.faces


I have been unable to get this working no matter what I have tried.  
Whenever I request a directory within the web application's context,  
Tomcat shows a directory listing instead of the JSF view I've  
identified in the welcome file list. 



Well, the problem is in the fact that a "list of welcome files" is just 
that, a list of FILES. So, when a URL is requested which is a directory, 
a list of "welcome" files will be looked up in that dir, in the given order.


What you gave was an incomplete Servlet URL mapping and that simply will 
not do for a welcome file list.


Perhaps you could try to setup a different mapping, like


   FacesServlet
   */
   

This might clash with directory URL mapping, which should be more 
internal to TC. Or is it handled by the Default Servlet? In that case, 
it would be OK, since this mapping is less general than "*".


Also, note that FacesServlet might not handle this properly, expecting 
the URL to point to some file/path/identifier (I know how Struts would 
see it...) and this might require additional setup in JSF config file 
(mapping that URL to appropriate component).


Nix.

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



RE: JAAS implementation with URL callback

2005-11-08 Thread Mark Benussi
Write your own CallbackHandler and LoginModule.

-Original Message-
From: Pat Young [mailto:[EMAIL PROTECTED] 
Sent: 07 November 2005 20:01
To: 'Tomcat Users List'
Subject: JAAS implementation with URL callback

Does anyone know of an available JAAS implementation
that comes with a URL callback?  The Catalina
implementation only comes with a name and password
callback, but there is no way to get to the URL.

Thanks,
Pat Young




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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