JK2 2.0.4

2004-09-30 Thread Paul D. Hester
Has anyone had success installing the JK2 v2.0.4 connector with multiple
virtual hosts, with each host having there own port?  We have two users,
each with their own instance of Tomcat 4.1.31 running.  Each user has a
unique port.  I'm running Apache 2.0.50.  When I set up the
workers2.properties file with the two ports, all requests go through the
last port listed in the worker2.properties file and the first listed
port is being piped over to the second ports web page.
 
HELP  I'm about ready to jump out of my window
 
Paul
 


RE: JK2 2.0.4

2004-09-30 Thread Paul D. Hester
I've attached my workers.properties files.

Paul





-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 30, 2004 3:11 PM
To: Tomcat Users List
Subject: RE: JK2 2.0.4

Yes it works fine.

You should post your workers2.properties so we can see what your
mappings are.

Ta
Matt

-Original Message-
From: Paul D. Hester [mailto:[EMAIL PROTECTED]
Sent: 30 September 2004 19:34
To: [EMAIL PROTECTED]
Subject: JK2 2.0.4


Has anyone had success installing the JK2 v2.0.4 connector with multiple
virtual hosts, with each host having there own port?  We have two users,
each with their own instance of Tomcat 4.1.31 running.  Each user has a
unique port.  I'm running Apache 2.0.50.  When I set up the
workers2.properties file with the two ports, all requests go through the
last port listed in the worker2.properties file and the first listed
port is being piped over to the second ports web page.
 
HELP  I'm about ready to jump out of my window
 
Paul
 
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1503;}\viewkind4\uc1\pard\f0\fs20 #define the shared 
memory file\par
[shm:]\par
file=/usr/local/apache-2.0.50/logs/jk2.log\par
size=100\par
debug=1\par
\par
# Define the communication channel\par
[channel.socket:localhost:8409]\par
[channel.socket:localhost:8209]\par
\par
#define the worker\par
[ajp13:localhost:8409]\par
channel=channel.socket:localhost:8409\par
\par
[ajp13:localhost:8209]\par
channel=channel.socket:localhost:8209\par
\par
[uri:/*]\par
group=ajp13:localhost:8409\par
\par
[uri:/*]\par
group=ajp13:localhost:8209\par
}

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

RE: JK2 2.0.4

2004-09-30 Thread Paul D. Hester
I've attached my workers.properties file below.

Paul






#define the shared memory file
[shm:]
file=/usr/local/apache-2.0.50/logs/jk2.log
size=100
debug=1

# Define the communication channel
[channel.socket:localhost:8409]
[channel.socket:localhost:8209]

#define the worker
[ajp13:localhost:8409]
channel=channel.socket:localhost:8409

[ajp13:localhost:8209]
channel=channel.socket:localhost:8209

[uri:/*]
group=ajp13:localhost:8409

[uri:/*]
group=ajp13:localhost:8209 


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



Servlet mapping problem

2004-09-29 Thread Anto Paul
Hi all,
  I am writing an application which have to serve content based on the
hostname it is requested. Different hosts will be set to same ROOT
directory. There wont be any content at the ROOT. Everything will be
on subdirectories. I wrote a servlet with mapping as / . But when it
is forwarded to subdirectory it is coming to same servlet and
executing in a loop. This is an example of what I need.

Directory structure.   Host name
ROOT/sites/one.com -  one.com
ROOT/sites/two.comtwo.com
ROOT/sites/three.com  three.com

A request to one.com should go to /sites/one.com .
A request to two.com should go to /sites/two.com .

How to make it.

Thanks in advance

Anto Paul


-- 
To strive,to seek,to find and not to yield

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



Re: Servlet mapping problem

2004-09-29 Thread Anto Paul
Hi there,
  I posted this to Tomcat User List. I didnt posted this to Struts.
Although the application is using Struts it is not specific to Struts.

rgds
Anto Paul


On Wed, 29 Sep 2004 00:59:53 -0700, Michael McGrady
[EMAIL PROTECTED] wrote:
 
 
 Anto Paul wrote:
 
 Hi all,
   I am writing an application which have to serve content based on the
 hostname it is requested. Different hosts will be set to same ROOT
 directory. There wont be any content at the ROOT. Everything will be
 on subdirectories. I wrote a servlet with mapping as / . But when it
 is forwarded to subdirectory it is coming to same servlet and
 executing in a loop. This is an example of what I need.
 
 Directory structure.   Host name
 ROOT/sites/one.com -  one.com
 ROOT/sites/two.comtwo.com
 ROOT/sites/three.com  three.com
 
 A request to one.com should go to /sites/one.com .
 A request to two.com should go to /sites/two.com .
 
 How to make it.
 
 Thanks in advance
 
 Anto Paul
 
 
 
 
 Hello, Anto,
 
 I don't have enough information to tell what your  problem is.  Are you
 using ActionForwards to go to these areas?  What servlet with a
 mapping as / are you talking about?  Remember this is a Struts list.  If
 you have everything mapped to your servlet in your web.xml, then, of
 course, everything is going to go to your servlet.  I suspect this is
 what you have done.  Why do you have a servlet with a mapping as / ?
 
 Michael McGrady
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-- 
To strive,to seek,to find and not to yield

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



Re: AW: Servlet mapping problem

2004-09-29 Thread Anto Paul
I cant grasp what you said. I am using Tomcat 4.1.x. I searched in
Google for world welcome-file and could'nt find anything on it. Are
you talking about welcome-file-list ?.

rgds
Anto Paul


On Wed, 29 Sep 2004 11:43:33 +0200, Steffen Heil [EMAIL PROTECTED] wrote:
 Hi
 
  I wrote a servlet with mapping as / . But when it is forwarded to
 subdirectory it is coming to same servlet and executing in a loop.
 
 You cannot map a single url. Tomcat only maps prefixes. So, you cannot map
 / with tomcat. (Resin can, but this is another story.)
 Here is a workaround:
 Map /root as a servlet and define root as world welcome-file (see docs).
 Depending on the tomcat version in use, you need to create a empty file
 named root.
 
  Remember this is a Struts list.
 
 Nope.
 
 Regards,
  Steffen
 
 
 
 



-- 
To strive,to seek,to find and not to yield

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



Re: Servlet mapping problem

2004-09-29 Thread Anto Paul
What if I use a filter ?. I will map it like this

filter-mapping
filter-nameMappingFilter/filter-name
url-pattern//url-pattern
/filter-mapping

 filter-mapping
filter-nameMappingFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

In filter I forward to the path substituted with the directory. With
servlet I failed to achieve what I want. I am sceptical about using a
forward in a filter. This filter is the only filter that exists in the
application. Even if another filter is added it can be put as he last
filter in web.xml. Please comment on this.

rgds
Anto Paul 


On Wed, 29 Sep 2004 09:04:32 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 However, I am sure about the fact, that you cannot map a single url
 such as
 /.
 (Yes, you can define a mapping of /, but that maps to EVERY request,
 NOT
 to the root url only.)
 
 No.  You're mistaking the default configuration for something that's
 hard-coded.  Out of the box, / is mapped to Tomcat's DefaultServlet,
 which handles static content.  This is routine for other containers as
 well and is not a particular Tomcat trick.
 
 Per the servlet spec, / is the default mapping also, so anything that's
 not matched by other mappings will end up there.
 
 So, here's one way to change things:
 - Explicitly map the things you want handled by Tomcat's DefaultServlet
 to it, e.g.
 servlet-nameDefaultServlet/servlet-nameurl-pattern*.html/url-patt
 ern.  Same for *.htm, *.gif, *.jpg, *.png, etc.
 - Map any servlet of your choice to URL pattern /.
 - Ensure that rest of your app has no unmapped pages, i.e. ones that'll
 propagate to /.
 
 
 
 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 strive,to seek,to find and not to yield

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



[OT]Geronimo and Tomcat

2004-09-28 Thread Anto Paul
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 strive,to seek,to find and not to yield

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



using the Standard jdk 1.4 logging with Tomcat 5

2004-09-27 Thread Paul Taylor
Hi in a previous non Tomcat project I wrote some classes that used the 
java.util.logging library that comes with java 1.4 quite successfully. I 
am now trying to use the same classes with Toimcat 5.0 but it doesnt 
like it. With the logging classes you can provide a configuration class 
which you define with a property java.util.logging.config.class, I put 
the class in my WEB_INF\classes with all the other classes. 

When I run with Tomcat i have a servlet that does the following to try 
and initilse the logging

 
com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs();
 System.getProperties().setProperty(java.util.logging.config.class, 
com.appserver.util.logging.LogProperties);
 LogManager.getLogManager().readConfiguration();

it complains it cant find the class, when running readConfiguration(), 
(The 1st two lines run ok). I think the problem is to do with Tomcat 
classloader, with a simple Java application the classes would be 
expected to be on the system classpath, but on Tomcat the system 
classpath only contains bootstrap.jar.

I realise I could probably get things working using Apaches log4j 
instead but it seems a bit silly to use that when there is a perfectly 
adequate logger built into the language now.

Anyone done this ?
 

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

2004-09-23 Thread Anto Paul
Simulating real world is a QA fellows job. I write code, foresee any
bugs that it may have, write tests for it, run tests using Ant, deploy
to Tomcat(copy files) and test. Only JSP pages one need to test using
a container with every change for- for the visual layout.

rgds
Anto Paul


On Thu, 23 Sep 2004 09:02:06 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 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.
 
 Good luck.  If you want to have tests that simulate real-world
 conditions, not just simple unit tests, you'll wake up to things like
 Cactus soon enough ;)  Or maybe create your own framework for testing
 code as you write it complete with the plumbing required.
 
 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 strive,to seek,to find and not to yield

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



Re: [OT] Handling JDBC transactions

2004-09-23 Thread Anto Paul
I don't have any knowledge of Cactus/MockObjects. I had never thought
about such a testing strategy. Thanks for the info.

Anto Paul


On Thu, 23 Sep 2004 09:34:34 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 Do you run unit test using Cactus for all code changes ? Just to know
 ?. I feel that such tools are useful for those who is responsible for
 integration testing.
 
 It's not that simple (at least for me and the organizations I've worked
 for/with).  I don't have the luxury (and few people do) of leaving all
 integration testing to QA in the first place.  Even if I did, I
 wouldn't consider a test like making sure a servlet can work with a
 connection pool an integration test (and such a test would obviously
 require JNDI).  And even in places that consider that an integration
 test, I've found the quality of QA testing to be mediocre at best, and
 downright clumsy on average.
 
 So I, and the developers I manage, end up writing a good amount of tests
 that aren't plain JUnit tests: we use Cactus, MockObjects, and a variety
 of other tools.  They get run automatically on a nightly basis on our
 test server, so we don't spend any time running them, we just check the
 results in the morning.  There's also a nightly Clover run to give us an
 idea of how we're doing in test code coverage.
 
 I didn't stumble into this approach or invent it: there's an ample body
 of both theoretical SD research and practical experience that suggest
 waiting for QA to conduct all integration testing results in
 significantly worse product quality and delayed shipping.  Tools like
 Cactus are priceless to quality-oriented shops.
 
 Yoav
 
 
 
 
 
 Anto Paul
 
 
 On Thu, 23 Sep 2004 09:12:12 -0400, Shapira, Yoav
 [EMAIL PROTECTED]
 wrote:
 
  Hi,
  OK.  To each their own testing philosophy ;)
 
  Yoav Shapira
  Millennium Research Informatics
 
 
 
 
  -Original Message-
  From: Anto Paul [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 23, 2004 9:10 AM
  To: Tomcat Users List
  Subject: Re: [OT] Handling JDBC transactions
  
  Simulating real world is a QA fellows job. I write code, foresee any
  bugs that it may have, write tests for it, run tests using Ant,
 deploy
  to Tomcat(copy files) and test. Only JSP pages one need to test
 using
  a container with every change for- for the visual layout.
  
  rgds
  Anto Paul
  
  
  On Thu, 23 Sep 2004 09:02:06 -0400, Shapira, Yoav
  [EMAIL PROTECTED]
  wrote:
  
   Hi,
  
   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.
  
   Good luck.  If you want to have tests that simulate real-world
   conditions, not just simple unit tests, you'll wake up to things
 like
   Cactus soon enough ;)  Or maybe create your own framework for
 testing
   code as you write it complete with the plumbing required.
  
   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 strive,to seek,to find and not to yield
  
 
 -
  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 strive,to seek,to find and not to yield
 
 
 
 
 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 strive,to seek,to find and not to yield

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]



how to simply configure log4j in tomcat 5.5 ?

2004-09-22 Thread Jean-Paul Le Fèvre
I'm currently experimenting the new features of Tomcat 5.5.2
and more precisely the logging facility.

I must confess that I'm really upset by this implementation based on log4j.

- Log4j is a *very* complex package, difficult to master. IMO it does not
  make sense to use such a library : logging is meant to *help* developpers
  and administrators and not to cause headaches.
  The first principle of logging should be KISS (keept it stupid simple)

- There is no good documentation on how to use and configure Log4j.
  The short guide by Gülcü is not useful. The complete guide is not free
  (à la JBoss).

- I've spent a lot of time browsing the FAQ, the Wikis, turning around
  many interconnected sites but without finding answers to my questions.

- There is only one (actually 2) document : the tips written by Geoff Mottram.

Well, having given my opinion I feel better ;)

More specifically here is my question :

How to define my log4j properties to obtain what I had with the old plain
Logger ?

Context path=/try docBase=try.war override=true swallowOutput=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=try- suffix=.log
timestamp=true /
/Context

I've tried some variations of the following definitions but without success :

log4j.appender.L.File=/home/myself/soft/Tomcat/logs/try.log
log4j.logger.org.apache.catalina.core.ContainerBase.Catalina.localhost.try=INFO,L

(the last component the path is not very clear try or /try or something 
else)

Basically I do not really care about levels but I do want a file by context.

Sincerely,
-- 
___

Jean-Paul Le Fèvre  * 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]



why is tomcat-users.xml rewritten ?

2004-09-19 Thread Jean-Paul Le Fèvre

Each time tomcat is restarted the file tomcat-users.xml
is rewritten. It is horrible since my umask being 0022
the file which stores passwords become world readable.

Obviously this file has to be read my the server but I
do not see any valuable reason to write it back opening
a serious security hole.

-- 
___

Jean-Paul Le Fèvre  * Mail : [EMAIL PROTECTED]



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



Renaming the ROOT directory ?

2004-09-18 Thread Jean-Paul Le Fèvre
I don't understand how to specify a default context.
I'm currently working with tomcat-5.0.27 and my server
is supporting 3 virtual hosts.

In the config file (server.xml) I declare a default context
with :
 Context path =  docBase = my_app ...

The directory 'my_app' is available in the 'webapps' directory.
Depending on the case it is directly copied or extracted from a
war file.
However when the application is deployed a 'ROOT' directory is automatically
created. Its content duplicates the one in 'my_app'.

When I update something in 'my_app' the copy in 'ROOT' is not synchronized
and the 2 directories become different.

The problem is that tomcat is actually serving the content of 'ROOT'
and not the 'my_app's one. As a result I've lost a lot of time trying to
figure out why my jspages did not take into account my modifications.

- Is there a way to get rid of the 'ROOT' directory.
- Is it possible to specify unambiguously the name of the default directory.

-- 
___

Jean-Paul Le Fèvre  * Mail : [EMAIL PROTECTED]



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



Re: Renaming the ROOT directory ?

2004-09-18 Thread Jean-Paul Le Fèvre
On Saturday 18 September 2004 14:13, John Villar wrote:
 Your path attribute should have / and not .

No. According to the tomcat config doc :

If you specify a context path of an empty string (), you are defining the 
default web application for this Host...

Docbase should be (for
 your case, i will explain why it is wrong) webapps/my_app. This is a
 bad configuration, because you're telling to your host that its root dir
 is within the root of another host.

No. My Host definitions have each an appBase=webapps/a_host

better approach IMHO: create one
 webapps dir for every virtual host, say webapps2 and webapps3
 (keeping one host with the default webapps) and point the 2nd host to
 webapps2 and your 3rd host to webapps3, then create for every host a
 default context with Context path=/ docBase=my_app/ and voila, you
 have 3 virtual hosts each one with its default context.

And 'voilà pas du tout' since you describe my current configuration which
cause the problem.

In fact the trick with the symbolic link works but it is not elegant.
I wonder whether this forced ROOT creation is a bug or a feature.

-- 
___

Jean-Paul Le Fèvre  * Mail : [EMAIL PROTECTED]



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



Re: Renaming the ROOT directory ?

2004-09-18 Thread Jean-Paul Le Fèvre
On Saturday 18 September 2004 16:42, John Villar wrote:
 What's your tomcat version? could you post your server.xml file to see
 if there's something wrong? i'm using virtual hosts with default apps on
 tomcat 5.0.18 and used the configuration i told you, and works pretty
 well..

  tomcat-5.0.27

  Host name=edbg.fr debug = 0 appBase=webapps/eros 
unpackWARs=true autoDeploy=true

Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=eros- suffix=.log /

Context path =   docBase = edbg.war debug = 0 
 override = true  reloadable=true
 useNaming = false swallowOutput = true 
/Context
 
-- 
___

Jean-Paul Le Fèvre  * 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]



Autodeploy problems in 5.0.27

2004-09-17 Thread Kaiser, Paul
I'm running into a problem with the auto-deploy mechanism (maybe the wrong
term... the mechanism that deploys contexts based on a external context
configuration XML file in $CATALINA_BASE/conf/engine-name/host-name).

I started with an out-of-the-box install of 5.0.27 on SuSE 8.2.

I set JAVA_HOME, then run startup.sh.

Everything looks okay.

I then create a directory (call it ~/catbase) and
  - copy $CATALINA_HOME/conf to catbase/conf
  - create empty directories in catbase (logs, work, temp, shared/classes,
shared/lib)

I set CATALINA_BASE=~/catbase and run startup.sh.

I'm expecting the same result as when CATALINA_BASE = CATALINA_HOME.

I discover that none of the contexts in catbase/conf/Catalina/localhost get
deployed. There is no indication in the Catalina log file that anything is
wrong.

Am I wrong to think this should work? Have I left out a necessary config
step?

Thanks in advance.

Paul


--
Notice:  This e-mail message, together with any attachments, contains information of 
Merck  Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or 
its affiliates (which may be known outside the United States as Merck Frosst, Merck 
Sharp  Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary 
copyrighted and/or legally privileged. It is intended solely for the use of the 
individual or entity named on this message.  If you are not the intended recipient, 
and have received this message in error, please notify us immediately by reply e-mail 
and then delete it from your system.
--

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



RE: Autodeploy problems in 5.0.27

2004-09-17 Thread Kaiser, Paul

 Am I wrong to think this should work? Have I left out a 
 necessary config step?

I forgot to create an empty webapps directory in CATALINA_BASE.



--
Notice:  This e-mail message, together with any attachments, contains information of 
Merck  Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or 
its affiliates (which may be known outside the United States as Merck Frosst, Merck 
Sharp  Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary 
copyrighted and/or legally privileged. It is intended solely for the use of the 
individual or entity named on this message.  If you are not the intended recipient, 
and have received this message in error, please notify us immediately by reply e-mail 
and then delete it from your system.
--

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



Re: Serializable Logging implementation

2004-09-15 Thread Antony Paul
I extend a base form which gets the Log as
LogFactory.getLog(this.getClass());
So that no need to define and get a Log instance in subclass. Is there any
way so that I can follow this pattern.

rgds
Antony Paul

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 4:38 PM
Subject: Re: Serializable Logging implementation


 logging instances should be static to the class.

 // Commons logging example but a log4j equiv should be easy to find
  private static Log log = LogFactory.getLog(MyClass.class);


 -Tim

 Antony Paul wrote:

  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.
 

 -
 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-15 Thread Antony Paul
Then it throws NullPointerException

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 6:05 PM
Subject: RE: Serializable Logging implementation



Hi,
Hmm, you want to be careful with this pattern.  I like the private
static one for Loggers -- there are very good reasons it's the
recommended pattern (by log4j, by the java.util.logging folks) and the
one that's used (by Tomcat and most other serious apps I know of).

If you really want to stick with your base class gets the logger
pattern, consider marking it as transient.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 8:27 AM
To: Tomcat Users List
Subject: Re: Serializable Logging implementation

I extend a base form which gets the Log as
LogFactory.getLog(this.getClass());
So that no need to define and get a Log instance in subclass. Is there
any
way so that I can follow this pattern.

rgds
Antony Paul

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 4:38 PM
Subject: Re: Serializable Logging implementation


 logging instances should be static to the class.

 // Commons logging example but a log4j equiv should be easy to find
  private static Log log = LogFactory.getLog(MyClass.class);


 -Tim

 Antony Paul wrote:

  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.
 

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




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

2004-09-15 Thread Antony Paul
The NPE is because the Log instance is transient. I can fix this by getting
a new instance when it is read from disk. I dont remember the method which
is called when an object is serialized.

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 6:33 PM
Subject: RE: Serializable Logging implementation



Hi,
Then no one can help you if you don't give any details ;) Stack trace?
Config details?  Have you done any debugging of your own?  NPEs usually
take about a minute to resolve, much shorter than writing a message to
this list and waiting for a response... Why don't people get this
lesson?  It's repeated at least once a day on this list ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 9:04 AM
To: Tomcat Users List
Subject: Re: Serializable Logging implementation

Then it throws NullPointerException

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 6:05 PM
Subject: RE: Serializable Logging implementation



Hi,
Hmm, you want to be careful with this pattern.  I like the private
static one for Loggers -- there are very good reasons it's the
recommended pattern (by log4j, by the java.util.logging folks) and the
one that's used (by Tomcat and most other serious apps I know of).

If you really want to stick with your base class gets the logger
pattern, consider marking it as transient.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 8:27 AM
To: Tomcat Users List
Subject: Re: Serializable Logging implementation

I extend a base form which gets the Log as
LogFactory.getLog(this.getClass());
So that no need to define and get a Log instance in subclass. Is there
any
way so that I can follow this pattern.

rgds
Antony Paul

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 4:38 PM
Subject: Re: Serializable Logging implementation


 logging instances should be static to the class.

 // Commons logging example but a log4j equiv should be easy to find
  private static Log log = LogFactory.getLog(MyClass.class);


 -Tim

 Antony Paul wrote:

  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.
 


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




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]




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

2004-09-15 Thread Antony Paul
My understanding is that this event will be called when the container
passivates for transfering one object from one VM to Another like a cluster.
Will this be invlked on Tomcat 4.1 when an object is serialised ?.

rgds
Antony Paul

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 6:50 PM
Subject: Re: Serializable Logging implementation


 Your NPE comes from the transient value not being restored from
de-serialization.

 Your best chance at this point without a lot of code changes is to
 1) Make your log variable transient
 2) Make your base class implement HttpSessionActivationListener.
 3) Make your implementation of sessionDidActivate():

 public void sessionDidActivate(HttpSessionEvent se) {
if (log==null)
  log = LogFactory.getLog(this.getClass());
 }

 public void sessionWillPassivate (HttpSessionEvent se) {
; /* Nothing to do */
 }


 -Tim

 Antony Paul wrote:

  Then it throws NullPointerException
 
  rgds
  Antony Paul
 
  - Original Message -
  From: Shapira, Yoav [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, September 15, 2004 6:05 PM
  Subject: RE: Serializable Logging implementation
 
 
 
  Hi,
  Hmm, you want to be careful with this pattern.  I like the private
  static one for Loggers -- there are very good reasons it's the
  recommended pattern (by log4j, by the java.util.logging folks) and the
  one that's used (by Tomcat and most other serious apps I know of).
 
  If you really want to stick with your base class gets the logger
  pattern, consider marking it as transient.
 
  Yoav Shapira
  Millennium Research Informatics
 
 
 
 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 15, 2004 8:27 AM
 To: Tomcat Users List
 Subject: Re: Serializable Logging implementation
 
 I extend a base form which gets the Log as
 LogFactory.getLog(this.getClass());
 So that no need to define and get a Log instance in subclass. Is there
 
  any
 
 way so that I can follow this pattern.
 
 rgds
 Antony Paul
 
 - Original Message -
 From: Tim Funk [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, September 15, 2004 4:38 PM
 Subject: Re: Serializable Logging implementation
 
 
 
 logging instances should be static to the class.
 
 // Commons logging example but a log4j equiv should be easy to find
  private static Log log = LogFactory.getLog(MyClass.class);
 
 
 -Tim
 
 Antony Paul wrote:
 
 
 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.
 

 -
 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-15 Thread Antony Paul
The NPE is because the Log instance is transient. I can fix this by getting
a new instance when it is read from disk. I dont remember the method which
is called when an object is serialized.

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 6:33 PM
Subject: RE: Serializable Logging implementation



Hi,
Then no one can help you if you don't give any details ;) Stack trace?
Config details?  Have you done any debugging of your own?  NPEs usually
take about a minute to resolve, much shorter than writing a message to
this list and waiting for a response... Why don't people get this
lesson?  It's repeated at least once a day on this list ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 9:04 AM
To: Tomcat Users List
Subject: Re: Serializable Logging implementation

Then it throws NullPointerException

rgds
Antony Paul

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 6:05 PM
Subject: RE: Serializable Logging implementation



Hi,
Hmm, you want to be careful with this pattern.  I like the private
static one for Loggers -- there are very good reasons it's the
recommended pattern (by log4j, by the java.util.logging folks) and the
one that's used (by Tomcat and most other serious apps I know of).

If you really want to stick with your base class gets the logger
pattern, consider marking it as transient.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 8:27 AM
To: Tomcat Users List
Subject: Re: Serializable Logging implementation

I extend a base form which gets the Log as
LogFactory.getLog(this.getClass());
So that no need to define and get a Log instance in subclass. Is there
any
way so that I can follow this pattern.

rgds
Antony Paul

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 4:38 PM
Subject: Re: Serializable Logging implementation


 logging instances should be static to the class.

 // Commons logging example but a log4j equiv should be easy to find
  private static Log log = LogFactory.getLog(MyClass.class);


 -Tim

 Antony Paul wrote:

  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.
 


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




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]




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]



