RE: Avoid Directory Listings

2005-02-20 Thread Caldarale, Charles R
 From: Eduardo Andrés Alfonso Sierra [mailto:[EMAIL PROTECTED]
 Subject: Avoid Directory Listings
 
 Is there any posibility to secure the directory listings of every
 directory in an application ??

Try disabling the listings parameter for the default servlet in conf/web.xml.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: Session replication with jk 1.2.8

2005-02-20 Thread Mladen Turk
Dan Carwin wrote:
He references the jvmRoute=servername variable which needs to match a
like variable tomcatId in workers2.properties. Of course
workers.properties doesn't have the tomcatId variable. The funny thing
is in the change notes for the jk connector, I see that Bill Barker made
some change referencing the jvmRoute variable:
Take a look at:
http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html
It says:
Each workers.properties directive consists of three words separated by
dot. The first word is always worker. The second word is the worker
name that can be any name. The worker name reflects the name of the
jvmRoute defined in Tomcat's server.xml configuration file.
So I think it's pretty clear how to define the route name.
Regards,
Mladen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ThreadDeath with tomcat 5.5.7 and bouncycastle

2005-02-20 Thread Remy Maucherat
On Sun, 20 Feb 2005 09:00:58 +1100, Adam Jenkins [EMAIL PROTECTED] wrote:
 Hi All,
 
 I'm getting a really odd error when I try to init a ciphers (or any
 other artifact for that matter) using BC as the provider in tomcat 5.5.7
 (struts application).
 
 The call is simply
 
 final Cipher rsaCipher = Cipher.getInstance(RSA/ECB/PKCS1Padding,
 BC);
 
 and I get the following:
 
 java.lang.ThreadDeath
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1221)
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
 at java.security.Provider
 $Service.getImplClass(Provider.java:1116)
 at java.security.Provider
 $Service.newInstance(Provider.java:1074)
 at javax.crypto.Cipher.getInstance(DashoA12275)
 at javax.crypto.Cipher.getInstance(DashoA12275)
 
 The bouncy castle libraries are included in the classpath, and are being
 initialized correctly in the servlet init with the call:
 
 Security.addProvider( new BouncyCastleProvider());
 
 JVM Details:
 java version 1.5.0-rc
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
 Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode)
 
 uname -r:
 2.6.8-gentoo-r10
 
 Anyone have any ideas?

Yes, plenty :)

The first one is to not crosspost, especially to lists where it is OT.

The second one is, don't put your security provider in WEB-INF/lib
unless you plan to remove it when the webapp is stopped (or don't
expect to reload your application). Even if you do remove it, it's a
little bit risky, and IMO bad design to do this kind of thing inside a
webapp.

And the third one is to post full stack traces.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



RE: moving all classes to shared

2005-02-20 Thread Dale, Matt

I'm not sure what you're getting at here. The number of users are irrelevant to 
the classes. You should only use shared/classes if the classes have to be 
shared across web apps. Although this is not usually advised as it is good 
practice to keep web apps self contained.

WEB-INF/classes would take precedence over shared/classes but I still don't see 
what you are trying to achieve.

My understanding (I'm sure someone will correct me if i'm wrong) of the shared 
is that each class will be loaded into the classloader of each webapp so no 
memory would be saved, if you chose to use this area for sharing classes 
accross webapps.

If you wanted to save memory then the common/classes is where you should put 
your classes. This will only classload 1 copy of the class.

Ta
Matt

