workers2.properties URI config

2005-02-24 Thread Duncan Krebs
Hi,

I've been successful in mapping requests from IIS to tomcat5 but am stuck on
getting requests mapped to the root context. The config properties below is
what I'm trying and I'm not having any luck. I can get to the root context
with no problems when making a direct request on the tomcat port. Also, I
can route all requests just fine to other contexts but the root. Can anyone
see anything wrong? Is this how I should specify the root context? Thanks -
dkrebs

 

 

[uri:/*]

info=map all requests to the root web application

context=/



Re: Meaning of threads

2005-01-24 Thread Sean M. Duncan
What is the impact of having apache httpd allow keep alive requests when
using the AJP connector to tomcat?  Does this have any impact on
tomcat's thread usage?  How well does httpd itself deal with keep alive
pipelines under a heavy user load?

-Sean

On Mon, 2005-01-24 at 16:23 -0600, Filip Hanik - Dev wrote:
 no, think about it a little bit longer, what does a keepalive connection do,
 
 it hogs one thread per client, not per concurrent user. so now other clients 
 will be stuck waiting cause you have keepalive turned
 on, and a user is sitting idle doing nothing, but yet, taking up server 
 resources
 
 Filip
 
 - Original Message -
 From: Dola Woolfe [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Monday, January 24, 2005 3:50 PM
 Subject: Re: Meaning of threads
 
 
 That's counterintuitive, isn't it?
 
 How come?
 
 --- Filip Hanik - Dev [EMAIL PROTECTED] wrote:
 
  the number of threads will depend on the size of
  your machine,
  but to support many concurrent users, you will want
  to turn off keep alive connections, as these will
  have the opposite effect.
 
  Filip
 
  - Original Message -
  From: Dola Woolfe [EMAIL PROTECTED]
  To: Tomcat Users List
  tomcat-user@jakarta.apache.org
  Sent: Monday, January 24, 2005 3:29 PM
  Subject: Re: Meaning of threads
 
 
  Yes, I get the direction this is going in!
 
  I assume that the reason for having threads waiting
  is
  that they take time to be created? And you don't
  want
  to have too many because they take up memory?
 
  I can't resist asking a question about optimal
  values.
  Since the answer is obviously it depends let me
  put
  my question this way. If you were running
  craigslist
  (I assume you've heard of it) what would these
  values
  be? How about ebay?
 
 
  --- Filip Hanik - Dev [EMAIL PROTECTED] wrote:
 
   maxThreads=150
  
   your server can handle a maximum of 150 concurrent
   clients
  
   minSpareThreads=25
   if your server is idle, it will at least have 25
   threads waiting to handle requests
  
   maxSpareThreads=75
   if your server is idle, it will have no more than
  75
   threads waiting to handle requests
  
   you get the direction this is going in, right?
   Filip
  
   - Original Message -
   From: Dola Woolfe [EMAIL PROTECTED]
   To: Tom Cat tomcat-user@jakarta.apache.org
   Sent: Monday, January 24, 2005 2:51 PM
   Subject: Meaning of threads
  
  
   Hi,
  
   Where can I read about the meaning of the
  following
   options: maxThreads=150 minSpareThreads=25
   maxSpareThreads=75
  
   My server tends to lock out a user who bombards it
   with requests so I'm wondering whether those
  options
   have anything to do with it before I post the
   problem
   here.
  
  
   Aaron Fude
  
  
  
   __
   Do you Yahoo!?
   All your favorites on one personal page - Try My
   Yahoo!
   http://my.yahoo.com
  
  
 
 -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
 
 -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
 
 
 
 
 
  __
  Do you Yahoo!?
  Yahoo! Mail - You care about security. So do we.
  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]
 
 
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.
 http://promotions.yahoo.com/new_mail
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 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: What is it mean that Java code does not belong in well designed JSP pages?

2005-01-23 Thread Sean M. Duncan
I work in a shop similar to the one you describe where individuals are
forced to fill multiple roles.  I'm called upon to implement everything
from domain models to navigation menus.  However, I find that keeping
the Java code that appears in JSP to a minimum helps in this situation
as well.  Although I am completely capable of wearing multiple hats, I
do feel that we all benefit from practices that limit the amount of time
we have to wear all those hats at once.  I would also argue the quality
of our work benefits from the increased level of focus such discipline
provides.  Some logic does belong in JSP.  However, the logic that
appears within pages should be limited to display logic.  I've found
that Struts and JSTL are a great combination to accomplish such
separation.

-Sean

On Sun, 2005-01-23 at 10:45 -0500, Frank W. Zammetti wrote:
 I certainly wouldn't presume to speak for Craig, so this is just my own 
 answer...
 
 Scriplets, that is, code in JSPs inside % %, is generally considered a 
 Bad Thing(tm) because it's too easy for business logic to sneak into the 
 presentation.
 
 Now, there is I think room for debate about how far to push that idea. 
 Some people think that a JSP should be absolutely nothing more than a 
 template for display, so you should wind up with nothing but things like 
 $=someVar%, or more correctly, something like bean:write 
 name=myBean property=myVar /.
 
 However, where there is room for debate is whether using any sort of 
 logic whatsoever in a JSP is bad or not.  Taking the JSP as a template 
 only idea to it's fullest extent seems to me to imply that logic in ANY 
 form is to be avoided, and should not be done in a JSP, whether it's 
 using taglibs or not to do it (i.e., logic:equal/ shouldn't even be 
 used because it's logic).  I think this is too extreme and limits the 
 types of applications you can do... try doing the kinds of apps I do for 
 a living for example, which are webapps that look, feel and work like 
 fat clients, and you'll be hard-pressed to pull off the kinds of things 
 I do without some level of logic in JSPs.
 
 That being said, good design dictates that you need to be careful what 
 gets put in your JSPs, whether you use custom tags or not (I'm not a fan 
 of custom tags myself in most cases).  Business logic does NOT belong in 
 JSPs, and indeed anything other than trivial bits of code probably 
 shouldn't be there either.
 
 I'm not entirely sure what the code you posted is doing, but my gut 
 feeling is that it's too much for a JSP.  I do things like this all the 
 time;
 
 %
boolean altRow = false;
String  rowStyle = ;
for (Iterator it = form.getTOAList().iterator(); it.hasNext(); ) {
  if (altRow) {
rowStyle = cssListboxAltRow;
altRow = false;
  } else {
rowStyle = ;
altRow = true;
  }
  HashMap nextItem = (HashMap)it.next();
  BigDecimal toaID = (BigDecimal)nextItem.get(toaID);
  String status = (String)nextItem.get(status);
 %
  tr height=24 class=%=rowStyle%
td%=status%/td
td%=toaID%/td
  /tr
 %
}
 %
 
 ...and some will say that's way too much... let's skip the this should 
 be a custom tag! argument for the time being... This kind of code I see 
 no problem with being in a JSP.  It's strictly presentation-oriented, 
 and isn't extensive.
 
 That being said, NOW we can get to the this shouldn't be there at all 
 argument... it is a perfectly reasonable argument.  In an environment 
 where you have page authors and Java coders, you don't want your page 
 authors to have to see code like that.  In fact, in the perfect 
 environment where it's split exactly right, they wouldn't even know what 
 this code meant.  But, if you had a custom tag that encapsulated that 
 functionality, they could just put showTOAList/ and be done with it. 
 That's the argument for taglibs (the main one anyway).
 
 However, you have to ask yourself what kind of environment your in... I 
 dare say most environments are NOT set up that way... maybe they should 
 be, but I don't think the majority are... most places, your page authors 
 are your Java coders are your database developers are your business 
 analysts, etc.  In that case, I think the argument doesn't carry as much 
 weight.
 
 Eh, I guess I'm off on a bit of a tangent.  Most people will tell you 
 that code in JSPs is to be avoided, and I'm not going out of my way to 
 debate that.  But, I think it's fair to say that if you do have code in 
 JSPs, it should be (a) trivial and (b) strictly presentation-related. 
 Breaking THOSE rules, which by extension breaks the higher rules, is to 
 be avoided at all costs.  Just my opinions.
 
 -- 
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 
 Dola Woolfe wrote:
  I just read this thread and didn't quite understand
  it. If it means what it seems to mean on the surface,
  I'm doing everything wrong.
  
  

shared/lib driving me crazy! RE: shared/lib seems to be ignored

2005-01-20 Thread Duncan, Sean
I've established that no jar files are being loaded from shared/lib.  I've
added the -verbose:class switch to catalin.bat and I'm redirecting the
output to a file.  I've performed a text search for shared\lib within the
file and found no matches.  This is the case for all jar files not just
mine.  To make sure it wasn't just my jar file I placed standard jar files
that Struts depends on in shared/lib and they don't get loaded either.  The
strange thing is that Tomcat is locking the jars while it's running, but
doesn't load classes from them. Can anyone help me?  I'm losing my mind!

-Sean

-Original Message-
From: Duncan, Sean [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 19, 2005 4:47 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: shared/lib seems to be ignored


I've been running into this for a few releases now, but I haven't had time
to resolve it.
 
I'm developing a suite of  web applications that share a common core.  For
various reasons it is important that all of the apps within the suite
reference the core from the same classloader.  All my reading has directed
me toward placing the core jar file in ${CATALINA_HOME}/shared/lib.
Unfortunately from release 4.1.x all the way up to 5.5.x the jar file seems
to be completely ignored when I place it in ${CATALINA_HOME}/shared/lib.  On
the other hand everything works fine when I place it in
${CATALINA_HOME}/common/lib.  Do I have to explicitly configure Tomcat to
look in ${CATALINA_HOME}/shared/lib?
 
Thanks in advance for your time.
 
-Sean

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



RE: shared/lib driving me crazy! RE: shared/lib seems to be ignor ed

2005-01-20 Thread Duncan, Sean
Eureka! I finally found the fix!  For some reason our context fragment had
the priviliged attribute set to true.  Setting this to false makes
everything work as expected.  It is a little confusing given the purpose of
this attribute.  My guess is that priviliged contexts have added security
restrictions that probably would have necessitated modifying catalina.policy
(just a shot).  If anyone of the extreme gurus on this list has more insight
into this weird behavior I would love to hear it.  As far as my immediate
requirements go my apps do not need access to container servlets so setting
priviliged to false works fine.

-Sean

-Original Message-
From: Duncan, Sean [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 20, 2005 10:05 AM
To: 'Tomcat Users List'
Subject: shared/lib driving me crazy! RE: shared/lib seems to be ignored


I've established that no jar files are being loaded from shared/lib.  I've
added the -verbose:class switch to catalin.bat and I'm redirecting the
output to a file.  I've performed a text search for shared\lib within the
file and found no matches.  This is the case for all jar files not just
mine.  To make sure it wasn't just my jar file I placed standard jar files
that Struts depends on in shared/lib and they don't get loaded either.  The
strange thing is that Tomcat is locking the jars while it's running, but
doesn't load classes from them. Can anyone help me?  I'm losing my mind!

-Sean

-Original Message-
From: Duncan, Sean [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 19, 2005 4:47 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: shared/lib seems to be ignored


I've been running into this for a few releases now, but I haven't had time
to resolve it.
 
I'm developing a suite of  web applications that share a common core.  For
various reasons it is important that all of the apps within the suite
reference the core from the same classloader.  All my reading has directed
me toward placing the core jar file in ${CATALINA_HOME}/shared/lib.
Unfortunately from release 4.1.x all the way up to 5.5.x the jar file seems
to be completely ignored when I place it in ${CATALINA_HOME}/shared/lib.  On
the other hand everything works fine when I place it in
${CATALINA_HOME}/common/lib.  Do I have to explicitly configure Tomcat to
look in ${CATALINA_HOME}/shared/lib?
 
Thanks in advance for your time.
 
-Sean

-
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: apache2 + mod_jk + tomcat5.5.4 help

2005-01-17 Thread Sean M. Duncan
Try leaving the className parameter off.  I new versions of Tomcat use
the CoyoteConnector for AJP communication.

The minProcessor and maxProcessor attributes have been deprecated.  Use
maxThreads, minSpareThreads and maxSpareThreads instead.

On Mon, 2005-01-17 at 14:16 -0500, Trung Nguyen wrote:
 Hello,
 
 I'm trying to configure mod_jk with tomcat 5.5.4, but I'm kinda stuck.  I
 did it with tomcat 4.1.30 with no problem.  How do you configure in
 server.xml to make it talk to apache2 through AJP13?  In tomcat4 I did
 something like this:
 
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=false acceptCount=10 debug=0/
 
 It doesn't work with tomcat 5.5.4.  Please help!!!
 
 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: Tomcat 4 doesn't start http service on Linux?

2005-01-17 Thread Sean M. Duncan
My first suggestion would be to set up Apache httpd as the load balancer
using mod_jk.  This will give you much more accurate node availability
detection.  This solution also provides much more flexibility when it
comes to using the session tracking API (session affinity, session
replication or both).

If you are running a stateless application or are forced to use BigIP
there is a less than ideal node detection scheme available.

I believe BigIP has the capability of pluggable node detection schemes.
You could set up a low overhead resource within your application context
or the root context. BigIP could then run an HTTP Get against that
resource periodically to ensure that the application is still available
on that node.

I'm sure someone could come up with a better pluggable node detection
scheme, but I haven't really given it to much thought since BigIP is
overkill for most situations and there is a scalable, robust and
infinitely cheaper solution available via mod_jk.

On Mon, 2005-01-17 at 11:52 -0600, Stephen Charles Huey wrote:
 We just installed Tomcat 4 on 2 Red Hat servers, and we have a BigIP
 load balancer in front of them.  In troubleshooting an issue, the guy
 working with our BigIP said that when he was running Apache on either of
 the Linux servers, the load balancer could tell that the http service
 was running, but when Tomcat was running, it didn't know what to check
 for on a service level, so in the end, they had to set it up to just do
 a TCP check to see if the port was open.  
 
 He says this isn't ideal since the port being open doesn't mean the
 service is up (meaning Tomcat).  He thinks that Tomcat should start up
 the http service (I guess he means httpd) when it starts--that maybe I
 just need to look around in Tomcat's configuration for the place to set
 this, but I'm not so sure that this is the case.  
 
 In a nutshell:  is Tomcat supposed to start up the http service or
 something similar to what BigIP is looking for from Apache?  
 
 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: Java VM Monitor-Debug

2005-01-17 Thread Sean M. Duncan
You need a profiler.  I would suggest JProfiler for development
monitoring.  It's far too intrusive to use on a production system
though.

On Mon, 2005-01-17 at 19:37 -0500, K. Mike Bradley wrote:
 I have a need to look inside a running Java VM for a Tomcat app.
 We are having problems with an app on every server and can't figure it out.
 
 I have a kernel mode debugger I can use for a Windows app but this is
 useless here of course.
 What kinds of third party products let you see inside a Java VM?
 
 I need to see processes and threads and execution times and stack and heap
 space and whatever else is unique to Java that I need to see.
 I mean that I need a real solid diagnostic tool.
 
 I see that J2SE 5 has this monitor API and SNMP as well but I don't think I
 can get it in our app.
 
 Is there any third party tools out there that are real solid??
 
 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: Help: Context.xml Resource difference between 5.0.x and 5.5.x ?

2005-01-17 Thread Sean M. Duncan
On Mon, 2005-01-17 at 16:57 -0800, TomK wrote:
 I'm having trouble moving my webapp from Tomcat 5.0 to 5.5.  The dataSource 
 in Context.xml seems to be the issue.
  
 According to the 'JNDI how-to' documentation for 5.0 and 5.5, it looks like 
 the 'ResourceParams' tag has been removed from the Context.xml and instead 
 you can now supply arbitrary attributes to the Resource tag itself.
  
 In 5.0, my Context.xml looked like this and it worked fine:
 ?xml version=1.0 encoding=UTF-8?
 Context antiResourceLocking=true docBase=myapp path=/myapp
   Resource name=jdbc/db1 auth=Container 
   type=oracle.jdbc.pool.OracleDataSource /
   ResourceParams name=jdbc/db1
 parameter
   namefactory/name
   valueoracle.jdbc.pool.OracleDataSourceFactory/value
 /parameter
 parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:oracle:thin:@xx:xx:xx/value
 /parameter
 parameter
   nameuser/name
   valuexx/value
 /parameter
 parameter
   namepassword/name
   valuexx/value
 /parameter
   /ResourceParams
 /Context
  
 ...note that oracle's factory requires user, not username.
 
  
 Moving to 5.5, I changed it to:
  
 ?xml version=1.0 encoding=UTF-8?
 Context antiResourceLocking=true docBase=myapp path=/myapp
   Resource auth=Container 
   driverClassName=oracle.jdbc.driver.OracleDriver 
   factory=oracle.jdbc.pool.OracleDataSourceFactory 
   name=jdbc/db1 
   password=xxx 
   type=oracle.jdbc.pool.OracleDataSource 
   url=jdbc:oracle:thin:@xx:xx:xx 
   user=xx/
 /Context
 
 ...this new Context.xml doesn't work.  I get the following:
 javax.naming.NamingException: Cannot create resource instance
  at 
 org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)
  at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
  
 any ideas?  Almost seems as if the factory attribute of Resource is 
 not being used.
  
 thanks
 tk_


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



Re: index.jsp: why don't modifications to it show up?

2005-01-17 Thread Sean M. Duncan
I ran into the same issue a while back and found that there is a
compiled version of the index.jsp in catalina-root.jar file in the /WEB-
INF/lib folder of the root web application.

Hope that helps.

-Sean

On Mon, 2005-01-17 at 20:58 -0800, Kai Utility wrote:
 Thanks for your excellent introduction to setting up Tomcat.
 I've thought of an addition you might want to include, namely, how to
 replace tomcat's index.jsp with one's own.  I'm doing a very limited web
 site and wish to expose it to the internet but I don't want the default
 tomcat startup page.  Unfortunately, I've found this to be a non-trivial
 task that I've spent all day on and still haven't solved.  Below follows
 an email I'm sending to tomcat-user@jakarta.apache.org:
 
 
 I have recently installed tomcat 5.5.4.
 I wish to use my own index.jsp in place of the out-of-the-box one.
 However, when I make changes to it they don't register.
 I.e. I'm making changes to
$CATALINA_HOME/webapps/ROOT/index.jsp
 
 I have searched this list for index.jsp and come up with some
 information but I haven't had success yet.  More on that presently. 
 This is some of what I've seen so far:
 
 ---
 http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=1735120
 
 When using Tomcat 5.0.25 it seems that any change I make to
 ROOT/index.jsp does not show up in the
 browser (in Tomcat 4.xx this was easy to do).  I am sure this is some
 sort of caching problem so
 I've been looking for the compiled JSP in the work directory to delete
 it.  Very strange, but it
 doesn't seem like this JSP is compiled anywhere.
 
 Does Tomcat 5.0 have some sort of memory resident or log caching that
 persists even after the
 server is restarted?
 
 ---
 http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]msgNo=150033
 
 Check the webapp's WEB-INF/web.xml -- is said JSP precompiled?
 
 If so, changing the file will (understandably) have no effect: the
 container checks its servlet mappings first, files (say, JSPs) second.
 
 ---
 http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=1735455
 
 Good suggestion.  If the JSP is precompiled shouldn't I be able to go to
 the work directory and
 see index_jsp.class somewhere under a ROOT directory (like there is for
 other webapps)?  I guess
 one of my basic questions is that why don't I see a ROOT directory in
 the work directory?
 
 ---
 http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=1735458
 
 You tell me -- how did you precompile?  
 
 If you're placing classes directly in the /work dir, then, yes;
 if you're building class files and updating web.xml, then, no.
 
 The former method of precompilation is Tomcat-specific and accounts for
 a JSP being updated.  The latter is for production deployments, in which
 case the JSPs should not change throughout the release lifetime.
 
 The root context may be under /work/_ in TC5, but don't quote me on
 that.
 
 ---
 There were some other conversations on this topic but the above seemed
 the best.
 It seems that the last message above may be pertinent but I don't
 understand it.
 
 I found two instances of index_jsp.class in my tomcat tree.
 I deleted both and nothing happened.
 
 ---
 My setup:
 I'm running Tomcat 5.5.4 standalone (no apache).
 
 $CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml
 contains the following:
 servlet
 servlet-nameorg.apache.jsp.index_jsp/servlet-name
 servlet-classorg.apache.jsp.index_jsp/servlet-class
 /servlet
 
 servlet-mapping
 servlet-nameorg.apache.jsp.index_jsp/servlet-name
 url-pattern/index.jsp/url-pattern
 /servlet-mapping
 
 $CATALINA_HOME/conf/web.xml
 contains the following (all standard, except I'm allowing the invoker
 servlet):
 servlet
 servlet-namedefault/servlet-name
 
 servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
 init-param
 param-namedebug/param-name
 param-value0/param-value
 /init-param
 init-param
 param-namelistings/param-name
 param-valuefalse/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet
 
 servlet
 servlet-nameinvoker/servlet-name
 servlet-class
   org.apache.catalina.servlets.InvokerServlet
 /servlet-class
 init-param
 param-namedebug/param-name
 param-value0/param-value
 /init-param
 load-on-startup2/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-namedefault/servlet-name
 url-pattern//url-pattern
 /servlet-mapping
 
 welcome-file-list
 welcome-fileindex.html/welcome-file
 welcome-fileindex.htm/welcome-file
 welcome-fileindex.jsp/welcome-file
 /welcome-file-list


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



Tomcat 5.5 - path attrubute ignored in context fragments

2005-01-13 Thread Duncan, Sean
I'm migrating a suite of applications from 5.0.x to 5.5.x.  The path
attribute no longer has any effect on the web applications context path.  I
understand from the documentation that this is by design, but I think it may
have been a mistake.  Since we deploy a suite of applications to Tomcat our
contexts usually take the form /suitename/appname.  As far as I can see
there is no way to accomplish this without nesting the context entries
directly within server.xml (a practice which the documentation discourages
and I dread going back to).  Can we make the path attribute work again or is
there some secret file nameing scheme I can use for the context fragment?
 
Thanks in advance for your time.


Re: Installing a webmail client such as squirrelmail (PHP) on tomcat?

2004-11-19 Thread Duncan Krebs
Yoav, just curious how do your pronounce your name. Mine is easy because it
goes with Donuts but yours I can not find any restaurants or shops sharing
the same. Being that are you an active participant to this forum I deem this
email relevent. - Duncan

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 19, 2004 12:47 PM
Subject: RE: Installing a webmail client such as squirrelmail (PHP) on
tomcat?



Hi,
Apache httd is ROCK-solid on any of its supported platforms, including
Windows.  The problems arise with the connection between httpd and
Tomcat.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: David Lee [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 1:38 PM
To: Tomcat Users List
Subject: RE: Installing a webmail client such as squirrelmail (PHP) on
tomcat?

Thanks for the suggestion.  BTW, what is the OS you are using, mine is
winXP professional, I heard apache is
Not suitable or not tuned for win but UNIX/LINUX, that's why it's not
stable on winXP platform, just an
Afterthrought.

David

-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 9:40 AM
To: Tomcat Users List
Subject: Re: Installing a webmail client such as squirrelmail (PHP) on
tomcat?

Tomcat is fine and all but in this case it is definitely not the right
tool for the job.  I know you've had problems with Apache but I'd go
look at it again. I am running apache 1.3 and I have a 5 line
workers.properties, and one line in server.xml, my connector has never
been a problem. Installing PHP took less time to do than it did to
download the module over DSL!

Just my 2 cents: Go to old Apache, Old JK, and set up simply.

Andoni.

- Original Message -
From: David Lee [EMAIL PROTECTED]
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Friday, November 19, 2004 4:48 PM
Subject: RE: Installing a webmail client such as squirrelmail (PHP) on
tomcat?


Hi! Yoav,
That's right, because I saw so many mails related to apache connector,
jk2 or mod_jk. Also I got problem with apache 2.0.*
My OS is winXP professional. Somehow, the apache server service looks
like it's running using Window services menu, but
After I refresh it, the apache service is not running. It was running
like that for more than 3 monthes and
Finally I gave up, because my focus is Tomcat, I just want to make
everything works first on tomcat and then
Think other options. It will simplify the application development and
deployment.

David Lee

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 5:40 AM
To: Tomcat Users List
Subject: RE: Installing a webmail client such as squirrelmail (PHP) on
tomcat?


Hi,
easiest is subjective: some (many IMHO) people find the connector
configuration difficult enough so that anything they can run on Tomcat
standalone is good.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Andy Savage [mailto:[EMAIL PROTECTED]
Sent: Friday, November 19, 2004 6:36 AM
To: Tomcat Users List
Subject: Re: Installing a webmail client such as squirrelmail (PHP) on
tomcat?

Wouldn't the easiest way be to run apache as a front end with mod_jk2?
It's pretty simple and it saves the hassle of possibly taking down the
whole server with a crash, or any security hassles.

Serve php with apache, serve everything else to tomcat.

Kind Regards,
Andy Savage

--
Bluewire Solutions
Position: Partner
Contact: +64 27 4678 262
Website: www.bluewire.net.nz
Email: [EMAIL PROTECTED]


David Lee wrote:
 Hi! Folks,

 Has anyone run the php application on Tomcat?. I'm trying to install
the
 squirrelmail on tomcat so I can web access my james email server.

 What is the best way to integrate the php with tomcat or any
 suggesstions or pitfalls to avoid?

 Any comments welcome.

 Thanks

 David Lee


-
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

Getting filepath of webapp without using Reqeust or Response

2004-11-09 Thread Duncan Krebs
Hi,
I'm trying to figure out how I can lookup the real file path of my webapp in 
code without using the HttpServletResponse or HttpServletRequest. I have a lot 
of classes calling other classes and its annoying to always have to pass the 
request objects as parameters. Does anyone know if this is possible? Thanks - 
Duncan 


Re: improved

2004-10-28 Thread duncan
Your document.

 Attachment: No Virus found
 Norton AntiVirus - www.symantec.de


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

Tomcat 5 pause (free gmail account for fix :-)

2004-10-14 Thread Stephen Duncan Jr
I haven't gotten around to really investigating the issue yet, but I'm 
having a similar problem, though on Windows with IIS.  But what I have 
noticed is that the pause corresponds to connection errors being logged 
in the Windows event log from the ajp connector piece.  It might just be 
a side effect of the root cause, but it may be worth thinking about that 
it could be the ajp/connector piece.

-Stephen Duncan Jr
-
Everyone,
Thanks in advance for any help. Also I have a gmail invite for the
person who has a fix for this if they are interested.
My company has been using Tomcat for several years, but a problem has
crept up that we have not been able to solve. Basically, tomcat will
stop processing requests for 2-60 second period several times a day.
Here is a list of software that we have tried. (Note we have tried
changing each key componant to see if we isolate the componant that is
the problem, but no luck yet)
OS: RedHat 9  AS3
Threading model: linux threads  nptl
JVM: sun 1.4.2_4  latest ibm
Http connector: ajp w/apache 2 and coyote connector
JBDC connector 1.0
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat and Apache by Proxy http connections slow but https fast

2004-08-18 Thread Duncan Houston
Thanks for the help - problem solved!

Was running a box with LVS, and running DNS. I don't think all the zone
files were there, but stopping named worked like a charm - all webapps fast!
What a stupid error (on my part).

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: 18 August 2004 01:13
 To: Tomcat Users List
 Subject: Re: Tomcat and Apache by Proxy http connections slow but https
 fast


 AFAIK - mod_proxy does not cache DNS lookups. It is looked up on every
 request. So a slow lookup could be your problem.

 -Tim

 Duncan Houston wrote:
  Sorry folks, more info (hope somebody will has experienced
 these problems as
  well!).
 
  I can hit 2 JSPs in different webapps, both proxied behind
 Apache, both on
  HTTP. The one is fast, the other slow. What could be causing
 this? Apache
  config? DNS lookup issues?
 
 
 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 23:28
 To: Tomcat Users List
 Subject: RE: Tomcat and Apache by Proxy http connections slow but https
 fast
 
 
 OK, I made a mistake there (sorry). The issue does still seem to be that
 connecting to a webapp over SSL is faster than connecting to
 another webapp
 over non-SSL, both running in the same Tomcat (JBoss) instance
 and proxied
 behind Apache.
 
 Any ideas why the SSL version would be fast and the normal
 (HTTP) version
 not?
 
 
 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 18:03
 To: Tomcat Users List
 Subject: RE: Tomcat and Apache by Proxy http connections slow but https
 fast
 
 
 Some more info. The problem does not seem to be with HTTP vs HTTPS (was
 testing app A on HTTPS, app B on HTTP B - problem seems that A
 is faster
 than B whether on HTTP or HTTPS).
 
 I have a number of .war files deployed to JBoss's /deploy directory
 (automatic deployment). Let's call them A and B, and let's say
 
 each has an
 
 image folder. Accessing an image from inside A's folder is fast, but
 accessing an image from B's folder is slow.
 
 Proxy setup appears to be the same for both apps.
 
 
 
 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 17:19
 To: [EMAIL PROTECTED]
 Subject: Tomcat and Apache by Proxy http connections slow but
 
 https fast
 
 
 Hi
 
 Background: Firstly I should state that I am running Tomcat 4.0.1
 with JBoss
 2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
 
 of this is
 
 running on RedHat. Requests are passed through to Tomcat by
 
 proxy, using
 
 rewrite rules. I know, I should be running a newer version of JBoss 
 Tomcat, and should be using mod_jk, but haven't had the time
 
 to upgrade
 
 quite yet.
 
 The problem: Connections to webapps run on Tomcat via http are
 slow over the
 internet. It appears that establishing a new connection (for
 page, images on
 page etc) takes time - once established (seconds later) the data gets
 transferred quickly. But, interestingly, connecting via https
 
 is fast. My
 
 test server, when hit on a test intranet, is very quick to respond.
 
 Any ideas? I have set enableLookups=false, for what that is worth.
 
 Help would be much appreciated.


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



Tomcat and Apache by Proxy http connections slow but https fast

2004-08-17 Thread Duncan Houston
Hi

Background: Firstly I should state that I am running Tomcat 4.0.1 with JBoss
2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All of this is
running on RedHat. Requests are passed through to Tomcat by proxy, using
rewrite rules. I know, I should be running a newer version of JBoss 
Tomcat, and should be using mod_jk, but haven't had the time to upgrade
quite yet.

The problem: Connections to webapps run on Tomcat via http are slow over the
internet. It appears that establishing a new connection (for page, images on
page etc) takes time - once established (seconds later) the data gets
transferred quickly. But, interestingly, connecting via https is fast. My
test server, when hit on a test intranet, is very quick to respond.

Any ideas? I have set enableLookups=false, for what that is worth.

Help would be much appreciated.

Thanks
Duncan


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



RE: Tomcat and Apache by Proxy http connections slow but https fast

2004-08-17 Thread Duncan Houston
Some more info. The problem does not seem to be with HTTP vs HTTPS (was
testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
than B whether on HTTP or HTTPS).

I have a number of .war files deployed to JBoss's /deploy directory
(automatic deployment). Let's call them A and B, and let's say each has an
image folder. Accessing an image from inside A's folder is fast, but
accessing an image from B's folder is slow.

Proxy setup appears to be the same for both apps.


 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 17:19
 To: [EMAIL PROTECTED]
 Subject: Tomcat and Apache by Proxy http connections slow but https fast


 Hi

 Background: Firstly I should state that I am running Tomcat 4.0.1
 with JBoss
 2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All of this is
 running on RedHat. Requests are passed through to Tomcat by proxy, using
 rewrite rules. I know, I should be running a newer version of JBoss 
 Tomcat, and should be using mod_jk, but haven't had the time to upgrade
 quite yet.

 The problem: Connections to webapps run on Tomcat via http are
 slow over the
 internet. It appears that establishing a new connection (for
 page, images on
 page etc) takes time - once established (seconds later) the data gets
 transferred quickly. But, interestingly, connecting via https is fast. My
 test server, when hit on a test intranet, is very quick to respond.

 Any ideas? I have set enableLookups=false, for what that is worth.

 Help would be much appreciated.

 Thanks
 Duncan


 -
 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 and Apache by Proxy http connections slow but https fast

2004-08-17 Thread Duncan Houston
OK, I made a mistake there (sorry). The issue does still seem to be that
connecting to a webapp over SSL is faster than connecting to another webapp
over non-SSL, both running in the same Tomcat (JBoss) instance and proxied
behind Apache.

Any ideas why the SSL version would be fast and the normal (HTTP) version
not?

 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 18:03
 To: Tomcat Users List
 Subject: RE: Tomcat and Apache by Proxy http connections slow but https
 fast


 Some more info. The problem does not seem to be with HTTP vs HTTPS (was
 testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
 than B whether on HTTP or HTTPS).

 I have a number of .war files deployed to JBoss's /deploy directory
 (automatic deployment). Let's call them A and B, and let's say each has an
 image folder. Accessing an image from inside A's folder is fast, but
 accessing an image from B's folder is slow.

 Proxy setup appears to be the same for both apps.


  -Original Message-
  From: Duncan Houston [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 17:19
  To: [EMAIL PROTECTED]
  Subject: Tomcat and Apache by Proxy http connections slow but https fast
 
 
  Hi
 
  Background: Firstly I should state that I am running Tomcat 4.0.1
  with JBoss
  2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
 of this is
  running on RedHat. Requests are passed through to Tomcat by proxy, using
  rewrite rules. I know, I should be running a newer version of JBoss 
  Tomcat, and should be using mod_jk, but haven't had the time to upgrade
  quite yet.
 
  The problem: Connections to webapps run on Tomcat via http are
  slow over the
  internet. It appears that establishing a new connection (for
  page, images on
  page etc) takes time - once established (seconds later) the data gets
  transferred quickly. But, interestingly, connecting via https
 is fast. My
  test server, when hit on a test intranet, is very quick to respond.
 
  Any ideas? I have set enableLookups=false, for what that is worth.
 
  Help would be much appreciated.
 
  Thanks
  Duncan
 
 
  -
  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 and Apache by Proxy http connections slow but https fast

2004-08-17 Thread Duncan Houston
Sorry folks, more info (hope somebody will has experienced these problems as
well!).

I can hit 2 JSPs in different webapps, both proxied behind Apache, both on
HTTP. The one is fast, the other slow. What could be causing this? Apache
config? DNS lookup issues?

 -Original Message-
 From: Duncan Houston [mailto:[EMAIL PROTECTED]
 Sent: 17 August 2004 23:28
 To: Tomcat Users List
 Subject: RE: Tomcat and Apache by Proxy http connections slow but https
 fast


 OK, I made a mistake there (sorry). The issue does still seem to be that
 connecting to a webapp over SSL is faster than connecting to
 another webapp
 over non-SSL, both running in the same Tomcat (JBoss) instance and proxied
 behind Apache.

 Any ideas why the SSL version would be fast and the normal (HTTP) version
 not?

  -Original Message-
  From: Duncan Houston [mailto:[EMAIL PROTECTED]
  Sent: 17 August 2004 18:03
  To: Tomcat Users List
  Subject: RE: Tomcat and Apache by Proxy http connections slow but https
  fast
 
 
  Some more info. The problem does not seem to be with HTTP vs HTTPS (was
  testing app A on HTTPS, app B on HTTP B - problem seems that A is faster
  than B whether on HTTP or HTTPS).
 
  I have a number of .war files deployed to JBoss's /deploy directory
  (automatic deployment). Let's call them A and B, and let's say
 each has an
  image folder. Accessing an image from inside A's folder is fast, but
  accessing an image from B's folder is slow.
 
  Proxy setup appears to be the same for both apps.
 
 
   -Original Message-
   From: Duncan Houston [mailto:[EMAIL PROTECTED]
   Sent: 17 August 2004 17:19
   To: [EMAIL PROTECTED]
   Subject: Tomcat and Apache by Proxy http connections slow but
 https fast
  
  
   Hi
  
   Background: Firstly I should state that I am running Tomcat 4.0.1
   with JBoss
   2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All
  of this is
   running on RedHat. Requests are passed through to Tomcat by
 proxy, using
   rewrite rules. I know, I should be running a newer version of JBoss 
   Tomcat, and should be using mod_jk, but haven't had the time
 to upgrade
   quite yet.
  
   The problem: Connections to webapps run on Tomcat via http are
   slow over the
   internet. It appears that establishing a new connection (for
   page, images on
   page etc) takes time - once established (seconds later) the data gets
   transferred quickly. But, interestingly, connecting via https
  is fast. My
   test server, when hit on a test intranet, is very quick to respond.
  
   Any ideas? I have set enableLookups=false, for what that is worth.
  
   Help would be much appreciated.
  
   Thanks
   Duncan
  
  
   -
   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]



Tomcat4x Development Process

2004-04-19 Thread Duncan Krebs
Hi, 
Since I have started developing with Tomcat4x I have noticed some annoying trends in 
my development process and am convinced there has to be a better way. I am finding 
that I always have to restart tomcat so updated java classes getting compiled into the 
web-inf folder get loaded. 

I have figured out how to do catalina.jpda start in the prompt and debug with eclipse 
but a lot of times I get a message saying my changes are out of sync. Long story 
short, is there a way to force tomcat to check for any changes to the classes in the 
web-inf folder of the web app? Also any other development tips would be useful. - 
dkrebs

Configuration Tomcat To Check For newer .class in web-inf

2004-04-19 Thread Duncan Krebs
Hi, 
Does anyone know how I can configure tomcat to check for updated .class files in the 
WEB-INF folder on every request and then load a new .class if it finds an updated 
version? Thanks


Re: Tomcat License

2004-04-08 Thread Duncan Krebs
Yan and Bill,
Thanks for the input. I'm intriguied by the impact organizations like Apache
are having on the industry. This seems to be a pretty strong community of
good willed developers that go out of thier way to give something back. Then
I look at corporations like IBM that also support Apache for different
reasons. I don't think thier primary intentions are to give something back
but rather to become more profitable. Interesting how the two blend
together.



- Original Message - 
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 12:47 AM
Subject: Re: Tomcat License


 The short answer is: Yes, it is legal to do what you want, provided that
you
 adhere to the conditions of the license.  In fact this is similar to what
 Sun does with its J2EE product.

 However, I'm not a lawyer (and you probably won't find too many lurking on
 this list :).  Trusting my opinion shouldn't be a substitute for grabbing
a
 copy of the license (http://www.apache.org/licenses/LICENSE-2.0) and
getting
 a professional opinion.

 Duncan Krebs [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 I understand that tomcat lives under the apache license but still have
some
 confusion over it. Some clarity would be an answer to this question.

 Is it legal to take a project like tomcat wrap a homegrown installer
around
 it, add some value added functionality and then put it in a box and sell
it?
 Or is it not that simple?

 - Duncan






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



Tomcat License

2004-04-06 Thread Duncan Krebs
I understand that tomcat lives under the apache license but still have some confusion 
over it. Some clarity would be an answer to this question. 

Is it legal to take a project like tomcat wrap a homegrown installer around it, add 
some value added functionality and then put it in a box and sell it? Or is it not that 
simple?

- Duncan 




Figuring out why tomcat won't start

2004-04-02 Thread Duncan Krebs
Hey, 
Could anyone give me some pointers on how to find an error that is causing tomcat not 
to start. I'm using 4x on Windows, when I got to a prompt in the bin folder and type 
'startup' the new DOS window opens for a split second and then closes right away. Most 
likely some error in my server.xml. However when I go to my logs folder no new logs 
are being generated, so I don't really know how to troubleshoot. Any ideas?


Re: Figuring out why tomcat won't start

2004-04-02 Thread Duncan Krebs
Yoav,
Thanks for the info. I was able to see the error message in the window and
figured out I had another service running on the same port tomcat was trying
to run on. - Duncan

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 02, 2004 2:23 PM
Subject: RE: Figuring out why tomcat won't start



Hi,
It might be fine.  Execute catalina.bat run instead of startup.bat
to leave the DOS prompt open.  Look at the logs/catalina.out file for
errors.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Duncan Krebs [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 3:24 PM
To: Tomcat Users List
Subject: Figuring out why tomcat won't start

Hey,
Could anyone give me some pointers on how to find an error that is
causing
tomcat not to start. I'm using 4x on Windows, when I got to a prompt in
the
bin folder and type 'startup' the new DOS window opens for a split
second
and then closes right away. Most likely some error in my server.xml.
However when I go to my logs folder no new logs are being generated, so
I
don't really know how to troubleshoot. Any ideas?



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: Tomcat4 performance issue when manually removing compiled jspsin work folder

2004-03-30 Thread Duncan Krebs
Peter,
Thanks for the reply. It would make sense that on the request immediately
after I delete the .java and .class files in the work folder it would take
longer because tomcat has to recompile the jsp's. However even after they
are recompiled (not deleted again)and  tomcat is restarted subsequent
requests continue to take longer and the CPU continues to hit 100%. I wonder
if there is a way to analyze the request and see what code is taking so long
to execute.
- Duncan

- Original Message -
From: Peter Johnson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:00 AM
Subject: Re: Tomcat4 performance issue when manually removing compiled
jspsin work folder


 Duncan,

 I believe (and could be wrong) that this is intended behaviour. The work
 directory is like Tomcat's cache of all the webapps it is currently
 serving. When a request comes in for a page it tries to serve from this
 directory, if the class file does not exist it generates the .java files
 from /webapp and then compiles them so that it can serve them.

 So, the 3s delay and 100% utilisation is expected because Tomcat is
 recompiling the files so that it can serve them.

 PJ

 On Fri, 2004-03-26 at 18:39, Duncan Krebs wrote:
  Hi,
  I have had this snag for some time now and its starting to get the best
of me. I'm running tomcat 4.1 and when I manually remove the .java and
.class files in the /work/standalone folder even after the initial request
of recompiling the jsp's tomcat hits 100% on my CPU and the overall response
time is delayed by about 3 seconds on each request.
 
  As I deleted different sub folders in the work folder (all within the
same web application) the degraded performance was consistent with the
different sub folders that I was deleting even after the pages were
recompiled. Has anyone experienced this before?
 
  All of my requests are going through a Servlet controller and I have a
lot of classes in my WEB-INF folder that are part of the framework but I
don't think that would have anything to do with this. I've also tried
rebuilding my entire project from scratch and I'm still having the same
issue of a slowed response time of about 3 seconds and tomcat taking all my
CPU.
 
  Regards,
  dkrebs
 


 -
 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: Tomcat4 performance issue when manually removing compiledjsps in work folder

2004-03-30 Thread Duncan Krebs
Peter,
I'm getting closer. I installed the latest stable version of Tomcat, copied
my web application folder into the tomcat5 webapps folder and this what I
have noticed.

Any jsp page from the existing web app seems to be getting recompiled and
not cached in tomcat. This is what I can't figure out:

If I create a new jsp page in the web app and copy the exact source from an
existing jsp into the new file (named differently than the existing one),
the new jsp is getting cached just fine. When I refresh that page a bunch of
times, the response time is instant and my cpu activity stays very low.

But when I continue to load any jsp pages from the existing web app, my cpu
hits 60%, the response time is slower and they seem to be getting recompiled
on every request. Makes no sense, both the new and old jsp page have the
same content but the old one seems to keep getting recompiled on every
request. Do you have any ideas why Tomcat would be doing this?

Thanks again for your help,
- Duncan



- Original Message -
From: Peter Johnson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:35 AM
Subject: Re: Tomcat4 performance issue when manually removing compiledjspsin
work folder


 Duncan,

 Restarting is like wiping the slate clean in terms of Tomcat's caching
 in the work directory. So, it is expected that it would take a little
 while, even just to load the classes in to memory to serve. If you are
 using JSP I believe that these are always recompiled at start with the
 class files from the your webapp/WEB-INF/classes and lib directories
 being loaded in to memory.

 PJ

 On Fri, 2004-03-26 at 19:11, Duncan Krebs wrote:
  Peter,
  Thanks for the reply. It would make sense that on the request
immediately
  after I delete the .java and .class files in the work folder it would
take
  longer because tomcat has to recompile the jsp's. However even after
they
  are recompiled (not deleted again)and  tomcat is restarted subsequent
  requests continue to take longer and the CPU continues to hit 100%. I
wonder
  if there is a way to analyze the request and see what code is taking so
long
  to execute.
  - Duncan
 
  - Original Message -
  From: Peter Johnson [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 2:00 AM
  Subject: Re: Tomcat4 performance issue when manually removing compiled
  jspsin work folder
 
 
   Duncan,
  
   I believe (and could be wrong) that this is intended behaviour. The
work
   directory is like Tomcat's cache of all the webapps it is currently
   serving. When a request comes in for a page it tries to serve from
this
   directory, if the class file does not exist it generates the .java
files
   from /webapp and then compiles them so that it can serve them.
  
   So, the 3s delay and 100% utilisation is expected because Tomcat is
   recompiling the files so that it can serve them.
  
   PJ
  
   On Fri, 2004-03-26 at 18:39, Duncan Krebs wrote:
Hi,
I have had this snag for some time now and its starting to get the
best
  of me. I'm running tomcat 4.1 and when I manually remove the .java and
  .class files in the /work/standalone folder even after the initial
request
  of recompiling the jsp's tomcat hits 100% on my CPU and the overall
response
  time is delayed by about 3 seconds on each request.
   
As I deleted different sub folders in the work folder (all within
the
  same web application) the degraded performance was consistent with the
  different sub folders that I was deleting even after the pages were
  recompiled. Has anyone experienced this before?
   
All of my requests are going through a Servlet controller and I have
a
  lot of classes in my WEB-INF folder that are part of the framework but I
  don't think that would have anything to do with this. I've also tried
  rebuilding my entire project from scratch and I'm still having the same
  issue of a slowed response time of about 3 seconds and tomcat taking all
my
  CPU.
   
Regards,
dkrebs
   
  
  
   -
   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: restarting tomcat

2004-03-30 Thread Duncan Krebs
I also know that there are different types of debugging modes that you can
run Tomcat it that do not require a restart for a .class file change.
- Duncan

- Original Message -
From: Karl Coleman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 10:43 PM
Subject: RE: restarting tomcat


 I don't know the why's. I just know that a change to a JSP doesn't
require
 a restart but a change to a class file does.

 Karl

 
  That's a great question! I was about to ask a very similar
  question myself.
 
  If you make changes to a JSP file, that means that file has to be
  recompiled, first to a .java file, then by javac to a .class
  file, which is
  really a Servlet. So, does changing a JSP file mean the Tomcat web app
to
  which it belongs is also reloaded?
 
  Rob
 
   -Original Message-
   From: naryam naryam [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 30, 2004 8:28 PM
   To: [EMAIL PROTECTED]
   Subject: restarting tomcat
  
  
   Hi,
  
   Is it true that each time a java servlet changes the tomcat
   servlet engine must be restarted.
  
   Does it mean that each time we need to recompile, we need
   also to restart the engine?
  
   Chris
  
  
   -
   Do you Yahoo!?
   Yahoo! Finance Tax Center - File online. File on time.
  
 
  -
  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: restarting tomcat

2004-03-30 Thread Duncan Krebs
Rob,
I know with using ECLIPSE and Tomcat4x you can run 'catalina jpda start'
from a command prompt and be able to walk through your servlet code and make
changes, recompile and run the updated .java file without having to restart
Tomcat. This is very useful in a development environment.  I don't see why
this would not carry over to Tomcat5.
- Duncan


- Original Message -
From: Rob Ross [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 10:55 PM
Subject: RE: restarting tomcat



  -Original Message-
  From: Duncan Krebs [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 8:51 PM
  To: Tomcat Users List
  Subject: Re: restarting tomcat
 
 
  I also know that there are different types of debugging modes
  that you can
  run Tomcat it that do not require a restart for a .class file change.
  - Duncan

 Actually, according the Servlet 2.4 spec which I am just starting to read,
 this should not be true.

 SRV.3.7 Reloading Considerations (page 33) states ...

 ...any such implementation must ensure that all servlets, and classes
that
 they may use, are loaded in the scope of a single class loader. This
 requirement is needed to guarantee that the application will behave as
 expected by the Developer.

 My understanding of this requirement is that there would be no way to
reload
 a single servlet separately from the other servlets in the same context -
a
 new Classloader would be created to load the new servlet, and all other
 servlets/classes in that context.

 But since I  just started reading this, maybe I'm not understanding all
the
 subtleties.

 Rob

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



Tomcat4 performance issue when manually removing compiled jsps in work folder

2004-03-29 Thread Duncan Krebs
Hi, 
I have had this snag for some time now and its starting to get the best of me. I'm 
running tomcat 4.1 and when I manually remove the .java and .class files in the 
/work/standalone folder even after the initial request of recompiling the jsp's tomcat 
hits 100% on my CPU and the overall response time is delayed by about 3 seconds on 
each request.

As I deleted different sub folders in the work folder (all within the same web 
application) the degraded performance was consistent with the different sub folders 
that I was deleting even after the pages were recompiled. Has anyone experienced this 
before? 

All of my requests are going through a Servlet controller and I have a lot of classes 
in my WEB-INF folder that are part of the framework but I don't think that would have 
anything to do with this. I've also tried rebuilding my entire project from scratch 
and I'm still having the same issue of a slowed response time of about 3 seconds and 
tomcat taking all my CPU.

Regards, 
dkrebs



javax.mail

2004-02-11 Thread Duncan Smith
Hi, sorry if this is the wrong mailing list but I think most people here
are Java programmers so:

I am using javax.mail to send a mail to myself if a particular problem
occurs on the server.  My code seems to work but, but it does not use
the smtp server which I am specifying. I cannot find a problem in my
code as it seems to be identical to examples which I have found.

I use the line:
props.put(mail.smtp.host, mysmtphost);

to specify the smtp server (which is on a differant computer) but the
mail is being sent through the smtp server running on the same machine
as the jsp. Has anyone else had this problem at all, or am I just doing
something wrong?

-Duncan


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



Re: Tomcat 4.1.29 and J2SDK1.4.2

2004-02-02 Thread Duncan Smith
Hi.

I had same problem when upgrading JDKs.

After downloading and installing  jakarta-tomcat-4.1.29-LE-jdk14.exe instead of 
jakarta-tomcat-4.1.29.exe it worked fine.
(http://apache.mirrors.rossfell.co.uk/dist/jakarta/tomcat-4/v4.1.29/bin/jakarta-tomcat-4.1.29-LE-jdk14.exe)

Hope this helps.
Duncan Smith
www.pennymail.com


Maarten van Heiningen wrote:

 Hi,

 I´m using Tomcat 4.1.29 on a windows 2000 machine in combination with j2sdk1.4.2_03 
 s.e.

 I used to run this tomcat version under jdk1.3.1_02 and all worked well. Because of 
 better results under Ant I wanted to upgrade the sdk version.

 Now my tomcat will not start and is complaining about the JVM. I have changed the 
 JAVA_HOME and the JSSE_HOME env. settings and restarted but no result.

 Any sugestions?

 Maarten
 ==
 System Manager event viewer error messages:

 The Apache Tomcat 4.1 service failed to start.

 Could not load the Java Virtual Machine.

 The LoadLibrary function failed for the following reason: The specified module could 
 not be found.


 ==

 This communication together with any attachments transmitted with it (this E-Mail) 
 is intended only for the use of the addressee and may contain information which is 
 privileged and confidential.  If the reader of this E-Mail is not the intended 
 recipient or the employee or agent responsible for delivering it to the intended 
 recipient you are hereby notified that any use, dissemination, forwarding, printing 
 or copying of this E-Mail is strictly prohibited.  Addressees should check this 
 E-mail for viruses.  The Company makes no representations as regards the absence of 
 viruses in this E-Mail.  If you have received this E-Mail in error please notify our 
 ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at 
 [EMAIL PROTECTED]  Please then immediately delete, erase or otherwise destroy this 
 E-Mail and any copies of it.

 Any opinions expressed in this E-Mail are those of the author and do not necessarily 
 constitute the views of the Company.  Nothing in this E-Mail shall bind the Company 
 in any contract or obligation.

 For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc 
 and/or any of its subsidiaries.

 Please feel free to visit our website:  http:// www.carphonewarehouse.com or 
 http://www.phonehouse.com

 The Carphone Warehouse Group Plc (Registered in England No. 3253714) North Acton 
 Business Park, Wales Farm Road, London W3 6RS


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



Re: comercial license

2004-01-30 Thread Duncan Smith
Yeah, the local pizza delivery shop will go out of business otherwise.

(Only joking guys :-) )

Michael Mangeng wrote:

 Hi

 Stop thinking you do somthing bad - simply use the software provided.

 If you think the programmers from the apache project have done good work
 - feel free to donate money to the apache project.
 Infos at http://www.apache.org - they can need it.

 Welcome in the World of Open and Free Software :-)

 greets,
 mike

 FRANCOIS Dufour wrote:

 
  the name off the web site is http://entre-nous.qc.tc
 
 
  [EMAIL PROTECTED]
  administrateur http://entre-nous.qc.tc
 
 
 
 
 
  From: Shapira, Yoav [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: comercial license
  Date: Fri, 30 Jan 2004 09:16:17 -0500
 
 
  Howdy,
 
  but i would have prefered a license granted by apache to the name off
  the
  website
 
  What name off of what web site?
 
  Yoav Shapira
 
 
 
  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]
 
 
  _
  MSN Search, le moteur de recherche qui pense comme vous !
  http://fr.ca.search.msn.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]



test

2004-01-28 Thread duncan
The message cannot be represented in 7-bit ASCII encoding and has been sent as a 
binary attachment.


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

Re: Login page only via SSL

2003-12-29 Thread Duncan Smith
Adding this to your web.xml should work:

security-constraint
 web-resource-collection
  web-resource-nameSSL/web-resource-name
  url-pattern/login.jsp/url-pattern
 /web-resource-collection
 user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint

/security-constraint

login-config
 auth-methodBASIC/auth-method
 realm-nameSSL/realm-name
/login-config

Hope this helps
-Duncan Smith
www.pennymail.com



Pranas wrote:

 Hello all gurus,



 Could somebody explain me how to force Tomcat 4.1 using SSL for strictly only for 
 login page?



 Thanks,

 Pranas


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



Re: Realms question

2003-12-19 Thread Duncan Smith
If you switch to using a realm, you can use wildcards in the constraints
so that it applies to a whole directory?

Whether this is useful obviously depend on whether you have all your JSPs
in the same directory or you could have a *.jsp wildcard to cover all
jsps. Will depend on your naming conventions for the servlets.

- Duncan
www.pennymail.com

Riaan Oberholzer wrote:

 Hi,

 I have a web-app that defines different roles, so a
 user do not have access to all jsp/servlets in the
 web-app. Depending on his role. An admin user e.g. can
 see pages to edit data, while a 'normal' user can only
 view it.

 What's the best way to enforce this security?

 I am no doing it by storing the user object (once
 logged in) in the session and per jsp/servlet checking
 his status as the very first action. Its works well,
 so should I keep this or move to using a realm?

 If I do move to a Realm, I assume I would have to set
 up a security constraint for every jsp/servlet (or
 groups thereof? Any hints  tips to optimize this?

 Thanks

 __
 Do you Yahoo!?
 New Yahoo! Photos - easier uploading and sharing.
 http://photos.yahoo.com/

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


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



Re: CSS in War file

2003-12-15 Thread Duncan Smith
Sorry. Was a error in my server.xml that I had made.
The server was in fact only serving the home page and nothing else, but
seems to be working now.

Thanks for the suggestions

-Duncan
www.pennymail.com

Duncan Smith wrote:

 I've just started deploying a web app as a war file instead of uploading
 individual files. Everything works except my styles don't load.

 The stylesheet is added to the war file in the same location as before,
 but if I try to request the css file on it's own I get a
 java.lang.NullPointerException
 error.

 Any suggestions anyone?

 - Duncan
 www.pennymail.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]



Re: Problems using Files from a central machine

2003-12-12 Thread Duncan Smith
The problem is, tomcat is running as a service and as such does not have access to the 
drives that are mapped when
you are logged on.

The way arround it is the use the full path of the server.

eg:  //hostname/sharename/sites\biteme

Hope this helps
- Duncan
www.pennymail.com

[EMAIL PROTECTED] wrote:

 system config:
 2 machines
 both are win2k boxes

 machine 1 has apache with tomcat 5.0.16
 and jk mod  the webapps/files and content are on this box
 machine 2 has just tomcat 5.0.16

 both machines can serve local files but i want them to use a central server (just 
 have the files on one machine)

 the server xml file for machine 1 is:
 Server port=11005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
 Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 debug=0/
 GlobalNamingResources
 Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
 parameter
 namefactory/name
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 /parameter
 parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
 /parameter
 /ResourceParams
 /GlobalNamingResources
 Service name=Tomcat-Standalone
 Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false redirectPort=8443 acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /

 Connector port=11009
 enableLookups=false redirectPort=8443 debug=0
 protocol=AJP/1.3 /
 Engine jvmRoute=tomcat1 name=Tomcat-Standalone defaultHost=etrak-plus.com 
 debug=0
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt
 timestamp=true/
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
 Host name=etrak-plus.com debug=0 appBase=g:/sites/thesportsregister/
 unpackWARs=true autoDeploy=true
 Aliaswww.etrak-plus.com/Alias
 Context path=/ docBase=/ debug=0/
 Logger className=org.apache.catalina.logger.FileLogger
 directory=c:/home/sites/thesportsregister/logs prefix=thesportsregister.com_log. 
 suffix=.txt
 timestamp=true/
 /Host
 /Engine
 /Service
 /Server
 the server.xml file for machine 2 is:

 Server port=11005 shutdown=SHUTDOWN debug=0
 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
 Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 debug=0/
 GlobalNamingResources
 Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
 parameter
 namefactory/name
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 /parameter
 parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
 /parameter
 /ResourceParams
 /GlobalNamingResources
 Service name=Catalina
 Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false redirectPort=8443 acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /
 Connector port=11009
 enableLookups=false redirectPort=8443 debug=0
 protocol=AJP/1.3 /
 Engine jvmRoute=tomcat2 name=Tomcat-Standalone defaultHost=etrak-plus.com 
 debug=0
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt
 timestamp=true/
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
 Host name=etrak-plus.com debug=0 appBase=H:/sites/biteme
 unpackWARs=true autoDeploy=true
 Aliaswww.etrak-plus.com/Alias
 Context path=/ docBase=/ debug=0/
 Logger className=org.apache.catalina.logger.FileLogger
 directory=H:/sites/biteme/logs prefix=localhost_log. suffix=.txt
 timestamp=true/
 /Host
 /Engine
 /Service
 /Server

 where H:/ is mapped to the c drive of the other machine.

 error i recive when starting server 2:

 java.lang.IllegalArgumentException: Document base H:\sites\biteme does not exist or 
 is not a readable directory
 at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:185)
 at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3851)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4073)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
 at org.apache.catalina.core.StandardService.start(StandardService.java:519)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread Duncan Smith
The 'Relaying Denied' indicates that it is your SMTP server rejecting the request.

If you haven't tried it already, it may be worth trying the send a mail from a 
standard mail client on the
machine to test this?

-Duncan
www.pennymail.com

Ashwin Kutty wrote:

 Was wondering if someone could help me out here.  I am trying a product
 out called DSPACE which gives the following error in catalina.out

 2003-12-12 08:53:34,957 INFO  org.dspace.app.webui.servlet.RegisterServlet
 @ anonymous:session_id=B3D285B12E90E6BCCAF3E4097712D59B:error_emai$
 javax.mail.SendFailedException: Sending failed;
   nested exception is:
 javax.mail.SendFailedException: Invalid Addresses;
   nested exception is:
 javax.mail.SendFailedException: 550 5.7.1 [EMAIL PROTECTED]...
 Relaying denied

 at javax.mail.Transport.send0(Transport.java:219)
 at javax.mail.Transport.send(Transport.java:81)
 at org.dspace.core.Email.send(Email.java:259)
 at
 org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:291)
 at
 org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:251)
 at
 org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:96)
 at
 org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServlet.java:272)
 at
 org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:206)
 at
 org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:153)
 at
 org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:110)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
 at java.lang.Thread.run(Thread.java:534)

 I have used valid domains and e-mail addresses, but the error still
 appears.  Tomcat has in its server.xml file the name of the server and the
 IP in the value tag under mail/Session Resource

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread Duncan Smith
Still may be worth trying to send a mail from a differant application on the same
machine, such as trying to send create a mail message through telnet.

That way you can be sure whether it is your app or the mail setup.

-Duncan
www.pennymail.com

Ashwin Kutty wrote:

 The SMTP host is the same machine as the page being served are at.
 Sendmail is configured to allow relaying from the localhost.

 On Fri, 12 Dec 2003, Ben Souther wrote:

  Looks like you were trying to send to a SMTP host that doesn't allow relaying.
 
 
 
  On Friday 12 December 2003 08:16 am, Ashwin Kutty wrote:
   Was wondering if someone could help me out here.  I am trying a product
   out called DSPACE which gives the following error in catalina.out
  
   2003-12-12 08:53:34,957 INFO  org.dspace.app.webui.servlet.RegisterServlet
   @ anonymous:session_id=B3D285B12E90E6BCCAF3E4097712D59B:error_emai$
   javax.mail.SendFailedException: Sending failed;
 nested exception is:
   javax.mail.SendFailedException: Invalid Addresses;
 nested exception is:
   javax.mail.SendFailedException: 550 5.7.1 [EMAIL PROTECTED]...
   Relaying denied
  
   at javax.mail.Transport.send0(Transport.java:219)
   at javax.mail.Transport.send(Transport.java:81)
   at org.dspace.core.Email.send(Email.java:259)
   at
   org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:291)
   at
   org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:251)
   at
   org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:
  96) at
   org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServ
  let.java:272) at
   org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:
  206) at
   org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.jav
  a:153) at
   org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:110)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
  nFilterChain.java:247) at
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
  hain.java:193) at
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
  ava:256) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:643) at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at
   org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
  ava:191) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:643) at
   org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
  246) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:641) at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at
   org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
   org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
   at
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
  0) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:643) at
   org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
  .java:171) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:641) at
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
  2) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:641) at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at
   org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
  a:174) at
   org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
  keNext(StandardPipeline.java:643) at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at
   org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
   org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
   at
   org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
  ection(Http11Protocol.java:392) at
   org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread Duncan Smith
OK. Are you able to publis the source for the file thats generating the error?

-Duncan
www.pennymail.com

Ashwin Kutty wrote:

 Tested and it worked fine.  I telnetted in from another box that was added
 in the relay list and sent a message with no problems.  I also set my smtp
 server add in my mail client as this server and it sent the message out
 with no errors.

 On Fri, 12 Dec 2003, Duncan Smith wrote:

  Still may be worth trying to send a mail from a differant application on the same
  machine, such as trying to send create a mail message through telnet.
 
  That way you can be sure whether it is your app or the mail setup.
 
  -Duncan
  www.pennymail.com
 
  Ashwin Kutty wrote:
 
   The SMTP host is the same machine as the page being served are at.
   Sendmail is configured to allow relaying from the localhost.
  
   On Fri, 12 Dec 2003, Ben Souther wrote:
  
Looks like you were trying to send to a SMTP host that doesn't allow relaying.
   
   
   
On Friday 12 December 2003 08:16 am, Ashwin Kutty wrote:
 Was wondering if someone could help me out here.  I am trying a product
 out called DSPACE which gives the following error in catalina.out

 2003-12-12 08:53:34,957 INFO  org.dspace.app.webui.servlet.RegisterServlet
 @ anonymous:session_id=B3D285B12E90E6BCCAF3E4097712D59B:error_emai$
 javax.mail.SendFailedException: Sending failed;
   nested exception is:
 javax.mail.SendFailedException: Invalid Addresses;
   nested exception is:
 javax.mail.SendFailedException: 550 5.7.1 [EMAIL PROTECTED]...
 Relaying denied

 at javax.mail.Transport.send0(Transport.java:219)
 at javax.mail.Transport.send(Transport.java:81)
 at org.dspace.core.Email.send(Email.java:259)
 at
 org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:291)
 at
 org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:251)
 at
 org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:
96) at
 org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServ
let.java:272) at
 org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:
206) at
 org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.jav
a:153) at
 org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:110)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
nFilterChain.java:247) at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
hain.java:193) at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
ava:256) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:643) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
ava:191) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:643) at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:
246) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:641) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
0) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:643) at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
.java:171) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:641) at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
2) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:641) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
a:174) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext

CSS in War file

2003-12-12 Thread Duncan Smith
I've just started deploying a web app as a war file instead of uploading
individual files. Everything works except my styles don't load.

The stylesheet is added to the war file in the same location as before,
but if I try to request the css file on it's own I get a
java.lang.NullPointerException
error.

Any suggestions anyone?

- Duncan
www.pennymail.com


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



Re: CSS in War file

2003-12-12 Thread Duncan Smith
When I request a page which should have the styles applied, they are not.

If I try to request the css file on it's own from a browser, I get the NPE

(ie. www.pennymail.com/pennymail.css)

-Duncan
www.pennymail.com

Wendy Smoak wrote:

  From: Duncan Smith [mailto:[EMAIL PROTECTED]

  The stylesheet is added to the war file in the same location
  as before,

 Where in the .war file is the stylesheet?

  but if I try to request the css file on it's own I get a
  java.lang.NullPointerException error.

 How are you requesting the CSS?  With a browser?  Where are you seeing
 the NPE, browser window, or in a log file?

 --
 Wendy Smoak
 Application Systems Analyst, Sr.
 ASU IA Information Resources Management

 -
 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: Global Variables

2003-12-05 Thread Duncan
Cool.

Thanks for the replies all.

Cheers
- Duncan

Ilari Kontinen wrote:

  -Original Message-
  From: Duncan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, December 03, 2003 11:50 AM
  To: Tomcat Users List
  Subject: Re: Global Variables
 
 
  Thanks for the replies, but what do I define servletContext as?
 

 An easy way to get the ServletContext from JSP-page is to use the
 Servlet-method getServletContext(). So for getting the context
 parameter, add the following code-snipped:

 % String param = getServletContext().getInitParameter(param); %

 And for then on, you can reference it e.g. by:

 %= param %

  Many thanks
  Duncan
 
  Jardin Xavier wrote:
 
   use
  
   context-param
param-nameparam/param-name
   param-valuevalue/param-value
   /context-param
  
   in the web.xml
  
   and String param = servletContext.getInitParameter(param);
  
   in the JSP.
  
   - Original Message -
   From: Duncan [EMAIL PROTECTED]
   To: Tomcat User List [EMAIL PROTECTED]
   Sent: Wednesday, December 03, 2003 5:08 PM
   Subject: Global Variables
  
Is there a way to set global variables in the web.xml which can be read
by any JSP page?
   
Cheers,
-Duncan

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



File Writing

2003-12-05 Thread Duncan
I am trying to write a list into a file, but when I read the file after
it has been written it is always missing the first one or two lines.
When writing the file, I also output to the screen, and all the lines
appear on the screen.

Any ideas? , code is listed below.

Cheers, Duncan.

FileWriter fwFreeList = new FileWriter(sFreeListPath + /hello.txt);
String sValues[] = request.getParameterValues(freeList);
for (int i=0; i  sValues.length; i++)
{
   out.print(sValues[i] + br);
   fwFreeList.write(sValues[i] + \n);
}
fwFreeList.close();


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



Re: File Writing

2003-12-05 Thread Duncan Smith
Solved it.

Needed \r\n to terminate line instead of just \n

-Duncan

Duncan wrote:

 I am trying to write a list into a file, but when I read the file after
 it has been written it is always missing the first one or two lines.
 When writing the file, I also output to the screen, and all the lines
 appear on the screen.

 Any ideas? , code is listed below.

 Cheers, Duncan.

 FileWriter fwFreeList = new FileWriter(sFreeListPath + /hello.txt);
 String sValues[] = request.getParameterValues(freeList);
 for (int i=0; i  sValues.length; i++)
 {
out.print(sValues[i] + br);
fwFreeList.write(sValues[i] + \n);
 }
 fwFreeList.close();

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



Include Files

2003-12-03 Thread Duncan
When using Tomcat 4.0, I was able to include files in a directory above
my public web directory, but with tomcat 4.1, when I try to run the same
jsp, I get the error:

org.apache.jasper.JasperException: /main.jsp(3,0) File
../Private/NormalTemplate.inc not found

All casing etc is correct.

Is this a security fix, or should this still be possible?

Many thanks
Duncan Smith
Decker Telecom Ltd




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



Re: JSP Editors

2003-12-03 Thread Duncan
Thanks guys

Seems to be big differances in opinion, but I'll try a few of them out

- Duncan

Duncan wrote:

 Sorry if off topic but...

 What do people use to edit JSPs?

 I'm after an editor, free if possible, to run on windows, with syntax
 colouring and possibly auto complete for java.

 Have tried vim for windows, but it doesn't seem as nice on windows as it
 is on linux.

 Any other suggestions?

 Cheers
 Duncan Smith
 Decker Telecom Ltd

 -
 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: Include Files

2003-12-03 Thread Duncan
So how does one get around this issue

ie, how do you have an include file that is not accessable by a user, do people
set up a secure folder for these?

Any suggestions?
- Duncan

Tim Funk wrote:

 I would think this is a security fix. (Or a bug fix) I am surprised this was
 allowed in 4.0.

 -Tim

 Duncan wrote:

  When using Tomcat 4.0, I was able to include files in a directory above
  my public web directory, but with tomcat 4.1, when I try to run the same
  jsp, I get the error:
 
  org.apache.jasper.JasperException: /main.jsp(3,0) File
  ../Private/NormalTemplate.inc not found
 
  All casing etc is correct.
 
  Is this a security fix, or should this still be possible?
 

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


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



Re: Include Files

2003-12-03 Thread Duncan
Good plan.

Thanks Tim, didn't think of that one.

Tim Funk wrote:

 Place it in WEB-INF (or a subdirectory in WEB-INF)

 -Tim

 Duncan wrote:

  So how does one get around this issue
 
  ie, how do you have an include file that is not accessable by a user, do people
  set up a secure folder for these?
 
  Any suggestions?
  - Duncan
 
  Tim Funk wrote:
 
 
 I would think this is a security fix. (Or a bug fix) I am surprised this was
 allowed in 4.0.
 
 -Tim
 
 Duncan wrote:
 
 
 When using Tomcat 4.0, I was able to include files in a directory above
 my public web directory, but with tomcat 4.1, when I try to run the same
 jsp, I get the error:
 
 org.apache.jasper.JasperException: /main.jsp(3,0) File
 ../Private/NormalTemplate.inc not found
 
 All casing etc is correct.
 
 Is this a security fix, or should this still be possible?
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Global Variables

2003-12-03 Thread Duncan
Is there a way to set global variables in the web.xml which can be read
by any JSP page?

Cheers,
-Duncan


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



Re: Global Variables

2003-12-03 Thread Duncan
Thanks for the replies, but what do I define servletContext as?

Many thanks
Duncan

Jardin Xavier wrote:

 use

 context-param
  param-nameparam/param-name
 param-valuevalue/param-value
 /context-param

 in the web.xml

 and String param = servletContext.getInitParameter(param);

 in the JSP.

 - Original Message -
 From: Duncan [EMAIL PROTECTED]
 To: Tomcat User List [EMAIL PROTECTED]
 Sent: Wednesday, December 03, 2003 5:08 PM
 Subject: Global Variables

  Is there a way to set global variables in the web.xml which can be read
  by any JSP page?
 
  Cheers,
  -Duncan
 
 
  -
  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]



JSP Editors

2003-11-28 Thread Duncan
Sorry if off topic but...

What do people use to edit JSPs?

I'm after an editor, free if possible, to run on windows, with syntax
colouring and possibly auto complete for java.

Have tried vim for windows, but it doesn't seem as nice on windows as it
is on linux.


Any other suggestions?

Cheers
Duncan Smith
Decker Telecom Ltd


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



Sessions - SSL

2003-11-12 Thread Duncan
Would one loose their session when switching from non-ssl to ssl (ie.
changing  connectors)?

Thanks in advance
Duncan Smith
Decker Telecom Ltd


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



response.sendRedirect()

2003-11-07 Thread Duncan
Is it normal to loose your session when using the
response.sendRedirect() command?

If so is there a way to redirect without loosing the session?

Cheers, Duncan.
Decker Telecom Ltd


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



Re: response.sendRedirect()

2003-11-07 Thread Duncan
Oops. Just realised that my app was switching between contexts on my
server, which is why I was loosing session info. Thanks for the replies
thought.

 - Duncan.

Jean-Francois Arcand wrote:

 Duncan wrote:

 Is it normal to loose your session when using the
 response.sendRedirect() command?
 
 If so is there a way to redirect without loosing the session?
 
 Yes, do a RequestDispatcher.forward(...) instead.

 -- Jeanfrancois

 
 Cheers, Duncan.
 Decker Telecom Ltd
 
 
 -
 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: Content Type

2003-11-04 Thread Duncan
Cheers guys -

Duncan :-)

Shapira, Yoav wrote:

 Howdy,
 Add the content-disposition:attachment header.

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-
 From: Duncan [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 9:48 AM
 To: [EMAIL PROTECTED]
 Subject: Content Type
 
 I have a file running as a jsp but with a differant extension (.pms).
 When a user requests this file in IE/Netscape. I want it to download as
 a file rather than being opened as text by the browser.
 
 I have tried adding:
 response.setContentType(application/octet-stream);
 but this only seems to work some of the time.
 
 Anyone any ideas?
 
 Duncan Smith
 Decker Telecom Ltd
 
 
 -
 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: Virtual Files

2003-11-03 Thread Duncan
Thanks guys - works great.

Rodrigo Ruiz wrote:

 Well, if you don't precompile JSPs,there is another way to map a JSP:

 servlet
   servlet-nameMyServlet/servlet-name
   jsp-file/MyPage.jsp/jsp-file
 /servlet

 jakarta wrote:

 You can set up mappings to jsp pages
 
 servlet
 servlet-nameorg.apache.jps.MyPage_jsp/servlet-name
 servlet-classorg.apache.jps.MyPage_jsp/servlet-class
 /servlet
 
 servlet-mapping
 servlet-nameorg.apache.jps.MyPage_jsp/servlet-name
 url-pattern/some/dir/you/would/like/to/use/*/url-pattern
 /servlet-mapping
 
 Any page called from /some/dir/you/would/like/to/use/
 Ie /some/dir/you/would/like/to/use/itworks.jsp
 
 Would go to the MyPage.jsp
 
 
 
 -Original Message-
 From: Duncan [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 31, 2003 11:02 AM
 To: Tomcat Users List
 Subject: Virtual Files
 
 
 Don't know if this is possible with tomcat but;
 
 I need people to be able to request virtual files in a
 directory of a web application.
 
 As in:  A user would request a file (which doesn't exist).
 This would call a jsp page which would return output based on
 the name of the file requested, but the user would still see
 the filename as the one which they originally requested.
 
 I thought that perhaps changing the 404 error page to my jsp
 file may work, but is it possible to set the 404 error page
 for just one directory? I would prefer a differant method if
 there is one.
 
 Thanks for any help anyone can give.
 
 Duncan Smith
 Decker Telecom Ltd
 
 
 
 
 -
 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]



Content Type

2003-11-03 Thread Duncan
I have a file running as a jsp but with a differant extension (.pms).
When a user requests this file in IE/Netscape. I want it to download as
a file rather than being opened as text by the browser.

I have tried adding:
response.setContentType(application/octet-stream);
but this only seems to work some of the time.

Anyone any ideas?

Duncan Smith
Decker Telecom Ltd


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



Error Page

2003-10-31 Thread Duncan
Is there any way to know which JSP page called an error page?

I have one error page, and the errorPage tag is added automatically to
each JSP in a template, so I can't pass it as a parameter. I need to
know which page gererated the error so that it can be logged (and
hopefully fixed)

Any Ideas?

Duncan Smith
Decker Telecom Ltd







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



Virtual Files

2003-10-31 Thread Duncan
Don't know if this is possible with tomcat but;

I need people to be able to request virtual files in a directory of a
web application.

As in:  A user would request a file (which doesn't exist). This would
call a jsp page which would return output based on the name of the file
requested, but the user would still see the filename as the one which
they originally requested.

I thought that perhaps changing the 404 error page to my jsp file may
work, but is it possible to set the 404 error page for just one
directory? I would prefer a differant method if there is one.

Thanks for any help anyone can give.

Duncan Smith
Decker Telecom Ltd




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



UserDatabase

2003-10-08 Thread Duncan Smith
Is there an easy way to administer the tomcat-users.xml file?

I need to give a superuser access to add/delete users, but don't want to 
give access to the admin application.

Any suggestions?
Cheers,
Duncan, Decker Telecom Ltd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Serving other files as JSPs

2003-09-26 Thread Duncan Smith
Is it possible to serve other files extentions as JSPs?

ie. if I had a file hello.bob, would I be able to run JSP code in it.

I have tried adding and extra servlet entry in the web.xml identical
to the JSP one but with a differant name and have also tried ading an
extra servlet-mapping for both my servlet entry and also for the JSP
servlet entry but the page are being returned to me as text (with the
code still in it).

Any suggestions?


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



Re: Serving other files as JSPs

2003-09-26 Thread Duncan Smith
thanks.

I was sure that I had tried that before, but I just tried it again and it worked. 
Probably made a spelling mistake before.

Cheers, Duncan.

Shapira, Yoav wrote:

 Howdy,
 All you should add is another servlet-mapping tag for the JSP servlet
 with the extension of the files you want (e.g. *.bob).

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-
 From: Duncan Smith [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 26, 2003 10:43 AM
 To: Tomcat Users List
 Subject: Serving other files as JSPs
 
 Is it possible to serve other files extentions as JSPs?
 
 ie. if I had a file hello.bob, would I be able to run JSP code in it.
 
 I have tried adding and extra servlet entry in the web.xml identical
 to the JSP one but with a differant name and have also tried ading an
 extra servlet-mapping for both my servlet entry and also for the
 JSP
 servlet entry but the page are being returned to me as text (with the
 code still in it).
 
 Any suggestions?
 
 
 -
 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: Error Finding config file: workers2.properties

2003-09-26 Thread Duncan Smith
I had same problem.
I found that if the workers2.properties file was supposed to be in
{apache-home}/conf/

Good luck :-)
Duncan Smith
Decker Telecom Ltd

Rhugga wrote:

 I get this error during tomcat 4.2.27 startup:

 INFO: Starting Coyote HTTP/1.1 on port 8443
 [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)]
 config.update(): Can't find config file ${serverRoot}/conf/workers2.pr
 operties
 [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)]
 config.setAttribute() Error setting config: file ${serverRoot}/conf/workers
 2.properties
 [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)]
 Initializing log file stderr
 [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)]  shm.init(): No file
 [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)]
 workerEnv.init() ok ${serverRoot}/conf/workers2.properties

 Here is the connector definition from server.xml:

 !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true serverRoot=/usr/local/jakarta-tomcat-4.1.27
   acceptCount=100 debug=5 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true
  Factory
  className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
  clientAuth=false protocol=TLS /
  parameter
  nameserverRoot/name
  value/usr/local/jakarta-tomcat-4.1.27/value
  /parameter
 /Connector

 My workers2.properties file is here:
 ganja:/usr/local/tomcat/conf #ls -l
 /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties
 -rw-r--r--   1 tomcat   httpd258 Aug 30 23:14
 /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties

 The contents of this file are as follows:
 [shm]
 file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file
 size=1048576

 # Example unixsocket channel.
 [channel.un:unixsocket]
 file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket

 # define the worker
 [ajp13:unixsocket]
 channel=channel.un:unixsocket

 Any ideas?

 Thx,
 Chuck

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



