Re: deny directory listing in tomcat

2005-07-05 Thread Antony Paul
On 7/5/05, vishwam [EMAIL PROTECTED] wrote:
 hi,
 
  iam using tomcat5.0, I have developed a web application on my server  and I
 want to deny directory listing  in tomcat so that if any one types even
 http://localhost:8080 it should deny the listings.
 I tried by changing in
 web.xml  listings falselistings tag, but by this method I can prevent
 only my application.
 
 Can any one suggest the solution please.

put index.jsp or index.html in every folder.

-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Tomcat 5.5.7 build procedure required

2005-04-04 Thread Antony Paul
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/building.html

On Apr 4, 2005 5:47 PM, Vijay Babu [EMAIL PROTECTED] wrote:
 Hi All,
 Could anyone provide me information on how to build tomcat 5.5.7 from
 the sources. The jakarta site provides a detailed procedure for tomcat
 4, but does not for tomcat 5. I would like to know what dependencies
 have to downloaded and the steps to follow.
 Please advise.
 
 Thanks and Regards,
 Vijay
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: remove stack-trace from public web

2005-03-31 Thread Antony Paul
You can use an error page to display when an exception occurs. This
can be configured in web.xml.
for eg.
error-page
exception-typejava.lang.Exception/exception-type
location/internalError.html/location
/error-page

it can be used with HTTP error status also. The following displays
invalidpage.html if a page is not found.

error-page
error-code404/error-code
location/invalidpage.html/location
/error-page



On Thu, 31 Mar 2005 13:22:40 +0200, Andreas Andersson
[EMAIL PROTECTED] wrote:
 Hi!
 
 Is there anyway to make tomcat not print the stack trace when jsp fails?
 
 --
 Andreas Andersson
 IT Dept.
 Travelstart Nordic
 [EMAIL PROTECTED]
 http://www.travelstart.se
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: start/stop-script from source dist

2005-03-31 Thread Antony Paul
Check for RPM/deb distributions. This one is useful.
http://www.raibledesigns.com/tomcat/boot-howto.html . I hadnt tried it yet.


On Thu, 31 Mar 2005 13:27:16 +0200, Andreas Andersson
[EMAIL PROTECTED] wrote:
 Is there a start/stop-script in the source distribution thats suitable
 to run from /etc/init.d on linux?
 
 Or is there a way to make one automatically?
 --
 Andreas Andersson
 IT Dept.
 Travelstart Nordic
 [EMAIL PROTECTED]
 http://www.travelstart.se
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: build problem

2005-03-31 Thread Antony Paul
What version of Ant you are using ?. It seems that Ant is not
supporting the attribute compression

On Apr 1, 2005 3:48 AM, Fay, Michael [EMAIL PROTECTED] wrote:
 I'm sure it's something simple, but I'm getting the following error when I
 try to build tomcat:
 
 BUILD FAILED
 
 /home/mfay/jakarta-tomcat-5.5.7-src/build.xml:94: The cvs task doesn't
 support the compression attribute.
 
 I've searched the Jakarta website to see if there was something on this, but
 I haven't found anything. Do I need to make some change to the
 build.properties or something?
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Long Startup Time

2005-03-30 Thread Antony Paul
On what hardware it is running ?. Check for other processes running ?.
Any antivirus scanner runnign ?.
Check for ContextListeners and Servlets which are set to load on
startup. Look at the web.xml to find such things. The bottleneck
should be in your application.


On Wed, 30 Mar 2005 15:55:39 -0500, Mike Cherichetti (Renegade
Internet) [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm running Tomcat 5.0.28 with JDK 1.5.0_01 on Fedora Core 3.
 
 The problem that I'm having is pretty odd.  It's taking Tomcat about 30
 minutes to fully start up and start accepting connections.  Here's where
 it's getting hung up at from the startup logs:
 
 Mar 30, 2005 10:52:10 AM org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 Mar 30, 2005 11:21:03 AM org.apache.catalina.core.StandardHost
 getDeployer
 
 You can see that it's about 29 minutes between those two log entries.  So,
 my question is, what is happening there that could take so long?  There are
 no errors in the logs and once Tomcat does complete its startup stuff our
 application works just fine.
 
 Thanks,
 
 Mike
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: multiple domain name support for https

2005-03-29 Thread Antony Paul
One way is to redirect all requests if the request.getServerName()
dont return the hostname for which SSL certificate is issued. This can
be done in entry pages to your site.


On Wed, 30 Mar 2005 00:40:34 -0600, Sasisekar S Sundaram
[EMAIL PROTECTED] wrote:
 Hi,
 Few browsers (like Mozilla) are giving a warning message ==  Security 
 Error: Doamin Name Mismatch  with https. I understand that the error is 
 because i have two domain names, like www.mycompany.com  and mycompany.com  
 for the same IP, and the certificate of tomcat contains only one of the 2 
 names.  I understand that i can not create another certificate, and i can not 
 even use Name-based virtual hosts. It is important for me to over ride this 
 Warning message in our production environment. I read somewhere that I can 
 override the HostnameVerifier interface and achieve the solution. Can some 
 one guide me about how to modify it and integrate with Tomcat. I appreciate 
 your time. Thank you
 
 Regards,
 
 Sasisekar S Sundaram
 Research Assistant
 Center For Business and Information Technology (CBIT)
 University of Louisiana, Lafayette
 Ph: (337) 482 0618
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Persistence manager ClassNotFoundException during deserialization

2005-03-28 Thread Antony Paul
Although I am getting a different stacktrace, I hope #19701 will solve
my issue.
Thanks for spending your valuable time for me.

On Tue, 22 Mar 2005 20:27:45 +, Mark Thomas [EMAIL PROTECTED] wrote:
 It is only a guess but it looks like you have hit
 http://issues.apache.org/bugzilla/show_bug.cgi?id=19701
 
 This was fixed in the 4.1.31 release
 
 Mark
 
 Antony Paul wrote:
  I need to have a bug registered for this as I could convince my
  manager. I searched bugzilla but could'nt find one. If anyone know the
  relevant bug# please post it or shall I post a bug report and any one
  close it immediately ?.
 
 
  On Wed, 9 Mar 2005 15:05:13 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 
 It is working in 4.1.31. Thanks for the help
 
 rgds
 Antony Paul
 
 
 On Tue, 08 Mar 2005 22:52:50 +, Mark Thomas [EMAIL PROTECTED] wrote:
 
 What happens on 4.1.31?
 
 Mark
 
 Antony Paul wrote:
 
 I created a sample application and is available at
 http://geocities.com/antonypaul24/web.html . Any one can download it
 and test.
 
 rgds
 Antony Paul
 
 
 On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 
 
 I am waiting for some knowledgeable person to answer my questions.
 Meanwhile I will write a test application, download Tomcat source code
 and try to debug the problem.
 
 rgds
 Antony Paul
 
 
 On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 
 
 Hi all,
I am getting ClassNotFoundException when deserialising
 arrays/Lists stored in session. It have no problem with normal objects
 but have error when it is made an array or List.
The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using
 Filestore persistent manager which is set in example config.
The full stack trace is given below from catalina.out.
 
 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in
 the container during the request processing
 java.lang.IllegalStateException: Error deserializing Session
 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException:
 [Lmd.edrugstore.model.AuthenticatedWebUser;
at 
  org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717)
at 
  org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593)
at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173)
at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
  org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at 
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:534)
 
 rgds
 Antony Paul
 
 
 -
 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]
 
 
 
 --
 rgds
 Antony Paul
 http://www.geocities.com/antonypaul24/
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Tomcat 5-5.7 make reload classes?

2005-03-27 Thread Antony Paul
I think it is inthe Context element(in 4.1.x) which is configured for lesson1.


On Fri, 25 Mar 2005 14:26:30 -0600, Scott Purcell
[EMAIL PROTECTED] wrote:
 First time using the manager application. I deployed a war file into my 
 webapps, and all is good. Problem is, if I update class file in newly created 
 webapp, it does not recompile automatically like my old 4x did. I had to do a 
 reload from the manager to see the changes.
 
 If my new webapp is called lesson1 where do I set the reload=true?
 
 Thanks,
 
 Scott K Purcell | Developer | VERTIS |
 555 Washington Ave. 4th Floor | St. Louis, MO 63101 |
 314.588.0720 Ext:1320 | [EMAIL PROTECTED] | http://www.vertisinc.com 
 http://www.vertisinc.com/
 
 Vertis is the premier provider of targeted advertising, media, and
 marketing services that drive consumers to marketers more effectively.
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Where is the admin pkg for tomcat 5.5?

2005-03-23 Thread Antony Paul
It is here. If you followed binary download link you could locate it.
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi


On Tue, 22 Mar 2005 23:36:37 -0600, Airhart, Richard J
[EMAIL PROTECTED] wrote:
 When I click on Tomcat Administration I get this message:
 Tomcat's administration web application is no longer installed by default. 
 Download and install the admin package to use it.
 
 I have spend hours of unproductive time on the 
 http://jakarta.apache.org/tomcat/ web site trying to locate this admin 
 package to download. Where is it, if it exists?
 
 Richard J. Airhart
 Computer Software Specialist
 Ex: 25605
 Mailto:[EMAIL PROTECTED] or Mailto:[EMAIL PROTECTED]
 http://oit.uta.edu/bcs/PCBusApps/deptapps.html
 Office of Information Technology
 Enterprise Information Services
 B-36i Davis Hall
 University of Texas @ Arlington
 B0x 19318 Arlington, TX 76019
 Voice: 817-272-5605
 Fax: 917-272-5800
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Persistence manager ClassNotFoundException during deserialization

2005-03-21 Thread Antony Paul
I need to have a bug registered for this as I could convince my
manager. I searched bugzilla but could'nt find one. If anyone know the
relevant bug# please post it or shall I post a bug report and any one
close it immediately ?.


On Wed, 9 Mar 2005 15:05:13 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 It is working in 4.1.31. Thanks for the help
 
 rgds
 Antony Paul
 
 
 On Tue, 08 Mar 2005 22:52:50 +, Mark Thomas [EMAIL PROTECTED] wrote:
  What happens on 4.1.31?
 
  Mark
 
  Antony Paul wrote:
   I created a sample application and is available at
   http://geocities.com/antonypaul24/web.html . Any one can download it
   and test.
  
   rgds
   Antony Paul
  
  
   On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote:
  
  I am waiting for some knowledgeable person to answer my questions.
  Meanwhile I will write a test application, download Tomcat source code
  and try to debug the problem.
  
  rgds
  Antony Paul
  
  
  On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote:
  
  Hi all,
  I am getting ClassNotFoundException when deserialising
  arrays/Lists stored in session. It have no problem with normal objects
  but have error when it is made an array or List.
  The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using
  Filestore persistent manager which is set in example config.
  The full stack trace is given below from catalina.out.
  
  2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in
  the container during the request processing
  java.lang.IllegalStateException: Error deserializing Session
  8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException:
  [Lmd.edrugstore.model.AuthenticatedWebUser;
  at 
   org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717)
  at 
   org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593)
  at 
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173)
  at 
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at 
   org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
  at 
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at 
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
  at 
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at 
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at 
   org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  at 
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at 
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at 
   org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 
   org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  at 
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
  at 
   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
  at 
   org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
  at 
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
  at java.lang.Thread.run(Thread.java:534)
  
  rgds
  Antony Paul
  
  
  
   -
   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]
 
 
 
 --
 rgds
 Antony Paul
 http://www.geocities.com/antonypaul24/
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: [tomcat-user] Postgres + JDBC

2005-03-18 Thread Antony Paul
Try changing the url to postgresql instead of postgres.


On Fri, 18 Mar 2005 13:44:08 +0100, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 First of all, hello to the groupe.
 
 I'm a newbi as far as tomcat is concerned, so if this is
 really stupid, sorry for wasting your time.
 
 I'm trying to get a JDBC Data pool connection up using
 Tomcat and postgres SQL.
 
 My JNDI source is configured, and when I :
 Context initContext = new InitialContext();
 Context envContext  =
 (Context)initContext.lookup(java:/comp/env);
 DataSource ds = (DataSource)envContext.lookup(jdbc/postgres);
 
 I get a Datasource with all the details I entered.
 
 The problem is that when I try to connect, I get the
 following error:
 
 Cannot create JDBC driver of class 'org.postgresql.Driver'
 for connect URL 'jdbc:postgres://10.201.1.10/QCM'
 
 postgres-8.0.309.jdbc3.jar is in common/lib, yet removing
 it, or movining it to shared/lib or $WEBAPP/WEB-INF/lib
 doesn't change the error.
 
 I'm running postgresql 8.0 and tomcat 5.0.28.
 
 TIA for your time, all suggestions greatly appreciated.
 
 David
 
  ADSL JUSQU'A 8 MEGA + 3 MOIS DE TELEPHONE GRATUIT 
 
 L'ultra haut débit à 15EUR/mois seulement ! Et vous téléphonez gratuitement 
 en France vers les postes fixes,
 hors numéros spéciaux pendant 3 mois.
 Pour profiter de cette offre exceptionnelle, cliquez ici : 
 http://register.tiscali.fr/adsl/  (voir conditions sur le site)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: tomcat throwing exceptions

2005-03-17 Thread Antony Paul
Just out of curiousity what this line means ?
StandardWrapperValve[UserPurchase]:
Also this line looks strange
.servlet.HandleRequest.showMessage(HandleRequest.java:203)



On Fri, 18 Mar 2005 00:34:18 -0600, Caldarale, Charles R
[EMAIL PROTECTED] wrote:
  From: Barclay, Lachlan [mailto:[EMAIL PROTECTED]
  Subject: tomcat throwing exceptions
 
  But then if I quicken the delays to about 20ms, I start to
  get these exceptions. It looks like Tomcat is thinking that
  a request is part of a previous request, and then something
  goes wrong.
 
 Odds are it's your application, not Tomcat.  (Although this is a pretty old 
 level, and there have been a fair number of bugs fixed since then.)  Look for 
 some request- or response-related object being stored in the session or in 
 the servlets being used.  Since you can have multiple threads using the 
 session and each servlet simultaneously, you could be inadvertently sharing 
 data.  Static fields are also prone to this problem unless carefully used.
 
  - 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]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



How to get know what version of TC is running behind Apache

2005-03-16 Thread Antony Paul
Hi all,
Is it possible to know what version of Tomcat is running behind an
Apache. The connector used is JK.
-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: How to get know what version of TC is running behind Apache

2005-03-16 Thread Antony Paul
Thanks for the reply.
That is not useful. I already have this installed and tried curl also.
It is saying the server is Apache.


On Wed, 16 Mar 2005 08:05:56 -0500, Fenderbosch, Eric
[EMAIL PROTECTED] wrote:
 If you just want to see it in your browser, use Mozilla Firefox and install 
 this extension:
 http://livehttpheaders.mozdev.org/
 Then you can see all the http headers, including server, which will tell 
 you which version of Tomcat.
 
 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 16, 2005 4:47 AM
 To: Tomcat Users List
 Subject: How to get know what version of TC is running behind Apache
 
 Hi all,
 Is it possible to know what version of Tomcat is running behind an
 Apache. The connector used is JK.
 --
 rgds
 Antony Paul
 http://www.geocities.com/antonypaul24/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Configuration Problem in Tomcat for HTTPS

2005-03-14 Thread Antony Paul
If you followed instruction in the tomcat docs the key will be stored
in the users home directory. In windows it will be in c:\documents and
settings\username\.keystore . By default Tomcat looks at this
location for the key.
Are you getting any error in logs ?.



On Mon, 14 Mar 2005 05:09:27 -0800 (PST), suryadevara dushyanth
[EMAIL PROTECTED] wrote:
 I have modified the server.xml and removed the
 comments for ssl connector on port 8443. I generated a
 self signed certificate in the path of java_home. This
 is the procedure given in
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.
 
 After modifying the server.xml for testing I typed in
 https:/Localhost:8443 which should give me the same
 tomcat home page but it says page cannot be displayed.
 
 Thanks
 Dushyanth
 
 --- Bill Barker [EMAIL PROTECTED] wrote:
  Urm, not really enough info here to help you.  Of
  course I'm assuming that
  you've already read
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html.
   Beyond
  that, you can try setting your logging category
  (log4j/java.util.logging
  config) for 'org.apache.tomcat.net.jsse' to DEBUG to
  increase the number of
  messages.
 
  suryadevara dushyanth [EMAIL PROTECTED] wrote
  in message
 
 news:[EMAIL PROTECTED]
   Hi,
   I am trying to configure my Tomcat with https
  support.
   I tried in two versions of tomcat.
  
   Tomcat 5
   I followed the process as given by the
  documentation
   but https is not working as i typed in the url
   https://localhost:8443; I am getting page not
   available.
  
   Tomcat 4.1.29
  
   I followed the process and modified the server.xml
   file by uncommenting the 8443 port. When i start
  my
   tomcat server it is shutting down and it does not
   start. I tried it through Tomcat Admin page but it
   says resource requested not available.
  
   Please help me out as I have to host my
  application in
   Tomcat using HTTPS port. And I am under a tight
   deadline for hosting this application.
  
   Thanks  Regards
   Dushyanth
  
  
   __
   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!?
 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]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: getting started

2005-03-14 Thread Antony Paul
You can find Linux packages at JPackage.org. 


On Mon, 14 Mar 2005 17:22:53 -0800, Kemin Zhou [EMAIL PROTECTED] wrote:
 Dear Friends,
 
 I am trying to get started with tomcat 5.5.7 which is the most stable
 release.  I have spent a lot time on reading the documents.  Here I am
 trying to get some pointer.  First let me introduce myself, I have a lot
 of experience
 using the RedHat linux.  Right now my system is RedHat 9.0.  I updated a
 lot of things on this machine
 such as Apache, Ant 1.6, JDK SE 1.5, gcc 3.3, gtk   So my
 environment is bit recent.  My kernel is
 2.4.20-8.
 
 First question which is better, the source or the binary?  I could build
 the tomcat easily by doing the simple
 download of the build.xml into a directory.  At the shell
 
 #ant
 will build the whole tomcat system.  What do I do to go to the next
 step: install the binaries into the proper
 places in the system, such as /usr/local/tomcat?  I came from the
 classical make tradition, where you simple
 
 #make
 #make install
 
 Is there such a thing with ant?  Does anyone have any idea for the
 location of documents or the sort concerning what to do after building
 tomcat? I don't seem to see anything in the source directory?
 
 On the binary download branch, I could follow the instruction from
 tomcat web page.
 
 Any comments or help is appreciated.
 
 Kemin
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: file watcher

2005-03-10 Thread Antony Paul
You can search in Google. Two I know are log4j file watcher and Tomcat
WAR watcher.

rgds
Antony paul


On Thu, 10 Mar 2005 04:41:14 -0800 (PST), deepak suldhal
[EMAIL PROTECTED] wrote:
 if you have a file watcher Please email, it will help me a lot.
  
  
 Thanks
 
 Antony Paul [EMAIL PROTECTED] wrote:
 What you mean ?. You need a file watcher program or you have one.
 To start it when tomcat is started, 
 1. If it is servlet in web.xml use in servlet
 declaration and run it from init() method.
 2. Write a ContextListener and start it from there.
 
 rgds
 Antony Paul 
 
 
 On Wed, 9 Mar 2005 15:31:12 -0800 (PST), deepak suldhal
 wrote:
  Hi,
  I need to keep a file watcher program running.
  Is it possible for me to start this automatically when
  
  tomcat is hosted.
  
  Thanks
  D
  
  __
  Celebrate Yahoo!'s 10th Birthday!
  Yahoo! Netrospective: 100 Moments of the Web
  http://birthday.yahoo.com/netrospective/
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -- 
 rgds
 Antony Paul
 http://www.geocities.com/antonypaul24/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Persistence manager ClassNotFoundException during deserialization

