tomcat 5.5, getSession() returns null

2010-09-20 Thread Roman Makurin
Hi all!

We have clustering setup with 2 tomcat 5.5 instances,
and in some cases(eg when clients browser
disable cookies support) behaviour of request.getSession() is
really strange. According to api documentation this
call should always return session object but
it return null. 

All URLs r encoded for correct session information, but everytime
user get other page new session id supplied.

Also this situation reproducable only on clustered setup, with
disabled cookies on client side(browser). Everything is ok with
single tomcat instance.

any advise ?

PS: its my first post here, so be patient please :)
PPS: im not an admin of this clustering setup, so not so
much information available.

-- 
If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...


pgpfaPAfMgNbZ.pgp
Description: PGP signature


RE: [OT] Tomcat on Linux

2010-09-20 Thread Tommy Pham
Thanks everyone for your input.  I was hoping to get a better understanding of 
the differences between the flavors of Linux and how well and easy for me to 
run Tomcat.  I guess I'll have to spend more time on various flavors.

Thanks again,
Tommy


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Tomcat on Linux

2010-09-20 Thread Wesley Acheson
Tommy,

Most linux's will automatically install tomcat for you.

I advise against fedora/red hat as the selinux part is difficult to
configure. However it may add some security if you want it.

Okay if you need help chosing a linux for tomcat, you should consider
the following questions. Would you want to use a graphical console or
a text based shell? Is this a production environment? Will you need
support from the vendor?  What package manager do they use etc.

How much of the configuration process are you wanting the OS to do? I
think most will set it up and install it as a service. On Ubuntu I
found it very easy to install tomcat as a service.
https://help.ubuntu.com/9.04/serverguide/C/tomcat.html but I'm
confortable editing tomcats configuration by hand.

Its really not that difficult to install tomcat yourself though.

Regards,

Wes


On Mon, Sep 20, 2010 at 10:51 AM, Tommy Pham tommy...@gmail.com wrote:
 Thanks everyone for your input.  I was hoping to get a better understanding 
 of the differences between the flavors of Linux and how well and easy for me 
 to run Tomcat.  I guess I'll have to spend more time on various flavors.

 Thanks again,
 Tommy


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Tomcat on Linux

2010-09-20 Thread André Warnier

Tommy Pham wrote:

Thanks everyone for your input.  I was hoping to get a better understanding of 
the differences between the flavors of Linux and how well and easy for me to 
run Tomcat.  I guess I'll have to spend more time on various flavors.

I don't know if the point came across clearly : basically, inasmuch as Tomcat or Tomcat 
applications are concerned, *there is no difference*.


Tomcat is a Java application, and the main point of Java is that Java applications run 
inside a Java Virtual Machine (JVM), which provides a common environment to the Java 
applications that run inside it, independently of the platform.
So whether you run Tomcat inside a JVM itself running under Windows, or Solaris, or Linux 
or whatever, should not make a difference for Tomcat.


The differences you may find will be due to other aspects, such as :
- the underlying hardware (faster or slower CPU, more or less RAM, disk 
speed,..)
- the load of the machine
- the specific versions of the JVM and Tomcat that are easily available for the particular 
platform (different OS'es and different distributions of the same OS may provide older or 
newer versions as standard packages)

- the ease with which applications and services are managed under different 
platforms
- your own level of comfort when dealing with any specific platform
- the way in which the applications packagers have put together their standard software 
packages for each platform, and the ease with which these packages can be 
installed/configured/updated/de-installed

- what you want to do with that Tomcat

Depending on your own particular circumstances, one or the other of these platforms will 
be a better fit for you.  But there is no one size fits all solution, and nobody here 
but you knows your exact circumstances, so yes, you will have to find that out by yourself.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Is there any way I could share a session b/w Jsp(Tomcat) php(apache)??!

2010-09-20 Thread mani2604

Well I do have a UMN mapserver php app which runs on apache   we do have
sessions to store latitudes  longitudes to perform queries... Now the thing
it somehow need to be integrated with Tomcat so that the client inputs the
lat  long in the jsp page and I need to retrieve them in my php application
page... Any ideas regarding this?!!

i sort of integrated the apache  tomcat using mod_jk process but that was
of no assistance as I was unsure of wat to do next...

sort of trying on the php/java bridges but that was explained more on the
lines of same domains...


Thanks..
-- 
View this message in context: 
http://old.nabble.com/Is-there-any-way-I-could-share-a-session-b-w-Jsp%28Tomcat%29---php%28apache%29--%21-tp29758316p29758316.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Tomcat on Linux

2010-09-20 Thread Peter Crowther
On 20 September 2010 09:51, Tommy Pham tommy...@gmail.com wrote:

 Thanks everyone for your input.  I was hoping to get a better understanding
 of the differences between the flavors of Linux and how well and easy for me
 to run Tomcat.  I guess I'll have to spend more time on various flavors.

 They all work.  Use the version you already know.  If you don't already
know Linux, use the operating system you do know in order to run Tomcat.
Your time cost in learning a new OS or Linux variant will vastly outweigh
any other savings you might make.

- Peter


Re: Is there any way I could share a session b/w Jsp(Tomcat) php(apache)??!

