Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 9:04 AM, Susan G. Conger
wrote:

> The web app is made by another company that screen scrapes/translates a
> mainframe app and then makes a web app out of it.  They store this in their
> classes directory.  So in order to keep everything together and make
> maintenance and deployment easier, I would like to have all of the
> generated
> code and custom code in one location.  That way I don't have to pull things
> from everywhere when I deploy to the web app to our customers.


That makes no sense at all.

A web app is a web app, and the "classes" directory is only one part
of it.  Pretty much any normal web app includes exposed content like
images, stylesheets, javascript.

Are you saying you deploy *only* a classes directory to customers?
Again, that makes no sense.

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


Re: Serving images from classes directory

2009-06-17 Thread Hassan Schroeder
On Wed, Jun 17, 2009 at 6:56 AM, Susan G. Conger
 wrote:
>
> This may be a bit weird, however there is a reason for it.  I need to
> be able to serve images from the classes directory of my web app.

I have to ask -- why? It seems a pointless complication...

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

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



Re: Tomcat JVM configuration

2009-06-16 Thread Hassan Schroeder
On Tue, Jun 16, 2009 at 7:09 AM, Mehrotra,
Anurag wrote:

> Is there a way to go beyond 2GB for the max memory pool on the above
> platform?
>
> Would Unix allow me to allocate more memory to tomcat (JVM)?

Can't tell you anything about Windows but I'd think any 64-bit OS
would let you allocate more memory than 2GB  :-)

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

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



Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-11 Thread Hassan Schroeder
On Wed, Jun 10, 2009 at 11:48 PM, Lyallex wrote:

>> I know its completely possible to add images the root of a Web-App folder
>> after deployment and have Tomcat "see" them.
>
> Great, any idea how ?
> Others here seem to think that the DefaultServlet will not serve
> content that is uploaded after the server starts and this is the
> behaviour I'm seeing

I don't know who these "others" are, but I just downloaded a fresh
copy of 6.0.20, untarred and started it in its default configuration
(using $CATALINA_HOME/bin/catalina.sh run) and confirmed that
the ROOT webapp welcome page appeared in my browser.

Then I copied a random example.gif image to the ROOT directory
and entered http://localhost:8080/example.gif in my address bar.
And there it is in my browser.

So I think the question is more "what changes have you made to
break the normal behavior?"  :-)

For completeness, this is on a Mac/OS X (10.5.6) running the Mac
HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Hassan Schroeder
On Wed, Jun 10, 2009 at 10:10 AM, Lyallex wrote:

> When I upload a new product I store the image data and the text in the
> database. I did this to try and separate the data from the application
>  with the intention of eventually having the data reside on a separate
> device optimised for serving data ... well that was my original
> thinking anyway.

which, BTW, still doesn't necessarily imply storing images in the DB,
but whatever floats your boat. :-)

> it appears the DefaultServlet will not load resources that have been
> written to disk after the server has been started.

? Works fine for me -- I frequently load new product images to sites
on my server, and no restart is required.

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

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



Re: Authentication from the browser

2009-06-02 Thread Hassan Schroeder
On Tue, Jun 2, 2009 at 1:01 PM, Alec Swan  wrote:

> We have one corporate customer who is putting a link to our servlet on their
> intranet web page. Therefore, we know the domain name of the users who need
> custom authentication.

Seems iffy -- none of these users will ever be working remotely
and need access?

> We can also tell the customer to put whatever we need
> in the link, such as HTTP headers.

? You can't put HTTP headers "in" a link, unless you're processing
it through some proxy mechanism...

> Does this give you enough information to propose a solution?

I suspect you need to write your own solution, though this:
  http://securityfilter.sourceforge.net/
:: has been recommended by others on this list many times, and
might help (I've never used it).

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Authentication from the browser

2009-06-02 Thread Hassan Schroeder
On Tue, Jun 2, 2009 at 11:03 AM, Alec Swan  wrote:
> Hassan, I don't think that the goals are contradictory, because each goal
> applies to its own group of users: our customer users and everybody else.
> Customer users should not have to enter user name and password, but
> everybody else should.

IOW, you want it protected, and you want it openly accessable.
Sorry, that sounds contradictory to me :-)

If you have "a customer who would like to put a link on a web page"
to your servlet, that servlet's URL is now "in the wild" -- anyone who
finds it can access it.

> I am glad that you made me think about this, because maybe it is possible to
> extend Tomcat authentication to also use client IP address or domain?

How would you know a priori the IP or domain of the clients?

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

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



Re: Authentication from the browser

2009-06-02 Thread Hassan Schroeder
On Tue, Jun 2, 2009 at 10:22 AM, Alec Swan  wrote:

> We would also like to continue using the existing authentication mechanism.

> So, the question is how can we ... allow authentication to happen
> without requiring the end-user to type in the user name and password?

Your goals seem contradictory. Maybe you need to rethink... :-)

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

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



Re: jsvc and logging

2009-05-30 Thread Hassan Schroeder
On Sat, May 30, 2009 at 1:54 AM, Malcolm Warren
 wrote:

> The tomcat daemon is started like this:
>
>              $DAEMON -user "$TOMCAT6_USER" -cp "$JSVC_CLASSPATH" \
>                   -outfile SYSLOG -errfile SYSLOG \

> But if I try to change the -outfile and -errfile parameters tomcat doesn't
> start and I get a message saying:
> "No class specified
> Cannot parse command line arguments"
>
> I've tried ...

> -outfile ./logs/catalina.out -errfile ./logs/catalina.err

That should be fine; one of my installations starts like:

$CATALINA_HOME/bin/jsvc -user tomcat \
  -cp ./bin/bootstrap.jar \
  -outfile ./logs/catalina.out \
  -errfile ./logs/catalina.err \
  -pidfile /var/run/tomcat.pid \

Are you using a standard or third-party repackaged Tomcat? If the
latter, all bets are off  :-)

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

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



Re: Compile JSP before the first request arrives

2009-05-27 Thread Hassan Schroeder
On Wed, May 27, 2009 at 6:51 AM, Serge Fonville
 wrote:

>> To precompile a JSP page, access the page with a query string of
>> ?jsp_precompile
>
> How is this different from just accessing the page after deploying it?

Yeah, what?  :-)

> And can this also be done for an entire webapp instead of a single page?

Run a link checker against your app and voila, you not only know if
you have anything to fix, but all the JSPs are compiled.

Launch party!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Debian Tomcat Fail

2009-05-26 Thread Hassan Schroeder
On Tue, May 26, 2009 at 7:22 PM, trojansnake12  wrote:
>
> I am about at my wits' end here

> I'm using ... gcj4.3 on the debian box.

Correlation?   :-)

Place your bets, ladies and gentlemen, place your bets...

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

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



Re: hwllo.html

2009-05-26 Thread Hassan Schroeder
On Tue, May 26, 2009 at 5:55 PM, veena pandit  wrote:
> I saw that the tomcat example has a servlet example and a jsp example but no
> html example.

Perhaps you need to download a current version; they all include
HTML files.

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

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



Re: hwllo.html

