Re: Installing Java Advanced Imaging In Tomcat.

2010-04-26 Thread Stephen Souness
aditya siram  gmail.com> writes:

> 
> Hi all,
> I am having issues using jai [1]  with a Tomcat webapp. I am running
> the tomcat6 package installed from the Ubuntu repos.
> 
> The webapp does some image decompression and is unable to detect
> CLibJpegImageReader which is a class in the jai_imageio.jar.
> 
> I have copied this jar file to my WEB-INF/lib directory and also to
> /var/lib/tomcat6/lib and /usr/share/tomcat6/lib hoping that it would
> work from one of these locations. Additionally it is in my
> JAVA_HOME/jre/lib/ext directory so it should be available after the
> bootstrap phase.
> 
> I know that JAI is installed correctly because a stand-alone app is
> able to access the required class.
> 
> Any help is appreciated
> -deech


I think someone reported something similar a few weeks back.

The response that worked for them was:

Try disabling the JreMemoryLeakPreventionListener in conf/server.xml, just in
case it was interfering with the JAI registration.



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



RE: Tomcat scalability setting - need help please

2010-04-11 Thread Stephen Souness

What sort of transaction isolation level requirements does your application
have?

If users are prevented from accessing the functionality of the system when a
large query is being run then I would recommend checking whether the
database is locking the tables.





cinlung wrote:
> 
> Dear Leon
> 
> Let me answer your question by the number of the questions:
> 1. My threadpool settings: are you talking about the java threadpool or
> the
> tomcat server setting for the thread pool. If this is tomcat, I am sorry I
> think I set it to standard from installation. I did not change any tomcat
> standard settings except for the -xmx and -xms stuff. As for java, the DB
> thread pool is set for 200 connections at once.
> 
> What I meant by slows down is that user clicks on a simple form view
> function that usually takes less dan a blink of an eye to open, now the
> application just not responding. The browser just keep loading and the
> load
> animation for IE keeps spinning, but does not return the appropriate
> response page and sometimes it just died (blank). When I check the tomcat
> logs nothing went wrong.
> 
> This happens if a user run one of the heavy duty app and someone else run
> another app (even simple ones). Regarding multiple tomcat machine I am
> trying to avoid it because I would have to rewrite the entire software or
> get an QOS machine to disperse the weight.
> 
> 2. For number 2, I did the warning for user to wait and not to close the
> browser before it is finished. But, a lot of them just don't even bother
> to
> read the warning and keep closing it. I was wondering if there is an API
> for
> monitoring dead users out there. Or I can always create a new API to
> monitor
> user activities by planting an applet on the user site that will keep
> pinging to the server and if the ping died, that means the user closed the
> browser. Is this wise? 
> 
> Or I can try to see The java Concurency thing that you mentioned below.
> 
> Thank you for your advice and sorry for my bad English.
> 
> 
> -Original Message-
> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] 
> Sent: Thursday, April 08, 2010 5:31 PM
> To: Tomcat Users List
> Subject: Re: Tomcat scalability setting - need help please
> 
> Hello Rendra,
> 
> comments inline.
> 
> On Thu, Apr 8, 2010 at 11:00 AM, Cin Lung  wrote:
>> Dear All Dev
>>
>> Sorry if repost, I got an error from the mailing list server.
>> Can anyone help me with my problem? I have two biggest problems as
>> follow:
>>
>> 1. Multi Connection Problem:
>> I have a web application that service to multiple users. Everytime the 
>> users accessing the server reach 100 users at the same time, the 
>> tomcat would slows down. I tried to set -xmx1024 and -xms1024, but it 
>> did not have any impact at all.
>> I tried to set the memory cache to 2048 and above, but the tomcat 
>> won't start.
> 
> What are your threadpool settings? What exactly is 'slows down' If it
> stops
> responding you are obviously running out of threads. If it just gets
> slower,
> you should consider measuring the load on your machine and webapp.
> Maybe you should consider scaling to multiple tomcats/machines.
> 
>> Is there any way to improve tomcat's performance. Will there be any 
>> use of Java NIO Framework in tomcat? I mean apache has Mina, why not 
>> combine with tomcat?
> 
> There are a lot of ways, but first you should identify your problem.
> 
>>
>> 2. User cancellation problem
>> Another thing that really bug me is that user would click on a web 
>> application that perform a very extensive task. The user was not 
>> patient and just close the browser accessing the app. This did not 
>> make that particular job stop. In fact the job is still running until 
>> finish and then it got no place to return the result since the user 
>> closed the browser. As the result, my server is working really hard 
>> and takes up all the resources available, and causes other users to lag.
>>
>> Is there any way to make that particular user task/thread stop working?
> 
> The common way to handle this is to inform user that the task is going to
> last a bit more. To achieve this, the original request starts a background
> job which executes the heavy task. The original request then sends the
> user
> to a wait page, which explains that he/she has to wait for the execution.
> The wait page reloads itself all 1-2 seconds checking whether the
> background
> job has finished. If this happens, the wait page sends the user to the
> result page, where he can examine the result of the background task.
> There are a lot of classes like Executor, Future etc. which can help you
> in
> synchronization of background jobs. Java Concurrency in Practice is a good
> particular start.
> 
> regards
> Leon
> 
> 
> 
> 
> 
> 
> 
> 
>>
>> Thank you in advance
>> Rendra
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> F