2010-09-20 Thread Pid
On 20/09/2010 11:51, mani2604 wrote:
 
 Well I do have a UMN mapserver php app which runs on apache   we do have
 sessions to store latitudes  longitudes to perform queries... Now the thing
 it somehow need to be integrated with Tomcat so that the client inputs the
 lat  long in the jsp page and I need to retrieve them in my php application
 page... Any ideas regarding this?!!

Persist it in a DB.


p

 i sort of integrated the apache  tomcat using mod_jk process but that was
 of no assistance as I was unsure of wat to do next...
 
 sort of trying on the php/java bridges but that was explained more on the
 lines of same domains...
 
 
 Thanks..



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Is there any way I could share a session b/w Jsp(Tomcat) php(apache)??!

2010-09-20 Thread Hassan Schroeder
On Mon, Sep 20, 2010 at 3:51 AM, mani2604 mani2...@gmail.com wrote:

 Well I do have a UMN mapserver php app which runs on apache   we do have
 sessions to store latitudes  longitudes to perform queries... Now the thing
 it somehow need to be integrated with Tomcat so that the client inputs the
 lat  long in the jsp page and I need to retrieve them in my php application
 page... Any ideas regarding this?!!

In the absence of more detail, I would set the PHP part up as a web
service and just call it from the Java side. YMMV.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Michael Stockhausen
Hello,

I have create two Servlets (LoginServlet  UserListServlet).
I'm using a JSP for the User credentials. When you press the login-button,
the LoginServlet is called.

I would like to call the UserListServlet, when the username and password are
correct.

How can I call UserListServle from the doGet(...) function of the
LoginServlet. I would like to call a Servlet from another servlet.

Where can I find some examples?

Thanks,
Michael


Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Laurence L Leff

- Original Message -
From: Michael Stockhausen prof.dr.moe...@googlemail.com

I have create two Servlets (LoginServlet  UserListServlet).
I'm using a JSP for the User credentials. When you press the login-button,
the LoginServlet is called.

I would like to call the UserListServlet, when the username and password are
correct.

Where can I find some examples?

Thanks,
Michael
 I teach this in my Graphical User Interface Programming class:  
(http://www.wiu.edu/users/mflll/CS412g/n3x.xml.pdf)

  URL url = new URL(http://toolman.wiu.edu:14096/servlet/OurData;);
  InputStream openStream = url.openStream();
  InputStreamReader r = new InputStreamReader(openStream);
  char buf[] = new char[1];
  r.read(buf,0,1);

One just starts the servlet by invoking it with a URL and reading from the  
stream.

I may have seen this in the Servlet Programming  by Jason Hunter and William 
Crawford.

Dr. Laurence Leff  Western Illinois University, Macomb IL 61455 ||(309) 298-1315
Stipes 447 Assoc. Prof. of Computer Sci. Pager: 309-367-0787 FAX: 309-298-2302 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Ronald Klop

You can use the RequestDispatcher.

RequestDispatcher dispatcher = request.getRequestDispatcher(/userlist);
dispatcher.forward(request, response);

Google gives you a lot of examples.

Ronald.



Op maandag, 20 september 2010 16:47 schreef Michael Stockhausen 
prof.dr.moe...@googlemail.com:


 


Hello,

I have create two Servlets (LoginServlet  UserListServlet).
I'm using a JSP for the User credentials. When you press the login-button,
the LoginServlet is called.

I would like to call the UserListServlet, when the username and password are
correct.

How can I call UserListServle from the doGet(...) function of the
LoginServlet. I would like to call a Servlet from another servlet.

Where can I find some examples?

Thanks,
Michael








SAML 2.0 support ?

2010-09-20 Thread Lavabit
Hi,

I try to find out how good SAML support in Tomcat is.

I would like to know if any of you has ever succesfully tested JBoss against a
certified SAML 2.0 Identity Provider ?

Thank you very much.

Pierre


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat start error java.lang.reflect.InvocationTargetException

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rashed,

On 9/18/2010 6:47 AM, hellian wrote:
 Thanks..you missed the caused by part, it's in the message I posted. Anyway
 have a look on it given below:
 
 Caused by: java.lang.AbstractMethodError
 at
 org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:913)

Just go ahead and post the entire log file. There should still be more...

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

iEYEARECAAYFAkyXewYACgkQ9CaO5/Lv0PAK1wCdHW8CaxsmkItCq+PqOM6yE/Ra
E4cAoLNcRpfEu2/JBViCpO72p2qr+qR6
=rMDg
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat 5.5, getSession() returns null

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Roman,

On 9/20/2010 3:27 AM, Roman Makurin wrote:
 We have clustering setup with 2 tomcat 5.5 instances,

What exact version of Tomcat 5.5? Please post your clustering
configuration, including relevant information from web.xml.
Specifically, are you using sticky sessions? Distributable sessions?
What front-end are you using for clustering? Apache httpd or something else?

 and in some cases(eg when clients browser
 disable cookies support) behaviour of request.getSession() is
 really strange. According to api documentation this
 call should always return session object but
 it return null. 

Does this only happen when the client doesn't support cookies?

What does your code look like that tried to get the session?

 All URLs r encoded for correct session information, but everytime
 user get other page new session id supplied.

Can you be more specific? Is the server generating a new session id for
every request? Please show us how you encode the URLs going back to the
client.

 Also this situation reproducable only on clustered setup, with
 disabled cookies on client side(browser). Everything is ok with
 single tomcat instance.

Good to know.

 any advise ?
 
 PS: its my first post here, so be patient please :)
 PPS: im not an admin of this clustering setup, so not so
 much information available.