2005-03-09 Thread Antony Paul
It is working in 4.1.31. Thanks for the help

rgds
Antony Paul


On Tue, 08 Mar 2005 22:52:50 +, Mark Thomas [EMAIL PROTECTED] wrote:
 What happens on 4.1.31?
 
 Mark
 
 Antony Paul wrote:
  I created a sample application and is available at
  http://geocities.com/antonypaul24/web.html . Any one can download it
  and test.
 
  rgds
  Antony Paul
 
 
  On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 
 I am waiting for some knowledgeable person to answer my questions.
 Meanwhile I will write a test application, download Tomcat source code
 and try to debug the problem.
 
 rgds
 Antony Paul
 
 
 On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 
 Hi all,
 I am getting ClassNotFoundException when deserialising
 arrays/Lists stored in session. It have no problem with normal objects
 but have error when it is made an array or List.
 The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using
 Filestore persistent manager which is set in example config.
 The full stack trace is given below from catalina.out.
 
 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in
 the container during the request processing
 java.lang.IllegalStateException: Error deserializing Session
 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException:
 [Lmd.edrugstore.model.AuthenticatedWebUser;
 at 
  org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717)
 at 
  org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593)
 at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173)
 at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at 
  org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at 
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
 at 
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
 at 
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
 at 
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:534)
 
 rgds
 Antony Paul
 
 
 
  -
  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]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: file watcher

2005-03-09 Thread Antony Paul
What you mean ?. You need a file watcher program or you have one.
To start it when tomcat is started, 
1. If it is servlet in web.xml use load-on-startup in servlet
declaration and run it from init() method.
2. Write a ContextListener and start it from there.

rgds
Antony Paul 


On Wed, 9 Mar 2005 15:31:12 -0800 (PST), deepak suldhal
[EMAIL PROTECTED] wrote:
 Hi,
I need to keep a file watcher program running.
 Is it possible for me to start this automatically when
 
 tomcat is hosted.
 
 Thanks
 D
 
 __
 Celebrate Yahoo!'s 10th Birthday!
 Yahoo! Netrospective: 100 Moments of the Web
 http://birthday.yahoo.com/netrospective/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Redirect from http:// to https://

2005-03-08 Thread Antony Paul
You use Tomcat standalone or along with Apache. 
In Tomcat stand alone you can 
1, In index.jsp or whatever be the welcome page check
response.isSecure() then redirect.
2. There is an option in web.xml in security element
transport-guarantee which can be specified for certain resources. On
accessing these resources it will automatically redirect to the https.
You need to properly configure redirectport in Connector element in
server.xml for this to work.

In Apache use mod_rewrite.


On Tue, 8 Mar 2005 23:27:54 + (GMT), Sanjeev Srivastava
[EMAIL PROTECTED] wrote:
 Hi All!,
  Can anone tell me how can I redirect http://
 to https:// . I want as soon as the user type
 http://abc.com it will go to https://abc.com
 
 (SSL Config).
 
 Please help..
 
 Regards,
 Sanjeev
 
 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Persistence manager ClassNotFoundException during deserialization

2005-03-07 Thread Antony Paul
Hi all,
I am getting ClassNotFoundException when deserialising
arrays/Lists stored in session. It have no problem with normal objects
but have error when it is made an array or List.
The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using
Filestore persistent manager which is set in example config.
The full stack trace is given below from catalina.out.

2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in
the container during the request processing
java.lang.IllegalStateException: Error deserializing Session
8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException:
[Lmd.edrugstore.model.AuthenticatedWebUser;
at 
org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717)
at 
org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:534)

rgds
Antony Paul

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



Re: Persistence manager ClassNotFoundException during deserialization

2005-03-07 Thread Antony Paul
I am waiting for some knowledgeable person to answer my questions.
Meanwhile I will write a test application, download Tomcat source code
and try to debug the problem.

rgds
Antony Paul


On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 Hi all,
 I am getting ClassNotFoundException when deserialising
 arrays/Lists stored in session. It have no problem with normal objects
 but have error when it is made an array or List.
 The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using
 Filestore persistent manager which is set in example config.
 The full stack trace is given below from catalina.out.
 
 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in
 the container during the request processing
 java.lang.IllegalStateException: Error deserializing Session
 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException:
 [Lmd.edrugstore.model.AuthenticatedWebUser;
 at 
 org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717)
 at 
 org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593)
 at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173)
 at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at 
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
 at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
 at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:534)
 
 rgds
 Antony Paul


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



Re: Persistence manager ClassNotFoundException during deserialization

2005-03-07 Thread Antony Paul
I created a sample application and is available at
http://geocities.com/antonypaul24/web.html . Any one can download it
and test.

rgds
Antony Paul


On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 I am waiting for some knowledgeable person to answer my questions.
 Meanwhile I will write a test application, download Tomcat source code
 and try to debug the problem.
 
 rgds
 Antony Paul
 
 
 On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote:
  Hi all,
  I am getting ClassNotFoundException when deserialising
  arrays/Lists stored in session. It have no problem with normal objects
  but have error when it is made an array or List.
  The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using
  Filestore persistent manager which is set in example config.
  The full stack trace is given below from catalina.out.
 
  2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in
  the container during the request processing
  java.lang.IllegalStateException: Error deserializing Session
  8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException:
  [Lmd.edrugstore.model.AuthenticatedWebUser;
  at 
  org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717)
  at 
  org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593)
  at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173)
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at 
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at 
  org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  at 
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
  at 
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
  at 
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
  at 
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
  at java.lang.Thread.run(Thread.java:534)
 
  rgds
  Antony Paul
 


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



Re: newbei

2005-03-03 Thread Antony Paul
You put the struts.jar and related files in WEB-INF\lib directory of
your application ?. Added mapping in web.xml for ActionServlet ?.
Better you you use Struts blank application which is bundled with
Struts download.

rgds
Antony Paul


On Thu, 03 Mar 2005 14:43:46 +0530, VTR Ravi Kumar [EMAIL PROTECTED] wrote:
 Hello all,
 
 I am getting a error message as follows
 
 2005-03-03 14:26:51 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:27:25 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:27:30 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:17 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:30 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:33 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:34 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:36 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:36 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:36 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:37 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:30:30 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:35:08 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 
 I am trying to execute a small struts example given in Mastering tomcat
 developement by Perter Harrison.
 /ListDepartmentsAction**/
 package action;
 import bean.Dept;
 import org.apache.struts.action.*;
 import javax.servlet.http.*;
 
 public class ListDepartmentsAction extends Action {
public ActionForward execute(ActionMapping mapping,
ActionForm form,HttpServletRequest request,
HttpServletResponse response) throws Exception{
 
request.setAttribute(departments,Dept.getDepartments());
return mapping.findForward(listing);
}
 
 }
 
 My jsp
 %@ taglib uri=logic prefix=logic%
 %@ taglib uri=bean prefix=bean%
 html
 body bgcolor=yellow
 table
 logic:iterate id=dept name=departments
 trtdbean:write name=dept /Herro/td/tr
 /logic:iterate
 / body
 /html
 
 Any help in this regard will be greatly helpful..
 
 thanks
 
 --
 ---
 VTR Ravi Kumar, Sr.Engineer,ITX, BHEL, Hardwar - 249403, India
 Fax no. 0091-1334 - 223948, Ph. No. 0091-1334-285260 / 285405
 ---
 
 
 -
 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: newbei

2005-03-03 Thread Antony Paul
You have to download the first file(jakarta-struts-1.2.4.zip) which
contains docs and examples.

rgds
Antony Paul


On Thu, 03 Mar 2005 16:08:06 +0530, VTR Ravi Kumar [EMAIL PROTECTED] wrote:
 Yes
 
 I have put struts.jar in the WEB-INF\lib and also added the mapping for
 action in web.xml
 I had downloaded the jakarta-struts-1.2.4-lib.tar.gz but it did not
 contain any blank application as you have mentioned.
 Please tell me where i can find the blank application 
 
 
 vtr
 
 Antony Paul wrote:
 
 You put the struts.jar and related files in WEB-INF\lib directory of
 your application ?. Added mapping in web.xml for ActionServlet ?.
 Better you you use Struts blank application which is bundled with
 Struts download.
 
 rgds
 Antony Paul
 
 
 On Thu, 03 Mar 2005 14:43:46 +0530, VTR Ravi Kumar [EMAIL PROTECTED] wrote:
 
 
 Hello all,
 
 I am getting a error message as follows
 
 2005-03-03 14:26:51 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:27:25 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:27:30 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:17 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:30 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:33 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:34 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:36 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:36 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:36 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:28:37 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:30:30 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 2005-03-03 14:35:08 StandardWrapperValve[action]: Servlet action is
 currently unavailable
 
 I am trying to execute a small struts example given in Mastering tomcat
 developement by Perter Harrison.
 /ListDepartmentsAction**/
 package action;
 import bean.Dept;
 import org.apache.struts.action.*;
 import javax.servlet.http.*;
 
 public class ListDepartmentsAction extends Action {
public ActionForward execute(ActionMapping mapping,
ActionForm form,HttpServletRequest request,
HttpServletResponse response) throws Exception{
 
request.setAttribute(departments,Dept.getDepartments());
return mapping.findForward(listing);
}
 
 }
 
 My jsp
 %@ taglib uri=logic prefix=logic%
 %@ taglib uri=bean prefix=bean%
 html
 body bgcolor=yellow
 table
 logic:iterate id=dept name=departments
 trtdbean:write name=dept /Herro/td/tr
 /logic:iterate
 / body
 /html
 
 Any help in this regard will be greatly helpful..
 
 thanks
 
 --
 ---
 VTR Ravi Kumar, Sr.Engineer,ITX, BHEL, Hardwar - 249403, India
 Fax no. 0091-1334 - 223948, Ph. No. 0091-1334-285260 / 285405
 ---
 
 
 -
 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]
 
 
 
 
 --
 ---
 VTR Ravi Kumar, Sr.Engineer,ITX, BHEL, Hardwar - 249403, India
 Fax no. 0091-1334 - 223948, Ph. No. 0091-1334-285260 / 285405
 ---
 
 
 -
 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: Equivalent of Resin run-at servlet configuration

2005-03-03 Thread Antony Paul
AFAIK  Tomcat dont provide a replacement for this. It is not in
Servlet spec. Search in archives as it was asked a few weeks before.

rgds
Antony Paul


On Thu, 3 Mar 2005 16:45:24 +0530 (IST), Subramanya Sastry
[EMAIL PROTECTED] wrote:
 Hello,
 
 I am developing a Java web application, and one of the requirements is to run
 a particular servlet periodically, or even at specified times.  Resin provides
 this ability via its run-at configuration element for servlets in web.xml
 
 Example Resin configuration:
servlet
   servlet-namedownload/servlet-name
   servlet-classDownloadNewsServlet/servlet-class
   run-at period='360m'/
/servlet
 
 However, I haven't found an equivalent configuration for Tomcat.  I searched
 the web and was unsuccessful.  So, any pointers as to how I could achieve this
 for Tomcat would be appreciated.
 
 Thanks,
 Subbu.
 
 -
 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: Pre-Compilation in Tomcat Jasper

2005-02-28 Thread Antony Paul
there is one jspc.bat in bin directory or an Ant task - JspC is
available for pre compiling jsp. Using this you can compile JSP to
Servlets and put it in WEB-INF/classes directory. It has parameter to
generate the required web.xml mappings.
Note : In Tomcat 4.1.x the task by default compiles all classes into
org.apache.jsp.

rgds
Antony Paul
On Mon, 28 Feb 2005 12:25:46 +0530, BV Karthik [EMAIL PROTECTED] wrote:
 Hi,
 
 Is there anything in Tomcat which will pre-compile our JSP's?
 What jasper has to do with Tomcat?
 Pls help. Thanks in advance.
 
 Regards,
 Karthik BV
 
 -
 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: Where is the compatibility package

2005-02-23 Thread Antony Paul
This page contains links. 
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

5.5.8-alpha Admin tar.gz -
http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.5.8/bin/jakarta-tomcat-5.5.8-admin.tar.gz

5.5.8-alpha Compat tar.gz -
http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.5.8/bin/jakarta-tomcat-5.5.8-compat.tar.gz

rgds
Antony Paul


On Wed, 23 Feb 2005 14:15:10 +0100, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I have downloaded Tomcat 5.5.8 and found that a prereq is J2SE 5.0 and later 
 (document: release notes)
 but to run in a J2SE Version 1.4 or 1.3  (document: running.txt) you can 
 download the
 compatibility package, it is said to be available from the binary download 
 site:
 
 http://jakarta.apache.org/site/binindex.cgi
 
 I have tried to locate the download but failed.
 
 Does anybody know where it resides?
 
 Thank you in advance.
 
 Hälsningar
 
 Lars Bjerges
 
 Team Verktyg
 
 * FöreningsSparbanken IT
 
 105 34 Stockholm
 
 * +46 (0)8 58 59 43 45
 
 * +46 (0)70 95 27 774
 


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



Re: Name jdbc is not bound in this Context error

2005-02-22 Thread Antony Paul
In fact I hadnt installed it in windlws. You can connect to server
suing psql. it will be in the bin directory. There is one GUI front
end available PgAdmin. The documentation will be in doc directory.
This contains installation, administration and tutorials on SQL. For
further you can ask questions at PostgreSQL mailing
lists(http://www.postgresql.org/community/lists/).

rgds
Antony Paul



On Tue, 22 Feb 2005 02:07:20 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote:
 Hi Antony,
 
 I downloaded postgres and installed on my m/c. I
 installed it as a service.
 
 Can you pls give step by step instruction as how to
 connect to postgresql database.
 
 Thank you so much.
 
 --- Antony Paul [EMAIL PROTECTED] wrote:
 
  You can name it the name of the context(web). The
  content should be
  similar to any other file there. I am giving a
  sample
 
  Context docBase=${catalina.home}/webapps/web
   antiResourceLocking=false
  antiJARLocking=false
 
  /Context
 
  rgds
  Antony Paul
 
 
  On Mon, 21 Feb 2005 23:18:55 -0800 (PST), U K Laxmi
  [EMAIL PROTECTED] wrote:
   Thanks for the replies. What do u mean by the
   following in ur erlier mail.
 
  Did you defined your newly created context
  web
in
  server.xml or at
  TOMCAT_HOME\conf\Catalina\localhost\some
name.xml
 
  
   Does it mean i need to create a new xml file in
   TOMCAT_HOME\conf\Catalina\localhost? What should
  be
   it's name? What should it contain? Pls let me
  know. I
   will try that. I didn't create any file there.
  
   Thanks again.
  
  hope it will help.
 
  rgds
  Antony Paul
 
 
 
  On Mon, 21 Feb 2005 22:25:59 -0800 (PST), U
  K
Laxmi
  [EMAIL PROTECTED] wrote:
   Yes i read and did as per the document.
  When
it
  didn't
   work, i followed the suggetions given to
  many
  users in
   the mailing lists in the internet and now
  i
guess
  i
   messed up. Actually in the error, it says,
  no
  suitable
   driver found.
  
   I'm using Ms Access as it's free. Do we
  have
any
  free
   driver available in the form of jar to use
  in
  place of
   JDBC-ODBC bridge driver? Or it's not
  required
if
   configuration is correct. Pls let me know.
I've
  pasted
   all relevant code in my first mail itself.
  If
time
   permits, any of you can try  give me the
  solution.
   It'll be a great help.
  
   I've integrated tomcat 5.5.7 with apache
  2.
Does
  this
   has any impact on the above.
  
   --- Antony Paul [EMAIL PROTECTED]
wrote:
  
If you followed the tomcat docs you will
have no
problem in DBCP
getting to work. Going for
Globalnamingresources
  is
needed if you need
to access it will all applications. Try
  to
  configure
it as per the doc
in following URL.
   
   
  
 

   
  
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
   
follow MySQL config. And no need to put
  commons*.jar
in commons/lib as
TC by default comes with it.
   
rgds
Antony Paul
   
   
On Mon, 21 Feb 2005 21:52:13 -0800
  (PST), U
K
  Laxmi
[EMAIL PROTECTED] wrote:
 I tried without GlobalNamingResources.
  No
  luck.
When
 googled, i found that if we include
 GlobalNamingResource tag, then it will
  be
available in
 all web context.

 After spending enough time on that,
  now i
   
   === message truncated ===
  
   __
   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]
 
 
 
 __
 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]



Re: Getting other Sessions

2005-02-22 Thread Antony Paul
You can put all the sessions in List or Map when they login or use
HttpSessionListener to listen to session events.

rgds
Antony Paul


On Tue, 22 Feb 2005 23:17:56 -0500, Joseph Shraibman
jks@selectacast.net wrote:
 I want to make an admin page in my application.  I needs to be able to
 get access to all the current Session objects to access their
 attributes.  Is this possible?
 
 -
 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: how to print to web page instead of catalina.out

2005-02-22 Thread Antony Paul
Why not use out.print() or you are trying to do something else ?.

rgds
Antony Paul


On Tue, 22 Feb 2005 20:26:41 -0800 (PST), Jin Wu [EMAIL PROTECTED] wrote:
 Hi,
 
 It seems that System.out.printlin(...) prints to catalina.out. Is there a 
 way I can print to web page?
 
 Thanks,
 James
 
 __
 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]



Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
It seems you still have problem. You can google for the answer. One
thing I know is GlobalNamingResources should come inside the Server
element and not inside Context element.

rgds
Antony Paul