Tomcat+SSL 404 error

2003-09-25 Thread Duncan Smith
I've just updgraded from tomcat 4.0 to 4.1.

In my web.xml I have the following:

  security-constraint
web-resource-collection
  web-resource-namePennymail Secure/web-resource-name
  url-pattern/secure/*/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint

This worked fine in 4.0, but when I put it in in 4.1 any page that I
request returns:

HTTP Status 404 - /page.jsp
message /page.jsp
description The requested resource (/page.jsp) is not available.
Apache Tomcat/4.1.27-LE-jdk14

Without this entry, i can connect via ssl (port 443) but I need these
pages restricted to only ssl.

Anyone any idea why? Cheers, Duncan.




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



JSP Compilation - saving compiled JSPs to disk howto?

2003-09-09 Thread Duncan Frostick
(If this is received twice I apologise)

Hi all,

I'm hoping this is a simple question that only needs one config change, 
but I don't know. I need to configure tomcat so that when a JSP is 
compiled upon first request, the actual compiled file is saved to disk 
permanently and used by tomcat from the disk rather than stored and run 
only from memory. The reason this is needed is so that after a tomcat 
restart (which is needed quite regularly), all the JSPs don't need to be 
recompiled, which takes a long time on our large application. Of course, 
if the JSP source has changed, then it would need to recompile, but 
otherwise I'd like it to use a disk copy of the compiled JSP, saving the 
server recompiling upon a restart, thus saving our users a long time of 
waiting for the server to become responsive again.

Any help much appreciated,

Duncan Frostick

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


JSP compilation - how to get them saved to disk?

2003-09-09 Thread Duncan Frostick
Hi all,

I'm hoping this is a simple question that only needs one config change, 
but I don't know. I need to configure tomcat so that when a JSP is 
compiled upon first request, the actual compiled file is saved to disk 
permanently and used by tomcat from the disk rather than stored and run 
only from memory. The reason this is needed is so that after a tomcat 
restart (which is needed quite regularly), all the JSPs don't need to be 
recompiled, which takes a long time on a large application. Of course, 
if the JSP source has changed, then it would need to recompile, but 
otherwise I'd like it to use a disk copy of the compiled JSP, saving the 
server recompiling upon restart, thus saving our users a long time of 
waiting for the server to become responsive again.

Any help much appreciated,

Duncan Frostick

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


Re: JSP Compilation - saving compiled JSPs to disk howto?

2003-09-09 Thread Duncan Frostick
Cheers for the reply, we'll give this a go and see what happens.

Duncan Frostick

Krause Karin wrote:

Hello,
I use the following ant target to compile / and generate jsp definitions in
the web.xml file
!--  compile.jsp === --
!--
 The compile.jsp target generates from jsp files by means of Jasper2 java source 
files
 into the project source directory. It also generates a web_jsp.xml file that contains 
the
 related entries for the web.xml file.
--
 
	target name=compile.jsp description=compiles jsp files to java sources
		 taskdef classname=org.apache.jasper.JspC name=jasper2 
 	 classpath id=jspc.classpath
pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${catalina.home}/server/lib
   include name=*.jar/
/fileset
fileset dir=${catalina.home}/common/lib
   include name=*.jar/
/fileset
   /classpath
   /taskdef
 		
jasper2
	verbose=1
validateXml=true
uriroot=${web.home}
webXmlFragment=${web.home}/WEB-INF/web_jsp.xml
outputDir=${basedir}/src /

   /target

This ant target generates java sources into a directory src. Afterwards those java 
classes are compiled
using the normal way all my project classes are compiled (I use Eclipse as IDE). Then 
I supply them inside
my WAR file. Also you will need the generated webXmlFragement (called web_jsp.xml). 
The compiled jsp's are
indeed just another servlets. Here is a snippet how the web_jsp.xml fragment may look 
for a jsp called footer.jsp
servlet
servlet-namejsp.footer_jsp/servlet-name
servlet-classjsp.footer_jsp/servlet-class
/servlet
servlet-mapping
servlet-namejsp.footer_jsp/servlet-name
url-pattern/jsp/footer.jsp/url-pattern
/servlet-mapping
In order to make my normal web.xml file more readable I just included the web_jsp.xml as so-called external
entity in my web.xml file. Here is an example for that.
!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd' [
	!ENTITY web_jsp SYSTEM web_jsp.xml 
]
display-nameDemoAppl/display-name

	servlet
		servlet-namedemo/servlet-name
		descriptionSimple Test Servlet to test the Jackpot Custom tags/description
		servlet-classservlet.JspSimpleServlet/servlet-class
		init-param
			param-namesimpleservlet.jsp.directory/param-name
			param-value/jsp/param-value
		/init-param
	/servlet
	
	!--
		Here we import the webinc.xml files that contains servlets for the
		jsp 
	--
		web_jsp;
	!--
		Here comes my normal servlet mapping
	--

servlet-mapping
servlet-namedemo/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping


So when accessing my jsp page jsp/footer.jsp than the servlet jsp.footer_jsp is 
invoked and no compilation
takes place.
Regards
Karin
-Original Message-
From: Duncan Frostick [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 9. September 2003 12:29
To: Tomcat Users List
Subject: JSP Compilation - saving compiled JSPs to disk howto?
(If this is received twice I apologise)

Hi all,

I'm hoping this is a simple question that only needs one config change, 
but I don't know. I need to configure tomcat so that when a JSP is 
compiled upon first request, the actual compiled file is saved to disk 
permanently and used by tomcat from the disk rather than stored and run 
only from memory. The reason this is needed is so that after a tomcat 
restart (which is needed quite regularly), all the JSPs don't need to be 
recompiled, which takes a long time on our large application. Of course, 
if the JSP source has changed, then it would need to recompile, but 
otherwise I'd like it to use a disk copy of the compiled JSP, saving the 
server recompiling upon a restart, thus saving our users a long time of 
waiting for the server to become responsive again.

Any help much appreciated,

Duncan Frostick

-
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: How to cache the user's input in a jsp page?

2003-09-04 Thread Duncan Strang
Check out JSP's implicit object collection

For example, if you are using user sessions you can put any Object onto
the session, this will then be available whenever the user accesses the
page.
To use the session object simply use

session.setAttribute(identifier, Object);

So to save an Integer (Objects only, not primitives) for example

Integer foo = new integer(10);
session.setAttribute(fooint foo);

To retrieve it next request use

Integer foo2 = (Integer)session.getAttribute(fooint);

There are other implicit Objects including application (the jsp view of
the Servlet context) but this is globally visible so shouldn't be use to
store session type variables (IMHO)

Or you could write your own cache :)

Cheers
Duncan


-Original Message-
From: engp0510 [mailto:[EMAIL PROTECTED] 
Sent: 04 September 2003 09:00
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: How to cache the user's input in a jsp page?


Hi
How to cache the user's input in a jsp page? The following is some code
of my JSP:

%
   int item_num = 5;
   int row_num  = 1;
   if(request.getParameter(row_num)!=null){
  String rowstr = (request.getParameter(row_num));
  try{
 row_num = Integer.parseInt(rowstr);
  }
  catch(NumberFormatException ne){}
   }
%
...
...
TR class=LGREY
  TD class=L align=right width=25%  Subjectnbsp; : /TD
  TD class=L width=75%  nbsp;
  INPUT tabIndex=1 maxLength=100 size=40 name=subject 
  /TD 
/TR


..
  select size=1 name=item_num
ONCHANGE=location=this.options[this.selectedIndex].value;
   %for(int i=1;i=5;i++){%
   option
value=\AddQuotation.jsp?actionfrom=%=request_from%row_num=%=i%%i
f(row_num==i){out.print(SELECTED);}% -%=i%-/option
   %}%
/select

...
   %for(int ii=0;iirow_num;ii++){%
tr
  td width=25% align=center  %=ii+1%/td
  td width=25% align=center  
  nbsp;INPUT tabIndex=2 maxLength=100 size=25
name=project_detail_%=ii+1%/td
  td width=25% align=center  
  nbsp;INPUT tabIndex=2 maxLength=20 size=10
name=quantity_%=ii+1%/td
  td width=25% align=center 
  nbsp;INPUT tabIndex=2 maxLength=20 size=10
name=unit_price_%=ii+1%/td
/tr 

   %}% 

The choosing of select will refresh this jsp and create the rows as many
as choosed. But how to cache the input of Subject?

 email:   INPUT NAME=email
onChange=checkEmail(this.value)BR

Can I do this without using javascript?


This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



RE: How to cache the user's input in a jsp page?

2003-09-04 Thread Duncan Strang
What EXACTLY do you mean by 're-loaded'
Where do you get the data that is used to populate the table with the
number of required rows ?

Cheers
Duncan 

-Original Message-
From: engp0510 [mailto:[EMAIL PROTECTED] 
Sent: 04 September 2003 09:43
To: Tomcat Users List
Subject: Re: How to cache the user's input in a jsp page?


Thanks
But it is nothing with form and request.
Maybe I should make me more clear:


For the first time this JSP loaded, it is not sure how many rows of a
table needed by user. Then user choos a select_box to set the rows
number and then JSP was reloaded with table contain the number of rows
user selected.


   select size=1 name=item_num
ONCHANGE=location=this.options[this.selectedIndex].value;
   %for(int i=1;i=5;i++){%
   option
value=\AddQuotation.jsp?actionfrom=%=request_from%row_num=%=i%%i
f(ro
w_num==i){out.print(SELECTED);}% -%=i%-/option
   %}%
   /select


But user may set other fields before setting the number of rows, so when
the JSP was reloaded, all filled fields ahould be cached, is it
possible?




- Original Message - 
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 4:31 PM
Subject: Re: How to cache the user's input in a jsp page?


 In the servlet or jsp you could do :
 String text =  request.getParameter(subject) ;

 Then do whatever you want with it.

 engp0510 wrote:

 Thanks
 I know maybe I should use session, but when I choose select box, 
 the
jsp
 page will be reloaded. How do I save the value of INPUT tabIndex=1 
 maxLength=100 size=40 name=subject into session, that after 
 reloaded
the
 value should be the same as user input previously?
 
 - Original Message -
 From: Duncan Strang [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, September 04, 2003 4:15 PM
 Subject: RE: How to cache the user's input in a jsp page?
 
 
 Check out JSP's implicit object collection
 
 For example, if you are using user sessions you can put any Object 
 onto the session, this will then be available whenever the user 
 accesses the page. To use the session object simply use
 
 session.setAttribute(identifier, Object);
 
 So to save an Integer (Objects only, not primitives) for example
 
 Integer foo = new integer(10);
 session.setAttribute(fooint foo);
 
 To retrieve it next request use
 
 Integer foo2 = (Integer)session.getAttribute(fooint);
 
 There are other implicit Objects including application (the jsp view 
 of the Servlet context) but this is globally visible so shouldn't be 
 use to store session type variables (IMHO)
 
 Or you could write your own cache :)
 
 Cheers
 Duncan
 
 
 -Original Message-
 From: engp0510 [mailto:[EMAIL PROTECTED]
 Sent: 04 September 2003 09:00
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: How to cache the user's input in a jsp page?
 
 
 Hi
 How to cache the user's input in a jsp page? The following is some 
 code of my JSP:
 
 %
int item_num = 5;
int row_num  = 1;
if(request.getParameter(row_num)!=null){
   String rowstr = (request.getParameter(row_num));
   try{
  row_num = Integer.parseInt(rowstr);
   }
   catch(NumberFormatException ne){}
}
 %
 ...
 ...
 TR class=LGREY
   TD class=L align=right width=25%  Subjectnbsp; :
/TD
   TD class=L width=75%  nbsp;
   INPUT tabIndex=1 maxLength=100 size=40 name=subject
   /TD
 /TR
 
 
 ..
   select size=1 name=item_num 
 ONCHANGE=location=this.options[this.selectedIndex].value;
%for(int i=1;i=5;i++){%
option 
 value=\AddQuotation.jsp?actionfrom=%=request_from%row_num=%=i%
 %i
 f(row_num==i){out.print(SELECTED);}% -%=i%-/option
%}%
 /select
 
 ...
%for(int ii=0;iirow_num;ii++){%
 tr
   td width=25% align=center  %=ii+1%/td
   td width=25% align=center  
   nbsp;INPUT tabIndex=2 maxLength=100 size=25
 name=project_detail_%=ii+1%/td
   td width=25% align=center  
   nbsp;INPUT tabIndex=2 maxLength=20 size=10
 name=quantity_%=ii+1%/td
   td width=25% align=center 
   nbsp;INPUT tabIndex=2 maxLength=20 size=10
 name=unit_price_%=ii+1%/td
 /tr
 
%}%
 
 The choosing of select will refresh this jsp and create the rows as 
 many as choosed. But how to cache the input of Subject?
 
  email:   INPUT NAME=email
 onChange=checkEmail(this.value)BR
 
 Can I do this without using javascript?
 
 _
 ___
 This email has been scanned for all viruses by the MessageLabs Email
 Security System. For more information on a proactive email security
 service working around the clock

RE: Apache Tomcat Performance Handbook

2003-09-04 Thread Duncan Strang
Jeez, the stuff you learn on this list...

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: 04 September 2003 15:02
To: Tomcat Users List
Subject: Re: Apache Tomcat Performance Handbook



Well, I guess we have to be more clear.  Wrox did not go out of 
business.  Peer Information Services did.  Wrox was just one of many 
names that Peer used to publish materials.

So, while there were lots of titles and lots of great Wrox books, that

is separate from whether the company called Peer Information Services 
was managed efficiently and wisely.

I'm no MBA, but if I were to call it, I would say it was a simple matter

of too big, too many, too fast.  They had offices in three countries 
(England, India, and US), lots of people, and lots of hurry up and 
wait.  The overhead of managing all those titles had to be huge, and I 
can tell you from firsthand experience that every book probably had 30 
or 40 people involved (counting the authors) in getting it to press. 
For example, my contract was FedEx'd back and forth to India twice.  Not

a lot of money, but 3-6 authors per title and several hundred titles and

it starts to add up.  Even something as niche-oriented as the security 
handbook I worked on had 18 people and 5 authors for about 225 pages.

Without going into specifics, I can also say that Peer's royalty 
schedule was pretty poor in comparison to other publishers, so in that 
light they should have had more money to work with than one of the other

companies, but apparently that didn't make a difference.

John

Matt Fury wrote:

 How could Wrox go out of business? That doesn't sound
 right. They have 1001 titles and write great books!
 
 Are you sure?
 
 
 --- John Turner [EMAIL PROTECTED] wrote:
 
The book was never published.  The original
publisher (Wrox) went out of
business and liquidated assets.

The rights to the performance handbook (and many
other former Wrox
titles including the security handbook) were picked
up by Apress.  The 
rights to the rest were picked up by Wiley.  I think
Wiley is running 
wrox.com right now.

 From the conversations I've had with Apress, the
future of the
performance book is undecided, though that could
change at any moment. 
I for one think there is a need for such a book, but
with Tomcat 5 
coming out, it might need to be rewritten to address
the new release.

John

Flat Juas wrote:


Hi!


 I'm looking for the Apache Tomcat Performance
Handbook, but in every shop I check it's out of
print. There are no used copies in ebay neither.

Where

can I get a copy of this book (I don't mind if

it's a

used one) or buy a pdf version of it ? Can you
recommend me other books about tomcat performance

or

guide me to online resources about this subject ?

Thanks in advance

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site

design software

http://sitebuilder.yahoo.com



 -
 
To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]




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

 
 
 
 -
 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 email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



RE: Webdav and security

2003-08-28 Thread Duncan Strang
Thanks for your help.

As to your offer of further help...yes, that would certainly be good.

I have things (sort of) working now but I'm bogged down in other stuff.

I'll be back :)

Cheers
duncan

-Original Message-
From: Pike [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 00:37
To: Tomcat Users List
Subject: Re: Webdav and security


Hi Duncan

check this
http://www.mail-archive.com/[EMAIL PROTECTED]/ 
msg101208.html
see the http-method tags specified there ?

if i get it right, you dont want to open the methods GET and POST for
everyone, and after that, you want to restrict all methods
(PUT,DELETE,PROPFIND,etc) to a certain role

does that help ? I havent actually tried this :-)

 I have included the  org.apache.catalina.servlets.WebdavServlet
 in the web.xml descriptor for my application

 servlet
  servlet-nameWebdavServlet/servlet-name

servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet-
 class

  servlet-mapping
  servlet-nameWebdavServlet/servlet-name
  url-pattern//url-pattern
   /servlet-mapping

 It all falls down when I try to add security however.

 If all requests have to go through the webdav servlet, then if I 
 assign the following constraint

 security-constraint
  web-resource-collection
 web-resource-nameThe Webdav bit/web-resource-name
 url-pattern/*/url-pattern !-- or just 
 url-pattern//url-pattern --
  /web-resource-collection
  auth-constraint
 role-namesomerole/role-name
  /auth-constraint
