Re: Parallel Tomcat Instances On Same Server

2019-02-22 Thread Hassan Schroeder
On Thu, Feb 21, 2019 at 10:26 PM Jerry Malcolm  wrote:
>
> I need a bit of brainstorming.  I have a production Tomcat server that
> hosts several web sites.  A couple of these websites are
> high-availability sensitive.

So why are you running on a single-box architecture? Seems like
the first thing you'd want to address is that single point of failure...

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Hassan Schroeder
On Sun, Jan 27, 2019 at 10:53 AM Barry Kimelman
 wrote:

> I am running Apache 2.4 on a 64 bit windows 10 system.

This mailing list is for Apache Tomcat, not Apache httpd -- you will
likely get better responses on an appropriate list.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Can not use multiple war files on single port.

2018-07-14 Thread Hassan Schroeder
On Sat, Jul 14, 2018 at 1:54 AM, Muhammad Rasul Bobonazarov
<19mra...@gmail.com> wrote:

> I can not run multiple war files on tomcat webapps. All war files are
> unpacking, but they are not running except the last I placed

So what do your log files show?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Getting the Manager app running on localhost.. Please help

2018-07-12 Thread Hassan Schroeder
On Thu, Jul 12, 2018 at 7:58 AM, Désilets, Alain
 wrote:
> I have been trying to get my local Tomcat installation to allow me to deploy 
> apps from the local machine and nothing I do seems to help.

FYI, I'm on MacOS (Sierra 10.12.6). I just now

1) installed apache-tomcat-8.5.32
2) added these two lines to tomcat-users.xml

  
  

3) started tomcat (`bin/catalina.sh run`)
4) open browser to http://localhost:8080/manager/html
5) supplied above credentials
6) uploaded a war file which deployed correctly

I'm not sure why you created a context file, but it seems extraneous...

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Binding a non root user to port 443

2018-03-13 Thread Hassan Schroeder
On Tue, Mar 13, 2018 at 11:18 AM, Cheltenham, Chris
<ccheltenham-...@philasd.org> wrote:

> I may lobby for iptables but the admins are pushing back.

"pushing back" because of laziness or actual reasons?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Mysql vs Postgress

2018-01-24 Thread Hassan Schroeder
On Wed, Jan 24, 2018 at 1:37 PM, Loai Abdallatif
<loai.abdalla...@gmail.com> wrote:

> I have project that is based on Tomcat/apache Servers , any one can help
> regarding the best DB engine  * mysql or Postgress ) keeping in mind that
> I'm interested in DB clustering/Replication feature ?

Aside from personal preferences -- I am not a Postgres fanboy --
why not try them both out and see which you prefer?

As long as you write DB-agnostic SQL you can spin up AWS RDS
instances, one of each, and test-drive for a couple of dollars.

And if you stick with AWS you get replication, hot standby, etc. built in.
(Note: all that might be true of other cloud providers.)

FWIW!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: What jar files do I need to have a java ee website to connect to the databse

2017-05-16 Thread Hassan Schroeder
On Tue, May 16, 2017 at 3:07 PM, Yosef Fastow <yoseffas...@gmail.com> wrote:
> Here is the information from my WEB_INF folder on the database
>
> 

Uh, it looks like your project uses MySQL, eh?

Searching for "mysql jdbc driver" might turn something up 

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: How to create a redirect?

2017-03-03 Thread Hassan Schroeder
On Fri, Mar 3, 2017 at 7:58 AM, JR McVicker <jr.mcvic...@cornerstone.edu> wrote:

> When I go to https://webadvisor.cornerstone.edu my page does not load.   If
> I take out https and replace it with http the page loads and it uses https.

And it's using a non-standard port:

https://webadvisor.cornerstone.edu:8443/WAPROD/WebAdvisor?TYPE=M=CORE-WBMAIN=9075473998

A plain "https://whatever/; URL requires that your SSL server use
port 443 (natively, via proxy, iptables, etc.)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: New to SSL - debugging tomcat

2016-12-21 Thread Hassan Schroeder
On Wed, Dec 21, 2016 at 1:22 AM, Peter Wallis <pwal...@acm.org> wrote:

> Can someone point me to the official how-to debug ssl issues on tomcat?

Did you follow the steps in this documentation?

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

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: probable bug

2016-09-04 Thread Hassan Schroeder
On Sun, Sep 4, 2016 at 3:39 PM, Cristian Lorenzetto
<cristian.lorenze...@gmail.com> wrote:

useful:

   Tomcat version
   JVM version
   standalone reproducible test case

not useful:

>  final boolean mlast = message.isLast();
> final int mlen = message.getPayloadLength();
>
> *mlen is different in the last frame of the same message*

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: probable bug

2016-09-04 Thread Hassan Schroeder
On Sun, Sep 4, 2016 at 1:52 PM, Cristian Lorenzetto
<cristian.lorenze...@gmail.com> wrote:
> i m working on websocket with long messages.
>
> I saw ... payload message length is wrong in the last frame.

->  http://www.catb.org/esr/faqs/smart-questions.html

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Servlet overridden by Apache Tomcat welcome page?

2016-07-03 Thread Hassan Schroeder
On Sat, Jul 2, 2016 at 1:24 PM, Paul Roubekas <paul@orthogroup.holdings> wrote:

> What I am calling the "Apache Tomcat welcome
> page" is the page that comes up when http://localhost:8080 is entered as
> the address on an internet browser.

Assuming a default installation, you should see the index.jsp page
associated with the *default context*, which in Tomcat is named
ROOT (case sensitive).

You need to move or delete the existing ROOT and rename your
own WAR file (or directory) to ROOT.

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Deploy with white screen

2016-06-25 Thread Hassan Schroeder
On Sat, Jun 25, 2016 at 8:40 AM, Jeffrey A Trimble <jatrim...@ysu.edu> wrote:
> I've just deployed tomcat 7.0.70 on a test server, but I'm seeing something 
> very strange and I'd like some advice to point me to a solution.

Start by looking in your logs :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Tomcat, Apache web-server : Simultaneously running both servers and Virtual Hosting.

2015-12-07 Thread Hassan Schroeder
On Mon, Dec 7, 2015 at 7:11 AM, Kernel freak <kernelfr...@gmail.com> wrote:

> More information about this error may be available in the server error log.
>
> So, what am I missing.

To start, the information in the server log referenced above.

Secondly, I'd strongly recommend you start out by using plain old
mod_proxy and mod_proxy_http rather than mod_jk - less config
required, doesn't require changing your Tomcat config other than
picking a different port number than 80 for your connectors.

Good luck,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Tomcat, Apache web-server : Simultaneously running both servers and Virtual Hosting.

2015-12-07 Thread Hassan Schroeder
On Mon, Dec 7, 2015 at 7:58 AM, Kernel freak <kernelfr...@gmail.com> wrote:
> So you don't know what mistake I am making in the configuration?

Why would I? I don't have your server log to inspect. And I haven't
used mod_jk in a very long time, so I didn't even bother looking at
your config.

Also, FYI, Apache httpd has a built-in configuration checker that you
could (and apparently should) run (hint)  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: RewriteCond

2015-05-25 Thread Hassan Schroeder
On Mon, May 25, 2015 at 8:30 AM, Frank Lehmann frank-lehm...@freenet.de wrote:

 I found this condition on the web after several searchings.

 RewriteCond %{HTTP_USER_AGENT}
 (android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|mobile|palmos|webos)
 [NC]
 RewriteRule ^(.+)$ http://www.dashandwerk.net/mobile/ [L]

 But it will not work.