-Original Message-
From: Oleg [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 20, 2005 2:38 AM
To: Tomcat Users List
Subject: moving all classes to shared


If I have 200 users deployed on tomcat with 99% using identical
classes, would it be ok to move all classes to shared/classes
directory? Will that give better memory usage? Also, can I later add
the classes that are different directly to WEB-INF/classes and will
they be given priority?

Thank you
Oleg

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


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

Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Rico
--- sven morales [EMAIL PROTECTED] wrote:
 Hi,
 Are you putting your classes at tomcat5/webapps/yourwebapp/WEB-INF/classes ?

What I outlined in my email is that when I don't do the above
because I use my own Context docBase=C:\myWebApp path=/something

Tomcat cannot find the resources as follows:
C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
C:\myWebApp\WEB-INF\classes\log4j.properties

Is that supposed to be the case?

And when I install the web application to
CATALINA_HOME/webapps/app_folder then it can find

CATALINA_HOME/webapps/app_folder/WEB-INF/classes/hibernate.cfg.xml and
CATALINA_HOME/webapps/app_folder/WEB-INF/classes/log4j.properties

which I'm happy about but spent a lot of time to get to.

Is there some further attributes for a Context in the case where
docBase isn't CATALINA_HOME/webapps/app_folder ?

Rico.




 or the corresponding
 tomcat5/webapps/youwebapp/WEB-INF/lib if it is
 archived?
 
 aka_Sergio
 
 
 --- Rico [EMAIL PROTECTED] wrote:
 
  Hello Everyone.
  I'm using Tomcat 4.1.31, and observed a similar
  problem on 4.1.18.
  
  It is possible to deploy web applications to a
  location of one's
  choice, other than
  CATALINA_HOME/webapps/app_folder, by adding
  a Context to server.xml. 
  With such a setup, I've been stuck with Tomcat not
  seeing resources
  that the documentation on their respective websites
  claim to be just
  a matter of placing in WEB-INF/classes and people
  confirming success at it.
  Examples are log4j.properties, hibernate.properties
  and hibernate.cfg.xml.
  
  So, is this the expected behaviour?
  If I install the web application in e.g c:\\myWebApp
  I'd consistently have Tomcat complaining as follows:
  
  INFO [http-8080-Processor25] cfg.Environment
  (clinit:483)
  - Hibernate 2.1.8
  INFO [http-8080-Processor25] cfg.Environment
  (clinit:512)
  - hibernate.properties not found
  INFO [http-8080-Processor25] cfg.Environment
  (clinit:543)
  - using CGLIB reflection optimizer
  INFO [http-8080-Processor25] cfg.Environment
  (clinit:572)
  - using JDK 1.4 java.sql.Timestamp handling
  INFO [http-8080-Processor25] cfg.Configuration
  (configure:909)
  - configuring from resource: /hibernate.cfg.xml
  INFO [http-8080-Processor25] cfg.Configuration
  (getConfigurationInputStream:881)
  - Configuration resource: /hibernate.cfg.xml
  WARN [http-8080-Processor25] cfg.Configuration
  (getConfigurationInputStream:885)
  - /hibernate.cfg.xml not found
  ERROR [http-8080-Processor25]
  persistence.HibernateUtil (clinit:19)
  - Initial SessionFactory creation failed.
  net.sf.hibernate.HibernateException:
  /hibernate.cfg.xml not found
  
  Possible workaround's include initialization servlet
  for log4j and
  use of ResourceBundle to pass in an absolute path
  for Hibernate.
  But still, the documentation says place the config
  files under WEB-INF/classes
  and they'll be found...
  Not so, unless it's
  CATALINA_HOME/webapps/WEB-INF/classes.
  
  Rico.
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
  protection around 
  http://mail.yahoo.com 
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
 __ 
 Do you Yahoo!? 
 The all-new My Yahoo! - What will yours do?
 http://my.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Re: Avoid Directory Listings

2005-02-20 Thread Tim Funk
No. You'd need to extend the default servlet then detect when a dir listing 
will be displayed, then use programmatic authorization.

-Tim
Eduardo Andrés Alfonso Sierra wrote:
Hi
I'm trying to stop tomcat from list contents of directories. I've
tried securing it and it works but has the BIG problem that you must
secure every directory separated.
Is there any posibility to secure the directory listings of every
directory in an application ??
Thanks in advance.

I'm doing this:
security-constraint
web-resource-collection
web-resource-nameLISTINGS/web-resource-name
url-pattern/dir1//url-pattern
url-pattern/dir1/dir11//url-pattern
url-pattern/dir1/dir12//url-pattern
url-pattern/dir1/dir11/dir111//url-pattern
url-pattern/dir2//url-pattern
url-pattern/dir2/dir21//url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-namemanager/role-name
/auth-constraint
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint
It works but I MUST add a url-pattern tag FOR EVERY directory in my
application if i'm to avoid all directory listings in my context.
I've tryied patterns like /*/, /**/, /*/*/*/*/, */ and similar ones
and nothing worked.
Is possible to avoid easily , all the directory listings?
Thanks again.
Eduardo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: moving all classes to shared

2005-02-20 Thread Michael Echerer

Dale, Matt wrote:
I'm not sure what you're getting at here. The number of users are irrelevant to 
the classes. You should only use shared/classes if the classes have to be 
shared across web apps. Although this is not usually advised as it is good 
practice to keep web apps self contained.
WEB-INF/classes would take precedence over shared/classes but I still don't see 
what you are trying to achieve.
My understanding (I'm sure someone will correct me if i'm wrong) of the shared is that each class will be loaded into the classloader of each webapp so no memory would be saved, if you chose to use this area for sharing classes accross webapps.
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html
I doubt that classes in shared lib are existing multiple times per 
webapp. I'm quite sure the exist per tomcat instance...
The difference is that common lib is available to both Tomcat and the 
webapps. Shared lib is not available to the Tomcat classes.

Typically one places the jdbc driver into common lib, because Tomcat 
needs that when using the JNDI pooling. If you just use old JDBC style 
it should work in shared lib or even web-inf/lib.

The interesting part is that shared lib is relative to catalina base, 
not catalina home, unlike common lib...

Cheers,
Michael

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


IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread Matt
OK, the docs out there are good, but they either concern old versions of
IIS and/or Tomcat -OR- they concern the JK2 module (including this list's
archives I have searched).
If JK2 is NO LONGER SUPPORTED, why in the heck would I care to use it?
So, I am using the very nice jk_1.2.8.exe installer.  With that, most of
the steps found in the various, partially-helpful docs are already done!
;^)

That said:
I am using Win2K + IIS5, and also Win2K3 + IIS6, and in either case, also
Tomcat 5.5:
I can go to http://localhost and get my IIS index page.
I can go to http://localhost:8080 and get my Tomcat index page.
I can go to http://localhost/jsp-examples/index.html and run all the
wonderful examples.
HOWEVER, if I simply want to -ALSO- hand-off jsp pages to Tomcat that are
in C:\Inetpub\wwwroot (and below) everything goes to hell.

I have tried adding CONTEXT tags to server.xml until I turn blue in the
face, and when I do so I get either 404 not found errors from Tomcat
(can't find the subdirectory b/c I assume it is looking for it in
webapps/, but then again it can't find it even if I copy the whole thing
into webapps/) or The specified module could not be found message on the
page (IIS result of a uriworkermap.properties issue).
I have even tried editing the existing HOST tag to change webapps
to C:/Inetpub/wwwroot and all sorts of folders below wwwroot.  In those
cases, if I manage to edit the uriworkermap.properties file correctly, all
I get is a blank page for any .jsp, while IIS still handles the other
stuff just fine.

