You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Felipe Schnack <fe...@ritterdosreis.br> on 2002/11/21 13:33:51 UTC
MacOS
Anyone have experience with Tomcat on MacOS X servers? Or with java in
general? I would like to know if these machines are good options for
serving jsp or I should stick with PCs...
--
Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893
Faculdade Ritter dos Reis
www.ritterdosreis.br
felipes@ritterdosreis.br
Fone/Fax.: (51)32303328
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: MacOS
Posted by Felipe Schnack <fe...@ritterdosreis.br>.
nice!!!
But I already got rid of windows, with RH linux
On Thu, 2002-11-21 at 18:49, peter lin wrote:
>
> actually eclipse support Mac in the latest build. I'm seriously
> thinking about switching too to get away from windows and my normal
> bi-annual reinstall of the whole OS.
>
> the eclipse IDE does work very nicely.
>
> peter
>
> Felipe Schnack wrote:
> >
> > Seems nice! Probably I'll be using a MacOS server very soon. But and
> > what about development tools? Do you use any? I'm now using IBM's
> > Eclipse Project under RedHat Linux.
> > Man, you work at Machintosh, don't you? :-)
> >
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893
Faculdade Ritter dos Reis
www.ritterdosreis.br
felipes@ritterdosreis.br
Fone/Fax.: (51)32303328
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: MacOS
Posted by peter lin <pe...@labs.gte.com>.
actually eclipse support Mac in the latest build. I'm seriously
thinking about switching too to get away from windows and my normal
bi-annual reinstall of the whole OS.
the eclipse IDE does work very nicely.
peter
Felipe Schnack wrote:
>
> Seems nice! Probably I'll be using a MacOS server very soon. But and
> what about development tools? Do you use any? I'm now using IBM's
> Eclipse Project under RedHat Linux.
> Man, you work at Machintosh, don't you? :-)
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: MacOS
Posted by bi...@mac.com.
heh, funny... No I do not work for Apple - there're popular sayings
that sort of goes like "people that work at the salami factory don't
eat it salami", "if you really like her, don't marry her" etc. In any
case, I must admit at being very psyched about having having a Mac UI
over Unix. The stars have aligned themselves!
In regards to dev tools. I basically use a my favorite text editor,
usual shell scripting, Jarkata Ant and will occasionally wonder into C
and Objective-C and for that I used the Apple Dev Tools which are a
free download. Be as it may, my understanding is that there a quite a
few IDEs that MacOSX friendly i.e., JBuilder, Forte, NetBeans,
CodeWarrior, TogetherJ and some others. Here's a link that showcases a
handful of them and some other cool tools -beware that not all are top
of the line:
http://www.apple.com/downloads/macosx/development_tools/
On Thursday, November 21, 2002, at 02:40 PM, Felipe Schnack wrote:
> Seems nice! Probably I'll be using a MacOS server very soon. But and
> what about development tools? Do you use any? I'm now using IBM's
> Eclipse Project under RedHat Linux.
> Man, you work at Machintosh, don't you? :-)
>
> On Thu, 2002-11-21 at 15:22, bido@mac.com wrote:
>> I dropped my PC for development work once I got on MacOSX (Nope I'm
>> not
>> aspiring to be in an Apple add) but it's worth exploring for those of
>> you who are thinking about it. MacOSX is an excellent option for
>> serving JSP and great Java platform in general. It gives Java a red
>> carpet treatment for example it provides a decent class browser, tools
>> to turn your Java apps into double-clickable apps, some Swing
>> enhancements provide for the Aqua look and feel etc. The shipping JDK
>> is 1.3.1 but 1.4.x is at it's final beta stages. I have used Tomcat
>> 3.x
>> and currently on 4.1.12,
>>
>> I personally prefer it to any version of Windows since it adds a
>> gazillion cool things on top of its Unix implementation. However, If
>> your are the proud "vi" type of developer then you may not care about
>> UI tricks etc. But the core Unix is is there as expected. Some
>> differences exist but nothing too dramatic. If interested, there's an
>> excellent book out there by O'Reilly, "MacOSX for Unix Geeks" which
>> describes these:
>>
>> http://www.oreilly.com/catalog/mosxgeeks/
>>
>> As far as J2EE is concerned, all the Opensource J2EE apps that I come
>> across so far
>> perform as well as they would in any other Unix i.e. JBoss, OpenEJB,
>> Tomcat, Jetty, Apache -but this is just a gut feel
>> assessment, I have no formal metrics.
>>
>>
>> On Thursday, November 21, 2002, at 09:37 AM, Martin Redington wrote:
>>
>>>
>>> On Thursday, November 21, 2002, at 01:31 PM, Martin Jacobson wrote:
>>>
>>>> Felipe Schnack wrote:
>>>>> Anyone have experience with Tomcat on MacOS X servers? Or with
>>>>> java in
>>>>> general? I would like to know if these machines are good options
>>>>> for
>>>>> serving jsp or I should stick with PCs...
>>>>
>>>> I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL + MySQL on Mac
>>>> OS 10.2 and it all runs just fine!
>>>>
>>>> Check the archives - someone posted recently regarding probs with
>>>> Mac
>>>> OS X *Server* - IIRC, WebObjects is pre-installed, and generates
>>>> some
>>>> conflicts with Tomcat.
>>>
>>> That was me. If you're running on OS X Server, there's a catalina.jar
>>> in /Library/Java/Extensions, or maybe in /Library/Java/Home/lib/ext/,
>>> or at least somewhere in the system classpath (see the archives).
>>>
>>> I'm not sure what this is used by ... not the default tomcat install,
>>> but *maybe* by WebObjects (although quite possibly not).
>>>
>>> Anyway, you will need to disable this file somehow (I gzipp'ed it) to
>>> get a custom install of tomcat (> 4.0.6, but probably some lower
>>> versions as well) to run.
>>>
>>>
>>> --
>>> To unsubscribe, e-mail:
>>> <ma...@jakarta.apache.org>
>>> For additional commands, e-mail:
>>> <ma...@jakarta.apache.org>
>>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <ma...@jakarta.apache.org>
>> For additional commands, e-mail:
>> <ma...@jakarta.apache.org>
>>
> --
>
> Felipe Schnack
> Analista de Sistemas
> felipes@ritterdosreis.br
> Cel.: (51)91287530
> Linux Counter #281893
>
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> felipes@ritterdosreis.br
> Fone/Fax.: (51)32303328
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: MacOS
Posted by Felipe Schnack <fe...@ritterdosreis.br>.
Seems nice! Probably I'll be using a MacOS server very soon. But and
what about development tools? Do you use any? I'm now using IBM's
Eclipse Project under RedHat Linux.
Man, you work at Machintosh, don't you? :-)
On Thu, 2002-11-21 at 15:22, bido@mac.com wrote:
> I dropped my PC for development work once I got on MacOSX (Nope I'm not
> aspiring to be in an Apple add) but it's worth exploring for those of
> you who are thinking about it. MacOSX is an excellent option for
> serving JSP and great Java platform in general. It gives Java a red
> carpet treatment for example it provides a decent class browser, tools
> to turn your Java apps into double-clickable apps, some Swing
> enhancements provide for the Aqua look and feel etc. The shipping JDK
> is 1.3.1 but 1.4.x is at it's final beta stages. I have used Tomcat 3.x
> and currently on 4.1.12,
>
> I personally prefer it to any version of Windows since it adds a
> gazillion cool things on top of its Unix implementation. However, If
> your are the proud "vi" type of developer then you may not care about
> UI tricks etc. But the core Unix is is there as expected. Some
> differences exist but nothing too dramatic. If interested, there's an
> excellent book out there by O'Reilly, "MacOSX for Unix Geeks" which
> describes these:
>
> http://www.oreilly.com/catalog/mosxgeeks/
>
> As far as J2EE is concerned, all the Opensource J2EE apps that I come
> across so far
> perform as well as they would in any other Unix i.e. JBoss, OpenEJB,
> Tomcat, Jetty, Apache -but this is just a gut feel
> assessment, I have no formal metrics.
>
>
> On Thursday, November 21, 2002, at 09:37 AM, Martin Redington wrote:
>
> >
> > On Thursday, November 21, 2002, at 01:31 PM, Martin Jacobson wrote:
> >
> >> Felipe Schnack wrote:
> >>> Anyone have experience with Tomcat on MacOS X servers? Or with
> >>> java in
> >>> general? I would like to know if these machines are good options for
> >>> serving jsp or I should stick with PCs...
> >>
> >> I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL + MySQL on Mac
> >> OS 10.2 and it all runs just fine!
> >>
> >> Check the archives - someone posted recently regarding probs with Mac
> >> OS X *Server* - IIRC, WebObjects is pre-installed, and generates some
> >> conflicts with Tomcat.
> >
> > That was me. If you're running on OS X Server, there's a catalina.jar
> > in /Library/Java/Extensions, or maybe in /Library/Java/Home/lib/ext/,
> > or at least somewhere in the system classpath (see the archives).
> >
> > I'm not sure what this is used by ... not the default tomcat install,
> > but *maybe* by WebObjects (although quite possibly not).
> >
> > Anyway, you will need to disable this file somehow (I gzipp'ed it) to
> > get a custom install of tomcat (> 4.0.6, but probably some lower
> > versions as well) to run.
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893
Faculdade Ritter dos Reis
www.ritterdosreis.br
felipes@ritterdosreis.br
Fone/Fax.: (51)32303328
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: MacOS
Posted by David Blevins <da...@visi.com>.
You make me want to go out and pickup a titanium iBook, course, I've
been drooling over those for a while....
A note on OSX Server and Open Source, there are few projects that ship
with it by default. OpenEJB and OpenORB are used in WebObjects for EJB
and CORBA support, so that explains them. I'm pretty sure Tomcat is
there for the same reason, though I've never heard that first-hand from
the WebObjects team -- never thought of asking.
One thing of note is that in Linux it's fairly easy to upgrade the
packages that ship with the platform by default. I'm not so sure it's as
trivial in OSX Server. I'm interested to see where that goes....
-David
> -----Original Message-----
> From: bido@mac.com [mailto:bido@mac.com]
> Sent: Thursday, November 21, 2002 11:23 AM
> To: Tomcat Users List
> Subject: Re: MacOS
>
>
> I dropped my PC for development work once I got on MacOSX
> (Nope I'm not
> aspiring to be in an Apple add) but it's worth exploring for those of
> you who are thinking about it. MacOSX is an excellent option for
> serving JSP and great Java platform in general. It gives Java a red
> carpet treatment for example it provides a decent class
> browser, tools
> to turn your Java apps into double-clickable apps, some Swing
> enhancements provide for the Aqua look and feel etc. The shipping JDK
> is 1.3.1 but 1.4.x is at it's final beta stages. I have used
> Tomcat 3.x
> and currently on 4.1.12,
>
> I personally prefer it to any version of Windows since it adds a
> gazillion cool things on top of its Unix implementation. However, If
> your are the proud "vi" type of developer then you may not care about
> UI tricks etc. But the core Unix is is there as expected. Some
> differences exist but nothing too dramatic. If interested, there's an
> excellent book out there by O'Reilly, "MacOSX for Unix Geeks" which
> describes these:
>
> http://www.oreilly.com/catalog/mosxgeeks/
>
> As far as J2EE is concerned, all the Opensource J2EE apps that I come
> across so far
> perform as well as they would in any other Unix i.e. JBoss, OpenEJB,
> Tomcat, Jetty, Apache -but this is just a gut feel
> assessment, I have no formal metrics.
>
>
> On Thursday, November 21, 2002, at 09:37 AM, Martin Redington wrote:
>
> >
> > On Thursday, November 21, 2002, at 01:31 PM, Martin Jacobson wrote:
> >
> >> Felipe Schnack wrote:
> >>> Anyone have experience with Tomcat on MacOS X servers? Or with
> >>> java in
> >>> general? I would like to know if these machines are good
> options for
> >>> serving jsp or I should stick with PCs...
> >>
> >> I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL +
> MySQL on Mac
> >> OS 10.2 and it all runs just fine!
> >>
> >> Check the archives - someone posted recently regarding
> probs with Mac
> >> OS X *Server* - IIRC, WebObjects is pre-installed, and
> generates some
> >> conflicts with Tomcat.
> >
> > That was me. If you're running on OS X Server, there's a
> catalina.jar
> > in /Library/Java/Extensions, or maybe in
> /Library/Java/Home/lib/ext/,
> > or at least somewhere in the system classpath (see the archives).
> >
> > I'm not sure what this is used by ... not the default
> tomcat install,
> > but *maybe* by WebObjects (although quite possibly not).
> >
> > Anyway, you will need to disable this file somehow (I
> gzipp'ed it) to
> > get a custom install of tomcat (> 4.0.6, but probably some lower
> > versions as well) to run.
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: SSL FAQ and question
Posted by Norbert Kuhnert <no...@cafesoft.com>.
Jay,
I did not create a new <Host>, just 2 Connectors supplying
requests to the same <Engine>. I'm not sure that this
automatic redirection from "http" to "https" would work
if it needed to redirect to a different host, but I could
be wrong.
Norb
Jay Wright wrote:
> Great, we will have to try that out. Did you need to configure a second
> <Host> for the secure site?
>
> Or is that only necessary if you want a separate domain secure.site.com
> instead of regular.site.com.
>
>
>>-----Original Message-----
>>From: Norbert Kuhnert [mailto:norb@cafesoft.com]
>>Sent: Thursday, November 21, 2002 11:49 AM
>>To: Tomcat Users List
>>Subject: Re: SSL FAQ and question
>>
>>
>>
>>Jay,
>>
>>I've had success with using the webapp deployment descriptor
>>"transport-guarantee" user-data-contraint as follows:
>>
>><security-constraint>
>> <web-resource-collection>
>> <web-resource-name>myPayroll</web-resource-name>
>> <url-pattern>/payrollServlet</url-pattern>
>> <http-method>GET</http-method>
>> </web-resource-collection>
>> <user-data-constraint>
>> <transport-guarantee>
>> CONFIDENTIAL
>> </transport-guarantee>
>> </user-data-constraint>
>></security-constraint>
>>
>>If your Tomcat server's connector is properly setup to specify
>>the "redirectPort" as shown below in your non-secure Connector
>>(your connector class may be different):
>>
>><Connector className="org.apache.catalina.connector.http.HttpConnector"
>> port="8080" minProcessors="5" maxProcessors="75"
>> enableLookups="true" redirectPort="8443"
>> acceptCount="10" debug="10" connectionTimeout="60000"/>
>>
>>AND you have a Connector listening on that port, for example:
>>
>><Connector className="org.apache.catalina.connector.http.HttpConnector"
>> port="8443" minProcessors="5" maxProcessors="75"
>> enableLookups="true"
>> acceptCount="10" debug="0" scheme="https" secure="true">
>> <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
>> clientAuth="false" protocol="TLS"/>
>></Connector>
>>
>>
>>then Tomcat should do the redirection for you. Here's the documentation
>>link for setting up SSL under Tomcat, if that's useful to you:
>>
>>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html
>>
>>Good luck,
>>
>>Norb
>>
>>
>>
>>
>>
>>Jay Wright wrote:
>>
>>>I am trying to do some initial research on SSL and tomcat.
>>
>>Perhaps there is
>>
>>>a faq out there that can help me, but the ones I've found on
>>
>>the tomcat site
>>
>>>haven't, so I turn to the newsgroup.
>>>
>>>I'm looking for some tried and true knowledge on implementing one tomcat
>>>instance with both secure and non-secure webapps. If I request
>>
>>comes into a
>>
>>>webapp that needs to be secure, I would like to redirect that
>>
>>request to the
>>
>>>secure site.
>>>
>>>Is it best to do this in code (by checking the
>>
>>request.isSecure()) and then
>>
>>>issuing response.sendRedirect() or can it be done through server.xml in
>>>tomcat or web.xml in the webapp?
>>>
>>>I assume you'd set up a second <Host> in server.xml and include
>>
>>the webapp
>>
>>><Context> in there. The non-secure <Host> has a redirectPort configured
>>>which is suppose to then redirect to the secure site.
>>>
>>>Or would you set up the <security-constraint> in web.xml.
>>>
>>>Or am I way off?
>>>
>>>Jay
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>
> <ma...@jakarta.apache.org>
>
>>For additional commands, e-mail:
>
> <ma...@jakarta.apache.org>
>
>
> --
> ----------------------------------------------------------
> Norbert K. Kuhnert Phone: 858-455-1800 x204
> Fax: 858-455-1801
> CTO, Founder Email: norb@cafesoft.com
> Cafesoft LLC WWW: www.cafesoft.com
> ----------------------------------------------------------
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
----------------------------------------------------------
Norbert K. Kuhnert Phone: 858-455-1800 x204
Fax: 858-455-1801
CTO, Founder Email: norb@cafesoft.com
Cafesoft LLC WWW: www.cafesoft.com
----------------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: SSL FAQ and question
Posted by Jay Wright <jw...@once.com>.
Great, we will have to try that out. Did you need to configure a second
<Host> for the secure site?
Or is that only necessary if you want a separate domain secure.site.com
instead of regular.site.com.
> -----Original Message-----
> From: Norbert Kuhnert [mailto:norb@cafesoft.com]
> Sent: Thursday, November 21, 2002 11:49 AM
> To: Tomcat Users List
> Subject: Re: SSL FAQ and question
>
>
>
> Jay,
>
> I've had success with using the webapp deployment descriptor
> "transport-guarantee" user-data-contraint as follows:
>
> <security-constraint>
> <web-resource-collection>
> <web-resource-name>myPayroll</web-resource-name>
> <url-pattern>/payrollServlet</url-pattern>
> <http-method>GET</http-method>
> </web-resource-collection>
> <user-data-constraint>
> <transport-guarantee>
> CONFIDENTIAL
> </transport-guarantee>
> </user-data-constraint>
> </security-constraint>
>
> If your Tomcat server's connector is properly setup to specify
> the "redirectPort" as shown below in your non-secure Connector
> (your connector class may be different):
>
> <Connector className="org.apache.catalina.connector.http.HttpConnector"
> port="8080" minProcessors="5" maxProcessors="75"
> enableLookups="true" redirectPort="8443"
> acceptCount="10" debug="10" connectionTimeout="60000"/>
>
> AND you have a Connector listening on that port, for example:
>
> <Connector className="org.apache.catalina.connector.http.HttpConnector"
> port="8443" minProcessors="5" maxProcessors="75"
> enableLookups="true"
> acceptCount="10" debug="0" scheme="https" secure="true">
> <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
> clientAuth="false" protocol="TLS"/>
> </Connector>
>
>
> then Tomcat should do the redirection for you. Here's the documentation
> link for setting up SSL under Tomcat, if that's useful to you:
>
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html
>
> Good luck,
>
> Norb
>
>
>
>
>
> Jay Wright wrote:
> > I am trying to do some initial research on SSL and tomcat.
> Perhaps there is
> > a faq out there that can help me, but the ones I've found on
> the tomcat site
> > haven't, so I turn to the newsgroup.
> >
> > I'm looking for some tried and true knowledge on implementing one tomcat
> > instance with both secure and non-secure webapps. If I request
> comes into a
> > webapp that needs to be secure, I would like to redirect that
> request to the
> > secure site.
> >
> > Is it best to do this in code (by checking the
> request.isSecure()) and then
> > issuing response.sendRedirect() or can it be done through server.xml in
> > tomcat or web.xml in the webapp?
> >
> > I assume you'd set up a second <Host> in server.xml and include
> the webapp
> > <Context> in there. The non-secure <Host> has a redirectPort configured
> > which is suppose to then redirect to the secure site.
> >
> > Or would you set up the <security-constraint> in web.xml.
> >
> > Or am I way off?
> >
> > Jay
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
----------------------------------------------------------
Norbert K. Kuhnert Phone: 858-455-1800 x204
Fax: 858-455-1801
CTO, Founder Email: norb@cafesoft.com
Cafesoft LLC WWW: www.cafesoft.com
----------------------------------------------------------
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: SSL FAQ and question
Posted by Norbert Kuhnert <no...@cafesoft.com>.
Jay,
I've had success with using the webapp deployment descriptor
"transport-guarantee" user-data-contraint as follows:
<security-constraint>
<web-resource-collection>
<web-resource-name>myPayroll</web-resource-name>
<url-pattern>/payrollServlet</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>
CONFIDENTIAL
</transport-guarantee>
</user-data-constraint>
</security-constraint>
If your Tomcat server's connector is properly setup to specify
the "redirectPort" as shown below in your non-secure Connector
(your connector class may be different):
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="10" connectionTimeout="60000"/>
AND you have a Connector listening on that port, for example:
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" scheme="https" secure="true">
<Factory className="org.apache.catalina.net.SSLServerSocketFactory"
clientAuth="false" protocol="TLS"/>
</Connector>
then Tomcat should do the redirection for you. Here's the documentation
link for setting up SSL under Tomcat, if that's useful to you:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html
Good luck,
Norb
Jay Wright wrote:
> I am trying to do some initial research on SSL and tomcat. Perhaps there is
> a faq out there that can help me, but the ones I've found on the tomcat site
> haven't, so I turn to the newsgroup.
>
> I'm looking for some tried and true knowledge on implementing one tomcat
> instance with both secure and non-secure webapps. If I request comes into a
> webapp that needs to be secure, I would like to redirect that request to the
> secure site.
>
> Is it best to do this in code (by checking the request.isSecure()) and then
> issuing response.sendRedirect() or can it be done through server.xml in
> tomcat or web.xml in the webapp?
>
> I assume you'd set up a second <Host> in server.xml and include the webapp
> <Context> in there. The non-secure <Host> has a redirectPort configured
> which is suppose to then redirect to the secure site.
>
> Or would you set up the <security-constraint> in web.xml.
>
> Or am I way off?
>
> Jay
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
----------------------------------------------------------
Norbert K. Kuhnert Phone: 858-455-1800 x204
Fax: 858-455-1801
CTO, Founder Email: norb@cafesoft.com
Cafesoft LLC WWW: www.cafesoft.com
----------------------------------------------------------
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
SSL FAQ and question
Posted by Jay Wright <jw...@once.com>.
I am trying to do some initial research on SSL and tomcat. Perhaps there is
a faq out there that can help me, but the ones I've found on the tomcat site
haven't, so I turn to the newsgroup.
I'm looking for some tried and true knowledge on implementing one tomcat
instance with both secure and non-secure webapps. If I request comes into a
webapp that needs to be secure, I would like to redirect that request to the
secure site.
Is it best to do this in code (by checking the request.isSecure()) and then
issuing response.sendRedirect() or can it be done through server.xml in
tomcat or web.xml in the webapp?
I assume you'd set up a second <Host> in server.xml and include the webapp
<Context> in there. The non-secure <Host> has a redirectPort configured
which is suppose to then redirect to the secure site.
Or would you set up the <security-constraint> in web.xml.
Or am I way off?
Jay
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: MacOS
Posted by bi...@mac.com.
I dropped my PC for development work once I got on MacOSX (Nope I'm not
aspiring to be in an Apple add) but it's worth exploring for those of
you who are thinking about it. MacOSX is an excellent option for
serving JSP and great Java platform in general. It gives Java a red
carpet treatment for example it provides a decent class browser, tools
to turn your Java apps into double-clickable apps, some Swing
enhancements provide for the Aqua look and feel etc. The shipping JDK
is 1.3.1 but 1.4.x is at it's final beta stages. I have used Tomcat 3.x
and currently on 4.1.12,
I personally prefer it to any version of Windows since it adds a
gazillion cool things on top of its Unix implementation. However, If
your are the proud "vi" type of developer then you may not care about
UI tricks etc. But the core Unix is is there as expected. Some
differences exist but nothing too dramatic. If interested, there's an
excellent book out there by O'Reilly, "MacOSX for Unix Geeks" which
describes these:
http://www.oreilly.com/catalog/mosxgeeks/
As far as J2EE is concerned, all the Opensource J2EE apps that I come
across so far
perform as well as they would in any other Unix i.e. JBoss, OpenEJB,
Tomcat, Jetty, Apache -but this is just a gut feel
assessment, I have no formal metrics.
On Thursday, November 21, 2002, at 09:37 AM, Martin Redington wrote:
>
> On Thursday, November 21, 2002, at 01:31 PM, Martin Jacobson wrote:
>
>> Felipe Schnack wrote:
>>> Anyone have experience with Tomcat on MacOS X servers? Or with
>>> java in
>>> general? I would like to know if these machines are good options for
>>> serving jsp or I should stick with PCs...
>>
>> I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL + MySQL on Mac
>> OS 10.2 and it all runs just fine!
>>
>> Check the archives - someone posted recently regarding probs with Mac
>> OS X *Server* - IIRC, WebObjects is pre-installed, and generates some
>> conflicts with Tomcat.
>
> That was me. If you're running on OS X Server, there's a catalina.jar
> in /Library/Java/Extensions, or maybe in /Library/Java/Home/lib/ext/,
> or at least somewhere in the system classpath (see the archives).
>
> I'm not sure what this is used by ... not the default tomcat install,
> but *maybe* by WebObjects (although quite possibly not).
>
> Anyway, you will need to disable this file somehow (I gzipp'ed it) to
> get a custom install of tomcat (> 4.0.6, but probably some lower
> versions as well) to run.
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: MacOS
Posted by Martin Redington <m....@ucl.ac.uk>.
On Thursday, November 21, 2002, at 01:31 PM, Martin Jacobson wrote:
> Felipe Schnack wrote:
>> Anyone have experience with Tomcat on MacOS X servers? Or with java
>> in
>> general? I would like to know if these machines are good options for
>> serving jsp or I should stick with PCs...
>
> I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL + MySQL on Mac
> OS 10.2 and it all runs just fine!
>
> Check the archives - someone posted recently regarding probs with Mac
> OS X *Server* - IIRC, WebObjects is pre-installed, and generates some
> conflicts with Tomcat.
That was me. If you're running on OS X Server, there's a catalina.jar
in /Library/Java/Extensions, or maybe in /Library/Java/Home/lib/ext/,
or at least somewhere in the system classpath (see the archives).
I'm not sure what this is used by ... not the default tomcat install,
but *maybe* by WebObjects (although quite possibly not).
Anyway, you will need to disable this file somehow (I gzipp'ed it) to
get a custom install of tomcat (> 4.0.6, but probably some lower
versions as well) to run.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: MacOS
Posted by Martin Jacobson <ma...@libero.it>.
Felipe Schnack wrote:
> Anyone have experience with Tomcat on MacOS X servers? Or with java in
> general? I would like to know if these machines are good options for
> serving jsp or I should stick with PCs...
>
I'm running Apache + mod_jk + Tomcat 4.1.12 + OpenSSL + MySQL on Mac OS
10.2 and it all runs just fine!
Check the archives - someone posted recently regarding probs with Mac OS
X *Server* - IIRC, WebObjects is pre-installed, and generates some
conflicts with Tomcat.
Martin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: MacOS
Posted by Martin Redington <m....@ucl.ac.uk>.
I'm running tomcat (4.1.12) on Mac OS X. Not in production (yet), but
everything seems to work as expected ...
On Thursday, November 21, 2002, at 12:33 PM, Felipe Schnack wrote:
> Anyone have experience with Tomcat on MacOS X servers? Or with java
> in
> general? I would like to know if these machines are good options for
> serving jsp or I should stick with PCs...
>
> --
>
> Felipe Schnack
> Analista de Sistemas
> felipes@ritterdosreis.br
> Cel.: (51)91287530
> Linux Counter #281893
>
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> felipes@ritterdosreis.br
> Fone/Fax.: (51)32303328
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>