Not surprising, since that's configuration for Apache httpd and has
nothing to do with Tomcat.

 How can i rewrite a url when a mobile client is getting my homepage ?

Assuming you are in fact actually using Tomcat, you can try this:
  http://tuckey.org/urlrewrite/

Good luck,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: tomcat7 PID file and status check

2015-05-15 Thread Hassan Schroeder
On Fri, May 15, 2015 at 6:56 AM, Eric Wood eric.w...@irondata.com wrote:
 I trying to find a service script (init.d) that I can use to start, stop, and 
 check status of my tomcat7 instances.  We run multiple instances of tomcat of 
 a single server. I have found scripts out that where the status call checks 
 the ps table to get the pid to determine the status.

 I thought that tomcat wrote out a .pid file into the file system, but I do 
 not see it in my tomcat instance folder structure. What is the proper way to 
 manage the pid ... do I get it from the process table via ps or do I write it 
 out to the file system?

Look at the output of  `cd $CATALINA_HOME/bin  grep pid *.sh` :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-12 Thread Hassan Schroeder
On Mon, May 11, 2015 at 7:54 PM, Kiran Badi ki...@poonam.org wrote:
 for some reasons it's not going well. Its getting deployed as single app

 www.mywebapp1.com\mywebapp2\ rather than 2 seperate sites.

 mywebapp1 is deployed as root.war

 and I uploaded the webapp2.war in webapps folder and edited server.xml with
 below details,

  Host name=www.webapps2.com appBase=/home/myhostid/tomcat/webapps

Each virtual host needs its own separate non-overlapping appBase.
(See the 'Webapps Directory' section of the doc.)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread Hassan Schroeder
On Fri, May 8, 2015 at 1:25 AM, Mark Thomas ma...@apache.org wrote:
 Wearing my list moderator, Tomcat PMC member and ASF member hats.

 Hassan, I'm sorry that you were the target of this message and I hope
 that it does not discourage you from continuing your valued
 participation here.

Mark, no worries - random chance, I'm sure.

Props for the prompt action on behalf of the list (and other ASF lists)
to avoid seeing more of this person's misdirected anger.

H*
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-08 Thread Hassan Schroeder
On Fri, May 8, 2015 at 6:14 PM, Kiran Badi ki...@poonam.org wrote:

 Here is server.xml I am going to try in this weekend. I have added host
 tags inside the engine element and mapped webapp1 and webapp2.

Looks good, though I didn't actually try them :-)

 Do I need to rename both war files to ROOT.war and drop into the respective
 folders or just drop the war file as is ? I have context xml inside
 meta-inf for both apps.

Yes, each webapp has its own ROOT context, so rename.

 Maybe I can experiment this in dev local box before propagating it to live
 server.

Absolutely. Virtualization rocks. I find myself typing vagrant up so
frequently :-)

Let us know how it goes!

H*
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Tomcat 7.0.57 - Deployment Issue

2015-05-07 Thread Hassan Schroeder
On Thu, May 7, 2015 at 7:24 PM, Kiran Badi ki...@poonam.org wrote:

 www.webapp1.com

 Now I have another webapp2. which I need to deploy it to same tomcat and
 access it as

 www.webapp2.com

 How do I do this ? Appreciate some direction on this please

The docs are probably a good place to start:

http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: A bug on tomcat

2015-04-06 Thread Hassan Schroeder
On Mon, Apr 6, 2015 at 1:12 PM, Francesco Viscomi fvisc...@gmail.com wrote:

 deploy it to Tomcat it do not work anymore.

http://www.catb.org/esr/faqs/smart-questions.html

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: How to force Tomcat to use the system clock?

2015-03-06 Thread Hassan Schroeder
On Fri, Mar 6, 2015 at 3:06 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:

 Don't be quite so sure about the JRE in this case.  This is HP's own JVM, 
 derived from a Sun JVM specifically for HP UX on Itanium hardware.  I don't 
 believe it's being actively developed anymore, but I know HP threw in a fair 
 number of tweaks for their platform.

Write Once, Debug Everywhere   :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: 1st time user

2015-02-27 Thread Hassan Schroeder
On Fri, Feb 27, 2015 at 12:07 PM, Brian V. Casteel
brian.cast...@ilhcgh.org wrote:

 But when how do I make my java on my HTML page from IIS run it?

Could you translate that into English? My Gibberish is rusty.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: 1st time user

2015-02-27 Thread Hassan Schroeder
On Fri, Feb 27, 2015 at 12:38 PM, Brian V. Casteel
brian.cast...@ilhcgh.org wrote:

 At this point I am lost and confused.   I have a page.  I have a bit of java 
 that I want to display on that page and do its little java thing.  However as 
 of right now  my page is showing up as blank.

Again, Java and JavaScript are *not the same*.

You don't need Tomcat to have JavaScript included in a page from
any web server, IIS or otherwise.

So which is it?
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: Session being dropped in Virtual Host in 8.0.9

2015-02-04 Thread Hassan Schroeder
Late to this party :-)

On Wed, Feb 4, 2015 at 2:03 AM, Rory Kelly rory.ke...@fernsoftware.com wrote:

 Rack is a bundle of fun, since this application is a Jruby application,
 which is being converted into a Java application to run on Tomcat. That's a
 whole other can of worms :)

I've only run Rails apps out of Tomcat (as WAR files), not Sinatra/
Padrino, but --

1) Have you tried (non-WAR) using trinidad (embedded Tomcat)?

2) Can you make a simple example WAR available that duplicates
the issue?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

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



Re: “Virtual hosting” with port removed?

2015-02-01 Thread Hassan Schroeder
On Sun, Feb 1, 2015 at 1:04 PM, Micky Hulse mickyhu...@gmail.com wrote:

 I'm using Bitnami's Tomcat 8.0.18-0 Dev (64-bit) installer for OS X Yosemite.

Why? Download the real thing, untar, done. No questions about
packaging issues. Who knows what this thing does?

 https://gist.github.com/mhulse/9c1278fa73a7a62be8ef

 I can't get the vhost working without the port number.

OK, is your problem with httpd or Tomcat?

Is httpd responding to your request for 'http://tomcat.local/'?

If so, then why aren't you proxying everything to Tomcat? You don't
need to proxy every app individually, and you're not proxying ROOT
at all. Your gists and your stated goals seem at cross purposes...

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Static files with default servlet in tomcat 8.0.9

2015-01-12 Thread Hassan Schroeder
On Mon, Jan 12, 2015 at 6:55 AM, Srikanth Hugar
srikanth.hu...@gmail.com wrote:

I am trying to configure static files with default servlet in tomcat
 8.0.9 but could not succeed.

 My directory structure in deployed webapp is:

 - WEB-INF
 - static
  -css
  -images
  -js
 - META-INF

 and* web.xml* configuration using default servlet is :

   !-- static URLs --
 servlet-mapping
 servlet-namedefault/servlet-name
 url-pattern/res/*/url-pattern
 /servlet-mapping

The default servlet will handle your static resources out of the box.

Get rid of the above (/res/*) mapping and access as e.g.
  /myapp/static/js/imports/jquerymin.js

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: REST call failure on newer tomcat version/update

2014-12-22 Thread Hassan Schroeder
On Mon, Dec 22, 2014 at 8:24 AM, Sean Dawson seandawson2...@gmail.com wrote:

 In any case, people do it - and it was working before.

Uh, people do lots of objectively wrong things in web development,
and works in some circumstances ≠ adheres to the spec  :-)

My reading of the RFC (http://tools.ietf.org/html/rfc7231#page-21) is
that there's no reason to expect a response-body from a PUT, even
if the mention of returning either 200 or 204 is a bit ambiguous.

So it wouldn't surprise me to see a server implementation discard a
response-body from a PUT as invalid.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Tomcat giving more request to my application.

2014-11-29 Thread Hassan Schroeder
On Thu, Nov 27, 2014 at 10:34 PM,  sarojkumar.ya...@ril.com wrote:

 following command on my linux server:

 ab -n 10 -c 500
 http://localhost:30080/ESME/StartupServlet?Source_Addr=%2B918895267182Destination_Addr=121short_message=recharge+111+asdrfgtyhu12+222SMS_ID=042040f1-a309-4901-b9f1-3e47bf41c7c2Received_Time=1416404203SmscID=smpp-NVMBD01VSR551MsgCode=0MsgChar=UTF-8MsgUDH=”

 But at the output side, my application is receiving more than 10
 requests.

Aside from not understanding what you mean by the output side,
that sounds unlikely. How are you determining this?

Can you provide a reproducible test case?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: http://courses.apexlearning.com/apps/AceWeb/logon.jsp

2014-11-26 Thread Hassan Schroeder
On Wed, Nov 26, 2014 at 1:50 PM, Travis Power powertrav...@gmail.com wrote:
 it comes from your server/website

Uh, no.

The URL you reference is apparently using a poorly configured
instance of the Tomcat server, but that's as far as the connection
with this mailing list goes :-)

Good luck.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Unable to disable SSL in Tomcat 6 !

2014-11-02 Thread Hassan Schroeder
On Sun, Nov 2, 2014 at 10:09 AM, Utkarsh Dave utkarshkd...@gmail.com wrote:

 Is there any other way to disable SSL in Tomcat 6.

How many ways do you need? The process described in this thread
works as indicated with 6.0.37.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: HTTPS / URLs with no port number / Tomcat only

2014-10-27 Thread Hassan Schroeder
On Mon, Oct 27, 2014 at 10:47 AM, Léa Massiot lmhe...@orange.fr wrote:

 I tried exactly the same modification in server.xml on a Debian Wheezy
 machine and it doesn't work...

Presumably with appropriate changes to the keystore path :-)

 The browser only says that The webpage is not available.
 I can't see anything in the log files but maybe I should...

You should paste (or gist) the log from a Tomcat start that shows
the connector initialization, at least.

Is there any entry in the log for your attempt to connect?

Do you have iptables set up to allow access to port 443?

 I am using jsvc to start Tomcat as a non-root user.
 I couldn't find any information in RUNNING.txt.

The last part of that file is a section Apache Commons Daemon
which references info on setting up jsvc properly.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: HTTPS / URLs with no port number / Tomcat only

2014-10-26 Thread Hassan Schroeder
On Sun, Oct 26, 2014 at 9:04 AM, Léa Massiot lmhe...@orange.fr wrote:

 Now, in all possible cases, I would like to have this URL instead:
 https://localhost/my_webapp/a_page.jsp
 (which doesn't work presently).

 Can this be achieved with Tomcat ONLY? And how?

Configure your https connector to use port 443 and start with jsvc --
see the Apache Commons Daemon section of the RUNNING.txt
file in the distribution.  You *could* run as root, but that's definitely
NOT RECOMMENDED :-)

Alternatively, use iptables to route port 443 requests to your current
port 8443 connector.

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: File download using a servlet and error handling

2014-09-25 Thread Hassan Schroeder
On Thu, Sep 25, 2014 at 7:18 AM, Léa Massiot lmhe...@orange.fr wrote:

 I was thinking maybe about an error-page... (never done that before): in
 case an exception is thrown after the response has been committed, maybe
 this error page could be sent to the user...

Since the user's browser will still be displaying download-file.jsp
after the download, why not add some JS/AJAX to the page to poll
for a status update and display that?

Just another possibility :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Possibly Losing Session when Clustered

2014-09-16 Thread Hassan Schroeder
On Tue, Sep 16, 2014 at 10:06 AM, Christopher Schultz
ch...@christopherschultz.net wrote:

 On 9/16/14 12:02 PM, Peter Kirby wrote:
 Thanks all for your suggestions.  Unfortunately, I had to take the
 quick way out.  I just cloned the other working test server to the
 server in question.  All is working now.  I'm not sure what I
 messed up when setting up this server (3 times), but this will have
 to do for now as I've already spent nearly 2 weeks on trying to fix
 this.

 It might just come down to inspecting ones configuration and ensuring
 that everything is just so.

A shining example of why tools like Chef and Puppet exist :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Error deploying a application

2014-08-12 Thread Hassan Schroeder
On Tue, Aug 12, 2014 at 6:04 AM, Marco Aurelio marcoprod...@gmail.com wrote:

  org.jruby.rack.RackInitializationException: undefined method `+' for
  nil:NilClass
  from
 
 /usr/local/apache-tomcat-8.0/webapps/ROOT/WEB-INF/config/initializers/010_devise.rb:6:in

FWIW, I just tried this on OS X 10.9.4 with Java 1.7.0_45/TC 8.0.9
and a minimal tinkering with the supplied context.xml and it worked
fine.

It appears that the 'Setting.from' in 010_devise.rb isn't being set in
the 000_jobsworth.rb initializer. You /might/ be able to work around
it by hardcoding that value on line 6 but ugh, sketchy...

Are there any lines in the logs prior to that error that look like

  WARNING: Could not find setting .

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Error deploying a application

2014-08-12 Thread Hassan Schroeder
On Tue, Aug 12, 2014 at 11:52 AM, Marco Aurelio marcoprod...@gmail.com wrote:

 What you change in context.xml and where you put this file ? I change this
 file in ROOT/WEB-INF/config but don´t work.

Most of the stuff in there is mail-related and likely not significant
here BUT you do need to change the Resource element values to
the correct JDBC settings for your environment so Rails can find
the DB.

The context.xml file goes in your base Tomcat ./conf directory.

Try that, and if it still fails, gist the startup log and post the url.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Tomcat virtual host shows blank page

2014-07-24 Thread Hassan Schroeder
On Thu, Jul 24, 2014 at 6:25 PM, Arya Farzan arya6...@gmail.com wrote:

 I am using Tomcat by itself. It is pretty much a default installation using
 apt-get on Debian.

Error #1 - dump that and install a real Tomcat.

 I changed the port from 8080 to port 80

Error #2 - don't run Tomcat as root; use jsvc, a proxy server, iptables,
whatever to run as a non-privileged user.

Not the cause of your immediate problem, but don't do it. :-)

You should also supply the Java version you're using after you fix
Error #1 (if you have further questions).

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: installing tomcat7-admin --- I have not /etc/tomcat7 directory

2014-07-12 Thread Hassan Schroeder
On Sat, Jul 12, 2014 at 11:59 AM, Jim Anderson jim_ander...@jjajava.com
wrote:

I am running on crunchbang Linux, a derivative of Debian Linux, and I
 use apt-get to install most packages.

 However, I am in the process of upgrading from tomcat6 to tomcat7 and I
 have a problem because tomcat7
 is not available for download with the crunchbang distribution. When
 tomcat6-admin was installed with apt-get,
 the /etc/tomcat6 directory got populated for me. I downloaded tomcat7 as a
 compressed tar file from
 apache and installed it. The Tomcat7 daemon is running. But right now, non
 of my web applications
 can be accessed from my browser and there is no /etc/tomcat7 directory to
 control the local configuration.

 I will look at the web application failure at a later time. For now, I
 would like to get the tomcat web
 manager running but I need a /etc/tomcat7 directory set up properly.


No you don't :-)

A standard Tomcat installation doesn't (thankfully!) splatter parts of
the app all over the place, Debian-style.

Take a closer look at what you installed; everything you need to run
Tomcat, including the manager app, is right there already.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan


Re: web.xml processing order of directives - filter vs security-constraint

2014-07-05 Thread Hassan Schroeder
On Sat, Jul 5, 2014 at 9:00 AM, Falco Schwarz hid...@falco.me wrote:

 In the end I found a solution which suits my needs: combining the
 RemoteAddrFilter with Spring Security. This way the RemoteAddrFilter
 always prevents access if the client is not localhost.

(Sorry, late to the thread but ...) if you just want to restrict access to
a resource to localhost, why not os-level e.g. an iptables rule?

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Where can I store data files in a tomcat war

2014-07-02 Thread Hassan Schroeder
On Wed, Jul 2, 2014 at 8:34 AM, Christopher Schultz
ch...@christopherschultz.net wrote:

 Or, you could look into Solr which I believe understands clustering.

Or ElasticSearch, also Lucene-based, which is designed from the
get-go for clustering: http://www.elasticsearch.org/

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Generate static website based on user locale

2014-06-10 Thread Hassan Schroeder
On Tue, Jun 10, 2014 at 7:36 AM, Monty wig monty...@gmail.com wrote:

 A twist here is that we are serving different pages based on user location
 (Application has a logic that checks user IP and display content based on
 user location) and wondering is there a tool like wget that also accepts
 any locale?

like wget? wget can send arbitrary headers.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Apache Tomcat 7/8 installation folder on Mac OSX

2014-04-08 Thread Hassan Schroeder
On Tue, Apr 8, 2014 at 4:22 PM, Christopher Schultz
ch...@christopherschultz.net wrote:

 I see different folder options for installing Apache Tomcat 7/8 on
 a Mac: /opt, /usr/local and /Applications. What is the recommended
 folder to install it on Mac OSX?

 I think it's really a matter of personal preference.

 /usr/local is kind of a Linux-ism, while most other *NIXs tend to use
 /opt for extra software installed for all users.

From an older (archaeological!) perspective, /usr/local is more a
BSD Unix standard vs /opt from System V Unix.

But yes, personal preference -- I put things in /usr/local on all my
servers so I do the same on my Mac for consistency. Keeps me
from having to pointlessly genericize shell scripts and whatnot.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: [OT] timeout

2014-04-07 Thread Hassan Schroeder
On Sun, Apr 6, 2014 at 9:24 PM, Vicky B vickyb2...@gmail.com wrote:

 The question i asked was generic one every firewall have some common
 fucntionality .

For someone who previously had no clue that firewall would drop
the connection you assert that with a great deal of certainty.

In any case, the docs for *your firewall* remains the best place to
find the answer to your question.

 I hope you have control on your tongue next time you reply.

I hope you stop asking unanswerably vague questions.

Yet I suspect disappointment lies over that horizon.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: [OT] timeout

2014-04-05 Thread Hassan Schroeder
On Sat, Apr 5, 2014 at 8:35 AM, Vicky B vickyb2...@gmail.com wrote:

  The problem is solved now .

Erm, well. Perhaps for some definition of solved...

 I had no clue that firewall would drop the connection if it does not
 recieve response within stiplulated time.
 Can i increase this timeout period ?

May I suggest Reading The Fine Manual for your particular firewall
would be preferable to asking random non-psychic strangers?

 if firewall was not there then my app would i worked properly ?

Maybe, maybe not; turn it off and see what happens. Or set up a
test environment without one and compare.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: help with setting up proxy

2014-03-23 Thread Hassan Schroeder
On Sat, Mar 22, 2014 at 7:32 PM, Hardik Vaishnav
hardikvaish...@gmail.com wrote:

 Upto this point everything works OK. Request comes to Apache httpd server
 but it is not able to pass the url as is to 192.168.10.101\abc\test.html
 and return the response back to the client.

Apparently you missed my point -- this mailing list has nothing to do
with Apache httpd server, only the Apache Tomcat servlet container.

That said, when you *do* find an appropriate venue for your question
you'll be better off including the relevant part of your configuration file(s)
showing the proxy settings you've tried, and a better problem description
than it is not able to ..., e.g. log file entries, browser message, etc.

Good luck!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: help with setting up proxy

2014-03-22 Thread Hassan Schroeder
On Sat, Mar 22, 2014 at 9:18 AM, Hardik Vaishnav
hardikvaish...@gmail.com wrote:

 I am trying to configure Apache Tomcat as a proxy server.

 I hope I am not confusing everybody.

I think perhaps you are confusing yourself. Tomcat has no intrinsic
proxy server capability to configure. Are you thinking of the Apache
httpd server?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Checking to see if a Tomcat context is alive or hung

2014-03-08 Thread Hassan Schroeder
On Fri, Mar 7, 2014 at 10:16 AM, James H. H. Lampert
jam...@touchtonecorp.com wrote:
 I've been asked to come up with a command-line (or batch job) utility
 (running on an AS/400) to check, programmatically, whether a Tomcat context
 that's part of one of our products is alive and accepting connections, or
 hung.

 Any suggestions?

Unless you're committed to rolling your own solution, how about
NewRelic https://docs.newrelic.com/docs/java/new-relic-for-java

( Disclaimer: I haven't used the java agent myself, just their Rails
agent, but that's great even at the free account level. YMMV. )

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Deny Put Delete

2014-01-23 Thread Hassan Schroeder
On Thu, Jan 23, 2014 at 7:09 AM, Stephan Fletcher
sfletc...@bohrensmoving.com wrote:
 It's a third party that is running the scan.

I've dealt with similar nonsensical compliance scans before, and
my response was:

You believe you can PUT or DELETE files on this installation?

** makes popcorn **

Please proceed. I'll sit here and watch. Take your time.

Morons. Bane of productive peoples' existence.

Also, a special place in hell for the writers of these scanners...
/rant
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: How to update a web app without uploading the WAR

2014-01-21 Thread Hassan Schroeder
On Tue, Jan 21, 2014 at 11:14 AM, Chris Patterson tom...@vittox.com wrote:

 Indeed, not all replacements had a good experience with some specific files.

 Do you know if there is some plugin for Eclipse that helps to do updates or
 sync
 just for the last changes done, or only just for one single file to be
 replaced,
 together with its associated files for successfull micro updates ?

I would seriously reconsider a deployment strategy that packs lots
of large static resources (images, PDFs) along with code.

Being able to just do a standard deploy regardless of the scope of
changes makes for a lot less mental overhead :-)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: JSP in Static Resources

2013-07-14 Thread Hassan Schroeder
On Sun, Jul 14, 2013 at 3:53 PM, Tim Watts t...@cliftonfarm.org wrote:

 If you don't take steps to make them cacheable, they'll be fetched
 every time on every page adding extra load on your server and the
 network.

Which would be *the whole point* of having dynamically generated
style files, eh?  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Doubt about Qmail

2013-05-27 Thread Hassan Schroeder
On Mon, May 27, 2013 at 6:05 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:

 I received a message indicating that We've noticed that it's been a week
 since you read your Qmail messages. Your colleagues might be confused and
 wait for your answers

 How can I answer to tell those messages have already been solved?

 Ignore the obnoxiousness.

Oh, thanks. I was thinking this was a coded message saying that the
hyperspace bypass has been approved, to proceed immediately, and
OMG WHERE IS MY TOWEL?

Heart rate returning to normal in 3...2..1.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: tomcat 6.0.35 in production maintaince

2013-03-14 Thread Hassan Schroeder
On Thu, Mar 14, 2013 at 7:39 AM, Daniel Mikusa dmik...@vmware.com wrote:

 how can I block it

 If your OS has a firewall, you could use that.

If you're on a *nix system, see the man page for  'iptables' and/or
'tcp_wrappers'.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Restarting Tomcat from within itself?

2013-01-28 Thread Hassan Schroeder
On Mon, Jan 28, 2013 at 7:32 AM, Christopher Schultz
ch...@christopherschultz.net wrote:

 Alternatively, you could use a preexisting tool to monitor your
 Tomcat instance like Nagios or Hyperic.

 These solutions really only monitor. Yes, you can configure them to
 react to certain situations by abusing the notification system, but
 they are really meant for monitoring and notification, not for
 automated tasks.

Unlike, say, http://mmonit.com/monit/   :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Best way to log requests from a servlet and to a database?

2013-01-25 Thread Hassan Schroeder
On Fri, Jan 25, 2013 at 6:00 PM, Brian Braun brianbr...@gmail.com wrote:

 What I need is to be able to accept as much HTTP requests as possible, to
 log every one of them as fast as possible (not syncronously), and to make
 everything fast and with a very low usage of RAM when MySQL gets slow and
 inserts need to queue. I think I need some kind of queue to buffer the
 entries when the speed of http request is higher than the speed of
 insertions in the database log.

 3- Using some kind of any other framework that specializes in this?

http://aws.amazon.com/sqs/

Let us know how that works out if you try it  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Tomcat 6.0 - http client

2012-12-14 Thread Hassan Schroeder
On Fri, Dec 14, 2012 at 9:23 AM, Christopher Schultz
ch...@christopherschultz.net wrote:

 I am facing response latency issue when i am invoking the web
 service call ( deployed  on tomcat 6.x) from an http client.

 Maybe your webservice is just really slow?

 Usually, network latency can be separated from all other factors by
 just using 'ping'.

But response latency is not necessarily (or even usually) related
to network latency :-)

May I suggest NewRelic (http://newrelic.com/) for analyzing your
application to find out where the time is being taken up?

Disclaimer: just a satisfied customer.
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Tomcat with multiple domains

2012-11-30 Thread Hassan Schroeder
On Fri, Nov 30, 2012 at 1:50 PM, Christopher Schultz
ch...@christopherschultz.net wrote:

 I'm unaware of a technique to allow partial structural validity (say,
 element nesting) without also explicitly specifying which attributes
 are allowed.

Wait, what? The OP's example isn't even well-formed XML, and any
decent text editor should flag that.

Attribute names and values aren't relevant to well-formed-ness.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Tomcat with multiple domains

2012-11-30 Thread Hassan Schroeder
On Fri, Nov 30, 2012 at 2:12 PM, Christopher Schultz
ch...@christopherschultz.net wrote:

 OP never posted the whole XML, so we don't know that it's definitely
 not well-formed.

Good point -- should have asked for the whole file before jumping to
that conclusion. But it certainly looked sketchy :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Detect in an authenticator whether a connection is persistent or not

2012-10-27 Thread Hassan Schroeder
On Sat, Oct 27, 2012 at 11:36 AM, ken dias kend...@hotmail.com wrote:

 Yes W8 is here but HPQ is still plummeting. Get rid of your CEO and get 
 someone who can improve your stock price!

Que?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Tomcat Connector for Sun ONE Web Server 7.0 and Tomcat 6.0.x

2012-09-19 Thread Hassan Schroeder
On Wed, Sep 19, 2012 at 8:02 AM, Jay Rao jay...@gmail.com wrote:
 Is there a Tomcat Connector for Sun ONE Web Server 7.0 and Tomcat 6.0.x
 running on RedHat Linux 5.7 64-bit ?

 If not, any idea on when will it would be available please ?

My guess: When dead, dreaming Cthulhu wakes in his house at
R'lyeh and schedules a Tupperware party.

I could be wrong, though.
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Best practice for redeployments

2012-07-30 Thread Hassan Schroeder
On Mon, Jul 30, 2012 at 2:57 PM,  llow...@oreillyauto.com wrote:

 Currently, each night we wipe out the wars and then redeploy them with
 fresh copies ...

?!

 What's the general consensus for the best practice for this?

Uh, don't ?

 Are nightly  tomcat restarts even needed  ...

I have legacy apps that run for months, and then only get restarted
when Tomcat itself is upgraded.

 Any recommendations or thoughts or suggestions would be greatly
 appreciated. I'm sure there is some room for improvement in how we do
 things, but I was wondering what was considered a standard practice in
 this area.

Also, I only mount the spare tire on my car when one of the other four
is flat. Irresponsible slacker, I know, but ...

FWIW, YMMV, etc.
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion

2012-06-20 Thread Hassan Schroeder
On Wed, Jun 20, 2012 at 3:28 PM, Samuel Green macun...@gmail.com wrote:
 This afternoon I did a reinstall at /usr/local
 and still am not able to get it started.

15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz
15:42 ~/Downloads $ sudo mv apache-tomcat-7.0.28/ /usr/local
Password:
15:42 ~/Downloads $ cd /usr/local
15:42 /usr/local (master)$ cd apache-tomcat-7.0.28/
15:42 /usr/local/apache-tomcat-7.0.28 (master)$ export CATALINA_HOME=`pwd`
15:43 /usr/local/apache-tomcat-7.0.28 (master)$
$CATALINA_HOME/bin/catalina.sh run
Using CATALINA_BASE:   /usr/local/apache-tomcat-7.0.28
Using CATALINA_HOME:   /usr/local/apache-tomcat-7.0.28
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.28/temp
Using JRE_HOME:
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
Using CLASSPATH:
/usr/local/apache-tomcat-7.0.28/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.28/bin/tomcat-juli.jar
Jun 20, 2012 3:43:18 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Jun 20, 2012 3:43:19 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [http-bio-8080]
. etc. .

So with the new install, what does your startup log look like?


-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion

2012-06-20 Thread Hassan Schroeder
On Wed, Jun 20, 2012 at 6:29 PM, Samuel V Green III macun...@gmail.com wrote:

 I can't download a binary distribution…, I'm running Mac OS Lion and as far 
 as I could see there was no binary distribution ?

 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz

Did you see what I downloaded? Get that.

H*
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: URL Rewriting

2012-06-13 Thread Hassan Schroeder
On Wed, Jun 13, 2012 at 11:12 AM, Kiran Badi ki...@poonam.org wrote:

 why I not getting the url of jsp something like

 http://localhost:8080/ourstory/myiddata.jsp

If you want 'clean' URLs you should get rid of the '.jsp' too, but ...

The bottom line is the value for 'id' needs to come from somewhere.
Your choices are:

1) Embed it in the URL for GET requests, either via query string or
as path info  (e.g. /story/data/17 ) and handle the security aspect
(if any) yourself

2) Use a form to POST the request with the id included (a bit clunky,
 same security issue)

3) Save the 'id' in session and use that -- everyone sees the same URL
 e.g. /story/data but with unique data. Obviously, this doesn't work for
 a resource that's intended to be shared  :-)

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: URL Rewriting

2012-06-13 Thread Hassan Schroeder
On Wed, Jun 13, 2012 at 2:34 PM, Kiran Badi ki...@poonam.org wrote:

 1) Embed it in the URL for GET requests, either via query string or
   as path info  (e.g. /story/data/17 )

 I think this is what I am presently doing.

The query string approach, yes; personally I think the pathinfo approach
is cleaner visually.

 2) Use a form to POST the request with the id included (a bit clunky,
      same security issue)

 Form will not work as data is dynamic and form I feel will not serve the
 purpose.

The data being dynamic isn't relevant. And this approach *is* used
by frameworks like Rails for cases where GET isn't appropriate.

But each approach has advantages and disadvantages, so...

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: How to start a continuous java application in tomcat

2012-05-14 Thread Hassan Schroeder
On Mon, May 14, 2012 at 6:46 AM, Rishad Ali
rishad@turnkey-instruments.com wrote:

 I have a java application which collects some data from sensors and
 stores in the database. This java application has to run continuously.
 On the other hand I have a web application which I am running on tomcat
 which collects the data from database and display it on the web.

They sound like 2 independent applications then, which should *run*
independently.

The fact that they're using the same DB, or sharing some classes, is
not really a good enough reason to mash them together, IMO.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: How to start a continuous java application in tomcat

2012-05-14 Thread Hassan Schroeder
On Mon, May 14, 2012 at 7:33 AM, Rishad Ali
rishad@turnkey-instruments.com wrote:

 I don't want to run mash them. I just want to run the java application.
 On the local server it is working fine but when I try it in the
 dedicated linux server it does not work.

WTF does not work mean?

This apparently has nothing to do with Tomcat, so you should look
for a more appropriate forum for your question, but asking for help
while providing zero actual information, e.g. it does not work, will
assuredly not get you far.

Good luck,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: How to start a continuous java application in tomcat

2012-05-14 Thread Hassan Schroeder
On Mon, May 14, 2012 at 11:48 AM, Pid p...@pidster.com wrote:

 .oO( another chance to post the smart questions link )

Now that mail clients are smart enough e.g. to prompt the user if the
message contains the word attachment but nothing is attached,
maybe we should lobby for a check against (variants of) the phrase
does not work that raises a Have you read this? prompt with the
http://www.catb.org/~esr/faqs/smart-questions.html link...   :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: IE caching problem-

2012-05-13 Thread Hassan Schroeder
On Sun, May 13, 2012 at 6:21 PM, Martin Gainty mgai...@hotmail.com wrote:

 isolating the code from the browser is the logical first step

Wouldn't it be easier to just use wget or curl or even telnet to fetch
the page independently of *any* browser to see what's being sent?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Cannot connect to tomcat through apache (proxy)

2012-04-14 Thread Hassan Schroeder
On Sat, Apr 14, 2012 at 2:46 PM, Gautam adva...@gmail.com wrote:

 All the pages/services on server 1 are working fine.  Only one service which 
 is
 supposed to run on server 2 is giving a 503 error.  We think ...

? think? -- how about starting with:

Where is the 503 being generated, httpd or Tomcat?

What happens when you access the application on Tomcat directly?

What do the httpd and Tomcat logs show when this occurs?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Limiting concurrent requests by user

2012-02-27 Thread Hassan Schroeder
On Mon, Feb 27, 2012 at 12:04 PM, hernan hbe...@gmail.com wrote:

 - how to or where to place and access an object shared by all tomcat threads

 And I'd like to have a solution that can be extended to many tomcat
 instances (in different servers).

Why not just keep counters in an in-memory store like e.g. Redis,
MongoDB, Cassandra, etc. etc.?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: choosing an httpd connector

2012-02-08 Thread Hassan Schroeder
On Wed, Feb 8, 2012 at 4:51 PM, Mari Masuda mari.mas...@stanford.edu wrote:

 I am very new to Tomcat and am trying to determine which connector to use 
 when using Tomcat with Apache.  Here is my situation:

 1.  I am setting up a Drupal site that will be publicly accessible to anyone 
 on the internet.  I intend to use Apache Solr as the search mechanism for 
 said site, hence my need for Tomcat.

snip irrelevant details

 Given these constraints I am not sure which connector would be the best 
 choice.

I don't know anything about Drupal, but my previous experience with
Solr is that *your app* sends requests to Solr -- there is no coupling
with the front-end Apache httpd (or nginx or whatever).

So, none of the above  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Regarding compatibility

2012-02-02 Thread Hassan Schroeder
On Thu, Feb 2, 2012 at 3:12 PM, Donn Aiken donn.ai...@gmail.com wrote:

 It will be open source, right?

Both open *and* closed source.

( Radioactive Isotope and Hammer Not Included. )

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Java.lang.out.of.memory not clearly....

2012-01-30 Thread Hassan Schroeder
On Mon, Jan 30, 2012 at 8:44 AM, Luciano Andress Martini
777u...@gmail.com wrote:

 About the memory leak, I am saying that, not from a hour, but from the
 Genesis time here. ehhehehe.

Or as we used to say at Sun -- hardware breaks while you're using
it, software arrives already broken...   :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: servers @apache.org down ?

2012-01-25 Thread Hassan Schroeder
On Wed, Jan 25, 2012 at 8:28 AM, Mark Thomas ma...@apache.org wrote:

 tomcat.apache.org : connection reset

 Always check the Nagios monitoring site first:

 http://monitoring.apache.org/status/

... though 'tomcat.apache.org' doesn't seem to be on that page ...

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: servers @apache.org down ?

2012-01-25 Thread Hassan Schroeder
On Wed, Jan 25, 2012 at 8:49 AM, Mark Thomas ma...@apache.org wrote:

 All tlp.a.o sites are virtual hosts on www.a.o

 If www.a.o is down, they'll all be down.

Ah, got it, thanks :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: OT: Breadcrumbs Tomcat 7.0.11

2012-01-11 Thread Hassan Schroeder
On Tue, Jan 10, 2012 at 7:18 PM, Kiran Badi ki...@poonam.org wrote:

 I am using base tag

Why? I've been developing web apps since 1993 and can't recall ever
finding a compelling reason to use BASE (experimented, didn't inhale).

You're probably better off just removing it  :-)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: OT: Breadcrumbs Tomcat 7.0.11

2011-12-30 Thread Hassan Schroeder
On Thu, Dec 29, 2011 at 7:15 PM, Kiran Badi ki...@poonam.org wrote:

 One final doubt can I have one servlet similar to listener which will listen
 to the clicks, store the path info,validate the sessions and then push that
 data to some jsp and I can include that jsp in my all pages.Do I need to
 implement this exactly the way we implement httpsession listener ?

I'm not sure what you mean by listen to the clicks, but you have no
way to know (other than JavaScript/AJAX) what the client is doing;
the simplest approach to this problem is to use a Filter to push each
request (or component, e.g. pathInfo) into an Array stored in session.

Then yes, you can format and expose the data via a page fragment
and/or a custom tag.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: OT: Breadcrumbs Tomcat 7.0.11

2011-12-28 Thread Hassan Schroeder
On Wed, Dec 28, 2011 at 12:39 PM, Kiran Badi ki...@poonam.org wrote:

 But I am somewhat lost as how do I pull out the title of the clicked links
 and stick it to breadcrumb path.

Where are you getting the title to put into the page now?

Hint: if the answer *isn't* my database you've got some refactoring
to do  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: OT: Breadcrumbs Tomcat 7.0.11

2011-12-28 Thread Hassan Schroeder
On Wed, Dec 28, 2011 at 2:02 PM, Kiran Badi ki...@poonam.org wrote:

 lia href='../informuser.jsp'Books/a/li

 All these static title which are part of my home page and are base level
 links.I need to pull *Books* between a tags  and stick it in navigational
 bar.

First, Books here is link text, not title; title is an attribute of anchor
(a tag), and you're not using one in this example.

 Other than DB calls is there any other way out.How about using link name
 attribute and sticking it navigational bar ?

Using it how? How are you going to map an attribute of a piece of
static markup to a URL?

Of course, you could also use meaningful links, e.g.

  a href='/books'Books/a

instead of

  a href='../informuser.jsp'Books/a

But you still have refactoring to do  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: OT: Breadcrumbs Tomcat 7.0.11

2011-12-28 Thread Hassan Schroeder
On Wed, Dec 28, 2011 at 3:58 PM, Kiran Badi ki...@poonam.org wrote:

 a href='/books' name=booksBooks/a

 How can I pull out name value here ?

You can't, unless you have a filter parsing the outbound generated
page, or use JavaScript on the client (neither of which I'd recommend).

 request.getparameter is giving me null here.

Of course, there's no parameter being set on that link.

 and other thing I can think of is

 a href='/books'Books/a

 and point the call towards books.jsp and then use request.getGetRequestURL()
 and then strip the last part of the URL and then use that as navigational
 info.

That was my point  :-)  though '/books' is nicer than 'books.jsp' IMO, but ...

 That would be be my first level, and then do similar thing for second
 level with check that at each level  that session id remains the same in all
 cases.

I don't understand that at all -- if you're using the session to keep
track of the breadcrumb path, it's the same by definition.

 Does my thoughts makes sense or do we have some better solutions with pure
 jsp/servlets/jstl with TC without using any plugin?

Again, what magic do you think is going to map some arbitrary text
to a URL used by your application? If you create a simple mapping
table, you can use JSTL to populate your pages (and breadcrumb
trail) appropriately.

For that matter if you use the 'books.jsp' = Books approach, you
can probably use JSTL to do that transform. Or create a custom tag
to handle it (possibly better).

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: [OT] Displaying Time Zones for user preferences

2011-12-21 Thread Hassan Schroeder
On Wed, Dec 21, 2011 at 11:24 AM, André Warnier a...@ice-sa.com wrote:

 Can you not use GeoIP to find out where a user is connecting from, and
 select his time zone automatically for him/her ?

You still need to offer a manual selection option, because it's just not
always accurate.

Once I was investigating geo-location services while on the road to
a show (my wife driving, me working using a Verizon MiFi hotspot).

At one point I was identified by (I think) GeoIP as being somewhere
in New Jersey, while actually in the middle of Utah on US80 -- that's
2 time zones away  :-)

Speaking to the original problem: I agree that for user-friendliness,
you might have to bite the bullet and hand-tailor the dropdown list;
however, to minimize the size *as displayed*, could you include a
JavaScript routine to examine the client time and restrict the list to
the subset that would match that time?

There's only so many TZs where it's currently e.g. 12:17pm  :-)

Just a thought.
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Login fails, then works subsequently (Tomcat 7)

2011-12-21 Thread Hassan Schroeder
On Wed, Dec 21, 2011 at 2:23 PM, Jerry Malcolm 2ndgenfi...@gmail.com wrote:
 Here is the line from GlobalNamingResources in server.xml:

No testWhileIdle / validationQuery settings?

10 to 1 you've got stale connections in your pool; first try fails, second
one gets a fresh connection and away you go.

Just a WAG -- no idea why you'd only see this after upgrading.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Detecting Mobile Device

2011-12-12 Thread Hassan Schroeder
On Mon, Dec 12, 2011 at 9:52 AM, Jerry Malcolm 2ndgenfi...@gmail.com wrote:
 What is the best/recommended way to determine if the request is coming from
 a mobile device?

 Recommendations?

Trying to keep on top of all possible UserAgent strings is madness,
IMO. (Or a business plan, c.f. BrowserHawk.)   :-)

Use CSS3 media queries to adjust your layout according to screen
size/orientation.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: upgrading from 6.0.20 to 6.0.35

2011-12-09 Thread Hassan Schroeder
On Thu, Dec 8, 2011 at 11:13 PM, Pid * p...@pidster.com wrote:

 Yes, but we still usually recommend starting afresh each time. It
 should relatively simple, just make a backup copy of each file you
 edit, first.

Somewhat OT, but I would like to recommend git (http://git-scm.com/)
as the *perfect* way to manage configurations.

It's an unobtrusive, simple way to track your changes without the
clutter of extraneous backup files. And you can easily keep remote
repository copies as well.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: SSL configuration on apache tomcat 6 - Oracle EL5

2011-12-05 Thread Hassan Schroeder
On Mon, Dec 5, 2011 at 1:50 PM, Oladapo Moshood morec...@gmail.com wrote:
 Still waiting to hear from you folks.

Ah, you'd be wanting our Tier 2 30-minute-response support, then.

Would you like to put that on your Visa or MasterCard?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: .nfsxxx file created when undeploying applications

2011-10-23 Thread Hassan Schroeder
On Sun, Oct 23, 2011 at 1:56 AM, Nicolas Dordet dorde...@gmail.com wrote:

 I have a Tomcat 5.5.17 run on Solaris. TOMCAT_HOME is on a mounted NFS
 partition. When doing undeploy of an application, some .nfsxx files are
 created et dot no allow suppression of repertories.

 It seems that one process of tomcat still have files opened when trying to
 remove files and that's why .nfsxxx files are created. So in my point of
 view it is a Tomcat bug, all processes should close files before removing it
 on NFS.

Wow, I had a client with the exact same problem and -- oh, wait, it
wasn't Tomcat, it was OC4J  :-)

And IIRC those files are artifacts that appear for reasons having
nothing to do with undeployment; it's only that undeployment fails
and makes those artifacts' presence obvious.

The fix is *not running an app server off an NFS partition*.  Really.

Doctor, it hurts when I hit myself in the head.

Don't do that.

YMMV,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: control of session timed out with tomcat

2011-10-20 Thread Hassan Schroeder
On Thu, Oct 20, 2011 at 6:51 AM, Alejandro Soto smalejan...@gmail.com wrote:
 Hi my friends, I want to ask you all, If there is a way to control the timed
 out of sessions with tomcat, what I need is when the session timed out,
 automatically the user is redirected to the login page, Is this possible to
 do that from tomcat?, I mean, tomcat triggers some event to the user with
 session timed out, with no need user interaction.

No. That's not how the web works :-)

What you *can* do is put a meta-refresh tag in the head of each page
(with the time set the same as your session timeout) that redirects to a
protected resource, which will bring up the login page.

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: control of session timed out with tomcat

2011-10-20 Thread Hassan Schroeder
On Thu, Oct 20, 2011 at 7:52 AM, André Warnier a...@ice-sa.com wrote:

 1) Tomcat (probably) doesn't spend its time all the time scanning stored
 sessions to see if one has expired, and deleting it.

Actually, it does. That's what session listeners depend on.

So, for example, I can have a ShoppingCart with a method like

public void valueUnbound(HttpSessionBindingEvent httpsessionbindingevent)
{
 empty(); /* remove reserved status from items */
}