/security-constraint

 this means that no one can see my site unless they log in . Which is
 not
 what I want of course.


goodluck,
*-pike


===
404 Not Found - The weapons you are looking for are currently  
unavailable. The country might be experiencing technical difficulties,  
or you may need to adjust your weapons inspectors mandate.


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



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



RE: Tomcat 4.0.3: security-constraint error in web.xml

2003-08-28 Thread Duncan Strang
It could be that the secuirity-constraint element is in the wrong
place in the web.xml file.

Elements need to be listed in a particular order. They can't just be
placed anywhere. The parser error tells you the order in which elements
are allowed. Does your web.xml comply with this ?

Check out the servlet specification from Sun for the full DTD

-Original Message-
From: tito santini [mailto:[EMAIL PROTECTED] 
Sent: 28 August 2003 15:24
To: Tomcat Users List
Subject: Tomcat 4.0.3: security-constraint error in web.xml


Dear all,
we actually have this very boring problem on Tomcat 4.0.3 (why not yet
upgraded? customer requirements):

We want to restrict the access at our application on HTTPS port only.
after many unsuccesful tests, we added,   for testing purpose,  these
following lines (which we believe to be the minimal configuration for
achieving security) to our web.xml file:

security-constraint
web-resource-collection
  web-resource-name
   Tutta IPMS
  /web-resource-name
/web-resource-collection
/security-constraint

Unfortunately, at startup Tomcat refuses the above lines saying, in its
log file catalina.out :

org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,servlet
*,se
rvlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-pa
ge*,
taglib*,resource-ref*,security-constraint*,login-config?,security-role*,
env-
entry*,ejb-ref*)