On Fri, 18 Feb 2005 22:47:06 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote:
 I could able to get thro' JarperException. Thanks for
 replies.
 
 Now facing new problem.
 
 I'm getting NameNotFoundException -  Name jdbc is
 not bound in this Context
 
 Environment what i'm using is: Apache 2, Tomcat 5.5,
 Netscape 7.2, MsAccess 2003 on windows 2000 machine.
 
 I integrated tomcat and apache as apache doesn't
 support jsps. I wrote a JSP called test-db.jsp which
 in turn calls java program TestSQLLoad.java. This
 TestSQLLoad.java performs dattabase operation, fetches
 the data from table and that data is displayed on
 Netscape thro' jsp.
 
 1. test-db.jsp resides ina directory
 TOMCAT_HOME/webapps/web/JSP. Contents are as follows:
 
 %@ page contentType=text/html
 import=testpkg.TestSQLLoad%
 
 html
   head
 titleDB Test/title
   /head
   body
 
   %
 TestSQLLoad tst = new TestSQLLoad();
 tst.init();
   %
 
   h2Results/h2
 User - %= tst.getUser() %br/
 Pwd - %= tst.getPassword() %br/
 Id - %= tst.getID() %
 
   /body
 /html
 
 2. TestSQLLoad.java is residing in following
 directory. TOMCAT_HOME/webapps/web/classes/testpkg
 direcotry. Contents of this file are as follows:
 
 package testpkg;
 
 import javax.naming.*;
 import javax.sql.*;
 import java.sql.*;
 
 public class TestSQLLoad
 {
 
  String user = Not Connected;
  String pwd = no pwd;
  int id = -1;
 
  public void init() {
   try{
Context ctx = new InitialContext();
if(ctx == null ) {
 throw new Exception(Boom - No Context);
}
 
Context envCtx = (Context)
 ctx.lookup(java:comp/env);
DataSource ds = (DataSource)
 envCtx.lookup(jdbc/db1);
 
//DataSource ds =
 (DataSource)ctx.lookup(java:comp/env/jdbc/db1);
 
if (ds != null) {
 Connection conn = ds.getConnection();
 
 if(conn != null) {
  user = Got Connection +conn.toString();
  Statement stmt = conn.createStatement();
  String q = select name, password, id from
 user;
  ResultSet rst = stmt.executeQuery(q);
  if(rst.next()) {
   user=rst.getString(1);
   pwd=rst.getString(2);
   id = rst.getInt(3);
  }
  conn.close();
 }
}
   }catch(Exception e) {
e.printStackTrace();
   }
  }
 
  public String getUser() {
   return user;
  }
 
  public String getPassword() {
   return pwd;
  }
 
  public int getID()
  {
   return id;
  }
 }
 
 3. I created a jar file using testpkg directory  put
 it in TOMCAT_HOME/common/lib as well as
 TOMCAT_HOME/webapps/web/WEB-INF/lib directory.
 
 4. I created MsAccess database called db1.mdb and put
 it in TOMCAT_HOME/WEBAPPS/WEB/db1 directory. I created
 a table called user with fields name, password and ID.
 ID is the primary key.
 
 5. I included following in the server.xml of
 TOMCAT_HOME/conf directory.
 
 Context path=/db1 docBase=C:/tomcat/webapps/db1
 debug=5 reloadable=true
 crossContext=true
 
 GlobalNamingResources
   Resource name=jdbc/db1 auth=Container
 type=javax.sql.DataSource
 
 factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
 driverClassName=sun.jdbc.odbc.JdbcOdbcDrive
 url=jdbc:odbc://localhost/db1
 maxActive=20 maxIdle=10 maxWait=-1 /
 /GlobalNamingResources
 /Context
 
 6. I included following in context.xml of
 TOMCAT_HOME/conf directory.
 
 ResourceLink global=jdbc/db1 name=jdbc/db1
 type=javax.sql.DataSource/
 
 7. I included following in web.xml of
 TOMCAT_HOME/webapps/web/WEB-INF directory.
 
resource-ref
 res-ref-namejdbc/db1/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 
 8. I copied commons-collections-2.1.1.jar,
 commons-dbcp-1.2.1.jar and commons-pool-1.2.jar into
 TOMCAT_HOME/common/lib directory.
 
 9. I started apache, tomcat and then opened a browser
 and typed http://localhost/web/JSP/test-db.jsp.
 
 10. I get following on the browser.
 
 Results
 User - Not Connected
 Pwd - no pwd
 Id - -1
 
 11. On the tomcat window where tomcat is running i'm
 getting following error.
 
 javax.naming.NameNotFoundException: Name jdbc is not
 bound in this Context
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:769)
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:152)
 at
 org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(Resou
 rceLinkFactory.java:96)
 at
 javax.naming.spi.NamingManager.getObjectInstance(Unknown
 Source)
 at
 org.apache.naming.NamingContext.lookup

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
By default server.xml contains have a  GlobalNamingResources. You
have to add your resources in there.

rgds
Antony Paul


On Mon, 21 Feb 2005 19:56:23 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote:
 As just moved the GlobalNamingResources inside the
 main server in my server.xml residing in
 TOMCAT_HOME/conf directory. When i restart tomcat
 5.5.7 it's throwing up following exception.
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
 Feb 22, 2005 11:51:46 AM
 org.apache.catalina.realm.UserDatabaseRealm start
 SEVERE: Exception looking up UserDatabase under key
 UserDatabase
 javax.naming.NameNotFoundException: Name UserDatabase
 is not bound in this Conte
 xt
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:769)
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:152)
 at
 org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.j
 ava:222)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
 
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440
 )
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:4
 50)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:683
 )
 at
 org.apache.catalina.startup.Catalina.start(Catalina.java:537)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
 Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown
 Source)
 at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
 Feb 22, 2005 11:51:46 AM
 org.apache.catalina.startup.Catalina start
 SEVERE: Catalina.start:
 LifecycleException:  No UserDatabase component found
 under key UserDatabase
 at
 org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.j
 ava:228)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
 
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440
 )
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:4
 50)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:683
 )
 at
 org.apache.catalina.startup.Catalina.start(Catalina.java:537)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
 Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown
 Source)
 at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
 Feb 22, 2005 11:51:46 AM
 org.apache.catalina.startup.Catalina start
 INFO: Server startup in 391 ms
 
 Pls help to fix the problem.
 
 Thanks,
 Laxmi
 
 --- Antony Paul [EMAIL PROTECTED] wrote:
 
  It seems you still have problem. You can google for
  the answer. One
  thing I know is GlobalNamingResources should come
  inside the Server
  element and not inside Context element.
 
  rgds
  Antony Paul
 
 
  On Fri, 18 Feb 2005 22:47:06 -0800 (PST), U K Laxmi
  [EMAIL PROTECTED] wrote:
   I could able to get thro' JarperException. Thanks
  for
   replies.
  
   Now facing new problem.
  
   I'm getting NameNotFoundException -  Name jdbc
  is
   not bound in this Context
  
   Environment what i'm using is: Apache 2, Tomcat
  5.5,
   Netscape 7.2, MsAccess 2003 on windows 2000
  machine.
  
   I integrated tomcat and apache as apache doesn't
   support jsps. I wrote a JSP called test-db.jsp
  which
   in turn calls java program TestSQLLoad.java. This
   TestSQLLoad.java performs dattabase operation,
  fetches
   the data from table and that data is displayed on
   Netscape thro' jsp.
  
   1. test-db.jsp resides ina directory
   TOMCAT_HOME/webapps/web/JSP. Contents are as
  follows:
  
   %@ page contentType=text/html
   import=testpkg.TestSQLLoad%
  
   html
 head
   titleDB Test/title
 /head
 body
  
 %
   TestSQLLoad tst = new TestSQLLoad();
   tst.init();
 %
  
 h2Results/h2
   User - %= tst.getUser() %br/
   Pwd - %= tst.getPassword() %br/
   Id - %= tst.getID() %
  
 /body
   /html
  
   2. TestSQLLoad.java is residing in following
   directory. TOMCAT_HOME/webapps/web/classes/testpkg
   direcotry. Contents of this file are as follows:
  
   package testpkg;
  
   import javax.naming.*;
   import javax.sql.*;
   import java.sql.*;
  
   public class TestSQLLoad
   {
  
String user = Not Connected;
String pwd = no pwd;
int id = -1;
  
public void init() {
 try

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
If you followed the tomcat docs you will have no problem in DBCP
getting to work. Going for Globalnamingresources is needed if you need
to access it will all applications. Try to configure it as per the doc
in following URL.

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html

follow MySQL config. And no need to put commons*.jar in commons/lib as
TC by default comes with it.

rgds
Antony Paul


On Mon, 21 Feb 2005 21:52:13 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote:
 I tried without GlobalNamingResources. No luck. When
 googled, i found that if we include
 GlobalNamingResource tag, then it will be available in
 all web context.
 
 After spending enough time on that, now i coded all
 database related stuff in JSP in the way we do in
 stand alone application. I mean -
 
 Coding like this in jspo itself.
 
  code --
 %@ page contentType=text/html import=java.sql.*%
 
  html
 
  headtitlesimmPlan - simple material planning
 system/title
 script language=JavaScript
 src=/js/default.js/script
 
  %
 
   String userid = request.getParameter(userid);
   String passwd = request.getParameter(passwd);
   System.out.println(Password:  + passwd);
   String pwd = , str = ;
   int level = -1, ind = -1;
 
 try {
 Connection conn = null;
 Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
 
 conn=DriverManager.getConnection(jdbc:odbc:driver={Microsoft
 Access Driver
 (*.mdb)};DBQ=C:/tomcat/webapps/db1/db1.mdb);
 Statement stmt =
 conn.createStatement();
 
 String query = SELECT * FROM user
 where name = ' + userid + ';
 
 ResultSet st =
 stmt.executeQuery(query);
 if (st.next()) {
 pwd = st.getString(password);
 
 level = st.getInt(level);
 System.err.println(Query
 result=+userid+/+pwd+/+level);
 }
 else {
 ind = -2;
 System.out.println(No user with name 
  + userid
 +  available in the database);
 }
 
 if (stmt != null) {
 stmt.close();
 }
 
 if (conn != null) {
 conn.close();
 }
 
 } catch (Exception e) {
 e.printStackTrace();
 }
 if(pwd.equals(passwd)) {
 ind = level;
 }
 // else ind = -1;
 
  System.out.println(Ind -   + ind);
 %
 
 script language=JavaScript type=text/JavaScript
 var ind = %= ind %
 
 function loadHtml() {
 //alert(in loadHtml());
 if(ind == -2) {
 alert(Not a valid user);
 location.href = login.jsp;
 return;
 }
 if (ind == -1) {
 alert(Incorrect password);
 location.href = login.jsp;
 return;
 }
 else {
 //alert(Correct password);
 location.href = Second_Page.html;
 return;
 }
 }
 
 /script
  /head
 
  body onload=javascript:loadHtml()
 
 !-- User Name : %= userid %br
  Password  : %= passwd % --
 
  /body
 
  /html
 --- code ends here ---
 
 It works. But is it the right way to do? Pls advice.
 
 --- Antony Paul [EMAIL PROTECTED] wrote:
 
  By default server.xml contains have a
  GlobalNamingResources. You
  have to add your resources in there.
 
  rgds
  Antony Paul
 
 
  On Mon, 21 Feb 2005 19:56:23 -0800 (PST), U K Laxmi
  [EMAIL PROTECTED] wrote:
   As just moved the GlobalNamingResources inside the
   main server in my server.xml residing in
   TOMCAT_HOME/conf directory. When i restart tomcat
   5.5.7 it's throwing up following exception.
   INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
   Feb 22, 2005 11:51:46 AM
   org.apache.catalina.realm.UserDatabaseRealm start
   SEVERE: Exception looking up UserDatabase under
  key
   UserDatabase
   javax.naming.NameNotFoundException: Name
  UserDatabase
   is not bound in this Conte
   xt
   at
  
 
 org.apache.naming.NamingContext.lookup(NamingContext.java:769)
   at
  
 
 org.apache.naming.NamingContext.lookup(NamingContext.java:152)
   at
  
 
 org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.j
   ava:222)
   at
  
 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
  
   at
  
 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440
   )
   at
  
 
 org.apache.catalina.core.StandardService.start(StandardService.java:4
   50)
   at
  
 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:683
   )
   at
  
 
 org.apache.catalina.startup.Catalina.start

Re: problem with ssl

2005-02-21 Thread Antony Paul
You can check whether the keystore is properly created using the
following command

keytool -list -alias tomcat

rgds
Antony Paul


On 22 Feb 2005 12:24:05 +0600, Thavarajah Kurinchikumaran
[EMAIL PROTECTED] wrote:
 Hi all,
 
 I am using tomcat as my local server.
 I removed some keystore files which I created earlier using the keytool
 delete command . Then I created new keystore file using the command
 below
 
  keytool -genkey -keyalg RSA -alias tomcat -keystore .keystore
 
 But when I browse the secure page via the web it throws an error message
 mozilla and localhost cannot communicate securely because they have no
 common encryption algorithms
 
 what should i do to eliminate this problem?
 
 Thanks for any help
 
 Regards
 Kumaran
 
 -
 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: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
I dont whether MS Access is considered as RDBMS. For serious
development it is not recommended. Using ODBC have several problems. I
will recommend PostgreSQL. Now it runs very well on Windows. But
requires Windows 2000 or higher. You can find it at
http://www.postgresql.org/ftp/binary/v8.0.1/win32/. 
I am using it and have no problems. I am posting my configuration
that I used to set up DBCP.

server.xml
---
GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  
  Resource name=jdbc/db1 auth=Container
type=javax.sql.DataSource 
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
driverClassName=org.postgresql.Driver
url=jdbc:postgresql://192.168.4.248/antony
maxActive=20 maxIdle=10 maxWait=-1 
username=benchmark password=benchmark
/

  /GlobalNamingResources


TOMCAT_HOME/conf/context.xml
---
ResourceLink global=jdbc/db1 name=jdbc/db1 type=javax.sql.DataSource/

TOMCAT_HOME/webapps/web/WEB-INF/web.xml
-
resource-ref
  res-ref-namejdbc/db1/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref



Did you defined your newly created context web in server.xml or at
TOMCAT_HOME\conf\Catalina\localhost\some name.xml

hope it will help. 

rgds
Antony Paul



On Mon, 21 Feb 2005 22:25:59 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote:
 Yes i read and did as per the document. When it didn't
 work, i followed the suggetions given to many users in
 the mailing lists in the internet and now i guess i
 messed up. Actually in the error, it says, no suitable
 driver found.
 
 I'm using Ms Access as it's free. Do we have any free
 driver available in the form of jar to use in place of
 JDBC-ODBC bridge driver? Or it's not required if
 configuration is correct. Pls let me know. I've pasted
 all relevant code in my first mail itself. If time
 permits, any of you can try  give me the solution.
 It'll be a great help.
 
 I've integrated tomcat 5.5.7 with apache 2. Does this
 has any impact on the above.
 
 --- Antony Paul [EMAIL PROTECTED] wrote:
 
  If you followed the tomcat docs you will have no
  problem in DBCP
  getting to work. Going for Globalnamingresources is
  needed if you need
  to access it will all applications. Try to configure
  it as per the doc
  in following URL.
 
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
  follow MySQL config. And no need to put commons*.jar
  in commons/lib as
  TC by default comes with it.
 
  rgds
  Antony Paul
 
 
  On Mon, 21 Feb 2005 21:52:13 -0800 (PST), U K Laxmi
  [EMAIL PROTECTED] wrote:
   I tried without GlobalNamingResources. No luck.
  When
   googled, i found that if we include
   GlobalNamingResource tag, then it will be
  available in
   all web context.
  
   After spending enough time on that, now i coded
  all
   database related stuff in JSP in the way we do in
   stand alone application. I mean -
  
   Coding like this in jspo itself.
  
    code --
   %@ page contentType=text/html
  import=java.sql.*%
  
html
  
headtitlesimmPlan - simple material planning
   system/title
   script language=JavaScript
   src=/js/default.js/script
  