If the session times out without the cart contents being purchased,
the cart returns any items it contains to inventory. Very handy :-)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: control of session timed out with tomcat

2011-10-20 Thread Hassan Schroeder
On Thu, Oct 20, 2011 at 8:35 AM, Alejandro Soto smalejan...@gmail.com wrote:

 Well, my system is like a ERP, what I want to do is basically: the user for
 work with the system, first must to be authenticated, then the user can
 works normally, then, if his session timed out, he need to relogin, that is
 the reason because I need to control the sessions, but what the user was
 doing before relogin, must be on hold, if the authentication is successful,
 then the request of the user is committed.

I think you would need to be a lot more precise about requirements,
like what you mean by what the user was doing before relogin.

But generally, if you have some kind of transaction-in-progress when
the session times out -- what's the question? You'll have to save the
transaction state somewhere and re-associate it with the user's new
session after s/he logs in again.

The details could vary wildly according to your specific requirements :-)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Configure tomcat using init.d

2011-10-17 Thread Hassan Schroeder
On Mon, Oct 17, 2011 at 3:04 AM, ettoregia ettore...@gmail.com wrote:

 Regarding the the deploy, I know that by storing a file under
 Catalina-localhost- myAppName.xml in which I specify the path of the WAR I
 would not need to copy WAR under wepApps but Tomcat will do it by itself. Is
 that correct?