You'll need to get that information for us to be helpful.

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

iEYEARECAAYFAkyXfiwACgkQ9CaO5/Lv0PCHSgCdG6u5AnBIimGZWFdfZ+sYhQBI
/JMAn0DD6R7fi34KmmdrUMTILLqk/NNA
=V6My
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Is there any way I could share a session b/w Jsp(Tomcat) php(apache)??!

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mani,

On 9/20/2010 6:51 AM, mani2604 wrote:
 Well I do have a UMN mapserver php app which runs on apache   we do have
 sessions to store latitudes  longitudes to perform queries... Now the thing
 it somehow need to be integrated with Tomcat so that the client inputs the
 lat  long in the jsp page and I need to retrieve them in my php application
 page... Any ideas regarding this?!!

You could make a call from your Java webapp to poke the lat/lon into the
PHP site using a special URL used only for that purpose. You'd need to
have the session id for the PHP app available in the Java app in advance.

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

iEYEARECAAYFAkyXfvIACgkQ9CaO5/Lv0PC9kACfeUDDCo0RSAeixED2KfSz76V9
Wl8AnidQ1KPYndFQJrhVIuJO+DMDjZHK
=gvwf
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ronald,

On 9/20/2010 11:07 AM, Ronald Klop wrote:
 You can use the RequestDispatcher.
 
 RequestDispatcher dispatcher = request.getRequestDispatcher(/userlist);
 dispatcher.forward(request, response);

Of course, you can also issue a redirect to the client:

response.sendRedirect(...)

The advantage of issuing a redirect is that the client will not have to
re-authenticate if the user then RELOADs the resulting page.

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

iEYEARECAAYFAkyXf3gACgkQ9CaO5/Lv0PDRmQCfSKPGx2EbXA8dA0WlcbNee8M9
/YYAoJ6iHtoM5pYzteMy3DMHzH07OCno
=bBF7
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Leo Donahue - PLANDEVX


-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: Howto: call a Servlet from another Servlet (Example)?!

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ronald,

On 9/20/2010 11:07 AM, Ronald Klop wrote:
 You can use the RequestDispatcher.

 RequestDispatcher dispatcher =
request.getRequestDispatcher(/userlist);
 dispatcher.forward(request, response);

Of course, you can also issue a redirect to the client:

response.sendRedirect(...)

The advantage of issuing a redirect is that the client will not have to
re-authenticate if the user then RELOADs the resulting page.

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

iEYEARECAAYFAkyXf3gACgkQ9CaO5/Lv0PDRmQCfSKPGx2EbXA8dA0WlcbNee8M9
/YYAoJ6iHtoM5pYzteMy3DMHzH07OCno
=bBF7
-END PGP SIGNATURE-

I thought that if you were making a request to a UserListServlet and it was 
restricted to authentication, assuming you use Form Authentication and 
structure your login form correctly, you don't have to worry about calling 
LoginServlet or using the requestDispatcher?  Doesn't Tomcat handle this for 
you?  What am I missing here?

In the OP question, to what does the LoginServlet authenticate you?  The 
LoginServlet?  


HttpServletRequest.getParameter and PUT requests

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

After reading a post on the cocoon-user mailing list
(http://markmail.org/message/wzsgt4trlvztt6cr), I was reminded of our
own discussion a few months back on this subject
(http://markmail.org/message/dxgvu6fhcvp22xbo).

I have decided to file an enhancement request and write a patch.
Comments are definitely welcome.

https://issues.apache.org/bugzilla/show_bug.cgi?id=49964

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

iEYEARECAAYFAkyXn/EACgkQ9CaO5/Lv0PDHIQCgqyWEJo2rjQSGhe7gjYttFLvb
7aAAn3pHE4EWGdQBb31DnjrUCK9yM/vH
=UDUP
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Leo,

On 9/20/2010 12:55 PM, Leo Donahue - PLANDEVX wrote:
 I thought that if you were making a request to a UserListServlet and
 it was restricted to authentication, assuming you use Form
 Authentication and structure your login form correctly, you don't
 have to worry about calling LoginServlet or using the
 requestDispatcher?  Doesn't Tomcat handle this for you?  What am I
 missing here?

 In the OP question, to what does the LoginServlet authenticate you?
 The LoginServlet?

- From my reading, the OP is doing his own authentication rather than
using container-managed authentication.

If he /is/ using container-managed authentication, then he's using it
incorrectly :)

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

iEYEARECAAYFAkyXpakACgkQ9CaO5/Lv0PCQ1QCginz5lDgSDCX/U6ek3oEQXvgg
pdwAoKP12wnSztLoujxoj7rvNY8N4u/3
=r7fJ
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

I just got the most recent trunk for 6.0.x and I'm having trouble
compiling it.

First, I just tried ant compile and I got this message:


BUILD FAILED
/home/.../apache-tomcat-6.0.x/trunk/build.xml:149: destination directory
/home/.../apache-tomcat-6.0.x/trunk/output/classes does not exist or
is not a directory


That's pretty obvious how to fix that, but it would be nice if the build
was capable of making its own directories. :)