2009-05-26 Thread Hassan Schroeder
On Tue, May 26, 2009 at 5:43 PM, veena pandit  wrote:
> I dont know where to place it.  I am following some tutorial.

How about starting off with the actual Tomcat documentation? That
would probably get you a lot farther.

Oh, and looking at the examples included in the standard distro.
And speaking of examples,

> I placed it under tomcat root  in a directory named web-apps

  did you see any other files there?

Something to think about. :-)

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

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



Re: hello world

2009-05-26 Thread Hassan Schroeder
On Tue, May 26, 2009 at 5:18 PM, veena pandit  wrote:
> How to configure Hello.html in Tomcat?
>
> Where do I place the following file?  How to access it from the server?

Where did you try placing it, and what makes you think that wasn't
the right place?

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

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



Re: Peering into the pit of jar hell - the mess of tomcat's and other jars in RPM distributions

2009-05-22 Thread Hassan Schroeder
On Fri, May 22, 2009 at 12:01 PM, Gary Weaver  wrote:
> Sorry to open up with venting, but I truly cannot believe how big of a mess
> that I found of Tomcat's and others' jars under /usr/share/java in a CentOS
> 5.2 distribution I examined this morning.

Uh, shouldn't you be bringing this up on a CentOS mailing list then? :-)

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

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



Re: Cannot establish a database connection. Cannot create JDBC driver of class '' for connect URL

2009-05-22 Thread Hassan Schroeder
On Fri, May 22, 2009 at 10:34 AM, raghu ram srinivas
 wrote:

>                     *PVSmy web applicaiton*
>                            ---
>                                 WEBINF

s/b WEB-INF

>                                 META-INF
>                                           *pvs.xml (contxt.xml)*
>
>  *pvs.xml (contxt.xml)*

No idea what you're trying to say there, but the file should be
named "context.xml" and should contain a Context element
with all this in it

>               type="javax.sql.DataSource"
> driverClassName="oracle.jdbc.OracleDriver"

Shouldn't that be "oracle.jdbc.driver.OracleDriver" ??

> and I also got jojdbc drivers: ojdbc14.jar,ojdbc5.jar,ojdbc6.jar in lib
> folder.

And having multiple versions of the same class in your app is most
certainly not a good idea -- pick one :-)

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Getting Tomcat 6.0.18 to work on ubuntu 9.04 for public connections

2009-05-20 Thread Hassan Schroeder
On Wed, May 20, 2009 at 12:20 AM, NicolaiFrydenlund Larsen (NLS)
> I used putty to login and tried to telnet both as user and root, but both 
> returns this message:
>
> "telnet: Unable to connect to remote host: Connection refused"

Then it sounds like Tomcat  isn't running, contrary to your earlier

> I've installed the tomcat on the ubuntu machine, and by looking
> at the logs tomcat is running, on port 80.

Maybe you can post the log of a startup attempt?

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

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



Re: How to hot swap classes?

2009-05-19 Thread Hassan Schroeder
On Tue, May 19, 2009 at 3:43 PM, Dola Woolfe  wrote:

> I added a context.xml file under WEB-INF with the following content:

WEB-INF != META-INF

>> > Where do I find the context.xml for a specific
>> webapp?
>>
>> The author of the webapp (you) would normally create it in
>> the webapp's META-INF directory.

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

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



Re: Deploy Tomcat Standalone - good idea or not?

2009-05-19 Thread Hassan Schroeder
On Tue, May 19, 2009 at 2:12 PM, johnrock  wrote:

> Thank you for your comments. I would love to simply run tomcat on port 80 as
> tomcat user. I have not yet discovered how to do this and have been running
> as 'tomcat' user on port 8080. I had seen some posts mentioning JSVC but I
> remain unclear about what this is for.

<http://tomcat.apache.org/tomcat-6.0-doc/setup.html> should help :-)

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

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



Re: Getting Tomcat 6.0.18 to work on ubuntu 9.04 for public connections

2009-05-19 Thread Hassan Schroeder
On Tue, May 19, 2009 at 10:05 AM, NicolaiFrydenlund Larsen (NLS)
 wrote:

> This is a copy-paste of the browsers error message:

> Explanation: The Web server refused the connection.

>        Technical Information (for support personnel)
>
>    * Error Code 10061: Connection refused
>    * Background: The server you are attempting to access has refused the 
> connection with the gateway. This usually results from trying to connect to a 
> service that is inactive on the server.

?? Never seen that -- what browser are you using? Regardless,

>>> Since I've installed the tomcat from remote I haven't tried to see if it 
>>> >is working with localhost.

> I only have remote access to the server via putty so I can't browse to 
> localhost.

You could use an ssh tunnel, or you could just log in and type e.g.
prompt% telnet localhost 80
GET / HTTP/1.0

and see what happens. If you can connect there, it's probably your
server's firewall.

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: How to hot swap classes?

2009-05-19 Thread Hassan Schroeder
On Tue, May 19, 2009 at 9:55 AM, Dola Woolfe  wrote:
>
> My apologies - worked as advertised!
>
> The only thing I noticed is that it restarts the webapp right away - and all 
> of the webapps that depend on the class.

Is this comment at the top of that file not meaningful enough???



>> in tomcat/conf/context.xml

If you don't want all webapps affected, only apply reloadable to the
context.xml file for that one webapp.

And yes, it will restart the webapp as soon as it notices the change...

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

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



Re: Getting Tomcat 6.0.18 to work on ubuntu 9.04 for public connections

2009-05-19 Thread Hassan Schroeder
On Tue, May 19, 2009 at 9:41 AM, NicolaiFrydenlund Larsen (NLS)
 wrote:

> I've installed the tomcat on the ubuntu machine, and by looking at the logs 
> tomcat is running, on port 80. My problem is that when trying to connect to 
> it from a public computer the browser gives me a "connection refused" and 
> something with error 10061.

"Something"?? A little bit more on specifics would be good.

> Since I've installed the tomcat from remote I haven't tried to see if it is 
> working with localhost.

Why not? That would be a good first step.

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

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



Re: Problem: JSP works in Firefox but not in Internet Explorer

2009-05-19 Thread Hassan Schroeder
On Tue, May 19, 2009 at 12:47 AM, Jan Peters  wrote:

> I developed a mapserver client application that embeds a Flash object within 
> a JSP page using a taglib to trigger a JSP database query to create a new map 
> for the viewer. All of this works perfectly in Firefox but Internet Explorer 
> exits with the error "Site [mysite] cannot be loaded. Process terminated."

I don't use mod_jk, but I'd recommend you try recreating this
first without it (direct connect to Tomcat).

> 
>  <%@ taglib uri="taglib.tld" prefix="j" %>
>  

No idea if it's relevant, but why in the world would you put a taglib
declaration inside page markup??  I would put that at the start of
the page before any response output is set.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: .html pages as .jsp pages

2009-05-14 Thread Hassan Schroeder
On Thu, May 14, 2009 at 3:52 PM, André Warnier  wrote:

> Now just as an idea : leaving everything as it is, apparently when you
> download those pages via wget, you get them named as *.jsp, but they are
> otherwise ok, yes ?