Re: Apache Tomcat 6.0 loads blank page

2009-02-01 Thread Stephen Souness

Hi.

I believe the error will be preventing Tomcat from starting - which is 
why the restart attempt is failing when it attempts to connect to the 
shutdown port - according to the log posted.


Find and fix the XML issue, then you should be good to get Tomcat started.


--
Stephen Souness


André Warnier wrote:

What do you mean the logs are not informative ?
I am no Tomcat expert to interpret the log exactly, but my guess is that 
you have an XML error right into your conf/server.xml file, which is the 
main Tomcat configuration file.  I am quite surprised that Tomcat is 
starting at all.


SEVERE: Parse Fatal Error at line 71 column 8: Comment must start with
 >
You may want to have a look at the position indicated above.
if it is not in server.xml, it is obviously in some other XML file which 
Tomcat tries to read at startup.


zia mohades wrote:

Hi again:

Andre thank you for your email:

1) when I check the logs I see the follwoing

   for localhost logs :1-Feb-2009 4:16:04 PM
org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

   for catalina logs:  I have this:
1-Feb-2009 5:01:42 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 71 column 8: Comment must start with
"

Re: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2009-01-29 Thread Stephen Souness

Which lib did you put your jars in?

The web app's or Tomcat's?


--
Stephen Souness

Hamacher, Eric wrote:

Hello:

This has been a truly frustrating problem.  Here is what I did:

Tomcat 6.0.18
JDK 1.5 u 16
Eclipse w/ WTP 3.4.1
Ojdbc14dms.jar
Dms.jar

I placed my drivers in lib.

In web.xml, I put


  jdbc/GFDataSource
  javax.sql.DataSource
  Container


I placed the following in three different places, conf/server.xml, 
conf/context.xml, and in a context file in my app's META-INF directory:

  

For driverClassName, I've also tried oracle.jdbc.driver.OracleDriver.

This application works on other servers.

Please help!

J.  ERIC  HAMACHER
Software Application Developer
608.664.3859
8476 Greenway Boulevard
Suite 100
Middleton, WI  53562
USA
GALLUP Technology

Achiever | Learner | Restorative | Intellection | Deliberative





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



Re: Tomcat 6.0 loading servlet twice

2009-01-29 Thread Stephen Souness

Hi,

If you go in via Tomcat's Manager app, do you see more webapps than you 
expect?