After creating that directory, I tried again:

$ ant compile

[...]

[javac]
/home/cschultz/projects/non-chadis/apache-tomcat-6.0.x/trunk/java/org/apache/jasper/compiler/JDTCompiler.java:418:
cannot find symbol
[javac] symbol  : class ICompilationUnit
[javac] location: class org.apache.jasper.compiler.JDTCompiler
[javac] new ICompilationUnit[classNames.length];
[javac] ^
[javac]
/home/.../apache-tomcat-6.0.x/trunk/java/org/apache/jasper/compiler/JDTCompiler.java:423:
org.apache.jasper.compiler.Compiler is abstract; cannot be instantiated
[javac] Compiler compiler = new Compiler(env,
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 80 errors

BUILD FAILED
/home/.../apache-tomcat-6.0.x/trunk/build.xml:149: Compile failed; see
the compiler error output for details.

Hmm... time to read BUILDING.txt:


(2.2) Building

* Go to that directory, and do:

cd ${tomcat.source}
ant download


Okay:

$ ant download
Buildfile: /home/.../apache-tomcat-6.0.x/trunk/build.xml

build-manifests:
 [copy] Copying 10 files to
/home/.../apache-tomcat-6.0.x/trunk/output/manifests

download:

proxyflags:

setproxy:

testexist:
 [echo] Testing  for
/usr/share/java/tomcat-native-1.1.20/tomcat-native.tar.gz

downloadfile:

BUILD FAILED
/home/.../apache-tomcat-6.0.x/trunk/build.xml:699: The following error
occurred while executing this line:
/home/.../apache-tomcat-6.0.x/trunk/build.xml:691: Directory
/usr/share/java/tomcat-native-1.1.20 creation was not successful for an
unknown reason

Total time: 1 second

I need root access to build Tomcat? Boo.

I know my way around ant, so let's see. If I re-define base.path to
be, say, ./downloads, I should be good to go:

$ ant -Dbase.path=/home/.../apache-tomcat-6.0.x/trunk/downloads download

[works!]

Then,

$ ant -Dbase.path=/home/.../apache-tomcat-6.0.x/trunk/downloads compile

[works!]

So, I have a couple of questions/gripes:

1. Why does compile not know how to create it's own destination directory?

2. Why doesn't base.path default to something /inside/ the working
copy of the code? I realize that sharing a whole bunch of these
dependencies is a great thing when you're working with a lot of
projects, but I'm guessing that most people frequently working on Tomcat
know how to configure the build to share these deps, and that most other
people have no idea what is going on.

Can we change these two things?

I haven't tried Tomcat 7.0.x, but Mark said at some point that the build
has been (further) simplified, so I'm hoping it will be better.

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

iEYEARECAAYFAkyXpxkACgkQ9CaO5/Lv0PAHDwCgoSB811qGnM17ebVsHmVXExWr
ddcAnRpFcg8jrKvEE3LQ2/bnVScogagR
=59p4
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Leo Donahue - PLANDEVX
Chris,

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: Howto: call a Servlet from another Servlet (Example)?!

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

- From my reading, the OP is doing his own authentication rather than
using container-managed authentication.

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

iEYEARECAAYFAkyXpakACgkQ9CaO5/Lv0PCQ1QCginz5lDgSDCX/U6ek3oEQXvgg
pdwAoKP12wnSztLoujxoj7rvNY8N4u/3
=r7fJ
-END PGP SIGNATURE-

I thought rolling your own authentication, rather than using container-managed 
security for authentication, is a bad idea?  Is that just rhetoric?


RE: Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
 Subject: Compiling Tomcat 6.0.x trunk

 I just got the most recent trunk for 6.0.x and I'm 
 having trouble compiling it.

No problems here, using Tortoise SVN, 6.0-trunk, JDK 6u21, ant 1.8.1, on Vista 
64.  Following the BUILDING.txt instructions, I did:

ant download
ant

Using other ant targets without doing those first is very likely to cause 
problems.

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



Re: Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 9/20/2010 3:13 PM, Caldarale, Charles R wrote:
 From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
 Subject: Compiling Tomcat 6.0.x trunk
 
 I just got the most recent trunk for 6.0.x and I'm 
 having trouble compiling it.
 
 No problems here, using Tortoise SVN, 6.0-trunk, JDK 6u21, ant 1.8.1, on 
 Vista 64.

I'm on Linux, and it appears that base.path defaults to this:

base.path=/usr/share/java

I can see that the following lines in build.properties.default are
commented-out:

#base.path=C:/path/to/the/repository
#base.path=/usr/local

Do you have a build.properties file in that directory that overrides the
default setting?

 Using other ant targets without doing those first is very likely to cause 
 problems.

Yup.

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

iEYEARECAAYFAkyXtp0ACgkQ9CaO5/Lv0PDILwCgkmuk1tbiHIUyLGBElN0dMVqy
eDUAoKS05s1iDyPndkoESQPxULbTY5U0
=xf9z
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Leo,

On 9/20/2010 3:05 PM, Leo Donahue - PLANDEVX wrote:
 Chris,
 
 -Original Message- From: Christopher Schultz
 [mailto:ch...@christopherschultz.net] Subject: Re: Howto: call a
 Servlet from another Servlet (Example)?!
 
 - From my reading, the OP is doing his own authentication rather
 than using container-managed authentication.
 
 -chris

 I thought rolling your own authentication, rather than using
 container-managed security for authentication, is a bad idea?  Is
 that just rhetoric?

That's a matter of perspective.

I'd recommend using container-managed authentication and authorization
to pretty much everybody. Or, failing that, at least use a library meant
for doing such things, like ACEGI or securityfilter: the folks in charge
of those projects have taken care to be spec-compliant (to the extent
possible and/or desired) and properly test their products to ensure that
they are safe.

Rolling your own authentication mechanism often leads to an insecure
system. It's also usually not necessary: container-managed security
works very well for most people, and the new servlet 3.0 changes to
authentication even (I believe) allow the webapp to request
authentication under certain other circumstances.

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

iEYEARECAAYFAkyXt/QACgkQ9CaO5/Lv0PBbEgCffmnSHPKJ12KCZmspuv0CdcWY
H5gAoLm4Yrwym1elDFvmFs+y0yta6+8P
=no35
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
 Subject: Re: Compiling Tomcat 6.0.x trunk

 I'm on Linux, and it appears that base.path defaults to this:
 base.path=/usr/share/java

As it does on Windows.  I already had a C:\usr\share\java, probably from 
previous builds, so I wasn't starting from a completely clean environment.

 Do you have a build.properties file in that directory that 
 overrides the default setting?

No.

I'll start over with a clean system and see what happens.

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




Re: [OT] Tomcat on Linux

2010-09-20 Thread Pid
On 20/09/2010 10:10, Wesley Acheson wrote:
 Tommy,
 
 Most linux's will automatically install tomcat for you.

In the form of the not-very-popular-on-the-tomcat-users-list
repackaged version.

 Okay if you need help chosing a linux for tomcat, you should consider
 the following questions. Would you want to use a graphical console or
 a text based shell? Is this a production environment? Will you need
 support from the vendor?  What package manager do they use etc.
 
 How much of the configuration process are you wanting the OS to do? I
 think most will set it up and install it as a service. On Ubuntu I
 found it very easy to install tomcat as a service.
 https://help.ubuntu.com/9.04/serverguide/C/tomcat.html but I'm
 confortable editing tomcats configuration by hand.
 
 Its really not that difficult to install tomcat yourself though.

1. Download tar.gz
2. Unpack tar.gz
3. Run Tomcat
4. WIN*


p


* You can omit step 4, if that's too many steps.


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


RE: Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Caldarale, Charles R
 From: Caldarale, Charles R 
 Subject: RE: Compiling Tomcat 6.0.x trunk

 I'll start over with a clean system and see what happens.

Just tried it again after removing the C:\usr directory, and everything (ant 
download, ant) worked as it should.

I seem to recall that Tomcat 7 now requires ant 1.8; I wonder if the 6.0 trunk 
does also?

Back to your original questions:

 1. Why does compile not know how to create it's own 
 destination directory?

Because it's expecting that you have done a default ant call first (as 
documented), which will invoke the build-prepare target and create the 
directories.  Only then can you start selecting arbitrary targets.

 2. Why doesn't base.path default to something /inside/
 the working copy of the code?