No, because if you develop under a .jsp suffix, all your links point to
*.jsp pages. So you would have to rename *and* change all internal
links -- every time you make a change and have to re-fetch.

OTOH, it's a small *one-time* change to your web.xml, so why do
anything else?

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

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



Re: .html pages as .jsp pages

2009-05-14 Thread Hassan Schroeder
On Thu, May 14, 2009 at 1:43 PM, Ken Bowen  wrote:
> Yes, but why the need to use the .jsp extension?  A static site would run
> just fine with everything as .html under
> either Tomcat or httpd or 

Missing the point -- we're talking about static *deployment* of a
dynamically *generated* site.

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

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



Re: .html pages as .jsp pages

2009-05-14 Thread Hassan Schroeder
On Thu, May 14, 2009 at 1:22 PM, Robert Koberg  wrote:

> To the OP, once you have taken down the JSPs, perhaps you could use
> something like Ant's globmapper to change the extension

No, as already pointed out, just add the *.html mapping to the JSP
servlet def in your app. No conversion necessary.

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

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



Re: .html pages as .jsp pages

2009-05-14 Thread Hassan Schroeder
On Thu, May 14, 2009 at 12:54 PM, Ken Bowen  wrote:
> The point of dynamic jsp pages is to dynamically create pages on the fly
> based on information from the user.

Not necessarily...

> What's the point of using jsp to "dynamically" create pages offline that you
> only serve statically?  Why not just write them in html from the beginning?

I've done this before for a client using basic hosting where creating
a data-intensive site would have been painfully time-consuming, if
not flatly infeasible.

But with Java/JSP/JSTL, wham-bam-thank-you-ma'am, done.

A quick wget and there's your static site. Makes total sense.

YMMV :-)
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Virtual host configuration problems

2009-05-12 Thread Hassan Schroeder
On Tue, May 12, 2009 at 10:13 AM, JDawg72  wrote:
>
> ... but what has to happen when I need to add another
> domain and application to this instance of Tomcat?

<http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html>

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

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



Re: Redirecting/proxying/forwarding webapp