%
  
 String userid = request.getParameter(userid);
 String passwd = request.getParameter(passwd);
 System.out.println(Password:  + passwd);
 String pwd = , str = ;
 int level = -1, ind = -1;
  
   try {
   Connection conn = null;
  
  Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
  
  
 
 conn=DriverManager.getConnection(jdbc:odbc:driver={Microsoft
   Access Driver
   (*.mdb)};DBQ=C:/tomcat/webapps/db1/db1.mdb);
   Statement stmt =
   conn.createStatement();
  
   String query = SELECT * FROM user
   where name = ' + userid + ';
  
   ResultSet st =
   stmt.executeQuery(query);
   if (st.next()) {
   pwd =
  st.getString(password);
  
   level =
  st.getInt(level);
   System.err.println(Query
   result=+userid+/+pwd+/+level);
   }
   else {
   ind = -2;
  
  System.out.println(No user with name  + userid
   +  available

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
Most SQL is same and it supports a subset of SQL 92 and SQL 99
standards. Every RDBMS vendor  have some proprietory code which dont
work in other databases. There is one RDBMS
Firebird(http://firebird.sourceforge.net/). The site claims that it is
more like Oracle.

rgds
Antony Paul


On Mon, 21 Feb 2005 23:01:40 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote:
 Thank you for the replies. Ms Access is not a
 relational databaase. It's just DBMS. I didn't know
 that PostGreSQL is a open source RDBMS system. All the
 sqls, table creation etc.. works similar to Oracle or
 any other RDBMS? I'm working on windows 2000 machine.
 
 --- Antony Paul [EMAIL PROTECTED] wrote:
 
  I dont whether MS Access is considered as RDBMS. For
  serious
  development it is not recommended. Using ODBC have
  several problems. I
  will recommend PostgreSQL. Now it runs very well on
  Windows. But
  requires Windows 2000 or higher. You can find it at
  http://www.postgresql.org/ftp/binary/v8.0.1/win32/.
  I am using it and have no problems. I am posting
  my configuration
  that I used to set up DBCP.
 
  server.xml
  ---
  GlobalNamingResources
 
  !-- Test entry for demonstration purposes --
  Environment name=simpleValue
  type=java.lang.Integer value=30/
 
  !-- Editable user database that can also be
  used by
   UserDatabaseRealm to authenticate users --
  Resource name=UserDatabase auth=Container
 
  type=org.apache.catalina.UserDatabase
 description=User database that can be
  updated and saved
 
 
 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /
 
Resource name=jdbc/db1 auth=Container
  type=javax.sql.DataSource
 
 
 factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
  driverClassName=org.postgresql.Driver
 
  url=jdbc:postgresql://192.168.4.248/antony
  maxActive=20 maxIdle=10 maxWait=-1
 
  username=benchmark
  password=benchmark
  /
 
/GlobalNamingResources
 
 
  TOMCAT_HOME/conf/context.xml
  ---
  ResourceLink global=jdbc/db1 name=jdbc/db1
  type=javax.sql.DataSource/
 
  TOMCAT_HOME/webapps/web/WEB-INF/web.xml
 
 -
  resource-ref
res-ref-namejdbc/db1/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
 
 
 
  Did you defined your newly created context web in
  server.xml or at
  TOMCAT_HOME\conf\Catalina\localhost\some name.xml
 
  hope it will help.
 
  rgds
  Antony Paul
 
 
 
  On Mon, 21 Feb 2005 22:25:59 -0800 (PST), U K Laxmi
  [EMAIL PROTECTED] wrote:
   Yes i read and did as per the document. When it
  didn't
   work, i followed the suggetions given to many
  users in
   the mailing lists in the internet and now i guess
  i
   messed up. Actually in the error, it says, no
  suitable
   driver found.
  
   I'm using Ms Access as it's free. Do we have any
  free
   driver available in the form of jar to use in
  place of
   JDBC-ODBC bridge driver? Or it's not required if
   configuration is correct. Pls let me know. I've
  pasted
   all relevant code in my first mail itself. If time
   permits, any of you can try  give me the
  solution.
   It'll be a great help.
  
   I've integrated tomcat 5.5.7 with apache 2. Does
  this
   has any impact on the above.
  
   --- Antony Paul [EMAIL PROTECTED] wrote:
  
If you followed the tomcat docs you will have no
problem in DBCP
getting to work. Going for Globalnamingresources
  is
needed if you need
to access it will all applications. Try to
  configure
it as per the doc
in following URL.
   
   
  
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
   
follow MySQL config. And no need to put
  commons*.jar
in commons/lib as
TC by default comes with it.
   
rgds
Antony Paul
   
   
On Mon, 21 Feb 2005 21:52:13 -0800 (PST), U K
  Laxmi
[EMAIL PROTECTED] wrote:
 I tried without GlobalNamingResources. No
  luck.
When
 googled, i found that if we include
 GlobalNamingResource tag, then it will be
available in
 all web context.

 After spending enough time on that, now i
  coded
all
 database related stuff in JSP in the way we do
  in
 stand alone application. I mean -

 Coding like this in jspo itself.

  code --
 %@ page contentType=text/html
import=java.sql.*%

  html

  headtitlesimmPlan - simple material
  planning
 system/title
 script language=JavaScript
 src=/js/default.js/script

  %

   String userid =
  request.getParameter(userid);
   String passwd =
  request.getParameter(passwd);
   System.out.println(Password:  + passwd);
   String pwd = , str

Re: Name jdbc is not bound in this Context error

2005-02-21 Thread Antony Paul
You can name it the name of the context(web). The content should be
similar to any other file there. I am giving a sample

Context docBase=${catalina.home}/webapps/web
 antiResourceLocking=false antiJARLocking=false

/Context

rgds
Antony Paul


On Mon, 21 Feb 2005 23:18:55 -0800 (PST), U K Laxmi [EMAIL PROTECTED] wrote:
 Thanks for the replies. What do u mean by the
 following in ur erlier mail.
   
Did you defined your newly created context web
  in
server.xml or at
TOMCAT_HOME\conf\Catalina\localhost\some
  name.xml
   
 
 Does it mean i need to create a new xml file in
 TOMCAT_HOME\conf\Catalina\localhost? What should be
 it's name? What should it contain? Pls let me know. I
 will try that. I didn't create any file there.
 
 Thanks again.
 
hope it will help.
   
rgds
Antony Paul
   
   
   
On Mon, 21 Feb 2005 22:25:59 -0800 (PST), U K
  Laxmi
[EMAIL PROTECTED] wrote:
 Yes i read and did as per the document. When
  it
didn't
 work, i followed the suggetions given to many
users in
 the mailing lists in the internet and now i
  guess
i
 messed up. Actually in the error, it says, no
suitable
 driver found.

 I'm using Ms Access as it's free. Do we have
  any
free
 driver available in the form of jar to use in
place of
 JDBC-ODBC bridge driver? Or it's not required
  if
 configuration is correct. Pls let me know.
  I've
pasted
 all relevant code in my first mail itself. If
  time
 permits, any of you can try  give me the
solution.
 It'll be a great help.

 I've integrated tomcat 5.5.7 with apache 2.
  Does
this
 has any impact on the above.

 --- Antony Paul [EMAIL PROTECTED]
  wrote:

  If you followed the tomcat docs you will
  have no
  problem in DBCP
  getting to work. Going for
  Globalnamingresources
is
  needed if you need
  to access it will all applications. Try to
configure
  it as per the doc
  in following URL.
 
 

   
  
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
  follow MySQL config. And no need to put
commons*.jar
  in commons/lib as
  TC by default comes with it.
 
  rgds
  Antony Paul
 
 
  On Mon, 21 Feb 2005 21:52:13 -0800 (PST), U
  K
Laxmi
  [EMAIL PROTECTED] wrote:
   I tried without GlobalNamingResources. No
luck.
  When
   googled, i found that if we include
   GlobalNamingResource tag, then it will be
  available in
   all web context.
  
   After spending enough time on that, now i
 
 === message truncated ===
 
 __
 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: FW: Please help for a query in Tomcat. - Problem : Tomcat gets hanged

2005-02-17 Thread Antony Paul
You can try modifiying the maxProcessors in the connector  element in
conf/server.xml to a higher value to test whether increasing no of
threads solve the problem.

Post Tomcat , Java VM and OS versions.

rgds
Antony Paul


On Fri, 18 Feb 2005 10:14:15 +0530, Reshma Bhatia
[EMAIL PROTECTED] wrote:
 
 
  -Original Message-
 From:   Reshma Bhatia [mailto:[EMAIL PROTECTED]
 Sent:   Thursday, February 17, 2005 7:36 PM
 To: '[EMAIL PROTECTED]'
 Subject:Please help for a query in Tomcat. - Problem : Tomcat gets 
 hanged
 
 Hi,
 
 We have designed an application which works in Java JSP - Tomcat - Oracle
 environment.
 
 Our JSP page has two frames.
 1). First frame : This is the top frame containing links (displayed as Tabs)
 2). Second Frame : This is below the top frame and is updated with the
 selected link.
 
 For each click on the link a request is submitted and the response is
 populated in the second frame.
 The second frame contains a search criteria and fetches data from the
 database.
 
 Conditions when Tomcat hangs
 1). When we try clicking on the links very fast
 2). While the data is being fetched from the database and manipulated and if
 we click on other the links the server gets hang.
 
 Our analysis and understanding is :
 There would be some threads (requests) whose output was not allowed to be
 displayed in the second frame due to click on other links which would spawn
 another request for the same target.
 These requests remain in Service state as understood from the
 Tomcat-Manager status.
 Also, as per the information given on the link
 http://forum.java.sun.com/thread.jspa?threadID=454684messageID=2072194
 these requests would always remain in Service State.
 
 Please confirm whether our understanding is correct.
 Please provide a solution to this problem? Let us know in case any further
 information is needed.
 
 Thanks and regards,
 Reshma
 
 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.
 _
 
 
 -
 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: running tomcat using sablevm

2005-02-17 Thread Antony Paul
Were you able to run it in Sun or any other JVM. ?

rgds
Antony Paul


On Fri, 18 Feb 2005 10:36:21 +0530, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 
 Hello,
 
 Well the OS is Redhat linux 7.2
 JVM version: sablevm 1.1.9
 Tomcat version : 3.3.1a (Might be this is a older version but this is
 what I need to install)
 
 The error I get is as follows:
 
 Java.lang.InternalError:java.lang.ClassNotFoundException:
 org.apache.tomcat.core.ContextManager not found in
 [file:/usr/Jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./
 ../lib/tomcat.jar,
 file:/usr/jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./]
at java.lang.reflect.ReflectUtil.typeToClass (ReflectUtil.java:103)
at java.lang.reflect.ReflectUtil.getReturnType (ReflectUtil.java:159)
at java.lang.reflect.Method.getReturnType (Method.java:175)
at java.lang.Class$MethodKey.Class$MethodKey (Class.java:911)
at java.lang.Class.internalGetMethods (Class.java:1109)
at java.lang.Class.getMethods (Class.java:1078)
at org.apache.tomcat.util.IntrospectionUtils.findMethods
 (IntrospectionUtils.java:727)
at org.apache.tomcat.util.IntrospectionUtils.findMethod
 (IntrospectionUtils.java:733)
at org.apache.tomcat.util.IntrospectionUtils.setAttribute
 (IntrospectionUtils.java:106)
at org.apache.tomcat.startup.Main.execute (Main.java:304)
at org.apache.tomcat.startup.Main.main (Main.java:140)
at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
at java.lang.VirtualMachine.main (VirtualMachine.java:108)
 
 I hope this information would help you all to give a solution to my
 problem!!!
 
 -Varsha.
 
 -Original Message-
 From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
 
 Sent: Friday, February 18, 2005 10:07 AM
 To: Tomcat Users List
 Subject: Re: running tomcat using sablevm
 
 Give more details and maybe someone can help.
 
 OS Version
 JVM version
 Tomcat Version
 Snip from logs with error
 
 Doug
 
 - Original Message -
 From: [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Thursday, February 17, 2005 11:24 PM
 Subject: running tomcat using sablevm
 
 Hello,
 
 Has anyone tried running tomcat using sablevm (JVM). I am trying to run
 tomcat but it fails. It gives ClassDefNot Found error. I don't know how
 to go about running the tomcat.
 
 Any suggestions or any help is appreciated!!!
 
 Regards.
 
 Confidentiality Notice
 
 The information contained in this electronic message and any attachments
 to
 this message are intended
 for the exclusive use of the addressee(s) and may contain confidential
 or
 privileged information. If
 you are not the intended recipient, please notify the sender at Wipro or
 
 [EMAIL PROTECTED] immediately
 and destroy all copies of this message and any attachments.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 Confidentiality Notice
 
 The information contained in this electronic message and any attachments to 
 this message are intended
 for the exclusive use of the addressee(s) and may contain confidential or 
 privileged information. If
 you are not the intended recipient, please notify the sender at Wipro or 
 [EMAIL PROTECTED] immediately
 and destroy all copies of this message and any attachments.
 
 -
 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: running tomcat using sablevm

2005-02-17 Thread Antony Paul
I hadnt tried SableVM. It may be that CLASSPATH settings Tomcat passes
to VM is not properly passed to it. There may be difference in passing
classpath to VM. Check the docs.

rgds
Antony Paul


On Fri, 18 Feb 2005 10:45:58 +0530, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 
 
 Yeah I was able to run the tomcat suing sun JVM, but not with this
 particular jvm.
 
 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 18, 2005 10:41 AM
 To: Tomcat Users List
 Subject: Re: running tomcat using sablevm
 
 Were you able to run it in Sun or any other JVM. ?
 
 rgds
 Antony Paul
 
 On Fri, 18 Feb 2005 10:36:21 +0530, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
  Hello,
 
  Well the OS is Redhat linux 7.2
  JVM version: sablevm 1.1.9
  Tomcat version : 3.3.1a (Might be this is a older version but this is
  what I need to install)
 
  The error I get is as follows:
 
  Java.lang.InternalError:java.lang.ClassNotFoundException:
  org.apache.tomcat.core.ContextManager not found in
 
 [file:/usr/Jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./
  ../lib/tomcat.jar,
 
 file:/usr/jakarta-tomcat/Jakarta-tomcat-3.3.1a-src/build/tomcat/bin/./]
 at java.lang.reflect.ReflectUtil.typeToClass (ReflectUtil.java:103)
 at java.lang.reflect.ReflectUtil.getReturnType
 (ReflectUtil.java:159)
 at java.lang.reflect.Method.getReturnType (Method.java:175)
 at java.lang.Class$MethodKey.Class$MethodKey (Class.java:911)
 at java.lang.Class.internalGetMethods (Class.java:1109)
 at java.lang.Class.getMethods (Class.java:1078)
 at org.apache.tomcat.util.IntrospectionUtils.findMethods
  (IntrospectionUtils.java:727)
 at org.apache.tomcat.util.IntrospectionUtils.findMethod
  (IntrospectionUtils.java:733)
 at org.apache.tomcat.util.IntrospectionUtils.setAttribute
  (IntrospectionUtils.java:106)
 at org.apache.tomcat.startup.Main.execute (Main.java:304)
 at org.apache.tomcat.startup.Main.main (Main.java:140)
 at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
 at java.lang.VirtualMachine.main (VirtualMachine.java:108)
 
  I hope this information would help you all to give a solution to my
  problem!!!
 
  -Varsha.
 
  -Original Message-
  From: Parsons Technical Services
 [mailto:[EMAIL PROTECTED]
 
  Sent: Friday, February 18, 2005 10:07 AM
  To: Tomcat Users List
  Subject: Re: running tomcat using sablevm
 
  Give more details and maybe someone can help.
 
  OS Version
  JVM version
  Tomcat Version
  Snip from logs with error
 
  Doug
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: tomcat-user@jakarta.apache.org
  Sent: Thursday, February 17, 2005 11:24 PM
  Subject: running tomcat using sablevm
 
  Hello,
 
  Has anyone tried running tomcat using sablevm (JVM). I am trying to
 run
  tomcat but it fails. It gives ClassDefNot Found error. I don't know
 how
  to go about running the tomcat.
 
  Any suggestions or any help is appreciated!!!
 
  Regards.
 
  Confidentiality Notice
 
  The information contained in this electronic message and any
 attachments
  to
  this message are intended
  for the exclusive use of the addressee(s) and may contain confidential
  or
  privileged information. If
  you are not the intended recipient, please notify the sender at Wipro
 or
 
  [EMAIL PROTECTED] immediately
  and destroy all copies of this message and any attachments.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  Confidentiality Notice
 
  The information contained in this electronic message and any
 attachments to this message are intended
  for the exclusive use of the addressee(s) and may contain confidential
 or privileged information. If
  you are not the intended recipient, please notify the sender at Wipro
 or [EMAIL PROTECTED] immediately
  and destroy all copies of this message and any attachments.
 
  -
  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]
 
 Confidentiality Notice
 
 The information contained in this electronic message and any attachments to 
 this message are intended
 for the exclusive use of the addressee(s) and may contain confidential or 
 privileged information. If
 you are not the intended recipient, please notify the sender at Wipro or 
 [EMAIL PROTECTED] immediately
 and destroy all copies of this message and any attachments.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED

Re: FW: Please help for a query in Tomcat. - Problem : Tomcat gets hanged

2005-02-17 Thread Antony Paul
To best of my knowledge you can't. Even if you shutdown Tomcat it will
wait till the threads finish their work.

rgds
Antony Paul


On Fri, 18 Feb 2005 11:41:04 +0530, Reshma Bhatia
[EMAIL PROTECTED] wrote:
 Is there a way to kill the Tomcat threads which have gone into infinite loop
 / hang state.
 
 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 18, 2005 10:26 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: FW: Please help for a query in Tomcat. - Problem : Tomcat gets
 hanged
 
 You can try modifiying the maxProcessors in the connector  element in
 conf/server.xml to a higher value to test whether increasing no of
 threads solve the problem.
 
 Post Tomcat , Java VM and OS versions.
 
 rgds
 Antony Paul
 
 On Fri, 18 Feb 2005 10:14:15 +0530, Reshma Bhatia
 [EMAIL PROTECTED] wrote:
 
 
   -Original Message-
  From:   Reshma Bhatia [mailto:[EMAIL PROTECTED]
  Sent:   Thursday, February 17, 2005 7:36 PM
  To: '[EMAIL PROTECTED]'
  Subject:Please help for a query in Tomcat. - Problem : Tomcat gets
 hanged
 
  Hi,
 
  We have designed an application which works in Java JSP - Tomcat - Oracle
  environment.
 
  Our JSP page has two frames.
  1). First frame : This is the top frame containing links (displayed as
 Tabs)
  2). Second Frame : This is below the top frame and is updated with the
  selected link.
 
  For each click on the link a request is submitted and the response is
  populated in the second frame.
  The second frame contains a search criteria and fetches data from the
  database.
 
  Conditions when Tomcat hangs
  1). When we try clicking on the links very fast
  2). While the data is being fetched from the database and manipulated and
 if
  we click on other the links the server gets hang.
 
  Our analysis and understanding is :
  There would be some threads (requests) whose output was not allowed to be
  displayed in the second frame due to click on other links which would
 spawn
  another request for the same target.
  These requests remain in Service state as understood from the
  Tomcat-Manager status.
  Also, as per the information given on the link
  http://forum.java.sun.com/thread.jspa?threadID=454684messageID=2072194
  these requests would always remain in Service State.
 
  Please confirm whether our understanding is correct.
  Please provide a solution to this problem? Let us know in case any further
  information is needed.
 
  Thanks and regards,
  Reshma
 
  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.
  _
 
 
  -
  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]
 
 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.
 _
 
 
 -
 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: [OT] Search in French database in English

2005-02-16 Thread Antony Paul
Thanks a lot for the help. BTW I use Struts for developing the application.

rgds
Antony Paul


On Wed, 16 Feb 2005 07:44:35 -0800 (PST), sven morales
[EMAIL PROTECTED] wrote:
 Hi,
 It compiled okay?  What was the error you got when
 running it?  Btw there is a cocoon mailing list too to
 get some help, here is the link:
 
 http://marc.theaimsgroup.com/?l=xml-cocoon-usersr=1b=200502w=4
 
 aka_sergio
 
 --- Antony Paul [EMAIL PROTECTED] wrote:
 
  I checked out CVS head compiled it and run it went
  to sample
  application Internationalization (i18n) 
  Localization (l10n) and it
  is giving error.
 
  rgds
  Antony Paul
 
 
  On Tue, 15 Feb 2005 22:17:56 -0800 (PST), sven
  morales
  [EMAIL PROTECTED] wrote:
 It is in English.  Did you try to visit the link
  I
   provided?
  
   aka_sergio
   --- Antony Paul [EMAIL PROTECTED] wrote:
  
Is that German application you are talking about
  ?.
I dont know
languages other than English.
   
rgds
Antony Paul
   
   
On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven
morales
[EMAIL PROTECTED] wrote:
 Hi,
Please look at the very robust Cocoon
  project
under
 apache too.  See http://cocoon.apache.org
download
 the code via cvs, compile it and there is an
 Internationalization sample.  Am positive you
  will
 like cocoon.  Im not doing it justice with my
  very
 very simple explanation.  You have to try it
  and
see
 and it does run on Tomcat or resin, orion,
  oracle,
 jboss, etc.. :)

 aka_sergio
 --- Antony Paul [EMAIL PROTECTED]
  wrote:

  Hi all,
  Sorry for OT. Many here will have
  experience
in
  developing
  multilingual sites. I have a doubt regarding
  searching in a database
  which stores information in English, French
  and
  German. The user can
  type the search keyword(usually it is
  customer
name
  and address) in
  English and it has to match the word in all
these
  languages. Is it
  possible ?.
 
  Any thoughts on this are welcome.
 
  rgds
  Antony Paul
 
 

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


 __
 Do you Yahoo!?
 Yahoo! Mail - Find what you need with new
  enhanced
search.
 http://info.mail.yahoo.com/mail_250

   
   
  
 
 -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
  
   __
   Do you Yahoo!?
   Read only the mail you want - Yahoo! Mail
  SpamGuard.
   http://promotions.yahoo.com/new_mail
  
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 __
 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]



[OT] Search in French database in English

2005-02-15 Thread Antony Paul
Hi all,
Sorry for OT. Many here will have experience in developing
multilingual sites. I have a doubt regarding searching in a database
which stores information in English, French and German. The user can
type the search keyword(usually it is customer name and address) in
English and it has to match the word in all these languages. Is it
possible ?.

Any thoughts on this are welcome.

rgds
Antony Paul

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



Re: [OT] Search in French database in English

2005-02-15 Thread Antony Paul
Is that German application you are talking about ?. I dont know
languages other than English.

rgds
Antony Paul


On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven morales
[EMAIL PROTECTED] wrote:
 Hi,
Please look at the very robust Cocoon project under
 apache too.  See http://cocoon.apache.org  download
 the code via cvs, compile it and there is an
 Internationalization sample.  Am positive you will
 like cocoon.  Im not doing it justice with my very
 very simple explanation.  You have to try it and see
 and it does run on Tomcat or resin, orion, oracle,
 jboss, etc.. :)
 
 aka_sergio
 --- Antony Paul [EMAIL PROTECTED] wrote:
 
  Hi all,
  Sorry for OT. Many here will have experience in
  developing
  multilingual sites. I have a doubt regarding
  searching in a database
  which stores information in English, French and
  German. The user can
  type the search keyword(usually it is customer name
  and address) in
  English and it has to match the word in all these
  languages. Is it
  possible ?.
 
  Any thoughts on this are welcome.
 
  rgds
  Antony Paul
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail - Find what you need with new enhanced search.
 http://info.mail.yahoo.com/mail_250


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