What's wrong? Any hint?

Very Thanks in advance for your help.


Tito Santini


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



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



RE: Tomcat 4.0.3: security-constraint error in web.xml

2003-08-28 Thread Duncan Strang
Here's another good resource

http://edocs.bea.com/wls/docs61/webapp/webappdeployment.html#1012209

Cheers

-Original Message-
From: tito santini [mailto:[EMAIL PROTECTED] 
Sent: 28 August 2003 15:24
To: Tomcat Users List
Subject: Tomcat 4.0.3: security-constraint error in web.xml


Dear all,
we actually have this very boring problem on Tomcat 4.0.3 (why not yet
upgraded? customer requirements):

We want to restrict the access at our application on HTTPS port only.
after many unsuccesful tests, we added,   for testing purpose,  these
following lines (which we believe to be the minimal configuration for
achieving security) to our web.xml file:

security-constraint
web-resource-collection
  web-resource-name
   Tutta IPMS
  /web-resource-name
/web-resource-collection
/security-constraint

Unfortunately, at startup Tomcat refuses the above lines saying, in its
log file catalina.out :

org.xml.sax.SAXParseException: The content of element type web-app
must match
(icon?,display-name?,description?,distributable?,context-param*,servlet
*,se
rvlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-pa
ge*,
taglib*,resource-ref*,security-constraint*,login-config?,security-role*,
env-
entry*,ejb-ref*)


What's wrong? Any hint?

Very Thanks in advance for your help.


Tito Santini


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



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



RE: Webdav and security

2003-08-27 Thread Duncan Strang
Hi

Thanks for that.

I actually tried this and it works in a way.

However it still lets anyone get a listing of all editable files by
virtue of the fact that GET and POST methods have no constraints applied
to them.

Still, it solves the immediate problem which is what I needed.

Cheers
Duncan



-Original Message-
From: Pike [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 00:37
To: Tomcat Users List
Subject: Re: Webdav and security


Hi Duncan

check this
http://www.mail-archive.com/[EMAIL PROTECTED]/ 
msg101208.html
see the http-method tags specified there ?

if i get it right, you dont want to open the methods GET and POST for
everyone, and after that, you want to restrict all methods
(PUT,DELETE,PROPFIND,etc) to a certain role

does that help ? I havent actually tried this :-)

 I have included the  org.apache.catalina.servlets.WebdavServlet
 in the web.xml descriptor for my application

 servlet
  servlet-nameWebdavServlet/servlet-name

servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet-
 class

  servlet-mapping
  servlet-nameWebdavServlet/servlet-name
  url-pattern//url-pattern
   /servlet-mapping

 It all falls down when I try to add security however.

 If all requests have to go through the webdav servlet, then if I 
 assign the following constraint

 security-constraint
  web-resource-collection
 web-resource-nameThe Webdav bit/web-resource-name
 url-pattern/*/url-pattern !-- or just 
 url-pattern//url-pattern --
  /web-resource-collection
  auth-constraint
 role-namesomerole/role-name
  /auth-constraint
/security-constraint

 this means that no one can see my site unless they log in . Which is
 not
 what I want of course.


goodluck,
*-pike


===
404 Not Found - The weapons you are looking for are currently  
unavailable. The country might be experiencing technical difficulties,  
or you may need to adjust your weapons inspectors mandate.


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



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



Webdav and security

2003-08-26 Thread Duncan Strang
 
Hi
 
I have included the  org.apache.catalina.servlets.WebdavServlet
in the web.xml descriptor for my application
 
servlet
 servlet-nameWebdavServlet/servlet-name
 
servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet-class

 ...
 
reading the minimal documentation I have been able to find it appears
that  to enable webdav functionality in my application all requests
should go through the webdav servlet
so I set the mapping up as follows(I do have other Servlets of course)
 
 servlet-mapping
 servlet-nameWebdavServlet/servlet-name
 url-pattern//url-pattern
  /servlet-mapping
 
Now, everything works fine.
 
I can view my site and open a web folder from IE6
 
It all falls down when I try to add security however.
 
If all requests have to go through the webdav servlet, then if I assign
the following constraint
 
security-constraint
 web-resource-collection
web-resource-nameThe Webdav bit/web-resource-name
url-pattern/*/url-pattern !-- or just
url-pattern//url-pattern --
 /web-resource-collection
 auth-constraint
role-namesomerole/role-name
 /auth-constraint
   /security-constraint
 
this means that no one can see my site unless they log in . Which is not
what I want of course.
I want anyone to be able to view the site but anyone trying to modify
the site should be required to log in.
 
How do I enable security over the webdav functionality without locking
out anyone that simply wants to view my site ?
 
Cheers
Confused


Is this the correct place to ask questions about WebDAV

2003-08-26 Thread Duncan Strang
Hi
 
Is this the correct place to ask questions about getting the WebDAV
functionality working the way I would like on Tomcat 4.1.
 
Many Thanks
 
D.Strang


Tomcat, WebDAV and Dreamweaver

2003-08-22 Thread Duncan Strang
Hi
 
I'm trying to figure out how to use the WebDAV support that appears to
come with Tomcat 4.1 to remotely modify a webapp using Dreamweaver as
the WebDAV client.
 
Has anyone done this ?
 
Are you trying to do this but don't want to use SLIDE.
 
Do you want to share knowledge/collaborate
 
Drop me a line if you do.
 
Cheers
Duncan
 
Duncan Strang
JAVA Consultant
UK eUniversities Worldwide Limited
 
Direct:+44 (0)207 932 4495
Fax: +44 (0)207 932 4445
Mobile:   +44 (0)
E-mail:  [EMAIL PROTECTED] 
www.ukeu.com http://www.ukeu.com/ 
 
Switchboard: +44 (0)207 932 
 

This e-mail is from UK eUniversities Worldwide Limited, 14 Buckingham
Gate, London. SW1E 6LB, United Kingdom, No: 4218275.
 
This e-mail (and any attachment) is confidential to the addressee and
may be privileged.  If you are not the named addressee please notify the
sender immediately by calling our switchboard on  +44 (0) 207 932  -
do not disclose to another person or use, copy or forward all or any of
it in any form.
 
All information or opinions expressed in this message and/or any
attachments are those of the author and are not necessarily those of UK
eUniversities Worldwide Limited or any of its affiliates. UK
eUniversities Worldwide Limited or any of its affiliates accept no
responsibility for loss or damage arising from its use, including damage
from virus.

 


Setting the root application

2003-08-21 Thread Duncan Strang
Hi
 
I hope you don't consider this too trivial a question but I have tried
everything I can think of to get this working. I have read as much of
the docs as I can, looked at the faq's and searched the archives. I know
the information is there but I can't find it.
 
I want to make my application the root application.
That is, I don't want to have to type in the context path after the port
I just want to type http://localhost:8080
 
Actually I have this working.
The first resource accessed is a Servlet
here's my servlet mapping
 
   servlet-mapping
servlet-nameLocaleChecker/servlet-name
url-pattern//url-pattern
/servlet-mapping
 
When I access http://localhost:8080 http://localhost:8080/  the
servlet executes and forwards the request to a jsp dependant on weather
a cookie is available
 here is the server.xml that sets the root application
 
Context path= docBase=mydir debug=0/
 
here is the jsp that is being executed
 
...
 
%System.out.println(JSP resource paths =  +
application.getResourcePaths()); %
 
brbr
table
tr
tdimg src=/images/england.gif/td
/tr
/table
 
...
 
The output from getResourcePaths is
 
JSP resource paths = [/header.jsp, /images/, /.nbattrs, /getCountry.jsp,
/WEB-INF/]
Yes, the images are available in the images directory.
 
However, no matter what I do I cannot get the images to display. I have
tried every conceivable path expression without luck.
 
Any halp much appreciated.
 
Cheers
Duncan L.Srang
 
 


RE: Setting the root application

2003-08-21 Thread Duncan Strang
OK, thanks, actually this was my first idea...I've done it like this
before.

I was hoping to avoid doing it like this but until I figure out what is
going on and how to deal with it I will do as you suggest

Thanks for the advice

Cheers
Duncan L.Strang


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: 21 August 2003 12:10
To: Tomcat Users List
Subject: Re: Setting the root application


That is because / matches EVERY request so you have replaced the default

servlet. Your servelt is now responsible for serving images.

An easy workaround is to:
- use welcome file listing in web.xml
- create a welcome file (ex: index.jsp) that redirects to your servlet
mapped 
to a better mapping

-Tim

Duncan Strang wrote:
 Hi
  
 I hope you don't consider this too trivial a question but I have tried

 everything I can think of to get this working. I have read as much of 
 the docs as I can, looked at the faq's and searched the archives. I 
 know the information is there but I can't find it.
  
 I want to make my application the root application.
 That is, I don't want to have to type in the context path after the 
 port I just want to type http://localhost:8080
  
 Actually I have this working.
 The first resource accessed is a Servlet
 here's my servlet mapping
  
servlet-mapping
 servlet-nameLocaleChecker/servlet-name
 url-pattern//url-pattern
 /servlet-mapping
  
 When I access http://localhost:8080 http://localhost:8080/  the 
 servlet executes and forwards the request to a jsp dependant on 
 weather a cookie is available  here is the server.xml that sets the 
 root application
  
 Context path= docBase=mydir debug=0/
  
 here is the jsp that is being executed
  
 ...
  
 %System.out.println(JSP resource paths =  + 
 application.getResourcePaths()); %
  
 brbr
 table
 tr
 tdimg src=/images/england.gif/td
 /tr
 /table
  
 ...
  
 The output from getResourcePaths is
  
 JSP resource paths = [/header.jsp, /images/, /.nbattrs, 
 /getCountry.jsp, /WEB-INF/] Yes, the images are available in the 
 images directory.
  
 However, no matter what I do I cannot get the images to display. I 
 have tried every conceivable path expression without luck.
  
 Any halp much appreciated.
  
 Cheers
 Duncan L.Srang
  
  
 


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



Tomcat running as a service...

2002-09-11 Thread Joseph Duncan Shaw

Hi there...

I have installed Tomcat on my Win2000 server and it's running perfectly!! 

One question I have though...How do I get Tomcat to start automatically on
my server as it boots (so that I don't have to logon).

I have tried installing Tomcat as a service, but it doesn't work (seems that
the Tomcat.exe isn't all that is required to get Tomcat up and running).

Any other suggestions? 

Thanks!

Regards, Joseph Shaw
MCP 2000, ITE Dipl.

Millennium Computer Services
(Tel)+27 21 4481777
(fax)+27 21 448 1982


**
Disclaimer :
 This message contains confidential information and is intended only for the
addressee. If you are not the named addressee you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately if you
have received this e-mail by mistake and delete this e-mail from your
system. 
 Millennium accepts no liability for the content of this email, or for the
consequences of any actions taken on the basis of the information provided,
unless that information is subsequently confirmed in writing. Any views or
opinions presented in this email are solely those of the author and do not
necessarily represent those of the company.  Employees of Millennium are
expressly required not to make defamatory statements and not to infringe or
authorize any infringement of copyright or any other legal right by email
communications. Any such communication is contrary to company policy and
outside the scope of the employment of the individual concerned. The company
will not accept any liability in respect of such communication, and the
employee responsible will be personally liable for any damages or other
liability arising
 Computer viruses can be transmitted via email. The recipient should check
this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email. 

**


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




Re: Questionnaire

2002-08-12 Thread aaron . duncan

Marcos Manosso [EMAIL PROTECTED]
08/08/2002 11:05
Please respond to Tomcat Users List

 
To: Marcos Manosso [EMAIL PROTECTED]
cc: Marcos Manosso [EMAIL PROTECTED]
Subject:Questionnaire
Is this part of a business decision process?: 


Dear Sir/Madam

We are conducting some research concerning the public's opinion about the 
level of ethics in advertising. As you may be aware, many companies have 
ethical advertising policies. Furthermore,  the media (i.e. TV, Radio, 
Magazines and Newspapers) have governmental and non-governmental 
organizations that are suppose to monitor the ethical content of 
advertisements. The questions we want to address in this study are 
whether, in the public's opinion, (a) this control is really maintaining a 
high level of ethics in advertising executions; (b) what are the main 
issues in advertising ethics that should be dealt with in order to ensure 
this high ethical level, and (c) if ethics impacts consumers attitudes and 
behaviours towards firms that maintain high levels of ethics in their 
business and advertisings, which may be reflected in the company's society 
and environment.

In order to answer these questions, we need your help. Following this 
letter is a short questionnaire. We would really appreciate your help in 
completing and returning it. Your responses are extremely valuable and 
will help us gain a better understanding of the issues of advertising 
ethics and corporate social responsibility.

Once completed, please return the questionnaire to [EMAIL PROTECTED] 

We know your time is valuable, and therefore, as a token of our 
appreciation for your cooperation, we would be pleased to send you the 
results and analysis of this questionnaire. If you wish to receive this 
summary, please place your e-mail address in the Subject box of your 
response e-mail.

We assure you that the information you provide will be kept strictly 
confidential and combined with all other responses so that no individuals 
can be identified. In addition, your  name and/or e-mail address will 
remain in the highest levels of anonymity and privacy, and will not be 
given, sold or otherwise distributed to anyone, being destroyed from our 
records immediately after your questionnaire is gathered and (if the case) 
the results posted to you.

Please take a few minutes now to complete and return the questionnaire.

Thank you very much for your help

Marcos Manosso
[EMAIL PROTECTED]





Please complete the following fields:
Age:29 
Country of residence:Australia 
Gender (Male / Female):Male 
Education Level (Elementary / High School / University / 
Post-Graduate):University 

 
Please answer the following questions by placing an x in the appropriate 
space:
Businesses have responsibilities with society that go beyond job 
creation. 
1. Strongly agree   (X) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (__)
5. Strongly Disagree   (__)

It is possible for a business to be both ethical and profitable. 
1. Strongly agree   (X) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (__)
5. Strongly Disagree   (__)

Advertising shows an accurate view of reality. 
1. Strongly agree   (__) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (X)
5. Strongly Disagree   (__)

Advertising helps to shape society's views of the world and itself. 
1. Strongly agree   (X) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (__)
5. Strongly Disagree   (__)

How do you view the level of ethics in general advertising? 
1. Very High   (__)
2. High   (__)
3. Average   (X)
4. Low   (__)
5. Very Low   (__)

 
Whose responsibility is it to deal with the social problems of the world? 
(please mark with an x, as appropriate)
01.  Businesses   (__)
02.  Non-Profit Organizations   (__)
03.  Government   (X)
04.  Non-Government Organizations (NGOs)   (__)
05.  Schools and Universities   (X)
06.  General Public   (X)
07.  Other - Please cite:___ 


Which of the following issues in general advertising would you consider 
being unethical? (please mark by placing an x in the appropriate 
place(s))
01. Ads for abortion services or family planning   (X)

02. Ads for cosmetic surgery or other elective surgery   (__)

03. Ads for medical products and services   (__)

04. Ads for personal care and hygiene products   (__)

05. Ads for professional services (lawyers, doctors, etc.)   (__)

06. Ads for workers to replace striking workers   (X)

07. Advertising pharmaceuticals   (__)

08. Advertising to children   (X)

09. AIDS-awareness ads   (__)

10. Alcoholic beverage ads   (__)

11. Anti-abortion ads   (__)

12. Anti-alcohol Public Service Announcements   (__)

13. Anti-cigarette Public Service Announcements   (__)

14. Anti-drug Public Service Announcements   (__)

15. Censorious advertising   (__)

16. Cigarette and tobacco ads   (__)

17. Comparative advertising   (__)

18. Condom ads   (__)


Re: IE problem, new session created for new browser instance

2002-01-21 Thread Duncan Smith

We find this feature of IE very useful. As users have to log into one of our sites, 
having a differant session for each browser instance is very useful as we can track 
multiple users logged on on
the same machine in differant browser windows. Am am confused as to why Netscape is 
working in that situation, but then we all know how unpredictable it can be :-)

You could create your own cookie and retreive it when a new browser window is 
activated? You haven't said why you would want a session to be persistant across 
differant instances of the browser so
this is the only suggestion I can make.

Duncan

korimilli vijay wrote:

 Hi,

 I am stuck in my project because of the session creation problem in IE. I am using 
IE browser 6.0 and tomcat 4.0.1.

 When i open two browser instances of IE, they are creating two http sessions. I am 
expecting, that the new browser instance should find any already open session and not 
to create a new sesion.

 I have enabled all cookies in the browser privacy preferences. When i try the same 
on netscape 6, it is working perfect and not creating any new sessions.

 It would be of great help, if someone can give me any solution.

 Advanced thanks,

 Vijay

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: error using jsse: cannot recover key

2002-01-18 Thread Duncan Smith

You haven't said what OS you are using, but I had the same problem with
Win2K.

I found that after generating the key I had to then move it from my user
directory under c:\docs and setts\(user) and move it to c:\docs and
setts\defaut user\.

Just a suggestion.

Duncan.

Mehul S Dave wrote:

 Hello,

   i have generated the RSA key by using keytool  then as per the
 configuration i have done the setting in the server.xml file.
 I am using jsse for SSL. when i start my server then it gives me
 java.io.IOException:Cannot recover  key

 Please resolve the problem
 Thanks
 Mehul

 *
 Mehul S Dave
 Scientific Officer,(STCS Dept.).
 School of Technology and Computer Science
 Tata Institute of Fundamental Research
 Phone -091 22 2152971 Extn - 2550
 Mumbai .
 webpage:- http://www.ecom.tifr.res.in/~mehul
   http://www.tifr.res.in/~mehul
 
 (Keep Smiling Forever)))
 

 *

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Session timeouts