Sorry, I'm not sure what you're asking. You need to place your WAR
file *somewhere* to deploy it.

Personally I just put it in the appBase directory, eliminating the step
you describe above.

 For the context.xml, shall I create it, since there's no file so called in
 META-INF.

Yes.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Configure tomcat using init.d

2011-10-17 Thread Hassan Schroeder
On Mon, Oct 17, 2011 at 8:01 AM, ettoregia ettore...@gmail.com wrote:

 I know, but storing the file it's less invasive. At least that suggest the
 Tomcat doc.

Sorry, I'm afraid I don't follow that. But whatever works for you :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Configure tomcat using init.d

2011-10-14 Thread Hassan Schroeder
On Fri, Oct 14, 2011 at 1:52 AM, ettoregia ettore...@gmail.com wrote:

 My system: Linux, the version I'don't know how to realize, since I've got
 just an ssh connection and typing some command I've not been able to
 discover it, maybe you can help me out on this as well.

`cat /proc/version` should give you something useful.

 Alright, I need to deploy .war file under tomcat that actually has 4 engines
 (5.5, 6.0.16, 6.0.18, 7.0), and as I'm used to, I would put under
 /conf/Catalina/localhost, of the engine 6.0.18, a file called
 myAppName.xml to specify the context path of my webApp then I would modify
 the server.xml to specify the jdbc connection and the like. As I've no
 rights to modify anything under the tomcat's home the IT guy told me to use
 the folder init.d/myAppName in order to use any script at boot time to
 accomplish the configuration above.