So, instead of these outdated docs everyone keeps pointing to, does anyone
have any simple instructions to get Tomcat to properly use a folder
OUTSIDE of webapps, and ALONG WITH webapps to work (especially assuming
you've already got the basics working just fine as I do)?
I'd like to start by getting a copy of jsp-examples working in wwwroot/ if
possible (which is also how I was testing in the situation above, if that
means anything), rather than also confusing the situation by learning
how to create apps myself at the same time.  Perhaps that has caused my
problem - maybe the issue lies in a web.xml file somewhere for the
jsp-examples (I;ve even copied all of webapps to wwwroot to try and get
that to work, but no luck).

Thanks,
Matthew Kozak
Rutgers University-Camden
[EMAIL PROTECTED]

**
 They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.  -Ben Franklin
**

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



Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Re: Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Re: Re: Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: IIS + Tomcat 5.5 working, BUT how to ADD a docbase?!

2005-02-20 Thread webmaster
it's time to go...



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



Re: Serving up a Flash file

2005-02-20 Thread Paul Erion
Thanks to everyone for their responses.  It's amazing how large some
of the gaps in my knowledge truly are.

Paul

p.s., Sorry I didn't mean to disappear ... water is an amazing thing,
given enough volume, it can get into all sorts of places you wouldn't
expect; so I've been learning all sorts of things about filling
sandbags, their proper placement, and how tired one can get carrying
those puppies around.  Ahh, sunny southern California, where it hardly
ever rains.

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



Re: Serving up a Flash file

2005-02-20 Thread B Wiley

It's amazing how large some
of the gaps in my knowledge truly are.
Words of a wise man. I find myself thinking the same thing daily. I'm sure 
we are not alone :)



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


Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread sven morales
Hi,
   I have no problem doing that in linux, having the 
jsp files and  classes in another directory besides
being under $CATALINA_HOME.
  I wonder if you can try using a forward slash in
windows.

aka_sergio
  
--- Rico [EMAIL PROTECTED] wrote:

 --- sven morales [EMAIL PROTECTED] wrote:
  Hi,
  Are you putting your classes at
 tomcat5/webapps/yourwebapp/WEB-INF/classes ?
 
 What I outlined in my email is that when I don't do
 the above
 because I use my own Context docBase=C:\myWebApp
 path=/something
 
 Tomcat cannot find the resources as follows:
 C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
 C:\myWebApp\WEB-INF\classes\log4j.properties
 
 Is that supposed to be the case?
 
 And when I install the web application to
 CATALINA_HOME/webapps/app_folder then it can
 find
 

CATALINA_HOME/webapps/app_folder/WEB-INF/classes/hibernate.cfg.xml
 and

CATALINA_HOME/webapps/app_folder/WEB-INF/classes/log4j.properties
 
 which I'm happy about but spent a lot of time to get
 to.
 
 Is there some further attributes for a Context in
 the case where
 docBase isn't CATALINA_HOME/webapps/app_folder ?
 
 Rico.
 
 
 
 
  or the corresponding
  tomcat5/webapps/youwebapp/WEB-INF/lib if it is
  archived?
  
  aka_Sergio
  
  
  --- Rico [EMAIL PROTECTED] wrote:
  
   Hello Everyone.
   I'm using Tomcat 4.1.31, and observed a similar
   problem on 4.1.18.
   
   It is possible to deploy web applications to a
   location of one's
   choice, other than
   CATALINA_HOME/webapps/app_folder, by adding
   a Context to server.xml. 
   With such a setup, I've been stuck with Tomcat
 not
   seeing resources
   that the documentation on their respective
 websites
   claim to be just
   a matter of placing in WEB-INF/classes and
 people
   confirming success at it.
   Examples are log4j.properties,
 hibernate.properties
   and hibernate.cfg.xml.
   
   So, is this the expected behaviour?
   If I install the web application in e.g
 c:\\myWebApp
   I'd consistently have Tomcat complaining as
 follows:
   
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:483)
   - Hibernate 2.1.8
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:512)
   - hibernate.properties not found
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:543)
   - using CGLIB reflection optimizer
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:572)
   - using JDK 1.4 java.sql.Timestamp handling
   INFO [http-8080-Processor25] cfg.Configuration
   (configure:909)
   - configuring from resource:
 /hibernate.cfg.xml
   INFO [http-8080-Processor25] cfg.Configuration
   (getConfigurationInputStream:881)
   - Configuration resource: /hibernate.cfg.xml
   WARN [http-8080-Processor25] cfg.Configuration
   (getConfigurationInputStream:885)
   - /hibernate.cfg.xml not found
   ERROR [http-8080-Processor25]
   persistence.HibernateUtil (clinit:19)
   - Initial SessionFactory creation failed.
   net.sf.hibernate.HibernateException:
   /hibernate.cfg.xml not found
   
   Possible workaround's include initialization
 servlet
   for log4j and
   use of ResourceBundle to pass in an absolute
 path
   for Hibernate.
   But still, the documentation says place the
 config
   files under WEB-INF/classes
   and they'll be found...
   Not so, unless it's
   CATALINA_HOME/webapps/WEB-INF/classes.
   
   Rico.
   
  
 __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
   protection around 
   http://mail.yahoo.com 
   
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
  
  
  __ 
  Do you Yahoo!? 
  The all-new My Yahoo! - What will yours do?
  http://my.yahoo.com 
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
   
 __ 
 Do you Yahoo!? 
 The all-new My Yahoo! - Get yours free! 
 http://my.yahoo.com 
  
 
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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



Charset in Content Type: Tomcat 4 versus Tomcat 5

2005-02-20 Thread Neeraj Vora
Hello World,
I migrated from Tomcat 4.0.2 to Tomcat 5.5.7 which is quite nice for me but 
a not so good thing happened as a side-effect due to a MS bug. A particular 
response within my application had the following content-type header in 
Tomcat 4.0.2

