Re: decompiling classes

2006-09-08 Thread William Bonnet
Hi all

  what's the command again for decompiling Tomcat's classes? Or was there
 special software needed to do so?
 
 Why not just browse the source?
 http://tomcat.apache.org/svn.html

If browsing sources is not enough you can use jad (
http://www.kpdus.com/jad.html ). You can integrate it as an eclipse plugin (
http://www.devx.com/Java/Article/22657 )

Regards,
W.

-- 
William  http://www.wbonnet.net

http://www.sunwizard.net Le site français des amateurs de stations Unix
http://www.blastwave.org An OpenSolaris Community Site
http://www.guses.org French speaking Solaris User Group

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



Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-08 Thread ben short

Hi Luke,

This is a litte off topic for the Tomcat usergroup but here you go.

I have added the following to my web.xml

servlet
   servlet-nameimg/servlet-name
   
servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-class
   load-on-startup1/load-on-startup
/servlet

servlet-mapping
   servlet-nameimg/servlet-name
   url-pattern/img/*/url-pattern
/servlet-mapping

My img-servlet.xml

bean id=imageController class=com.benshort.catalog.web.ImageController
   property name=imageRepositoryref bean=imageRepo//property
/bean

bean id=urlMapping
class=org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
   property name=mappings
   props
   prop key=/*.*imageController/prop
   /props
   /property
/bean

And my image controller

public class ImageController extends AbstractController
   {
   private SimpleDateFormat mDateFormat = new SimpleDateFormat(EEE,
dd MMM  HH:mm:ss zzz);

   private IImageRepository mIImageRepository;

   public void setImageRepository(IImageRepository ImageRepository)
   {
   mIImageRepository = ImageRepository;
   }

   protected ModelAndView handleRequestInternal(HttpServletRequest
httpServletRequest, HttpServletResponse httpServletResponse) throws
Exception
   {
   final String url = httpServletRequest.getRequestURI();

   final String imageName =
url.substring(url.lastIndexOf(/)+1).toLowerCase();

   Long imageId = Long.parseLong(imageName.substring(0,
imageName.lastIndexOf(.)));

   Image image = mIImageRepository.getImage(imageId);

   String ifModifiedSince =
httpServletRequest.getHeader(if-modified-since);

   if ( ifModifiedSince != null )
   {
   long modifiedDate = mDateFormat.parse(ifModifiedSince).getTime();

   if ( modifiedDate  image.getLastModified() )
   {

httpServletResponse.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
   httpServletResponse.setContentLength(0);
   return null;
   }
   }

   httpServletResponse.setContentType(image.getMimeType());
   httpServletResponse.setContentLength(image.getLength());
   // ie seems not to see this header if its not in uppercase :S
   httpServletResponse.setDateHeader(LAST-MODIFIED,
image.getLastModified());
   httpServletResponse.getOutputStream().write(image.getData());
   httpServletResponse.flushBuffer();

   return null;
   }
   }

The controller needs a bit more wrk to handel bad urls etc, but its functional.

Give me a shout if you have any questions.

Regards

Ben


On 9/8/06, Luke McLean [EMAIL PROTECTED] wrote:


Hi Ben,  I'm starting out to do exactly the same thing and the web is quite
sketchy on how to do it with Spring.  Would you mind posting or sending the
controller code that you use to return the image please.  I would be very
greatful.

Thanks,
Luke.


benshort wrote:

 What I am doing is serving images from a database.



--
View this message in context: 
http://www.nabble.com/HTTP-304---IF_MODIFIED_SINCE-tf2220040.html#a6203229
Sent from the Tomcat - User forum at Nabble.com.


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




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



Re: How to monitor web services?

2006-09-08 Thread Leon Rosenberg

I thought to wait for better answers than mine, but noone seems to have one.
Can you say what exactly you want to monitor?

regards
leon

On 9/7/06, Michele Mazzucco [EMAIL PROTECTED] wrote:

Hi all,

I'm using Axis2 embedded into Tomcat. I've got a stateful web service
which needs to be monitored.
I think the best way to monitor my application is via JMX, but I've
found out that axis2 is only a servlet. Is this a problem?, How could I
accomplish my goal?


Any help would be appreciated,
Michele

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




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



STARTING MULTIPLE INSTANCES OF TOMCAT

2006-09-08 Thread harish A.S.
hi,
  i have installed four instances of tomcat apart from the original one. i  
want to run the instances ...in the same server from a asingle machine..
  How can i start the instances manually...or does it start automatically whhen 
we start the TOMCAT server.
  I am using these 4 instances for load balancing.
  I started the tomcat server ONLY AND HIT THE FOLLOWING URL 
  http://localhost:8080/balancer/testLB.jsp   I encountered the following error 
  
   
  type Status report
  message /balancer/testLB.jsp
  description The requested resource (/balancer/testLB.jsp) is not available.
   
   
  can you pls help me out with the solution ASAP
  thanks a lot
  regarsds
  harryy


-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Re: STARTING MULTIPLE INSTANCES OF TOMCAT

2006-09-08 Thread David Delbecq
Please provide more informations.

1) The rule files you have configured in your balancer
2) The ports on which your various tomcat servers are running, including
the one running the balancer
3) Any output that your request could have generated in the catalina.out
of any of the running tomcat servers
4) List the webapplications running on each of the tomcat (using the
manager interface available at http://host:port/manager/html)
harish A.S. a écrit :
 hi,
   i have installed four instances of tomcat apart from the original one. i  
 want to run the instances ...in the same server from a asingle machine..
   How can i start the instances manually...or does it start automatically 
 whhen we start the TOMCAT server.
   I am using these 4 instances for load balancing.
   I started the tomcat server ONLY AND HIT THE FOLLOWING URL 
   http://localhost:8080/balancer/testLB.jsp   I encountered the following 
 error   

   type Status report
   message /balancer/testLB.jsp
   description The requested resource (/balancer/testLB.jsp) is not available.


   can you pls help me out with the solution ASAP
   thanks a lot
   regarsds
   harryy

   
 -
 How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
   


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



Re: How to monitor web services?

2006-09-08 Thread Michele Mazzucco
Hi leon,

my stateful web service is just an application router, that is, it
forwards client requests to computational nodes (which are hidden to the
clients), according to specified policies. The router maintains queues
of requests (one queue for each provided service) and collects
statistics (i.e. throughput and service time) in order to be able to
react to changes (that is, to reconfigure the nodes allocation). I want
to monitor those values: queue sizes, response time, etc.

Best regards,
Michele

Leon Rosenberg wrote:
 I thought to wait for better answers than mine, but noone seems to have
 one.
 Can you say what exactly you want to monitor?
 
 regards
 leon
 
 On 9/7/06, Michele Mazzucco [EMAIL PROTECTED] wrote:
 Hi all,

 I'm using Axis2 embedded into Tomcat. I've got a stateful web service
 which needs to be monitored.
 I think the best way to monitor my application is via JMX, but I've
 found out that axis2 is only a servlet. Is this a problem?, How could I
 accomplish my goal?


 Any help would be appreciated,
 Michele

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


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

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



Singleton and ServletContext

2006-09-08 Thread Feris Thia

Dear All,

Is there anyone can point me to any sample how to use singleton object
across web application in Tomcat ?

--
Regards,
Feris
PT. Putera Handal Indotama
JL. KH. Moh. Mansyur No. 11 Blok B.8-12
Telp. +62-21-631 6688 (Hunting)
Fax. +62-21-6330211
Jakarta (10140) - INDONESIA


Re: Using Tomcat with JSPs on Mac OS X

2006-09-08 Thread Rhodri Bowden

Using  Tomcat version 5.5 has fixed the problem!
Thanks to all.

Rhodri

On 7 Sep 2006, at 18:55, Edoardo Panfili wrote:


Rhodri Bowden ha scritto:

Hello.
I've recently installed Tomcat 5.0.25 on my Mac OS X (10.4), and  
have used it successfully with servlets (using Java 1.5).
I am currently trying to run a simple JSP example, but get the  
following error message:
No Java compiler was found to compile the generated source for the  
JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/ 
tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a  
Tomcat restart.
Upon searching the web (and my OS) it appears that OS X does not  
include a tools.jar file, as all classes are in the classes.jar file.
I have tried commenting out the references to the tools.jar from  
the catalina.xml file and the setclasspath.sh file, and have even  
tried renaming a copy of the classes file to tools.jar, and  
putting it in the common/lib directory - all to no avail.
Is there a workaround for this issue? (Incidentally, I found no  
references to OS X or tools.jar on the Apache site).


I have used tomcat (with os X 10.3) 5.0 in the past without  
problem, but now I am using 5.5.17 with OS X 10.3.9.


There is no tools.jar in my OS X system.

If you can try to use Tomcat version 5.5


Edoardo

--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

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




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



Re: STARTING MULTIPLE INSTANCES OF TOMCAT

2006-09-08 Thread harish A.S.
HI,
  THIS IS THE RULES.XML FILE...
   
  NOTE:
  I AM USING 4 INSTANCES..ON THE SAME SERVER ON THE SAME MACHINE
  INSTANCE 1=LOAD BALANCER  PORT=4000 ;
  8080 IS THE DEFAULT PORT NO:OF THE MAIN APACHE TOMCATSERVER SET IN SERVER.XML
  INSTANCE 2,3,4=CLUSTERS
  RULES.XML
  rule className=org.apache.webapp.balancer.rules.RoundRobinRule
  serverInstance=1
  maxServerInstances=3
  tcpListenAddress=127.0.0.1
  tcpListenPort=4001
  testWebPage=http://localhost:9080/clusterapp/test.jsp;
  redirectUrl=http://localhost:9080/clusterapp/sessiondata.jsp; /
   rule className=org.apache.webapp.balancer.rules.RoundRobinRule
  serverInstance=2
  maxServerInstances=3
  tcpListenAddress=127.0.0.1
  tcpListenPort=4002
  testWebPage=http://localhost:10080/clusterapp/test.jsp;
  redirectUrl=http://localhost:10080/clusterapp/sessiondata.jsp; /
   rule className=org.apache.webapp.balancer.rules.RoundRobinRule
  serverInstance=3
  maxServerInstances=3
  tcpListenAddress=127.0.0.1
  tcpListenPort=4003
  testWebPage=http://localhost:11080/clusterapp/test.jsp;
  redirectUrl=http://localhost:11080/clusterapp/sessiondata.jsp; /

David Delbecq [EMAIL PROTECTED] wrote:
  Please provide more informations.

1) The rule files you have configured in your balancer
2) The ports on which your various tomcat servers are running, including
the one running the balancer
3) Any output that your request could have generated in the catalina.out
of any of the running tomcat servers
4) List the webapplications running on each of the tomcat (using the
manager interface available at http://:port/manager/html)
harish A.S. a écrit :
 hi,
 i have installed four instances of tomcat apart from the original one. i want 
 to run the instances ...in the same server from a asingle machine..
 How can i start the instances manually...or does it start automatically whhen 
 we start the TOMCAT server.
 I am using these 4 instances for load balancing.
 I started the tomcat server ONLY AND HIT THE FOLLOWING URL 
 http://localhost:8080/balancer/testLB.jsp I encountered the following error 
 
 type Status report
 message /balancer/testLB.jsp
 description The requested resource (/balancer/testLB.jsp) is not available.
 
 
 can you pls help me out with the solution ASAP
 thanks a lot
 regarsds
 harryy

 
 -
 How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
 


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




-
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail.

-
Get your email and more, right on the  new Yahoo.com 

RE: Singleton and ServletContext

2006-09-08 Thread Peter Crowther
 From: Feris Thia [mailto:[EMAIL PROTECTED] 
 Is there anyone can point me to any sample how to use singleton object
 across web application in Tomcat ?

See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

You need to ensure that the singleton is loaded by the same classloader
in each webapp.  The most appropriate classloader for this is the Common
classloader, so have a look at the page above and put the singleton
class in the appropriate directory (depending on how it's packaged)
under $CATALINA_HOME/common.

- Peter

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



[OT] RE: moving from win2k sp4 to win2k3 64bit

2006-09-08 Thread Peter Crowther
 From: joon yoo [mailto:[EMAIL PROTECTED] 
 We're having memory management problems with java and our tomcat
 webapp on a win2000 sp4 server:
 
 HP proliant DL360 G3
 Xeon 2.8 (HT on)
 2GB RAM
 
 I'm unable to expand java mem pool beyond 1024MB on this server.
 
 Would it make sense to upgrade to win2003 64bit and upgrade the RAM to
 8GB's.

Off-topic for Tomcat, but be aware that if your webapp requires
authentication (*any* kind of authentication) then you need to review
your licensing position.  Windows 2000 didn't require CALs / Internet
licenses for this use; Windows 2003 does.

- Peter

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



Re: Singleton and ServletContext

2006-09-08 Thread DJohnson
I'll assume you mean shared between separate web applications, as, within 
a single web app. is nothing special.  The key is the classloader.  In 
order for the singleton to be a true singleton, (not one fo reach webapp) 
it must be loaded rom a common classloader.  So the jar it is loaded from 
should probably be in common/lib.  See 
http://tomcat.apache.org/tomcat-4.1-doc/class-loader-howto.html for more 
on Tomcat classloader hierarchy.



Please respond to Tomcat Users List users@tomcat.apache.org

To: Tomcat Users List users@tomcat.apache.org
cc:  
Subject:Singleton and ServletContext



Dear All,

Is there anyone can point me to any sample how to use singleton object
across web application in Tomcat ?

--
Regards,
Feris
PT. Putera Handal Indotama
JL. KH. Moh. Mansyur No. 11 Blok B.8-12
Telp. +62-21-631 6688 (Hunting)
Fax. +62-21-6330211
Jakarta (10140) - INDONESIA




Re: JNDI context in ServletContextListener

2006-09-08 Thread Mark Thomas
bhaskar wrote:
===
 
 Does it mean that it will solve my problem if I move from Tomcat 5.0.x to
 Tomcat 5.5 ?

Probably.

It it is a bug there is a much greater chance of it getting fixed in
5.5.x than 5.0.x.

Mark

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



Re: Singleton and ServletContext

2006-09-08 Thread Marc Farrow

Would you not accomplish the same thing by placing it in shared/lib instead
of common/lib?  My understanding is that common/lib is also used by Tomcat
engine itself and also all webapps while the shared/lib is just shared among
all webapps?  Am I mistaken?

On 9/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


I'll assume you mean shared between separate web applications, as, within
a single web app. is nothing special.  The key is the classloader.  In
order for the singleton to be a true singleton, (not one fo reach webapp)
it must be loaded rom a common classloader.  So the jar it is loaded from
should probably be in common/lib.  See
http://tomcat.apache.org/tomcat-4.1-doc/class-loader-howto.html for more
on Tomcat classloader hierarchy.



Please respond to Tomcat Users List users@tomcat.apache.org

To: Tomcat Users List users@tomcat.apache.org
cc:
Subject:Singleton and ServletContext



Dear All,

Is there anyone can point me to any sample how to use singleton object
across web application in Tomcat ?

--
Regards,
Feris
PT. Putera Handal Indotama
JL. KH. Moh. Mansyur No. 11 Blok B.8-12
Telp. +62-21-631 6688 (Hunting)
Fax. +62-21-6330211
Jakarta (10140) - INDONESIA







--
Marc Farrow


Re: How to monitor web services?

2006-09-08 Thread Martin Gainty
Have you looked into using SOAPMonitorApplet?
(Ditto on Leon's suggestion on understanding what you're expecting to see )
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Leon Rosenberg [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 08, 2006 4:05 AM
Subject: Re: How to monitor web services?


I thought to wait for better answers than mine, but noone seems to have one.
 Can you say what exactly you want to monitor?
 
 regards
 leon
 
 On 9/7/06, Michele Mazzucco [EMAIL PROTECTED] wrote:
 Hi all,

 I'm using Axis2 embedded into Tomcat. I've got a stateful web service
 which needs to be monitored.
 I think the best way to monitor my application is via JMX, but I've
 found out that axis2 is only a servlet. Is this a problem?, How could I
 accomplish my goal?


 Any help would be appreciated,
 Michele

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


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


RE: Singleton and ServletContext

2006-09-08 Thread Peter Crowther
 From: Marc Farrow [mailto:[EMAIL PROTECTED] 
 Would you not accomplish the same thing by placing it in 
 shared/lib instead of common/lib?

*sigh*.  Yes.  Sorry, misread the diagram.

- Peter

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



Re: [OT] RE: moving from win2k sp4 to win2k3 64bit

2006-09-08 Thread joon yoo

Thanks for the heads-up.  That's something I didn't know.

Joon

On 9/8/06, Peter Crowther [EMAIL PROTECTED] wrote:

 From: joon yoo [mailto:[EMAIL PROTECTED]
 We're having memory management problems with java and our tomcat
 webapp on a win2000 sp4 server:

 HP proliant DL360 G3
 Xeon 2.8 (HT on)
 2GB RAM

 I'm unable to expand java mem pool beyond 1024MB on this server.

 Would it make sense to upgrade to win2003 64bit and upgrade the RAM to
 8GB's.

Off-topic for Tomcat, but be aware that if your webapp requires
authentication (*any* kind of authentication) then you need to review
your licensing position.  Windows 2000 didn't require CALs / Internet
licenses for this use; Windows 2003 does.

- Peter

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




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



How does one go about finding a specific application?

2006-09-08 Thread FH
We are trying to setup what will essentially be a data vault (something people
can log into from anywhere and d/l and u/l documents securely via a browser --
additional desired features would be user/group management/permissions, maybe
on disk encryption but that's not as important as the basic functionality). 
Before going about configuring something via apache (which is not on the
machine I have in mind to use) I thought I'd see if such an application has
already been created for tomcat (which is on the machine).  I've tried a
variety of searchs in yahoo and google but I'm just not seeing the information
I'm looking for (either a generic listing of what sort of applications are
available for tomcat or hopefully the data vault application we are looking
for).  Does such a list exist or how do people usually go about finding
specific applications to link into Tomcat?  Has anyone heard of an application
like the one we are looking for?

Thanks,
Forrest



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



Re: How does one go about finding a specific application?

2006-09-08 Thread Garthfield Carter

freshmeat.net
sourceforge.net

FH wrote:


We are trying to setup what will essentially be a data vault (something people
can log into from anywhere and d/l and u/l documents securely via a browser --
additional desired features would be user/group management/permissions, maybe
on disk encryption but that's not as important as the basic functionality). 
Before going about configuring something via apache (which is not on the

machine I have in mind to use) I thought I'd see if such an application has
already been created for tomcat (which is on the machine).  I've tried a
variety of searchs in yahoo and google but I'm just not seeing the information
I'm looking for (either a generic listing of what sort of applications are
available for tomcat or hopefully the data vault application we are looking
for).  Does such a list exist or how do people usually go about finding
specific applications to link into Tomcat?  Has anyone heard of an application
like the one we are looking for?

Thanks,
Forrest



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

 



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



Tomcat admin application HTTP Status 500 problem

2006-09-08 Thread Garthfield Carter

Hello,

I have an issue with the Tomcat admin application. I get HTTP Status 
500 errors whenever I click on any of the User Definition menu items 
such as Users, Groups or Roles. The exact error I get reported on screen 
in the HTTP Status 500 section is:


---
type: Status report
message: Error retrieving attribute users
description: The server encountered an internal error (Error retrieving 
attribute users) that prevented it from fulfilling this request.

---

I'm using the following software version:

Tomcat 5.0.28
Sun JDK 1.5.0_06

My server.xml looks like this:

?xml version='1.0' encoding='utf-8'?
Server port=8121

GlobalNamingResources
  Resource auth=Container name=UserDatabase 
type=org.apache.catalina.UserDatabase/

  ResourceParams name=UserDatabase
  parameter
  namefactory/name
  
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value

  /parameter
  parameter
  namepathname/name
  valueconf/tomcat-users.xml/value
  /parameter
  /ResourceParams
/GlobalNamingResources

Service name=Tomcat-Apache
Connector maxProcessors=75 port=8221 protocol=AJP/1.3 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

Engine defaultHost=localhost name=alberta
Host appBase=/home/tomcat/tomcat/webapps deployOnStartup=false 
name=localhost
  Logger className=org.apache.catalina.logger.FileLogger 
directory=/home/tomcat/logs prefix=tomcat. suffix=.txt 
timestamp=true/
  Context path=/ docBase=../../public_html debug=0 
reloadable=true/

  Context path=/admin debug=0 privileged=true docBase=admin/
/Host
Realm className=org.apache.catalina.realm.UserDatabaseRealm/
/Engine
/Service
/Server

I've searched Google and found one other person with this problem but no 
answers at all.


Any ideas would be greatly appreciated.

Regards,
Garthfield Carter


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



Re: How does one go about finding a specific application?

2006-09-08 Thread David Smith

Asking us is one avenue :-)

Sounds like you are looking for a Document Management System or DMS.  
Magnolia comes to mind.  It's a CMS (Content Management System), but the 
DMS function will be free in version 3.0 to be released soon.  Doing a 
search for dms or document management system should offer other options.


--David

FH wrote:


We are trying to setup what will essentially be a data vault (something people
can log into from anywhere and d/l and u/l documents securely via a browser --
additional desired features would be user/group management/permissions, maybe
on disk encryption but that's not as important as the basic functionality). 
Before going about configuring something via apache (which is not on the

machine I have in mind to use) I thought I'd see if such an application has
already been created for tomcat (which is on the machine).  I've tried a
variety of searchs in yahoo and google but I'm just not seeing the information
I'm looking for (either a generic listing of what sort of applications are
available for tomcat or hopefully the data vault application we are looking
for).  Does such a list exist or how do people usually go about finding
specific applications to link into Tomcat?  Has anyone heard of an application
like the one we are looking for?

Thanks,
Forrest



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

 




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



Re: configuration setting to disable URL sessions?

2006-09-08 Thread Marc Richards
If you're using apache httpd as a front end you can
handle this with a rewrite rule:

RewriteRule (.*);jsessionid.* $1

I do this for a different reason - when my users go to
the top level url they are redirected to a login page
that includes the jsessionid in the new url.  They
then bookmark the page (session id included) and end
up reusing it.  It is possible (though unlikely) to
have two users conflict on a single session id this
way, so I eliminate the possibility entirely.

-marc

--- Chetan Sabnis [EMAIL PROTECTED] wrote:

 Is there a way to disable the Tomcat server (5.5)
 from accepting
 sessions that are sent in the URL using jsessionid? 
 This would be
 useful in preventing certain session fixation
 attacks.  Basically, I
 would want sessions to be accepted only if they are
 sent using a
 cookie.
 
 Specifically, I am concerned about the following
 scenario:
 
 1) Attacker sends a simple HTTP Get to server
 (http://www.example.com/test).  The server returns a
 response with a
 Set-Cookie header for JSESSIONID.  Say that this
 cookie value is 1234.
 2) Attacker sends victim a link of the form
 http://www.example.com/test;jsessionid=1234
 3) Victim clicks the link.  The server accepts that
 its session with
 the victim is 1234 since it is a valid session.
 4) Victim authenticates to the site (presuming that
 jessionid is
 preserved in all interactions with the webapp)
 5) Attacker can impersonate victim since the
 attacker knows the
 session id of the victim.
 
 While the victim did make a mistake by clicking on
 the link, it is
 unlikely that the victim knew the implications of
 clicking on a link
 with a valid jsessionid in the URL.  This could be
 prevented at step 3
 by the server rejecting any sessions that are sent
 via URL.  I have
 not found this option in the docs, and looking
 through the code, there
 does not appear to be a way to prevent this
 behavior.
 
 The cookies attribute in the Context element does
 not change this
 behavior.  Even if cookies is set to true,
 sessions sent in the URL
 are accepted by Tomcat for determining the
 HttpSession of the request.
 
 It would be easy to do deny this in a servlet or in
 a filter by using
 the HttpServletRequest class's
 isRequestedSessionIdFromCookie()
 method.  However, I was hoping for a way to do this
 for all webapps
 and all servlets via configuration.  Thoughts?
 
 Thanks in advance for any help.
 

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


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

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



Re: Tomcat admin application HTTP Status 500 problem

2006-09-08 Thread David Delbecq
Please provide exception messages, they should be in catalina.out
Garthfield Carter a écrit :
 Hello,

 I have an issue with the Tomcat admin application. I get HTTP
 Status 500 errors whenever I click on any of the User Definition
 menu items such as Users, Groups or Roles. The exact error I get
 reported on screen in the HTTP Status 500 section is:

 ---

 type: Status report
 message: Error retrieving attribute users
 description: The server encountered an internal error (Error
 retrieving attribute users) that prevented it from fulfilling this
 request.
 ---


 I'm using the following software version:

 Tomcat 5.0.28
 Sun JDK 1.5.0_06

 My server.xml looks like this:

 ?xml version='1.0' encoding='utf-8'?
 Server port=8121

 GlobalNamingResources
   Resource auth=Container name=UserDatabase
 type=org.apache.catalina.UserDatabase/
   ResourceParams name=UserDatabase
   parameter
   namefactory/name
  
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
   namepathname/name
   valueconf/tomcat-users.xml/value
   /parameter
   /ResourceParams
 /GlobalNamingResources

 Service name=Tomcat-Apache
 Connector maxProcessors=75 port=8221 protocol=AJP/1.3
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 Engine defaultHost=localhost name=alberta
 Host appBase=/home/tomcat/tomcat/webapps deployOnStartup=false
 name=localhost
   Logger className=org.apache.catalina.logger.FileLogger
 directory=/home/tomcat/logs prefix=tomcat. suffix=.txt
 timestamp=true/
   Context path=/ docBase=../../public_html debug=0
 reloadable=true/
   Context path=/admin debug=0 privileged=true
 docBase=admin/
 /Host
 Realm className=org.apache.catalina.realm.UserDatabaseRealm/
 /Engine
 /Service
 /Server

 I've searched Google and found one other person with this problem but
 no answers at all.

 Any ideas would be greatly appreciated.

 Regards,
 Garthfield Carter


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



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



RE: decompiling classes

2006-09-08 Thread Propes, Barry L
Thanks, Mark. I guess I didn't realize it was so readily available...my 
apologies.

Again, thank you.

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 07, 2006 6:36 PM
To: Tomcat Users List
Subject: Re: decompiling classes


Propes, Barry L wrote:
 what's the command again for decompiling Tomcat's classes? Or was there 
 special software needed to do so?
 
Why not just browse the source?
http://tomcat.apache.org/svn.html

Mark

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


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



pools of connections Tomcat 5.5 and Oracle 8i - Connection interrupted

2006-09-08 Thread LEBLANC, Damiens
Hi,

 

 

Issue



I have installed a pool of connections in Tomcat 5.5 so that

the intranet of my society can connect to the database Oracle 8i.  

When Tomcat is starting, the pool is correctly load ant the connections are

used. With more than 100 users, there are no connections to the database : 

the JAVA servlets log each time Connection interrupted and Connection is 
closed.

The first error seams to come from a long Oracle request (type select * 
where...)

on a table including a CLOB and having 15 000 records.

 

How can I correct this issue ? 

 

Volumetry

--

5000 collaborators work for the society and can connect to the intranet.

We have on average 3000 connections by day.

 

 

System Architecture : 



- 2 servers SUN/Solaris 8 with 8 Giga RAM and a DNS round robin.

- On each server : Apache 1.3.33, Tomcat 5.5, mod-jk 1.2.10, 

  Servlets JAVA+JSP, JDBC, JDK 1.4.2

- Each JVM have 3 Giga configured with

 -Xms3000m -Xmx3000m -XX:NewRatio=2 -XX:+UseParallelGC

- 1 server SUN for the database Oracle 8i. 

  

 

server.xml:

---

 

Server port=9005 shutdown=SHUTDOWN

 

Listener className=org.apache.catalina.mbeans.ServerLifecycleListener

debug=0/

Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener

debug=0/

 

 

  GlobalNamingResources

!-- Used by Manager webapp --

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 /

  /GlobalNamingResources

 

 

   !-- Service name=Tomcat-Standalone--

Service name=Catalina

Connector port=9080

className=org.apache.coyote.tomcat5.CoyoteConnector

minProcessors=5 maxProcessors=75

enableLookups=true redirectPort=8443

acceptCount=100 debug=0 connectionTimeout=2

useURIValidationHack=false disableUploadTimeout=true /

 

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --

Connector className=org.apache.coyote.tomcat5.CoyoteConnector

port=8002 minProcessors=5 maxProcessors=75

enableLookups=true redirectPort=8443

acceptCount=10 debug=0 connectionTimeout=0

useURIValidationHack=false protocol=AJP/1.3 
address=10.92.41.189 tomcatAuthentication=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler

/

 

Engine name=Catalina defaultHost=localhost debug=0

 

!-- This Realm uses the UserDatabase configured in the global JNDI

resources under the key UserDatabase.  Any edits

that are performed against this UserDatabase are immediately

available for use by the Realm.  --

Realm className=org.apache.catalina.realm.UserDatabaseRealm

debug=0 resourceName=UserDatabase/

 

Host name=localhost debug=0 
appBase=/appli/tomcat/tomcat1/tomcat_dist/webapps unpackWARs=true 
autoDeploy=false

 

Valve className=org.apache.catalina.valves.AccessLogValve

directory=/appli/tomcat/log  
prefix=intragroupe_accesslog. suffix=.txt

pattern=common/

 

 

Context path= docBase=ROOT debug=0/

Context path=/intragroupe docBase=intragroupe debug=1

reloadable=false crossContext=true

   allowLinking=true 

 

Resource name=jdbc/dsBdIntranet auth=Container

 type=javax.sql.DataSource

 maxActive=175

 maxIdle=88

 maxWait=15000

 removeAbandonedTimeout=180

 removeAbandoned=true

 logAbandoned=true

 username=bdintranet

 password=bdintranet

 factory=org.apache.commons.dbcp.BasicDataSourceFactory

 driverClassName=oracle.jdbc.driver.OracleDriver

 url=jdbc:oracle:thin:@nr0u0097:1532:ENFP01P0

 /

 

 Resource name=jdbc/dsBdTsol auth=Container

 type=javax.sql.DataSource

 maxActive=105

 maxIdle=52

 maxWait=15000

 removeAbandonedTimeout=180

 removeAbandoned=true

 logAbandoned=true

 username=bdtsol

 password=bdtsol

 factory=org.apache.commons.dbcp.BasicDataSourceFactory

 driverClassName=oracle.jdbc.driver.OracleDriver

 url=jdbc:oracle:thin:@nr0u0097:1532:ENFP01P0

 /

 

 

/Context

 

/Host

 

/Engine

 

/Service

 

 

/Server

 

I can give you 

Re: configuration setting to disable URL sessions?

2006-09-08 Thread Chetan Sabnis

Thanks.  While I am using Apache httpd in most cases, the webapp can
be run in IIS if someone chooses to deploy it that way (connected via
mod_jk).  It certainly seems like this is something that should be
controllable from the Tomcat side of things.  Any other suggestions?

Thanks,
Chetan

On 9/8/06, Marc Richards [EMAIL PROTECTED] wrote:

If you're using apache httpd as a front end you can
handle this with a rewrite rule:

RewriteRule (.*);jsessionid.* $1

I do this for a different reason - when my users go to
the top level url they are redirected to a login page
that includes the jsessionid in the new url.  They
then bookmark the page (session id included) and end
up reusing it.  It is possible (though unlikely) to
have two users conflict on a single session id this
way, so I eliminate the possibility entirely.

-marc

--- Chetan Sabnis [EMAIL PROTECTED] wrote:

 Is there a way to disable the Tomcat server (5.5)
 from accepting
 sessions that are sent in the URL using jsessionid?
 This would be
 useful in preventing certain session fixation
 attacks.  Basically, I
 would want sessions to be accepted only if they are
 sent using a
 cookie.

 Specifically, I am concerned about the following
 scenario:

 1) Attacker sends a simple HTTP Get to server
 (http://www.example.com/test).  The server returns a
 response with a
 Set-Cookie header for JSESSIONID.  Say that this
 cookie value is 1234.
 2) Attacker sends victim a link of the form
 http://www.example.com/test;jsessionid=1234
 3) Victim clicks the link.  The server accepts that
 its session with
 the victim is 1234 since it is a valid session.
 4) Victim authenticates to the site (presuming that
 jessionid is
 preserved in all interactions with the webapp)
 5) Attacker can impersonate victim since the
 attacker knows the
 session id of the victim.

 While the victim did make a mistake by clicking on
 the link, it is
 unlikely that the victim knew the implications of
 clicking on a link
 with a valid jsessionid in the URL.  This could be
 prevented at step 3
 by the server rejecting any sessions that are sent
 via URL.  I have
 not found this option in the docs, and looking
 through the code, there
 does not appear to be a way to prevent this
 behavior.

 The cookies attribute in the Context element does
 not change this
 behavior.  Even if cookies is set to true,
 sessions sent in the URL
 are accepted by Tomcat for determining the
 HttpSession of the request.

 It would be easy to do deny this in a servlet or in
 a filter by using
 the HttpServletRequest class's
 isRequestedSessionIdFromCookie()
 method.  However, I was hoping for a way to do this
 for all webapps
 and all servlets via configuration.  Thoughts?

 Thanks in advance for any help.


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




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

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




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



Re: How to monitor web services?

2006-09-08 Thread Martin Gainty
why not display the results (queue sizes, response time) with time deltas in 
html./pdf?
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Michele Mazzucco [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 08, 2006 5:05 AM
Subject: Re: How to monitor web services?


 Hi leon,
 
 my stateful web service is just an application router, that is, it
 forwards client requests to computational nodes (which are hidden to the
 clients), according to specified policies. The router maintains queues
 of requests (one queue for each provided service) and collects
 statistics (i.e. throughput and service time) in order to be able to
 react to changes (that is, to reconfigure the nodes allocation). I want
 to monitor those values: queue sizes, response time, etc.
 
 Best regards,
 Michele
 
 Leon Rosenberg wrote:
 I thought to wait for better answers than mine, but noone seems to have
 one.
 Can you say what exactly you want to monitor?
 
 regards
 leon
 
 On 9/7/06, Michele Mazzucco [EMAIL PROTECTED] wrote:
 Hi all,

 I'm using Axis2 embedded into Tomcat. I've got a stateful web service
 which needs to be monitored.
 I think the best way to monitor my application is via JMX, but I've
 found out that axis2 is only a servlet. Is this a problem?, How could I
 accomplish my goal?


 Any help would be appreciated,
 Michele

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


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


Re: Tomcat admin application HTTP Status 500 problem

2006-09-08 Thread Garthfield Carter
When I click on User Definition - Users I get the following output 
in catalina.out:


2006-09-08 16:30:02 StandardContext[/admin]action: Error retrieving 
attribute users
javax.management.InstanceNotFoundException: 
Users:type=UserDatabase,database=UserDatabase
   at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
   at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:627)
   at 
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:659)
   at 
org.apache.webapp.admin.users.UserUtils.getUsersForm(UserUtils.java:112)
   at 
org.apache.webapp.admin.users.ListUsersAction.perform(ListUsersAction.java:113)

   at org.apache.struts.action.Action.execute(Action.java:420)
   at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
   at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
   at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)

   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
   at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

   at java.lang.Thread.run(Thread.java:595)

And the right frame of the Admin application has an error 500 which I'll 
paste below:


---
HTTP Status 500 - Error retrieving attribute users
type Status report
message Error retrieving attribute users
description The server encountered an internal error (Error retrieving 
attribute users) that prevented it from fulfilling this request.

Apache Tomcat/5.0.28
---

Garthfield

David Delbecq wrote:


Please provide exception messages, they should be in catalina.out
Garthfield Carter a écrit :
 


Hello,

I have an issue with the Tomcat admin application. I get HTTP
Status 500 errors whenever I click on any of the User Definition
menu items such as Users, Groups or Roles. The exact error I get
reported on screen in the HTTP Status 500 section is:


tomcat 5.5.17 catalina.bat - dropping support for JPDA_OPTS environment variable?

2006-09-08 Thread Kurt Roy
Hello,

We have upgraded from tomcat 4.1.18 to 5.5.17, and have found that our
system start up process on Windows can no longer set jpda debugger
options on the tomcat java command line.

This occurs because the 5.5.17 catalina.bat file no longer supports the
environment variable $JPDA_OPTS, which our start up process used to use
to place jpda information. What is interesting is that catalina.sh STILL
supports JPDA_OPTS. So we have this problem on windows only. 

Is this an intentional change?

We have fixed the problem by instead specifying JPDA_TRANSPORT and
JPDA_ADDRESS. However, this fix is only partial - with the catalina.bat
script unaltered, it is not possible to set suspend=y, as it is
hard-coded to suspend=n on the %_EXECJAVA% command lines

We updated the script and added a JPDA_SUSPEND environment variable, but
it would be nice to not have to change the script, as this will cause
upgrade issues.

We would like to back out the JPDA_SUSPEND change if there is a newer
fix.

Thanks for your time,

Kurt Roy
PROS Revenue Management
3100 Main Street, Suite 900
Houston, TX 77002
Phone: 713-335-8007
Email: [EMAIL PROTECTED]




The information contained in this email may be confidential and/or legally 
privileged. It has been sent for the sole use of the intended recipient(s). If 
the reader of this message is not an intended recipient, you are hereby 
notified that any unauthorized review, use, disclosure, dissemination, 
distribution, or copying of this communication, or any of its contents, is 
strictly prohibited. If you have received this communication in error, please 
contact the sender by reply email and destroy all copies of the original 
message. Thank you




[Fwd: Re: [Fwd: Re: Problems with Tomcat 5.0.28 and Netbeans 5.0]]

2006-09-08 Thread Carlos Puero C.



Hi Martin, thanks 4 ur help, I don't know what I've changed but, I
created a new project, all the pages new, I put the code that u gave
me and IT WORKED. ;-)

I was very tired but al least it
works... thank y very much

Saludos 
Lsi. Carlos Puero
C. 


 Mensaje original
 
Asunto: Re: [Fwd: Re: Problems with
Tomcat 5.0.28 and Netbeans 5.0] 
De: Martin Grogan
[EMAIL PROTECTED] 
Fecha: Jue, 7 de Septiembre de
2006, 2:19 pm 
Para: Tomcat Users List
users@tomcat.apache.org 
--


Carlos, 
I've pasted below some of the settings I use
with my connection pooling 
(using Tomcat 5.5.9) (please note there
is a difference between this and 
some earlier versions of Tomcat -
you will have to refer to the Tomcat 
5.0.28 manual for the
differences in context.xml when setting up 
connection resources).
Also, you are using JSP's which I don't have 
experience with. I've
pasted some servlet code instead. 
I hope this is useful. 
Martin 

-- 
// fragment from web.xml 
resource-ref 
descriptionDB
Connection/description 
res-ref-namejdbc/dbname/res-ref-name 
res-typejavax.sql.DataSource/res-type 
res-authContainer/res-auth 
/resource-ref



// context.xml 
?xml version=1.0
encoding=UTF-8? 
Context
path=/contextname 
Logger
className=org.apache.catalina.logger.FileLogger 
prefix=contextname. suffix=.log
timestamp=true/ 
Resource
auth=Container
driverClassName=com.mysql.jdbc.Driver 
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory

maxActive=30 maxIdle=10
maxWait=1 name=jdbc/dbname 
password=** removeAbandoned=true
removeAbandonedTimeout=60 
type=javax.sql.DataSource
url=jdbc:mysql://localhost:3306/database 
username=user/ 
/Context 


// sample servlet 
public class myservlet extends HttpServlet { 
private static DataSource ds=null; 
public void init(ServletConfig
config) throws ServletException { 
try 
{ 
Context ctx =
new InitialContext(); 
this.ds =
(DataSource)ctx.lookup(java:comp/env/jdbc/dbname); 
} 
catch (Exception e) { e.printStackTrace(); } 
super.init(config);

} 

public void destroy() { 
ds=null; 
} 

protected void processRequest(HttpServletRequest request, 
HttpServletResponse response) 
throws ServletException, IOException
{ 
response.setContentType(text/html;charset=UTF-8); 
PrintWriter out = response.getWriter(); 
Connection
connection=null; 
try 
{ 
connection=ds.getConnection();

Statement statement = connection.createStatement(); 
// execute
queries here... 
statement.close(); 
connection.close(); 
}

catch(Exception e) { out.println(e.getMessage()); } 
finally {
try{connection.close(); } catch(Exception e) {} } 
out.close(); 
} 
} 



Carlos Puero C. wrote: 
 
 Hi Martin, thanks for anwering my message. 
 

This is a part 
 of my web.xml, there's nothing interesting in
that 
 
 wbe-app 

welcome-file-list 

welcome-fileindex.jsp/welcome-file 

/welcome-file-list 
 resource-ref 

descriptionDataSource de 
 MySQL/description 
 
 res-ref-namejdbc/Mytest/res-ref-name 
 res-authContainer/res-auth 
 

res-sharing-scopeShareable/res-sharing-scope 

/web-app 
 
 This is a part of my context.xml, I
guess 
 that here's the problem... 
 
 ?xml
version=1.0 
 encoding=UTF-8? 
 Context 
 path=/prueba4 

Logger 

clasName=org.apache.catalina.logger.FileLogger 

prefix=prueba4. suffix=.log 

timestamp=true/ 
 Resource 

name=jdbc/Mytest type=javax.sql.DataSource/

 ResourceParams name=jdbc/Mytest 

parameter 
 
 nameurl/name 
 

valuejdbc:mysql://localhost:3306/test?autoReconnect=true/valure

 /parameter 
 
 parameter 
 
 namedriverClassName/name 
 
 valuecom.mysql.jdbc.Driver/value 
 
 /parameter 
 parameter 

nameusername/name 

valuemyuser/value 
 /parameter 


 parameter 
 

namepassword/name 
 

valuemypass/value 
 
 /parameter

 parameter 
 

namevalidationQuery/name 
 valueselect

 now()/value 
 /ResourceParams 
 /Context 
 
 This is part of my JSP
(index.jsp) 
 
 [EMAIL PROTECTED] prefix=sql
uri=http://java.sun.com/jstl/sql% 
 [EMAIL PROTECTED]

 prefix=c
uri=http://java.sun.com/jstl/core; 
 % 

html 
 head 
 titleJSP
Page/title 
 
 /head 
 body

 h1JSP 
 Page/h1 

sql:query var=rs 

dataSource=jdbc/Mytest 
 
 select
id_padre, id_hijo from my_hijo 
 
 /sql:query

 table 
 border=1 

!-- 
 columm headers -- 
 tr 

c:forEach 
 var=columnName
items=${rs.columnNames} 
 

thc:out value=${columnName}//th 
 /c:forEach 
 /tr 
 !-- columm
data -- 
 c:forEach 
 var=row
itmes=${rs.rowsByIndex} 
 tr 


 c:forEach var=column
items=${row} 
 
 tdc:out
value=${column}//td 
 

/c:forEach 
 /tr 
 /c:forEach

 /table 
 /body 

/html 
 
 I don't really know which is the
problem, I've 
 tried with some solutions but they seem not
work.. 
 
 Any magic 
 solution? 


 Saludos 
 Lsi. Carlos Puero C. 

Guayaquil-Ecuador 
 
 
Mensaje 
 original  

Asunto: Re: Problems with 
 Tomcat 5.0.28 and Netbeans 5.0 
 
De: Martin 

RE: decompiling classes

2006-09-08 Thread Propes, Barry L
maybe I didn't look in the right places, but I didn't exactly find what I was 
looking for.

I'm getting an error of the following, connecting to Oracle.

java.sql.SQLException: [Oracle][ODBC]Syntax error or access violation.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
at sun.jdbc.odbc.JdbcOdbc.SQLPrepare(JdbcOdbc.java:4229)
at sun.jdbc.odbc.JdbcOdbcConnection.prepareCall(JdbcOdbcConnection.java:
550)
at sun.jdbc.odbc.JdbcOdbcConnection.prepareCall(JdbcOdbcConnection.java:
519)
at chngctrl.ChangeControlUserAcctServletSPCall.doGet(ChangeControlUserAc
ctServletSPCall.java:86)
at chngctrl.ChangeControlUserAcctServletSPCall.doPost(ChangeControlUserA
cctServletSPCall.java:149)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Seemed like it was on the JdbcOdbcConnection class where the problem was, but 
how could I verify that?

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 07, 2006 6:36 PM
To: Tomcat Users List
Subject: Re: decompiling classes


Propes, Barry L wrote:
 what's the command again for decompiling Tomcat's classes? Or was there 
 special software needed to do so?
 
Why not just browse the source?
http://tomcat.apache.org/svn.html

Mark

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


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



Re: decompiling classes

2006-09-08 Thread Filip Hanik - Dev Lists
if you are trying to connect to Oracle, why do you use the JDBC-ODBC 
bridge, its filled with problems.
Download Oracles JDBC driver, they have a type 4 driver (pure Java), and 
use that


Filip


Propes, Barry L wrote:

maybe I didn't look in the right places, but I didn't exactly find what I was 
looking for.

I'm getting an error of the following, connecting to Oracle.

java.sql.SQLException: [Oracle][ODBC]Syntax error or access violation.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
at sun.jdbc.odbc.JdbcOdbc.SQLPrepare(JdbcOdbc.java:4229)
at sun.jdbc.odbc.JdbcOdbcConnection.prepareCall(JdbcOdbcConnection.java:
550)
at sun.jdbc.odbc.JdbcOdbcConnection.prepareCall(JdbcOdbcConnection.java:
519)
at chngctrl.ChangeControlUserAcctServletSPCall.doGet(ChangeControlUserAc
ctServletSPCall.java:86)
at chngctrl.ChangeControlUserAcctServletSPCall.doPost(ChangeControlUserA
cctServletSPCall.java:149)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Seemed like it was on the JdbcOdbcConnection class where the problem was, but 
how could I verify that?

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 07, 2006 6:36 PM
To: Tomcat Users List
Subject: Re: decompiling classes


Propes, Barry L wrote:
  

what's the command again for decompiling Tomcat's classes? Or was there special 
software needed to do so?



Why not just browse the source?
http://tomcat.apache.org/svn.html

Mark

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


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



  



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



can not set up HelloWorldExample servlet to be called from a different directory

2006-09-08 Thread Alla Winter
Hello,

I think I am trying to do a very simple thing - to deploy my application to
TOMCAT5.5.17.  I am using j2sdk1.4.2_12, and I did install the computability
pack.  Windows 2000

I was able to start tomcat and run HelloWorldExample servlet, but I am not
able to access my application in the directory cobra_source 

 

To avoid any questions about my software, all I did is created another
directory under webbapps , cobra_source, and put in there
HelloWorldExample.class.  I also copied the web.xml file

 

Then I tried : http://localhost:8080/cobra_source/servlet/HelloWorldExample

 

And here it is the answer:
HTTP Status 404 - /cobra_source/servlet/HelloWorldExample

 

What I am doing wrong?

 

Thanks for your help in advance

 

Here are my setups : 


CLASSPATH ( environment variable)


C:\Documents and Settings\Allaecho %CLASSPATH%

c:\apache-tomcat-5.5.17\webapps\cobra_source\WEB-INF\classes

 

 

directory structure

Directory of C:\apache-tomcat-5.5.17\webapps\cobra_source\WEB-IN

 

9/07/2006  03:41p  DIR  .

9/07/2006  03:41p  DIR  ..

9/07/2006  03:36p  DIR  classes

9/07/2006  03:39p   3,356 cobra_web.xml

8/29/2006  04:53p  DIR  lib

9/07/2006  04:37p   1,198 web.xml

  2 File(s)  4,554 bytes

  4 Dir(s)  17,212,928,000 bytes free

 

 

Directory of C:\apache-tomcat-5.5.17\webapps\cobra_source\WEB-INF\classes

 

09/07/2006  03:36p  DIR  .

09/07/2006  03:36p  DIR  ..

09/06/2006  03:36p  DIR  com

06/28/2006  11:09a   3,609 Configuration.properties

04/14/2006  02:09p   2,056 HelloWorldExample.class

05/17/2004  02:00p 538 LogManager.properties

   3 File(s)  6,203 bytes

   3 Dir(s)  17,212,907,520 bytes free

 

web.xml file

?xml version=1.0 encoding=ISO-8859-1?

!--

  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.

--

 

!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-nameServlet 2.4 Examples/display-name

description

  Servlet 2.4 Examples.

/description

 



 



 

!-- Define servlets that are included in the example application --

servlet

servlet-nameHelloWorldExample/servlet-name

servlet-classHelloWorldExample/servlet-class

/servlet





/web-app

 

 



RE: decompiling classes

2006-09-08 Thread Propes, Barry L
hadn't really experienced any problems up to now, but then again, I wasn't 
really using any SPs either.

I'll try to switch to that and recompile and see if it works.
Thanks.

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Friday, September 08, 2006 11:32 AM
To: Tomcat Users List
Subject: Re: decompiling classes


if you are trying to connect to Oracle, why do you use the JDBC-ODBC 
bridge, its filled with problems.
Download Oracles JDBC driver, they have a type 4 driver (pure Java), and 
use that

Filip


Propes, Barry L wrote:
 maybe I didn't look in the right places, but I didn't exactly find what I was 
 looking for.

 I'm getting an error of the following, connecting to Oracle.

 java.sql.SQLException: [Oracle][ODBC]Syntax error or access violation.
 at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
 at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
 at sun.jdbc.odbc.JdbcOdbc.SQLPrepare(JdbcOdbc.java:4229)
 at 
 sun.jdbc.odbc.JdbcOdbcConnection.prepareCall(JdbcOdbcConnection.java:
 550)
 at 
 sun.jdbc.odbc.JdbcOdbcConnection.prepareCall(JdbcOdbcConnection.java:
 519)
 at 
 chngctrl.ChangeControlUserAcctServletSPCall.doGet(ChangeControlUserAc
 ctServletSPCall.java:86)
 at 
 chngctrl.ChangeControlUserAcctServletSPCall.doPost(ChangeControlUserA
 cctServletSPCall.java:149)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

 Seemed like it was on the JdbcOdbcConnection class where the problem was, but 
 how could I verify that?

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 07, 2006 6:36 PM
 To: Tomcat Users List
 Subject: Re: decompiling classes


 Propes, Barry L wrote:
   
 what's the command again for decompiling Tomcat's classes? Or was there 
 special software needed to do so?

 
 Why not just browse the source?
 http://tomcat.apache.org/svn.html

 Mark

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


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



   


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


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



Tomcat: form authentication - creating a login bean

2006-09-08 Thread Jon Yeargers
I have a site that uses Tomcat's form based authentication. It reads 
from a MySQL db using a 'DataSourceRealm' defined in the context.xml 
file. All well and good.


What Im hoping to achieve is creation of a session bean with info about 
the logged in account when a valid login is sent. Is there a value in 
context.xml, web.xml or other that I can enter / trap / override?


Im using TC5.

Jon

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



Re: can not set up HelloWorldExample servlet to be called from a different directory

2006-09-08 Thread David Smith

You need a servlet mapping in your web.xml file:

servlet-mapping
 servlet-nameHelloWorldExample/servlet-name
 url-pattern/servlet/HelloWorldExample/url-pattern
/servlet-mapping

Put it after /servlet in your web.xml.  Also, the CLASSPATH 
environment variable is ignored in tomcat.  Don't try to set it.


--David

Alla Winter wrote:


Hello,

I think I am trying to do a very simple thing - to deploy my application to
TOMCAT5.5.17.  I am using j2sdk1.4.2_12, and I did install the computability
pack.  Windows 2000

I was able to start tomcat and run HelloWorldExample servlet, but I am not
able to access my application in the directory cobra_source 




To avoid any questions about my software, all I did is created another
directory under webbapps , cobra_source, and put in there
HelloWorldExample.class.  I also copied the web.xml file



Then I tried : http://localhost:8080/cobra_source/servlet/HelloWorldExample



And here it is the answer:
HTTP Status 404 - /cobra_source/servlet/HelloWorldExample



What I am doing wrong?



Thanks for your help in advance



Here are my setups : 



CLASSPATH ( environment variable)


C:\Documents and Settings\Allaecho %CLASSPATH%

c:\apache-tomcat-5.5.17\webapps\cobra_source\WEB-INF\classes





directory structure

Directory of C:\apache-tomcat-5.5.17\webapps\cobra_source\WEB-IN



9/07/2006  03:41p  DIR  .

9/07/2006  03:41p  DIR  ..

9/07/2006  03:36p  DIR  classes

9/07/2006  03:39p   3,356 cobra_web.xml

8/29/2006  04:53p  DIR  lib

9/07/2006  04:37p   1,198 web.xml

 2 File(s)  4,554 bytes

 4 Dir(s)  17,212,928,000 bytes free





Directory of C:\apache-tomcat-5.5.17\webapps\cobra_source\WEB-INF\classes



09/07/2006  03:36p  DIR  .

09/07/2006  03:36p  DIR  ..

09/06/2006  03:36p  DIR  com

06/28/2006  11:09a   3,609 Configuration.properties

04/14/2006  02:09p   2,056 HelloWorldExample.class

05/17/2004  02:00p 538 LogManager.properties

  3 File(s)  6,203 bytes

  3 Dir(s)  17,212,907,520 bytes free



web.xml file

?xml version=1.0 encoding=ISO-8859-1?

!--

 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.

--



!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-nameServlet 2.4 Examples/display-name

   description

 Servlet 2.4 Examples.

   /description



   




   




   !-- Define servlets that are included in the example application --

   servlet

   servlet-nameHelloWorldExample/servlet-name

   servlet-classHelloWorldExample/servlet-class

   /servlet

   

   


/web-app






 




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



RE: can not set up HelloWorldExample servlet to be called from a different directory

2006-09-08 Thread Alla Winter
Thanks for  your help

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 08, 2006 12:14 PM
To: Tomcat Users List
Subject: Re: can not set up HelloWorldExample servlet to be called from a
different directory

You need a servlet mapping in your web.xml file:

servlet-mapping
  servlet-nameHelloWorldExample/servlet-name
  url-pattern/servlet/HelloWorldExample/url-pattern
/servlet-mapping

Put it after /servlet in your web.xml.  Also, the CLASSPATH 
environment variable is ignored in tomcat.  Don't try to set it.

--David

Alla Winter wrote:

Hello,

I think I am trying to do a very simple thing - to deploy my application to
TOMCAT5.5.17.  I am using j2sdk1.4.2_12, and I did install the
computability
pack.  Windows 2000

I was able to start tomcat and run HelloWorldExample servlet, but I am not
able to access my application in the directory cobra_source 

 

To avoid any questions about my software, all I did is created another
directory under webbapps , cobra_source, and put in there
HelloWorldExample.class.  I also copied the web.xml file

 

Then I tried : http://localhost:8080/cobra_source/servlet/HelloWorldExample

 

And here it is the answer:
HTTP Status 404 - /cobra_source/servlet/HelloWorldExample

 

What I am doing wrong?

 

Thanks for your help in advance

 

Here are my setups : 


CLASSPATH ( environment variable)


C:\Documents and Settings\Allaecho %CLASSPATH%

c:\apache-tomcat-5.5.17\webapps\cobra_source\WEB-INF\classes

 

 

directory structure

Directory of C:\apache-tomcat-5.5.17\webapps\cobra_source\WEB-IN

 

9/07/2006  03:41p  DIR  .

9/07/2006  03:41p  DIR  ..

9/07/2006  03:36p  DIR  classes

9/07/2006  03:39p   3,356 cobra_web.xml

8/29/2006  04:53p  DIR  lib

9/07/2006  04:37p   1,198 web.xml

  2 File(s)  4,554 bytes

  4 Dir(s)  17,212,928,000 bytes free

 

 

Directory of C:\apache-tomcat-5.5.17\webapps\cobra_source\WEB-INF\classes

 

09/07/2006  03:36p  DIR  .

09/07/2006  03:36p  DIR  ..

09/06/2006  03:36p  DIR  com

06/28/2006  11:09a   3,609 Configuration.properties

04/14/2006  02:09p   2,056 HelloWorldExample.class

05/17/2004  02:00p 538 LogManager.properties

   3 File(s)  6,203 bytes

   3 Dir(s)  17,212,907,520 bytes free

 

web.xml file

?xml version=1.0 encoding=ISO-8859-1?

!--

  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.

--

 

!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-nameServlet 2.4 Examples/display-name

description

  Servlet 2.4 Examples.

/description

 



 



 

!-- Define servlets that are included in the example application --

servlet

servlet-nameHelloWorldExample/servlet-name

servlet-classHelloWorldExample/servlet-class

/servlet





/web-app

 

 


  



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




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



SHA encrypting passwords for realm

2006-09-08 Thread Jon Yeargers
Im running my app using a 'DataSourceRealm' (MySQL) wherein I have 
encrypted the stored passwords using SHA. I added the 'digest=SHA' to 
the realm definition.


The logins were working when I didn't encrypt the passwords. Now that 
they are encrypted I can't login anymore.


Does the MySQL 'SHA(pw)' command create passwords that are usable by 
Tomcat ?


I have them stored in a 'blob' column. They were created as follows:

update users set user_pass=SHA(pw) where user_name='test0';



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



Tomcat Server Administration - Change Path?

2006-09-08 Thread Pontius Malmberg


Hi everyone:
I've been working on this issue for over a week, and can't seem to figure
out how or if it's possible at all.
I would like to change the default path /admin/ for Tomcat Server
Administration for Tomcat 5.5 to be /tomcat-admin/ instead.
Anyone have idea how to do this?
A few web sites on my server are using

http://www.domain.com/admin/ as their admin backroom, however, after
installing Tomcat on the server, now it goes to Tomcat Server
Administration instead. Even though the web sites have an admin folder
located inside their web directory. I did some research and it seems that
there is file somewhere on the server that is associated with Tomcat
which tells Tomcat that by default if someone types in

http://www.domain.com/admin/index.jsp it goes to Tomcat Server
Administration login page.
Now, my question is does anyone know if it's possible to change that
default path? If so, which file? 
I have tried to make changes to:
workers2.properties.minimal
uriworkermap.properties
tomcat-users.xml
logging.properties
Then rebooted Tomcat, but no luck!!!
I hope this is possible? If so, I'd like it to be /tomcat-admin/
Thanks in advance.
Sincerely,
Ponch

_
WIDEWORKS, INC. 
Leadership in Quality Internet
Solutions!
Pontius T.T. Malmberg
WIDEWORKS, INC.
1380 Garnet Avenue, Suite E-276
San Diego, CA 92109 US
Office: 858-273-3244
Fax: 860-371-3244
Mobile: 858-204-6456

http://www.wideworks.net/

mailto:[EMAIL PROTECTED]




No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006

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

RE: Tomcat Server Administration - Change Path?

2006-09-08 Thread Caldarale, Charles R
 From: Pontius Malmberg [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat Server Administration - Change Path?
 
 I would like to change the default path /admin/ for Tomcat 
 Server Administration for Tomcat 5.5 to be /tomcat-admin/ instead.

Change the name of the admin.xml file to tomcat-admin.xml in the
conf/Catalina/localhost directory.

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



Re: Tomcat Server Administration - Change Path?

2006-09-08 Thread Garthfield Carter
Obvisouly my comments below may be of no use to you whatsoever if you 
don't have or have no intention of having an Apache front-end.


Pontius Malmberg wrote:


Hi everyone:
I've been working on this issue for over a week, and can't seem to 
figure out how or if it's possible at all.
I would like to change the default path /admin/ for Tomcat Server 
Administration for Tomcat 5.5 to be /tomcat-admin/ instead.

Anyone have idea how to do this?


If it's really taking that much time to find a solution and you have an 
Apache front-end I would use mod_rewrite to achieve this it would be 
much quicker.


A few web sites on my server are using http://www.domain.com/admin/ as 
their admin backroom, however, after installing Tomcat on the server, 
now it goes to Tomcat Server Administration instead. Even though the 
web sites have an admin folder located inside their web directory. I 
did some research and it seems that there is file somewhere on the 
server that is associated with Tomcat which tells Tomcat that by 
default if someone types in http://www.domain.com/admin/index.jsp it 
goes to Tomcat Server Administration login page.


If you had an Apache front-end you could add a JkUnmount statement for 
that virtual host to stop /admin* requests being forwarded to Tomcat.


Now, my question is does anyone know if it's possible to change that 
default path? If so, which file?

I have tried to make changes to:
workers2.properties.minimal
uriworkermap.properties
tomcat-users.xml
logging.properties
Then rebooted Tomcat, but no luck!!!
I hope this is possible? If so, I'd like it to be /tomcat-admin/
Thanks in advance.
Sincerely,
Ponch

*_
WIDEWORKS, INC.*
/Leadership in Quality Internet Solutions!

/Pontius T.T. Malmberg
WIDEWORKS, INC.
1380 Garnet Avenue, Suite E-276
San Diego, CA 92109 US
Office:   858-273-3244
Fax:   860-371-3244
Mobile: 858-204-6456
http://www.wideworks.net/
mailto:[EMAIL PROTECTED]





No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006

 




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



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



Tomcat IIS isapi_redirect.dll And Virtual Hosting

2006-09-08 Thread Nick McKenna
Hi All

 

I am having a really hard time getting Tomcat to play nice with multiple
hosts. I am running:

 

IIS 6.0

Tomcat 5.0.x

Jakarta Isapi Redirector 1.2.14.0

 

I have two Tomcat services installed in separate folder structures using
one instance of Tomcat (i.e. I am using CATALINA_BASE to point to
instances of Tomcat). Both are using different ports. I have two IIS web
sites defined (both pointing to the same Jakarta Isapi Redirector
folder).

 

The problem I have is that I am try to get two web apps working
(www.johnsonskarate.com http://www.johnsonskarate.com/  and
www.mckennademo.com http://www.mckennademo.com/ ) However, regardless
of the URL used, I always see www.johnsonskarate.com
http://www.johnsonskarate.com/  (try it yourself and see).

 

Has anyone got any ideas on what I might be doing wrong?

 

The config files are:

 

WORKERS.PROPERTIES

worker.list=wlb,wlb2,jkstatus

worker.ajp13w2.type=ajp13

worker.ajp13w2.host=www.mckennademo.com

worker.ajp13w2.port=9009

 

worker.ajp13w.type=ajp13

worker.ajp13w.host=www.johnsonskarate.com

worker.ajp13w.port=8009

 

worker.jkstatus.type=status

 

URIWORKERMAP.PROPERTIES

/admin/*=wlb

/manager/*=wlb

/jsp-examples/*=wlb

/servlets-examples/*=wlb

/ma/*=wlb

/BirtViewer/*=wlb

 

/www.johnsonskarate.com/*=wlb

/www.mckennademo.com/*=wlb2

 

/jkmanager=jkstatus

 

 

Thanks,

 

Nick.

 

 

 

Nick McKenna
Managing Director
McKenna Consultants Ltd

 

 



Re: How does one go about finding a specific application?

2006-09-08 Thread FH
Thanks :D  The DMS search term is exactly what I needed/didn't have.  There
are several listed here
http://www.roseindia.net/opensource/documentmanagementsolutions.php (Magnolia
being one of them) in case anyone else is looking for something similar.

Forrest

-- Original Message --
Received: Fri, 08 Sep 2006 10:11:45 AM EDT
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: How does one go about finding a specific application?

 Asking us is one avenue :-)
 
 Sounds like you are looking for a Document Management System or DMS.  
 Magnolia comes to mind.  It's a CMS (Content Management System), but the 
 DMS function will be free in version 3.0 to be released soon.  Doing a 
 search for dms or document management system should offer other options.
 
 --David
 



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



Performance monitoring for web applications

2006-09-08 Thread Shimol Shah

Hi,

I am trying to look for a way to programmtically find CPU resources used and
memory used for indivudual web applications. I have given it many tries on
Google but only thing I could find was some third party tool vendors that
give solutions to performance monitoring. Instead what I am looking for is
the programmatic way of knowing CPU and memory usage by a particular web
application.

I would really appreciate if someone can point me to a right direction. I
can work it out form there.

Thanks,
Shimol.


Re: Performance monitoring for web applications

2006-09-08 Thread Leon Rosenberg

I don't think that this is possible, simpy because all your webapps
are running in one jvm, which is one process for the cpu. You could
try to identify separate threads, but i'm sceptical that this works.

regards
Leon

On 9/8/06, Shimol Shah [EMAIL PROTECTED] wrote:

Hi,

I am trying to look for a way to programmtically find CPU resources used and
memory used for indivudual web applications. I have given it many tries on
Google but only thing I could find was some third party tool vendors that
give solutions to performance monitoring. Instead what I am looking for is
the programmatic way of knowing CPU and memory usage by a particular web
application.

I would really appreciate if someone can point me to a right direction. I
can work it out form there.

Thanks,
Shimol.




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



Re: How does one go about finding a specific application?

2006-09-08 Thread Martin Gainty
ServletContext.getResource()/getAttribute
take a look at ServletContext accessors at
http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/ServletContext.html
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: FH [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, September 08, 2006 3:44 PM
Subject: Re: How does one go about finding a specific application?


Thanks :D  The DMS search term is exactly what I needed/didn't have.  There
are several listed here
http://www.roseindia.net/opensource/documentmanagementsolutions.php (Magnolia
being one of them) in case anyone else is looking for something similar.

Forrest

-- Original Message --
Received: Fri, 08 Sep 2006 10:11:45 AM EDT
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: How does one go about finding a specific application?

 Asking us is one avenue :-)
 
 Sounds like you are looking for a Document Management System or DMS.  
 Magnolia comes to mind.  It's a CMS (Content Management System), but the 
 DMS function will be free in version 3.0 to be released soon.  Doing a 
 search for dms or document management system should offer other options.
 
 --David
 



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



Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-08 Thread Luke McLean

Thanks Ben, 

I can follow that logic.  I have also found the imageDB sample app in the
Spring distro.  I am allowing people to upload an image then resizing it
into a Small, Medium and Large version (I figure it is better to resize and
store rather than resize on every use) however I have saved my images to the
database as bytea (byte[]) not BLOBs as per the sample app.  I have three
different resized images and I can use parameters to select the correct
image size to show.  I'm new to all this though and my learning curve is
still expotential!

I see that you refer to a method 'getData' on your image object,

1) how do you store you image data, and
2) what does the getData method look like? (do I need to do anthing other
than 'return data;'

Thanks for all this (I'm sooo close now!)

Luke, from New Zealand.


benshort wrote:
 
 ...
 httpServletResponse.getOutputStream().write(image.getData());
 ...
 
 

-- 
View this message in context: 
http://www.nabble.com/HTTP-304---IF_MODIFIED_SINCE-tf2220040.html#a6219133
Sent from the Tomcat - User forum at Nabble.com.


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



Re: HTTP 304 - IF_MODIFIED_SINCE

2006-09-08 Thread Luke McLean

Oops, sorry everyone. I didn't realise that this was going out to the whole
list!  

I'f you could contact me directly please Ben then I can avoid boring
everyone with this topic.

luke dot mclean at boundless dot co dot nz

Thanks comma
Not Luke (because he is embarrassed so an elf mysteriously wrote this in his
absence).


benshort wrote:
 
 Hi Luke,
 
 This is a litte off topic for the Tomcat usergroup but here you go.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/HTTP-304---IF_MODIFIED_SINCE-tf2220040.html#a6219200
Sent from the Tomcat - User forum at Nabble.com.


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



Weak SSL detection w/ TC5.5

2006-09-08 Thread David Wall
What are most people doing to detect so-called weak SSL ciphers in 
Tomcat? 

I've noted that I can configure the Tomcat Connector's 'ciphers' list to 
specify only those that are not weak, but I'm not sure how best to 
generate that list.  For example, how would I list all ciphers except 
DES-CBC-SHA, EXP-RC4-MD5 and EXP-DES-CBC-SHA from what's offered by 
default?  Is there a way to get an exhaustive list of what ciphers 
Tomcat's SSL will use on Java 5?


Or are people simply checking the javax.servlet.request.key_size 
attribute to determine if it's at least 128 bits and then either 
allowing the connection or redirecting to an error page or the like?  It 
seems like checking the javax.servlet.request.cipher_suite attribute 
won't be enough because it lists all ciphers that it can use, not the 
one that's actually being used.


Thanks,
David

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



Re: tomcat 5.5.17 catalina.bat - dropping support for JPDA_OPTS environment variable?

2006-09-08 Thread Mark Thomas
Kurt Roy wrote:
 Hello,
 
 We have upgraded from tomcat 4.1.18 to 5.5.17, and have found that our
 system start up process on Windows can no longer set jpda debugger
 options on the tomcat java command line.
 
 This occurs because the 5.5.17 catalina.bat file no longer supports the
 environment variable $JPDA_OPTS, which our start up process used to use
 to place jpda information. What is interesting is that catalina.sh STILL
 supports JPDA_OPTS. So we have this problem on windows only. 
 
 Is this an intentional change?

Not that I can tell. If you care to create a patch and submit it to
bugzilla I'll take a look.

Mark

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



RE: stopping a tomcat web application

2006-09-08 Thread asaf.lahav
Does anyone have a code sample that performs a start and/or a stop to a
specific web application utilizing JMX (or what ever other method)?
 

-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 04, 2006 1:22 PM
To: Tomcat Users List
Subject: Re: stopping a tomcat web application

Look at http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html and  
use JMX.

Regards
Peter



Am 04.09.2006 um 11:50 schrieb asaf.lahav:

 Isn't there a way to stop a tomcat web application using code?
 Tomcat provides an administration interface which enables starting and
 stopping of specific web applications.
 Can anyone point me to the web application management code?

 -Original Message-
 From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED]
 Sent: Sunday, September 03, 2006 11:04 PM
 To: Tomcat Users List
 Subject: Re: stopping a tomcat web application

 asaf.lahav wrote:
 I would like to know whether and how it's possible to stop the web
 application from continuing the start sequence in case something goes
 wrong
 in the initialize sequence?

 I don't know how this compares to specification, but throwing an
 exception in contextInitialized() stops deployment procedure. The
 application is unsuable then, but maybe this is what you want.

 -- 
 Mikolaj Rydzewski  [EMAIL PROTECTED]http://ceti.pl/~miki/
 PGP KeyID: 8b12ab02
 There are three kinds of people: men, women and unix.



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





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



Question about the compress setting MIME-Version: 1.0

2006-09-08 Thread JMonstad
We currently have an app in prod using the original servlet filer 
described at 
http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=3  , and 
I know  from the comments to the article in the link that there may be 
some issues with 
it. My question is; how does the built-in tomcat implementation, which is 
activated by the compress=true attribute on the default http1.1 
connector improve on the servlet filter mentioned above. For context, I 
should mention that  we're running on Windows 2003 server, sp1 using 
Apache Tomcat/5.0.28 on on dual Intel Xeon processor with 4Gb of RAM. 
Under various memory settings ranging from giving the heap from any 
interval of  800 - 1500 MB of heap space, the Tomcat server will die more 
or less silently under even moderate load (heavy load kills it almost 
immediately).
Any help would be appreciated, and as I've mentioned (username jmonstad) 
on the IRC channel, I may be willing to entertain engagements from local 
to Minneapolis, US gurus for $'s