Huh? Your app's context path should be taken from the name of the
WAR file, and the JDBC config should be contained in the WAR file
in a META-INF/context.xml file.

Nothing else required. Other than an better IT department. :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: problem configuring tomcat7 in ubuntu 10.04

2011-09-29 Thread Hassan Schroeder
On Thu, Sep 29, 2011 at 1:26 PM, Anisha Karki karki.ani...@gmail.com wrote:
 I read that but its not clear on how to manage directories in ubuntu i.e
 Where should tomcat be placed ?

Anywhere you want -- it's your server.

 and what is the command to run the tomcat server ?

Excerpted quote from the documentation:
the full distribution (ZIP file or tarball) includes a file called RUNNING.txt
which is about exactly that...

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Virtual hosts on Tomcat 7 for 3 webapps

2011-09-03 Thread Hassan Schroeder
On Sat, Sep 3, 2011 at 2:51 PM, Ioannis Parapontis
parapont...@gmail.com wrote:

 I have a server that runs 3 different web apps on the same ip but each on its 
 own port. eg ip:8080, ip:8081 and ip:8082. All apps should run simultaneously 
 and have their own folders.  Can a single Tomcat support the 3 of them and 
 can  i use virtual hosts on Tomcat alone ?

Yes. You don't need Apache httpd in front of Tomcat, and you don't
even need to run on separate ports if you use named virtual servers.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Virtual hosts on Tomcat 7 for 3 webapps