A long time ago I made the mistake of deploying apps under the webapps 
directory as well as configuring them with their own context - this 
resulted in those particular applications being loaded twice.


Also, make sure you clean out Tomcat's work directory - just to be sure 
that your config changes are taking effect.


--
Stephen Souness


Ani wrote:



On Thu, Jan 29, 2009 at 11:40, Ani  wrote:


Hello,
I have a web application in which I am facing one wiered pbm. I see tomcat
loading servlet twice , on which my application logic is failing and quits.
Getting below error in log file.
My findings : One thing I did was , inside comp folder I made a copy of
website folder and renamed it to website_old. Now both folders contains
servlet.jar. Will it be causing a pbm???
==
Jan 29, 2009 10:48:34 AM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(.\comp\website_old\WEB-INF\lib\servlet.jar) - jar no

t loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
==


I have
Server.xml has an entry of below



So tomcat should look for website folder in the specified directory, but
in the C:\Program Files\Avaya/comp directory, there are two directories ,
website and website_old.
Why tomcat is searching for C:\Program Files\Avaya/comp/website_old
application if it gets the C:\Program Files\Avaya/comp/website . ??
I have tomcat6.

Any reason??
--Ani








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



Re: Deploying a Java Web Application on / folder

2008-09-17 Thread Stephen Souness

You'll get better mileage as;

ROOT.war

- case sensitivity tends to matter for this sort of thing.


--
Stephen Souness


Martin Gainty wrote:

deploy your application as root.war
http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 




Date: Wed, 17 Sep 2008 16:45:28 -0700
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject: Deploying a Java Web Application on / folder



Hello,

I am trying to deploy a java Web application on Tomcat Server. This is part
of my server.xml file


 www.anotherheadsets.com
 
 
  

When I am deploying my application as ProjectOne.war on tomcat, the
application works fine when I use the url

http://www.anotherheadsets.com/ProjectOne


But when I am using the url

http://www.anotherheadsets.com

the application doesn't seem to work properly...


How do I deploy my application on the home URL rather than a subdirectory...
What modifications do I need to make to config files.

Thank you in advance.

Kris







--
View this message in context: 
http://www.nabble.com/Deploying-a-Java-Web-Application-on---folder-tp19543430p19543430.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



_
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/



-
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: Shared Javascript, CSS, and Image Files

2008-05-15 Thread Stephen Souness

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stephen,

Stephen Souness wrote:
| The symbolic link solution should be fine as long as you configure
| Tomcat to follow symbolic links (see Steve O's response in this thread).
|
| Having a "shared webapp" as suggested by Johnny could lead to problems
| with cross site scripting restrictions for the Javascript code if any
| cookies were involved.

Not really. This would be "cross-context scripting", and as long as you
set your cookies' path to be "/", you should be okay.

- -chris



True, provided that the webapps are under the same domain name :)

If the shared webapp has it's own domain name (e.g. 
http://images.myapp.com/ ) then the cross-site scripting restrictions 
that I mentioned could arise.


The original post didn't mention whether the webapps were on separate 
domain names, so I assumed...



Regards,

Stephen



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

iEYEARECAAYFAkgsV4AACgkQ9CaO5/Lv0PCjeQCfSviPc79JAZCXibQnSEp6pUen
1AEAnRPhgDAXl7uEByr42pwxZFiWjnpa
=2Nl/
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: Save POJO Application Server Definition

2008-05-14 Thread Stephen Souness
I'm with you David, I don't visit these groups to see spam thinly 
disguised as Tomcat-related messages.



--
Stephen Souness



David Fisher wrote:
We know you think your stuff is so kewl, but would you please stop 
leading all your email with an evangelical tag line.


That would be so cool of you.

Thanks,

Regards,
Dave

On May 13, 2008, at 3:14 PM, Johnny Kewl wrote:











-
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: Shared Javascript, CSS, and Image Files