2002-01-15 Thread Duncan Smith

Hello all.

I want to set the session timeout for a web app. In the example web.xml
it says that the the value is is seconds, but in book I have about
Tomcat 4 it says that it's in minutes.

Does anyone know which one is right?

Many thanks
Duncan.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JSSE 1.0.2

2001-12-31 Thread Duncan Smith

Sorry. I was configuring JRE right, but I was configuring the wrong JRE. I'm new
to java and didn't know that JRE came with the JDK, so I installed it seperatly.

Many thanks for your help

Duncan




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JSSE 1.0.2

2001-12-24 Thread Duncan Smith

Thanks. I've already added that line to the security file but it was in
jre\lib\security. I don't beleive that I am running the security manager, but I
am still getting that same message
(java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
javax/net/ServerSocketFactory) in the log.

Any other suggestions?

Many thanks, Duncan.

Renato wrote:

 You need to include the security provider in your java.security file:

 security.provider.3=com.sun.net.ssl.internal.ssl.Provider

 Also, are you running tomcat with a security manager ? if so, make sure you
 have jre\lib\ext with permissions.

 Renato - Brazil

 On Fri, 21 Dec 2001 17:16:49 +, Duncan Smith [EMAIL PROTECTED]
 escreveu :

  Hello.
  I've just downloaded JSSE 1.0.2 and put the three .jar files in
  jre\lib\ext directory.
 
  I've uncommented the example SSl connector in server.xml, but when I
  restart, I get this error in the stdout.log:
 
  Exception during startup processing
  java.lang.reflect.InvocationTargetException:
  java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory
 
  Can anybody help?
 
  Many thanks in advance, Duncan.
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JSSE 1.0.2