Re: [OT] Search in French database in English

2005-02-15 Thread Antony Paul
I checked out CVS head compiled it and run it went to sample
application Internationalization (i18n)  Localization (l10n) and it
is giving error.

rgds
Antony Paul 


On Tue, 15 Feb 2005 22:17:56 -0800 (PST), sven morales
[EMAIL PROTECTED] wrote:
   It is in English.  Did you try to visit the link I
 provided?
 
 aka_sergio
 --- Antony Paul [EMAIL PROTECTED] wrote:
 
  Is that German application you are talking about ?.
  I dont know
  languages other than English.
 
  rgds
  Antony Paul
 
 
  On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven
  morales
  [EMAIL PROTECTED] wrote:
   Hi,
  Please look at the very robust Cocoon project
  under
   apache too.  See http://cocoon.apache.org
  download
   the code via cvs, compile it and there is an
   Internationalization sample.  Am positive you will
   like cocoon.  Im not doing it justice with my very
   very simple explanation.  You have to try it and
  see
   and it does run on Tomcat or resin, orion, oracle,
   jboss, etc.. :)
  
   aka_sergio
   --- Antony Paul [EMAIL PROTECTED] wrote:
  
Hi all,
Sorry for OT. Many here will have experience
  in
developing
multilingual sites. I have a doubt regarding
searching in a database
which stores information in English, French and
German. The user can
type the search keyword(usually it is customer
  name
and address) in
English and it has to match the word in all
  these
languages. Is it
possible ?.
   
Any thoughts on this are welcome.
   
rgds
Antony Paul
   
   
  
 
 -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
  
  
   __
   Do you Yahoo!?
   Yahoo! Mail - Find what you need with new enhanced
  search.
   http://info.mail.yahoo.com/mail_250
  
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 __
 Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.
 http://promotions.yahoo.com/new_mail


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



Re: Help Required- tomcat doesn't shutdown properly

2005-02-04 Thread Antony Paul
What your application is doing ?. is there any threads watiing ?. You
can have a look at localhost_log in the logs directory for any
errors.

rgds
Antony Paul


On Fri, 4 Feb 2005 10:08:09 +0100, Narayan, Satya [EMAIL PROTECTED] wrote:
 Hi ,
 I am having a weird problem. I have deployed a webapp which
 basically runs a servlet in tomcat5. I can start and stop using the exe
 file provided. But when I use the command line version ie when I open a
 command shell and type catalina.bat start tomcat starts properly in a
 new shell.
 But when in the same command shell and I type catalina.bat stop It
 tries to stop tomcat but doesnot stop it properly and doesnot close the
 tomcat shell.
 The last message that appears on the tomcat shell while stopping is
 
  Feb 4, 2005 2:35:29 PM org.apache.coyote.http11.Http11Protocol destroy
   INFO: Stopping Coyote HTTP/1.1 on http-8080
 
 This problem doesn't occur when my webapp is not deployed.
 
 Kindly advice as to wht could be wrong.Thanks in advance.
 
 Best Regards,
 Satya
 


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



Re: Deploying a Servlet to Tomcat 5.0

2005-01-24 Thread Antony Paul
You have to add a mapping for the servlet in the WEB-INF/web.xml file.
Look at the examples directory in webapps for sample.

rgds
Antony Paul


On Mon, 24 Jan 2005 22:04:17 -0800 (PST), Harsha perera
[EMAIL PROTECTED] wrote:
 Hi,
 
 I have been trying to deploy a simple servlet to
 Tomcat 5.0. Tomcat is installed on WIndows XP.
 
 This is what I did:
 1. Created a directory structure under
$TOMCAT_HOME\webapps as follows:
ROOT\WEB-INF\classes
 
 2. Moved the class(HelloServlet.class) to the
above created directory.
 
 3. Bounced Tomcat.
 
 4. Attempting to access the class as
http://localhost:8080/servlet/HelloServlet gives
me the error:
HTTP Status 404 - /servlet/HelloServlet
 
 
 
 type Status report
 
 message /servlet/HelloServlet
 
 description The requested resource
 (/servlet/HelloServlet) is not available.
 
 Please advise on how I should be deploying this simple
 servlet.
 
 The servlet is code is given below:
 import java.io.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 
 /** Simple servlet used to test server.
  *  P
  *  Taken from Core Servlets and JavaServer Pages 2nd
 Edition
  *  from Prentice Hall and Sun Microsystems Press,
  *  http://www.coreservlets.com/.
  *  © 2003 Marty Hall; may be freely used or
 adapted.
  */
 
 public class HelloServlet extends HttpServlet {
   public void doGet(HttpServletRequest request,
 HttpServletResponse response)
   throws ServletException, IOException {
 response.setContentType(text/html);
 PrintWriter out = response.getWriter();
 String docType =
   !DOCTYPE HTML PUBLIC \-//W3C//DTD HTML 4.0 
 +
   Transitional//EN\\n;
 out.println(docType +
 HTML\n +
 HEADTITLEHello/TITLE/HEAD\n
 +
 BODY BGCOLOR=\#FDF5E6\\n +
 H1Hello/H1\n +
 /BODY/HTML);
   }
 }
 
 Regards
 Harsha
 
 __
 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]
 


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



[OT] Modifying Reply-To header in list messages

2005-01-19 Thread Antony Paul
Hi all,
What people here think about this article.

http://www.unicom.com/pw/reply-to-harmful.html

The Apache lists modifies reply-to field and put in the list
address. Is this acceptable ?

rgds
Antony Paul

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



Re: Connections not released during reload

2005-01-13 Thread Antony Paul
Write a ServletContextLlistener and in its contextDestroyed() method
use the shutdown() method of the DBCP pool to close connections.

rgds
Antony Paul


On Thu, 13 Jan 2005 11:37:22 +0100, Bernhard Slominski
[EMAIL PROTECTED] wrote:
 Hi,
 
 I'm using the following conmfiguration:
 - tomcat 5.0.28
 - Windows 2000
 - Oracle 9i database on Sun Solaris
 
 I'm using the Tomcat connection pooling dbcp and have the following problem.
 When reloading the applcation, the open connections are not released and
 just stay open on the database forever.
 These connections never die, even though the configuration to remove dead
 connections is enabled.
 
 I then get a whole set of new connections for the reloaded application.
 Seems the reference to the old connections is just lost.  This only happens
 when reloading the application, not during stop/start.
 
 Is there a way to fix this (except stop/start of course :-))
 
 Thanks
 
 Bernhard
 
 -
 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: Compile and Deploy JSPs - Tomcat 4.0

2004-12-23 Thread Antony Paul
Usually Tomcat JSPC compiler compiles classes to package
org.apache.jsp. You can override it by specifiying packagename as an
argument to the compile command/Ant task. Perhaps something is wrong
with the compile arguments you used or the classfiles are not packed
into the war file.

rgds
Antony Paul


On Thu, 23 Dec 2004 07:47:14 +0200, Abhay Hiwarkar
[EMAIL PROTECTED] wrote:
 Harry,
 
 I decompiled all the class files and checked for CLASS NAME. They are same
 as provided in web.xml.
 
 servlet
  servlet-nameclient/servlet-name
  servlet-classclient/servlet-class
 /servlet
 
 Still not able to access any jsp through
 http://localhost:8080/myProj/client.jsp
 
 Any help will be appriciated...
 
 Abhay Hiwarkar
 
 
 -Original Message-
 From: Harry Mantheakis [mailto:[EMAIL PROTECTED]
 Sent: Wed, 22 Dec 2004 18:32
 To: Tomcat Users List
 Subject: Re: Compile and Deploy JSPs - Tomcat 4.0
 
 I might be picking up fag ends here, but I noticed that in this block:
 
  servlet
  servlet-nameclient/servlet-name
  servlet-classclient/servlet-class
  /servlet
 
 The 'servlet-class' element would normally take the fully qualified name of
 the class - IOW the complete package name.
 
 Also, classes, by Java conventions, should have capitalised names - so
 perhaps your entry there is wrong.
 
 Good luck.
 
 Harry Mantheakis
 
  Hi,
 
  Thanks for your help. Also, I looked into archives and got more
  details.
 
  Still, I am not able to load any jsp which is comipled to class and
  deployed in a war file containing web.xml. On the other hand, I am
  able to get an html (also packed in the war file) loaded without any
  error.
 
  conf/server.xml has entry as follows -
 
  Context path=/myProj docBase=C:/tomcat4.0/myProj.war
 debug=0 privileged=true 
 
  conf/web.xml has enry as follows -
 
  servlet
  servlet-nameclient/servlet-name
  servlet-classclient/servlet-class
  /servlet
 
  ...
 
  servlet-mapping
  servlet-nameclient/servlet-name
  url-pattern/client.jsp/url-pattern
  /servlet-mapping
 
  Upon issuing URL as : http://localhost:8080/myProj/client.jsp,
  following error is thrown :
 
  HTTP Status 500 : Internal Server Error
  ...
  javax.servlet.ServletException: Wrapper cannot find servlet class
  client or a class it depends on at
 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:87
  3)
  at
 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
 
 
  Could any one help.
 
  Thanks in advance,
 
  Abhay
 
 
 
  -Original Message-
  From: Antony Paul [mailto:[EMAIL PROTECTED]
  Sent: Tue, 21 Dec 2004 09:34
  To: Tomcat Users List
  Subject: Re: Compile and Deploy JSPs - Tomcat 4.0
 
 
  The proper way to do this is use the JSPC task to compile  JSP files
  to class files and then create url mappings in the web.xml for the
  JSPs to class files. The class files are to be deployed in the
  WEB-INF/classes directory. The Anto JSPC task(which is same supplied
  with Tomcat).  I think this topic is discussed previously and you can
  find details in the archives.
 
  rgds
  Antony Paul
 
 
  On Tue, 21 Dec 2004 09:21:00 +0200, Abhay Hiwarkar
  [EMAIL PROTECTED] wrote:
  Hi,
 
  I have around 120 JSP files and want to avoid deploying them with the
  source-code.
 
  Using JSPC utility, I am able to compile them to .java files.
 
  If required, I can get the .class files from:
  /tomcat4.0/work/myApp.
 
  Can anybody help me deploying only the .class files with Tomcat4.0.
 
  Many Thanks in advance,
 
  Regards,
  Abhay
 
 
  -
  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]
 


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



Re: Gurus! JCE and classloader question

2004-12-23 Thread Antony Paul
Which JCE provider you are using ?

rgds
Antony Paul


On Tue, 21 Dec 2004 20:06:40 +0100, Lionel Pasquier
[EMAIL PROTECTED] wrote:
 Hello again!
 
 Any guru around to solve my problem please? :-)
 
 Lionel Pasquier wrote:
 
  Hello,
 
  I have a trouble with using a JCE and multiple contexts. From what I
  could have read around here this is probably linked to a classloader
  problem. Could you guys help?
 
  Basicaly, I generate a RSA Keypair, then create a certificate and want
  to self sign it. Finally i need to store the private key to create a
  p12. Here is the code: I am using the IAIK JCE.
 
 
  KeyPair keyPair;
  IAIK IAIKprovider = new IAIK();
  Security.insertProviderAt(IAIKprovider, 2);
  KeyPairGenerator keyPairGenerator =
  KeyPairGenerator.getInstance(RSA, IAIKprovider.getName());
  keyPairGenerator.initialize(keySize);
  keyPair = keyPairGenerator.generateKeyPair();
  X509Certificate cert;
  [...]
  cert.sign( AlgorithmID.sha1WithRSAEncryption ,keyPair.getPrivate(),
  IAIKprovider.getName());
  if(!RSAPrivateKey.class.isAssignableFrom(keyPair.getPrivate().getClass())){
 
 error(Generated RSA private key is not of type RSA!);
  }
  KeyBag keybag = new KeyBag((RSAPrivateKey) keyPair.getPrivate(),
  certLabel, certLabel.getBytes());
 
 
  The problem is that if I have more than one tomcat context using the
  same pice of code, the 2nd context to use it triggers the if (that
  is, without it I get a ClassCastException). Meaning that the generated
  private key is not compatible with RSAPrivateKey, while I asked for a
  RSA key.
 
  I also have the same problem with the other way around:
  CertificateFactory certFactory =
  CertificateFactory.getInstance(X.509, IAIK);
  Collection certCollection = certFactory.generateCertificates(new
  ByteArrayInputStream(  certChainBlob.getDatabinary() ));
  cert = (X509Certificate)certChain.get(0); //where X509Certificate
  being iaik.x509.X509Certificate)
  gets a ClassCastException if being the second context to call this code.
 
 
  Oh, one more important thing: I add the security provider dynamicaly
  with a:
  Security.insertProviderAt(new IAIK(), 2);
 
 
  Could someone help me on this?
 
  Thank you,
 
  Lionel
 
 
  -
  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: Gurus! JCE and classloader question

2004-12-23 Thread Antony Paul
Where you put the provider jar file ?. WEB-INF/lib ?. Try putting it
in shared/lib or common/lib if the same jar file is used by multiple
applications.

rgds
Antony Paul


On Thu, 23 Dec 2004 15:01:04 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 Which JCE provider you are using ?
 
 rgds
 Antony Paul
 
 
 On Tue, 21 Dec 2004 20:06:40 +0100, Lionel Pasquier
 [EMAIL PROTECTED] wrote:
  Hello again!
 
  Any guru around to solve my problem please? :-)
 
  Lionel Pasquier wrote:
 
   Hello,
  
   I have a trouble with using a JCE and multiple contexts. From what I
   could have read around here this is probably linked to a classloader
   problem. Could you guys help?
  
   Basicaly, I generate a RSA Keypair, then create a certificate and want
   to self sign it. Finally i need to store the private key to create a
   p12. Here is the code: I am using the IAIK JCE.
  
  
   KeyPair keyPair;
   IAIK IAIKprovider = new IAIK();
   Security.insertProviderAt(IAIKprovider, 2);
   KeyPairGenerator keyPairGenerator =
   KeyPairGenerator.getInstance(RSA, IAIKprovider.getName());
   keyPairGenerator.initialize(keySize);
   keyPair = keyPairGenerator.generateKeyPair();
   X509Certificate cert;
   [...]
   cert.sign( AlgorithmID.sha1WithRSAEncryption ,keyPair.getPrivate(),
   IAIKprovider.getName());
   if(!RSAPrivateKey.class.isAssignableFrom(keyPair.getPrivate().getClass())){
  
  error(Generated RSA private key is not of type RSA!);
   }
   KeyBag keybag = new KeyBag((RSAPrivateKey) keyPair.getPrivate(),
   certLabel, certLabel.getBytes());
  
  
   The problem is that if I have more than one tomcat context using the
   same pice of code, the 2nd context to use it triggers the if (that
   is, without it I get a ClassCastException). Meaning that the generated
   private key is not compatible with RSAPrivateKey, while I asked for a
   RSA key.
  
   I also have the same problem with the other way around:
   CertificateFactory certFactory =
   CertificateFactory.getInstance(X.509, IAIK);
   Collection certCollection = certFactory.generateCertificates(new
   ByteArrayInputStream(  certChainBlob.getDatabinary() ));
   cert = (X509Certificate)certChain.get(0); //where X509Certificate
   being iaik.x509.X509Certificate)
   gets a ClassCastException if being the second context to call this code.
  
  
   Oh, one more important thing: I add the security provider dynamicaly
   with a:
   Security.insertProviderAt(new IAIK(), 2);
  
  
   Could someone help me on this?
  
   Thank you,
  
   Lionel
  
  
   -
   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: Gurus! JCE and classloader question

2004-12-23 Thread Antony Paul
May be there are two jar files or unzipped class files of the same
class. Check for it also.

rgds
Antony Paul


On Thu, 23 Dec 2004 16:22:33 +0100, Lionel Pasquier
[EMAIL PROTECTED] wrote:
 Well, I tried to put the library in common/lib (and I think also for a
 different try, in shared/lib). Usually it is in WEB-INF/lib.
 But the problem occured also.
 
 I believe that the factory used by the jvm searches for the first
 instance of the JCE. Then it tries to cast it into another instance of
 the lib which is different from the first, but I am not too sure about
 that since I am no expert in Tomcat.
 
 Have you an explanation or any solution?
 
 
 Antony Paul wrote:
 
 Where you put the provider jar file ?. WEB-INF/lib ?. Try putting it
 in shared/lib or common/lib if the same jar file is used by multiple
 applications.
 
 rgds
 Antony Paul
 
 
 On Thu, 23 Dec 2004 15:01:04 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 
 
 Which JCE provider you are using ?
 
 rgds
 Antony Paul
 
 
 On Tue, 21 Dec 2004 20:06:40 +0100, Lionel Pasquier
 [EMAIL PROTECTED] wrote:
 
 
 Hello again!
 
 Any guru around to solve my problem please? :-)
 
 Lionel Pasquier wrote:
 
 
 
 Hello,
 
 I have a trouble with using a JCE and multiple contexts. From what I
 could have read around here this is probably linked to a classloader
 problem. Could you guys help?
 
 Basicaly, I generate a RSA Keypair, then create a certificate and want
 to self sign it. Finally i need to store the private key to create a
 p12. Here is the code: I am using the IAIK JCE.
 
 
 KeyPair keyPair;
 IAIK IAIKprovider = new IAIK();
 Security.insertProviderAt(IAIKprovider, 2);
 KeyPairGenerator keyPairGenerator =
 KeyPairGenerator.getInstance(RSA, IAIKprovider.getName());
 keyPairGenerator.initialize(keySize);
 keyPair = keyPairGenerator.generateKeyPair();
 X509Certificate cert;
 [...]
 cert.sign( AlgorithmID.sha1WithRSAEncryption ,keyPair.getPrivate(),
 IAIKprovider.getName());
 if(!RSAPrivateKey.class.isAssignableFrom(keyPair.getPrivate().getClass())){
 
error(Generated RSA private key is not of type RSA!);
 }
 KeyBag keybag = new KeyBag((RSAPrivateKey) keyPair.getPrivate(),
 certLabel, certLabel.getBytes());
 
 
 The problem is that if I have more than one tomcat context using the
 same pice of code, the 2nd context to use it triggers the if (that
 is, without it I get a ClassCastException). Meaning that the generated
 private key is not compatible with RSAPrivateKey, while I asked for a
 RSA key.
 
 I also have the same problem with the other way around:
 CertificateFactory certFactory =
 CertificateFactory.getInstance(X.509, IAIK);
 Collection certCollection = certFactory.generateCertificates(new
 ByteArrayInputStream(  certChainBlob.getDatabinary() ));
 cert = (X509Certificate)certChain.get(0); //where X509Certificate
 being iaik.x509.X509Certificate)
 gets a ClassCastException if being the second context to call this code.
 
 
 Oh, one more important thing: I add the security provider dynamicaly
 with a:
 Security.insertProviderAt(new IAIK(), 2);
 
 
 Could someone help me on this?
 
 Thank you,
 
 Lionel
 
 
 -
 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]
 
 
 
 
 
 -
 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]



[OT] Java developer friendly Linux distro

2004-12-21 Thread Antony Paul
Hi all,
   Which distro (free) is most friendly for Java development. I need
J2SE 1.4.2 to work on it plus Eclipse 3.x(Linux dont have a good text
editor in which I can run Ant builds). I also need a good GUI so that
others will be attracted to it.