2008-05-14 Thread Stephen Souness
The symbolic link solution should be fine as long as you configure 
Tomcat to follow symbolic links (see Steve O's response in this thread).


Having a "shared webapp" as suggested by Johnny could lead to problems 
with cross site scripting restrictions for the Javascript code if any 
cookies were involved.



--
Stephen Souness



Johnny Kewl wrote:


- Original Message - From: "John Buchholz" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, May 14, 2008 1:21 AM
Subject: Shared Javascript, CSS, and Image Files



Hi,

I am looking for the recommended solution for when multiple webapps 
need to use the same sets or javascript, css, and image files.  I have 
created a symbolic link in $CATALINA_HOME/webapps/myapp called 
"shared" pointing to /home/myhome/shared_files.   When I refer to 
/shared/test.js in my jsp, it does not recognize it.  Is there 
something I need to do to tell Tomcat to follow symbolic links or even 
better is there a recommended location under $CATALINA_HOME for me to 
add my collection of shared files that will be seen by all webapps?


John why are you doing that... maybe I'm missing something, but its not 
assembled "as it goes out", the browser comes back for it.
An easier way is to make a shared webapp, put all the stuff in there and 
then just address that web app.
Or think of say all the images CSS, js files sitting on an Apache 
server... you would just address them there.


JSP goes from any web app to browser... browser "comes back" and gets 
those files from (Apache/or a "single web app).
You just not going to use a relative url... will either hard code or 
bring in the "image context" from a parameter in web.xml etc.


Have fun...


I am using Tomcat 5.5.23.

Thanks so much for your help.





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: Trying to Map a web application to "/" in tomcat 5.5

2007-12-17 Thread Stephen Souness
My environment is slightly different (Windows XP Professional with NTFS 
file system, Tomcat 5.5.25), and the steps I used to deploy are a little 
different.


The steps which I took to test my theory before posting:
- shutdown Tomcat
- remove all traces of my application
- copy drop root.war into webapps
- restart Tomcat

The war is exploded into a directory named root - lowercase, and is only 
accessible under the http://host/root URL.


The joys of Windoze?

--
Stephen


Martin Gainty wrote:

I was curious what happened if I followed stephen's advice

environment: TC 5.5.17

undeploy 'root'OK - Undeployed application at context path/root

%CATALINA_HOME%\webapps>del ROOT
%CATALINA_HOME%\webapps\ROOT\*, Are you sure (Y/N)? yes
(now the environment is clean)

tc-manager http://host:8080/manager/ deploy (lowercase) root.war
see attached root-war.jpg

then produce tc-manager listing
see attached root_listing.jpg

when I access http://host:8080/root/

I see the tomcat index.jsp main page
If you're seeing this page via a web browser, it means you've setup Tomcat
successfully. Congratulations!

command line

%CATALINA_HOME%\webapps>dir ROOT
 Volume in drive F is DRV4_VOL1
 Volume Serial Number is F8AC-7975

 Directory of %CATALINA_HOME%\webapps\ROOT

12/17/2007  02:55p.
12/17/2007  02:55p..
12/17/2007  02:55pWEB-INF

so when I deployed lowercase root.war TC deployed as
uppercase ROOT!

how do account for that?
Martin--

 Message -
From: "Stephen Souness" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 17, 2007 2:31 PM
Subject: Re: Trying to Map a web application to "/" in tomcat 5.5



Martin Gainty wrote:

If you are front-ending with Apache you can use RewriteRule


http://mail-archives.apache.org/mod_mbox/tomcat-users/200608.mbox/%3Cecdskn$

[EMAIL PROTECTED]

Have you considered deploying your application as root.war?

NB: ROOT.war is the filename that Tomcat looks for as the root

application.

Having incorrect case in the filename root.war would result in the
application under, using the OP's example,

http://hostname:6293/root


--
Stephen




http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html

Does this help?
Martin--
- Original Message -
From: "Aakriti" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 17, 2007 11:18 AM
Subject: Trying to Map a web application to "/" in tomcat 5.5



Hi,
We are trying to Map the URl of our tomcat instance such that the

webapp

"appadmin" maps to "/"
The tomcat version being used is tomcat 5.5.17
We are trying to do this by specifying the following in server.xml

  








  




   





  

But when we try to navigate to a servlet mapped to the URL pattern
/appadmin/Main (specified in web.xml), we are not able to reach it

using

http://hostname:6293/appadmin/Main. We still have to use
http://hostname:6293/appadmin/appadmin/Main

The same use to work in Tomcat 3.2. We are in the process of migrating

to

tomcat 5.5.
Also we are using form based authentication where the url pattern is
specified as /appadmin/* as most of our URL patterns start with

/appadmin/..

in web.xml
Any idea on what we are doing wrong?
Regards
Aakriti


--
View this message in context:

http://www.nabble.com/Trying-to-Map-a-web-application-to-%22-%22-in-tomcat-5

5-tp14372571p14372571.html

Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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]




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














------------





- Original Message -
From: "Stephen Souness" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 17, 2007 2:31 PM
Subject: Re: Trying to Map a web application to "/" in tomcat 5.5



Martin Gainty wrote:

If you are front-ending with Apache you can use RewriteRule


http://mail-archives.apache.org/mod_mbox/tomcat-users/200608.mbox/%3Cecdskn$

[EMAIL PROTECTED]

Have you considered deploying your application as root.war?

NB: ROOT.war is the filename that Tomcat looks for as the root

application.

Having incorrect case in the filename root.war would result in the

Re: Trying to Map a web application to "/" in tomcat 5.5

2007-12-17 Thread Stephen Souness

Martin Gainty wrote:

If you are front-ending with Apache you can use RewriteRule
http://mail-archives.apache.org/mod_mbox/tomcat-users/200608.mbox/%3Cecdskn$
[EMAIL PROTECTED]

Have you considered deploying your application as root.war?


NB: ROOT.war is the filename that Tomcat looks for as the root application.

Having incorrect case in the filename root.war would result in the 
application under, using the OP's example,


http://hostname:6293/root


--
Stephen




http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html

Does this help?
Martin--
- Original Message -
From: "Aakriti" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 17, 2007 11:18 AM
Subject: Trying to Map a web application to "/" in tomcat 5.5



Hi,
We are trying to Map the URl of our tomcat instance such that the webapp
"appadmin" maps to "/"
The tomcat version being used is tomcat 5.5.17
We are trying to do this by specifying the following in server.xml

  








  




   





  

But when we try to navigate to a servlet mapped to the URL pattern
/appadmin/Main (specified in web.xml), we are not able to reach it using
http://hostname:6293/appadmin/Main. We still have to use
http://hostname:6293/appadmin/appadmin/Main

The same use to work in Tomcat 3.2. We are in the process of migrating to
tomcat 5.5.
Also we are using form based authentication where the url pattern is
specified as /appadmin/* as most of our URL patterns start with

/appadmin/..

in web.xml
Any idea on what we are doing wrong?
Regards
Aakriti


--
View this message in context:

http://www.nabble.com/Trying-to-Map-a-web-application-to-%22-%22-in-tomcat-5
5-tp14372571p14372571.html

Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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]





-
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: Save sessions across restarts

2007-06-19 Thread Stephen Souness

Martin Gainty wrote:
playing around with sessions or cookies has no impact on ability to 
preserve one's capability or ability to establish role verification

if you dont know anything about jetspeed you need to stay quiet

In any event lets take this offline as you dont have a clue what SSO means
Bye



Ignorance is bliss.

If you don't know, don't send people on wild goose chases.

--
Stephen


-
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: Found a product for running Tomcat off CDROM -have anybody tried it?

2007-02-20 Thread Stephen Souness
Interesting that the Stunnix website appears to make no mention of who 
is actually behind it the product.


Also interesting that you have posted a very similar message to a python 
mailing list, subject: "Found a product for running Python-based 
websites off CDROM -have anybody tried it?"


--
Stephen


David Wishnie wrote:

Hello,

I've found a product on freshmeat.net that allows to run tomcat-based
websites off cdrom, allowing to produce
CDs that work on Windows, MacOS X and Linux at the same time (also it seems
to support perl,
python, php & mysql). Apache is used for serving static content, and it has
a nice support
for stopping everything and releasing the media.

   http://www.stunnix.com/prod/aws/overview.shtml

Have anybody tried it?

Seems useful..

Thanks for your input!
 David




-
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 and JSF. Internet Explorer prompts for download

2006-11-08 Thread Stephen Souness

I'm no JSF expert, but the following might get you somewhere...

Do you have a MIME type configured for the url extension(s) that you 
have for your JSF URLs?


I've also seen a recommendation to add the following directive:



on the Core JSF FAQ page.


--
Stephen


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Josué,

Josué Alcalde González wrote:

I am developing a JSF application using tomcat 5.5.20 and myfaces 1.1.4.

It works perfect in Firefox but IE doesn't show the faces pages, but it
prompts to download.


MSIE is a pile of crap. Given your JSP code:


<%@ page language="java" contentType="text/html charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt"; prefix="c"%>

  




You have a lot of stuff before the "" header. MSIE ignores the
Content-Type header that the server sends because it thinks it's smarter
than the server. If it can't find something that looks like HTML in the
first couple of bytes of the document, it craps its pants and uses
"application/octet-stream" as the MIME type.

I recommend tweaking your JSP page so that your  comes as early in
the page as possible. Try taking out some of the extra newlines between
those <%@ taglib %> directives (seriously). Maybe even put the 
above the <[EMAIL PROTECTED] %> directive if tht even works.

My guess is that this small, stupid change will fix your MSIE woes.

Great further reading on MSIE and the Content-Type:
http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html

- -chris


<[EMAIL PROTECTED] file="inc/htmlhead.inc.html"%>





  <[EMAIL PROTECTED] file="inc/cabecera.inc.jsp"%>

  

  

  
  

  Bienvenido
  Por favor, introduzca sus datos para
proceder a la
  validación


  
  
  
  

  


  




  


  

  






---

What could be the problem? I have no ideas.



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


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

iD8DBQFFUlaH9CaO5/Lv0PARAqlUAKCzkaxVdW1I0sld3hXg6BtxrNqcigCdGnKN
3ZCRTY9k23QtwQuyHxt1y3U=
=LkQX
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: Complier not recognizing

2006-11-06 Thread Stephen Souness
Sounds more like eclipse is not set up to allow use of Java 5 (your 
examples are the new for loop and generics).


Change your "Java Compiler" settings for Compiler Compliance level for 
the project or workspace.


--
Stephen


gp wrote:

My Eclipse is not recognixing formats like
the for loop structure
for (Query q : history) 


and things like
Vector history = session.getHistory();
(for < symbol it shows invalid assignment operator)

I am using eclipse with TomCat 5.5 and jdk1.5.0_09

I am very new to tomcat, please someone help



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



Tomcat 5.5 on port 80 using jsvc

2006-10-05 Thread Stephen Souness

Hi all,

In the process of setting up a new server I have encountered a problem 
with getting jsvc to bind port 80 as root, to allow Tomcat to run as a 
less-privileged user.


I have downloaded and built from source the latest version of jsvc (from 
daemon-1.0.1.tar.gz)


With some slight modifications to Tomcat5.sh everything works fine for 
running Tomcat on port 8080, however once server.xml is changed to make 
Tomcat listen on port 80, the following exception is produced at startup:


6/10/2006 14:14:00 org.apache.coyote.http11.Http11BaseProtocol start
SEVERE: Error starting endpoint
java.net.BindException: Permission denied:80
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpo\

int.java:297)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndp\

oint.java:312)
at 
org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol\

.java:150)
at 
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:75\

)
at 
org.apache.catalina.connector.Connector.start(Connector.java:1089)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:\

459)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:70\

9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl\

.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce\

ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl\

.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce\

ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.ja\

va:177)
6/10/2006 14:14:00 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler 
start fai\

led: java.net.BindException: Permission denied:80
at 
org.apache.catalina.connector.Connector.start(Connector.java:1096)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:\

459)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:70\

9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl\

.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce\

ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl\

.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce\

ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.ja\

va:177)
6/10/2006 14:14:00 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1041 ms


I've seen posts about this issue on here before, but didn't find them 
leading to any solution.


Any ideas out there?

(Before you ask, there's nothing else running on port 80 on that system 
and there's nothing preventing a root user from running something to 
listen on that port).



--
Stephen Souness


-
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: Http11AprProtocol took 2 hr to init on http-443

2006-06-19 Thread Stephen Souness

Hi

Could it be related to some problems that Java has had on some Linux 
distributions with obtaining entropy for its random number generation 
for encryption?


In the past (a few years back admittedly) we encountered a problem when 
trying to connect our application to an https site.


Changing the
securerandom.source
entry in
${JAVA_HOME}/jre/lib/security/java.security
to
file:/dev/urandom
solved it for us.


--
Stephen Souness




Jeff Chuang wrote:
Thanks for responses. If I put connector ajp-8009 configuration block 
BEFORE connector http-443 in server.xml, the log looks like


Jun 19, 2006 5:33:11 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Jun 19, 2006 5:33:11 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jun 19, 2006 7:43:48 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-443
Jun 19, 2006 7:43:48 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7840211 ms

So I believe ports 80 and 8009 are ok, the initialization problem is 
only on port 443
I start tomcat by jsvc as root, and use openssl to generate self-signed 
certificate. After 2+ hours initialization, everything works fine and 
the ssl connector performance is excellent. Is it possible that any 
share library of openssl caused this initialization problem(delay)?


David Smith wrote:
Looks to me more like port 80 is taking 2+ hours to initialize, not 
443.  My guess is tomcat is waiting for something -- possibly a system 
service.  At anyrate, I don't experience that here on any version of 
tomcat or JDK.


--David

Jeff Chuang wrote:


Hi,

After starting tomcat from jsvc as service, it took 7840217 ms to 
initialize Http11AprProtocol on http-443, during which port 80 was 
blocked. There was no error found in jsvc debug info, neither was 
catalina.out. After initialization on port 443, everything works(both 
ports 80 and 443). It occurs every service restart. Is anyone 
experiencing this problem? Any common would be appreciated.


Jeff

System info:
Hardware platform: AMD Opteron Dual core 165 on Tyan 2865 board with 
1G memory

OS: Linux FC-5-x86_64
JDK: Sun 1.5.0_07-b03
Openssl:0.9.8b
Apr: 1.2.7
Tomcat: 5.5.17



catalina.out:

Jun 19, 2006 1:43:28 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Jun 19, 2006 3:54:05 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-443
Jun 19, 2006 3:54:05 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Jun 19, 2006 3:54:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7840217 ms
Jun 19, 2006 3:54:06 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 19, 2006 3:54:06 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jun 19, 2006 3:54:06 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 19, 2006 3:54:09 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 19, 2006 3:54:09 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 19, 2006 3:54:09 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]

Jun 19, 2006 3:54:10 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jun 19, 2006 3:54:10 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jun 19, 2006 3:54:10 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Jun 19, 2006 3:54:10 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-443
Jun 19, 2006 3:54:10 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Jun 19, 2006 3:54:10 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jun 19, 2006 3:54:11 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5291 ms


SSL connector in server.xml:

maxThreads="150" minSpareThreads="25" 
maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true" 
debug="0" scheme="https"
secure="