I see no compelling reason why it should.  If you've run ant download, 
everything is created where expected for the other targets to find.  If you 
want to override base.path, do so before running ant download.

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




Re: SAML 2.0 support ?

2010-09-20 Thread Pid
On 20/09/2010 16:08, Lavabit wrote:
 Hi,
 
 I try to find out how good SAML support in Tomcat is.

What SAML support?

 I would like to know if any of you has ever succesfully tested JBoss against a
 certified SAML 2.0 Identity Provider ?

Probably the wrong list for that question, to be honest...


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Pid
On 20/09/2010 16:00, Laurence L Leff wrote:
 
 - Original Message -
 From: Michael Stockhausen prof.dr.moe...@googlemail.com
 
 I have create two Servlets (LoginServlet  UserListServlet).
 I'm using a JSP for the User credentials. When you press the login-button,
 the LoginServlet is called.
 
 I would like to call the UserListServlet, when the username and password are
 correct.
 
 Where can I find some examples?
 
 Thanks,
 Michael
  I teach this in my Graphical User Interface Programming class:  
 (http://www.wiu.edu/users/mflll/CS412g/n3x.xml.pdf)
 
   URL url = new URL(http://toolman.wiu.edu:14096/servlet/OurData;);
   InputStream openStream = url.openStream();
   InputStreamReader r = new InputStreamReader(openStream);
   char buf[] = new char[1];
   r.read(buf,0,1);
 
 One just starts the servlet by invoking it with a URL and reading from the  
 stream.

Ermm...

I'm not really sure that's what he's looking for.


p



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Mark Eggers
I just compiled Tomcat 7 trunk on linux (Fedora 13, 1.6.0_21, 32-bit) with ant 
1.7.1 with no problems.

. . . just my two cents.

/mde/


- Original Message 
From: Caldarale, Charles R chuck.caldar...@unisys.com


I seem to recall that Tomcat 7 now requires ant 1.8; I wonder if the 6.0 trunk 
does also?


  


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Tomcat on Linux

2010-09-20 Thread Wesley Acheson
I thought that was the information he was looking for. No other reason
for sending it.

On Mon, Sep 20, 2010 at 10:14 PM, Pid p...@pidster.com wrote:
 On 20/09/2010 10:10, Wesley Acheson wrote:
 Tommy,

 Most linux's will automatically install tomcat for you.

 In the form of the not-very-popular-on-the-tomcat-users-list
 repackaged version.

 Okay if you need help chosing a linux for tomcat, you should consider
 the following questions. Would you want to use a graphical console or
 a text based shell? Is this a production environment? Will you need
 support from the vendor?  What package manager do they use etc.

 How much of the configuration process are you wanting the OS to do? I
 think most will set it up and install it as a service. On Ubuntu I
 found it very easy to install tomcat as a service.
 https://help.ubuntu.com/9.04/serverguide/C/tomcat.html but I'm
 confortable editing tomcats configuration by hand.

 Its really not that difficult to install tomcat yourself though.

 1. Download tar.gz
 2. Unpack tar.gz
 3. Run Tomcat
 4. WIN*


 p


 * You can omit step 4, if that's too many steps.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread George Sexton




 -Original Message-
 From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov]
 Sent: Monday, September 20, 2010 10:56 AM
 To: 'Tomcat Users List'
 Subject: RE: Howto: call a Servlet from another Servlet (Example)?!
 
 
 
 -Original Message-
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: Howto: call a Servlet from another Servlet (Example)?!
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Ronald,
 
 On 9/20/2010 11:07 AM, Ronald Klop wrote:
  You can use the RequestDispatcher.
 
  RequestDispatcher dispatcher =
 request.getRequestDispatcher(/userlist);
  dispatcher.forward(request, response);
 
 Of course, you can also issue a redirect to the client:
 
 response.sendRedirect(...)
 

Please make sure that any examples of respond.sendRedirect() or 
RequestDispatcher.forward() are IMMEDIATELY followed by a return statement 
because neither of those statements terminates the calling servlet's 
processing. IOW, processing chugs right along. This can cause very strange 
problems. It can also expose potential security problems because often you're 
redirecting to a login page. If you don't terminate processing, the code 
further along can assume the user is authenticated.

 The advantage of issuing a redirect is that the client will not have
 to
 re-authenticate if the user then RELOADs the resulting page.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkyXf3gACgkQ9CaO5/Lv0PDRmQCfSKPGx2EbXA8dA0WlcbNee8M9
 /YYAoJ6iHtoM5pYzteMy3DMHzH07OCno
 =bBF7
 -END PGP SIGNATURE-
 
 I thought that if you were making a request to a UserListServlet and it
 was restricted to authentication, assuming you use Form Authentication
 and structure your login form correctly, you don't have to worry about
 calling LoginServlet or using the requestDispatcher?  Doesn't Tomcat
 handle this for you?  What am I missing here?
 
 In the OP question, to what does the LoginServlet authenticate you?
 The LoginServlet?

George Sexton
MH Software, Inc.
303 438-9585
www.mhsoftware.com


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HttpServletRequest.getParameter and PUT requests

2010-09-20 Thread Wesley Acheson
On Mon, Sep 20, 2010 at 7:54 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 All,

 After reading a post on the cocoon-user mailing list
 (http://markmail.org/message/wzsgt4trlvztt6cr), I was reminded of our
 own discussion a few months back on this subject
 (http://markmail.org/message/dxgvu6fhcvp22xbo).

 I have decided to file an enhancement request and write a patch.
 Comments are definitely welcome.

 https://issues.apache.org/bugzilla/show_bug.cgi?id=49964


I don't see the patch. I see in the mail you've got your patch working
with tc7 but still not seeing the patch. What comments were you
looking for? That sounds arsey but It wasn't meant in that way.

Wes

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connect the same Database from two different web application

2010-09-20 Thread Wesley Acheson
On Sat, Sep 18, 2010 at 1:17 PM, Rahul Deb Mohan ra...@zaloni.com wrote:
 Hello Everyone,

 I am using Hibernate to connect to my MySql Database using C3p0 connection
 pooling mechanism from my web application which is deployed in Tomcat.

 Eventually, now I need to develop a child application, using the same
 Database instance.

 So I have two application now : say Application A and Application B, and
 both will be deployed in a Tomcat Server and both has to use the same
 Database, let say my DB name is EmployeeDB.

 I defined Resource  parameters separately for both of the application and
 have done all the settings that are required for the connectivity. Now when
 I deploy the applications, and try to run them, the first application ( it
 may be Application A or Application B) loads up properly, but the second
 application shows error as it could not connect to the Database. Whatever
 application I load first, it successfully connect to the Database, but
 second application fails to connect.

 I am guessing there must be some locking mechanism, provided by either
 Hibernate or the Tomcat, which is preventing me to do so.

 Please help me to overcome this issue as that is my fundamental requirement
 now.

 Thanks is advance.

 I am posting the stack trace hereby:

 [code]com.mchange.v2.cfg.BasicMultiPropertiesConfig: Properties object found
 at resource path [system properties] contains a value that is not a String:
 25
 Skipping...
 com.mchange.v2.cfg.BasicMultiPropertiesConfig: Properties object found at
 resource path [system properties] contains a value that is not a String: 25
 Skipping...
 921 [http-8990-4] ERROR org.hibernate.connection.C3P0ConnectionProvider -
 could not instantiate C3P0 connection pool
 java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:394)
    at
 com.mchange.v2.c3p0.DataSources.pooledDataSource(DataSources.java:314)
    at
 org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:181)
    at
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
    at
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:79)
    at
 org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:448)
    at
 org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
    at
 org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
    at
 org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
    at
 com.duke.zaloni.studentdb.server.hibernate.HibernateUtil.clinit(HibernateUtil.java:17)
    at
 com.duke.zaloni.studentdb.server.LoginServletImpl.doPost(LoginServletImpl.java:33)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
 Hibernate Error:Initial SessionFactory creation
 failed.org.hibernate.HibernateException: Could not instantiate C3P0
 connection pool
 org.hibernate.HibernateException: Could not instantiate C3P0 connection pool
    at
 org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:185)
    at
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
    at
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:79)
    at
 org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:448)
    at
 org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
    at
 org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
    at
 org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
    at
 com.duke.zaloni.studentdb.server.hibernate.HibernateUtil.clinit(HibernateUtil.java:17)
    at
 