SocketException: Software caused connection abort: recv failed

2004-09-10 Thread Antony Paul
Hi ,
I am getting this error when SSL is enabled.

Sep 10, 2004 11:14:30 AM org.apache.tomcat.util.net.TcpWorkerThread runIt
SEVERE: Remote Host /192.168.4.66 SocketException: Software caused
connection abort: recv failed

This is on console. What may be the cause for it ?.

Tomcat 4.1.30
Java HotSpot(TM) Client VM - build 1.4.1_01-b01

I am using unsigned certificates.

rgds
Anto Paul

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



Re: how do i set max session time in 4.1.27

2004-09-09 Thread Antony Paul
If you are setting maximum session time out you can set it in the
WEB-INF/web.xml like this
session-config
session-timeout30/session-timeout
/session-config

The time out is in minutes. This is to be placed after servlet-mapping
element.

or use session.setMaxInactiveInterval();
rgds
Antony Paul

- Original Message -
From: Arun Prasad R [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 4:03 PM
Subject: how do i set max session time in 4.1.27


 hi all

 how do i set max session time in 4.1.27
 Thanks in Advance
 arun

 -
 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: Pls Help index.jsp not compiling dynamically

2004-09-09 Thread Antony Paul
Which version ?. Are you using the default Tomcat installation . If yes
there should not be any problem if you didnt changed any configuration
files.

rgds
Antony Paul

- Original Message -
From: Arun Prasad R [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 4:00 PM
Subject: Pls Help index.jsp not compiling dynamically


 hi

 index.jsp is not being compiled dynamically, if i rename to some
 other name some.jsp its get compiled. if somebody faced this issue
 pls help. im not getting clue by google.

 arun

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



DBCP - monitoring connections

2004-09-08 Thread Antony Paul
Hi all,
Is there any interface available with DBCP for monitoring no of active
connections, connections requested, no of rejected connection
requests,connections removed from pool. I should be capable of taking
samples every 1 minute or so.
Or is it possible to write a class which queries these information.

rgds
Antony Paul

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



Re: jndi-datasource

2004-09-01 Thread Antony Paul
Do you have the jtds  jar in Tomcat classpath. I think it should in same
directory as dbcp.jar which is in CATALINA_HOME\common\lib folder.

Antony Paul

- Original Message -
From: Steve Cheng [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 2:15 PM
Subject: jndi-datasource


 I follow the tomcat document and try to setup JNDI in tomcat.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
 to.html

 But I get the following exception.
 javax.servlet.ServletException: Cannot create JDBC driver of class '' for
 connect URL 'null'


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


org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
 l.java:758)
  org.apache.jsp.testDB_jsp._jspService(testDB_jsp.java:81)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
 24)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 However, If I create the following tag in the Context tag, it works fine.
   ResourceLink global=jdbc/sysdev/workflow name=jdbc/sysdev/workflow
 type=javax.sql.DataSource/

 Anybody know how to solve it?

 Thanks,
 steve

 

 Tomcat Version: 5.0.27
 JDBC Driver: jtds
 OS: Win2k server

 segment of server.xml
 ?xml version='1.0' encoding='utf-8'?
 Server
 ...
   GlobalNamingResources
 ...
 Resource auth=Container description=Workflow DB Connection
 name=jdbc/sysdev/workflow type=javax.sql.DataSource/
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 ResourceParams name=jdbc/sysdev/workflow
   parameter
 namevalidationQuery/name
 valueselect top 1 * from login/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:jtds:sqlserver://sysdev/workflow/value
   /parameter
   parameter
 namepassword/name
 value/value
   /parameter
   parameter
 namemaxActive/name
 value4/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namedriverClassName/name
 valuenet.sourceforge.jtds.jdbc.Driver/value
   /parameter
   parameter
 nameusername/name
 valuesa/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
 /ResourceParams
   /GlobalNamingResources
 ...
 /Server

 web.xml
 ?xml version=1.0 encoding=UTF-8?
 web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   display-nameWorkflow/display-name
   descriptionWorkflow/description
   resource-ref
   descriptionWorkflow DB Connection/description
   res-ref-namejdbc/sysdev/workflow/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref
 /web-app



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



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



Re: Tomcat 5 Crystal Reports

2004-08-31 Thread Antony Paul
Is it possible to install Crystal Reports in Tomcat as  a web application ?.
Which version of Crystal Reports supports this ?.

Antony Paul

- Original Message -
From: POLO ARAUJO, JAVIER [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 12:32 PM
Subject: Tomcat 5  Crystal Reports



 Hi! I'm triying to configure Tomcat 5 and Crystal Reports. What I want to
do is reading from a database to a report made with CR using a Tomcat
datasource. The problem is that CR can't find it (using jndi); i get a
message saying that CR is unable to find the resource. The datasource is
well defined (i think so because a jsp can use it correctly).

 Does anybody know if is there problem between Tomcat 5 and Crystal
Reports? Is there any one that have configured it yet?

 Thanks in advance,

 Javier Polo.


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



Re: tomcat 5.0.27 xml schema or DTD for server.xml

2004-08-29 Thread Paul Gregoire
This should point you in the right direction..
lt;web-app
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4 gt;
Luke (Terry) Vanderfluit wrote:
Hi,
I am running tomcat 5.0.27. 
I'm looking for a copy of the xml schema for the server.xml file.
I've looked on the jakarta website and in the 2.4 servlet spec, but
can't find it, 
Maybe there's only a DTD at this stage,

Anyone know where to find it?
TIA,
Luke
 


--
(¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯)
The early bird gets the worm, but the second mouse gets the cheese...
ICQ 1202948
(¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯)

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


how to configure log file ?

2004-08-26 Thread Jean-Paul Le Fèvre

I'm not satisfied by the default format used by the FileLogger
in Tomcat 5. The documentation explains how to configure the
*name* of the log files but not the *content* of the files.

Each printed message is prefixed by the full date-time and
the context-servlet name : this prefix is more than 40 characters long !
I'm not interested in the context name and I would like to get rid of it.

Is there somewhere a configuration file to do that ?
Do I have to extend the FileLogger class by myself ?


-- 
___

Jean-Paul Le Fèvre  * Mail : [EMAIL PROTECTED]



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



Re: Best practice for generating URL's

2004-08-25 Thread Antony Paul
My scenario is
Apache running at 192.168.4.10
Tomcat running on 192.168.4.60

In JSP how I have to create URL
a href=admin/index.jspHome/a is enough
OR
a href=192.168.4.10/admin/index.jspHome/a
OR
a href=192.168.4.60/admin/index.jspHome/a

I will use some custom tag to generate the server portion.

This application may be deployed with multiple Apache and Tomcat instances.
I have no experience in this kind of work.

rgds
Antony Paul

- Original Message -
From: Antony Paul [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 24, 2004 2:19 PM
Subject: Best practice for generating URL's


 Hi all,
 What is the best practice for generating URL's in JSP/struts-config
when
 the application is behind a web server and both are run in different
 machines. Some pages uses SSL. In one application I saw them using a
 properties file and using a static method to get the proptocol,server and
 context portion. Is that really necessary ?. Or leaving links without
 protocol,servername and context name.
 My new scenario is this.

 Apache on one machine with a domain name.
 Tomcat in another machine(I think it needs to be because of expected heavy
 traffic)
 It have some pages which must use SSL.
 It is using Struts and how to manage links in struts-config.xml.

 There will be lot of people who worked on this kind of scenario and I
expect
 them to help me.

 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]



Best practice for generating URL's

2004-08-24 Thread Antony Paul
Hi all,
What is the best practice for generating URL's in JSP/struts-config when
the application is behind a web server and both are run in different
machines. Some pages uses SSL. In one application I saw them using a
properties file and using a static method to get the proptocol,server and
context portion. Is that really necessary ?. Or leaving links without
protocol,servername and context name.
My new scenario is this.

Apache on one machine with a domain name.
Tomcat in another machine(I think it needs to be because of expected heavy
traffic)
It have some pages which must use SSL.
It is using Struts and how to manage links in struts-config.xml.

There will be lot of people who worked on this kind of scenario and I expect
them to help me.

rgds
Antony Paul

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



[OT]CVS Tag in source code

2004-08-20 Thread Antony Paul
Hi developers,
How to add @version $Revision: 1.3 $ $Date: 2004/07/23 22:57:35 $ when
checking out files from A CVS repository. I am using file based CVS. We use
Eclipse to checkout. This is very useful to us because we locally use
another versioning system and the main site is using CVS. If this version is
included it is easy to identify which version we are using.

rgds
Antony Paul


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



RE: Tomact 5 - Out of Memory

2004-08-03 Thread Paul Wallace
Also ensure session expiry is firstly happening, and being handled (the
later being optional!) 

-Original Message-
From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 4 August 2004 3:28 PM
To: Tomcat Users List
Subject: RE: Tomact 5 - Out of Memory

Increase the JDK heap size
either by JAVA_OPTS option or by registery
IF Tomcat install as NT service then Use registry method
else use JAVA_OPTS

Pradeep

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 04.08.2004 09:08
To: Tomcat Users List
Subject: Tomact 5 - Out of Memory


Our enviroment is as following:

Redhat 9
Tomact 5.0.19
JAVA 1.4.2_04
MYSQL 4.0.18

However, our website stop response after running for 1 day, I checked
the
log and there is following description

StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
java.lang.OutOfMemoryError

So I need to restart the server everyday. I would like to ask if there
is
any solution or setting to slove that.



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



Weaver Release Announcement (XML Programmed Servlet Controller Component)

2004-08-02 Thread Paul Harvey
Weaver is a pure-Java, XML programmed Controller component for 
developing Model View Controller (MVC) structured, servlet based, Web 
applications.

Weaver exploits your existing knowledge of the JSP Expression Language 
(EL) and of JSTL via a consistent XML tag set.

The main features of Weaver include:
* Programmed via a simple but powerful XML syntax whose elements 
are modeled after those provided by JSTL.
* Support for an Expression Language (EL) syntax that is identical 
to that of JSP 2.0.
* Easily extensible XML tag vocabulary.
* Support for JSPs and for other View technologies.
* Model functionality is easily added via the implementation of a 
simple Java interface.
* Provision for multiple cooperating applications.
* Transparent support for authentication.
* Provides a management console to monitor and to configure running 
applications.
* Runs in any suitable servlet container.
* Automatic application reloading for rapid development.
* It's Fast!

Weaver's home page may be found at: http://www.oldlight.com/weaver/
Weaver may be downloaded from: http://www.oldlight.com/weaver/downloads.html
(Sorry if this posting is a little off topic - I think it may be of 
interest to those who read this forum).

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

RE: My first WebApplication

2004-07-29 Thread Paul Wallace
Hi to you,
1st guess, you should have a dir for your application - WEB-INF,
not WEB-IN...unless it's a typo. In that dir make sure your web.xml
names and maps your servlet. Give it a go.

Paul. 

Hi to all

Sir/Madam

Please help me someone regarding my first WebApplication (Servlet):

I created  directories :
CATALINA_HOME\webapps\ch03\WEB-IN\classes\com\wrox\projsp\ch03\myfirstwe
bapp

Then into my sayeed class i starated with a first line as:

package com.wrox.projsp.ch03.myfirstwebapp
and other coding stuff for the java class..

I compile this java file (sayeed) and it compiled sucessfully and saved
into:
CATALINA_HOME\webapps\ch03\WEB-IN\classes\com\wrox\projsp\ch03\myfirstwe
bapp
\sayeed.class

Now after startup my tomcat server i put this into url browser which
gives
error:

http://localhost:8080/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.sa
yeed

the error is:

type Status report

message /ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.sayeed

description The requested resource
(/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.sayeed) is not
available.


Can anyone please help me?
thanx in advance

Saeed

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 9:31 PM
Subject: RE: Error Starting Sample Tomcat Webapps



Hola,
How did you install tomcat?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Sayeed [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 12:40 PM
To: Tomcat Users List
Subject: Re: Error Starting Sample Tomcat Webapps

Dear Filip
thanx for the advice - i put the same command and it gives these
message :

Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Catalina.start: sun.misc.InvalidJarIndexException: Invalid index!
sun.misc.InvalidJarIndexException: Invalid index!
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1276)

at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

c:\apache\tomcat\bin

plz advice

Saeed
- Original Message -
From: Filip Hanik - Dev [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 9:10 PM
Subject: Re: Error Starting Sample Tomcat Webapps


  type
 
  catalina.bat run

 RTFM

 - Original Message -
 From: Sayeed [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, July 20, 2004 11:16 AM
 Subject: Re: Error Starting Sample Tomcat Webapps


 Dear Filip
 if I issues catalina.bat in DOS then this is all:

 C:\Apache\Tomcat\bincatalina
 Using CATALINA_BASE:   C:\APACHE\TOMCAT
 Using CATALINA_HOME:   C:\APACHE\TOMCAT
 Using CATALINA_TMPDIR: C:\APACHE\TOMCAT\temp
 Using JAVA_HOME:   C:\jdk1.3
 Usage:  catalina ( commands ... )
 commands:
   debug Start Catalina in a debugger

TC 5 - root application

2004-07-25 Thread Paul Wallace
Hi, 
Using Tomcat 5, I wish to move my application from under
webapps, into a defined directory somewhere on the server hard drive.
Instead of defining a context for my application, I wish to point Tomcat
to my application as ROOT to a generic location i.e http://localhost
points to c:\site\index.jsp, for example. I have configured it to be
using port 80 already.

Thanks 

Paul.



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



TC 5.0.27 startup problem

2004-07-23 Thread Paul Wallace
Hi,
A seemingly simple one, but not for I! I am trying to setup the
above version of TC on Win XP. My JAVA_HOME is set as an environment
variable, and in the top of my startup.bat I am setting CATALINA_HOME:

rem $Id: startup.bat,v 1.6 2004/05/27 18:25:11 yoavs Exp $
rem

---
set CATALINA_HOME=C:\dev\jakarta-tomcat-5.0.27
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%

When running this file from the command prompt I get:

23/07/2004 16:14:25 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.
j
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)

I immediately looked at what was using port 8080 (nothing to my
knowledge) and this was confirmed. I ran netstat which confirmed that
port 8080 was not in use.
TC appears to have started, but http://localhost:8080 (with
numerous stacktraces (above)) is showing a 404. Am I illegally setting
CATALINA_HOME?

Thanks

Paul.





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



RE: TC 5.0.27 startup problem

2004-07-23 Thread Paul Wallace
Hi  thanks,
A reboot sorted it. Netstat is not a reliable means to check what ports are 
being used by which app then?

Regards

Paul.

You definitively have a process using 8080 :
either a tomcat process, still running, or another program (oracle,...)
Check all your current process, or simply reboot.


-Message d'origine-
De : Paul Wallace [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 23 juillet 2004 08:40
À : Tomcat Users List
Objet : TC 5.0.27 startup problem


Hi,
A seemingly simple one, but not for I! I am trying to setup the
above version of TC on Win XP. My JAVA_HOME is set as an environment
variable, and in the top of my startup.bat I am setting CATALINA_HOME:

rem $Id: startup.bat,v 1.6 2004/05/27 18:25:11 yoavs Exp $
rem

---
set CATALINA_HOME=C:\dev\jakarta-tomcat-5.0.27
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%

When running this file from the command prompt I get:

23/07/2004 16:14:25 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.
j
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)

I immediately looked at what was using port 8080 (nothing to my
knowledge) and this was confirmed. I ran netstat which confirmed that
port 8080 was not in use.
TC appears to have started, but http://localhost:8080 (with
numerous stacktraces (above)) is showing a 404. Am I illegally setting
CATALINA_HOME?

Thanks

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: /commons vs /shared

2004-07-16 Thread Lee, Paul NYC
Check out this link:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html

-Original Message-
From: Insyde [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 16, 2004 9:52 AM
To: Tomcat Users List
Subject: /commons vs /shared


What is the difference between /commons and /shared directories of Tomcat?
Is possible to update classes in these directories and get this update in my
web applications without Tomcat restart? (Perhaps with web application
restart/reload)

Thanks

Maurício Kanada

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



Re: Session Replication w/o Multicast

2004-07-13 Thread Paul Gregoire
You could save your sessions in an RDBMS, but I'm not sure how 
responsive this would be...

Jeremy Nix wrote:
Is there currently a way of replicating session information across
multiple tomcat nodes without multicasting?  If not, has any extended
the Tomcat API to support this?  The reason I ask is because we are
using a hardware load balancer, and it does not support multi-casting.
One thought is that we could upgrade our hardware to a load balancer
that supports this (not sure one even exists), but I'm sure that there
are other means of performing replication besides multicasting.  Using
a database as the session persistence layer is one thought.  Direct
tomcat node to tomcat node in memory session replication is another
thought.
Just thought I'd see what ideas/solutions are out there.
_
Jeremy Nix
Senior Application Developer
Southwest Financial Services, LTD.
(513) 621-6699 x1158
www.sfsltd.com
   

 



queueing concurrent server requests

2004-07-12 Thread Paul Wallace
Hi All,
Can someone point me in the right (any) direction towards info on
queuing concurrent Tomcat server requests? I propose to queue concurrent
requests to Tomcat, if they exceed a given number. Where might I find
documentation, or any other resource, to assist?
 
thanks
 
Paul.  


Re: Como funciona tomcat en Fedora Core 2

2004-07-02 Thread Paul Gregoire
The internet provides many options for translation.
El Internet proporciona muchas opciones para la traducción.
http://babelfish.altavista.com/
or
http://www.google.com/language_tools
Randall Svancara wrote:
make that port 8080
-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 10:06 AM
To: Tomcat Users List
Subject: RE: Como funciona tomcat en Fedora Core 2
If you have everything set up correctly, you should see the index.html file in the ROOT webapp of the tomcat servlet engine.  On fedora core2, look at your firewall rules to see if you have port 80 enabled.  

Sorry, my spanish is horribleno hablo espanol, que mal me amigo!!
Later.
-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 10:01 AM
To: Tomcat Users List
Subject: RE: Como funciona tomcat en Fedora Core 2

This is an english list, you may have more luck if you can get someone to translate.
Ta
Matt
-Original Message-
From: Sergio E. Triviño I. [mailto:[EMAIL PROTECTED]
Sent: 02 July 2004 16:40
To: Tomcat Users List
Subject: Como funciona tomcat en Fedora Core 2
Hola Lista
Instale Fedora Core 2, veo que viene el servicio tomcat e inclusive sube el servicio tomcat OK. Pero como lo acceso? 
Yo pense que era por lo normal http://localhost:8080 pero no funciona. Mi pregunta es que tengo que hacer para que funcione o como tengo que hacer la prueba para correr JSP.

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

 

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


RE: Tomcat + Apache + SSL

2004-07-01 Thread Lee, Paul NYC
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html

-Original Message-
From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 01, 2004 1:13 PM
To: Tomcat Users List
Subject: Tomcat + Apache + SSL
Importance: High


Hi,

Where can I find info about configuring Tomcat 5 and Apache 2, so I can
access apps thru SSL port 443.

Do I need only to install a certificate in Apache and with port 443, the
plugin connects directly.

Thanks

Lorenzo Jimenez


_ 
Lorenzo A. Jimenez Briceno
WebMaster
Banco Internacional de Costa Rica
( (506) 243-1077
1 (506) 243-1075
- [EMAIL PROTECTED]

BICSA ¡Un mundo de servicios financieros a su alcance! 
http://www.bicsa.com
7/1/2004 11:12 AM
Este mensaje puede ser confidencial. Si usted no es la persona a quien se
debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA
no acepta responsabilidad legal por ningún daño causado por virus, errores u
omisiones en el contenido de este mensaje. Todo uso o divulgación no
autorizado está prohibido. Gracias. 

This message may be confidential. If you are not the intended recipient,
please notify us immediately and delete this message. BICSA does not accept
liability for any damage caused by virus, errors, or omissions in the
contents of this message. Any unauthorized use or disclosure of its contents
is prohibited. 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: no connection pool

2004-06-30 Thread Lee, Paul NYC
He means that when you first install tomcat there is no pool configured.  

-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:33 PM
To: Tomcat Users List
Subject: RE: no connection pool


Do you mean that if no maxActive parameter, there is no pool?

Thanks,
Yana

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:28 PM
To: Tomcat Users List
Subject: RE: no connection pool


Hi,
It doesn't do any connection pooling by default.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 2:21 PM
To: [EMAIL PROTECTED]
Subject: no connection pool

Hi,

How can I set tomcat not to use connection pool option?






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]



RE: no connection pool

2004-06-30 Thread Lee, Paul NYC
In Server.xml, remove all the Resource  and ResourceParams ... tags
that define your pool.

-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:38 PM
To: Tomcat Users List
Subject: RE: no connection pool


So what should I do to disable it after it already configured?


-Original Message-
From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:36 PM
To: 'Tomcat Users List'
Subject: RE: no connection pool

He means that when you first install tomcat there is no pool configured.


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:33 PM
To: Tomcat Users List
Subject: RE: no connection pool


Do you mean that if no maxActive parameter, there is no pool?

Thanks,
Yana

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 2:28 PM
To: Tomcat Users List
Subject: RE: no connection pool


Hi,
It doesn't do any connection pooling by default.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yana Begun [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 2:21 PM
To: [EMAIL PROTECTED]
Subject: no connection pool

Hi,

How can I set tomcat not to use connection pool option?






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]

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



RE: jspc

2004-06-27 Thread Paul Wallace
Hi Jason,
Yes, it was of help. Thanks for your lengthy insight.

Paul.

Hi Paul,

To specify a path for your compilation results use the
-d option like so:

jspc.sh -compile -d /jakarta-tomcat-5.0.25/webapps
myapp/WEB-INF/classes ...the rest of you compile
options...

It will build any subdirs required using the directory
you specify, along with the package name you give it
(org.apache.jsp if you don't specify a package name)
as the root directory for any subdirs.   

As for the work directory that is where Tomcat places
any jsps that it has to compile (i.e. non-precompiled
jsps) during runtime.  If you run Tomcat with
uncompiled jsps and walk though your app in a browser
you will see compiled JSPs appear in the work
directory.  It will create subdirs, etc. to mimic your
applications directory structure and place compiled
versions there.  You could just place your compiled
jsps in the same respective places in the work
directory before starting Tomcat and it would probably
work.  BUT, Tomcat will only expand .war files into
the webapps directory so you have no way of packaging
up these compiled files from the work directory and
automatically expanding them into another work
directory at Tomcat startup.  That would have to be a
manual process by the end user (or an install script).
 It is not the recommended deployment strategy.  It
does save you from having to worry about having the
web.xml mappings correct though.  Tomcat will check
first in the work directory for a compiled jsp and
then look for an uncompiled version if it doesn't find
one there.  No mappings in web.xml are required.

In answer to another related question I saw posted:

If you precompile your JSPs and then remove the
original JSPs you need to have two things for your app
to run:

1.  The compiled JSP class files need to be copied
over to the WEB-INF/classes directory with the correct
directory structure.  (The exact directory with be the
package name (org.apache.jsp by default) plus any
subdirs the JSP existed in under you apps root folder.
i.e. if under webapps/yourapp you had a jsp in a
directory subdir1/subdirB then under you
WEB-INF/classes directory you would need a directory
called org/apache/jsp/subdir1/subdirB and you would
place that compiled JSP class there.  The easiest way
to do this is to run your compile with the -d option
as stated above and point the output to your
WEB-INF/classes directory.  jspc in Tomcat 5.x should
automatically create the correct subdir structure and
place the class file in it.

2.  Yuo need servlet definitions and mappings that
tell Tomcat If someone requests this .jsp execute
this servlet instead.  These go in the web.xml file
for your app.  jspc will create a complete file or
just a fragment file that contains all the mappings. 
You can tell it explicitly to create a fragment file
with the -webinc option like so:

-webinc
/jakarta-tomcat-5.0.25/webapps/myapp/WEB-INF/my_web_fragment.xml

I think it creates a complete web.xml if you use this
option

-webxml
/jakarta-tomcat-5.0.25/webapps/myapp/WEB-INF/my_complete_web.xml

In this case you just have to rename the file web.xml
and place it in you app's WEB-INF directory.

If you don't do BOTH of these things, then Tomcat
won't know where to look for your compiled JSPs and
will instead look for the actual .jsp.  Finding
nothing it will throw a 404 error.

I hope this is helpful.

Jason

--- Paul Wallace [EMAIL PROTECTED] wrote:
 (sorry, wrong key!)
 
 Hi Jason,
   Thanks for that. Yes, it does make sense. A couple
 of things
 though, I just ran it with -compile - great. But my
 query about the work
 directory and was more towards what I am being
 'encouraged' to do from
 the powers that be. I.e not WAR the app., but put it
 in the work
 directory. Is this ill-advised/poor practice?
   To accomplish this, is it as simple as dragging the
 compiled
 source under my work directory, and modifying my
 web.xml as advised? 
   Why does -compile work, but not appear in the
 usage?! 
   Also, can I specify a path for the compilation,
 rather than the
 classes be placed in the same dirs as the source? (I
 tried adding a path
 after the -compile switch, but it constructed and
 compiled a file with
 the same name as the class directory destination).  
 
 Do I make sense?!
 
 Paul.   
 
 Paul,
 
 I just use the -compile option and have jspc do the
 compilation from .java to .class for me.  It seems
 to
 work fairly well.  Once all the fully compiled (ie
 .class) files are placed in you applications
 WEB-INF/classes directory you just need to place the
 generated web.xml file in WEB-INF.  There is an
 option
 to create a complete web.xml file that you can place
 in WEB-INF or, if you already have a web.xml file
 you
 want to keep, you can have jspc create an xml
 fragment
 that just contains the servlet definitions and
 mappings that you then add (in the appropriate
 place)
 to your existing web.xml.  Then just war up you
 application

jspc

2004-06-24 Thread Paul Wallace
Hello,
I have compiled my JSPs thus: 

jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot
C:\src\site
 
this builds the Java source files to the specified location, but how
might I deploy them?
 
What is a typical deployment after a JSP compilation? Compilation of
Java source files, then WAR/JAR? Can I not define the JSP compile to go
under my work directory?
 
The purpose of my efforts is to try and speed up / make TC less memory
consumptive.
 
cheers
 
Paul.
 
 


RE: jspc

2004-06-24 Thread Paul Wallace
Hi Jason,
Thanks for that. Yes, it does make 

Paul,

I just use the -compile option and have jspc do the
compilation from .java to .class for me.  It seems to
work fairly well.  Once all the fully compiled (ie
.class) files are placed in you applications
WEB-INF/classes directory you just need to place the
generated web.xml file in WEB-INF.  There is an option
to create a complete web.xml file that you can place
in WEB-INF or, if you already have a web.xml file you
want to keep, you can have jspc create an xml fragment
that just contains the servlet definitions and
mappings that you then add (in the appropriate place)
to your existing web.xml.  Then just war up you
application directory in the normal way (you can even
delete the jsps once your certain the servlet mappings
are working). 
   If you try to put the generated files in your
working directory you won't be able to war them up and
deploy them in the normal put war file under webapps
directory and tomcat will expand it when it starts
way.  You'd have to ship a complete tomcat directory
structure with the work directory already filled in
with your compiled jsps.  Does that make sense?

Jason

--- Paul Wallace [EMAIL PROTECTED] wrote:
 Hello,
 I have compiled my JSPs thus: 
 
 jspc -webapp C:\src\site -d C:\src\site\classes -s
 -l -uriroot
 C:\src\site
  
 this builds the Java source files to the specified
 location, but how
 might I deploy them?
  
 What is a typical deployment after a JSP
 compilation? Compilation of
 Java source files, then WAR/JAR? Can I not define
 the JSP compile to go
 under my work directory?
  
 The purpose of my efforts is to try and speed up /
 make TC less memory
 consumptive.
  
 cheers
  
 Paul.
  
  
 




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_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: jspc

2004-06-24 Thread Paul Wallace
(sorry, wrong key!)

Hi Jason,
Thanks for that. Yes, it does make sense. A couple of things
though, I just ran it with -compile - great. But my query about the work
directory and was more towards what I am being 'encouraged' to do from
the powers that be. I.e not WAR the app., but put it in the work
directory. Is this ill-advised/poor practice?
To accomplish this, is it as simple as dragging the compiled
source under my work directory, and modifying my web.xml as advised? 
Why does -compile work, but not appear in the usage?! 
Also, can I specify a path for the compilation, rather than the
classes be placed in the same dirs as the source? (I tried adding a path
after the -compile switch, but it constructed and compiled a file with
the same name as the class directory destination).  

Do I make sense?!

Paul.   

Paul,

I just use the -compile option and have jspc do the
compilation from .java to .class for me.  It seems to
work fairly well.  Once all the fully compiled (ie
.class) files are placed in you applications
WEB-INF/classes directory you just need to place the
generated web.xml file in WEB-INF.  There is an option
to create a complete web.xml file that you can place
in WEB-INF or, if you already have a web.xml file you
want to keep, you can have jspc create an xml fragment
that just contains the servlet definitions and
mappings that you then add (in the appropriate place)
to your existing web.xml.  Then just war up you
application directory in the normal way (you can even
delete the jsps once your certain the servlet mappings
are working). 
   If you try to put the generated files in your
working directory you won't be able to war them up and
deploy them in the normal put war file under webapps
directory and tomcat will expand it when it starts
way.  You'd have to ship a complete tomcat directory
structure with the work directory already filled in
with your compiled jsps.  Does that make sense?

Jason

--- Paul Wallace [EMAIL PROTECTED] wrote:
 Hello,
 I have compiled my JSPs thus: 
 
 jspc -webapp C:\src\site -d C:\src\site\classes -s
 -l -uriroot
 C:\src\site
  
 this builds the Java source files to the specified
 location, but how
 might I deploy them?
  
 What is a typical deployment after a JSP
 compilation? Compilation of
 Java source files, then WAR/JAR? Can I not define
 the JSP compile to go
 under my work directory?
  
 The purpose of my efforts is to try and speed up /
 make TC less memory
 consumptive.
  
 cheers
  
 Paul.
  
  
 




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_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: jspc

2004-06-24 Thread Paul Wallace
In an effort to increase speed/free up memory that otherwise might be
consumed by Tomcat otherwise

Why would you precompile jsp files?

On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace [EMAIL PROTECTED] 
wrote:

 (sorry, wrong key!)

 Hi Jason,
   Thanks for that. Yes, it does make sense. A couple of things
 though, I just ran it with -compile - great. But my query about the
work
 directory and was more towards what I am being 'encouraged' to do from
 the powers that be. I.e not WAR the app., but put it in the work
 directory. Is this ill-advised/poor practice?
   To accomplish this, is it as simple as dragging the compiled
 source under my work directory, and modifying my web.xml as advised?
   Why does -compile work, but not appear in the usage?!
   Also, can I specify a path for the compilation, rather than the
 classes be placed in the same dirs as the source? (I tried adding a
path
 after the -compile switch, but it constructed and compiled a file with
 the same name as the class directory destination).

 Do I make sense?!

 Paul.

 Paul,

 I just use the -compile option and have jspc do the
 compilation from .java to .class for me.  It seems to
 work fairly well.  Once all the fully compiled (ie
 .class) files are placed in you applications
 WEB-INF/classes directory you just need to place the
 generated web.xml file in WEB-INF.  There is an option
 to create a complete web.xml file that you can place
 in WEB-INF or, if you already have a web.xml file you
 want to keep, you can have jspc create an xml fragment
 that just contains the servlet definitions and
 mappings that you then add (in the appropriate place)
 to your existing web.xml.  Then just war up you
 application directory in the normal way (you can even
 delete the jsps once your certain the servlet mappings
 are working).
If you try to put the generated files in your
 working directory you won't be able to war them up and
 deploy them in the normal put war file under webapps
 directory and tomcat will expand it when it starts
 way.  You'd have to ship a complete tomcat directory
 structure with the work directory already filled in
 with your compiled jsps.  Does that make sense?

 Jason

 --- Paul Wallace [EMAIL PROTECTED] wrote:
 Hello,
 I have compiled my JSPs thus:

 jspc -webapp C:\src\site -d C:\src\site\classes -s
 -l -uriroot
 C:\src\site

 this builds the Java source files to the specified
 location, but how
 might I deploy them?

 What is a typical deployment after a JSP
 compilation? Compilation of
 Java source files, then WAR/JAR? Can I not define
 the JSP compile to go
 under my work directory?

 The purpose of my efforts is to try and speed up /
 make TC less memory
 consumptive.

 cheers

 Paul.






   
 __
 Do you Yahoo!?
 Yahoo! Mail Address AutoComplete - You start. We finish.
 http://promotions.yahoo.com/new_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]




-- 
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: jspc

2004-06-24 Thread Paul Wallace
Hi,
Yes..that is what I thought, but I learned from a 'reliable'
source I could accomplish this on saving overhead. So rather than
looking into the whys and whats, I looked into how to do it, and look
into the performance benefits later. I will provide the list with my
sources reasoning, when it becomes available! 
A thought..and to answer a question with a question (Why would
you precompile jsp files?), why is jspc there? If only to increase
performance on the first hit?

Thanks

Paul. 

It will increase speed on the first viewing of the jsp, but after that I

can't see how there will be any difference.  How much memory can you
save 
if any?  And how would that work?

Thanks

On Fri, 25 Jun 2004 11:12:44 +1000, Paul Wallace [EMAIL PROTECTED] 
wrote:

 In an effort to increase speed/free up memory that otherwise might be
 consumed by Tomcat otherwise

 Why would you precompile jsp files?

 On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace [EMAIL PROTECTED]
 wrote:

 (sorry, wrong key!)

 Hi Jason,
  Thanks for that. Yes, it does make sense. A couple of things
 though, I just ran it with -compile - great. But my query about the
 work
 directory and was more towards what I am being 'encouraged' to do
from
 the powers that be. I.e not WAR the app., but put it in the work
 directory. Is this ill-advised/poor practice?
  To accomplish this, is it as simple as dragging the compiled
 source under my work directory, and modifying my web.xml as advised?
  Why does -compile work, but not appear in the usage?!
  Also, can I specify a path for the compilation, rather than the
 classes be placed in the same dirs as the source? (I tried adding a
 path
 after the -compile switch, but it constructed and compiled a file
with
 the same name as the class directory destination).

 Do I make sense?!

 Paul.

 Paul,

 I just use the -compile option and have jspc do the
 compilation from .java to .class for me.  It seems to
 work fairly well.  Once all the fully compiled (ie
 .class) files are placed in you applications
 WEB-INF/classes directory you just need to place the
 generated web.xml file in WEB-INF.  There is an option
 to create a complete web.xml file that you can place
 in WEB-INF or, if you already have a web.xml file you
 want to keep, you can have jspc create an xml fragment
 that just contains the servlet definitions and
 mappings that you then add (in the appropriate place)
 to your existing web.xml.  Then just war up you
 application directory in the normal way (you can even
 delete the jsps once your certain the servlet mappings
 are working).
If you try to put the generated files in your
 working directory you won't be able to war them up and
 deploy them in the normal put war file under webapps
 directory and tomcat will expand it when it starts
 way.  You'd have to ship a complete tomcat directory
 structure with the work directory already filled in
 with your compiled jsps.  Does that make sense?

 Jason

 --- Paul Wallace [EMAIL PROTECTED] wrote:
 Hello,
 I have compiled my JSPs thus:

 jspc -webapp C:\src\site -d C:\src\site\classes -s
 -l -uriroot
 C:\src\site

 this builds the Java source files to the specified
 location, but how
 might I deploy them?

 What is a typical deployment after a JSP
 compilation? Compilation of
 Java source files, then WAR/JAR? Can I not define
 the JSP compile to go
 under my work directory?

 The purpose of my efforts is to try and speed up /
 make TC less memory
 consumptive.

 cheers

 Paul.






  
 __
 Do you Yahoo!?
 Yahoo! Mail Address AutoComplete - You start. We finish.
 http://promotions.yahoo.com/new_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]







-- 
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: Easy /servlet question

2004-06-23 Thread Lee, Paul NYC
Tomcat 3.x allowed access to servlets under a common mapping (/servlet/*) by
default.  In Tomcat 4.x the developers stopped this behavior by default.
This was done by the invoker servlet.  

To enable this, under $CATALINA_HOME/conf, modify the web.xml file.  Search
for invoker and you should find something like this:

!-- The mapping for the invoker servlet --
!--
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
--

Just uncomment and it should work.  Note that /servlet/ is no longer part
of the specification as of 2.3.  Mapping it is recommended.

Regards,
Paul

-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 4:29 PM
To: [EMAIL PROTECTED]
Subject: Easy /servlet question


I have a very simple question, to which neither I nor my wife can find the
answer.

My servlet is in the WEB-INF/classes directory of my application directory.
For some reason, I can't get this simple construction--it's in all the JSP
books--to work:

http://127.0.0.1:8080/e-Denton/servlet/Upload_CnW


I get this error:

HTTP Status 404 - /e-Denton/servlet/Upload_CnW
message /e-Denton/servlet/Upload_CnW
description The requested resource (/e-Denton/servlet/Upload_CnW) is not
available.

I can get it to wotk with a sevlet mapping, but not without it.



-
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: my jsps don't work anymore :(

2004-06-23 Thread Lee, Paul NYC
Can you post your error message?

You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that doesn't
work.  Does it with localhost?

-Original Message-
From: Casas, Claudia [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 23, 2004 3:16 PM
To: Tomcat Users List
Subject: my jsps don't work anymore :(


 
I have no idea what happened! Yesterday everything was working beautifully.
Today all I did was to restart the server, and now my jsps do not work from
my home directories.
 
If I access http://localhost:8080/examples  or http://localhost/examples ,
it works fine. But if I try to access a jsp from my homedir
http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get type
Status report message /myacct/index.jsp description The requested resource
(/myacct/index.jsp) is not available. I have added the following to the
server.xml file:
Context path=/myacct docBase=/home/myacct/wwwdocs debug=0

reloadable=true crossContext=true
/Context
It seemed to be working. I have no idea what is going on.
 
!-- Claudia Casas
Technology does not drive change -- it enables change. 
 

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



RE: contextInitialized being called exactly twice

2004-06-10 Thread Paul Wallace
Hi Yoav,
On the same note, I was experiencing the same frustration, but I
was not deploying any WAR. Could this be the reason for my 2 *
execution, even though I had not packaged my classes into a WAR?

Many thanks

Paul.

Hi
I bet it's being called once for each time the context is deployed, and
the context is deployed twice because you have autoDeploy on AND an
explicit context declaration in your server.xml/conf directory/WAR.
Turn autoDeploy off and see what happens.

(This would explain the static counter being 1: the counter is static
once per classloader repository, you have two of the same context at
different paths with different classloader repositories).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Graham Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 12:32 PM
To: [EMAIL PROTECTED]
Subject: contextInitialized being called exactly twice

Hi,

I am absolutely stumped by this problem. For some reason that I can't
fathom the contextInitialized method on a ServletContextListener I have
in one of my web applications is being called twice. Normally this
isn't
a problem since it only causes the load process to take longer but I
have recently added a new section that starts a daemon thread and it
this double call is causing two threads to be created. What is even
more
bizarre is that I have tried using a static int to count the number of
times the method is called but it always returns one. I suspected that
it therefore must be created by a different class loader but a call to
getClass().getClassLoader and a dump (see below) of information would
seem to indicate that it is in fact the same class loader loading the
class. I am using tomcat 5.0.25 on Linux with Java 1.4.2_04. I have
also
performed a thread dump in order to check that it is _really_ being run
twice and sure enough there are two copies of my thread running (again
see extract below).

Any help would be greatly appreciated.

Graham

ClassLoader dump:

First time it is loaded

ClassLoader: WebappClassLoader
   delegate: false
   repositories:
-- Parent Classloader:
StandardClassLoader
   delegate: true
   repositories:
 file:/home/gms/dump/tomcat/shared/classes/
-- Parent Classloader:
StandardClassLoader
   delegate: true
   repositories:
 file:/home/gms/dump/tomcat/common/classes/
 file:/home/gms/dump/tomcat/common/endorsed/xercesImpl.jar
 file:/home/gms/dump/tomcat/common/endorsed/xmlParserAPIs.jar
 file:/home/gms/dump/tomcat/common/lib/ant.jar
 file:/home/gms/dump/tomcat/common/lib/commons-collections.jar
 file:/home/gms/dump/tomcat/common/lib/commons-dbcp-1.1.jar
 file:/home/gms/dump/tomcat/common/lib/commons-el.jar
 file:/home/gms/dump/tomcat/common/lib/commons-pool-1.1.jar
 file:/home/gms/dump/tomcat/common/lib/jasper-compiler.jar
 file:/home/gms/dump/tomcat/common/lib/jasper-runtime.jar
 file:/home/gms/dump/tomcat/common/lib/jsp-api.jar
 file:/home/gms/dump/tomcat/common/lib/naming-common.jar
 file:/home/gms/dump/tomcat/common/lib/naming-factory.jar
 file:/home/gms/dump/tomcat/common/lib/naming-java.jar
 file:/home/gms/dump/tomcat/common/lib/naming-resources.jar
 file:/home/gms/dump/tomcat/common/lib/servlet-api.jar
-- Parent Classloader:
[EMAIL PROTECTED]



Second time it is loaded


ClassLoader: WebappClassLoader
   delegate: false
   repositories:
-- Parent Classloader:
StandardClassLoader
   delegate: true
   repositories:
 file:/home/gms/dump/tomcat/shared/classes/
-- Parent Classloader:
StandardClassLoader
   delegate: true
   repositories:
 file:/home/gms/dump/tomcat/common/classes/
 file:/home/gms/dump/tomcat/common/endorsed/xercesImpl.jar
 file:/home/gms/dump/tomcat/common/endorsed/xmlParserAPIs.jar
 file:/home/gms/dump/tomcat/common/lib/ant.jar
 file:/home/gms/dump/tomcat/common/lib/commons-collections.jar
 file:/home/gms/dump/tomcat/common/lib/commons-dbcp-1.1.jar
 file:/home/gms/dump/tomcat/common/lib/commons-el.jar
 file:/home/gms/dump/tomcat/common/lib/commons-pool-1.1.jar
 file:/home/gms/dump/tomcat/common/lib/jasper-compiler.jar
 file:/home/gms/dump/tomcat/common/lib/jasper-runtime.jar
 file:/home/gms/dump/tomcat/common/lib/jsp-api.jar
 file:/home/gms/dump/tomcat/common/lib/naming-common.jar
 file:/home/gms/dump/tomcat/common/lib/naming-factory.jar
 file:/home/gms/dump/tomcat/common/lib/naming-java.jar
 file:/home/gms/dump/tomcat/common/lib/naming-resources.jar
 file:/home/gms/dump/tomcat/common/lib/servlet-api.jar
-- Parent Classloader:
[EMAIL PROTECTED]




Extract of thread dump

tomcat4127 standalone install login problem

2004-06-04 Thread Paul
just installed a standalone version of jakarta-tomcat-4.1.27-LE-jdk14.exe on win2k, 
with jdk 14, and when i type http://localhost:8080 into web browser, get following 
response:

401 Unauthorized  {up in top line of browser instance}

enter username and password for XDB at localhost:8080  {is text in browser dialog 
prompt box}

yet no username/password combination is accepted, including that for admin.

anyone know what is going on here?

-paul


RE: Remote Start / Stop of tomcat

2004-05-31 Thread Paul Wallace
Can one achieve this (Tomcat restart) using a mobile device? WAP? I
suppose that violates all manner of security protocols?

Paul.




On Mon, May 31, 2004 at 09:49:38AM +0530, [EMAIL PROTECTED]
wrote:
: Once in a week I need to restart Tomcat due to OutofMemoryError. But
I do
: not have access to the server for doing this. So, I am looking for a
: mechanism (if possible) to start / stop Tomcat remotely. Is this
possible?

Something of this nature was recently discussed on the list.

I have a written a tool to do just this, called ListenExec.  It's a
socket listener that performs some rudimentary authentication and
executes commands.  You can telnet to the listener's port and have it
restart your Tomcat process.

You can download it from:

http://downloads.brandxdev.net/tomcat-479785/

Note that this version is still pretty rough; I will soon have time to
clean it up.  The basic functionality is there, though.

Run it with commons-daemon.

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



registering Tomcat as service

2004-05-28 Thread Paul Wallace
Hello, 
I installed Tomcat, formally run from the console. I am now trying
to get it to run as a service. I have in the registry:
 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tomcat\Parameters:
 
JVM Option Count   REG_DWORD0X0004 (4)
 
JVM Option Number 0 REG_SZ-Xms256m
JVM Option Number 1 REG_SZ-Xmx512m
JVM Option Number 2 REG_SZ
-Djava.class.path=C:\eCommerce\Tomcat-4.1.30\bin\bootstrap.jar;C:\eComme
rce\Tomcat-4.1.30\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar
JVM Option Number 3 REG_SZ
-Dcatalina.home=C:\eCommerce\Tomcat-4.1.30
 
the paths are correct (JDK/Tomcat) but when I try to start Tomcat from
the service window, I get a popup:
 
The Tomcat Service on a Local Computer started and then stopped. Some
services stop automatically if they have no work to do, for example, the
Performance Logs and Alerts service 
 
The service does not subsequently run. Now my service may not have any
work to do, but I most certainly do.  
 
Any info is much appreciated.
 
Paul.
 
 


Connection timeout when using OutputStream

2004-05-28 Thread Paul Mitchell
Hello,
  I am running into problems with downloading unusually big files within my
application using the ServletOutputStream.
From what I read on the documentation I set the Coyote Connector attribute
connectionTimeout=-1 and still the problem persists.
Any ideas/advice anyone ?

Thanks,
Paul.




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: Connection timeout when using OutputStream

2004-05-28 Thread Paul Mitchell
I forgot to mention - I am running Tomcat 4.1.27 on Win2K.

Thanks.
--- Paul Mitchell [EMAIL PROTECTED] wrote:
 Hello,
   I am running into problems with downloading unusually big files within my
 application using the ServletOutputStream.
 From what I read on the documentation I set the Coyote Connector attribute
 connectionTimeout=-1 and still the problem persists.
 Any ideas/advice anyone ?
 
 Thanks,
 Paul.
 
 
   
   
 __
 Do you Yahoo!?
 Friends.  Fun.  Try the all-new Yahoo! Messenger.
 http://messenger.yahoo.com/ 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



SynchronizerToken pattern

2004-05-26 Thread Paul Ivancsics
We recently brought a Tapestry app into operation, about 80 pages
and components.
My colleague Bernhard Woditschka implemented the SynchronizerToken
there from Core J2EE Patterns by Alur, Crupi and Malks
(http://www.refactoring.com/catalog/introduceSynchronizerToken.html),
addressing the following issues:
- prevent use of browser Back button
- prevent multiple concurrent submissions of a form
- prevent operation in multiple browser windows using the same HTTP session
The implementation is 100% server side, and it is somewhat strict in
that upon detecting disallowed action on any page, an error page is
activated in any case.
Design summary:
---
The Visit object holds a FlowSynchronizer object responsible for
generating and comparing a unique token.
On every protected page, a hidden field is included in the form:
   input jwcid=@Hidden value=ognl:visit.flowSynchronizer.token/
This field holds a token which is generated by the FlowSynchronizer
when the page is rendered.
Upon form submission, the token parameter passed with the form is
compared to the token recently generated. A discrepancy triggers a
FlowSequenceException resulting in the Exception page rendered.
A match consumes the token so a subsequent duplicate submission fails.
The Exception page renders, depending on the exception thrown,
either the general error text, or an error text specific to the
FlowSequenceException.
Feel free to utilise or comment on this posting.
Paul Ivancsics
--
Anecon Software Design und Beratung G.m.b.H.
Vienna, Austria
FlowSynchronizer.java:
--
import java.io.Serializable;
/**
  * Implementation of Synchronizer Token J2EE Patterns for Tapestry.
  *
  * Inclusion in Tapestry page template:
  * code
  * lt;input jwcid=@Hidden 
value=ognl:visit.flowSynchronizer.token/gt;
  * /code
  *
  * In case of a 2nd form in the same page:
  * code
  * lt;input jwcid=@Hidden
value=ognl:visit.flowSynchronizer.tokenCopy/gt;
  * /code
  *
  * @author Bernhard Woditschka
  */
public class FlowSynchronizer implements Serializable {
 private long sequence;
 private String token;
 public FlowSynchronizer() {
 // initialize the sequence randomly
 sequence = (long) (Math.random() * Long.MAX_VALUE / 2l);
 }
 public String getToken() {
 // generate a new token
 token = Long.toHexString(++sequence);
 return token;
 }
 public String getTokenCopy() {
 return token;
 }
 public void setToken(String token) throws FlowSequenceException {
 // first compare the token
 if (this.token == null || ! this.token.equals(token))
 	throw new FlowSequenceException();
 // reset token on match - subsequent duplicate submission 
will fail
 this.token = null;
 }
 public void setTokenCopy(String tokenCopy) throws 
FlowSequenceException {
 setToken(token);
 }
}

FlowSequenceException.java:
---
/**
  * Signals a page flow exception.
  *
  * @author Bernhard Woditschka
  */
public class FlowSequenceException extends Exception {
 public FlowSequenceException() {
 }
}
Exception.html:
---
span jwcid=@Border
   span jwcid=@Conditional condition=ognl:!flowSequenceError
 !--Block Start: Unhandled Error ++--
			General error text bla bla
 !--Block End: Unhandled Error ++--
   /span
   span jwcid=@Conditional condition=ognl:flowSequenceError
 !--Block Start: Flow sequence Error ++--
 You have been using your browser's Back button, or jadda 
jadda
 !--Block End: Flow sequence Error ++--
   /span
/span

ExceptionPage.java:
---
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.event.PageEvent;
import org.apache.tapestry.event.PageRenderListener;
import org.apache.tapestry.html.BasePage;
import org.apache.tapestry.util.exception.ExceptionAnalyzer;
import org.apache.tapestry.util.exception.ExceptionDescription;
/**
  * The Tapestry Exception page.
  *
  * @author Bernhard Woditschka
  */
public class ExceptionPage extends BasePage implements PageRenderListener {
 // Causing exception
 private Throwable exception;
 // Flag signaling a FlowSequenceException
 private boolean flowSequenceError = false;
 public void pageBeginRender(PageEvent event) {
 IRequestCycle cycle = getRequestCycle();
 if (! cycle.isRewinding()  getException() != null) {
 // find the root cause
 ExceptionDescription[] ed = new 
ExceptionAnalyzer().analyze(getException());
 String rootCauseExceptionName = ed[ed.length - 
1].getExceptionClassName();
 // check for FlowSequenceException
 flowSequenceError = 
FlowSequenceException.class.getName().equals(rootCauseExceptionName);
 }
 }
 public boolean isFlowSequenceError() {
 return flowSequenceError

Re: SynchronizerToken pattern

2004-05-26 Thread Paul Ivancsics
Sorry, wrong list
Paul Ivancsics schrieb:
We recently brought a Tapestry app into operation, about 80 pages
and components...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache startup errors

2004-05-25 Thread Paul Gregoire
I experienced this problem on FreeBSD.. i cant remember what the fix was 
exactly but i can tell you to work around it you will have to make a 
change in your httpd.conf.  I found my fix by pasteing the error into 
Google..

good luck 

Shapira, Yoav wrote:
Hi,
Maybe ask on the Apache httpd mailing list?
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 12:17 PM
To: Tomcat Users List
Subject: Apache startup errors
Guys, Any one has any idea on these errors
When i startup Apache 2.0.43 on Solaris2.8,  I have got these errors.
[Tue May 25 15:45:50 2004] [notice] Digest: generating secret for
   

digest
 

authentication ...
[Tue May 25 15:45:50 2004] [crit] (2)No such file or directory: Digest:
error generating secret: No such file or directory
Configuration Failed
What must i do here??
___
   


 

___
For information about the Standard Bank group visit our web site
www.standardbank.co.za
___
   


 

___
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official
business of Standard Bank Group Limited  is proprietary to the group.
It is confidential, legally privileged and protected by law.
Standard Bank does not own and endorse any other content. Views and
opinions are those of the sender unless clearly stated as being that of
   

the
 

group.
The person addressed in the e-mail is the sole authorised recipient.
   

Please
 

notify the sender immediately if it has unintentionally reached you and
   

do
 

not read,
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication
   

has
 

been maintained nor that it is free of errors, virus, interception or
interference.
___
   


 


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

 


--
(¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯)
The early bird gets the worm, but the second mouse gets the cheese...
ICQ 1202948
(¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯)

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


Re: Any Resource talking abt how Tomcat intergrated to Apache

2004-05-20 Thread Paul Gregoire
You can use mine
http://www.gregoire.org/howto/virtualhost.jk2.html
just make sure you rename the worker= to group= in the
workers2.properties file


Salvador Santander Gutierrez wrote:

http://johnturner.com/howto/apache-tomcat-howto.html

I hope this helkp you

- Original Message - 
From: Eric YH WONG [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 12:09 PM
Subject: Any Resource talking abt how Tomcat intergrated to Apache


Hello,

Does anyone have good resources which talking about how Tomcat v5.X
integrated with Apache v2.0.49 ?

Thx

Eric



-
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: jar and jad with httpd

2004-05-19 Thread Paul Gregoire
For JAD files..
.jad = text/vnd.sun.j2me.app-descriptor
For JAR files...
.jar = application/java-archive
and / or
.jar = application/x-java-archive
kalin mintchev wrote:
hi all
sorry if this isn't the right place for this question...  i just couldn't
find a better place to ask...
i'm trying to figure out if it's possible to serve .jar and .jad files
with the apache httpd to java enabled cell phones. if so what excatly are
the mime types i should map to the extentions...
thanks...
-
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: jar and jad with httpd

2004-05-19 Thread Paul Gregoire
If you mean do i need Tomcat to serve java files then the answer is no 
you dont need Tomcat, serving jad and jar files works just fine without 
any java vm at all on the webserver.

kalin mintchev wrote:
For JAD files..
.jad = text/vnd.sun.j2me.app-descriptor
For JAR files...
.jar = application/java-archive
and / or
.jar = application/x-java-archive
   

thanks a lot...  does that mean i can use the httpd?!
 

kalin mintchev wrote:
   

hi all
sorry if this isn't the right place for this question...  i just couldn't
find a better place to ask...
i'm trying to figure out if it's possible to serve .jar and .jad files
with the apache httpd to java enabled cell phones. if so what excatly are
the mime types i should map to the extentions...
thanks...
-
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]

 


--
(¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯)
The early bird gets the worm, but the second mouse gets the cheese...
ICQ 1202948
(¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯)



Re: Odd deployment problem

2004-05-14 Thread Paul Mitchell
Check your Host unpackWars attribute- it could be
set to false. Try setting it to true.
--- Poorav Sheth [EMAIL PROTECTED] wrote:
 I am using Tomcat 4.1.30 with a SQL Server 7.0
 database. Since I needed a 
 DataSource, I modified the Tomcat server.xml as
 follows:
 
 Context path=/StrutsTest docBase=StrutsTest.war
 debug=1 
 reloadable=true
 Logger
 className=org.apache.catalina.logger.FileLogger 
 prefix=localhost_StrutsTest_log. suffix=.txt
 timestamp=true/
 Resource name=jdbc/FieldProjDB auth=Container 
 type=javax.sql.DataSource /
 ResourceParams name=jdbc/FieldProjDB
 parameter
 namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
 nameuser/name
 valuelab/value
 /parameter
 parameter
 namepassword/name
 valuelab/value
 /parameter
 parameter
 namedriverClassName/name
 valuenet.sourceforge.jtds.jdbc.Driver/value
 /parameter
 parameter
 nameurl/name

valuejdbc:jtds:sqlserver://192.xxx.xx.xx:1433/Development;User=lab;Password=lab/value
 /parameter
 /ResourceParams
 /context
 
 With this configuration, I can get my data source to
 work! But the only 
 thing is that the war file is not unpacked under
 webapps folder but directly 
 under
 %TOMCAT_HOME%/work/Standalone/localhost. I know that
 all deployed apps get 
 listed here subsequently, but why does it not put it
 in webapps folder as 
 well? This is causing the paths in my various
 properties files to fail.
 

_
 Stop worrying about overloading your inbox - get MSN
 Hotmail Extra Storage! 

http://join.msn.click-url.com/go/onm00200362ave/direct/01/
 
 

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





__
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

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



Re: Memory Options

2004-05-11 Thread Paul Mitchell
Posting this again. Anyone run into this problem ever
?

Thanks.
--- Paul Mitchell [EMAIL PROTECTED]
wrote:
 Hello All,
   I am trying to configure Tomcat 4.1.27 on
 Windows XP and for some reason when I set the
 CATALINA_OPTS option in my environment variables,
 the
 catalina jpda start command simple refuses to
 start
 Tomcat. When I remove these options, the command
 works
 just fine.
 The same configuration used to work fine on Windows
 2000. Has anyone else run into this same problem ?
 
 Thanks,
 Paul.
 
 
   
   
 __
 Do you Yahoo!?
 Win a $20,000 Career Makeover at Yahoo! HotJobs  
 http://hotjobs.sweepstakes.yahoo.com/careermakeover 
 

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





__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



Memory Options

2004-05-10 Thread Paul Mitchell
Hello All,
  I am trying to configure Tomcat 4.1.27 on
Windows XP and for some reason when I set the
CATALINA_OPTS option in my environment variables, the
catalina jpda start command simple refuses to start
Tomcat. When I remove these options, the command works
just fine.
The same configuration used to work fine on Windows
2000. Has anyone else run into this same problem ?

Thanks,
Paul.




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



xslt, standalone vs jk2

2004-05-10 Thread Paul
Hi All,

  i setup Oracle's xslt processor successfully in the following environment
with Tomcat running as a standalone web server,

windows 2000
java jdk 1.4
jakarta-tomcat-4.1.27-LE-jdk14.exe
oracle jdbc driver 9.x

however, when i add apache and jk2 connector,

apache_2.0.48-win32-x86-no_ssl.msi
jk2 connector

i can no longer run Oracle's xslt processor, but rather get the standard
'cannot find class' error, given as follows:

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

exception

javax.servlet.ServletException: Error allocating a servlet instance
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:672)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)

root cause

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
 at java.lang.ClassLoader.defineClass0(Native Method)


The required xslt jar files are located in the web apps WEB-INF\lib
directory.

Does anyone have any idea why this setup does not work when Apache and JK2
are introduced, or better yet, what a work-around or fix to this might be???

Anyone else have a problem like this?

-paul.



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



Can't connect from applet

2004-05-07 Thread Celona, Paul - AES

I have developed an applet that can connect to the database and access
the data I need. When I run the same applet under Tomcat, I get the
following exception

Unable to connect to any hosts due to exception
java.security.AccessControlException: access denied
(java.net.SocketPermission 10.1.1.243:3306 connect, resolve)

I only get this exception when I run a browser on the same computer
(10.1.1.243)  that tomcat/mysql are running from. Accessing this from
other browsers on other computers is not a problem. Is this an issue
with MySql or Tomcat or Applets?



This email and any files transmitted with it are proprietary and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email
in error please notify the sender. Please note that any views or opinions presented in 
this email are solely those of the author and do not necessarily represent those of 
ITT Industries, Inc.
The recipient should check this email and any attachments for the presence of viruses. 
ITT Industries accepts no liability for any damage caused by any virus transmitted by 
this
email.


RE: Can't connect from applet

2004-05-07 Thread Celona, Paul - AES

Thank you for the info and the link to the sun site. I'm still not sure
why this applet would work on other workstations and not on the
originating host. I didn't see anything obvious on this web page that
explained that. Do you have any ideas about that?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 12:10 PM
To: Tomcat Users List
Subject: RE: Can't connect from applet


Hi,
It's an applet security issue.  Read http://java.sun.com/sfaq/
especially the part about originating host.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Celona, Paul - AES [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 10:42 AM
To: [EMAIL PROTECTED]
Subject: Can't connect from applet


I have developed an applet that can connect to the database and access
the data I need. When I run the same applet under Tomcat, I get the
following exception


Unable to connect to any hosts due to exception
java.security.AccessControlException: access denied
(java.net.SocketPermission 10.1.1.243:3306 connect, resolve)


I only get this exception when I run a browser on the same computer
(10.1.1.243)  that tomcat/mysql are running from. Accessing this from
other browsers on other computers is not a problem. Is this an issue
with MySql or Tomcat or Applets?



This email and any files transmitted with it are proprietary and
intended
solely for the use of the individual or entity to whom they are
addressed.
If you have received this email
in error please notify the sender. Please note that any views or
opinions
presented in this email are solely those of the author and do not
necessarily represent those of ITT Industries, Inc.
The recipient should check this email and any attachments for the
presence
of viruses. ITT Industries accepts no liability for any damage caused
by
any virus transmitted by this
email.




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]



This email and any files transmitted with it are proprietary and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email
in error please notify the sender. Please note that any views or opinions presented in 
this email are solely those of the author and do not necessarily represent those of 
ITT Industries, Inc.
The recipient should check this email and any attachments for the presence of viruses. 
ITT Industries accepts no liability for any damage caused by any virus transmitted by 
this
email.


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



Re: Starting Tomcat from Apache...

2004-05-06 Thread Paul Gregoire
The real question is has anyone gotten it work work in Linux! It always 
seemed odd to me that it worked in Windows but not Linux.. ;)
Ive got a couple how-to's on my site
http://www.gregoire.org/howto/
One of which shows how to do inprocess with Win32 and Tomcat 4x. I would 
really like to add one for Linux and Tomcat 4 or 5.

Dale, Matt wrote:

Excellent, shall just have to wait on the next release of tomcat then. It was the latest JK2 that I was using with no success but shall be over the moon if this works.

Ta
Matt
-Original Message-
From: Peter Rossbach [mailto:[EMAIL PROTECTED]
Sent: 06 May 2004 18:51
To: Tomcat Users List
Subject: Re: Starting Tomcat from Apache...
Hello,

the JNI working very well, but you must use a mod_jk2 2.0.4 and Tomcat 
Release greater than 5.0.20

Regards
Peter
JimmiSeven Productions Inc. schrieb:

 

That's what I think as well... that inProcess option is just
a waste of time! I hope someone can prove me wrong
though! Has anyone actually gotten that to work?
- Original Message - 
From: Dale, Matt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; JimmiSeven
Productions Inc. [EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 11:48 AM
Subject: RE: Starting Tomcat from Apache...



In theory you should be able to do this with JK2 in inprocess mode. But I'm
fairly confident that this doesnt work at all so you'd have to do it with
your rc startup scripts.
-Original Message-
From: JimmiSeven Productions Inc. [mailto:[EMAIL PROTECTED]
Sent: 06 May 2004 16:33
To: [EMAIL PROTECTED]
Subject: Starting Tomcat from Apache...
Looking to find out how to start up Tomcat automatically
when I start up Apache?
TIA

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




   



 



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



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



XSLT in Tomcat apps

2004-05-05 Thread Paul
does anyone out there use XSLT with Tomcat 4 or 5?
if so, which xslt processor do you use, and how do you make it accessible via Tomcat 
to your web apps?

i cannot seem to find any documentation toward using xslt with Tomcat.

i have been struggling with this issue for days now, so even a vague pointer in the 
right direction would be a great help.
thanks, paul.


Re: domain name help

2004-05-05 Thread Paul
i am not sure, but does this not have to do with setting up a default
startup page in the following Apache config file:  httpd.conf

specifically lines in that file something like as follows,

DocumentRoot C:/Tomcat41/webapps/ROOT
DirectoryIndex index.html index.jsp



- Original Message - 
From: Charles Jordan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 10:32 AM
Subject: domain name help


 I have Apache2, Tomcat 4.1 and jk2 configured and working properly
 when I use http://localhost/examples.
 However, I would like to only have to type http://www.mydomain.com
 (without the /examples) to access the site.
 The problem I am having is that once I get to the examples page,
 none of the jsp or serverlets examples work because the url path is
missing
 examples.

 Am I missing a config setting somewhere?

 Please help.

 Thank you.

 Charles (Allen) Jordan   [EMAIL PROTECTED]
   System Administrator(407)771-8919
   Convergys
   285 International Parkway,
   Lake Mary, FL 32746-5007


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



How does a servlet get a username

2004-05-05 Thread Celona, Paul - AES

How does a servlet get a username from a user that has been
authenticated using either BASIC or FORM authentication?

Paul


This email and any files transmitted with it are proprietary and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email
in error please notify the sender. Please note that any views or opinions presented in 
this email are solely those of the author and do not necessarily represent those of 
ITT Industries, Inc.
The recipient should check this email and any attachments for the presence of viruses. 
ITT Industries accepts no liability for any damage caused by any virus transmitted by 
this
email.


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



Tomcat 4x, configuring for XSLT or XSQL

2004-05-04 Thread Paul
i am trying to run some Oracle .xsql pages.  I have the xslt jar files, but am not 
sure how to add them to the servlet engine so that Tomcat can find them when it 
processes an .xsql file.  Any help would be much appreciated.

software system is as follows:

 windows 2000
 java jdk 1.4
jakarta-tomcat-4.1.27-LE-jdk14.exe
apache_2.0.48-win32-x86-no_ssl.msi
 jk2 connector
 oracle jdbc driver 9.x

class path for Java set in workers2.properties file as follows:

[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
OPT=-Djava.class.path=C:/Tomcat41/bin/tomcat-jni.jar;C:/Tomcat41/server/lib/commons-logging.jar;E:/oracle/ora92/lib/xsu12.jar;E:/oracle/ora92/lib/xmlparserv2.jar;E:/oracle/ora92/lib/oraclexsql.jar;E:/oracle/ora92/xdk/admin
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xms64M
OPT=-Xmx64M
OPT=-Duser.language=en
OPT=-Duser.region=US
#OPT=-Djava.compiler=NONE
disabled=0

however, xsql pages are still not processed, but rather, when run, the source code is 
merely echoed to the screen.

also, i do not know where or how to map the file extension .xsql to the jar file or 
class

-paul.


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