Content Type: application/x-java-jnlp-file
Now with Tomcat 5.5.7, following is the header.
Content Type: application/x-java-jnlp-file;charset=iso-8859-1
MS IE has an unfortunate bug whereby it cannot associate this with Java Web 
Start. This has been documented as KB 871248. I tried 
response.setCharacterEncoding(null) but it does not take out the trailing 
charset. Is it possible somehow to still have Tomcat 5.5.7 return the header 
that Tomcat 4.0.2 used to?

TIA.

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


[ANN] Apache Jakarta Tomcat 5.5.8-alpha Released

2005-02-20 Thread Yoav Shapira
The Apache Jakarta Tomcat team is proud to announce the immediate availability
of Tomcat 5.5.8-alpha. This build contains numerous bug fixes, documentation
updates, and other improvements. 

Release notes: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES 

Please refer to the change log for the list of changes:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html 

Downloads: Binaries: http://jakarta.apache.org/site/binindex.cgi#tomcat-5.5 
Sources: http://jakarta.apache.org/site/sourceindex.cgi#tomcat-5.5 

The Apache Jakarta Tomcat Team

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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Rico

--- sven morales [EMAIL PROTECTED] wrote:

 Hi,
I have no problem doing that in linux, having the 
 jsp files and  classes in another directory besides
 being under $CATALINA_HOME.
   I wonder if you can try using a forward slash in
 windows.

There's no difference. The problem persists, exactly the same.

Rico.

 aka_sergio
   
 --- Rico [EMAIL PROTECTED] wrote:
 
  --- sven morales [EMAIL PROTECTED] wrote:
   Hi,
   Are you putting your classes at
  tomcat5/webapps/yourwebapp/WEB-INF/classes ?
  
  What I outlined in my email is that when I don't do
  the above
  because I use my own Context docBase=C:\myWebApp
  path=/something
  
  Tomcat cannot find the resources as follows:
  C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
  C:\myWebApp\WEB-INF\classes\log4j.properties
  
  Is that supposed to be the case?
  
  And when I install the web application to
  CATALINA_HOME/webapps/app_folder then it can
  find
  
 
 CATALINA_HOME/webapps/app_folder/WEB-INF/classes/hibernate.cfg.xml
  and
 
 CATALINA_HOME/webapps/app_folder/WEB-INF/classes/log4j.properties
  
  which I'm happy about but spent a lot of time to get
  to.
  
  Is there some further attributes for a Context in
  the case where
  docBase isn't CATALINA_HOME/webapps/app_folder ?
  
  Rico.



__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Jason Bainbridge
On Sun, 20 Feb 2005 16:50:39 -0800 (PST), Rico [EMAIL PROTECTED] wrote:
 
 --- sven morales [EMAIL PROTECTED] wrote:
 
  Hi,
 I have no problem doing that in linux, having the
  jsp files and  classes in another directory besides
  being under $CATALINA_HOME.
I wonder if you can try using a forward slash in
  windows.
 
 There's no difference. The problem persists, exactly the same.

Try setting override=true in your context, although that is just an
educated guess so no guarantee. :)

Regards,
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - [EMAIL PROTECTED]

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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Rico
--- Jason Bainbridge [EMAIL PROTECTED] wrote:
 On Sun, 20 Feb 2005 16:50:39 -0800 (PST), Rico [EMAIL PROTECTED] wrote:
  --- sven morales [EMAIL PROTECTED] wrote:
  
   Hi,
  I have no problem doing that in linux, having the
   jsp files and  classes in another directory besides
   being under $CATALINA_HOME.
 I wonder if you can try using a forward slash in
   windows.
  
  There's no difference. The problem persists, exactly the same.
 
 Try setting override=true in your context, although that is just an
 educated guess so no guarantee. :)

Still no joy. Same problem.

Rico.



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Hassan Schroeder
Rico wrote:
What I outlined in my email is that when I don't do the above
because I use my own Context docBase=C:\myWebApp path=/something
Tomcat cannot find the resources as follows:
C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
OK, just took a look at an old Windows(2k) machine w/4.x stuff on it;
those apps, which all worked fine outside the $CATALINA_HOME/webapps
directory, used forward slashes like:
   Context docBase=C:/myWebApp path=/something
You might check the appBase definition of your Host element :-)
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Richard Mixon (qwest)
We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL
Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on
both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and
production).

In order to get failover to work the way we wanted we upgraded to Tomcat
5.5.7 and Sun Java 1.5. The main change in our application was the new
format for data soruces in the application context. No problem on
Windows XP. We've tried to install on one of our Linux servers and are
having no end of grief getting a DB connection to properly happen.

Any help or ideas would be much appreciated. I've included the
application context and the catalina log error messages below.

Thanks in advance - Richard


***- APPLICATION CONTEXT:
Context path=/stars docBase=stars debug=99 reloadable=true
privileged=true antiResourceLocking=false antiJARLocking=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=stars. suffix=.log timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=com.mysql.jdbc.Driver
   connectionURL=jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec
t=trueamp;autoCommit=true
  connectionName=ltojsw connectionPassword=586579
   userTable=PoAssociate userNameCol=userid
userCredCol=password
   userRoleTable=PoUserRole roleNameCol=roleName /
Resourcename=jdbc/stars
 type=javax.sql.DataSource
 auth=Container
maxActive=100
  maxIdle=10
  maxWait=1
defaultAutoCommit=true
 userName=ltojsw
 password=586579
  driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql://192.168.11.3:3306/ltojsw?aut
oReconnect=trueamp;autoCommit=true
  removeAbandoned=true
removeAbandonedTimeout=60
  logAbandoned=true
/
/Context


***- CATALINA ERROR MESSAGES:

SNIP
19:37:27,642  INFO [http-8080-Processor25]
DatasourceConnectionProvider:51 - Using datasource:
java:comp/env/jdbc/stars
19:37:27,648  INFO [http-8080-Processor25]
TransactionManagerLookupFactory:33 - No TransactionManagerLookup
configured (in JTA environment, use of process level read-write cache is
not recommended)
AbandonedObjectPool is used
([EMAIL PROTECTED])
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60
19:37:41,696  WARN [http-8080-Processor25] SettingsFactory:107 - Could
not obtain connection metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Server connection failure during transaction.
Due to underlying exception: 'java.sql.SQLException: Access denied for
user ''@'kingfishS11' (using password: YES)'.

** BEGIN NESTED EXCEPTION **

java.sql.SQLException
MESSAGE: Access denied for user ''@'kingfishS11' (using password: YES)

STACKTRACE:

java.sql.SQLException: Access denied for user ''@'kingfishS11' (using
password: YES)
SNIP


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



multiple login-config for one webapp

2005-02-20 Thread Thiwanka Wimalasuriya
dear all,

is it possible to have two login-config elements in one web.xml (tomcat
4.1)

what's i need to do is use form based authentication for a webapp exept for
one specific URL
(http://localhost:8080/smsdeo/system/Autopush.do?survey=testSMSSurveyphoneN
umber=777425205)
for which i need to use basic authenntication.

is there a way to use two authentication methods for one webapp ?

kind regards
-thiwanka



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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread Matt
Unless you change the slash type explicitly (according to one out-of-date
doc, of which there are so many floating around), doesn't Tomcat expect
forward slashes, even on Windows?

Anyway, just using forward slashes doesn't seem to be the cure (unless
Rico and I each have part of the actual, full solution).  Does anyone have
success and an actual step-by-step doc they can share?  Although not a
solution, it's nice to see that I'm not the only one totally confounded by
the lack of solid, complete docs/instructions on this CONTEXT tag mess.
Nothing should be this difficult, but now I know why some people have
recommended just going with jspISAPI for $50...cheap in retrospect of the
time I've spent on this so far.  If I wasn't so intent on understanding
exactly what's going on, I might have bought it by now...
;^)

Thanks,
-Matt


On Sun, 20 Feb 2005, sven morales wrote:

 Hi,
I have no problem doing that in linux, having the
 jsp files and  classes in another directory besides
 being under $CATALINA_HOME.
   I wonder if you can try using a forward slash in
 windows.

 aka_sergio

 --- Rico [EMAIL PROTECTED] wrote:

  --- sven morales [EMAIL PROTECTED] wrote:
   Hi,
   Are you putting your classes at
  tomcat5/webapps/yourwebapp/WEB-INF/classes ?
 
  What I outlined in my email is that when I don't do
  the above
  because I use my own Context docBase=C:\myWebApp
  path=/something
 
  Tomcat cannot find the resources as follows:
  C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
  C:\myWebApp\WEB-INF\classes\log4j.properties
 
  Is that supposed to be the case?
 
  And when I install the web application to
  CATALINA_HOME/webapps/app_folder then it can
  find
 
 
 CATALINA_HOME/webapps/app_folder/WEB-INF/classes/hibernate.cfg.xml
  and
 
 CATALINA_HOME/webapps/app_folder/WEB-INF/classes/log4j.properties
 
  which I'm happy about but spent a lot of time to get
  to.
 
  Is there some further attributes for a Context in
  the case where
  docBase isn't CATALINA_HOME/webapps/app_folder ?
 
  Rico.
 
 
 
 
   or the corresponding
   tomcat5/webapps/youwebapp/WEB-INF/lib if it is
   archived?
  
   aka_Sergio
  
  
   --- Rico [EMAIL PROTECTED] wrote:
  
Hello Everyone.
I'm using Tomcat 4.1.31, and observed a similar
problem on 4.1.18.
   
It is possible to deploy web applications to a
location of one's
choice, other than
CATALINA_HOME/webapps/app_folder, by adding
a Context to server.xml.
With such a setup, I've been stuck with Tomcat
  not
seeing resources
that the documentation on their respective
  websites
claim to be just
a matter of placing in WEB-INF/classes and
  people
confirming success at it.
Examples are log4j.properties,
  hibernate.properties
and hibernate.cfg.xml.
   
So, is this the expected behaviour?
If I install the web application in e.g
  c:\\myWebApp
I'd consistently have Tomcat complaining as
  follows:
   
INFO [http-8080-Processor25] cfg.Environment
(clinit:483)
- Hibernate 2.1.8
INFO [http-8080-Processor25] cfg.Environment
(clinit:512)
- hibernate.properties not found
INFO [http-8080-Processor25] cfg.Environment
(clinit:543)
- using CGLIB reflection optimizer
INFO [http-8080-Processor25] cfg.Environment
(clinit:572)
- using JDK 1.4 java.sql.Timestamp handling
INFO [http-8080-Processor25] cfg.Configuration
(configure:909)
- configuring from resource:
  /hibernate.cfg.xml
INFO [http-8080-Processor25] cfg.Configuration
(getConfigurationInputStream:881)
- Configuration resource: /hibernate.cfg.xml
WARN [http-8080-Processor25] cfg.Configuration
(getConfigurationInputStream:885)
- /hibernate.cfg.xml not found
ERROR [http-8080-Processor25]
persistence.HibernateUtil (clinit:19)
- Initial SessionFactory creation failed.
net.sf.hibernate.HibernateException:
/hibernate.cfg.xml not found
   
Possible workaround's include initialization
  servlet
for log4j and
use of ResourceBundle to pass in an absolute
  path
for Hibernate.
But still, the documentation says place the
  config
files under WEB-INF/classes
and they'll be found...
Not so, unless it's
CATALINA_HOME/webapps/WEB-INF/classes.
   