rgds
Antony Paul

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



Re: Compile and Deploy JSPs - Tomcat 4.0

2004-12-20 Thread Antony Paul
The proper way to do this is use the JSPC task to compile  JSP files
to class files and then create url mappings in the web.xml for the
JSPs to class files. The class files are to be deployed in the
WEB-INF/classes directory. The Anto JSPC task(which is same supplied
with Tomcat).
   I think this topic is discussed previously and you can find details
in the archives.

rgds
Antony Paul


On Tue, 21 Dec 2004 09:21:00 +0200, Abhay Hiwarkar
[EMAIL PROTECTED] wrote:
 Hi,
 
 I have around 120 JSP files and want to avoid deploying them with the
 source-code.
 
 Using JSPC utility, I am able to compile them to .java files.
 
 If required, I can get the .class files from: /tomcat4.0/work/myApp.
 
 Can anybody help me deploying only the .class files with Tomcat4.0.
 
 Many Thanks in advance,
 
 Regards,
 Abhay
 
 -
 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: New Babie query - pls pls help me

2004-12-13 Thread Antony Paul
You need to create a mapping in web.xml to invoke the servlet. Look at
the elements
servlet and servlet-mapping  elements in the
example/WEB-INF/web.xml. Create a similar one and restart Tomcat.

rgds
Antony Paul





On Mon, 13 Dec 2004 21:09:07 +0800, Manisha Sathe
[EMAIL PROTECTED] wrote:
 Hi,
 
 I am totally totally new to Servlet/Tomcat. I wrote a very simple
 HelloWorld servlet. I could compile it and could create the
 HelloWorld.class file.
 
 But how to test it thr Tomat web server ? I put the class inside servlet
 example dir
 C:\jakarta-tomcat-5.0.28\webapps\servlets-examples\WEB-INF\classes
 But whe tried to run it like
 http://localhost:8080/servlets-examples/servlet/HelloWorld
 
 always i get  description The requested resource
 (/servlets-examples/servlet/HelloWorld) is not available.
 
 I tried to start-stop/reload the tomcat servlet-example but still the same,
 i understand i need to change some files - but can any body tell stepwise
 instructions ?   Pls pls help me I am stuck
 
 Thanks in advance
 Manisha
 
 -
 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: Tell me the steps to configure Tomcat

2004-11-06 Thread Antony Paul
What you did ? What OS you are using ?. What you downloaded ? 
Version ? File type zip or exe ?.

rgds
Antony Paul


On Sat, 6 Nov 2004 18:38:45 +0530, inr [EMAIL PROTECTED] wrote:
 Hai all,
  I am new to Tomcat and i am struggling in configuring it . can
 anyone help me to configure it.
 
 Thanks and Regards,
 inr.
 
 -
 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]



[OT] Using Tomcat certificate for signing applet

2004-11-03 Thread Antony Paul
Hi all,
   Can I use the same SSL certificate used by tomcat to sign an Applet ?

rgds
Antony Paul

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



Re: how do I unsubscribe from this mailing list?

2004-11-01 Thread Antony Paul
You will get a mail asking for confirmation whether you want to
unsuscribe. Send an empty reply for it.

rgds
Antony Paul


On Mon, 1 Nov 2004 09:31:04 -, Adrian Harrison
[EMAIL PROTECTED] wrote:
 can anyone please tell me how to?
 
 sent an email to this address but still receiving tomcat emails
 
 [EMAIL PROTECTED]
 
 thanks
 
 harry
 


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



Re: Unable to find a javac compiler error

2004-10-19 Thread Antony Paul
Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
this is placed in the TOMCAT_HOME\common\lib directory. If it is not
there then copy it to there from JAVA_HOME\lib directory. Restart
Tomcat and try the JSP page.

rgds
Antony Paul


On Mon, 18 Oct 2004 17:38:07 +0200, Andrea Mennini [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm trying to run this silly hello.jsp, just to be sure tomcat 5.0.28 is
 running under win2k:
 
 ===
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 !--
 Simple HTML file to test server setup and configuration.
 
 Taken from More Servlets and JavaServer Pages
 from Prentice Hall and Sun Microsystems Press,
 http://www.moreservlets.com/.
 (C) 2002 Marty Hall; may be freely used or adapted.
 --
 HTML
 HEADTITLEJSP Test/TITLE/HEAD
 BODY BGCOLOR=#FDF5E6
 H1JSP Test/H1
 Time: %= new java.util.Date() %
 /BODY
 /HTML
 ===
 
 When I run it, I receive a message like this one:
 
 ===
 Unable to find a javac compiler;
 
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 
 ===
 
 I've got a command line and typed %JAVA_HOME%\bin\javac, and javac is run.
 
 What am I doing wrong?
 
 TIA
 
 --
 
 Andrea
 
 ICQ:5459894
 Registered Linux User #24583
 
 -
 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: Cannot connect to remote server

2004-10-19 Thread Antony Paul
Which version of Java you are using. Tomcat 5.5 requires JDK 5. Or you
need to download an extra package from jakarta.

rgds
Antony Paul


On Wed, 20 Oct 2004 01:11:34 +1000, Robert Mark Bram
[EMAIL PROTECTED] wrote:
 Hi All!
 
 I am using RH9 with Tomcat 5.5.3
 
 I have installed Tomcat as a Daemon process according to these
 instructions:
 http://phd.netcomp.monash.edu.au/RobertMarkBram/protected/notes/installingTomcat5.txt
 
 I have $CATALINA_HOME/conf/server.xml set up so that Tomcat runs on port
 8080.
 
 But when I access http://localhost:8080 I get Cannot connect to remote
 server.
 
 When I examine catalina.out log I find the following exception:
 20/10/2004 00:32:51 org.apache.catalina.startup.Bootstrap initClassLoaders
 SEVERE: Class loader creation threw exception
 java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory
 ...
 
 Further debugging information is below.
 
 Any ideas about what is going wrong would be most appreciated!
 
 Rob
 :)
 
 /usr/local/jakarta-tomcat-5.5.3/logs
 #host localhost
 Host localhost not found: 3(NXDOMAIN)
 
 /usr/local/jakarta-tomcat-5.5.3/logs
 #cat /etc/hosts
 # Do not remove the following line, or various programs
 # that require network functionality will fail.
 127.0.0.1   localhost   localhost
 127.0.0.1   localhost   dijong
 
 /usr/local/jakarta-tomcat-5.5.3/logs
 #cat /etc/resolv.conf
 ; generated by /sbin/dhclient-script
 search @home
 nameserver 192.168.0.1
 
 /usr/local/jakarta-tomcat-5.5.3/logs
 #tail -13 catalina.out
 20/10/2004 00:32:51 org.apache.catalina.startup.Bootstrap initClassLoaders
 SEVERE: Class loader creation threw exception
 java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory
 at
 org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:161)
 at
 org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:97)
 at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:189)
 at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:257)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:201)
 jsvc.exec error: Service exit with a return value of 1
 
 My /etc/rc.d/init.d/Tomcat5 is below.
 
 #!/bin/sh
 ##
 #
 #   Copyright 2004 The Apache Software Foundation.
 #
 #   Licensed under the Apache License, Version 2.0 (the License);
 #   you may not use this file except in compliance with the License.
 #   You may obtain a copy of the License at
 #
 #   http://www.apache.org/licenses/LICENSE-2.0
 #
 #   Unless required by applicable law or agreed to in writing, software
 #   distributed under the License is distributed on an AS IS BASIS,
 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 implied.
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 ##
 #
 # Small shell script to show how to start/stop Tomcat using jsvc
 # If you want to have Tomcat running on port 80 please modify the
 server.xml
 # file:
 #
 #!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
 #Connector
 className=org.apache.catalina.connector.http.HttpConnector
 #   port=80 minProcessors=5 maxProcessors=75
 #   enableLookups=true redirectPort=8443
 #   acceptCount=10 debug=0 connectionTimeout=6/
 #
 # That is for Tomcat-5.0.x (Apache Tomcat/5.0)
 #
 # Adapt the following lines to your configuration
 JAVA_HOME=/usr/java/j2sdk1.4.2_02
 CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.3
 DAEMON_HOME=/usr/local/jakarta-tomcat-5.5.3
 TOMCAT_USER=robertmarkbram
 TMP_DIR=/var/tmp
 CATALINA_OPTS=
 CLASSPATH=\
 $JAVA_HOME/lib/tools.jar:\
 $CATALINA_HOME/bin/commons-daemon.jar:\
 $CATALINA_HOME/bin/bootstrap.jar
 
 case $1 in
   start)
 #
 # Start Tomcat
 #
 $DAEMON_HOME/bin/jsvc \
 -user $TOMCAT_USER \
 -home $JAVA_HOME \
 -Dcatalina.home=$CATALINA_HOME \
 -Djava.io.tmpdir=$TMP_DIR \
 -outfile $CATALINA_HOME/logs/catalina.out \
 -errfile '1' \
 $CATALINA_OPTS \
 -cp $CLASSPATH \
 org.apache.catalina.startup.Bootstrap
 #
 # To get a verbose JVM
 #-verbose \
 # To get a debug of jsvc.
 #-debug \
 ;;
 
   stop)
 #
 # Stop Tomcat
 #
 PID=`cat /var/run/jsvc.pid`
 kill $PID
 ;;
 
   *)
 echo Usage tomcat.sh start/stop
 exit 1;;
 esac
 
 --
 Robert Mark Bram
 http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp
 B.Comp.(Systems Development/Business

stop task do not release jar files

2004-10-18 Thread Antony Paul
Hi all,
 Repost due to typ error.
  I use Ant stop task to stop the context and delete the files in
the application context folder. But it is unable to delete the jar
files.

Tomcat 4.1.30

rgds
Antony Paul

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



Re: [tomcat] tomcat not running

2004-10-18 Thread Antony Paul
I know nothing about Turbine and it is Tomcat list. You can better ask
it at Turbine list. But on seeing the error message I can give you a
checklist.
What the application contains. 
Does application have an index.jsp.
Does application have a web.xml in WEB-INF directory. 
Does this contains servlet.jar in WEB-INF\lib ? This jar is not needed there.

Also go to Tomcat installation directory. There will be one webapps
directory. Check it contains a ROOT folder.

rgds
Antony Paul


On Mon, 18 Oct 2004 06:34:13 +0100 (BST), George A
[EMAIL PROTECTED] wrote:
 hello all,
i hope i have posted to the correct lists : ( . i am first time user to 
 tdk. my tomcat is not running. i am using tdk 2.3. my question is:
 
 when all applications from webapps folder are deleted following messages come when i 
 click on startup.bat
 
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27-LE-jdk14
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:33:43 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:33:43 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/15  config=E:\software\TDK_2.3\conf\jk2.properties
 
 and in the browser when i type http://localhost:8080 then Http Status 500 error 
 comes.
 
 and when i shut it down and create an application then following error comes on 
 clicking startup :
 WebappClassLoader:
 validateJarFile(E:\software\TDK_2.3\webapps\appl1\WEB-INF\lib\servlet.jar) - jar not 
 loaded.
 See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
 log4j:ERROR setFile(null,false) call failed.
 java.io.FileNotFoundException: \logs\turbine.log (The system cannot find the path 
 specified)
 .and a big list of errors and exceptions 
 
 [INFO] Turbine - -Turbine: init() Ready to Rumble!
 Oct 18, 2004 10:45:34 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:45:34 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:45:34 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/47  config=E:\software\TDK_2.3\conf\jk2.proper
 
 and in browser again i get : Http Status 500 error .
 
 my directory structure is:
 
 webapps
 -appl1
 -WEB-INF
 -build
 -classes
 -conf
 -db
 -lib
 -src
 ummm, this can be a very primary question to most of you over there. so it might 
 sound silly to you : ) .but i just joined this mailing list with a hope to get some 
 answer. any answers are welcome : ) .
 thanks a lot,
 bye,
 george.
 
 
 -
  Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
 Messenger Now


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



stop task do not release jar files

2004-10-17 Thread Antony Paul
Hi all,
   I use Anto stop task to stop the context and delete the files in
the application context folder. But it is unable to delete the jar
files.

Tomcat 4.1.30

rgds
Antony Paul

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



Apache giving source code of JSP in win2k

2004-10-15 Thread Antony Paul
Hi,
   I am having Apache in from of Tomcat. Mapped all .jsp tom Tomcat.
But if I type index.JSP Apache will give the source code. How to
prevent it.

rgds
Antony Paul

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



Re: mod_jk2 Ready/Recommended For Production?

2004-10-14 Thread Antony Paul
Do you mean Apache dont have any security holes. I dont know about
hacking a system. But in terms of security Tomcat is far better than
Apache since it dont have any security vulnerabilities.

rgds
Antony Paul


On Thu, 14 Oct 2004 04:41:53 -0400 (EDT), Alex [EMAIL PROTECTED] wrote:
 
 From a security point of view, leaving tomcat hanging out there is one
 tier less a malicious person would be faced with hacking...three tiers is
 a nice simple security solution.   $0.02.
 
 On Wed, 13 Oct 2004, Peng Tuck Kwok wrote:
 
  Date: Wed, 13 Oct 2004 11:59:28 +0800
  From: Peng Tuck Kwok [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   Peng Tuck Kwok [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  Subject: Re: mod_jk2 Ready/Recommended For Production?
 
  Do you really need to put apache in front of tomcat ? Standalone
  tomcat (since ver 4.x)
  has always been pretty good in terms of  performance
 
 
 
 
 -
 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 email system or analogs for it

2004-10-14 Thread Antony Paul
Do you want an e-mail server or just send an e-mail. To send e-mail
use JavaMail.  As far as Tomcat is concerned, you can bind a mail
session to Tomcat JNDI tree and retrieve it to send mail. I JavaMail
API jar is bundled with Tomcat at common\lib\mail.jar. Look at the
server.xml and JNDI Resources How to in tomcat-docs for an example.

rgds
Antony Paul


On Thu, 14 Oct 2004 14:09:09 +0300, aleksej [EMAIL PROTECTED] wrote:
 Hi! I am wondering, how to send emails from Tomcat? As I understand,
 Tomcat has'nt native J2EE JavaMail API support. Then what kind of
 libraries I should use to get email support? I saw some emailing projects
 in sendbox, but its not in production quality. Then JAMES maybe? I have no
 access to the server where Tomcat is installed, so I need to give exact
 information to server admin.
 
 -
 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: How to redirect http to https automatically?

2004-10-14 Thread Antony Paul
Is it possible to switch from https to http using this kind of configuration ?
I tried with NONE for user constraint but it still remains in https.  

rgds
Antony Paul


On Thu, 14 Oct 2004 08:40:31 -0700, David Wall [EMAIL PROTECTED] wrote:
 This is part of the servlet specs.  In  your WEB-INF/web.xml file, you need
 a security constraint that says the site should be secure, something like:
 
 security-constraint
  web-resource-collection
web-resource-nameEntire site/web-resource-name
url-pattern/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
  /web-resource-collection
  user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint
 
 The confidential keyword ensures that the webapp will require https, so if
 you try to get it via http, then the redirect stuff specifed in your
 server.xml will be applied.
 
 David
 
 
 
 - Original Message -
 From: Won Sim [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 13, 2004 8:13 AM
 Subject: How to redirect http to https automatically?
 
  I set redirectPort attribute to 443, which is my SSL connector port
 number,
  from port 80 connector in the server.xml. This doesn't redirect http to
  https automatically. In other words, I still can access the application
 via
  http://server/myapp. I want to know how to redirect http to https
  automatically so when I enter http://server/myapp, Tomcat redirects to
  htts://server/myapp. I am using Tomcat 4.1.30.
 
  Thanks in advance.
  Won.
 
  _
  Don't just search. Find. Check out the new MSN Search!
  http://search.msn.click-url.com/go/onm00200636ave/direct/01/
 
 
  -
  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: Listeners

2004-10-13 Thread Antony Paul
I could'nt find anything wrong with the listener element. Perhaps it
is caused by something else. Remove all other elements than listener
and try to see the error. Also post the full error log.

rgds
Antony Paul


On Wed, 13 Oct 2004 01:14:15 -0700, Ray Madigan [EMAIL PROTECTED] wrote:
 
 The top of my web.xml is as follows.  It worked fine until I added the
 listener declaration.
 
 I am using tomcat 4.1.24
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 
  listener
listener-class com.mbresearch.main.util.AccessListener
 /listener-class
  /listener
 
  servlet
 
 
 
 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 13, 2004 12:58 AM
 To: Tomcat Users List
 Subject: Re: Listeners
 
 What version of Tomcat you are using ?. Also post the web.xml version.
 From the top.
 
 rgds
 Antony Paul
 
 On Wed, 13 Oct 2004 00:46:43 -0700, Ray Madigan [EMAIL PROTECTED] wrote:
  I have never used Listeners in Tomcat before and and having trouble
 getting
  one registered.
 
  I have the listener declared in web.xml before the servlet declaration and
  looks like
 
   listener
 listener-class com.mbresearch.foo.FooListener/listener-class
   /listener
 
   servlet
  ...
 
  com.mbresearch.foo.FooListener is in the WEB-INF/classes directory.
  I get the digester error:
 
  Digester.error : Parse Error at line 9 column 13: Element type listener
  must be declared.  Line 9 is the listener line.
 
  What am I missing?  Thanks in advance!
 
  -
  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]
 


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



[OT]Setting default value for form input type

2004-10-12 Thread Antony Paul
Hi,
   Is there any way to set the default value for the file field when
the form is loaded ?.

rgds
Antony Paul

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



Re: [OT] Setting no-cache headers for javascript

2004-10-08 Thread Antony Paul
Using filter to set the headers works. Thanks for the help.

rgds
Antony Paul


On Thu, 7 Oct 2004 19:20:18 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 Ok. I will test by adding a header using a Filter to all js requests.
 I thought I have to interpret every js request and read the file from
 dist and deliver it.
 
 Thanks
 rgds
 Antony Paul
 
 
 
 
 On Thu, 7 Oct 2004 09:40:28 -0400, Phillip Qin
 [EMAIL PROTECTED] wrote:
  Read servlet spec or books. In short, extend filter, then your custom class
  add header, finally map your in web.xml.
 
 
 
 
  -Original Message-
  From: Antony Paul [mailto:[EMAIL PROTECTED]
  Sent: October 7, 2004 7:52 AM
  To: Tomcat Users List
  Subject: Re: [OT] Setting no-cache headers for javascript
 
  I used JSP. How to use filter ?
 
  rgds
  Antony Paul
 
  On Thu, 07 Oct 2004 04:44:28 -0700, Hassan Schroeder [EMAIL PROTECTED]
  wrote:
   Antony Paul wrote:
  
   How to add no-cache header to a javascript file which is set in
the html as script src=scripts/hello.js/script.
  
   Either make your JavaScript file a JSP, or use a Filter. (The first is
   quicker, the second's more scalable if you might want to do this with
   multiple JS files...)
  
   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]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  !DSPAM:41652df0280486782219933!
 
 


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



[OT] Setting no-cache headers for javascript

2004-10-07 Thread Antony Paul
Hi all,
   How to add no-cache header to a javascript file which is set in the html as 
script src=scripts/hello.js/script. This comes in an HTML page.

I set the meta tags for cache control. But no use. 
Uses IE 6.0, Tomcat 4.1.30.

rgds
Anto Paul

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



Re: [OT] Setting no-cache headers for javascript

2004-10-07 Thread Antony Paul
I used JSP. How to use filter ?

rgds
Antony Paul 


On Thu, 07 Oct 2004 04:44:28 -0700, Hassan Schroeder
[EMAIL PROTECTED] wrote:
 Antony Paul wrote:
 
 How to add no-cache header to a javascript file which is set in the html as
  script src=scripts/hello.js/script.
 
 Either make your JavaScript file a JSP, or use a Filter. (The first
 is quicker, the second's more scalable if you might want to do this
 with multiple JS files...)
 
 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]
 


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



Re: [OT] Setting no-cache headers for javascript

2004-10-07 Thread Antony Paul
Ok. I will test by adding a header using a Filter to all js requests.
I thought I have to interpret every js request and read the file from
dist and deliver it.

Thanks
rgds
Antony Paul


On Thu, 7 Oct 2004 09:40:28 -0400, Phillip Qin
[EMAIL PROTECTED] wrote:
 Read servlet spec or books. In short, extend filter, then your custom class
 add header, finally map your in web.xml.
 
 
 
 
 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: October 7, 2004 7:52 AM
 To: Tomcat Users List
 Subject: Re: [OT] Setting no-cache headers for javascript
 
 I used JSP. How to use filter ?
 
 rgds
 Antony Paul
 
 On Thu, 07 Oct 2004 04:44:28 -0700, Hassan Schroeder [EMAIL PROTECTED]
 wrote:
  Antony Paul wrote:
 
  How to add no-cache header to a javascript file which is set in
   the html as script src=scripts/hello.js/script.
 
  Either make your JavaScript file a JSP, or use a Filter. (The first is
  quicker, the second's more scalable if you might want to do this with
  multiple JS files...)
 
  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]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 !DSPAM:41652df0280486782219933!
 


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