2001-12-21 Thread Duncan Smith

Hello.
I've just downloaded JSSE 1.0.2 and put the three .jar files in
jre\lib\ext directory.

I've uncommented the example SSl connector in server.xml, but when I
restart, I get this error in the stdout.log:

Exception during startup processing
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory

Can anybody help?

Many thanks in advance, Duncan.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Directory browsing

2001-12-13 Thread Duncan Smith

Hi all.

How does one disable directory browsing for a Context (or even a
Service)?

Many thanks
Duncan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Web Apps

2001-12-12 Thread Duncan Smith

Can anybody please point me in the direction for a good help/tutorial
file for editing and adding Web Apps in Tomcat 4?

Cheers
Duncan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: can't have multiple occurrences of language

2001-12-11 Thread Duncan Smith

Cheers. Fixed the prob.

Anonymity can be to ones advantage by the way.

Fred.

Justin Rowles wrote:

  I've just moved a system of ours from Jrun to Tomcat. A page which did
  run on Jrun now come comes up with this error on Tomcat : 'Page
  directive: can't have multiple occurrences of language'. Can anybody
  help?

 Duncan, also known as Andy,

 Have you checked that you don't have multiple occurrences of the language
 directive?!  It looks like this:

%@ page language=java

 Cheers, apols for the sarcasm, I'm in a funny mood.  Well, I think so ;-)

 J.
 --
 You're only jealous cos the little penguins are talking to me.

 ***
 For more information on Ordnance Survey products and services,
 visit our web site at http://www.ordnancesurvey.co.uk
 ***

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