Re: Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Mark Thomas
On 20/09/2010 14:37, Mark Eggers wrote:
 I just compiled Tomcat 7 trunk on linux (Fedora 13, 1.6.0_21, 32-bit) with 
 ant 
 1.7.1 with no problems.
 
 . . . just my two cents.

I assume Ant is ignoring the 1.8.x features used in the build script in
that case.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connect the same Database from two different web application

2010-09-20 Thread Jorge Medina
 I had a slightly similar problem using Oracle data sources with
Oracle connection caching.

In this case, I had defined my connection settings via JNDI in
context.xml. (therefore they were common for both web apps)

Since the classes were loaded by Tomcat and not by my webapps, a
datasource was being created by each webapp, but the cache names were
having collisions. The first application was able to create the cache,
but the second would fail because a cache instance with the same name
already existed. I was able to avoid the problem by not giving a name
to the cache, Oracle would create a random name for each and two
instances of the cache would be created, one for each application.

Could you have a similar issue with C3PO? I have never used it.


On Sat, Sep 18, 2010 at 7:17 AM, Rahul Deb Mohan ra...@zaloni.com wrote:
 Hello Everyone,

 I am using Hibernate to connect to my MySql Database using C3p0 connection
 pooling mechanism from my web application which is deployed in Tomcat.

 Eventually, now I need to develop a child application, using the same
 Database instance.

 So I have two application now : say Application A and Application B, and
 both will be deployed in a Tomcat Server and both has to use the same
 Database, let say my DB name is EmployeeDB.

 I defined Resource  parameters separately for both of the application and
 have done all the settings that are required for the connectivity. Now when
 I deploy the applications, and try to run them, the first application ( it
 may be Application A or Application B) loads up properly, but the second
 application shows error as it could not connect to the Database. Whatever
 application I load first, it successfully connect to the Database, but
 second application fails to connect.

 I am guessing there must be some locking mechanism, provided by either
 Hibernate or the Tomcat, which is preventing me to do so.

 Please help me to overcome this issue as that is my fundamental requirement
 now.

 Thanks is advance.

 I am posting the stack trace hereby:

 [code]com.mchange.v2.cfg.BasicMultiPropertiesConfig: Properties object found
 at resource path [system properties] contains a value that is not a String:
 25
 Skipping...
 com.mchange.v2.cfg.BasicMultiPropertiesConfig: Properties object found at
 resource path [system properties] contains a value that is not a String: 25
 Skipping...
 921 [http-8990-4] ERROR org.hibernate.connection.C3P0ConnectionProvider -
 could not instantiate C3P0 connection pool
 java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:394)
    at
 com.mchange.v2.c3p0.DataSources.pooledDataSource(DataSources.java:314)
    at
 org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:181)
    at
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
    at
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:79)
    at
 org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:448)
    at
 org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
    at
 org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
    at
 org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
    at
 com.duke.zaloni.studentdb.server.hibernate.HibernateUtil.clinit(HibernateUtil.java:17)
    at
 com.duke.zaloni.studentdb.server.LoginServletImpl.doPost(LoginServletImpl.java:33)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
 Hibernate Error:Initial SessionFactory creation
 failed.org.hibernate.HibernateException: Could not instantiate C3P0
 connection pool
 org.hibernate.HibernateException: Could not instantiate C3P0 connection pool
    at
 