mod_rewrite pass rewrited URL to mod_jk how ?

2004-10-02 Thread Antony Paul
Hi ,
   I want Apache to rewrite the URL's before passing it to Tomcat. It
is rewriting the URL(from rewrite_log) but when passed to Tomcat it is
sending original URL ?. I want to pass the rewritten URL. How to
achieve this ?.

Using Apache 1.3.29
Tomcat 4.1.30
mo_jk(JK) AJP13 connector.

setting JkOptions +ForwardURICompat or JkOptions
+ForwardURICompatUnparsed  are of no use.

rgds
Antony Paul

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



Re: mod_rewrite pass rewrited URL to mod_jk how ?

2004-10-02 Thread Antony Paul
Using PT flag only helped me to pass the relevant request to Tomcat. I
found it at
http://helma.org/docs/howtos/mod_jk/.

rgds
Antony Paul


On Sat, 2 Oct 2004 13:57:35 +0200, Mark Lowe [EMAIL PROTECTED] wrote:
 You can rewrite urls as you would without jk .. JK only cares about
 urls that match the mounts typically /*.jsp, /servlet/*,  /*.do or
 /*.jsf
 
 Mark
 
 
 
 On 2 Oct 2004, at 11:36, Antony Paul wrote:
 
  Hi ,
 I want Apache to rewrite the URL's before passing it to Tomcat. It
  is rewriting the URL(from rewrite_log) but when passed to Tomcat it is
  sending original URL ?. I want to pass the rewritten URL. How to
  achieve this ?.
 
  Using Apache 1.3.29
  Tomcat 4.1.30
  mo_jk(JK) AJP13 connector.
 
  setting JkOptions +ForwardURICompat or JkOptions
  +ForwardURICompatUnparsed  are of no use.
 
  rgds
  Antony Paul
 
  -
  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: [OT]Geronimo and Tomcat

2004-09-28 Thread Antony Paul
Thanks for the efforts. I am a great fan of Tomcat and other Apache
projects.

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 6:15 PM
Subject: RE: [OT]Geronimo and Tomcat



Hi,
If you look at the mailing list threads for tomcat-dev and Geronimo-dev
regarding Tomcat integration, you'd see me getting on their case ;)
They being the Geronimo dev team.  They've been very responsive and
helpful now that the 1.0 release is nearing.

So we're working on it, and have made significant progress in the past
two weeks.  You can use Tomcat within Geronimo now properly (i.e. via a
GBean, the Geronimo Way), for simple use-cases.  There's still no
JAAS/JACC integration, only limited JSR77 integration, and no ability
yet for Tomcat to participate in wider Geronimo transactions.  And all
of this stuff is NOT in Geronimo 1.0M2: it's in the repository if you
want to build Geronimo yourself, and it will be in the next milestone
release.  The status is being tracked at
http://wiki.apache.org/geronimo/Tomcat.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 7:56 AM
To: Tomcat Users List
Subject: Re: [OT]Geronimo and Tomcat

[Link to all converstations on tomcat-dev with the word Geronimo] ...

http://marc.theaimsgroup.com/?l=tomcat-devw=2r=1s=Geronimoq=b

-Tim

Anto Paul wrote:
 Hi all,
   I was reading a tutoral on using Geronimo. It seems that Geronimo
is
 using Jetty. Why it don't use Tomcat. Or is Tomcat is available as
 optional plug in ?.

 rgds
 Anto Paul


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: small but complex problem -jsp.error.badaction when accessing a bean from a jsp

2004-09-23 Thread Antony Paul
The problem is at line number 5. org.apache.jasper.JasperException:
/idcard.jsp(5,5) jsp.error.badaction
You forgot to put % sign.
body
@page import=com.dinesh.idcard 
% @page import=com.dinesh.idcard %
jsp:usebean id=myidcard scope=page class=com.dinesh.idcard

rgds
Antony Paul

- Original Message -
From: Dinesh Keesara [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 4:42 PM
Subject: small but complex problem -jsp.error.badaction when accessing a
bean from a jsp





 Hey can anyone solve this ..

 I am using Tomcat 4.1.30 on IE
 I am Getting following error :

 HTTP Status 500 -
 --
--
 type Exception report
 message description
 The server encountered an internal error () that prevented it from
 fulfilling this request.
 exception
 org.apache.jasper.JasperException: /idcard.jsp(5,5) jsp.error.badaction
 at

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:94)
 at

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428
)
 at

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126
)
 at org.apache.jasper.compiler.Parser.parseAction(Parser.java:671)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:803)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:122)

 and  blah blah blah ..

 the jsp file looks as follows:

 html
 head
 /head
 body
 @page import=com.dinesh.idcard 
 jsp:usebean id=myidcard scope=page class=com.dinesh.idcard
 jsp:setProperty name=myidcard property=RollNo value=123 /
 jsp:setProperty name=myidcard property=Name value=Harikiran /
 /jsp:usebean
 %=myidcard.getName()%
 br
 %=myidcard.getRollNo()%
 /body
 /html

 and the bean file looks as follows:

 package com.dinesh;
 public class idcard{
 private int RollNo;
 private String Name;
 public void setRollNo(int num){
 this.RollNo=num;
 }
 public int getRollNo(){
 return RollNo;
 }
 public void setName(String Name)
 {
 this.Name=Name;

 _
 The new MSN toolbar! Your shortcut to the internet!
 http://toolbar.msn.co.in/ Access a world of convenience!


 -
 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: [OT] Handling JDBC transactions

2004-09-23 Thread Antony Paul
Cactus is in-container testing(I assume). Takes time. I want to test code as
I write it.  Already the development time for deploying an application is
high because of having a different source directory than web application
directory and of Ant.

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 6:21 PM
Subject: RE: [OT] Handling JDBC transactions



Hi,

I feel JTA is the solution. JOTM have a documentation on how to use it
in
Tomcat. But requiring to use JNDI is a problem because Tomcat JNDI is
not
available outside Tomcat and I cannot run unit tests. Thanks for the
help.

Cactus (as in the Jakarta in-container testing project) is good for this
;)

Yoav



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Help on tomcat server path set up

2004-09-22 Thread Antony Paul
This may be due to having 2 or more servlet.jar files in the class path.
Check that WEB-INF\lib dont have this jar file. This jar file is provided by
the container.
Also no need to set up classpath for running Tomcat. The Tomcat start up
scripts does this. The classpath you set cannot be seen by the applications
you deploy in Tomcat

rgds
Antony Paul

- Original Message -
From: Shanti Priya [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 11:24 AM
Subject: Help on tomcat server path set up


 Hi !!
 I am using tomcat 4.1.18 version.Whenever i startup my
 tomcat it throws the  following error .I have actually set up the paths
 properly.


 The server message is as follows.

 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.18
 WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat
 4.1\bin\
 ..\webapps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See
Servlet
 Spec
  2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
 WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat
 4.1\weba
 pps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec
 2.3, s
 ection 9.7.2. Offending class: javax/servlet/Servlet.class
 Sep 22, 2004 10:43:53 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Sep 22, 2004 10:43:54 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Sep 22, 2004 10:43:54 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=32/94  config=C:\Program Files\Apache
 Group\Tomcat 4.
 1\bin\..\conf\jk2.properties



 My classpath(Env variables) is as follows

 %CLASSPATH%;D:\tomcat\common\lib\tools.jar;
 C:\Program Files\Apache Group\Tomcat 4.1\common\lib;
 C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar;
 C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar;
 C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet_2_3.jar;

 And i do have this servlet_2_3.jar in the following path
 C:\Program Files\Apache Group\Tomcat 4.1\common\lib


 Thanks  Regards,
 Shanti Priya Sunkara

 Location: Pune, India
 Email   : [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 4.1.23

2004-09-22 Thread Antony Paul
This may work.
URL url = this.getClass().getResource(../x.xml);

rgds
Antony Paul

- Original Message -
From: Sudhrasun Ramalingam [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 10:54 AM
Subject: RE: Tomcat 4.1.23


 Java code:

 Package x.y.z;

 Import ...

 Public class...{
 Public method(){
 ...
 File ff = new File(x.xml);
 ...
 }

 }

 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 22, 2004 10:43 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Tomcat 4.1.23

 How the file is accessed ?.

 rgds
 Antony Paul

 - Original Message -
 From: Sudhrasun Ramalingam [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Wednesday, September 22, 2004 9:33 AM
 Subject: RE: Tomcat 4.1.23


  Sorry for using the wrong words,
 
  I've a jar inside my /webapps/webapplication/lib, which referes a file
say
  x.xml. If I packed this x.xml with the jar it works, but I wanted that
to
 be
  modified by others so I put that inside the /webapps/webapplication/.
When
 I
  access the jsp/servlet I get an error saying x.xml not found.
 
  What can be done for this ?
 
 
 
  -Original Message-
  From: QM [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, September 21, 2004 7:14 PM
  To: Tomcat Users List
  Subject: Re: Tomcat 4.1.23
 
  On Tue, Sep 21, 2004 at 10:17:11AM +0600, Sudhrasun Ramalingam wrote:
  : I've a doubt, What is the root directory for a webapp?
  : And if the answer is $CATALINA_HOME/webapps/webapp..
  :
  : Then how can the jar file referring $CATALINA_HOME as root for my web
  : application?
 
  1/ root directory and document root are terms that don't 100% apply
  in the J2EE world.  Use the term context path, because a webapp
  (context) may exist in a directory or inside a WAR file.
 
  So, the context path defaults to one of
  {value of appBase}/{context dir}
  {value of appBase}/{WAR file}
 
  where the value of appBase defaults to {Tomcat install}/webapps.
 
  2/ $CATALINA_HOME and $CATALINA_BASE are not the root/context/whatever
  path for your application.
 
  -QM
 
  --
 
  software  -- http://www.brandxdev.net
  tech news -- http://www.RoarNetworX.com
 
 
  -
  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]


 -
 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: Urgent !! Please help me out.

2004-09-22 Thread Antony Paul
This is because the oracle dll is not found int the PATH environment
variable. For this you should have Oracle client installed. Or you can use
Oracle thin driver which dont need Oracle installed

rgds
Antony Paul

- Original Message -
From: Shanti Priya [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 12:45 PM
Subject: Urgent !! Please help me out.


 HI!!
  I get the following error when i try to run my application on
 tomcat.
 The message in the server is as follows.

 ERROR [2004-09-22 12:36:07,275] [Thread-5] [GSEITBaseAction.java:166] -
 Error in
  actionPerform:
 java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
 at java.lang.Runtime.loadLibrary0(Runtime.java:788)
 at java.lang.System.loadLibrary(System.java:834)
 at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
 at
 oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:246)

 at

oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
 at java.sql.DriverManager.getConnection(DriverManager.java:512)
 at java.sql.DriverManager.getConnection(DriverManager.java:171)
 at

com.bitmechanic.sql.ConnectionPool.createDriverConnection(ConnectionPool.jav
 a:468)
 at
 com.bitmechanic.sql.ConnectionPool.getConnection(ConnectionPool.java:407)
 at
 com.cisco.ea.apparch.framework.db.DBPool.borrowConnection(DBPool.java:91)
 at

com.cisco.ea.apparch.framework.db.DBPoolManager.borrowConnection(DBPoolManag
 er.java:300)
 at

com.cisco.gseit.db.ConnectionFactory.getConnection(ConnectionFactory.java:20
 6)
 at
 com.cisco.gseit.db.ObjectLoader.getConnection(ObjectLoader.java:957)
 at

com.cisco.gseit.db.ObjectLoader.getCollectionFromStoredProcedure(ObjectLoade
 r.java:1238)
 at
 com.cisco.asit.grm.user.UserDAO.getUserFromLoginName(UserDAO.java:61)
 at

com.cisco.asit.grm.struts.common.action.GROWBaseAction.performPreActionSetup
 (GROWBaseAction.java:100)
 at

com.cisco.gseit.struts.common.action.GSEITBaseAction.perform(GSEITBaseAction
 .java:108)
 at

org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
 va:1787)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
 at
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)

 Thanks  Regards,
 Shanti Priya Sunkara

 Location: Pune, India
 Email   : [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: jaring a zip file

2004-09-22 Thread Antony Paul
Go to command prompt and rename it. It will work. Make sure that the
extension is .jar.

rgds
Antony Paul

- Original Message -
From: Shanti Priya [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 1:32 PM
Subject: jaring a zip file


 Hi!!
   I have a zip file classes12.zip which i want to convert into a
jar
 file and copy in my $CATALINA_HOME/common/lib .
 If i rename it ,it's not working properly. I have oracle 9i on my local
 system and tomcat 4.1.18 is the version i am using to deploy.

 Thanks  Regards,
 Shanti Priya Sunkara

 Location: Pune, India
 Email   : [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: [OT] Handling JDBC transactions

2004-09-22 Thread Antony Paul
I feel JTA is the solution. JOTM have a documentation on how to use it in
Tomcat. But requiring to use JNDI is a problem because Tomcat JNDI is not
available outside Tomcat and I cannot run unit tests. Thanks for the help.

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 21, 2004 7:00 PM
Subject: RE: [OT] Handling JDBC transactions



Hi,

What are the ways to handle transactions in Tomcat ?. No EJB here.
I
use
Tomcat standalone. I am using JDBC calls to manage DB. I had used

There are a couple of ways.

One is to roll them yourself: add jta.jar (Java Transaction API,
downloadable from Sun) and your implementation of choice (e.g. Tyrex) to
WEB-INF/lib, and go read a JTA tutorial.  This way is not hard, it's
portable, and as a bonus you would be able to test your transaction code
from unit tests as it won't depend on the servlet container.

The other way is to use Tomcat's JNDI provider.  The J2EE spec requires
Tomcat to provide a UserTransaction (see the JTA docs) factory via JNDI.
Tomcat 4.x used Tyrex for this, see
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
-howto.html#Tyrex%20Connection%20Pool.

Tomcat 5 doesn't use Tyrex as the project seems to be dead:
http://tyrex.sourceforge.net/#News.  So you have to pick another JTA
implementation and follow the guide for using a the JNDI factory
(http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html), using the
org.apache.naming.factory.UserTransactionFactory.

Finally, you could simply use an external transaction manager.  This
solution is usually worthwhile only for mission-critical (as in someone
will die if it fails) or very large installation, because these
enterprise-grade transaction managers tend to be very expensive and
complex.  However, recently things like JOTM (ObjectWeb) have really
grown into their own, so you might wish to investigate it.

The downsides to using container- or externally-provided transaction
manager are that you need to learn the configuration syntax, and that
unit-testing is more difficult.

Yoav



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



[OT] Handling JDBC transactions

2004-09-21 Thread Antony Paul
Hi all,
What are the ways to handle transactions in Tomcat ?. No EJB here. I use
Tomcat standalone. I am using JDBC calls to manage DB. I had used
Connection.commit() and party in previous projects. But this have 2 draw
backs
1. Need to pass Connection to methods which is coming under the transaction.
2. Some methods may need to be transactional in future which are not
transactional now. Since now it is not transactional I am not passing the
Connection object. Hence it requires modification of the method signature to
implement the new changes which is not desirable in most cases.
So I am looking for alternate ways. How you people handle this ?.

rgds
Antony Paul

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



Re: ant build remote java.net.MalformedURLException (newbie Q)

2004-09-21 Thread Antony Paul
Which version of Tomcat you are using ?

rgds
Antony Paul

- Original Message -
From: Harry Hartley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 21, 2004 4:18 PM
Subject: ant build remote java.net.MalformedURLException (newbie Q)


 I am trying to use the sample to deploy the test application from my local
 machine to my remote server.



 I have done all builds and deployments successfully, and everything works
 fine (yippy!).

 I have modified the build.xml to use the url and password for the manager
 app on my remote server. This works partially. I am able to do lists, but
 when I try to install, I get a  java.net.MalformedURLException error.
 Looking at the build.xml, this makes sense. My assumption is that the
 manager application looks at the

  deploy url=${manager.url}

 uername=${manager.username}

 password=${manager.password}

 path=${app.path}

 localWar=file://${build.home}/



 and tells me hey dude, aint no such directory on my server.



 So the question is, how to do an install from a local machine, running
build
 on a local machine (with tomcat installed), and install my war on a remote
 machine. A couple of thoughts come to mind:

 1)   FTP files to remote system using ant tasks.

 2)   Use something other than 'file://' as designator of location.

 3)   There is some other task or property for ant that handles this.



 I should mention that locally I am behind a nat and using a typical cable
 HSD account with dynamic ip assignment, so using my own IP is probably not
 feasible.



 Any Help? Thanks,



 Harry





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



Re: cud not solve javax.naming.NamingException: Cannot create resource instance

2004-09-21 Thread Antony Paul
Do you have MySQL JDBC Driver jar ?. Put it in common\lib and restart Tomcat
to test

rgds
Antony Paul

- Original Message -
From: Atishay Kumar [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 9:30 AM
Subject: Re: cud not solve javax.naming.NamingException: Cannot create
resource instance


 i was not putting the following lines, that's why i namingException
 was coming. BUT I AM NOW GETTING THE DataSource as null. Any clues??

 
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 -


 On Tue, 21 Sep 2004 19:41:03 +, Atishay Kumar
 [EMAIL PROTECTED] wrote:
  hi,
   i am trying to do MySql Connection Pooling in Tomcat 4.1.27. I am
  getting the following error
  --
  javax.naming.NamingException: Cannot create resource instance
  --
  doing some googly revealed that i need some commons-.. jar files to be
  present in common/lib folder. but i already had them in common/lib
  folder. the files in lib folder are
  --
  activation.jar   commons-dbcp.jar jdbc2_0-stdext.jar
 naming-common.jar
  ant.jar  commons-logging-api.jar  jndi.jar
 naming-factory.jar
  classes111.jar   commons-pool.jar jta.jar
 naming-resources.jar
  classes12.jarjasper-compiler.jar  mail.jar
 servlet.jar
  commons-collections.jar  jasper-runtime.jar
  mysql-connector-java-3.0.11-stable-bin.jar
  -
  my server.xml
 
  Context path=/student docBase=student_directory debug=0
  priveledge=true
  /Context
  Context path=/testing docBase=test debug=0
priveledge=true
  Resource name=jdbc/testDataSource auth=Container
  type=java.sql.DataSource/
  ResourceParams name=jdbc/testDataSource
  parameter
nameuser/name
valueroot/value
  /parameter
  parameter
 namepassword/name
 value/value
  /parameter
  parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
   nameurl/name
   valuejdbc:mysql://localhost:3306/mysql/value
  /parameter
  /ResourceParams
 /Context
  
  web.xml
  ?xml version=1.0 encoding=ISO-8859-1?
 
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
display-nameThis is a test folder /display-name
description
   Welcome to the test folder
/description
  resource-ref
   descriptionMySql Datasource for Student Directory/description
   res-ref-namejdbc/testDataSource/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
  /resource-ref
  /web-app
  -
  mysql_connection_test.jsp
 
  %@ page import=java.sql.* %
  %@ page import=javax.naming.*%
  %@ page import=javax.sql.*%
  html
  head
  titletest/title
  /head
  body
  %
   try
   {
  Context ctx= new InitialContext();
  if(ctx==null)
  throw new Exception(not able to find intial context);
  DataSource
  ds=(DataSource)ctx.lookup(java:comp/env/jdbc/testDataSource);
  if(ds!=null)
  {
  Connection conn=ds.getConnection();
  Statement stmt=conn.createStatement();
  ResultSet rs=stmt.executeQuery(select current_date());
  if(rs==null)
   out.println(No rowset returned);
   else
   {
   rs.next();
   out.println(Current Date+rs.getString(1));
   }
   rs.close();
   stmt.close();
   conn.close();
 
  }
   }
  catch(Exception e)
  {
   out.println(Error found: +e);
  }
 
  %
  /body
  /html
  ---
  please help me in resolving it.
 
  thanks
  --
  :)
  Atishay Kumar
  Btech, SEM VII
  DA-IICT
  Gandhinagar - 382009
  India
  ph: +91 9825383948
 
/***
*
   * Learn the rules as you would need them to break them properly *
 

/
 



 --
 :)
 Atishay Kumar
 Btech, SEM VII
 DA-IICT
 Gandhinagar - 382009
 India
 ph: +91 9825383948

/***
*
  * Learn the rules as you would need them to break them properly

Re: Tomcat 4.1.23

2004-09-21 Thread Antony Paul
How the file is accessed ?.

rgds
Antony Paul

- Original Message -
From: Sudhrasun Ramalingam [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 9:33 AM
Subject: RE: Tomcat 4.1.23


 Sorry for using the wrong words,

 I've a jar inside my /webapps/webapplication/lib, which referes a file say
 x.xml. If I packed this x.xml with the jar it works, but I wanted that to
be
 modified by others so I put that inside the /webapps/webapplication/. When
I
 access the jsp/servlet I get an error saying x.xml not found.

 What can be done for this ?



 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 21, 2004 7:14 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.1.23

 On Tue, Sep 21, 2004 at 10:17:11AM +0600, Sudhrasun Ramalingam wrote:
 : I've a doubt, What is the root directory for a webapp?
 : And if the answer is $CATALINA_HOME/webapps/webapp..
 :
 : Then how can the jar file referring $CATALINA_HOME as root for my web
 : application?

 1/ root directory and document root are terms that don't 100% apply
 in the J2EE world.  Use the term context path, because a webapp
 (context) may exist in a directory or inside a WAR file.

 So, the context path defaults to one of
 {value of appBase}/{context dir}
 {value of appBase}/{WAR file}

 where the value of appBase defaults to {Tomcat install}/webapps.

 2/ $CATALINA_HOME and $CATALINA_BASE are not the root/context/whatever
 path for your application.

 -QM

 --

 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com


 -
 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: ant build remote java.net.MalformedURLException (newbie Q)

2004-09-21 Thread Antony Paul
With Tomcat 4.1 I had this problem when I forgot to change the URL of the
remote manager when I changed testing from localhost to remote host. Also
check the remote machine have manager application installed and have user
with manager roles. Also check password.


rgds
Antony Paul

- Original Message -
From: Harry Hartley [EMAIL PROTECTED]
To: 'Antony Paul' [EMAIL PROTECTED]; 'Tomcat Users List'
[EMAIL PROTECTED]
Sent: Tuesday, September 21, 2004 7:06 PM
Subject: RE: ant build remote java.net.MalformedURLException (newbie Q)


 Thanks for replying Antony.

 I am using (both locally and remote):
 Tomcat - 5.0.28
 JDK - 1.4.2_05
 Ant - 1.6.2

 Harry

 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 21, 2004 7:26 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: ant build remote java.net.MalformedURLException (newbie Q)

 Which version of Tomcat you are using ?

 rgds
 Antony Paul

 - Original Message -
 From: Harry Hartley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 21, 2004 4:18 PM
 Subject: ant build remote java.net.MalformedURLException (newbie Q)


  I am trying to use the sample to deploy the test application from my
local
  machine to my remote server.
 
 
 
  I have done all builds and deployments successfully, and everything
works
  fine (yippy!).
 
  I have modified the build.xml to use the url and password for the
manager
  app on my remote server. This works partially. I am able to do lists,
but
  when I try to install, I get a  java.net.MalformedURLException error.
  Looking at the build.xml, this makes sense. My assumption is that the
  manager application looks at the
 
   deploy url=${manager.url}
 
  uername=${manager.username}
 
  password=${manager.password}
 
  path=${app.path}
 
  localWar=file://${build.home}/
 
 
 
  and tells me hey dude, aint no such directory on my server.
 
 
 
  So the question is, how to do an install from a local machine, running
 build
  on a local machine (with tomcat installed), and install my war on a
remote
  machine. A couple of thoughts come to mind:
 
  1)   FTP files to remote system using ant tasks.
 
  2)   Use something other than 'file://' as designator of location.
 
  3)   There is some other task or property for ant that handles this.
 
 
 
  I should mention that locally I am behind a nat and using a typical
cable
  HSD account with dynamic ip assignment, so using my own IP is probably
not
  feasible.
 
 
 
  Any Help? Thanks,
 
 
 
  Harry
 
 
 
 




 -
 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: Serializable Logging implementation

2004-09-17 Thread Antony Paul
What is OP ? Can you please expand it ?

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 17, 2004 5:41 PM
Subject: RE: Serializable Logging implementation



Hi,

Ditch the super class philosphy. And copy the following 3 lines of
code:
import ... LogFactory;
import ... Log;
private static log = LogFactory.get...(My.class);

Yup, exactly.  Tim's message is right on, and if you look at the start
of this thread you see we only started suggesting the alternative
approaches (transient, activation listener) when the OP wanted to stick
to his bad design pattern.

Yoav



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
Hi,
I have problems in displaying a JSP page in Tomcat 4.1.12. A file
containing code like this is not displayed
%//a%
aaa

Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
correctly ?. 4.1.12 or 4.1.30

rgds
Anto Paul

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



Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Antony Paul
Had you tried it with inside Context element. If it doesn't work it means
the JDBC driver is not found when Tomcat starts up. You have to put JDBC jar
in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you place
dbcp.jar too there.

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Jonathan Rengifo
[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 6:02 PM
Subject: RE: Problem configuring a global resource to be linked from Context
elements 



Hi,
Maybe there really is a bug in the Tomcat release you're using: which
one are you trying?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 9:08 PM
To: Tomcat User List
Subject: Problem configuring a global resource to be linked from
Context
elements 

Hi all


This is the third time I've write a message to the list asking for the
same issue, but didn't solve it, I am starting to think about this is
a really bug in Tomcat 5. My question is ... Why when I configure a
Resource inside the GlobalNamingResources element just to ResourceLink
it inside the context it just doesn't work, throwing an exception like
this ...

org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
class 'oracle.jdbc.driver.OracleDriver'

This means to me that the oracle driver I am using is could no be
found, but then, why when I cut the Resource and paste it inside every
Context I use it just work fine???...

Please help How do I configure this global resource??

Here is how I am setting this up...

GlobalNamingResources

Resource name=jdbc/app auth=Container scope=Shareable
type=javax.sql.DataSource/
 ResourceParams name=jdbc/app
 parameter
 namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 nameurl/name

valuejdbc:oracle:thin:@myDatabaseServer:port:user/value
 /parameter
 parameter
 namepassword/name
 valuemyPassword/value
 /parameter
 parameter
 namemaxActive/name
 value20/value
 /parameter
 parameter
 namemaxWait/name
 value-1/value
 /parameter
 parameter
 namedriverClassName/name
 valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
 nameusername/name
 valuemyUser/value
 /parameter
 parameter
 namemaxIdle/name
 value10/value
 /parameter
 /ResourceParams
/GlobalNamingResources


Thanks ..

Jonathan

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
Do you mean that none of the Tomcat versions behave properly ?.
I had used it at lot of JSP pages. It is for the first time I am having a
problem.

rgds
Antony Paul

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 6:29 PM
Subject: Re: Question on use of Java style comments in JSP


 Never use // in JSP code. Also never use if conditionals without {} (as
well
 as for loops).

 -Tim

 Antony Paul wrote:

  Hi,
  I have problems in displaying a JSP page in Tomcat 4.1.12. A file
  containing code like this is not displayed
  %//a%
  aaa
 
  Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
  correctly ?. 4.1.12 or 4.1.30
 

 -
 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: Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
It is not producing error messages on stdout/stderr or to screen instead it
gives this output

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html;
charset=iso-8859-1/HEAD
BODY/BODY/HTML

rgds
Anotny Paul.


- Original Message -
From: Jarl Skogsholm [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 6:52 PM
Subject: Re: Question on use of Java style comments in JSP


 This displays properly if versions 5+.
 There is nothing wrong with using // in jsp files,  jsp's are converted
 into valid java code. Are you getting error messages?  does it produce any
 code at all?


 On Thu, 16 Sep 2004 18:42:44 +0530, Antony Paul [EMAIL PROTECTED]
 wrote:

  Do you mean that none of the Tomcat versions behave properly ?.
  I had used it at lot of JSP pages. It is for the first time I am having
a
  problem.
 
  rgds
  Antony Paul
 
  - Original Message -
  From: Tim Funk [EMAIL PROTECTED]
  Sent: Thursday, September 16, 2004 6:29 PM
 
  Never use // in JSP code. Also never use if conditionals without {} (as
  well
  as for loops).
 
  -Tim
 
  Antony Paul wrote:
 
   Hi,
   I have problems in displaying a JSP page in Tomcat 4.1.12. A file
   containing code like this is not displayed
   %//a%
   aaa
  
   Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
   correctly ?. 4.1.12 or 4.1.30
  
 




 --
 They that can give up essential liberty to obtain a little temporary
 safety deserve neither liberty nor safety.
 -- Benjamin Franklin (1755)

 -
 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: Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
t.jsp

%//a%
aaa

t_jsp.java
//a  out.write(\naaa\n);

The out.write() needs to be on second line.

rgds
Antony Paul

- Original Message -
From: Jarl Skogsholm [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 8:14 PM
Subject: Re: Question on use of Java style comments in JSP


 Go look in the work directory and find the corresponding java file to this
 jsp.

 On Thu, 16 Sep 2004 19:22:50 +0530, Antony Paul [EMAIL PROTECTED]
 wrote:

  It is not producing error messages on stdout/stderr or to screen instead
  it
  gives this output
 
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
  HTMLHEAD
  META http-equiv=Content-Type content=text/html;
  charset=iso-8859-1/HEAD
  BODY/BODY/HTML
 
  rgds
  Anotny Paul.
 

 -
 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: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Antony Paul
The correct file name is commons-dbcp-1.1.jar and is found in
CATALINA_HOME\common\lib directory.

rgds
Antony Paul

- Original Message -
From: Jonathan Rengifo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 8:36 PM
Subject: Re: Problem configuring a global resource to be linked from Context
elements 


 Hi again and thanks to all... :D

 Antony, please can you tell what is dbcp.jar and where I can find it?
 so I can try your recommendation...

 Thanks...
 Jonathan


 On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
 [EMAIL PROTECTED] wrote:
  Had you tried it with inside Context element. If it doesn't work it
means
  the JDBC driver is not found when Tomcat starts up. You have to put JDBC
jar
  in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you
place
  dbcp.jar too there.
 
  rgds
  Antony Paul
 
  - Original Message -
  From: Shapira, Yoav [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]; Jonathan
Rengifo
  [EMAIL PROTECTED]
  Sent: Thursday, September 16, 2004 6:02 PM
  Subject: RE: Problem configuring a global resource to be linked from
Context
  elements 
 
 
  Hi,
 
 
  Maybe there really is a bug in the Tomcat release you're using: which
  one are you trying?
 
  Yoav Shapira
  Millennium Research Informatics
 
  -Original Message-
  From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 15, 2004 9:08 PM
  To: Tomcat User List
  Subject: Problem configuring a global resource to be linked from
  Context
  elements 
  
  Hi all
  
  
  This is the third time I've write a message to the list asking for the
  same issue, but didn't solve it, I am starting to think about this is
  a really bug in Tomcat 5. My question is ... Why when I configure a
  Resource inside the GlobalNamingResources element just to ResourceLink
  it inside the context it just doesn't work, throwing an exception like
  this ...
  
  org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
  class 'oracle.jdbc.driver.OracleDriver'
  
  This means to me that the oracle driver I am using is could no be
  found, but then, why when I cut the Resource and paste it inside every
  Context I use it just work fine???...
  
  Please help How do I configure this global resource??
  
  Here is how I am setting this up...
  
  GlobalNamingResources
  
  Resource name=jdbc/app auth=Container scope=Shareable
  type=javax.sql.DataSource/
   ResourceParams name=jdbc/app
   parameter
   namefactory/name
  
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
   nameurl/name
  
  valuejdbc:oracle:thin:@myDatabaseServer:port:user/value
   /parameter
   parameter
   namepassword/name
   valuemyPassword/value
   /parameter
   parameter
   namemaxActive/name
   value20/value
   /parameter
   parameter
   namemaxWait/name
   value-1/value
   /parameter
   parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
   /parameter
   parameter
   nameusername/name
   valuemyUser/value
   /parameter
   parameter
   namemaxIdle/name
   value10/value
   /parameter
   /ResourceParams
  /GlobalNamingResources
  
  
  Thanks ..
  
  Jonathan
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  This e-mail, including any attachments, is a confidential business
  communication, and may contain information that is confidential,
proprietary
  and/or privileged.  This e-mail is intended only for the individual(s)
to
  whom it is addressed, and may not be saved, copied, printed, disclosed
or
  used by anyone else.  If you are not the(an) intended recipient, please
  immediately delete this e-mail from your computer system and notify the
  sender.  Thank you.
 
 
  -
  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]



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



Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Antony Paul
I think it is because of the way Tomcat classloaders work. Classes in
common\lib or common\classes cannot see classes in WEB-INF\lib. DBCP looks
for the JDBC Driver class and it cannot read it from WEB-INF\lib. This is
the answer I got when I had similar problem. For further info on this you
need help from experts in this list. If the problem is not solved please
reply.

rgds
Antony paul

- Original Message -
From: Jonathan Rengifo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 8:48 PM
Subject: Re: Problem configuring a global resource to be linked from Context
elements 


 Hi to all...

 Antony, sorry I have already found dbcp.jar and know what it does, but
 don't understand why I should copy it to my WEB-INF/lib application
 source ?


 On Thu, 16 Sep 2004 11:06:53 -0400, Jonathan Rengifo
 [EMAIL PROTECTED] wrote:
  Hi again and thanks to all... :D
 
  Antony, please can you tell what is dbcp.jar and where I can find it?
  so I can try your recommendation...
 
  Thanks...
 
 
  Jonathan
 
  On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
  [EMAIL PROTECTED] wrote:
   Had you tried it with inside Context element. If it doesn't work it
means
   the JDBC driver is not found when Tomcat starts up. You have to put
JDBC jar
   in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you
place
   dbcp.jar too there.
  
   rgds
   Antony Paul
  
   - Original Message -
   From: Shapira, Yoav [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]; Jonathan
Rengifo
   [EMAIL PROTECTED]
   Sent: Thursday, September 16, 2004 6:02 PM
   Subject: RE: Problem configuring a global resource to be linked from
Context
   elements 
  
  
   Hi,
  
  
   Maybe there really is a bug in the Tomcat release you're using: which
   one are you trying?
  
   Yoav Shapira
   Millennium Research Informatics
  
   -Original Message-
   From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, September 15, 2004 9:08 PM
   To: Tomcat User List
   Subject: Problem configuring a global resource to be linked from
   Context
   elements 
   
   Hi all
   
   
   This is the third time I've write a message to the list asking for
the
   same issue, but didn't solve it, I am starting to think about this is
   a really bug in Tomcat 5. My question is ... Why when I configure a
   Resource inside the GlobalNamingResources element just to
ResourceLink
   it inside the context it just doesn't work, throwing an exception
like
   this ...
   
   org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
   class 'oracle.jdbc.driver.OracleDriver'
   
   This means to me that the oracle driver I am using is could no be
   found, but then, why when I cut the Resource and paste it inside
every
   Context I use it just work fine???...
   
   Please help How do I configure this global resource??
   
   Here is how I am setting this up...
   
   GlobalNamingResources
   
   Resource name=jdbc/app auth=Container scope=Shareable
   type=javax.sql.DataSource/
ResourceParams name=jdbc/app
parameter
namefactory/name
   
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
nameurl/name
   
   valuejdbc:oracle:thin:@myDatabaseServer:port:user/value
/parameter
parameter
namepassword/name
valuemyPassword/value
/parameter
parameter
namemaxActive/name
value20/value
/parameter
parameter
namemaxWait/name
value-1/value
/parameter
parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
nameusername/name
valuemyUser/value
/parameter
parameter
namemaxIdle/name
value10/value
/parameter
/ResourceParams
   /GlobalNamingResources
   
   
   Thanks ..
   
   Jonathan
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
   This e-mail, including any attachments, is a confidential business
   communication, and may contain information that is confidential,
proprietary
   and/or privileged.  This e-mail is intended only for the individual(s)
to
   whom it is addressed, and may not be saved, copied, printed, disclosed
or
   used by anyone else.  If you are not the(an) intended recipient,
please
   immediately delete this e-mail from your computer system and notify
the
   sender.  Thank you.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e

Serializable Logging implementation

2004-09-15 Thread Antony Paul
Hi,
I used Log4J and commons logging in an ActionForm which is stored in the
session. When I reload the context it is invalidating the session because it
is non serializable. Is there any work around for this ?. Or do I have to
use any other Logger.

rgds
Antony Paul

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



  1   2   3   >