What is it with people sending worms to this list ...

2001-05-15 Thread Duncan, Mike

this makes 2 today ... incase some do not know ... the message (subject:
HOMEPAGE) is a well known .vbs type worm. Much like that of the I-LOVE-YOU.
Please do not open the attached file in that message, you will just end up
sending this list more of this. 


Mike Duncan
Web Master/Developer 
Sonopress, LLC (Weaverville)

(828)658-6082
[EMAIL PROTECTED]





RE: Apache + SSL

2001-05-14 Thread Duncan, Mike

Try http://www.modssl.org or http://www.openssl.org as the FAQ and HOWTOs
are most valuable and helped me out a lot when I did this for the first
time.

PS: Even the mod_perl guide at http://perl.apache.org/guide was good too as
it showed how not only to install mod_perl, but mod_perl with other modules
such as mod_ssl.



Mike Duncan
Web Master/Developer 
Sonopress, LLC (Weaverville)

(828)658-6082
[EMAIL PROTECTED]




-Original Message-
From: Martin Mauri [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 10:04 AM
To: [EMAIL PROTECTED]
Subject: Apache + SSL


Hi,

Can anyone help me to find useful information on how to configure Apache to
work with SSL as well as SSL documentation?

regards.

Lic. Martin O. Mauri
Profesion + Auge A.F.J.P
Parana 666 - Cap. Federal
TE: (011) 4373-7786/7 int: 422
[EMAIL PROTECTED]
www.profesi.com.ar



RE: Tomcat will not start on Windows 2000 Server.

2001-05-11 Thread Duncan, Mike

Isn't port 8080 used for IIS-Admin service? try going to
http://localhost:8080 and see if you get a login dialog. If so, then that
port is already in use.



Mike Duncan
Web Master/Developer 
Sonopress, LLC (Weaverville)

(828)658-6082
[EMAIL PROTECTED]




-Original Message-
From: Scott Weaver [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 9:18 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat will not start on Windows 2000 Server.


I'm running Tomcat on Win 2000 Server and so far everything is working fine.
But I installed Tomcat after Win 2000 Server was installed.

Were you running Tomcat on something other than port 8080?
From the java docs I see that error usually gets thrown when a port is
already in use.
Just a guess.

Scott

-Original Message-
From: Pfeil, Richard [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 1:34 AM
To: [EMAIL PROTECTED]
Subject: Tomcat will not start on Windows 2000 Server.


I have recently upgraded a machine from Windows NT 4.0 Server to Windows
2000 Server.  Since uprading Tomcat throws the following error when it
starts:
FATAL:java.net.BindException: Address in use: JVM_Bind

This problem does not occur on Windows 2000 Professional.

Thanks in advance
Richard



RE: Tomcat, IIS and virtual hosts

2001-05-03 Thread Duncan Irvine

I didn't spend too long on this, as we only needed the vhosts as a stop-gap
solution, and only needed three at that, but the only way I found to do it
was to have vhosts defined in both Apache and Tomcat.

Apache's vhosting knows the difference for the static pages, and any
.jsps/servlets for *any* of the servers are handed off to Tomcat without
vhosting.  Tomcat then knows the correct vhost as well, and serves the
relevant jsp.  I forget which (but I believe Apache) complained about the
mod_jk config appearing within a vhost definition.  I've no idea about IIS
unfortunately - I only use real web-servers!

The rest of the information you need is in the docs, and you should be able
to work it out yourself.  

There may be a better way to do it, but I didn't have the time to find it.

Hope this helps,
Duncan.

P.S. I can probably dig the old config files out if you need them, but I
don't have them to hand at the mo.


 -Original Message-
 From: Brian Murray [mailto:[EMAIL PROTECTED]]
 Sent: 03 May 2001 08:42
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat, IIS and virtual hosts
 
 
  Apache is a much better solution for virtual hosts than IIS
 
 He's using IIS and I'm using Apache.  What we have in common 
 is that we're both after examples of
 setting up Tomcat to work with virtual hosts.  I'm sorry if 
 that was not clear.
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/
 



This message contains information which may be privileged
and confidential and subject to legal privilege. If you are not
the intended recipient, you may not peruse, use, disseminate,
distribute or copy this message. If you have received this 
message in error, please notify the sender immediately by 
e-mail, facsimile, or telephone and return or destroy the 
original message. Sopheon and its officers are not responsible
for any statements or material in this e-mail and in any attachment
to it which might give rise to any criminal or civil claim.




RE: Why Use apache

2001-05-02 Thread Duncan Irvine

I would suggest that Apache is also more secure - it's been around longer,
and has had more development, thus has had longer to mature.  If you hide
Tomcat behind Apache, then any bugs that may appear in Tomcat's URL parsing
(for example) are less of a worry.

Duncan.


 -Original Message-
 From: David M. Rosner [mailto:[EMAIL PROTECTED]]
 Sent: 02 May 2001 16:06
 To: [EMAIL PROTECTED]
 Subject: RE: Why Use apache
 
 
 If I have all my static html and graphics loading off of 
 other servers, is 
 there any reason to use Apache with Tomcat? Is the 
 combination more stable 
 or is performance better with both running?
 
 thanks
 
 -dave
 
 At 11:00 AM 5/2/2001, Ronan Derby wrote:
 tomcat isn't as good as apache at serving static html files 
 and images.
 also, with apache up and running you can do other stuff like 
 execute cgi
 scripts and so on.
 
 -Original Message-
 From: Skinner, Dallas M [mailto:[EMAIL PROTECTED]]
 Sent: 02 May 2001 15:48
 To: [EMAIL PROTECTED]
 Subject: Why Use apache
 
 
 Excuse me if this question is obvious.  If Tomcat can be run 
 in a standalone
 mode, why should it be used in conjunction with apache?
 
 Thanks
 
 Dallas Skinner
 



This message contains information which may be privileged
and confidential and subject to legal privilege. If you are not
the intended recipient, you may not peruse, use, disseminate,
distribute or copy this message. If you have received this 
message in error, please notify the sender immediately by 
e-mail, facsimile, or telephone and return or destroy the 
original message. Sopheon and its officers are not responsible
for any statements or material in this e-mail and in any attachment
to it which might give rise to any criminal or civil claim.




RE: Cache problem with IE

2001-03-13 Thread Duncan Irvine

I'm sure someone will jump on this from a great height if I'm wrong, but I
seem to recall that the cache settings are for intermediate caches - not the
browser.  The browser can cache pages as it sees fit - provided that it
checks to see if they've been updated, but the cache control settings are
there to stop intermediate caches from falsely reporting a page as not
having changed.

Duncan.


 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]]
 Sent: 13 March 2001 16:13
 To: [EMAIL PROTECTED]
 Subject: Cache problem with IE
 
 
 Hi,
 
 with the code below I can get netscape not to cache a jsp page but it
 does not work with Internet-Explorer.
 Does anybody know why?
 
 
 response.setHeader("Cache-Control", "no-cache");
 response.setHeader("Pragma", "no-cache");\
 
 
 
 Zsolt
 
 -- 
 Zsolt Koppany
 Intland GmbH www.intland.com
 Schulze-Delitzsch-Strasse 16
 D-70565 Stuttgart
 Tel: +49-711-7871080 Fax: +49-711-7871017
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 



This message contains information which may be privileged
and confidential and subject to legal privilege. If you are not
the intended recipient, you may not peruse, use, disseminate,
distribute or copy this message. If you have received this 
message in error, please notify the sender immediately by 
e-mail, facsimile, or telephone and return or destroy the 
original message. Sopheon and its officers are not responsible
for any statements or material in this e-mail and in any attachment
to it which might give rise to any criminal or civil claim.


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




WebdavServlet

2001-02-12 Thread Duncan McGregor

I'm interested in extending WebdavServlet to give directory-like access to a
compound video file format we're developing, allowing the file to be treated
like a directory of scenes, themselves composed of shots. So I'll serve the
file and scenes as DAV containers, and generate the data for individual
shots on the fly when the "file" is requested.

However reading the code its not clear to me how tightly WebdavServlet is
tied to Catalina.

I think that as, for example, serveResource(...) in DefaultServlet casts a
javax.servlet.ServletContext to an org.apache.catalina.ApplicationContext,
this implies that WebdavServlet will only run within Catalina. Is this the
case? If so, does anybody know of a bare-bones generic DAV servlet which I
can start with.

Thanks in advance

Duncan Mc^Gregor
"The name rings a bell"




*
The information contained in this message or any of its
attachments may be privileged and confidential and intended 
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
**

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




  1   2   >