Rico.
   
   
  __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
   
   
  
 
 -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
  
  
  
  
   __
   Do you Yahoo!?
   The all-new My Yahoo! - What will yours do?
   http://my.yahoo.com
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For 

Re: multiple login-config for one webapp

2005-02-20 Thread Thiwanka Wimalasuriya
dear all,

the servlet spec 2.4 says (page 109 of servlet-2_4-fr-spec.pdf  from
http://www.jcp.org/aboutJava/communityprocess/final/jsr154/ )

However, the deployment descriptor instance file must not contain multiple
elements of session-config, jsp-config, and login-config.

so does it mean that you cant have two login-config elements in one
web.xml.

kind regards
-thiwanka


- Original Message -
From: Thiwanka Wimalasuriya [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, February 21, 2005 9:31 AM
Subject: multiple login-config for one webapp


 dear all,

 is it possible to have two login-config elements in one web.xml (tomcat
 4.1)

 what's i need to do is use form based authentication for a webapp exept
for
 one specific URL

(http://localhost:8080/smsdeo/system/Autopush.do?survey=testSMSSurveyphoneN
 umber=777425205)
 for which i need to use basic authenntication.

 is there a way to use two authentication methods for one webapp ?

 kind regards
 -thiwanka



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



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



RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Shakeel Ahmad
Have you changed the corresponding mysql connector jar file ?


Best Regards, 
S H A K E E L   A H M A D 
http://members.fortunecity.com/javaclub/shakeel.htm 
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 7:53 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?


We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL
Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on
both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and
production).

In order to get failover to work the way we wanted we upgraded to Tomcat
5.5.7 and Sun Java 1.5. The main change in our application was the new
format for data soruces in the application context. No problem on
Windows XP. We've tried to install on one of our Linux servers and are
having no end of grief getting a DB connection to properly happen.

Any help or ideas would be much appreciated. I've included the
application context and the catalina log error messages below.

Thanks in advance - Richard


***- APPLICATION CONTEXT:
Context path=/stars docBase=stars debug=99 reloadable=true
privileged=true antiResourceLocking=false antiJARLocking=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=stars. suffix=.log timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=com.mysql.jdbc.Driver
   connectionURL=jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec
t=trueamp;autoCommit=true
  connectionName=ltojsw connectionPassword=586579
   userTable=PoAssociate userNameCol=userid
userCredCol=password
   userRoleTable=PoUserRole roleNameCol=roleName /
Resourcename=jdbc/stars
 type=javax.sql.DataSource
 auth=Container
maxActive=100
  maxIdle=10
  maxWait=1
defaultAutoCommit=true
 userName=ltojsw
 password=586579
  driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql://192.168.11.3:3306/ltojsw?aut
oReconnect=trueamp;autoCommit=true
  removeAbandoned=true
removeAbandonedTimeout=60
  logAbandoned=true
/
/Context


***- CATALINA ERROR MESSAGES:

SNIP
19:37:27,642  INFO [http-8080-Processor25]
DatasourceConnectionProvider:51 - Using datasource:
java:comp/env/jdbc/stars
19:37:27,648  INFO [http-8080-Processor25]
TransactionManagerLookupFactory:33 - No TransactionManagerLookup
configured (in JTA environment, use of process level read-write cache is
not recommended)
AbandonedObjectPool is used
([EMAIL PROTECTED])
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60
19:37:41,696  WARN [http-8080-Processor25] SettingsFactory:107 - Could
not obtain connection metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Server connection failure during transaction.
Due to underlying exception: 'java.sql.SQLException: Access denied for
user ''@'kingfishS11' (using password: YES)'.

** BEGIN NESTED EXCEPTION **

java.sql.SQLException
MESSAGE: Access denied for user ''@'kingfishS11' (using password: YES)

STACKTRACE:

java.sql.SQLException: Access denied for user ''@'kingfishS11' (using
password: YES)
SNIP


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




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



RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Richard Mixon (qwest)
Actually I tried MySQL Connector/J 3.0.15, and then updated to the
latest 3.1.7. Each was placed in in $CATALINA_HOME/common/lib and
tried - same result/error message.

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 20, 2005 10:22 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what
changed?


Have you changed the corresponding mysql connector jar file ?

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 7:53 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?


We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL
Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on
both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and
production).

In order to get failover to work the way we wanted we upgraded to Tomcat
5.5.7 and Sun Java 1.5. The main change in our application was the new
format for data soruces in the application context. No problem on
Windows XP. We've tried to install on one of our Linux servers and are
having no end of grief getting a DB connection to properly happen.

Any help or ideas would be much appreciated. I've included the
application context and the catalina log error messages below.

Thanks in advance - Richard


***- APPLICATION CONTEXT:
Context path=/stars docBase=stars debug=99 reloadable=true
privileged=true antiResourceLocking=false antiJARLocking=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=stars. suffix=.log timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=com.mysql.jdbc.Driver
   connectionURL=jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec
t=trueamp;autoCommit=true
  connectionName=ltojsw connectionPassword=586579
   userTable=PoAssociate userNameCol=userid
userCredCol=password
   userRoleTable=PoUserRole roleNameCol=roleName /
Resourcename=jdbc/stars
 type=javax.sql.DataSource
 auth=Container
maxActive=100
  maxIdle=10
  maxWait=1
defaultAutoCommit=true
 userName=ltojsw
 password=586579
  driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql://192.168.11.3:3306/ltojsw?aut
oReconnect=trueamp;autoCommit=true
  removeAbandoned=true
removeAbandonedTimeout=60
  logAbandoned=true
/
/Context


***- CATALINA ERROR MESSAGES:

SNIP
19:37:27,642  INFO [http-8080-Processor25]
DatasourceConnectionProvider:51 - Using datasource:
java:comp/env/jdbc/stars
19:37:27,648  INFO [http-8080-Processor25]
TransactionManagerLookupFactory:33 - No TransactionManagerLookup
configured (in JTA environment, use of process level read-write cache is
not recommended)
AbandonedObjectPool is used
([EMAIL PROTECTED])
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60
19:37:41,696  WARN [http-8080-Processor25] SettingsFactory:107 - Could
not obtain connection metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Server connection failure during transaction.
Due to underlying exception: 'java.sql.SQLException: Access denied for
user ''@'kingfishS11' (using password: YES)'.

** BEGIN NESTED EXCEPTION **

java.sql.SQLException
MESSAGE: Access denied for user ''@'kingfishS11' (using password: YES)

STACKTRACE:

java.sql.SQLException: Access denied for user ''@'kingfishS11' (using
password: YES)
SNIP


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




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




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



RE: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-20 Thread Shakeel Ahmad
Wel we did the same to upgrade our product all went wel except for the
connector. Then after some research I found that
mysql-connector-java-3.1.6-bin.jar was the missing part. But your trace
also shows that the PoolableConnectionFactory is not being created may be
try commons-dbcp-1.2.1.jar if not already upgraded.


Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.
-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 10:24 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what
changed?


Actually I tried MySQL Connector/J 3.0.15, and then updated to the
latest 3.1.7. Each was placed in in $CATALINA_HOME/common/lib and
tried - same result/error message.

-Original Message-
From: Shakeel Ahmad [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 20, 2005 10:22 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.7 cannot connect to mysql datasource - what
changed?


Have you changed the corresponding mysql connector jar file ?

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 7:53 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?


We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL
Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on
both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and
production).

In order to get failover to work the way we wanted we upgraded to Tomcat
5.5.7 and Sun Java 1.5. The main change in our application was the new
format for data soruces in the application context. No problem on
Windows XP. We've tried to install on one of our Linux servers and are
having no end of grief getting a DB connection to properly happen.

Any help or ideas would be much appreciated. I've included the
application context and the catalina log error messages below.

Thanks in advance - Richard


***- APPLICATION CONTEXT:
Context path=/stars docBase=stars debug=99 reloadable=true
privileged=true antiResourceLocking=false antiJARLocking=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=stars. suffix=.log timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=com.mysql.jdbc.Driver
   connectionURL=jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec
t=trueamp;autoCommit=true
  connectionName=ltojsw connectionPassword=586579
   userTable=PoAssociate userNameCol=userid
userCredCol=password
   userRoleTable=PoUserRole roleNameCol=roleName /
Resourcename=jdbc/stars
 type=javax.sql.DataSource
 auth=Container
maxActive=100
  maxIdle=10
  maxWait=1
defaultAutoCommit=true
 userName=ltojsw
 password=586579
  driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql://192.168.11.3:3306/ltojsw?aut
oReconnect=trueamp;autoCommit=true
  removeAbandoned=true
removeAbandonedTimeout=60
  logAbandoned=true
/
/Context


***- CATALINA ERROR MESSAGES:

SNIP
19:37:27,642  INFO [http-8080-Processor25]
DatasourceConnectionProvider:51 - Using datasource:
java:comp/env/jdbc/stars
19:37:27,648  INFO [http-8080-Processor25]
TransactionManagerLookupFactory:33 - No TransactionManagerLookup
configured (in JTA environment, use of process level read-write cache is
not recommended)
AbandonedObjectPool is used
([EMAIL PROTECTED])
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60
19:37:41,696  WARN [http-8080-Processor25] SettingsFactory:107 - Could
not obtain connection metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Server connection failure during transaction.
Due to underlying exception: 'java.sql.SQLException: Access denied for
user ''@'kingfishS11' (using password: YES)'.

** BEGIN NESTED EXCEPTION **

java.sql.SQLException
MESSAGE: Access denied for user ''@'kingfishS11' (using password: YES)

STACKTRACE:

java.sql.SQLException: Access denied for user ''@'kingfishS11' (using
password: YES)
SNIP


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




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




-
To 

JDBC connection errors

2005-02-20 Thread deepak suldhal
Hi
I am getting the following errors while trying to make a JDBC connection. 
Please help.
 
 
 
description The server encountered an internal error () that prevented it from 
fulfilling this request. 
exception 
javax.servlet.ServletException: Unable to get connection, DataSource invalid: 
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 
'' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause 
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: 
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 
'' for connect URL 'null'

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unknown
 Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknown 
Source)

org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

JDBC connection - Please help

2005-02-20 Thread deepak suldhal
Please help me make my first JDBC connection
My web.xml 
 
web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; 
version=2.4 
  descriptionMySQL Test App/description 
  resource-ref 
  descriptionDB Connection/description 
  res-ref-namejdbc/TestDB/res-ref-name 
  res-typejavax.sql.DataSource/res-type 
  res-authContainer/res-auth 
  /resource-ref 
/web-app 
---
In server.xml I have the following context ( trying to connect to Sybase 
database)
Context path=/DBTest docBase=DBTest debug=5 reloadable=true 
crossContext=true 
Resource name=jdbc/TestDB auth=Container 
type=javax.sql.DataSource 
maxActive=100 maxIdle=30 maxWait=1 
username=javauser password=javadude 
driverClassName=com.sybase.jdbc2.jdbc.SybDriver 
url=jdbc:sybase:Tds:re2unx188:2025/ 
/Context
---
I have copied the JDCB drive Jar under
commons/lib
I have a test.jsp as follows
--- 
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=jdbc/TestDB
select id, foo, bar from testdata
/sql:query
html
  head
titleDB Test/title
  /head
  body
  h2Results/h2
  