Re: HttpServletRequest.getParameter and PUT requests

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wesley,

On 9/20/2010 6:23 PM, Wesley Acheson wrote:
 On Mon, Sep 20, 2010 at 7:54 PM, Christopher Schultz
 ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 All,

 After reading a post on the cocoon-user mailing list
 (http://markmail.org/message/wzsgt4trlvztt6cr), I was reminded of our
 own discussion a few months back on this subject
 (http://markmail.org/message/dxgvu6fhcvp22xbo).

 I have decided to file an enhancement request and write a patch.
 Comments are definitely welcome.

 https://issues.apache.org/bugzilla/show_bug.cgi?id=49964

 
 I don't see the patch. I see in the mail you've got your patch working
 with tc7 but still not seeing the patch. What comments were you
 looking for? That sounds arsey but It wasn't meant in that way.

The patch is not complete, and therefore has not been posted. I was
asking for feedback on the requirements, not necessarily the quality of
my code :)

Once it's documented and I write unit tests, I'll submit the patch all
at once.

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

iEYEARECAAYFAkyX/mgACgkQ9CaO5/Lv0PCgEQCdGJYNr83MjUntguVP7f4ZtEfL
veMAn3mgHrBQXIegOfmsEusGYN22UJzL
=CRn/
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 9/20/2010 4:29 PM, Caldarale, Charles R wrote:
 From: Caldarale, Charles R 
 Subject: RE: Compiling Tomcat 6.0.x trunk
 
 I'll start over with a clean system and see what happens.
 
 Just tried it again after removing the C:\usr directory, and everything (ant 
 download, ant) worked as it should.

I suspect you are an administrator on your box, so writing files to
C:\usr\share\java shouldn't be a problem :)

 I seem to recall that Tomcat 7 now requires ant 1.8; I wonder if the 6.0 
 trunk does also?

No, TC 6 only requires ant 1.6 (at least, that's what BUILDING.txt says).

 Back to your original questions:
 
 1. Why does compile not know how to create it's own 
 destination directory?
 
 Because it's expecting that you have done a default ant call first (as 
 documented), which will invoke the build-prepare target and create the 
 directories.  Only then can you start selecting arbitrary targets.

Fair enough. Since ant is capable of following target dependencies, I
like my build targets to satisfy their own dependencies. But that's just
me. If compile requires some other target first, why doesn't it do so
explicitly?

 2. Why doesn't base.path default to something /inside/
 the working copy of the code?
 
 I see no compelling reason why it should.  If you've run ant
 download, everything is created where expected for the other targets
 to find.  If you want to override base.path, do so before running
 ant download.

I had apparently ignored this further information /after/ the
instructions for building:


* WARNING: Running this command will download binaries to the
/usr/share/java
  directory. Make sure this is appropriate to do on your computer. On
Windows,
  this usually corresponds to the C:\usr\share\java directory, unless
Cygwin
  is used. Read below to customize the directory used to download the
binaries.

* The build can be controlled by creating a
${tomcat.source}/build.properties
  file, and adding the following content to it:

# - Proxy setup -
# Uncomment if using a proxy server
#proxy.host=proxy.domain
#proxy.port=8080
#proxy.use=on

# - Default Base Path for Dependent Packages -
# Replace this path with the directory path where dependencies binaries
# should be downloaded
base.path=/usr/share/java


I now have my own build.properties file which re-defines base.path to
something more appropriate for a multi-user system.

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

iEYEARECAAYFAkyYAgkACgkQ9CaO5/Lv0PAWcgCgo2QrP5ns3qaV+doh0RYuCpqI
MNEAoLkCJwOkAbzH2lqojfKDox0i0Um3
=rE4F
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
 Subject: Re: Compiling Tomcat 6.0.x trunk

 I suspect you are an administrator on your box, so writing 
 files to C:\usr\share\java shouldn't be a problem :)

There's nothing special about C:\usr - it's not a Windows-created directory 
(and not to be confused with C:\Users).

  I seem to recall that Tomcat 7 now requires ant 1.8; I wonder 
  if the 6.0 trunk does also?

 No, TC 6 only requires ant 1.6 (at least, that's what 
 BUILDING.txt says).

Yes, it's the TC 7 docs that require 1.8.1 or later (svn revision 984978):
http://markmail.org/message/n23mjjknmzu24jnh

 If compile requires some other target first, why doesn't 
 it do so explicitly?

The build-prepare target is only intended to be run once, as part of the 
initialization.  It of course could be made smarter to detect if it already has 
been run, but the additional complexity really isn't needed.

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



How to setup PHP on Tomcat

2010-09-20 Thread Brajesh Patel
Hello All,
How to setup PHP on Tomcat.
Thanks in Advance.

-- 
Thanks
Brajesh Patel


RE: How to setup PHP on Tomcat

2010-09-20 Thread Karthik Nanjangude
Hi

One option is as per
URL http://php-java-bridge.sourceforge.net/




With regards
karthik

-Original Message-
From: Brajesh Patel [mailto:brajeshpate...@gmail.com]
Sent: Tuesday, September 21, 2010 10:54 AM
To: users@tomcat.apache.org
Subject: How to setup PHP on Tomcat

Hello All,
How to setup PHP on Tomcat.
Thanks in Advance.

--
Thanks
Brajesh Patel

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: SAML 2.0 support ?

2010-09-20 Thread Lavabit
Thank you for your answer.

le Mon, 20 Sep 2010 21:45:16 +0100
Pid p...@pidster.com a écrit :
 What SAML support?

SSO, SLO, Federation, Defederation.

  I would like to know if any of you has ever succesfully tested JBoss
  against a certified SAML 2.0 Identity Provider ?
 
 Probably the wrong list for that question, to be honest...

Oh sorry. This list is for newbies, isn't it ? This is what I am when it comes
to Tomcat.
Could you please tell me what the right list would be, tomcat-dev ?

Thanks again.

Pierre


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org