2011-09-03 Thread Hassan Schroeder
On Sat, Sep 3, 2011 at 3:25 PM, Ioannis Parapontis
parapont...@gmail.com wrote:

  So it would be useful if some guidelines are provided on how i should do 
 this.

They are; see the documentation's virtual hosting how-to  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: CGIServlet - php

2011-09-02 Thread Hassan Schroeder
On Fri, Sep 2, 2011 at 5:06 PM, throwsCode donmillho...@yahoo.com wrote:

 I'm trying to implement PHP on tomcat 7.0.20

Dear god, why?

I would rather duct-tape rabid weasels inside my shorts than do, well,
anything with PHP again, but if you must -- just use Apache HTTPD.

Seriously.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: CGIServlet - php

2011-09-02 Thread Hassan Schroeder
On Fri, Sep 2, 2011 at 9:25 PM, throwsCode donmillho...@yahoo.com wrote:

 I am predominantly a JSF/Facelets/IceFaces developer but recently I have
 been asked to assist some non-profits which calls for php.

Yeah, that's similar to how I got sucked into doing PHP too :-)
(Fool me once, shame on me yadda yadda...)

 I would like to use my existing development environment which is
 Eclipse and Tomcat.

Mmm. I also don't care much for Eclipse, but in case you want to try
something else, I believe NetBeans has had more PHP focus since
Oracle bought Sun. At the least, trying it might give you some ideas.

Also, google `php quercus` for an alternative to CGI-based solutions.

Good luck  :-)
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



Re: Problem-Tomcat 7.0.16 on mac os 10.6.8

2011-07-15 Thread Hassan Schroeder
On Fri, Jul 15, 2011 at 7:31 AM, Alexandra Stylianidou
alekas...@gmail.com wrote:
 I am trying to run tomcat 7.0.16 on my mac os x 10.6.8 in order to set up
 the SWiM and i have problem to show the tomcat welcome screen.First,i create
 a folder /Library/Tomcat and put the apache file.Then i edit the
 /Library/Tomcat/conf/tomcat-users.xml file ,i run the startup.sh file ,i go
 to http://127.0.0.1:8080/ but no tomcat welcome screen.What am i doing
 wrong?

Look at the logs to see what's happening.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

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



  1   2   3   4   5   6   7   8   9   10   >