c:forEach var=row items=${rs.rows}
Foo ${row.foo}br/
Bar ${row.bar}br/
/c:forEach
  /body
/html
---
My directory structue is as follows
webapps/DBTest/WEB-INF/web.mxl
  /DBTest/test.jsp
---
And when I try the url
http://localhost:8080/DBTest/test.jsp
I am getting the following errors
description The server encountered an internal error () that prevented 
it from fulfilling this request. 
exception 
javax.servlet.ServletException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
javax.servlet.jsp.JspException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unknown
 Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknown 
Source)

org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802

---
My console server display is as follows
eb 20, 2005 10:31:08 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
Feb 20, 2005 10:31:08 PM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 1422 ms 
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardEngine start 
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardHost start 
INFO: XML validation disabled 
Feb 20, 2005 10:31:10 PM org.apache.catalina.core.StandardHost 

RE: JDBC connection errors

2005-02-20 Thread Reshma Bhatia
Hi,

Looks like you are using the Tomcat Connection pool.
Refer to the attached file and verify that you have done these steps.
I think it should solve your problem.


-Original Message-
From: deepak suldhal [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 11:43 AM
To: tomcat users
Subject: JDBC connection errors


Hi
I am getting the following errors while trying to make a JDBC connection.
Please help.



description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause
javax.servlet.jsp.JspException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unk
nown Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknow
n Source)

org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_

Settings for Tomcat Connection Pool
***
1) Put classes12.jar file in path = CATALINA_HOME\common\lib
2) Add the Tag given below into server.xml file

DefaultContext
Resource name=jdbc/myOracle type=javax.sql.DataSource/ 

ResourceParams name=jdbc/myOracle
  parameter
  namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:[EMAIL PROTECTED]:1521:PKGSFT/value
  /parameter
  parameter
nameusername/name
valuepswtoshiba/value
  /parameter
  parameter
namepassword/name
valuepswtoshiba/value
  /parameter
  parameter
namemaxActive/name
value50/value
  /parameter
  parameter
namemaxIdle/name
value10/value
  /parameter
  parameter
namemaxWait/name
value3/value
  /parameter
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
parameter
nameremoveAbandonedTimeout/name
value300/value
/parameter
parameter
namelogAbandoned/name
valuetrue/value
/parameter

/ResourceParams
/DefaultContext

3) Change the values of url, username, password as per the environment setup at 
Toshiba side.

4) Significance of following tags:
maxActive : Maximum number of dB connections in pool. Make sure the 
max_connections of DB are large enough to handle
this limit. Set to 0 for no limit.

maxIdle : Maximum number of idle dB connections to retain in pool. Set to 0 for 
no limit.

maxWait : Maximum time to wait for a dB connection to become available in 

RE: JDBC connection errors

2005-02-20 Thread Shakeel Ahmad
You are not giving the correct parameters for the connection, see '' and
null, correct them ...

Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com

EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.

-Original Message-
From: deepak suldhal [mailto:[EMAIL PROTECTED]
Sent: 21 February, 2005 11:13 AM
To: tomcat users
Subject: JDBC connection errors


Hi
I am getting the following errors while trying to make a JDBC connection.
Please help.



description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause
javax.servlet.jsp.JspException: Unable to get connection, DataSource
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unk
nown Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknow
n Source)

org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



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



Fwd: JDBC connection - Please help

2005-02-20 Thread deepak suldhal
When I write a simple java class to get the driver and connection it works fine.
I am able to retrive row and print them.

But I am not able to get the same on Tomcat server. Note: forwarded message attached.
		Do you Yahoo!? 
The all-new My Yahoo! – What will yours do?---BeginMessage---
Please help me make my first JDBC connection
My web.xml 
 
web-app xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; 
version=2.4 
  descriptionMySQL Test App/description 
  resource-ref 
  descriptionDB Connection/description 
  res-ref-namejdbc/TestDB/res-ref-name 
  res-typejavax.sql.DataSource/res-type 
  res-authContainer/res-auth 
  /resource-ref 
/web-app 
---
In server.xml I have the following context ( trying to connect to Sybase 
database)
Context path=/DBTest docBase=DBTest debug=5 reloadable=true 
crossContext=true 
Resource name=jdbc/TestDB auth=Container 
type=javax.sql.DataSource 
maxActive=100 maxIdle=30 maxWait=1 
username=javauser password=javadude 
driverClassName=com.sybase.jdbc2.jdbc.SybDriver 
url=jdbc:sybase:Tds:re2unx188:2025/ 
/Context
---
I have copied the JDCB drive Jar under
commons/lib
I have a test.jsp as follows
--- 
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=jdbc/TestDB
select id, foo, bar from testdata
/sql:query
html
  head
titleDB Test/title
  /head
  body
  h2Results/h2
  
c:forEach var=row items=${rs.rows}
Foo ${row.foo}br/
Bar ${row.bar}br/
/c:forEach
  /body
/html
---
My directory structue is as follows
webapps/DBTest/WEB-INF/web.mxl
  /DBTest/test.jsp
---
And when I try the url
http://localhost:8080/DBTest/test.jsp
I am getting the following errors
description The server encountered an internal error () that prevented 
it from fulfilling this request. 
exception 
javax.servlet.ServletException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.test_jsp._jspService(test_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
javax.servlet.jsp.JspException: Unable to get connection, DataSource 
invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(Unknown
 Source)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Unknown 
Source)

org.apache.jsp.test_jsp._jspx_meth_sql_query_0(test_jsp.java:101)
org.apache.jsp.test_jsp._jspService(test_jsp.java:58)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802

---
My console server display is as follows
eb 20, 2005 10:31:08 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-8080 
Feb 20, 2005 10:31:08 PM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 1422 ms 
Feb 20, 2005 10:31:09 PM org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
Feb