2009-05-10 Thread Hassan Schroeder
On Sun, May 10, 2009 at 7:31 AM, Jeroen Kransen  wrote:
> Hello, is there a webapp that will redirect all incoming requests to
> another host/path? I have a Lenya instance running on one virtual
> host, and want another virtual host point to its live publication like
> this:
>
> jeroen.example.com/* > cms.example.com/jeroen/live/*
>
> Both virtual hosts run on the same Tomcat instance, so if there's a
> way to use some Tomcat internal mechanism to do the forwarding, that
> might give a performance benefit. Otherwise, a more generic
> redirecting webapp would be great.

1) why not just write your links to point where you want?

2) you can forward across webapps within a Host by setting the
crossContext attribute true, but not across Hosts

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

3) if you *really* want to redirect: <http://tuckey.org/urlrewrite/>

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: SSL Mysterious Self Signed Certificate - FIXED

2009-05-08 Thread Hassan Schroeder
On Fri, May 8, 2009 at 8:03 AM, Andrews, Wayne  wrote:

> In summary Tomcat requires a .keystore file under c:\document and
> settings\default user and as such the one there was not the one details
> within server.xml.

That would be terribly awkward for all of us running Tomcat successfully
on non-Windows platforms, eh?  :-)

> Q: Whats the point of referencing a specific keystore within server.xml
> if it does take notice of it?

Referencing a "specific keystore" most assuredly works just fine --
your configuration has an error somewhere.

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

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



Re: Multiple Context and Websites

2009-05-07 Thread Hassan Schroeder
On Thu, May 7, 2009 at 5:56 AM, Alexander Diedler  wrote:

> Tomcat1.de and tomcat2.de point to the same Tomcat 6.0.18 server (edit
> Windows hosts-File).

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

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Weekly restart of Tomcat service

2009-05-06 Thread Hassan Schroeder
On Wed, May 6, 2009 at 1:52 PM, Jack, Brandy  wrote:

> If we don't restart, the users cannot access the application.

They get a 404, or ___?

> It is java based (I think) and they blame it on the SQL server (of
> course) which is an entirely different server.

If I were you I'd install Lambda Probe
  <http://www.lambdaprobe.org/d/index.htm>
and use it to follow DB connection pool and memory usage, etc. at least.

An exhausted connection pool can make it seem like the app has
simply stopped...

> I am looking in the tomcat log files from days past.
> But I'm not sure which log files contain the errors I should be looking
> for.
> Is it the catalina files or the stderr files?

Depends on how logging is set up, which is pretty flexible. Do tail -f
on all of the ones with current timestamps and wait for the app to go
to sleep again :-)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Weekly restart of Tomcat service

2009-05-06 Thread Hassan Schroeder
On Wed, May 6, 2009 at 1:35 PM, Jack, Brandy  wrote:
>
> We currently have a 3rd party application that isn't stable and we have
> to restart Tomcat at least once a week to keep the application running.
>
> We have nagged the 3rd party vendor so much about other application
> fixes that asking them to fix this would require some information and
> statistics that indicate it is a coding or configuration issue.

What happens if you /don't/ restart? Aren't there log messages that
would be enough to convince them there's a problem?

> Has anyone had any experience in regards to gathering performance stats
> for Tomcat

Here's one from lambdaprobe running on my production server (on
Tomcat 6.0.x) -- "UP for 328 days 19 hours 34 minutes"

One example of *not* requiring weekly restarts  :-)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Prevent Hot Linking

2009-05-04 Thread Hassan Schroeder
On Mon, May 4, 2009 at 6:03 AM, Andre-John Mas  wrote:

> I have seen some site block images from being loaded if the referrer is not
> the site in question. I don't know if this is possible with Tomcat?

Easily done with a Filter, except that:

1) The referrer header is not required by the spec.
2) Some browser plugins block the referrer header from being sent.
3) It's easily forged.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: hot-deploy problems

2009-05-03 Thread Hassan Schroeder
On Fri, May 1, 2009 at 7:52 AM, david owens  wrote:

> I don't currently specify a config.xml and it seems to
> have something to do with that (docbase and appbase being
> the same?).

Are you saying you have docBase == appBase?

If so, don't :-)

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

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



Re: GZIP Comrpession Problem

2009-05-01 Thread Hassan Schroeder
On Fri, May 1, 2009 at 12:57 PM, Glen Goodwin  wrote:
> So this implies that 5.5.27 has this fixed and 6.0.18 does not. I'll make a
> note of that.

ripple:/tmp$ curl -s -o nul: -H "Pragma: no-cache" -H "Cache-Control:
no-cache" -w "Bytes Uncompressed ... %{size_download}\n"
http://localhost:8080/jquery-1.3.1.js
Bytes Uncompressed ... 117446

ripple:/tmp$ curl -s -o nul: -H "Pragma: no-cache" -H "Cache-Control:
no-cache" -w "Bytes Uncompressed ... %{size_download}\n" --compressed
http://localhost:8080/jquery-1.3.1.js
Bytes Uncompressed ... 34638
ripple:/tmp$

Tomcat 6.0.18  + OS X/JDK 6 (latest Apple version)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: looking for a web usesage / analytics package

2009-04-29 Thread Hassan Schroeder
On Wed, Apr 29, 2009 at 3:24 PM, Andrew Davidson
 wrote:

> My problem is that I need to create a tracking jpg. I need a way to count
> the number of times this image is loaded.

If that's all, why not just write a Filter to grab each request and stuff
the relevant data in a DB? Or alternatively, why isn't the "image" just
a servlet that returns the graphic part and records the request?

Either one would give you records you could post-process in a variety
of ways...

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: looking for a web usesage / analytics package

2009-04-29 Thread Hassan Schroeder
On Wed, Apr 29, 2009 at 2:59 PM, Andrew Davidson
 wrote:

> Does anyone know of a good web site analytics / usage reporting package? I
> do not need anything real fancy, just basic info about # unique visitors,
> page views, .

> Ideally this would be implemented as a war file I can just drop on my server

Have you looked at Google Analytics? Just a snippet of JS in each
page and you're done; could even be injected via a Filter for minimal
dev impact.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: how to change the website name ?

2009-04-28 Thread Hassan Schroeder
On Tue, Apr 28, 2009 at 1:30 PM, bhavik shah  wrote:

> instead of that I want some generic name i.e. http://myname.com what kind of
> configuration required for that?

google "Domain Name System" (DNS)

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Tomcat and Apache HTTPD modules?

2009-04-27 Thread Hassan Schroeder
On Mon, Apr 27, 2009 at 3:41 PM, Andre-John Mas  wrote:

> If Apache HTTPD is dropped for a pure Tomcat solution, which standard
> modules have Tomcat equivalent solutions? For example:
>  - Mod Rewrite

http://tuckey.org/urlrewrite/  -- it's Close To A Standard :-)

>  - HTTPS
>  - Virtual Hosts

both built in,

> It may be interesting to get some of this into the official Tomcat
> documentation.

and documented.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Undeploy does not delete all .jar files

2009-04-22 Thread Hassan Schroeder
On Wed, Apr 22, 2009 at 12:58 PM, JT  wrote:

> My application context.xml file looks like this.
> 
>    
>           driverClassName=”oracle.jdbc.driver.OracleDriver”
> url=”jdbc:oracle:thin:@.../>
> 

I'm surprised Tomcat even starts with that -- Context elements
can't be nested. Try:


   


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

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



Re: Tomcat Security and Struts

2009-04-22 Thread Hassan Schroeder
On Wed, Apr 22, 2009 at 11:43 AM, Mighty Tornado
 wrote:
> How can I make the request to port 8443 actually succeed?

Configure an https Connector.

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

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



Re: Tomcat Security and Struts

2009-04-22 Thread Hassan Schroeder
On Wed, Apr 22, 2009 at 11:16 AM, Mighty Tornado
 wrote:
> I think the following might be a problem. When I access the application I
> get this error in the browser:Firefox can't establish a connection to the
> server at localhost:8443
>
> But Tomcat is supposed to listen on port 8080 - and it has been for my app,
> until I put in the security feature.
>
> any way around this?

Er, "way around"? You're *telling* it to use an SSL connection:

  
  CONFIDENTIAL
  

If you don't want it to, don't do that. Pretty simple, really.  :-)

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

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



Re: Prevent Hot Linking

2009-04-19 Thread Hassan Schroeder
On Sun, Apr 19, 2009 at 7:37 AM, André Warnier  wrote:

> But basing the acceptance or rejection on a HTTP request header sent by the
> browser is not absolutely secure, in the sense that this can easily be faked
> using any HTTP client agent such as wget, curl, lwp-request etc..

True. But it seems relatively trivial to write a filter that would add the
originating IP of each request for the base resource, e.g. 'foo.html',
to an in-memory list.

Then requests for the targeted resource, e.g. 'bar.jpg', can be easily
checked against that list and rejected if the request IP isn't present.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Installing Tomcat

2009-04-15 Thread Hassan Schroeder
On Wed, Apr 15, 2009 at 10:49 AM, Jonathan Mast
 wrote:

> By Jakarta-Whatever, I'm referring to the commons-daemon package, as
> indicated on the setup page:
> 
> Download a commons-daemon binary from the Jakarta Commons download page, and
> place jsvc.tar.gz and commons-daemon.jar in the $CATALINA_HOME/bin folder.
> 

Well, I haven't looked at those docs in a while, but ...

> Why can't they even link to this project?

the tar file of jsvc source is included in the Tomcat bin directory...

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

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



Re: Virtual Hosts

2009-04-15 Thread Hassan Schroeder
On Wed, Apr 15, 2009 at 7:44 AM, gisrob  wrote:
>
> Can anybody offer any guidance or advice on how I can set up some virtual
> hosts for my application that has multiple skins.
>
> I want to be able to go to http://flavour1 instead of having to type in
> http://longhostname/service/program.jsp?skins=flavour1, and similar for
> flavour2, flavour3, etc..
>
> All the documentation seems to point to virtual directories, and when I have
> tried to use the syntax detailed here
> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html

If you followed the above -- showing the relevant part of server.xml
would probably be helpful -- and entered a url like

http://flavour1.example.com/

in your browser,

> Tomcat tries to open a directory called /service/program.jsp?skins=flavour1/

erm, well, that sounds highly unlikely.

> How do I phrase the context syntax correctly?

No idea what that means. Each virtual host will have a ROOT context;
what that contains is up to you.

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

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



Re: Installing Tomcat

2009-04-14 Thread Hassan Schroeder
On Tue, Apr 14, 2009 at 6:00 PM, Jonathan Mast
 wrote:

> I've pretty much concluded that the problem is that the machine in question
> is SELinux-enabled and that is cause of Tomcat's inability to access the
> 8080 port (even though I can see tomcat on the process list, a "netstat -a"
> indicates shows no entry for 8080).

sounds fixable...

> 1) Why not run Tomcat as root?  We have Tomcat running as root on our
> current setup (Httpd 1.3.33, Tomcat 5.5, JDK 1.4), I presume Tomcat 6 (JDK
> 1.6) running by itself must be more secure than our current situation.  Any
> comments?

Exposures are usually in apps; running any application with the
lowest possible privilege level reduces risk. But there's no law
against living dangerously -- we've probably all done it :-)

> 2) My problem with jsvc is multiple:

> c) really, if all this stuff is the "correct" way to run Tomcat on linux,
> why doesn't come as part of the distribution?

uhhh... it does. And I've never had to do more than ./configure and
make on any platform to get it going.

But as already pointed out -- run Tomcat on any non-privileged port
and connect it to port 80 with iptables.

> 4) I really want to avoid the complexity of httpd (see 2.a)

An easy goal to reach, luckily. :-)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Cannot access Tomcat from Host Machine PLZ Help

2009-04-07 Thread Hassan Schroeder
On Tue, Apr 7, 2009 at 9:36 AM, timmy_  wrote:

> Anyway I'll try reinstalling everything on Virtual Box...VMWare is making me
> have
> a lot of trouble when it shouldn't be supposed to...

VMWare isn't causing you any trouble -- your *configuration* of the
networking for the virtual host is causing you trouble. :-)

Give it its own IP and interface and it'll work as you want.

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

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



Re: Forwarding from one Context to another

2009-03-29 Thread Hassan Schroeder
On Sun, Mar 29, 2009 at 5:52 PM, Caldarale, Charles R
 wrote:

>> ServletContext appContext =
>> this.getServletConfig().getServletContext().getContext( "/dev" );
>
> You certainly don't need "this" in the above; nor is getServletConfig() 
> necessary, if the code is in a class that extends HttpServlet.  Doing so just 
> adds unnecessary overhead.

Absolutely correct -- serves me right for grabbing something out of a
bucket full of ancient experiments.

I should cut down on the context switching between ruby/rails/rspec
and java/servlets -- getting a slight case of whiplash  :-)

Thanks for setting that straight!

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

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



Re: Forwarding from one Context to another

2009-03-29 Thread Hassan Schroeder
On Sun, Mar 29, 2009 at 4:34 PM, behofmann  wrote:
>
> When trying to forward my .jsp to another  in Tomcat 6.0.18 using
> the following code, I get the following error:
>
>      ServletContext appContext = ServletContext.getContext( "/dev" );

Try:

ServletContext appContext =
this.getServletConfig().getServletContext().getContext( "/dev" );

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: job announcement - Software Architect

2009-03-22 Thread Hassan Schroeder
> followed the link to Wikipedia (automatically assumed this is what he meant)
> http://en.wikipedia.org/wiki/Test-driven_development

:: which includes in the initial description the line:
  "Note that test-driven development is a software design method, not
   merely a method of testing."

TDD/BDD as an iterative *design* process is one of those things that
I think you just have to try until you achieve that 'a-HA!' moment :-)

YMMV!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Hassan Schroeder
On Mon, Mar 9, 2009 at 12:23 PM, Len Popp  wrote:
> What I mean is, clients *never* access a .jsp file by URL, e.g.
> "http://www.example.com/app/foo.jsp";. All URLs seen by the client are
> mapped to servlets, not JSP files.

> The reason for doing it this way is to separate app logic from page
> layout. I find it difficult to code a substantial app by mixing Java
> code into JSP pages, and it's lots easier to modify the format of a
> web page if the app logic isn't all tangled up in it.

+1 on that approach, makes life a whole lot easier.

Besides being MVC, it goes along with Tim B-L's classic stance that
"cool urls don't change" -- don't reveal the technology being used by
using a file suffix that you may later want/need to change...

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

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



Re: Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization

2009-02-18 Thread Hassan Schroeder
On Wed, Feb 18, 2009 at 11:32 AM, acacio costa
 wrote:

> Does anyone use Apache Tom Cat in a VM as VMWARE or Red Hat Virtualization?

FYI, it's "Tomcat".

> i apreciate to know if you have issues and a tips to go on.

I've run Tomcat under VMware for testing purposes. No issues, it's
no different than running it on a different host.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread Hassan Schroeder
On Sun, Feb 15, 2009 at 9:09 AM, Julien Martin  wrote:

> I now get a 404 tomcat error.

1) don't post config files full of commented-out example stuff. We've
all seen it, it isn't relevant, and it makes it hard to read the parts
that /are/ relevant.

2) are you sure your Tomcat instance has started correctly? You can
get the default ROOT page? No errors in the logs?

3) if you're only deploying one hostname, why don't you just go back
to the original config, rename your app to ROOT.war and put it in
    the base webapps dir?

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

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



Re: Please help with setting up a tomcat configuration in production...

2009-02-15 Thread Hassan Schroeder
On Sun, Feb 15, 2009 at 8:33 AM, Julien Martin  wrote:

> I'll try the suggested solution and keep you posted...

You might also find the virtual hosting how-to in the docs useful.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Internal server error - Apache

2009-02-08 Thread Hassan Schroeder
On Sun, Feb 8, 2009 at 8:06 AM, Randhir singh
 wrote:
> Thanks, for your answer. The error_log shows like the following:-

Sorry, that doesn't look to me like a error trace, but I haven't used
mod_jk in like forever. Maybe someone else can shed some light.

(Or maybe there are other clues somewhere...)

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

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



Re: Internal server error - Apache

2009-02-08 Thread Hassan Schroeder
On Sun, Feb 8, 2009 at 7:18 AM,   wrote:

> I am getting internal server error when trying to access the website.

> What could be the reason for this.

1) error in server config
2) error in application code
3) error in external resource (e.g. database)
4) dude, the universe is just messin' with ya

More specific details should be in your error logs.

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Using tomcat to Post a datafile for download

2009-02-04 Thread Hassan Schroeder
On Wed, Feb 4, 2009 at 10:57 AM, gordonk66  wrote:
>
> I'm using tomcat 6 and axis2 for webservices.  I'd like to make a tar file
> available for download via wget.  Is there anywhere in tomcat I could drop
> that file?

Just put it anywhere within your webapp other than the WEB-INF or
META-INF directories.

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

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



Re: AJP vs HTTP connectors?

2009-02-03 Thread Hassan Schroeder
On Tue, Feb 3, 2009 at 7:38 AM, Eric B.  wrote:

> Is there any documentation / howtos available for securely setting up
> mod_proxy_http and/or mod_proxy_ajp with tomcat?  The little that I
> know/remember about mod_proxy_http is that if you're not careful, you can
> end up with some major security holes in your installation.

Do you have any references to substantiate that?

Because a quick google turns up *one* reference to a DoS attack
vulnerability in Apache httpd 2.0 -- which requires the "attacker" to
*own* the system being proxied to, an unlikely scenario IMHO.

And for the record I prefer mod_proxy_http because I can monitor
all active production connectors with standard http requests using
e.g. Nagios, as well as manually check with a browser.

So I'd definitely be interested in hearing more about any other known
vulnerabilities.

H*
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: mod_headers and .htaccess for P3P policy

2009-01-07 Thread Hassan Schroeder
On Wed, Jan 7, 2009 at 5:49 AM, Sergio Arrighi
 wrote:

> I'm using apache 6 on a Windows server machine.

> I've read on the internet that this is possible using .htaccess file in the
> webapp directory.

You've read wrong :-)  '.htaccess' files are used with Apache httpd,
/not/ Apache Tomcat.

However, you can add headers via code in your JSPs, servlets, or
cover the whole app with a Filter.

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: by passing virtualhost when accessing an app?

2009-01-06 Thread Hassan Schroeder
On Tue, Jan 6, 2009 at 5:04 AM, Angelo Chen  wrote:
>
> that's what i'm doing now, i was just hoping maybe there are ways without
> updating the hosts files, reason is, when you ask somebody to try out your
> app from a certain website and told them to update the hosts file, 9 out of
> 10 will not do it, of course this happens only during development when the
> domain is not yet pointed at the app.

Well, good practice would be to have a dev/staging server for this,
rather than your desktop :-)  but...

Just give them your IP address, and make sure the app in question
is under the default Host.

FWIW,
--
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Setting Up PHP on Tomcat

2009-01-01 Thread Hassan Schroeder
On Thu, Jan 1, 2009 at 11:22 AM, michel  wrote:
>
> ouch, I got that one wrong thanks ... but I can't find "make" that is
> supposed to be in the same directory as configure

Dunno what makes you think that, but it's wrong -- `make` should be
on your system (in your PATH), that's all.

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

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



Re: Aid: Tomcat/Apache redirect (or forwarding).

2008-12-16 Thread Hassan Schroeder
On Tue, Dec 16, 2008 at 9:59 AM, TiredMan  wrote:

> "The page cannot be found" message in IE when i go to http://webdomain.com

You would be better off using Firefox with the Web Developer and
Firebug plugins to get better error messages, but...

> As for httpd logs, i not sure they are configured, because i just have next
> files in logs dir:

> Should i enable it somehow?

? Logs appear to be "enabled" -- what do you find in them?

And again, does your configuration check pass?

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

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



Re: Aid: Tomcat/Apache redirect (or forwarding).

2008-12-16 Thread Hassan Schroeder
On Tue, Dec 16, 2008 at 9:11 AM, TiredMan  wrote:
>
> Thank you for reply! Maybe you can also point me where I am wrong then?

> And when I tried to access webdomain.com from a machine which has not acees
> to localdomain.com directly - i did not successed.

WTF does that mean? You got a 404? 500 error? What do your httpd
logs say?

Does your configuration check pass?

Is "localdomain.com" resolvable from the webdomain system? Are
there any iptables rules or tcp wrappers on the localdomain.com
system that would block access?

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

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



Re: Aid: Tomcat/Apache redirect (or forwarding).

2008-12-16 Thread Hassan Schroeder
On Tue, Dec 16, 2008 at 8:06 AM, TiredMan  wrote:
>
> Hi. Kees de Kooter, are you sure it is possible with mod_proxy?
> In this case if i will set at webdomain.com something like:
> ProxyPass / http://localdomain.com
> It will just redirect user, to http://localdomain.com which is not
> accessible for him.
> Or I am missing something?

Yes -- "proxy" does not mean "redirect".


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

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



Re: File system resource for static content

2008-12-14 Thread Hassan Schroeder
On Sun, Dec 14, 2008 at 1:47 PM, Robert Drescher
 wrote:

> My reader servlet accepts a param "file" so far, since i haven't figured out
> how to do the mapping and parsing to do the /WebApp/files/filename.jpg so
> far. But that should be a quick fix.

see HttpServletRequest.getPathInfo()

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

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



Re: File system resource for static content

2008-12-14 Thread Hassan Schroeder
On Sun, Dec 14, 2008 at 12:45 PM, André Warnier  wrote:

>> What if user-a uploads a file called "abc.jpg" and then user-b uploads a
>> file called "abc.jpg" ? Who wins ?

Hopefully, everyone wins, since the Klever Koder has checked first
to be sure an existing file isn't being overwritten :-)

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

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



Re: File system resource for static content

2008-12-14 Thread Hassan Schroeder
On Sun, Dec 14, 2008 at 11:29 AM, Robert Drescher
 wrote:

> In other words, if "/App/Reader" is my reader servlet, can I include an
> image into jsp with ?

Of course, it's just a URL.

Better, just make it 
(or /App/images/image.jpg, or whatever).

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

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



Re: Unable to start tomcat server 6x

2008-12-13 Thread Hassan Schroeder
On Sat, Dec 13, 2008 at 12:15 AM, Partha  wrote:

> I am unable to restart apache-tomcat-6.0.18.When i try to run the startup.sh
> it gives the following error:

> touch: cannot touch `/usr/local/apache-tomcat-6.0.18/logs/catalina.out':
> Read-only file system

Last time I saw a "spontaneous" read-only FS it meant the disk
was going bad.

You might want to manually fsck it (after running a backup!)  :-)

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

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



Re: Forward all subfolders/files to the root

2008-12-03 Thread Hassan Schroeder
On Tue, Dec 2, 2008 at 7:41 PM, tuckker <[EMAIL PROTECTED]> wrote:
>
> How do I redirect all subfolders/files to the root of the link domain.com?

If it's all one context, add something like this to your web.xml:


whatever
/index.jsp


whatever
/*


:: and of course, make sure there aren't other mappings that would
override that with higher specificity :-)

HTH!
-- 
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: Updating users

2008-11-25 Thread Hassan Schroeder
On Tue, Nov 25, 2008 at 6:16 PM, Cliff Binstock
<[EMAIL PROTECTED]> wrote:
> I have one servlet that registers a new user.  The result of this is an
> update of conf/tomcat-users.xml

> The users appear to be cached by Tomcat, and the "new" user can't access the
> webdav area until Tomcat is restarted.

Uh, yeah. Exactly what it says here:
 <http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#MemoryRealm>

:: along with "not designed for production use".  :-)

Check that page for alternatives.

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-20 Thread Hassan Schroeder
On Thu, Nov 20, 2008 at 11:47 AM, Toby Kurien <[EMAIL PROTECTED]> wrote:
> Well, I have had this application for many years and usually
> restarting the whole server fixes anything, but not this time. I
> figure something is holding on to port 80, but I am not able to find
> out or terminate it. I have a bad feeling there might be a security
> breach or something.

I have no idea what tools are available on a Windows server, but for
a simple check -- what do you see when you telnet to port 80?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do i specify the filename for a binary file generated by a JSP?

2008-11-18 Thread Hassan Schroeder
On Tue, Nov 18, 2008 at 5:25 PM, Jonathan Mast
<[EMAIL PROTECTED]> wrote:

> How do specify the output file name from within JSP?

Something like:

 response.setHeader("Content-disposition", "attachment; filename=" +
encodedFileName);

:: will prompt the user to `Save as` with the specified file name.

HTH,

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Monitoring Tomcat availability in a load balanced capacity

2008-11-12 Thread Hassan Schroeder
On Wed, Nov 12, 2008 at 9:42 AM, Adam Gordon <[EMAIL PROTECTED]> wrote:
> We're running two Tomcat (5.5.16) instances in a load-balanced capacity
> behind an Apache server (2.0.55 w/ mod j/k 1.2.14).
>
> We'd like to set up some sort of monitoring that would allow us to not just
> check to see if the Tomcat Java processes are still running (that's easy)
> but to actually connect to each web server (either independently or via the
> load-balancer) and verify that a certain page can be returned.
>
> Since we're connecting to Tomcat via an Apache load-balancer, we don't know
> of a way to force the load-balancer to go to a certain Tomcat instance.
>  Additionally, we don't know how to speak mod j/k so we can't fake a direct
> connection to each Tomcat instance.

Simplest: add an HTTP connector to use for testing.  :-)

Re' forcing the instance to use -- see the entry for jvmRoute in
<http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html>

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Hassan Schroeder
On Wed, Oct 29, 2008 at 10:23 AM, dOE <[EMAIL PROTECTED]> wrote:

> perhaps this is where my problem is at this stage.  I would need a
> "Catalina_Home2" and have that pointing to *server2 *...? I am guessing, but
> would this mean I need to edit every mention of Catalina_Home to
> Catalina_Home2 in the *.properties files?

No, just start the second instance from a shell with the appropriate
value for CATALINA_HOME defined.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Server .pac Script configuration for outgoing connection.

2008-10-26 Thread Hassan Schroeder
On Sun, Oct 26, 2008 at 2:12 PM, Eswaramoorthy Ramesh
> We have a web application that sets up a local tomcat server with an
> application deployed into the client machine. To complete the setup, the
> application on Tomcat needs to access the internet from the client
> machine and verify with the source system. But the client machine are within
> a corporate network and needs .pac script to access internet. How can we
> configure Tomcat for all its applications to use a pac (proxy Auto
> Configuration) script to determine the proxy and access the internet?

Wrong way around -- Tomcat doesn't have anything to do with this.
You need to design your apps to find external resources like proxy
configuration info.

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to serve two docBases under the same context path

2008-10-23 Thread Hassan Schroeder
On Thu, Oct 23, 2008 at 10:23 AM, nlif <[EMAIL PROTECTED]> wrote:

> Should my dev and prod environments be identical? Really? So you deploy your
> source files? :-)
>  This is one of many cases in which the development environment does not
> match the production environment.

Well, "deploying source files" isn't exactly the same as having your
development infrastructure reflect, at least reasonably closely, that of
production. Personally I wouldn't work very long at a place that took
such a haphazard approach.

YMMV, but I'm not the one wasting time trying to work around this
easily fixable discrepancy  :-)

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to serve two docBases under the same context path

2008-10-23 Thread Hassan Schroeder
On Thu, Oct 23, 2008 at 7:56 AM, nlif <[EMAIL PROTECTED]> wrote:

> I am trying to separate the static content from the dynamic content of my
> application. In production, I intend to use Apache to serve the static
> content, and Tomcat to process requests to the application (mainly JSP's).

> My problem, however, is with the development environment:

I'd say you should either forget about using Apache httpd altogether
or make your dev environment match production.

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_proxy_balancer

2008-10-14 Thread Hassan Schroeder
On Tue, Oct 14, 2008 at 7:20 AM, AD <[EMAIL PROTECTED]> wrote:

>  My issue is that the tomcat app, seems to want to redirect to
> /myapp1/some/file.html for a 302 (as an example) which is causing the
> issue.  is there a way around this  ?  This path gets back to apache which
> gets back to the end user who does not know how to process /myapp1/ in the
> browser.

Actually, no, the browser is just sending the request to your Apache
httpd, which doesn't know what to do with "/myapp1/".

So  you need to either use mod_rewrite or explicitly write your URLs
without the context (dicey and portability-limiting).

>  Any reason this is a "bad" idea ?

Are "app1" and "app2" identical? If not, "balancing" across them
makes zero sense.

And even if they *are* identical -- why would you "balance" across
two apps running in the same container?

The whole /point/ of balancing is to use multipleTomcat instances,
for load-balancing (and HA).

>From your original example, I can't begin to imagine your use case;
perhaps you can explain your goal?

H*
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_proxy_balancer

2008-10-13 Thread Hassan Schroeder
Rats, sorry, copy/paste failure there, mail sent prematurely ...

Assuming port 8080 --


  BalancerMember http://localhost:8080/app1/
  BalancerMember http://localhost:8080/app2/


And that would be configured the same for both virtual hosts.

  ProxyPass / balancer://whatever/
  ProxyPassReverse / balancer://whatever/

HTH,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_proxy_balancer

2008-10-13 Thread Hassan Schroeder
On Mon, Oct 13, 2008 at 7:17 PM, AD <[EMAIL PROTECTED]> wrote:

>  If i have a tomcat app deployed at http://localhost:8080/myapp1/  and
> http://localhost:8080/myapp2/ and i want 2 virtualhosts in apache to map "/"
> to each one of these apps, is this possible?

Possible? Sure. Good idea? Probably not.

> Trying something like

Did your editor just drop into mode.new().generateRandomStuff()?

Do you want to use port 8080 (http) or 8009 (ajp)?


BalancerMember http://localhost:3000



-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AddResource: how to prevent adding session id to stylesheet URL

2008-10-13 Thread Hassan Schroeder
On Mon, Oct 13, 2008 at 12:32 AM, Dave <[EMAIL PROTECTED]> wrote:

> We are using AddResource to add stylesheet dynamically, like:
>
> addResource.addStyleSheet(context, AddResource.HEADER_BEGIN, "/main.css");

So, wouldn't this be a question for (guessing) a MyFaces list?  :-)

Doesn't seem remotely Tomcat-related.

H*
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can i compile .tag files on the fly? please help :(

2008-10-01 Thread Hassan Schroeder
On Wed, Oct 1, 2008 at 10:17 AM, LoopInfinitum <[EMAIL PROTECTED]> wrote:

> haven't tried yet... i've never used jasper

Nor have I, directly :-)  I meant, "why don't you just change a test
.tag file and see what happens?"  Would have taken less time...

> so this means you edit a .tag file, hit refresh in your web-browser, and you
> see the change?  that would be great and exactly what i want to happen.

Yes.

> what version of tomcat are you running?

6.0.x

> any ideas where you configure this  type of behavior?

I believe it's controlled by the "development" parameter to the JSP
servlet -- see the $CATALINA_HOME/conf/web.xml -- default setting
is "true", so no action necessary unless you've changed that.

HTH,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can i compile .tag files on the fly? please help :(

2008-10-01 Thread Hassan Schroeder
On Wed, Oct 1, 2008 at 9:35 AM, LoopInfinitum <[EMAIL PROTECTED]> wrote:

> i'm looking for a definitive answer:
> can .tag files be compiled on the fly, or do they always require a recompile
> and restart for changes to take effect?

Did you bother to try?

In any case, I don't know if this is "definitive" but I've never compiled
a tag file manually, nor restarted TC to see a change.

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Share war file / virtual hosts

2008-09-22 Thread Hassan Schroeder
On Mon, Sep 22, 2008 at 1:22 PM, Mathias P.W Nilsson
<[EMAIL PROTECTED]> wrote:
>
> Ok! I tested with port 8080 and 8443 as ssl port with no luck.
> I only have 2 domains but tomcat complains about java.net.BindException:
> Cannot assign requested address: JVM_Bind:8080. Now I guess this isn't
> configured right so any pointers here would be greatly appreciated.

> protocol="HTTP/1.1" redirectPort="443"/>
> protocol="HTTP/1.1" redirectPort="443"/>

Ignoring the redirect port confusion and the unneeded AJP connector,
do you actually have both IP addresses configured on this box?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Share war file / virtual hosts

2008-09-22 Thread Hassan Schroeder
On Mon, Sep 22, 2008 at 11:36 AM, Mathias P.W Nilsson
<[EMAIL PROTECTED]> wrote:
>
> Yes, but how should I configure those connectors? I can't add port 443 to 3
> of them because
> then tomcat casts an error.

You can if  each has a separate IP address, which is what you need
to make this work.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to redirect a web page from Tomcat to your browser?

2008-09-22 Thread Hassan Schroeder
On Mon, Sep 22, 2008 at 8:35 AM, DeanM <[EMAIL PROTECTED]> wrote:

> So, question is, how do I set up a mechanism so that you click on a link on
> the index page for the URL you want, Tomcat takes this and sends the request
> to the secure server, the secure server sends the page(s) back to Tomcat and
> then Tomcat throws it at your browser?

You need to write (or find) a proxy/reverse-proxy servlet.

Alternatively, you could use Apache httpd that purpose. More moving
parts, but possibly less work. :-)

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Balance and sync data

2008-09-18 Thread Hassan Schroeder
On Thu, Sep 18, 2008 at 7:47 AM, Christopher Schultz
<[EMAIL PROTECTED]> wrote:

> I suppose it depends on the frequency of image uploads. 100 images a day
> wouldn't be too bad. 100 images per minute would seriously suck.

True, I was envisioning a relatively low-frequency operation, for
no particular good reason  :-)

>> Um, single point of failure?  :-)
>
> NFS /can/ be done robustly.

OK, I haven't encountered an NFS cluster in the wild, but apparently
they exist. So, yes, that'd be a solution, and would probably scale
better than using rsync.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Balance and sync data

2008-09-17 Thread Hassan Schroeder
On Wed, Sep 17, 2008 at 2:57 PM, Christopher Schultz
<[EMAIL PROTECTED]> wrote:

>> Why not have your upload servlet invoke rsync when a new file has
>> been stored?
>
> You're not seriously suggesting that as a viable production strategy,
> are you?

 [  IM IN UR DURECTRY COPYNG UR IMAGES  ]

Sure -- why not? It works nicely for a use case like this. And exec'ing
a process as needed beats spawning one every minute!

> NFS, baby. NFS.

Um, single point of failure?  :-)

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Balance and sync data

2008-09-16 Thread Hassan Schroeder
On Tue, Sep 16, 2008 at 8:17 AM, Martin Spinassi
<[EMAIL PROTECTED]> wrote:

>> Why not have your upload servlet invoke rsync when a new file has
>> been stored?

> Can you give me some more details or where to get some more info?

Runtime.exec("/usr/bin/rsync")  -- though you may want to instead
invoke a script file containing the appropriate rsync arguments.

This works fine. I've even used rsync's "dry-run" mode to create a list
of files that differed between two systems (e.g. staging and production)
to generate a form page and allow the user to pick which ones to sync.

HTH,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Balance and sync data

2008-09-16 Thread Hassan Schroeder
On Tue, Sep 16, 2008 at 6:38 AM, Martin Spinassi
<[EMAIL PROTECTED]> wrote:

> I don't know yet, I didn't try it yet, I was waiting to see if there is
> a better solution than rsync them every minute.

Why not have your upload servlet invoke rsync when a new file has
been stored?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Hassan Schroeder
On Thu, Sep 11, 2008 at 3:20 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote:

>> If the page contains an invalid code-point, as the error message
>> points out, then what should a browser display??
>
> Thats probably what I'm not getting...
> All I did was set the Font to Verdana and drop a registered mark in...

However you created your test page, it /isn't valid UTF-8/. Until that's
resolved, it has no value as a test of anything.

> Whether that locale stuff is intelligent enuf not to make an invalid code
> point... thats the question.

If that were my question, I'd be testing Locale-based code  :-)

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Hassan Schroeder
On Thu, Sep 11, 2008 at 2:53 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote:

> Hassan I not arguing, you know nothing about that font... how is your client
> going to display it?

If the page contains an invalid code-point, as the error message
points out, then what should a browser display??

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Hassan Schroeder
On Thu, Sep 11, 2008 at 2:41 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote:

> http://www.kewlstuff.co.za/test/test.htm
>
> What do you see in this test page?

problems :-)

<http://validator.w3.org/check?uri=http%3A%2F%2Fwww.kewlstuff.co.za%2Ftest%2Ftest.htm&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&verbose=1&user-agent=W3C_Validator%2F1.591>

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Hassan Schroeder
On Thu, Sep 11, 2008 at 12:54 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote:

> Now you designing a web page... you pick Arial...

> have to discover the font (some how) and then you have to add that HTML to
> CSS code to your page

Do you not understand that style information, including fonts, is just
a "serving suggestion"? A user-agent has *no* obligation to use any
given font, or any font at all.

If I'm looking at your page in Lynx, the font will be whatever my own
terminal window settings specify, be it Comic Sans or Copperplate
Gothic Bold.

If I use wget to grab a page and store it into a file or a DB, there is no
"font" information involved at any point whatsoever -- it's just character
data in some specified (or assumed!) encoding.

If a user-agent is intended to generate a visual display /and/  has a
font available to it with a glyph matching a specified code-point in a
specified encoding, great. If not -- so sorry.   Doesn't matter whether
you were using HTML entities or numeric representation:  is it.

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Hassan Schroeder
On Thu, Sep 11, 2008 at 11:16 AM, Johnny Kewl <[EMAIL PROTECTED]> wrote:

> Its generating a pound... the question is, the webapp is not dicatation the
> font... so I'm asking what font is being used for the pound?

Whatever the browser picks from what it has available. :-)

> He *is* introducing a font into a webapp

No. A character, a codepoint, yes, not a font.

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Piggybacking HTTP with binary protocol

2008-09-09 Thread Hassan Schroeder
On Tue, Sep 9, 2008 at 1:10 PM, Darryl Pentz <[EMAIL PROTECTED]> wrote:

> Thanks for that suggestion - I'll definitely look into it. In the meantime 
> what we've done is to solve our problem in the hardware, by using 2 network 
> cards (i.e. 2 IP addresses)

Uh, you  don't need multiple NICs to handle multiple IP addresses --
just configure your system to respond to them :-)

FWIW,

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [NEWBIE]Tomcat 6.0.16-reboot required when changing the port number

2008-09-08 Thread Hassan Schroeder
On Sun, Sep 7, 2008 at 11:12 PM, Jon <[EMAIL PROTECTED]> wrote:
> No I'm stating that I had to reboot to get apache 'not running' on port 8080
> and it seemed unusual, because I ran the shutdown scripts.

Running the shutdown script doesn't guarantee anything -- there are
any number of reasons why your Tomcat instance wouldn't shut down
(or at least, not right away).

Did you do a `ps` to see if the process was still active? If it is, a `kill -9`
is a lot quicker than a reboot  :-)

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File not found exception

2008-08-23 Thread Hassan Schroeder
On Sat, Aug 23, 2008 at 12:23 AM, navigator09 <[EMAIL PROTECTED]> wrote:

>  All the above attempts have failed. The reading of the .ini file is done by
> a third party api and hence I cannot change the way it is read by the
> application. Pls let me know how the matter can be solved.

By asking the creators of the "third party api" where they expect to
find the file in question?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-21 Thread Hassan Schroeder
On Thu, Aug 21, 2008 at 1:07 PM, Fu-Tung Cheng <[EMAIL PROTECTED]> wrote:

> I am sure there must be an option in the stop script to require a 
> username/password.

And I'm sure that wouldn't matter -- it's simply a matter of telneting to
that port and issuing the shutdown command, no script required  :-)

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



<    1   2   3   4   5   6   7   8   9   10   >