RE: Desperate: trying to get Tomcat working through IIS

2005-09-09 Thread Woodchuck
hihi all,

fyi, there is a nice installation program that takes the pain out of
configuring IIS -- Tomcat for you, and it can be found here:

http://www.shiftomat.de/opensource/

we use this in production and it works great.  have tested it on IIS 5
-- Tomcat 4.1.24 and also IIS 6 (W2k3) -- Tomcat 5.5.9

just a few clicks and you're done.  no manual editing of any files at
all.


woodchuck


--- Tracy Spratt [EMAIL PROTECTED] wrote:

 Looking a little further, I suspect the jsp extension configuration
 in
 IIS is not necessary, because the uriworkermap.properties context
 specification handles that.
 
 Specifically, in the line 
   /servlet-examples/*=ajp13w
 I think the asterisk allows any extension.
 
 I read in the IIS HowTo that if you want to restrict Tomcat to
 serving
 specific file types, say jsp only, you can do this:
   /servlet-examples/*.jsp=ajp13w
 
 From that I infer that * alone permits any extension.
 
 Tracy
 
 -Original Message-
 From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 2:33 PM
 To: Tomcat Users List
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 Dave, I missed that you were using IIS 5 when I suggested the Web
 Extensions step.  That is new with win 2003 and IIS 6 I believe.
 
 Since we are figuring this out as we go along, why don't your remove
 that jsp extension specification and see if you still work.  I did
 NOT
 add it and I can serve jsp pages through the isapi filter ok.
 
 Tracy
 
 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 2:02 PM
 To: 'Tomcat Users List'
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 Hi;
 
 I went to Default Web Site, Properties, Home Directory,
 Configuration,
 and
 on the mappings tab I added .jsp - C:\Program Files\Apache Software
 Foundation\Tomcat 5.5\bin\isapi_redirect.dll It requires the  - I
 assume
 because of the spaces.
 
 Is this necessary? Any idea what this does?
 
 Thanks - dave
 
 
 David Thielen
 303-499-2544
 www.windwardreports.com
 
 
 -Original Message-
 From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 10:28 AM
 To: Tomcat Users List
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 Also, I think you have to manually add the isapi_redirect.dll to the
 Web Extensions In IIS, if you haven't already.  If this is not
 necessary, please correct me.
 
 Tracy
 
 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 09, 2005 12:19 PM
 To: Tomcat Users List
 Subject: RE: Desperate: trying to get Tomcat working through IIS
 
 Hi,
 
 Can you list the registry settings in Apache Software
 Foundation/Isapi
 Redirector ..
 
 Can you check that your website has the ISAPI filter installed with a
 green arrow pointed up?
 
 Cheers, Allistair
 
  -Original Message-
  From: David Thielen [mailto:[EMAIL PROTECTED]
  Sent: 09 September 2005 17:16
  To: 'Tomcat Users List'
  Subject: RE: Desperate: trying to get Tomcat working through IIS
  
  
  First off - THANK YOU. It's amazing how it's so often a dumb 
  little thing.
  
  Second, I'm getting a lot closer. I now get the following in 
  the IIS log:
  16:10:38 127.0.0.1 GET /servlet-examples/index.html 200
  
  The isapi_redirect.log is still empty (0 bytes).
  
  The jakarta virtual directory is set to Execute Permissions: 
  Scripts and
  Executables.
  
  Any ideas?
  
  Thanks - dave
  
  David Thielen
  303-499-2544
  www.windwardreports.com
  
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
  Sent: Friday, September 09, 2005 1:57 AM
  To: Tomcat Users List
  Subject: RE: Desperate: trying to get Tomcat working through IIS
  
  if your uriworkermap.properties file contains 
  
  /servlet-examples/*=ajp13w
  !/servlet-examples/*.jpeg=ajp13w
  
  then why are you expecting 
  
  http://localhost/jsp-examples/index.html 
  
  to work? For that, you'd need to add
  
  /jsp-examples/*=ajp13w
  
  (and restart IIS)
  
  Allistair.
  
   -Original Message-
   From: David Thielen [mailto:[EMAIL PROTECTED]
   Sent: 09 September 2005 00:50
   To: tomcat-user@jakarta.apache.org
   Subject: Desperate: trying to get Tomcat working through IIS
   
   
   Hi;
   

   
   I followed the instructions in
   http://jakarta.apache.org/tomcat/connectors-doc/howto/iis.html
It references
   for configuring Tomcat with IIS 5 and 6 with a link - but 
   the link is dead
   and a search in the wiki it goes to shows nothing. I rebooted
 after
   installing before attempting to connect.
   

   
   When I go to http://localhost:8080/jsp-examples/index.html - 
   it works. When
   I go to http://localhost/jsp-examples/index.html I get an error
 404.
   

   
   My IIS log is:
   
   #Software: Microsoft Internet Information Services 5.1
   
   #Version: 1.0
   
   #Date: 2005-09-08 23:37:35

Re: Tomcat 5.5 classloader log4j vs JCL issue

2005-09-06 Thread Woodchuck
hihi Paul,

i tried your suggestion but it still did not work.  however, i finally
found out why.

the problem web application had the following code:

try {
 System.setProperty(org.apache.commons.logging.Log,
   
org.apache.commons.logging.impl.Log4JCategoryLog);
  } catch (java.security.AccessControlException e) {
 logCat.warn(Unable map commons-logging to Log4j, due to
SecurityManager,
 e);
  }

this piece of code seems like the ultimate way of setting the logging
system.  at least this was the effect it had in my case.  (perhaps it
was executed last... definitely after your listener code)

in any case, once i commented out this bit of code everything was fine
again, and i did not have to put the combination log4j.jar and
commons-logging.jar into the ${Tomcat}/common/lib folder.  i was able
to place them in the relevant web app's WEB-INF/lib folder and my other
web apps were undisturbed!  yay!  :)


thanks again for your help, Paul!

woodchuck



--- Paul Austin [EMAIL PROTECTED] wrote:

 Woodchuck,
 
 The following web page describes this situation and a solution to the
 problem.
 http://www.qos.ch/logging/sc.jsp
 
 I have attached the solution that I created this week based on the
 information above. To compile you will need servlet-api.jar and
 log4j.jar to compile.
 
 Include the jar you create from these files in your web application
 and
 then in your web.xml include the following sections.
 
 This section can be used if your log4j.xml is not
 under /WEB-INF/log4j.xml
   context-param
 param-namelog4jXmlLocation/param-name
 param-value/WEB-INF/log4j.xml/param-value
   /context-param
 
 The following calls invokes the listerner when the web app starts up
 to
 create a separate logging context for the web application.
 
   listener
 

listener-classcom.revolsys.logging.log4j.Log4jServletContextListener/listener-class
   /listener
 
 Also make sure you have a listener that does the following when the
 context is destroyed otherwise you'll get a log of PermGen out of
 memory
 errors after a number of redeploys
 
 Introspector.flushCaches();
 LogFactory.getFactory().release();
 
 Good luck,
 Paul
 
 On Wed, 2005-08-31 at 13:03 -0700, Woodchuck wrote:
 
  hihi all,
  
  on my TC 5.5.9 installation i deployed several web applications
 that
  uses the default JCL logging.  that is, i placed a simple
  logging.properties file into each web app's WEB-INF/classes folder
 and
  i have per web app logging.  everything works beautifully.
  
  then i installed a new web app that forced me to place
  commons-logging.jar and log4j.jar into the ${Tomcat}/common/lib
 folder.
   as a result, all my previous per web app logging no longer works.
  
  i believe this is because log4j was discovered in the
  ${Tomcat}/common/lib first, and therefore it has superceeded any
 other
  logging system at the (lower) web app level.  this is due to
 Tomcat's
  classloading process.
  
  the reason this new web app required commons-logging.jar and
 log4j.jar
  to be placed specifically into the ${Tomcat}/commons/lib folder is
  because it instantiates a log4j logger object in it's start-up
 servlet
  which extends HttpServlet which is found in the servlet-api.jar
 which
  is also in the ${Tomcat}/commons/lib folder.  this is because
 Tomcat's
  classloading hierarchy dictates that classes in the common/lib
 cannot
  see web app classes 'downstream'.
  
  does anyone have any suggestions on how i can have per web app
 logging
  again?  i would like to keep my deployment process as web app
 isolated
  as possible (ie. each web app deployed by WAR, drop it in and
 that's
  it, no further steps necessary).
  
  thanks in advance,
  woodchuck
  
  
  
  
  Start your day with Yahoo! - make it your home page 
  http://www.yahoo.com/r/hs 
  
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  /*
  * Copyright 2005 Revolution Systems Inc.
  * 
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  * 
  *  http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing,
 software
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 implied.
  * See the License for the specific language governing permissions
 and
  * limitations under the License.
  */
 package com.revolsys.logging.log4j;
 
 import java.util.HashMap;
 import java.util.Map;
 
 import org.apache.log4j.Hierarchy;
 import org.apache.log4j.Level;
 import org.apache.log4j.LogManager;
 import org.apache.log4j.spi.LoggerRepository;
 import

RE: Tomcat 5.5 classloader log4j vs JCL issue

2005-09-06 Thread Woodchuck
hihi Seva,

yes, your suggestion also works.  i tried it to confirm, and it was my
backup plan to do in case i couldn't figure out how to *not* place
log4j.jar and commons-logging.jar into the ${Tomcat}/common/lib folder.

just fyi, it's also possible to centralize logging for the entire
servlet container by having the log4j.properties file in
${Tomcat}/common/classes (and the log4j.jar in ${Tomcat}/common/lib). 
this way, it is not necessary to put log4j.jar in each web app's
WEB-INF/lib folder, nor the log4j.properties file in each web app's
WEB-INF/classes folder.  centralize, as in one log4j.properties file
and one log4j.jar file.  yet, Tomcat and each web app can still
maintain their own separate log files!  i've tested this and it works
as well.


woodchuck


--- Seva Popov [EMAIL PROTECTED] wrote:

 Woodchuck,
  
 I guess, the alternative solution is to have all your web apps use
 log4j
 as well.
  
 So, you have commons-logging.jar and log4j.jar in the
 ${Tomcat}/common/lib folder
 and log4j.properties in ${Tomcat}/common/classes folder.
  
 Just add into your each web app's WEB-INF/classes folder
 log4j.properties file and
 into WEB-INF/lib folder log4j.jar.
  
 This way both Tomcat and your web apps will use separate log4j
 configurations.
  
 Thanks,
 Seva
  
 
 
 From: Paul Austin [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 31, 2005 1:30 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.5 classloader log4j vs JCL issue
  
 Woodchuck,
 
 The following web page describes this situation and a solution to the
 problem.
 http://www.qos.ch/logging/sc.jsp
 
 I have attached the solution that I created this week based on the
 information above. To compile you will need servlet-api.jar and
 log4j.jar to compile.
 
 Include the jar you create from these files in your web application
 and
 then in your web.xml include the following sections.
 
 This section can be used if your log4j.xml is not under
 /WEB-INF/log4j.xml
   context-param
 param-namelog4jXmlLocation/param-name
 param-value/WEB-INF/log4j.xml/param-value
   /context-param
 
 The following calls invokes the listerner when the web app starts up
 to
 create a separate logging context for the web application.
 
   listener
  

listener-classcom.revolsys.logging.log4j.Log4jServletContextListener/
 listener-class
   /listener
 
 Also make sure you have a listener that does the following when the
 context is destroyed otherwise you'll get a log of PermGen out of
 memory
 errors after a number of redeploys
 
 Introspector.flushCaches();
 LogFactory.getFactory().release();
 
 Good luck,
 Paul
 
 On Wed, 2005-08-31 at 13:03 -0700, Woodchuck wrote: 
  
 hihi all,
  
 on my TC 5.5.9 installation i deployed several web applications that
 uses the default JCL logging.  that is, i placed a simple
 logging.properties file into each web app's WEB-INF/classes folder
 and
 i have per web app logging.  everything works beautifully.
  
 then i installed a new web app that forced me to place
 commons-logging.jar and log4j.jar into the ${Tomcat}/common/lib
 folder.
  as a result, all my previous per web app logging no longer works.
  
 i believe this is because log4j was discovered in the
 ${Tomcat}/common/lib first, and therefore it has superceeded any
 other
 logging system at the (lower) web app level.  this is due to Tomcat's
 classloading process.
  
 the reason this new web app required commons-logging.jar and
 log4j.jar
 to be placed specifically into the ${Tomcat}/commons/lib folder is
 because it instantiates a log4j logger object in it's start-up
 servlet
 which extends HttpServlet which is found in the servlet-api.jar which
 is also in the ${Tomcat}/commons/lib folder.  this is because
 Tomcat's
 classloading hierarchy dictates that classes in the common/lib cannot
 see web app classes 'downstream'.
  
 does anyone have any suggestions on how i can have per web app
 logging
 again?  i would like to keep my deployment process as web app
 isolated
 as possible (ie. each web app deployed by WAR, drop it in and that's
 it, no further steps necessary).
  
 thanks in advance,
 woodchuck
  
  

 
 Start your day with Yahoo! - make it your home page 
 http://www.yahoo.com/r/hs 
  
  
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
  
 





__
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

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



Tomcat 5.5 classloader log4j vs JCL issue

2005-08-31 Thread Woodchuck
hihi all,

on my TC 5.5.9 installation i deployed several web applications that
uses the default JCL logging.  that is, i placed a simple
logging.properties file into each web app's WEB-INF/classes folder and
i have per web app logging.  everything works beautifully.

then i installed a new web app that forced me to place
commons-logging.jar and log4j.jar into the ${Tomcat}/common/lib folder.
 as a result, all my previous per web app logging no longer works.

i believe this is because log4j was discovered in the
${Tomcat}/common/lib first, and therefore it has superceeded any other
logging system at the (lower) web app level.  this is due to Tomcat's
classloading process.

the reason this new web app required commons-logging.jar and log4j.jar
to be placed specifically into the ${Tomcat}/commons/lib folder is
because it instantiates a log4j logger object in it's start-up servlet
which extends HttpServlet which is found in the servlet-api.jar which
is also in the ${Tomcat}/commons/lib folder.  this is because Tomcat's
classloading hierarchy dictates that classes in the common/lib cannot
see web app classes 'downstream'.

does anyone have any suggestions on how i can have per web app logging
again?  i would like to keep my deployment process as web app isolated
as possible (ie. each web app deployed by WAR, drop it in and that's
it, no further steps necessary).

thanks in advance,
woodchuck




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: Tomcat 5.5 classloader log4j vs JCL issue

2005-08-31 Thread Woodchuck
hihi Paul,

thanks so much for your help!  i will definitely give this a try and
post my results.

woodchuck


--- Paul Austin [EMAIL PROTECTED] wrote:

 Woodchuck,
 
 The following web page describes this situation and a solution to the
 problem.
 http://www.qos.ch/logging/sc.jsp
 
 I have attached the solution that I created this week based on the
 information above. To compile you will need servlet-api.jar and
 log4j.jar to compile.
 
 Include the jar you create from these files in your web application
 and
 then in your web.xml include the following sections.
 
 This section can be used if your log4j.xml is not
 under /WEB-INF/log4j.xml
   context-param
 param-namelog4jXmlLocation/param-name
 param-value/WEB-INF/log4j.xml/param-value
   /context-param
 
 The following calls invokes the listerner when the web app starts up
 to
 create a separate logging context for the web application.
 
   listener
 

listener-classcom.revolsys.logging.log4j.Log4jServletContextListener/listener-class
   /listener
 
 Also make sure you have a listener that does the following when the
 context is destroyed otherwise you'll get a log of PermGen out of
 memory
 errors after a number of redeploys
 
 Introspector.flushCaches();
 LogFactory.getFactory().release();
 
 Good luck,
 Paul





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: Tomcat 5.5 classloader log4j vs JCL issue

2005-08-31 Thread Woodchuck
hihi Wendy,

hehe.  that also crossed my mind, i wish that was an option, but i
can't unfortunately.:)

woodchuck


--- Wendy Smoak [EMAIL PROTECTED] wrote:
 
 Is giving the uncooperative webapp its own Tomcat instance an option?
 
 That's what I'd do.  I have a third-party app that insists on all
 kinds of 
 special configuration.  I maintain the project as an expanded
 directory 
 structure that overlays a Tomcat install.
 
 -- 
 Wendy Smoak 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

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



Re: Which Oracle JDBC Drive for JDK 1.5?

2005-08-04 Thread Woodchuck
fwiw, i'm still using the old 9.2.0.x oracle jdbc drivers with my new
TC 5.5/JDK 5.0 setup.  works fine as far as i can tell :p

woodchuck


--- Paul Singleton [EMAIL PROTECTED] wrote:

  I noticed there are JDBC drivers for 10.1.0.2 and 10.1.0.4. Which
  should I use?
 
 I've always found that Oracle JDBC drivers are backwards
 compatible (not that I've driven them very hard) so I'd
 use the .4
 
 (or should I patch to 10.1.0.4)
 
 not if it ain't broke :-)
 
 Paul S.
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date:
 3/Aug/2005
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: user logins and the back button

2005-08-03 Thread Woodchuck
hihi,

the back button is the bane of all web developers.

expiring the page cache only forces the user to re-post the page.  to
get what you want you need to kill the current session by calling
session.invalidate().  the hard part is figuring out how/when to call
this in your web app to get the behaviour you want.

woodchuck


--- Mark [EMAIL PROTECTED] wrote:

 I have the following scenario that I am testing.
 
 1. Go to www.yahoo.com(or wherever)
 2. Type in URL of Servlet1 and log in using username/password
 3. Once username/password is authenticated, get forwarded to Servlet2
 4. Click browser back button all the way to www.yahoo.com
 5. Click browser forward button to Servlet2
 
 Is there any way of ensuring that users cannot forward to Servlet2,
 but have to login again?  I have tried to disable caching that this
 does not solve the problem.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: Tomcat 5.5.9: SAXParser error

2005-07-18 Thread Woodchuck
hihi,

it seems the error is related to JSTL/Validator... what version of
struts are you using?  and have you properly installed them?

are you upgrading your application from an older setup? (win2k,jdk 1.4,
tc 4.x?)


woodchuck

--- Craig Dixon [EMAIL PROTECTED] wrote:

 I have the following configuration:
 
 JDK: 1.5.0_03
 Apache Web Server: 2.0.52
 Tomcat: 5.5.9
 Connector: mod_jk 1.2.14
 Server OS: Windows Server 2003
 
 I encounter the following problem:
 Every time I update a JSP, then try to access it via a browser, I
 encounter:
 
 HTTP Status 500 -
 
 type Exception report
 
 message
 
 description The server encountered an internal error () that
 prevented it from
 fulfilling this request.
 
 exception
 
 javax.servlet.ServletException: Provider
 org.apache.xerces.jaxp.SAXParserFactoryImpl could not be
 instantiated:
 java.lang.NullPointerException
   
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 root cause
 
 javax.xml.parsers.FactoryConfigurationError: Provider
 org.apache.xerces.jaxp.SAXParserFactoryImpl could not be
 instantiated:
 java.lang.NullPointerException
javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
   

org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:152)

org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:96)

org.apache.jasper.compiler.TagLibraryInfoImpl.validate(TagLibraryInfoImpl.java:750)

org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1527)
 org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

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

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 note The full stack trace of the root cause is available in the
 Apache
 Tomcat/5.5.9 logs.
 
 After seeing this message, I can restart Tomcat and the JSP functions
 normally.
 However, if I change the JSP, restart Tomcat before viewing the page,
 then view
 the page, I still get the error. For some reason, the error actually
 has to be
 thrown before restarting Tomcat fixes it. I know of no other fix. 
 
 If I change two separate JSPs, I have to view the first page
 (throwing the
 error), restart Tomcat, then view the second page (throwing the error
 again),
 then restart Tomcat again. It is not enough to throw it once and
 restart to fix
 all pages; the error apparently tied to each page.
 
 I have discovered that I can make this error go away by applying the
 JDK 1.4.x
 compatibility patch, even though my JDK is version 1.5.0_03. This,
 however,
 caused me to get the error:
 
 java.lang.NoSuchMethodError:
 org.w3c.dom.Node.getTextContent()Ljava/lang/String;
 
 Presumably, the getTextContent() method was not present in JDK 1.4.x,
 thus the
 patch causes this error.
 
 When I remove the patch, the NoSuchMethodError is resolved, but the
 original
 error returns.
 
 I first posted this on Bugzilla (Bug 35720), where it was marked as
 invalid, and I was referred to this list. I posted the error here,
 and
 received no helpful information. When I learned of the compatibility
 patch fix, I reopened the bug on Bugzilla, but was told:
 
  We do not do user support. With Java 5, you're using the JAXP API
 as implemented by   your vendor, so look in their docs.We also only
 support Tomcat on pristine JVM  installations (no custom
 extensions).
 
  Please do not reopen the report.
 
 I haven't done anything to my JVM except install it directly from
 Sun.
 I've only customized Tomcat insofar as I have added the appropriate
 jars for JSTL and JavaMail. I don't know what the JAXP API is, nor
 who
 my vendor for it might be. I'm not even sure who I'm being told to
 ask
 about this anymore!
 
 Can somebody please at least steer me in the right direction with
 this?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: Tomcat 5.5 changes in Log format

2005-07-18 Thread Woodchuck
hihi,

the default logging mechanism in TC 5.5 is java.util.logging.  you need
to place a separate logging.properties file in the class folder of each
of your webapps that require separate logging (and of course make sure
to name these logging files differently).

details can be found here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html


woodchuck



--- Robert Abbate [EMAIL PROTECTED] wrote:

 Hello. We run a webhosting environment, and in previous releases we
 were
 able to have separate logs for *each* virtual host by using something
 like
 this:
 
 Host name=mydomain.com ...
 ...
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=domain.com_log. suffix=.txt directory=/home/melang
 timestamp=true/
 ...
 /Host
 
 After we just upgraded to Tomcat 5.5, we see this support was
 removed, and
 are looking for ways to get around this and still provide seperate
 logging
 ability for each virtual host. Does anyone have any suggestions on
 how to
 set something like this up on Tomcat 5.5 ? We looked at log4j but it
 doesn't
 seem like the same thing.
 
 Kind Regards,
 Robert
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: Tomcat 5.5 and SQL Server

2005-07-11 Thread Woodchuck
also, make sure your SQL Server is patched up with the latest SQL
Server service pack.

woodchuck

--- Tim Funk [EMAIL PROTECTED] wrote:

 FWIW .. there is a new version of the SQLServer JDBC driver from
 Microsoft.
 
 -Tim
 
 Mitchell Teixeira wrote:
  Hi - I've heard nothing but bad things about the Microsoft JDBC
 driver for
  SQL Server. I don't have any suggestions how to fix your problem
 in-place,
  just a suggestion to switch drivers.
  
  I've been using this JTDS open souce JDBC driver, suggested by our
 vendor
  and it is very stable:
  
  http://jtds.sourceforge.net/
  
  It was super easy to install and configure.  I hope it will help
 you!
  
  Regards,
  MitchellT
  
  
  
  --- Anderson, M. Paul [EMAIL PROTECTED] wrote:
  
  
 I am running Tomcat 5.5 with SQL Server on a separate machine.
 
 I am getting the following error at random times:
 
 Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer
 2000
 Driver for JDBC]Connection rest by peer: socket write error.
 
 I have been unable to determine a trigger for this error - it just
 seems
 to happen randomly.  When it occurs, no user can then log in to the
 application - I must reboot the SQL server machine to get a
 connection
 to be made for subsequent logins.
 
 Has anyone seen this and can point me to a solution?
 
 Thanks,
 Paul
  
  
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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



RE: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?]

2005-07-06 Thread Woodchuck
hi Chuck,

thanks for the heads up.  my Tomcat 4.1 and Tomcat 5.5 instances are
separate and each are sitting on a different machine.  as well, the
actual URLs to these text files are different on each instance (so they
are not requesting the same exact URL and should not be using cache for
the second txt file request).

anyhow i want to make sure of this, and i will retest again and
clearing all cache each time before requesting the txt files.

thanks,
woodchuck


--- Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: Woodchuck [mailto:[EMAIL PROTECTED] 
  Subject: RE: obscure tomcat 5.5 text file display bug? [Bugzilla
 candidate?]
  
  here is the relevant header info from Tomcat 4.1:
  
  HTTP/1.x 200 OK
  Etag: W/1706-1120587147968
  Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
  Content-Type: text/plain
  Content-Length: 1706
  Date: Tue, 05 Jul 2005 20:59:46 GMT
  Server: Apache Coyote/1.0
  Proxy-Connection: Keep-Alive
  
  and here is the relevant header info from Tomcat 5.5:
  
  If-Modified-Since: Sun, 03 Jul 2005 18:42:58 GMT
  If-None-Match: W/1706-1120416178619
  HTTP/1.x 304 Not Modified
  Server: Apache-Coyote/1.1
  Date: Tue, 05 Jul 2005 19:57:35 GMT
 
 You've got apples and oranges here.  The 1st response actually
 includes
 the text, whereas the 2nd just tells the browser to use what it has
 already cached.  You need to try it again with the cache cleared
 prior
 to each request.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
 PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the
 e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

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



Re: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?]

2005-07-06 Thread Woodchuck
awesome!  thanks, Jon!

woodchuck

--- Jon Wingfield [EMAIL PROTECTED] wrote:

 I agree; it does the job :)
 There is an equivalent for IE:
 http://www.blunck.info/iehttpheaders.html
 
 Enjoy,
 
 Jon
 
 
 Woodchuck wrote:
 
  GB Developer,
  
  thanks so much for your suggestion, Live HTTP Headers is awesome!
  
  and my hunch was correct.  the problem is Tomcat 5.5 does not
 produce
  any Content-Type information at all when serving back the .txt
 file.
  
  
  
  here is the relevant header info from Tomcat 4.1:
  
  HTTP/1.x 200 OK
  Etag: W/1706-1120587147968
  Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
  Content-Type: text/plain
  Content-Length: 1706
  Date: Tue, 05 Jul 2005 20:59:46 GMT
  Server: Apache Coyote/1.0
  Proxy-Connection: Keep-Alive
  
  
  
  and here is the relevant header info from Tomcat 5.5:
  
  If-Modified-Since: Sun, 03 Jul 2005 18:42:58 GMT
  If-None-Match: W/1706-1120416178619
  HTTP/1.x 304 Not Modified
  Server: Apache-Coyote/1.1
  Date: Tue, 05 Jul 2005 19:57:35 GMT
  
  
  
  as it clearly shows, the header info produced by Tomcat 5.5 does
 not
  have any Content-Type or even Content-Length.
  
  is this a bug that i should enter into BugZilla?  or is this
 something
  that can be fixed via Tomcat configuration?
  
  thanks in advance,
  woodchuck
  
  
  
  --- GB Developer [EMAIL PROTECTED] wrote:
  
  
(i suspect it's the way 
 Tomcat is telling the browser what type of file it's sending 
 back... some kind of header info.. but i'm not sure how to go 
 about debugging this)
 
 thx in advance,
 woodchuck
 
 
 I like using FireFox for debugging this type of thing, and the
 liveheaders
 plugin
 
 http://livehttpheaders.mozdev.org/
  
 VERY handy. There is probably an IE equivalent of some sort, but
 haven't
 heard of a really good one.
 
 

-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
  
  
  
  
  
   
  Yahoo! Sports 
  Rekindle the Rivalries. Sign up for Fantasy Football 
  http://football.fantasysports.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]
 
 





Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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



RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

2005-07-06 Thread Woodchuck
--- Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: Woodchuck [mailto:[EMAIL PROTECTED] 
  Subject: RE: obscure tomcat 5.5 text file display bug? [Bugzilla
 candidate?]
  
  here is the relevant header info from Tomcat 4.1:
  
  HTTP/1.x 200 OK
  Etag: W/1706-1120587147968
  Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
  Content-Type: text/plain
  Content-Length: 1706
  Date: Tue, 05 Jul 2005 20:59:46 GMT
  Server: Apache Coyote/1.0
  Proxy-Connection: Keep-Alive
  
  and here is the relevant header info from Tomcat 5.5:
  
  If-Modified-Since: Sun, 03 Jul 2005 18:42:58 GMT
  If-None-Match: W/1706-1120416178619
  HTTP/1.x 304 Not Modified
  Server: Apache-Coyote/1.1
  Date: Tue, 05 Jul 2005 19:57:35 GMT
 
 You've got apples and oranges here.  The 1st response actually
 includes
 the text, whereas the 2nd just tells the browser to use what it has
 already cached.  You need to try it again with the cache cleared
 prior
 to each request.
 
  - Chuck
 

alrighty, i've retested again.  same results.

each time prior to requesting the .txt file i cleared the cache of the
browser just to be sure.


header chunk generated by Tomcat 4.1 for a .txt file:

HTTP/1.1 200 
Server: Microsoft-IIS/5.0
Date: Wed, 06 Jul 2005 16:22:39 GMT
ETag: W/1706-1120587147968
Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
Content-Type: text/plain
Content-Length: 1706


header chunk generated by Tomcat 5.5 for a .txt file:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
ETag: W/1706-1120666790014
Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
Content-Length: 1706
Date: Wed, 06 Jul 2005 16:20:26 GMT


as the above shows, Tomcat 5.5 did not product the Content-Type:
text/plain when it served back the .txt file to the browser.

i also checked the Tomcat 5.5's conf/web.xml file and the mime mapping
for txt files is there.

mime-mapping
extensiontxt/extension
mime-typetext/plain/mime-type
/mime-mapping

i will enter this to Bugzilla then.  i'm guessing this is not likely to
be a Tomcat 5.5 configuration issue although i'm not 100% sure.

thanks to everyone who helped on this!

woodchuck




Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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



RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

2005-07-06 Thread Woodchuck
woohoo!  my first Bugzilla!!

http://issues.apache.org/bugzilla/show_bug.cgi?id=35632

:D

woodchuck


--- Woodchuck [EMAIL PROTECTED] wrote:

 --- Caldarale, Charles R [EMAIL PROTECTED] wrote:
 
   From: Woodchuck [mailto:[EMAIL PROTECTED] 
   Subject: RE: obscure tomcat 5.5 text file display bug? [Bugzilla
  candidate?]
   
   here is the relevant header info from Tomcat 4.1:
   
   HTTP/1.x 200 OK
   Etag: W/1706-1120587147968
   Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
   Content-Type: text/plain
   Content-Length: 1706
   Date: Tue, 05 Jul 2005 20:59:46 GMT
   Server: Apache Coyote/1.0
   Proxy-Connection: Keep-Alive
   
   and here is the relevant header info from Tomcat 5.5:
   
   If-Modified-Since: Sun, 03 Jul 2005 18:42:58 GMT
   If-None-Match: W/1706-1120416178619
   HTTP/1.x 304 Not Modified
   Server: Apache-Coyote/1.1
   Date: Tue, 05 Jul 2005 19:57:35 GMT
  
  You've got apples and oranges here.  The 1st response actually
  includes
  the text, whereas the 2nd just tells the browser to use what it has
  already cached.  You need to try it again with the cache cleared
  prior
  to each request.
  
   - Chuck
  
 
 alrighty, i've retested again.  same results.
 
 each time prior to requesting the .txt file i cleared the cache of
 the
 browser just to be sure.
 
 
 header chunk generated by Tomcat 4.1 for a .txt file:
 
 HTTP/1.1 200 
 Server: Microsoft-IIS/5.0
 Date: Wed, 06 Jul 2005 16:22:39 GMT
 ETag: W/1706-1120587147968
 Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
 Content-Type: text/plain
 Content-Length: 1706
 
 
 header chunk generated by Tomcat 5.5 for a .txt file:
 
 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 ETag: W/1706-1120666790014
 Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
 Content-Length: 1706
 Date: Wed, 06 Jul 2005 16:20:26 GMT
 
 
 as the above shows, Tomcat 5.5 did not product the Content-Type:
 text/plain when it served back the .txt file to the browser.
 
 i also checked the Tomcat 5.5's conf/web.xml file and the mime
 mapping
 for txt files is there.
 
 mime-mapping
 extensiontxt/extension
 mime-typetext/plain/mime-type
 /mime-mapping
 
 i will enter this to Bugzilla then.  i'm guessing this is not likely
 to
 be a Tomcat 5.5 configuration issue although i'm not 100% sure.
 
 thanks to everyone who helped on this!
 
 woodchuck
 
 
   
 
 Sell on Yahoo! Auctions – no fees. Bid on great items.  
 http://auctions.yahoo.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Yahoo! Mail for Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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



RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

2005-07-06 Thread Woodchuck
ack!  you are right!  thanks for noticing this.  actually, they are
both setup with JK connector redirecting from IIS to Tomcat (let me
know if you want to know why one is different from the other.. it's a
longer story)

at any rate, let me test again by accessing both directly without using
IIS (ie. port 8080).


woodchuck
 

--- GB Developer [EMAIL PROTECTED] wrote:

 Why does 4.x have:
 HTTP/1.1 200 
 Server: Microsoft-IIS/5.0
 
 and 5.x have:
 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 
 
 Are you fronting 4.x with IIS, and not 5.x?  That is one config
 difference
 that you'll need to dispense with, in order to be fairly comparing
 the two.
 
 Mike Curwen
 
 
  
  header chunk generated by Tomcat 4.1 for a .txt file:
  
  HTTP/1.1 200 
  Server: Microsoft-IIS/5.0
  Date: Wed, 06 Jul 2005 16:22:39 GMT
  ETag: W/1706-1120587147968
  Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
  Content-Type: text/plain
  
  
  header chunk generated by Tomcat 5.5 for a .txt file:
  
  HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  ETag: W/1706-1120666790014
  Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
  Date: Wed, 06 Jul 2005 16:20:26 GMT
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Yahoo! Mail for Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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



RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

2005-07-06 Thread Woodchuck
phew! (relief)  the results are the same...

both Tomcat version instances accessed directly via port 8080 (not
through IIS).  cleared cache each time prior to requesting TXT file.


header chunk from Tomcat 4.1 when serving a TXT file:

HTTP/1.1 200 OK
ETag: W/1706-1120587147968
Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
Content-Type: text/plain
Content-Length: 1706
Date: Wed, 06 Jul 2005 18:54:08 GMT
Server: Apache Coyote/1.0


header chunk from Tomcat 5.5 when serving a TXT file:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
ETag: W/1706-1120666790014
Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
Content-Length: 1706
Date: Wed, 06 Jul 2005 18:57:00 GMT


thanks again, Mike, for noticing the IIS difference.  i would hate to
have filed my first Bugzilla falsely... -_-


woodchuck



--- Woodchuck [EMAIL PROTECTED] wrote:

 ack!  you are right!  thanks for noticing this.  actually, they are
 both setup with JK connector redirecting from IIS to Tomcat (let me
 know if you want to know why one is different from the other.. it's a
 longer story)
 
 at any rate, let me test again by accessing both directly without
 using
 IIS (ie. port 8080).
 
 
 woodchuck
  
 
 --- GB Developer [EMAIL PROTECTED] wrote:
 
  Why does 4.x have:
  HTTP/1.1 200 
  Server: Microsoft-IIS/5.0
  
  and 5.x have:
  HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  
  
  Are you fronting 4.x with IIS, and not 5.x?  That is one config
  difference
  that you'll need to dispense with, in order to be fairly comparing
  the two.
  
  Mike Curwen
  
  
   
   header chunk generated by Tomcat 4.1 for a .txt file:
   
   HTTP/1.1 200 
   Server: Microsoft-IIS/5.0
   Date: Wed, 06 Jul 2005 16:22:39 GMT
   ETag: W/1706-1120587147968
   Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
   Content-Type: text/plain
   
   
   header chunk generated by Tomcat 5.5 for a .txt file:
   
   HTTP/1.1 200 OK
   Server: Apache-Coyote/1.1
   ETag: W/1706-1120666790014
   Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
   Date: Wed, 06 Jul 2005 16:20:26 GMT
   
  
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
   
 __ 
 Yahoo! Mail for Mobile 
 Take Yahoo! Mail with you! Check email on your mobile phone. 
 http://mobile.yahoo.com/learn/mail 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 


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



[RESOLVED] RE: obscure tomcat 5.5 text file display bug? [NOT a Bugzilla]

2005-07-06 Thread Woodchuck
sorry all,

i did more testing and found the cause to be because the text files i
was requesting had uppercase extensions... ie. TXT rather than txt.

and as expected a work-around was to add the following mime-mapping in
conf/web.xml:

mime-mapping
extensionTXT/extension
mime-typetext/plain/mime-type
/mime-mapping

so sorry for the false alarm.  :(

sincerely,
woodchuck  -- needs to improve on testing






Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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



obscure tomcat 5.5 text file display bug?

2005-07-05 Thread Woodchuck
hihi all,

i'm having an obscure problem relating to the display of regular plain
.txt files hosted withing Tomcat.

on Tomcat 4.1 links to .txt files would diplay within the browser and
the text files would preserve the text formatting (ie. spaces)
*because* the text file contents would be displayed in plain text font
(ie. fixed-width font)

however in Tomcat 5.5 links to the same .txt files would also display
within the browser, but the formatting is stripped because the text
file contents are being displayed in a non-fixed width font (looks like
courier true type) and all the spaces are stripped away.

i'm using the same browser to test.  and the only difference is the
Tomcat version difference.

does anyone know why this is happening?  and more importantly how to
fix it so that .txt files are displayed using fixed-width fonts in
Tomcat 5.5?  (i suspect it's the way Tomcat is telling the browser what
type of file it's sending back... some kind of header info.. but i'm
not sure how to go about debugging this)

thx in advance,
woodchuck



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

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



RE: obscure tomcat 5.5 text file display bug?

2005-07-05 Thread Woodchuck
thanks GB Developer!

i will definitely give this a try!


woodchuck


--- GB Developer [EMAIL PROTECTED] wrote:

 (i suspect it's the way 
  Tomcat is telling the browser what type of file it's sending 
  back... some kind of header info.. but i'm not sure how to go 
  about debugging this)
  
  thx in advance,
  woodchuck
 
 
 I like using FireFox for debugging this type of thing, and the
 liveheaders
 plugin
 
 http://livehttpheaders.mozdev.org/
  
 VERY handy. There is probably an IE equivalent of some sort, but
 haven't
 heard of a really good one.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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



RE: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?]

2005-07-05 Thread Woodchuck
GB Developer,

thanks so much for your suggestion, Live HTTP Headers is awesome!

and my hunch was correct.  the problem is Tomcat 5.5 does not produce
any Content-Type information at all when serving back the .txt file.



here is the relevant header info from Tomcat 4.1:

HTTP/1.x 200 OK
Etag: W/1706-1120587147968
Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
Content-Type: text/plain
Content-Length: 1706
Date: Tue, 05 Jul 2005 20:59:46 GMT
Server: Apache Coyote/1.0
Proxy-Connection: Keep-Alive



and here is the relevant header info from Tomcat 5.5:

If-Modified-Since: Sun, 03 Jul 2005 18:42:58 GMT
If-None-Match: W/1706-1120416178619
HTTP/1.x 304 Not Modified
Server: Apache-Coyote/1.1
Date: Tue, 05 Jul 2005 19:57:35 GMT



as it clearly shows, the header info produced by Tomcat 5.5 does not
have any Content-Type or even Content-Length.

is this a bug that i should enter into BugZilla?  or is this something
that can be fixed via Tomcat configuration?

thanks in advance,
woodchuck



--- GB Developer [EMAIL PROTECTED] wrote:

 (i suspect it's the way 
  Tomcat is telling the browser what type of file it's sending 
  back... some kind of header info.. but i'm not sure how to go 
  about debugging this)
  
  thx in advance,
  woodchuck
 
 
 I like using FireFox for debugging this type of thing, and the
 liveheaders
 plugin
 
 http://livehttpheaders.mozdev.org/
  
 VERY handy. There is probably an IE equivalent of some sort, but
 haven't
 heard of a really good one.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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



tc 5.5.x subdirectory contexts?

2005-06-21 Thread Woodchuck
hihi all,

i'm using Tomcat 5.5.9 and i can't figure out how to setup a URL like
this:

http://localhost:8080/subdirectory/myapp

in the $CATALINA_HOME/conf/[enginename]/[hostname] directory i have
placed myapp.xml but that only works with the following:

http://localhost:8080/myapp

i tried setting the path attribute of my context with a value of
/subdirectory/myapp but it didn't work.  (actually, this path
attribute seems to be ignored... the context element filename is what
seems to be followed by Tomcat)

i also tried creating a
$CATALINA_HOME/conf/[enginename]/[hostname]/subdirectory folder and
placing myapp.xml there but that doesn't work either.

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
doesn't seem to have info on how to do this.

anyone know?

thanks in advance,
woodchuck



__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 


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



Re: Concurrent login detection - how?

2005-06-15 Thread Woodchuck
yes, this boils down to a business policy issue.  in my web app the
policy is 'one user at any one time'.  we track user logins at the
database level.  we immediately invalidate the existing user session if
the same user has just logged in (again).

the existing user gets a your session has expired message upon their
next action in the web app.  basically, the latest login wins.

this is the behavior/policy our client is happy with.

woodchuck


--- Andre Van Klaveren [EMAIL PROTECTED] wrote:

 I mentioned this issue (killing browser problem) in a previous
 posting.  The only way to prevent this is to invalidate the original
 session also in the event that a duplicate login was detected.  I can
 see a possible DOS attack problem with this solution though.  Maybe
 you shouldn't invalidate the original session and make the user call
 helpdesk to invalidate the original session.  This would aid in the
 tracking of this event also.
 
 Using IP addresses is usually not a good way to detect duplicate
 logins.  I guess this would work in a controlled environment
 (intranet) where you can guarantee that the user(s) aren't behind a
 proxy server.  It's definetly not an option for a public site.
 
 
 
 On 6/15/05, Nikola Milutinovic [EMAIL PROTECTED] wrote:
  David Rickard wrote:
  
   Don't know if this is an optimum solution, but it should work:
   Keep a List or Vector of IDs for active users in a shared,
   application-level object (probably ServletContext);
   When someone logs in, search the List for the submitted ID: if
 not
   present, continue with login sequence; if present, kick them to
 the
   duplicate login page;
   Remove IDs from the List when users log out (and add a
   ServletContextListener to catch people who leave the site without
   logging out--remove their IDs when their sessions time out);
  
  
  This is definitely a correct approach, but it has onw shortcoming.
  Suppose one user opens up a session (logs in) and his/her browser
 dies.
  The user opens another browser and tries to login, only to be
 kicked to
  duplicate user page. I think in this case, the original poster
 should
  have a vector or a hash map of user names and remote machine
 names/IPs.
  
  Nix.
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 -- 
 Virtually,
 Andre Van Klaveren
 Architect III, SCP
 Enterprise Transformation Services
 Unisys Corporation
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 


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



RE: Redirecting Tomcat to IIS (UNCLASSIFIED)

2005-06-14 Thread Woodchuck
hihi Ed,

i have windows 2003 server, IIS 6.0, Tomcat 5.5.9 and i have
redirection working fine.  i used to have windows 2000, IIS 5.0, Tomcat
4.1 and i also had redirection working fine in that setup as well.

my question to you is, how are you setting up the JK connector?  are
you doing it manually?  or are you using the setupJK204.exe program?

i ran into problems setting up the JK connector manually, even though i
thought i covered everything (including registry).  but i found using
the setup program to be flawless as long as you always uninstall the
previous JK installation before installing the new one (ie. use
windows' add/remove programs to uninstall whenever you add a new Tomcat
webapp and need redirection for example).

to be absolutely safe, you *need* to reboot server after uninstalling
JK.  after rebooting then you can install JK again.  this is my process
and it has worked 100%.

the setup program can be found here:
http://www.shiftomat.com/opensource/

hth,
woodchuck



--- Young, Ed CONT Anteon [EMAIL PROTECTED] wrote:

 Classification:  UNCLASSIFIED 
 Caveats: NONE
 
 I haven't removed any files and the default files and the Default
 page
 is listed above the iisstart.htm. My application is using tomcat now
 but
 needs to be redirected to IIS. The isapi filter is green and pointing
 up. I have also checked the registry settings to ensure the correct
 paths are specified.
 
 -Original Message-
 From: Peter Crowther [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, June 09, 2005 8:26 AM
 To: Tomcat Users List
 Subject: RE: Redirecting Tomcat to IIS (UNCLASSIFIED)
 
  From: Young, Ed CONT Anteon [mailto:[EMAIL PROTECTED] 
  I have an issue with redirecting my web application from Tomcat
  4.1 to IIS 6.0 on Windows 2003 Server. I have followed the steps in
  configuring the redirect but once I try to access the page using
 port
  80, I get an Under Construction error. How can this be rectified?
 
 If you access the URL to which you're redirecting directly (i.e.
 without
 going through the Tomcat application and it issuing the redirect),
 does
 it work?
 
 What's the default page for the IIS6 directory?  Have you removed
 iisstart.htm from the directory in which you've deployed the IIS6
 files?
 If you look at the list of start pages on the 'Documents' tab of your
 IIS6 sites, property pages, is that default page listed above
 iisstart.htm?
 
   - Peter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 Classification:  UNCLASSIFIED 
 Caveats: NONE
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/

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



Re: RMI in Tomcat - last try

2005-06-13 Thread Woodchuck
hihi Nikola,

where are you placing your JAR files?  are any in TC/commons/lib or
TC/shared/lib?

try placing everything together, just as a test.  put *all* your
classes and JAR files under TC/commons for example and give it a try...
they should be able to see each other if they are at the same
classloading hierarchy level... this is what i suspect your problem is

http://struts.apache.org/userGuide/configuration.html#config_add

hth,
woodchuck


--- Nikola Milutinovic [EMAIL PROTECTED] wrote:

 Hi all.
 
 Me and the team have given up on RMI and went to RPC, but I thought
 I'd 
 make one last educational attempt.
 
 Is anyone using RMI in TC where TC is acting as a RMI client to a
 remote 
 RMI, general-purpose, server?
 
 I have seen tons of (rather old) examples of Applet being a RMI
 client 
 and they do not help me one bit.
 
 To remind the group of my problems, I'll recap. I have a working RMI 
 client and server packages, plus command line test client application
 
 which uses RMI client lib successfully against the server. When the
 same 
 lib is used in Tomcat from a servlet, it throws ClassCastException.
 
 Further investigation has shown that the class that Servlet gets from
 
 RMI subsystem implements the desired interface, to which it is being 
 cast. It also showed that the classloader of the class was RMI 
 ClassLoader, while other classes in the servlet, including servlet 
 itself werefrom TC's ClassLoader. It lead me to believe that *that*
 is 
 the source of the problem. It has occured to me that, since TC web 
 application has several classloaders, bound into a hierarchy, maybe
 RMI 
 classloader should be somehow introduced into it.
 
 QUESTIONS
 
 Am I on the right track?
 If yes, how do I bind in RMI ClassLoader into TC's ClassLoader
 hierarchy?
 And, lastly, who should do it - Servlet or RMI client?
 
 The last question is more a design question, but it could also be a 
 feasibility question, too. Can RMI client detect a classloader it
 should 
 bind into? It could be dome from the Servlet, but I would like to
 have a 
 general purpose Servlet that would be oblivious of underlying 
 implementation.
 
 I thought that at least JBoss developers would have something to say
 on 
 this question, since, as I recall, JBoss uses or has been using a lot
 of 
 RMI. There was one article or was it JBoss docs, which explained some
 
 problems of classloading, which were very similar to mine. I don't 
 recall those docs saying anything to solve the problem in TC.
 
 Nix.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html

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



RE: Probably an easy answer

2005-06-13 Thread Woodchuck
hihi Charles,

perhaps it is possible to use another 'indicator' other than 'if a
variable has been declared or not'.

it suspect there is something else easier you can use...

for example, any session objects/parameters that differ when going to
the page with no declared variable vs declared?

it seems to me there are easier ways to frame your solution around,
other than by trying to detect if a given variable is declared or not.

just a thought,
woodchuck


--- Charles P. Killmer [EMAIL PROTECTED] wrote:

 I tried the try catch block and that led me to asking this forum.  I
 tried a generic catch (Exception e)  and it resulted in a compile
 error.
 My suspicion is that this is not an easy thing to do.
 
 Any brainstorms out there?
 
 Charles 
 
 -Original Message-
 From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 13, 2005 8:34 AM
 To: Tomcat Users List
 Cc: Tomcat Users List
 Subject: RE: Probably an easy answer
 
 The only other possible way I can think of, and I would have to do so
 experimenting to see if/how exactly it would work, would be something
 like:
 
 try {
   Object a = b; // Where b might be declared or might not be } catch
 () { // Not sure what exception would be thrown
   // Do something when b wasn't declared }
 
 I'm assuming there is a runtime exception to check for... that may
 not
 be true at all... part of me suspects there isn't... that's why I'd
 have
 to do some experimenting :)
 
 In fact, being in a JSP this might be the best option because I'm not
 sure how you could use reflection as I suggested, i.e., what object
 would you inspect when the field you want to check for is a JSP
 variable?  I'm not sure.
 
 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 
 On Mon, June 13, 2005 8:58 am, Charles P. Killmer said:
  Thanks.  And I do mean declared.  I have a jsp that is included by
 a 
  few other jsp's.  Some of them declare a variable and some do not. 
 
  Right now I have two files that are almost identical.  One expects
 the
 
  variable to be present and the other does not.  I am looking to 
  consolidate these two files.
 
  Charles
 
  -Original Message-
  From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 10, 2005 5:46 PM
  To: Tomcat Users List
  Subject: Re: Probably an easy answer
 
  If it is a class member you could conceivably use reflection to see
 if
 
  a given object/class has a member you name... if it's local though,
 
  no, it's a purely compile-time check.
 
  Do you really mean declared or do you perhaps mean initialized?
 
  Frank
 
  Charles P. Killmer wrote:
  Is there a way to, at runtime, check if a variable is declared?  I
 
  have some code that I want to behave differently depending on
 whether
 
  or not a variable has been declared.  I tried using a try catch
 block
 
  but it gets caught at compile time.
 
  Thanks
  Charles
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 
 
  --
  Frank W. Zammetti
  Founder and Chief Software Architect
  Omnytex Technologies
  http://www.omnytex.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]
 
 




__ 
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/

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



Re: Servlet Concurrency Issues

2005-06-08 Thread Woodchuck
hihi all,

does Tomcat 5.5.x handle this instance pooling transparently for
objects implementing STM?

do i need to configure Tomcat to turn on this feature?

tia,
woodchuck



--- Remy Maucherat [EMAIL PROTECTED] wrote:

 Your statement is completely wrong, STM is fully supported in Tomcat
 5.5, with instance pooling for good performance. It's usually much
 faster than having lots of sync in your servlet, that is. I actually
 like the feature, personally. The only reason it got removed is
 because it gave users the impression that no additional syncing was
 ever needed (which is not the case, as session modification may still
 be unsafe).




__ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html

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



Re: SPAM-LOW: PayPal Account Security Measures

2005-06-08 Thread Woodchuck
LOL.  i was fooled for a second or two when i got the e-mail, because i
do use paypal.. but NOT WITH THIS E-MAIL!!!  

nevermind the fact that the URL looks awfully suspicious

nice try internet scum!!!


--- B Wiley [EMAIL PROTECTED] wrote:

 I DONT HAVE A PAY PAL ACCOUNT ! I DON'T USE PAYPAL 
 !! I'M NOT CLICKING ANYTHING !
 
 
 At 04:48 PM 6/8/2005, you wrote:
 You have recieve this email because you or someone had tried to used
 your paypal account at http://www.springbok-computers.co.uk Below is
 the
 details about the transaction made:
 
 Transaction site : http://www.springbok-computers.co.uk
 Order ID : FMO17436466
 Amount : $263
 Date : Wednesday, Jun 08
 
 
 
 To confirm or decline this transaction, please follow the link
 provide
 below. Please save the fraud alert id for your reference.
 
 http://www.paypal-confirmation%2Did-0746795.com
 
 If we do not get the confirmation within 5 business days, your
 account
 will be suspended until further notice.
 
 
 Sincerely,
 The PayPal Security Team
 
  PROTECT YOUR PASSWORD
 
 NEVER give your password to anyone and ONLY log in at
 https://www.paypal.com/. Protect yourself against fraudulent
 websites
 by
 opening a new web browser (e.g. Internet Explorer or Netscape) and
 typing
 in the PayPal URL every time you log in to your account.
 
 
 
 
 Please do not reply to this email. This mailbox is not monitored and
 you
 will not receive a response. For assistance, log in to your PayPal
 account
 and click the Help link located in the top right corner of any
 PayPal
 page.
 PayPal Alert ID : 0746795
 
 

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




__ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html

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



Tomcat 5.5.x EL (Expression Language) issue

2005-06-03 Thread Woodchuck
hihi all,

i am upgrading a webapp from TC 4.1.24 to TC 5.5.9 and discovered what
seems to be an EL related issue.

my webapp uses:
  - JSTL 1.0
  - web.xml with version 2.3 dtd (ie. EL turned OFF by default)
  - Struts 1.1

the piece of code with the issue is with the logic:iterate tag
basically as follows:

logic:iterate name=myObj property=foo.bar id=fb indexId=idx
 ...
/logic

in TC 4.1.24 the above works fine, but in TC 5.5.9 i get the following
error:

javax.servlet.jsp.JspException: No getter method for property foo.bar
of bean myObj

i'm not sure but i believe what is happening is that the
logic:iterate tag is looking literally for the method getFoo.bar() in
myObj instead of doing myObj.getFoo().getBar()

any ideas?

please and thanks!
woodchuck



__ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 


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



Re: tc 5.5.9 webapp jars not loading

2005-05-18 Thread Woodchuck

--- Lutz Zetzsche [EMAIL PROTECTED] wrote:
 Hi,
 
 Am Montag, 16. Mai 2005 16:33 schrieb Woodchuck:
  i've read the class loader how-to and also searched the archives
 but
  haven't found any answers for my current problem -- which is that
 my
  application-specific jars (under WEB-INF/lib) don't seem to get
  loaded at all.
 
  for instance, i have ojdbc14.jar (Oracle JDBC API) under
 WEB-INF/lib
  but i get ClassDefNotFoundExceptions when my app is trying to
  establish its connection pool.
 
  but when i place the ojdbc14.jar under common/lib my app can
  establish the connection pool.
 
  there are other jars in my WEB-INF/lib like common-beanutils.jar
 and
  such that are also not being loaded (i get same run-time errors
 when
  accessing jsps in my app).
 
  does anyone have any suggestion as to why my WEB-INF/lib folder
 seems
  to be ignored?
 
  the jars in WEB-INF/lib got loaded fine in Tomcat 4.1.29 and i'm in
  the process of upgrading it to Tomcat 5.5.9.
 
 It seems that you missed someting when reading the class loader
 how-to.
 
 The how-to says:
 
 (1) Common - This class loader contains additional classes that are 
 made visible to both Tomcat internal classes and to all web 
 applications.
 
 (2) Shared - This class loader is the place to put classes and 
 resources that you wish to share across ALL  web applications (unless
 
 Tomcat internal classes also need access, in which case you should
 put 
 them in the Common  class loader instead).
 
 (3) WebappX - [...] All unpacked classes and resources in 
 the /WEB-INF/classes directory of your web application archive, plus 
 classes and resources in JAR files under the /WEB-INF/lib directory
 of 
 your web application archive, are made visible to the containing web 
 application, but to no others.
 
 So, the difference between (1) and (2) plus (3) is that the Tomcat 
 internal classes have access to the files in the common directory but
 
 not to the classes in shared or /WEB-INF/classes or /WEB-INF/lib.
 
 I.e. your ojdbc14.jar must be visible to Tomcat internal classes. 
 Therefore it must be stored in the common directory.
 
 
 Best wisjes
 
 Lutz


hihi,

i just installed Tomcat 5.0.25 and my web app works.  the database
connection pool works, and my ojdbc14.jar is *only* found under my
specific web app WEB-INF/lib folder.

however, the class loader how-to for Tomcat 5.0 is the same as Tomcat
5.5. and by this it should *not* have worked.  ie. the commons-dbcp.jar
in commons/lib should *not* have been able to find my web app's
ojdbc14.jar residing in WEB-INF/lib!

why does this inconsistency exist between the two Tomcat 5 versions
regarding this?  which one is doing the correct behavior?  why can
Tomcat 5.0 common/lib jars see application specific jars, but Tomcat
5.5  common/lib jars cannot?

the reason this is important is because of deployment.  ideally, i want
to give the client a WAR file and tell them to drop it under the
webapps folder and that's it.  i don't want to give them any other
complication such as a separate jar file to be placed in common/lib. 
(some of my clients are not technical at all, nevermind having a basic
understanding of Tomcat and how java web apps work)

moreover, by placing the ojdbc14.jar in common/lib, this means we are
forcing every web app that uses Oracle to use the same JDBC drivers. 
this should not be a problem in most cases, but my point is the lack of
flexibility on a per web app basis


woodchuck





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



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html


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



Re: Tomcat on XP

2005-05-18 Thread Woodchuck
you need to get at least the Java 1.5 run-time environment (aka JRE
5.0)

Tomcat 5.5.x does not work with Java 1.4 unless you install a
compatibility patch

since you are developing, i recommend you install the JDK 1.5 and
update your JAVA_HOME to point to 1.5 instead of 1.4

hth,
woodchuck


--- Jobish P [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
 I am not getting the tomcat home page while trying to run tomcat in
 Windows XP. I had set the JAVA_HOME and CATALINA_HOME path variables
 and stopped other servers(IIS ans apche) running in the system.
 But I couldn't see anything by typing http://localhost:8080. The
 utilitie's that I used are tomcat 5.5.9.exe and j2sdk1.4.2_07.
 
 Any thoughts ? It will be of great help if any of you could help in
 this
 regard.
 
 cheers,
 
 
 
 
 -Jobish P
 
 All men by nature desire to know- Aristotle
 
 -
 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]



mime mappings and web resource control

2005-05-18 Thread Woodchuck
hihi,

what controls what type of resource will be displayed within the
browser?  (versus invoking an external application specifically for
that resource type?)

for example on one of my web pages i have this link:
http://localhost:8080/myapp/hello.txt

on Tomcat 4.1.24 clicking on that link will automatically invoke
Notepad.exe to display that hello.txt file.  the web page stays in the
background and is not changed.

however, on Tomcat 5.5.9 clicking on that link will cause the hello.txt
file to be displayed within the browser itself (ie. it does not use
Notepad.exe)

what i want is for Tomcat 5.5.9 to invoke Notepad.exe to handle the txt
file.

i am using the same browser for both scenarios so it is not a browser
setting.

i have tried deleting the mime-mapping for the txt extension but it
does not help.

from my testing, the only thing different is the Tomcat server.  does
anyone know how to control this type of behavior regarding web requests
for resources?

thanks in advance,
woodchuck

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

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



Re: Tomcat vs Apache

2005-05-18 Thread Woodchuck
hihi,

another (simple) way to think about the difference is that Apache
serves static web pages, whereas Tomcat *can* do some server-side
processing and serve dynamic web pages.

all else being equal (and with no mods installed on Apache such as
CGI/SSI/PHP), everyone visiting an Apache hosted website will see
exactly the same set of web pages.

in contrast, a Tomcat hosted website *can* display different content
for the same requested web page for each visitor.

you can use Tomcat to host totally static websites and not use Apache
if you wanted to.  but Tomcat is meant for dynamic websites that
interact in some way with the user (ie. capture and process user
information) to produce custom results.

hth,
woodchuck


--- Dakota Jack [EMAIL PROTECTED] wrote:
 The dynamic aspect of Tomcat is used to write HTML dynamically.  This
 is unrelated to the service of applets.  If all you are doing is
 serving an applet, you don't need Tomcat, as your HTML is static.  I
 don't know what some of the other replies mean, but this much is
 clear.
 
 On 5/18/05, Anthony E. Carlos [EMAIL PROTECTED] wrote:
  I think I need to ask a question before offering any information.
  
  When you say applet, do you mean a java applet that runs in a
 client's
  browser window? Or, do you have a web application comprised of
  servlets/jsps (or some analogous configuration)?
  
  -Anthony
  
  On May 18, 2005, at 10:37 AM, Chris wrote:
  
  I've been working with Tomcat for a while now, but I haven't messed
  with Apache yet.  Could someone explain or point me to something
  explaining the differences between Tomcat and Apache?  I have a
 large
  applet hosted on Tomcat, and am investigating using Apache instead.
  Is
  this feasable? TIA.
  
  Chris
  
 
 -
  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]
  
  
 
 
 -- 
 You can lead a horse to water but you cannot make it float on its
 back.
 ~Dakota Jack~
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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



Re: website hosting

2005-05-17 Thread Woodchuck
fwiw, i am upgrading my web app from Tomcat 4.1.24 to Tomcat 5.5.9 and
wow... the performance increase is very noticeable.  


--- Mark [EMAIL PROTECTED] wrote:
 I read the link, and was curious as to what your opinion is when
 running Tomcat over SSL.  I put Apache in front of Tomcat when SSL is
 required.
 
 TIA...
 Mark
 
 On 5/15/05, Lutz Zetzsche [EMAIL PROTECTED] wrote:
  Hi Tomislav,
  
  Am Sonntag, 15. Mai 2005 16:10 schrieb t.n.a.:
   Lutz Zetzsche wrote:
   As regards performance, running Apache in front of Tomcat is not
   preferable. A standalone Tomcat is faster than a Tomcat behind
 an
   Apache.
  
   I'm not speaking from my own experiance, but I've done some
 reading
   some time ago and the best practice I've found is to have apache
   serve static content because it's faster and comes with a whole
 lot
   of modules and have Tomcat serve the dynamic content - don't know
 if
   we're talking about the same thing.
  
  Well, what I mean is that Tomcat can serve dynamic content faster
 if it
  runs standalone so that the requests are directly handled and the
 pages
  are directly served by Tomcat.
  
  Also, the gap between Tomcat and Apache is closing as regards the
  performance in serving static content.
  
  Here are a few pros and cons for the Apache-Tomcat combination:
  
 
 http://jakarta.apache.org/tomcat/faq/connectors.html#integrate
  
  My personal point of view is that I would always try to avoid to
 run a
  Tomcat behind an Apache, as this can sometimes significantly impair
 the
  performance when serving dynamic content from Tomcat.
  
  Best wishes
  
  Lutz
  
 
 -
  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!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



open inside browser control?

2005-05-17 Thread Woodchuck
hihi,

i have some web pages that have links to .txt files which reside on the
server.

in Tomcat 4.1.24 clicking on these links caused these .txt files to be
loaded into Notepad

however, in Tomcat 5.5.9 these .txt files are being displayed in the
browser itself

what controls what should be displayed inside the browser or loaded by
an external application?

i tried deleting the mime-mapping element for txt extension in the
conf/web.xml for Tomcat but it didn't work... the .txt files were still
being displayed inside the browser

does anyone know?

thanks in advance,
woodchuck



Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

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



tc 5.5.9 webapp jars not loading

2005-05-16 Thread Woodchuck
hihi all,

i've read the class loader how-to and also searched the archives but
haven't found any answers for my current problem -- which is that my
application-specific jars (under WEB-INF/lib) don't seem to get loaded
at all.

for instance, i have ojdbc14.jar (Oracle JDBC API) under WEB-INF/lib
but i get ClassDefNotFoundExceptions when my app is trying to establish
its connection pool.

but when i place the ojdbc14.jar under common/lib my app can establish
the connection pool.

there are other jars in my WEB-INF/lib like common-beanutils.jar and
such that are also not being loaded (i get same run-time errors when
accessing jsps in my app).

does anyone have any suggestion as to why my WEB-INF/lib folder seems
to be ignored?

the jars in WEB-INF/lib got loaded fine in Tomcat 4.1.29 and i'm in the
process of upgrading it to Tomcat 5.5.9.

thanks in advance,
woodchuck



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html


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



tomcat 5.5.9 webapp jars not loading

2005-05-16 Thread Woodchuck
hihi all,

i've read the class loader how-to and also searched the archives but
haven't found any answers for my current problem -- which is that my
application-specific jars (under WEB-INF/lib) don't seem to get loaded
at all.

for instance, i have ojdbc14.jar (Oracle JDBC API) under WEB-INF/lib
but i get ClassDefNotFoundExceptions when my app is trying to establish
its connection pool.

but when i place the ojdbc14.jar under common/lib my app can establish
the connection pool.

there are other jars in my WEB-INF/lib like common-beanutils.jar and
such that are also not being loaded (i get same run-time errors when
accessing jsps in my app).

does anyone have any suggestion as to why my WEB-INF/lib folder seems
to be ignored?

the jars in WEB-INF/lib got loaded fine in Tomcat 4.1.29 and i'm in the
process of migrating my web app to Tomcat 5.5.9.

thanks in advance,
woodchuck




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



tomcat 5.5.9 version stable?

2005-05-12 Thread Woodchuck
hihi all,

is the tomcat 5.5.9 version a 'stable' version?

when i go to browse the download folder i see versions marked with
'-alpha' and '-beta'... but none marked with '-stable'

does that mean 'stable' versions are the ones without any markings (ie.
'alpha' or 'beta')?

thanks in advance!
woodchuck



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html


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



Re: development environment

2005-04-25 Thread Woodchuck
hihi,

i got:

P4 1.8GHz, ABit THX-II mobo, 2.5GB Rambus memory,
200GB IDE 7200rpm hard drive, 64MB GeForce3 video card,
SB Live 5.1, 21 Sony G520 monitor (1600x1200), 
IBM standard keyboard, MS Intellimouse Pro (not laser one, 
and not wireless)

Windows 2000 Pro

Tomcat 5.25, MySql 4.1, EditPlus, Eclipse

oh, and 512MB iPod shuffle!  :)

woodchuck


--- Patrick Lacson [EMAIL PROTECTED] wrote:
 That's some serious hardware!
 
 Dual 3.6 Xeon 15k rpm drives?!!
 
 I take it your desktop is also your dev DB server?
 
 
 
 On 4/22/05, epyonne [EMAIL PROTECTED] wrote:
  These are mine (just the two primary machines as I have too many to
 list
  them all):
  
  1. Laptop: Centrino, 512MB RAM, 80GB harddrive, 802.11g, Virtual PC
 with
  Windows XP Pro and SUSE Linux, Teradata V2R5 database, Oracle 9.2
 database,
  Tomcat, Eclipse, Macromedia MX Suite.
  
  2. Desktop: Dual 3.6-GHz Intel Xeon, 1GB 400-MHz DDR2 SDRAM, three
 36GB
  15,000-rpm SCSI drives in a RAID 5 array, Virtual PC with Windows
 2003, SUSE
  Linux, and Solaris 9 operating systems, Teradata V2R5 database,
 Oracle 9.2
  and 10g databases, MySQL 4.1 database, MS SQL Server 2005,
 Ascential
  DataStage, Informatica, JBOSS, Tomcat, Eclipse, JBuilder
 Enterprise, MS
  Visual Studio.NET 2003, Macromedia MX Suite, and so on.
  
  Epy.
  
  
  - Original Message -
  From: Patrick Lacson [EMAIL PROTECTED]
  To: Tomcat User-List tomcat-user@jakarta.apache.org
  Sent: Friday, April 22, 2005 3:46 PM
  Subject: development environment
  
  hi All,
  
  I'm curious to what everyone's dev environment looks like.  Here's
 mine:
  
  hardware
  Penium IV 2.0Ghz / 1GB Ram
  
  OS
  Windows XP Pro
  
  IDE / Tools
  Eclipse 3.x / Emacs
  
  --
  Patrick
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 -- 
 Patrick
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

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



Re: Anyone have java beans and servlets working in user directories?

2005-04-18 Thread Woodchuck
hihi,

is this what you're trying to achieve?

-have all servlets deployed under Tomcat's webapp directory like usual
-but then place modified/customized servlets to user's directories
whenever desired (and this one overrides the webapp one)

woodchuck


--- Steve Ochani [EMAIL PROTECTED] wrote:
 Hello all,
 
 I'm using tomcat 5.5.7 and have configured userconfig in server.xml
 to look in user's 
 public_html subdir for jsps etc. Jsp files work in user directories
 but java beans and 
 servlets do not.
 
 Does anyone have tomcat working to beans and servlets also work in
 user's 
 public_html subdirectories?
 If so I would appreciate some help.
 
 Thanks
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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



Re: Multiple threads for one submit...how to limit?

2005-03-10 Thread Woodchuck
the way i handled this is with javascript.  

on my save button i simply invoke a javascript function on the onclick
event.  it checks a javascript page-scoped flag variable to see if save
button has been clicked or not.  if it has, then i popup a message
saying the previous submit is still being processed, otherwise i set
the flag variable and call form.submit().  this works even if they
press the browser stop button and then click the save button again.

basically, i'm doing the same thing as you are, but at the client-side
instead of the server side.

maybe there is a better way to handle this problem, but it has been
effective in my production app so far in belaying impatient users...

woodchuck


--- Jonathan Wilson [EMAIL PROTECTED] wrote:
 I need some good advice:
 
 I've got a production app running on a Redhat box that is having 
 problems with the SAN which is causing all processes to slow/stall
 with 
 heavy IO(CPU util is like 3%); the network/admin guys are working on 
 that part but it's been ongoing. On two occasions during particularly
 
 heavy IO, TC 3.x stalls all threads while waiting for the SAN to
 respond 
 (with file uploading/loading from SAN). Meanwhile a user is
 submitting a 
 form, which takes too long for their taste, hits stop on the browser
 and 
 submits again(and again...). I've got code to determine if they've 
 submitted a form already, but that code doesn't get triggered till
 after 
 the submit is actually handled by my servlet. So it may be 3/4
 submits 
 before the locks are finally in place...Any idea how I can lock this 
 down? Isolating TC from SAN is not an option.
 
 Thanks in advance,
 JW
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



Re: development / production server

2005-03-09 Thread Woodchuck
correct me if i'm wrong, but if you do that, you would be turning your
production server into your development server!

yikes.

woodchuck

--- Ben Kim [EMAIL PROTECTED] wrote:
 
 What is the common practice to handle file sync between development
 server
 and production server? Is there a trivial way in netbeans to upload
 the
 files as frequently as I would, just by saving it locally, without
 using
 the version control systems or uploading through the manager/html
 page?
 
 Is it possible to mount a remote directory (sftp, hopefully) like a
 local
 directory?
 
 Thanks.
 
 Ben Kim
 Database Developer/Systems Administrator
 434E Harrington Tower / College of Education 
 Texas AM University
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



RE: FW: challenging JK connector problem: java.net.SocketException

2005-02-24 Thread Woodchuck
hello Byron!

as far as i can tell, these java.net.SocketExceptions are not causing
any real harm in our application.  the application seems to work fine. 


however, these exceptions are unpredictable in that i cannot generate
them at will with absolute certainty.  sometimes they appear, and
sometimes not (when doing the same thing(s) over and over in the app).

i've never seen the Recoverable error message though... 

woodchuck


--- Guernsey, Byron (GE Consumer  Industrial)
[EMAIL PROTECTED] wrote:

 
  
 Let me pose this question: are these messages resulting in
 reproducable
 problems?
 
 We see these stack traces all the time, but there is no associated
 problem.  I've chalked it up to people clicking refresh and aborting
 the
 connection at the right moment because we have no problems associated
 with the messages.
 
 My favorite is the error messages from jk2 that are labeled
 Recoverable.  Why bother logging them as errors if they are
 recoverable and have no impact.
 
 Byron
 
 -Original Message-
 From: Woodchuck [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 23, 2005 12:02 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: FW: challenging JK connector problem:
 java.net.SocketException
 
 hi Patrick,
 
 i've just tried your suggestion and unfortunately i still get the
 java.net.SocketExceptions.
 
 i installed Tomcat 5.0.25, upgraded my JDK to 1.4.2_07, reinstalled
 the
 JK connector (setupJK204.exe).
 
 the only real difference it seems is that i'm using Windows XP.
 
 how do you install your JK connector?  can you show me the contents
 of
 your workers2.properties file?
 
 here is my workers2.properties:
 
 #Look at

#http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.ht
 ml
 
 #for parameter description 
 
 [shm:]
 info=Scoreboard. Required for reconfiguration and status with
 multiprocess servers file=C:\jakarta-tomcat-5.0.25\temp\jk2.shm
 size=1048576 
 
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 tomcatId=localhost:8009 
 
 # Map webapps to the Web server uri space [uri:/jsp-examples/*]
 [uri:/myapp/*] [uri:/servlets-examples/*]
 
 
 maybe there are some differences between my workers file and yours? 
 at
 this point i'll try anything :)
 
 but since you're on unix, your JK connector is most likely not using
 isapi_redirector2.dll.  so maybe there's implementation differences
 between the unix JK and windows JK...
 
 thanks in advance,
 woodchuck
 
 
 --- [EMAIL PROTECTED] wrote:
 
  
  
  -Original Message-
  From: Woodchuck [mailto:[EMAIL PROTECTED]
  Sent: February 22, 2005 5:20 PM
  To: [EMAIL PROTECTED]
  Subject: RE: challenging JK connector problem:
  java.net.SocketException
  
  
  hello Patrick!
  
  thank you for your help, i really appreciate it as i'm at a total
  loss
  at the bizarness of the problem (works through Tomcat, but not when
  going through IIS/JK).  i didn't have time to try out your
 suggestion
  just yet, but i definitely will.
  
  i just wanted to confirm however, because my Tomcat is an old
 version
  4.1.24, did you mean downgrade my current JDK to one that was
 current
  at the time 4.1.24 was current?  (ie. use the JDK of the same time
  period?)
  
   I think it would be best to upgrade your version of tomcat to
 5.0+
  and to
  use
  the recommended jdk. I am using tomcat 5.0.28 with jdk 1.4.2_07 on
  the
  operating system Linux Enterprise 3.0.
  
  or did you mean upgrade my JDK to the latest current release which
 i
  believe is 1.5 or something.
  
  i am currently using JDK 1.4.1_02.
  
  best regards,
  woodchuck
  
  
  --- [EMAIL PROTECTED] wrote:
  
   Hi :
   
   This is most likely an issue with the version of JDK that is
  deployed
   on
   your machine.
   Try using a newer version of the JDK which is comaptible with the
   version of
   tomcat that is deployed on your machine.
   
 Patrick King
   
   Patrick King
   BSc.(Hon.) Geophysics
   Senior Systems Scientist
   Canada Centre For Remote Sensing
   615 Booth St. Room 650
   Ottawa, Ontario
   K1A0E9
   Phone: 613-947-0463
   E-mail : [EMAIL PROTECTED]
   
   -Original Message-
   From: Woodchuck [mailto:[EMAIL PROTECTED]
   Sent: February 22, 2005 2:15 PM
   To: tomcat; struts
   Subject: challenging JK connector problem:
 java.net.SocketException
   
   
   hihi all,
   
   i have installed the JK connector (setupJK204.exe) with my IIS
 5.1
   and
   Tomcat 4.1.24.
   
   everything is working fine, except that i'm noticing in the
 Tomcat
   console display i see the following exceptions at run-time:
   
   java.net.SocketException: Software caused connection abort: recv
   failed
   at java.net.SocketInputStream.socketRead0(Native Method)
   at
   java.net.SocketInputStream.read(SocketInputStream.java:129)
   at
   java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
   at
   java.io.BufferedInputStream.read1(BufferedInputStream.java:222

Re: FW: challenging JK connector problem: java.net.SocketException

2005-02-23 Thread Woodchuck
hi Patrick,

i've just tried your suggestion and unfortunately i still get the
java.net.SocketExceptions.

i installed Tomcat 5.0.25, upgraded my JDK to 1.4.2_07, reinstalled the
JK connector (setupJK204.exe).

the only real difference it seems is that i'm using Windows XP.

how do you install your JK connector?  can you show me the contents of
your workers2.properties file?

here is my workers2.properties:

#Look at 
#http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html

#for parameter description 

[shm:] 
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers 
file=C:\jakarta-tomcat-5.0.25\temp\jk2.shm 
size=1048576 

[channel.socket:localhost:8009] 
info=Ajp13 forwarding over socket 
tomcatId=localhost:8009 

# Map webapps to the Web server uri space 
[uri:/jsp-examples/*]
[uri:/myapp/*]
[uri:/servlets-examples/*]


maybe there are some differences between my workers file and yours?  at
this point i'll try anything :)

but since you're on unix, your JK connector is most likely not using
isapi_redirector2.dll.  so maybe there's implementation differences
between the unix JK and windows JK...

thanks in advance,
woodchuck


--- [EMAIL PROTECTED] wrote:

 
 
 -Original Message-
 From: Woodchuck [mailto:[EMAIL PROTECTED]
 Sent: February 22, 2005 5:20 PM
 To: [EMAIL PROTECTED]
 Subject: RE: challenging JK connector problem:
 java.net.SocketException
 
 
 hello Patrick!
 
 thank you for your help, i really appreciate it as i'm at a total
 loss
 at the bizarness of the problem (works through Tomcat, but not when
 going through IIS/JK).  i didn't have time to try out your suggestion
 just yet, but i definitely will.
 
 i just wanted to confirm however, because my Tomcat is an old version
 4.1.24, did you mean downgrade my current JDK to one that was current
 at the time 4.1.24 was current?  (ie. use the JDK of the same time
 period?)
 
  I think it would be best to upgrade your version of tomcat to 5.0+
 and to
 use
 the recommended jdk. I am using tomcat 5.0.28 with jdk 1.4.2_07 on
 the
 operating system Linux Enterprise 3.0.
 
 or did you mean upgrade my JDK to the latest current release which i
 believe is 1.5 or something.
 
 i am currently using JDK 1.4.1_02.
 
 best regards,
 woodchuck
 
 
 --- [EMAIL PROTECTED] wrote:
 
  Hi :
  
  This is most likely an issue with the version of JDK that is
 deployed
  on
  your machine.
  Try using a newer version of the JDK which is comaptible with the
  version of
  tomcat that is deployed on your machine.
  
  Patrick King
  
  Patrick King
  BSc.(Hon.) Geophysics
  Senior Systems Scientist
  Canada Centre For Remote Sensing
  615 Booth St. Room 650
  Ottawa, Ontario
  K1A0E9
  Phone: 613-947-0463
  E-mail : [EMAIL PROTECTED]
  
  -Original Message-
  From: Woodchuck [mailto:[EMAIL PROTECTED]
  Sent: February 22, 2005 2:15 PM
  To: tomcat; struts
  Subject: challenging JK connector problem: java.net.SocketException
  
  
  hihi all,
  
  i have installed the JK connector (setupJK204.exe) with my IIS 5.1
  and
  Tomcat 4.1.24.
  
  everything is working fine, except that i'm noticing in the Tomcat
  console display i see the following exceptions at run-time:
  
  java.net.SocketException: Software caused connection abort: recv
  failed
  at java.net.SocketInputStream.socketRead0(Native Method)
  at
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  at
  java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
  at
  java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
  at
  java.io.BufferedInputStream.read(BufferedInputStream.java:277)
  at
  org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:498)
  at
  org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:436)
  snip.
  
  
  and 
  
  
  
  java.net.SocketException: Connection reset by peer: socket write
  error
  at java.net.SocketOutputStream.socketWrite0(Native Method)
  at
  java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
  at
  java.net.SocketOutputStream.write(SocketOutputStream.java:136)
  at
  org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
  at
  org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
  at
 
 org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372)
  at org.apache.coyote.Response.action(Response.java:222)
  at org.apache.coyote.Response.finish(Response.java:343)
  snip
  
  in particular these exceptions are coming up when i use my app's
  search
  functionality
  
  the weird part is that the exceptions only occur when i access my
 web
  site through IIS (ie. via JK connector).  i *don't* get any
  exceptions
  at all when accessing Tomcat directly by specifying port 8080 in my
  URL.
  
  these exceptions are causing weird/incorrect app behaviour in the
  search functionality

Tomcat memory allocation as a Windows service

2005-02-22 Thread Woodchuck
hihi all,

when Tomcat is installed as a service how do we control how much system
memory we allocate to it?

i have heard it reads the memory parameters and others from the
registry but can anyone tell me exactly how/where to do this?  i can't
seem to find this information..

also, is there a way to allocate memory on a per application basis?...
that is, if my Tomcat was hosting 3 apps, is it possible to explicitly
allocate a max amount of memory per app?

please and thanks,
woodchuck



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

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



RE: [SOLVED] Tomcat memory allocation as a Windows service

2005-02-22 Thread Woodchuck
thanks for your help!

i tried looking for the service.bat in the tomcat/bin folder but it is
not there.

it is an older version 4.1.24 and it was already installed as a
service, i don't know how it was done (without the service.bat file)
but it's there.

i scanned the registry and found the location of where the service gets
its Tomcat parameter values from:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Apache
Tomcat\Parameters

hope this helps anyone else that runs into the same problem!

woodchuck


--- Allistair Crossley [EMAIL PROTECTED] wrote:

 Hi
 
 The way we do it is using the service.bat file to install the service
 manually. You can tweak the values in that file.
 
 If all your apps are in 1 tomcat, then that uses 1 JVM and I think
 you can only declare these parameters once.
 
 Cheers, Allistair.
 
  -Original Message-
  From: Woodchuck [mailto:[EMAIL PROTECTED]
  Sent: 22 February 2005 17:30
  To: tomcat
  Subject: Tomcat memory allocation as a Windows service
  
  
  hihi all,
  
  when Tomcat is installed as a service how do we control how 
  much system
  memory we allocate to it?
  
  i have heard it reads the memory parameters and others from the
  registry but can anyone tell me exactly how/where to do this?  i
 can't
  seem to find this information..
  
  also, is there a way to allocate memory on a per application
 basis?...
  that is, if my Tomcat was hosting 3 apps, is it possible to
 explicitly
  allocate a max amount of memory per app?
  
  please and thanks,
  woodchuck
  
  
  
  __ 
  Do you Yahoo!? 
  Yahoo! Mail - Easier than ever with enhanced search. Learn more.
  http://info.mail.yahoo.com/mail_250
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




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

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



challenging JK connector problem: java.net.SocketException

2005-02-22 Thread Woodchuck
hihi all,

i have installed the JK connector (setupJK204.exe) with my IIS 5.1 and
Tomcat 4.1.24.

everything is working fine, except that i'm noticing in the Tomcat
console display i see the following exceptions at run-time:

java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at
java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at
java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at
org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:498)
at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:436)
snip.


and 



java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
at
org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372)
at org.apache.coyote.Response.action(Response.java:222)
at org.apache.coyote.Response.finish(Response.java:343)
snip

in particular these exceptions are coming up when i use my app's search
functionality

the weird part is that the exceptions only occur when i access my web
site through IIS (ie. via JK connector).  i *don't* get any exceptions
at all when accessing Tomcat directly by specifying port 8080 in my
URL.

these exceptions are causing weird/incorrect app behaviour in the
search functionality as well, so it's not just harmless exception logs
being generated.  if i use my application by connecting to Tomcat
directly (port 8080), the search functionality works perfectly and
there's no errors at all.

i have looked at my code and cannot see what i could be doing that may
cause such errors to happen in the JK connector.

has anyone any suggestions on how to go about debugging this?  or has
come across this before and found a solution?

in my search page, i am using logic:present and logic:empty struts
tags to detect if my collection (of search results) object is null or
not, and if not, is it an empty collection or not respectively.  is
this a known bug/issue perhaps with some struts tags being used through
JK connector?  why is connection reset by peer happening?  doesn't
this mean the request/form being submitted is suddenly cut off?

any help is appreciated.

please and thanks,
woodchuck



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



JK2 connector proper setup/update procedure?

2005-01-18 Thread Woodchuck
hihi all,

what is the proper procedure to update the JK connector when adding a
new application to Tomcat that also needs redirecting from IIS?

i am using the setupJK202.exe installation program.

i shutdown my Tomcat service.  then shutdown the WWW service.  then i
go to the IIS Manager and delete the jakarta virtual directory.  then
i also go into the Default Web Server's isapi tab and remove all the
jakarta entries in the list.

then when everything is stopped, i run the setupJK202.exe program
again.

however, after doing this, each time i get an additional jakarta entry
in the isapi tab (ie. the jakarta entry that has the green arrow lit up
if it is ok)... so far, i've tried it five times and now i have 5 green
arrows in that list.

i must be doing something wrong.  does anyone know the proper
procedure?

do i need to erase all the corresponding registration keys?  do i need
to delete the workers2.properties and jk2.properties files?

thanks in advance,
woodchuck 



__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Does tomcat cache compiled JSPs?

2005-01-13 Thread Woodchuck

--- Matt Bathje [EMAIL PROTECTED] wrote:


 - Does that fact that the newly-compiled file is always called from a
 
 jsp:include page=xxx.jsp / make a difference?

try %@ include file=xxx.jsp %






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

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



Re: Does tomcat cache compiled JSPs?

2005-01-13 Thread Woodchuck

--- Matt Bathje [EMAIL PROTECTED] wrote:

 Woodchuck wrote:
  --- Matt Bathje [EMAIL PROTECTED] wrote:
  
  
  
 - Does that fact that the newly-compiled file is always called from
 a
 
 jsp:include page=xxx.jsp / make a difference?
  
  
  try %@ include file=xxx.jsp %
  
  
 
 This would not be an ideal situation as the path to include is 
 dynamically calculated - but in any case, I tried hard-coding it and 
 doing the include, and it did not help the situation any.
 

is the jsp doing the %@ include being jsp:include-ed itself into
another jsp?

also, are you using tomcat 5?  if you are i believe you can use EL to
do something like:

%@ include file=${your_object.dynamic_file_name} %


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




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



tomcat memory settings when running as service?

2005-01-12 Thread Woodchuck
hihi all,

how can i find out all the various memory parameter values that was
used to start tomcat as a service in windows?

i looked at the properties for the Apache Tomcat service and all i
could find was that it pointed to Tomcat.exe in the tomcat bin folder.

thanks in advance,
woodchuck



__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

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



RE: Delivering JSPs without source

2004-12-01 Thread Woodchuck
hihi,

i have gotten into the habit of precompiling my jsps and then
obfuscating everything.  while not 100% bullet-proof (but then again,
nothing is in theory), i think this is a reasonably decent solution for
source security.

woodchuck


--- Shapira, Yoav [EMAIL PROTECTED] wrote:

 
 Hi,
 
 When Tomcat receives a request for .jsp page, isn't the first order
 of
 business to compare the date of the .jsp page against the .java file
 in
 the working directory, so Tomcat knows whether to re-translate and
 compile the .jsp page?
 
 For normal JSP pages, but not for pre-compiled ones.  Those are
 defined
 in web.xml and don't go through the JSP servlet: they are normal
 servlets, not subject to Jasper manipulation.  So what this user is
 trying to do (precompile to avoid giving customers JSP source code)
 is
 technically possible and has valid use-cases.  I've helped customers
 do
 the same thing.
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 
 
 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]
 
 





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



OT: hosting recommendations?

2004-11-12 Thread Woodchuck
hihi all,

can anyone recommend hosters that are Tomcat/Java friendly and offer
private JVMs for cheap monthly cost?  (cheap to me is $0 - $20/month
range)

i went to servlets.com and visited many of the hosters on their list
but most of them seem to still have the legacy offerings that are
stingy on space and transfer allowances.  it was either that or they
charge a lot ($50+/month) for private JVMs.

thanks in advance,
woodchuck



__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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



Re: (SOLVED) context.xml deployed as folder in Tomcat 5

2004-10-31 Thread Woodchuck
thanks QM!

i upgraded to Tomcat 5.0.28 and it got rid of the problem!

woodchuck


--- QM [EMAIL PROTECTED] wrote:

 On Sat, Oct 30, 2004 at 02:04:01PM -0700, Woodchuck wrote:
 : is there a way i can tell whether it's patched with this fix or
 not?
 
 Yes -- search the archives and/or Bugzilla to see what version has
 the
 fix.  If your version  that version, well... ;)
 
 Quite frankly, the fact that you experience this bug would imply that
 your version does *not* have the fix.
 
 -QM
 
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



context.xml deployed as folder in Tomcat 5

2004-10-30 Thread Woodchuck
hihi all,

i put a context.xml file into my META-INF folder and created a war
file.  then i dropped the war file in to the webapps folder.  but
whenever TC5 auto deploys my war file, it creates a myapp.xml folder
in the $CATALINA_HOME/conf/Catalina/localhost folder.

it's supposed to basically just copy my META-INF/context.xml into the
$CATALINA_HOME/conf/Catalina/localhost folder and rename the file to
myapp.xml... but instead it's always creating an empty folder that's
named myapp.xml instead.

does anyone know what i'm doing wrong or how to fix this?

my context element definition is nothing special just this:

 Context path=/myapp docBase=myapp
 debug=0 reloadable=true swallowOutput=true

thanks in advance,
woodchuck



___
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com

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



Re: context.xml deployed as folder in Tomcat 5

2004-10-30 Thread Woodchuck
it's version 5.0.27 

is there a way i can tell whether it's patched with this fix or not?


--- QM [EMAIL PROTECTED] wrote:

 On Sat, Oct 30, 2004 at 01:48:00PM -0700, Woodchuck wrote:
 : i put a context.xml file into my META-INF folder and created a war
 : file.  then i dropped the war file in to the webapps folder.  but
 : whenever TC5 auto deploys my war file, it creates a myapp.xml
 folder
 : in the $CATALINA_HOME/conf/Catalina/localhost folder.
 
 Which version of Tomcat 5?  This is a bug that was fixed in
 v5.0.20-something, I believe.  I don't have the exact Bugzilla ID
 handy
 but there's a class patch there if you don't want to do a full
 upgrade.
 
 -QM
 
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




___
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com

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



jk isapi_redirector2.dll @ http://jakarta.apache.org/~mturk/

2004-10-04 Thread Woodchuck
hihi all,

does anyone have more information about this web page:

http://jakarta.apache.org/~mturk/

and the isapi_redirector2.dll found there?

i upgraded from jk 2.0.4's dll to this one and it fixed the uploading
files problem (with commons-fileupload.jar), but we have other web apps
that are running behind this .dll also.

does anyone have any other information about the differences between
this dll and the jk 2.0.4 dll?  i'm wondering how much
retesting/regression testing should be done for the other apps that
were working fine under the jk 2.0.4 dll.  has anyone that had to do
this upgrade experienced any side effects?

any info, suggestions on this is greatly appreciated.

please and thanks,
woodchuck



__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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



regarding transactions

2004-08-10 Thread Woodchuck
hihi,

i don't know what is the root of my problem (tomcat connection pooling,
jdbc, database, ..)

this is my scenario:
 - container managed pooling (Tomcat 4.1.24)
 - jdbc (PreparedStatement objects)
 - wrapping my own transactions by autoCommit(false), and issuing
commit() manually

i'm running into a table-lock situation after DELETE statements.  i'm
using the same Connection object for multiple PreparedStatement
objects.  my plan is to call commit() at the end.  but when i reach a
PreparedStatement that is doing a DELETE, the code stops and does not
continue with the rest of the other PreparedStatement objects.

is this the nature of DELETE statements?  that we cannot continue
further without first committing it immediately?  or is this possible
and there is something else wrong?

how can i handle a 'custom transaction' that contains many INSERTS,
UPDATES, DELETE statements in random order?

thanks in advance!





__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



RE: I've officially decided that JSTL is one of the worst things to ever happen to mankind

2004-07-08 Thread Woodchuck
i program in ones and zeroes only!! :D

01101101011101110111010101101111011011110110111100110010001001101001001001100100011000100111011011000110111001101101000100100111011100100110011001110111001001110110110101101101011010010110111001100111001001101001011011100010011000100110100101101110011101110010000100110011


--- SANTOS, DANIEL (SBCSI) [EMAIL PROTECTED] wrote:
 
 Assembly is impure and bloated by the macro-Assembly to machine code
 translation.  If you are worth your weight, you can just write it all
 in
 hex, and with dipswitches.  DEATH TO ALL KEYBOARD USERS!!!
 
 Daniel




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



RE: How to start a web app?

2004-07-08 Thread Woodchuck
also, check that your tomcat-users.xml is similar to this:

tomcat-users
  role rolename=manager/
  role rolename=admin/
  user username=admin password=admin roles=admin,manager/
/tomcat-users


--- Andrew Janian [EMAIL PROTECTED] wrote:
 Are you sure that Tomcat itself is running?  Did the manager webapp
 get loaded.  You should see in the logs that the manager webapp,
 administraion app, and a couple other examples get loaded if you are
 using Tomcat out of the box and have not disabled it.  Did you
 provide a username and password when the box popped up?  What was the
 result if so?
 
 Andrew
 
 -Original Message-
 From: Michael Labhard [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 08, 2004 1:19 PM
 To: Tomcat Users List
 Subject: Re: How to start a web app?
 
 
 On Thursday 08 July 2004 11:14 am, Andrew Janian wrote:
  You don't get a login screen, you get a login popup.  Not getting
 that
  either?
 
 Nope, not getting that either.  I did see it once, yesterday.  Ever
 since, 
 nothing.  I have even reinstalled Tomcat without benefit.
 
 -- Michael
 
 -
 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 is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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



Re: Getting mad with jsp 2.0 jsp:directive.include file=file_to_include.jsp/

2004-06-30 Thread Woodchuck
hi Martin,

can you try to use the compile-time include like the following:

%@ include file=/jsp/ascript.jsp%

instead of the run-time include that you are currently using?  that is
why it is complaining about double importing.

if you use compile-time include then you do not need to import in your
ascript.jsp

woodchuck
 

--- Martin_Grüneberg [EMAIL PROTECTED] wrote:
 Hello, hope somebody knows whats going on here...
 
 I have a main.jsp with the following start..
 
 ?xml version=1.0 encoding=utf-8?
 jsp:root version=2.0 xmlns:jsp=http://java.sun.com/JSP/Page; 
   xmlns=http://www.w3.org/1999/xhtml;
   xmlns:c=http://java.sun.com/jsp/jstl/core;
   xmlns:fn=http://java.sun.com/jsp/jstl/functions;
   xmlns:html=/WEB-INF/struts-html-el.tld
   xmlns:am=/WEB-INF/AccessManager2.tld
   xmlns:bean=/WEB-INF/struts-bean-el.tld
 jsp:output doctype-root-element=html
  doctype-public=-//W3C//DTD XHTML 1.0 Transitional//EN
  

doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 /
 jsp:directive.page contentType=text/html; charset=utf-8
 language=java
 /
 html:html locale=true xhtml=true 
 head
   html:base/
   titlebean:message key=login.title//title
   c:url value=/css/style.css var=link
   /c:url
   link rel=stylesheet href=${fn:escapeXml(link)}
 type=text/css/
   
   jsp:directive.include file=/jsp/ascript.jsp/
   
 /head
 
 
 the /jsp/ascript.jsp looks like that:
 
 script type=text/javascript
 var newWindow;
 
 function openInsertWindow()
 {
   c:url value=/messdatenPreloadAction.do var=link
   c:param name=operation value=insertDataset/
   /c:url
   newWindow =

window.open(${fn:escapeXml(link)},_blank,resizable=yes,scrollbars=yes,w
 idth=800,height=600,status=yes);
 }
 ...
 
 ok, now the problem:
 when i call the jsp tomcat (jasper) throws the following exception:
 
 org.apache.jasper.JasperException: /jsp/ascript.jsp(9,33) The
 attribute
 prefix fn does not correspond to any imported tag library
 
 I thought ok, and added the same declaration to the /jsp/ascript.jsp
 include
 file like in the main.jsp:
 
 ?xml version=1.0 encoding=utf-8?
 jsp:root version=2.0 xmlns:jsp=http://java.sun.com/JSP/Page; 
   xmlns=http://www.w3.org/1999/xhtml;
   xmlns:c=http://java.sun.com/jsp/jstl/core;
   xmlns:fn=http://java.sun.com/jsp/jstl/functions;
   xmlns:html=/WEB-INF/struts-html-el.tld
   xmlns:am=/WEB-INF/AccessManager2.tld
   xmlns:bean=/WEB-INF/struts-bean-el.tld
 script type=text/javascript
 var newWindow;
 
 function openInsertWindow()
 {
   c:url value=/messdatenPreloadAction.do var=link
   c:param name=operation value=insertDataset/
   /c:url
   newWindow =

window.open(${fn:escapeXml(link)},_blank,resizable=yes,scrollbars=yes,w
 idth=800,height=600,status=yes);
 }
 ...
 
 
 but then i got the exception:
 
 org.apache.jasper.JasperException: h3Validation error messages from
 TagLibraryValidator for c/h3pnull: 
 org.xml.sax.SAXParseException: Attribute bean bound to namespace
 http://www.w3.org/2000/xmlns/; was already 
 specified for element jsp:root./p
 
 ok, this seems to be logical to me, because it is alredy declared in
 main.jsp.
 
 What can i do to fix this, to get the taglib known in the include but
 not
 double import it???
 
 thanks in advance
 Martin Grüneberg
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Re: Errors in precompiled JSPs

2004-06-30 Thread Woodchuck
hi simon,

i just tried to introduce the same 'errors' you did and my
pre-compiling stopped and complained the following exception:

  [jasperc] 2004-06-30 10:38:20 - ERROR-the file '\jsp\Test.jsp'
generated the following general exception: java.
lang.NullPointerException
  [jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
  [jasperc] at org.apache.jasper.JspC.execute(JspC.java:801)
  [jasperc] at org.apache.jasper.JspC.main(JspC.java:823)

so it seems i'm getting the error-checking that you want.  the
difference is that i didn't use taskdef to do my pre-compiling.  i
just used ant's jspc task:

jspc srcdir=${webapp.build} destdir=gensrc/src
uriroot=${webapp.build}
compiler=jasper41
includes=index.jsp,jsp/**/*.jsp
verbose=9
webxml=jspmaps

classpath
pathelement path=${tomcat.home}/common/lib/jasper-compiler.jar/
pathelement path=${tomcat.home}/common/lib/servlet.jar/
pathelement path=${tomcat.home}/common/lib/jasper-runtime.jar/
pathelement path=${ant.home}/lib/ant.jar/
/classpath

/jspc

why do you need to define your own pre-compile task may i ask?

woodchuck


--- simon colston [EMAIL PROTECTED] wrote:
 I have set up an ant task to precompile JSPs and everything works
 fine 
 *if* there are no errors in the JSP.
 
 The ant task is:
 
 target name=jspc depends=prepare description=Compile JSP
 files
   taskdef classname=org.apache.jasper.JspC name=jasper2 
classpath id=jspc.classpath
 pathelement location=${java.home}/../lib/tools.jar/
  fileset dir=${extlib.home}
   include name=**/*.jar/
  /fileset
 /classpath
/taskdef
jasper2 verbose=4
   validateXml=false
   uriroot=${build.home}
   webXmlFragment=${web.home}/WEB-INF/generated_web.xml
   outputDir=${build.home}/WEB-INF/src /
loadfile
   srcfile=${web.home}/WEB-INF/generated_web.xml
   
 property=gen.web.xml
 filterchain 
  tokenfilter delimoutput=\r\n/
 /filterchain
/loadfile
delete file=${web.home}/WEB-INF/generated_web.xml/delete
delete file=${build.home}/WEB-INF/web.xml/delete
copy tofile=${build.home}/WEB-INF/web.xml
   file=${web.home}/WEB-INF/web.xml
 filterset
  filter value=${gen.web.xml} token=jspServlets/
 /filterset
/copy
 /target
 
 If I introduce an error into the JSP page, such as:
 
   c:url var=url/
   img src=${url}/
 
 (where c: is the JSTL common taglib) the ant task ends without errors
 
 and I get a NullPointerException when I test the page on the server.
 
 How can I get my jspc ant task to show errors in the JSP?
 
 Using Tomcat 5.0.25.
 
 Cheers,
 
 Simon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



docbase=myapp.war does not work correctly

2004-06-29 Thread Woodchuck
i'm using tomcat 4.1.24

i have both unpackWARs and autoDeploy set to true.

i have a context for myapp defined:
Context path=/myapp docBase=myapp debug=0
 reloadable=true

tomcat is not expanding my myapp.war file.  why is this?  so after
reading archives people suggested setting docbase=myapp.war so i did
that, but my application is not working correctly, there are run-time
nullpointer exceptions.

however, if i manually unpack my war, my app works fine, no errors.

why is tomcat not unpacking?  (or why does setting docBase=myapp.war
not work 100%?)






__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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



DOCTYPE wrong yet still works, why?

2004-06-29 Thread Woodchuck
i just discovered that my DOCTYPE points to an old link:

http://java.sun.com/j2ee/dtds/web-app_2_3.dtd

if you go there you will see a message with the correct link:

http://java.sun.com/dtd/web-app_2_3.dtd

however, my app still works, and tomcat didn't complain, nor did it
warn me..

why does tomcat still understand my web.xml (or does it?) when the dtd
points to something that is not a dtd?



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Re: web.xml pointing to other xml files?

2004-06-29 Thread Woodchuck
hi QM,

just thought i'd follow up on how i ended up doing mine.  it's
essentially the same strategy but instead of including everything in
the jspc generated file, i'm only including the exact segment that i
need and i'm using the plain replace task.

build file:

loadfile srcfile=web.xml property=myfile
filterchain
headfilter lines=-1 skip=10/
tailfilter lines=-1 skip=3/
/filterchain
/loadfile

replace file=${webapp.build}/WEB-INF/web.xml 
token=lt;!-- @SERVLET_MAPPINGS@ --gt; 
value=${myfile}/


web.xml file:

servlet
servlet-nameaction/servlet-name
   
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet

  !-- @SERVLET_MAPPINGS@ --

  !-- Standard Action Servlet Mapping --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

by replacing the my entire 'placeholder' string !--
@SERVLET_MAPPINGS@ -- with the servlet mappings from jspc, my web.xml
file is still valid even if i never pre-compile.

thanks again for your help!  TMTOWTDI is really true for Ant!

woodchuck
 

--- QM [EMAIL PROTECTED] wrote:
 On Mon, Jun 28, 2004 at 09:45:55AM -0700, Woodchuck wrote:
 : actually i'm using Ant too.  i'm pre-compiling using the jspc
 task
 : and it generates a file containing servlet and servlet-mapping
 : tags.  that's exactly what i need to do really, is to merge this
 file
 : with my web.xml file.  if you can show me how you're doing it that
 : would be great, thanks!
 
 Appended below.  Perl's TMTOWTDI motto reigns here, because I'm
 certain there are other (and gmore elegant) ways to do this...
 
 -QM
 
 
 ... from build.xml ...
   !--
   make the contents of the precompiled JSP mappings
   (from the jspc task) available as a replacement
   variable @PRECOMPILED_JSPS@ in web.xml
   --
 
   loadfile
   property=jsp.precomp.data
   srcFile=${warfile.build_dir}/WEB-INF/precompiled_jsps.xml
   /
 
   !--
   copy the web.xml to its destination, and in the process,
   replace @PRECOMPILED_JSPS@ with the content of the
   precompiled_jsps.xml file
   --
 
   copy
   file=files.WEB-INF/web.xml
   overwrite=true
   toFile=${warfile.build_dir}/WEB-INF/web.xml
   
   filterset
   filter
   token=PRECOMPILED_JSPS
   value=${jsp.precomp.data}
   /
   /filterset
 
   /copy
 
 ... from web.xml (before it's copied with Ant's copy task ...
 
   !-- BEGIN: precompiled JSPs --
   @PRECOMPILED_JSPS@
   !-- END: precompiled JSPs --
 
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



web.xml pointing to other xml files?

2004-06-28 Thread Woodchuck
under the web-app section of the web.xml file, can we arbitrarily
reference other xml files?

that is, if i put all my servlet tags in one file (my_servlets.xml)
and all my servlet-mapping tags in another file (my_mappings.xml), is
it possible to reference these from the web.xml file (and not upset
tomcat in doing so)?

also, i was experimenting and discovered i could place servlet tags
and servlet-mapping tags in different orders (within web-app
section) and it still works!  not that i'm complaining but i'm
surprised because when i do that, the console displays a lot of errors
when tomcat 'picks up' these changes, yet it's still able to understand
them and things seem to work fine... is this intentional by tomcat? 
ie. if breaking the DTD order does not break the application then why
do we need the DTD order?




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

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



Re: web.xml pointing to other xml files?

2004-06-28 Thread Woodchuck
--- QM [EMAIL PROTECTED] wrote:
 On Mon, Jun 28, 2004 at 08:57:49AM -0700, Woodchuck wrote:
 : under the web-app section of the web.xml file, can we arbitrarily
 : reference other xml files?
 : that is, if i put all my servlet tags in one file
 (my_servlets.xml)
 : and all my servlet-mapping tags in another file
 (my_mappings.xml), is
 : it possible to reference these from the web.xml file (and not upset
 : tomcat in doing so)?
 
 Yes and no: you can call external entity references (which, in turn,
 point to files) from your web.xml; but as there is no guarantee of
 what
 is a webapp's current directory you'd have to hardcode those paths.
 That would make your app less portable between containers and perhaps
 even different Tomcat revs.
 
 You could merge your files of servlet and servlet-mapping tags at
 build time. For example, I use the Ant tasks loadfile and copy +
 filter.  If you're interested, I'll post that in detail.

actually i'm using Ant too.  i'm pre-compiling using the jspc task
and it generates a file containing servlet and servlet-mapping
tags.  that's exactly what i need to do really, is to merge this file
with my web.xml file.  if you can show me how you're doing it that
would be great, thanks!  i didn't look into doing this right away
because i thought it would be simpler to just have web.xml point to
this file... :p

 
 
 : also, i was experimenting and discovered i could place servlet
 tags
 : and servlet-mapping tags in different orders (within web-app
 : section) and it still works!
 
 What servlet spec do you specify in your web.xml?
 IIRC 2.4's schema permits a more logical order, such as 
 
   servlet
   servlet-mapping
   servlet
   servlet-mapping
 
 -but don't quote me on that, as I don't have the spec in front of me
 right now.

my web.xml header is this:

?xml version=1.0 ?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

i didn't alternate servlet and servlet-mapping though.  i kept the
'group' integrity so all the servlet tags were together first, then
came all the servlet-mapping tags.  what i did mix up though, was
putting this chunk in various places within the web-app tag.  for
example i put this chunk as the very last 'section' before /web-app,
then i tried putting this chunk right in-between two taglib
definitions.  in both cases, when tomcat 'picked up' these changes it
caused various parsing-related errors on the console, however my
application still worked *seemingly* without any problems.






__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



Re: startup error

2004-06-28 Thread Woodchuck
hi,

i would recommend you do the first technique, which is to set an
environment variable in windows called CATALINA_HOME.  the value in
your case would be c:\tomcat (without the quotes)

do you know how to do this?  (which operating system are you using?)


--- Mendo, Anthony J. [EMAIL PROTECTED] wrote:
 I am new to Tomcat and need some help just getting started.
 The error I am getting is:
 The CATALINA_HOME environment variable is not defined correctly...
 
 In the RUNNING.txt file states:
 
 There are two techniques by which Tomcat 4.0 can be started:
 
 * Via an environment variable:
   - Set an environment variable CATALINA_HOME to the path of the
 directory
 into which you have installed Tomcat 4.0.
   - Execute the shell command:
 
   %CATALINA_HOME%\bin\startup (Windows)
 
 
 * By modifying your current working directory:
   - Execute the following shell commands:
 
   cd %CATALINA_HOME%\bin  (Windows)
   startup (Windows)
 
  
 But where am I suppost to point?
 my install is:
 c:\tomcat
 
 thanks in advance
 
 AJ
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



RE: jspc

2004-06-25 Thread Woodchuck
hi,

not sure if this is related but Tomcat is now using Ant to compile .jsp
files and there was something about a memory leak in the internal javac
that Ant uses to compile.

the 'fix' was to set fork = true for this Ant compilation process so
that it does not corrupt Tomcat's jvm by using a separate jvm to do
.jsp compiling.

having said that, i believe this fork = true setting is the default
that is shipped with Tomcat..  so i'm not sure if this helps you any 
:p


--- Peter Guyatt [EMAIL PROTECTED] wrote:
 Hi There,
 
   The memory leak was in JDK1.4.1 and was to do with Strings and
 StringBuffer
 sharing memory for performance.
 
 Use JDK1.4.2 to ensure that this problem does not happen.
 
 Pete
 
 -Original Message-
 From: Nick Curry [mailto:[EMAIL PROTECTED]
 Sent: 25 June 2004 11:08
 To: Tomcat Users List
 Subject: RE: jspc
 
 
 I seem to remember something about a known memory leak in javac 1.4
 (not
 sure which version), which might affect you if you use javac and have
 many
 JSPs to compile - so that might be another argument for precompiling
 your
 jsps...
 
 Nick
 
 
 -Original Message-
 From: Michiel Toneman [mailto:[EMAIL PROTECTED]
 Sent: 25 June 2004 10:29
 To: Tomcat Users List
 Subject: Re: jspc
 
 
 
 A good reason to precompile your JSP files is to make sure you don't
 accidentally have broken JSP files on production. You then know
 *before*
 deployment if any changes to your JSP files or the java classes they
 belong to cause breakage.
 
 Michiel
 
 
 Paul Wallace wrote:
 
 Hi,
  Yes..that is what I thought, but I learned from a 'reliable'
 source I could accomplish this on saving overhead. So rather than
 looking into the whys and whats, I looked into how to do it, and
 look
 into the performance benefits later. I will provide the list with my
 sources reasoning, when it becomes available!
  A thought..and to answer a question with a question (Why would
 you precompile jsp files?), why is jspc there? If only to increase
 performance on the first hit?
 
 Thanks
 
 Paul.
 
 It will increase speed on the first viewing of the jsp, but after
 that I
 
 can't see how there will be any difference.  How much memory can you
 save
 if any?  And how would that work?
 
 Thanks
 
 On Fri, 25 Jun 2004 11:12:44 +1000, Paul Wallace
 [EMAIL PROTECTED]
 wrote:
 
 
 
 In an effort to increase speed/free up memory that otherwise might
 be
 consumed by Tomcat otherwise
 
 Why would you precompile jsp files?
 
 On Fri, 25 Jun 2004 09:32:38 +1000, Paul Wallace
 [EMAIL PROTECTED]
 wrote:
 
 
 
 (sorry, wrong key!)
 
 Hi Jason,
Thanks for that. Yes, it does make sense. A couple of things
 though, I just ran it with -compile - great. But my query about
 the
 
 
 work
 
 
 directory and was more towards what I am being 'encouraged' to do
 
 
 from
 
 
 the powers that be. I.e not WAR the app., but put it in the work
 directory. Is this ill-advised/poor practice?
To accomplish this, is it as simple as dragging the compiled
 source under my work directory, and modifying my web.xml as
 advised?
Why does -compile work, but not appear in the usage?!
Also, can I specify a path for the compilation, rather than the
 classes be placed in the same dirs as the source? (I tried adding
 a
 
 
 path
 
 
 after the -compile switch, but it constructed and compiled a file
 
 
 with
 
 
 the same name as the class directory destination).
 
 Do I make sense?!
 
 Paul.
 
 Paul,
 
 I just use the -compile option and have jspc do the
 compilation from .java to .class for me.  It seems to
 work fairly well.  Once all the fully compiled (ie
 .class) files are placed in you applications
 WEB-INF/classes directory you just need to place the
 generated web.xml file in WEB-INF.  There is an option
 to create a complete web.xml file that you can place
 in WEB-INF or, if you already have a web.xml file you
 want to keep, you can have jspc create an xml fragment
 that just contains the servlet definitions and
 mappings that you then add (in the appropriate place)
 to your existing web.xml.  Then just war up you
 application directory in the normal way (you can even
 delete the jsps once your certain the servlet mappings
 are working).
If you try to put the generated files in your
 working directory you won't be able to war them up and
 deploy them in the normal put war file under webapps
 directory and tomcat will expand it when it starts
 way.  You'd have to ship a complete tomcat directory
 structure with the work directory already filled in
 with your compiled jsps.  Does that make sense?
 
 Jason
 
 --- Paul Wallace [EMAIL PROTECTED] wrote:
 
 
 Hello,
 I have compiled my JSPs thus:
 
 jspc -webapp C:\src\site -d C:\src\site\classes -s
 -l -uriroot
 C:\src\site
 
 this builds the Java source files to the specified
 location, but how
 might I deploy them?
 
 What is a typical deployment after a JSP
 compilation? Compilation of
 Java source files, then WAR/JAR? Can I not define
 the JSP 

Re: Determination if a client has sessions enabled or not.

2004-06-25 Thread Woodchuck
hi,

this begs the question, is it bad practice to require users to enable
cookies?


--- Mike Fowler [EMAIL PROTECTED] wrote:
 Ben,
 
 I don't know of any way of checking (someone correct me if I'm
 wrong!). 
 What I have done is to attach an attribute to the session, redirect
 to a 
 small .jsp page with a div visibility: hidden; tag surronding a
 form 
 that automatically submits back to the servlet. The servlet can then 
 check if the attribute is still there and if not, you know sessions
 are 
 disabled.
 
 -Mike Fowler
 I could be a genius if I just put my mind to it, and I,
 I could do anything, if only I could get 'round to it
 
 
 Ben Bookey wrote:
  Dear List,
  
  I would like to check if a client has cookies/sessions enabled in
 the start
  page of my webapp. whats the best way of doing this?
  
  regards
  
  Ben
  
  
 
 -
  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 - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



RE: Determination if a client has sessions enabled or not.

2004-06-25 Thread Woodchuck
it used to be more common to have warnings on websites that say cookies
are required.  nowadays, these warnings are not there anymore and it's
assumed cookies will be available.  and if cookies are disabled by the
user, and the website requires it, the user will be promptly halted.

i'm coming from a web developer perspective, so i guess what i'm
getting at is that it seems to me something is wrong when a website has
to cater to non-cookie-enabled browsers/users.  this argument can also
be extended to other things like browser make/version, javascript
(on/off), etc. etc.

is it really harsh to say no cookies = no website nowadays?  in my
humble opinion, this is no.



--- Robert Harper [EMAIL PROTECTED] wrote:
 It may also be asked if it is bad practice to require the user to
 enable
 pop-ups. I would think not as many businesses force internal users to
 disable
 cookies and pop-ups. If your application requires either then it is
 not always
 useable. Food for thought.
 
 Robert S. Harper
 801.265.8800 ex. 255
 
  -Original Message-
  From: Woodchuck [mailto:[EMAIL PROTECTED]
  Sent: Friday, June 25, 2004 9:29 AM
  To: Tomcat Users List
  Subject: Re: Determination if a client has sessions enabled or not.
  
  hi,
  
  this begs the question, is it bad practice to require users to
 enable
  cookies?
  
  
  --- Mike Fowler [EMAIL PROTECTED] wrote:
   Ben,
  
   I don't know of any way of checking (someone correct me if I'm
   wrong!).
   What I have done is to attach an attribute to the session,
 redirect
   to a
 [snip]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



RE: Tomcat 5 Session Replication and ServletContext

2004-06-21 Thread Woodchuck
is it possible to set it up so that each user's session always go to
the same app server in a multi app server scenario?  or is this not
possible and/or a bad idea?


--- Dale, Matt [EMAIL PROTECTED] wrote:
 
 Yes the only data replicated is the session information. 
 
 Anything in the application ServletContext will not be copied between
 servers.
 
 Ta
 Matt
 
 -Original Message-
 From: Lukas Bradley [mailto:[EMAIL PROTECTED]
 Sent: 21 June 2004 16:09
 To: [EMAIL PROTECTED]
 Subject: Tomcat 5 Session Replication and ServletContext
 
 
 I'm looking for a clarification on the functionality of the Session
 Replication within Tomcat 5.  
 
  
 
 Is the only data replicated across servers that which is placed in
 the
 HttpSession?  In other words, is any data placed within the
 ServletContext
 (application layer) object replicated?
 
  
 
 Thanks for any help.
 
  
 
 Lukas
 
  Any opinions expressed in this E-mail may be those of the
individual
 and not necessarily the company. This E-mail and any files
 transmitted with it are confidential and solely for the use of the
 intended recipient. If you are not the intended recipient or the
 person responsible for delivering to the intended recipient, be
 advised that you have received this E-mail in error and that any use
 or copying is strictly prohibited. If you have received this E-mail
 in error please notify the beCogent postmaster at
 [EMAIL PROTECTED]
 Unless expressly stated, opinions in this email are those of the
 individual sender and not beCogent Ltd. You must take full
 responsibility for virus checking this email and any attachments.
 Please note that the content of this email or any of its attachments
 may contain data that falls within the scope of the Data Protection
 Acts and that you must ensure that any handling or processing of such
 data by you is fully compliant with the terms and provisions of the
 Data Protection Act 1984 and 1998.
 
 
 
-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



JSP compiled class file -- size limitation?

2004-06-16 Thread Woodchuck
just curious,

is there any issues relating to how big in size a JSP
can be in Tomcat?

i remember working with Websphere, JSPs have a
limitation of 64k.  that is, if the compiled .class
file for a JSP exceeds 64k, the server will return an
ugly run-time error whenever someone tries to access
it.

also, WebSphere had a JSP name length limitation as
well.  if the name of the JSP file was over a certain
number of characters, it would also cause a run-time
error. (can't remember if this included the entire
context path or not.. ie. if you have a deep JSP
folder structure)  does Tomcat have issues with name
lengths as well?

thanks in advance




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



jsp_filename_jsp.class files

2004-06-16 Thread Woodchuck
i noticed that Tomcat (4.1.24) only works with JSPs
that were compiled into the package org.apache.jsp

even if my JSP folder structure is many levels deep,
it doesn't matter, all JSPs in each level must be
compiled into the org.apache.jsp package or else
Tomcat throw errors.  so after pre-compiling, i have
to manually retain my JSP folder structure by placing
the .class files back to the folder that they came
from.

is there an easier way to pre-compile JSPs that exist
in an arbitrary folder structure?  (i'm using ant to
do this with the jspc/javac task combo)

thanks in advance



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



Re: java server mode vs. client mode

2004-06-16 Thread Woodchuck
 
 No one can really believe Java is faster than C or
 C++, because Java is
 itself written in C and C++.

isn't there a hardware JVM implementation?  maybe
running on that, Java  C++

:D




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



Re: Form data validation

2004-06-15 Thread Woodchuck
wrong mailing list to be asking this

--- Keith Hankin [EMAIL PROTECTED] wrote:
 I am trying to do jsp form validation but cannot get
 a solution that works. The problem occurs because my
 jsp files are not in the same directory as my
 Servlets. If I have my ControllerServlet redirect
 the request, all of the jsp files are interpreted
 relative to the directory of the ControllerServlet,
 however if I forward the request, I lose the
 original request data and cannot redisplay the data
 that the user entered. Is there some way that I can
 avoid these two problems?
 
 




__
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

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



Re: Server Specs

2004-06-15 Thread Woodchuck
--- Carl Olivier [EMAIL PROTECTED] wrote:
 Greetings.
 
 I am hoping someone can give me a helping hand with
 my query.
 
 I a webserver running:
 
 Windows 2000 Server
 Tomcat 5.0.25
 Apache 2.0.49
 Mod_jk2
 J2SDK 1.4.2_01
 
 I have NOT tried to use the fork compile setting in
 Tomcat (read somewhere
 that this is not good in production?)
 

you definitely should try forking.  the Jasper 2 JSP
Engine (since Tomcat 4.1) is now using Ant to compile
JSP pages, and it is documented that there is a known
memory leak in the internal javac compiler used by
Ant.  set fork to true and force ant to use a separate
JVM to build.



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



Re: Please introduce a good Tomcat debug tool

2004-06-15 Thread Woodchuck
--- Daxin Zuo [EMAIL PROTECTED] wrote:
 I currently run Tomcat 4.1.9 (without apache) to run
 JSP and ervlet. How to
 debug JSP and Servelt in TOMCAT?
 Thanks.
 

i use the eclipse IDE available at:

http://www.eclipse.org

it's great and it's FREE!!!



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



RE: Memory Settings On Tomcat

2004-06-14 Thread Woodchuck
Runtime.getRuntime().maxMemory() will get you the
maximum amount of memory for your jvm.


--- Dale, Matt [EMAIL PROTECTED] wrote:
 Hi,
 
 I downloaded this and it seems to have potential.
 Unfortunately I cant work out where to get the heap
 sizing information which is one of the more
 important things to us. Anyway used it and can point
 me in the right direction.
 
 Ta
 Matt





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

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



Re: Accessing Array element while iterating through Map

2004-06-14 Thread Woodchuck

--- Geoff Simonds [EMAIL PROTECTED] wrote:

 works fine.  What am I 
 doing wrong? 
 
 Thanks for any help.
 
 Geoff 
 

your question has nothing to do with Tomcat.  you
should post to a Struts forum..




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

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



tomcat 4.1.x jsp pre-compilation

2004-06-11 Thread Woodchuck
hi,

when i pre-compile my jsps, i found that Tomcat only
likes them when they are compiled with the package
org.apache.jsp.

if i change the generated *_jsp.java files (before
compiling) to a different package that is anything but
org.apache.jsp, Tomcat fails to load them when I try
to access the page.

Tomcat (4.1.x) seems to have hard-coded logic inside
to only work with jsp class files packaged under
org.apache.jsp.

has anyone found a workaround for this, so that we are
not restricted to compile all jsp's to the package
org.apache.jsp?

is this a setting/configuration we can tweak on
Tomcat?

thanks in advance!!




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

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



Re: tomcat 4.1.x jsp pre-compilation

2004-06-11 Thread Woodchuck
hi Jason,

thx a lot for your reply.  i am, unfortunately, stuck
with Tomcat 4.1.x.

i don't have any problems getting jspc to generate
.java files for jsps that exist in a hierarchical
(sp?) tree.  for instance, my jsps are scattered under
my web root folder, in sub folders, etc..

my problem is that Tomcat 4.1.x only seems to work
with .class files that were compiled into the
org.apache.jsp package.  as a result, i have to do
the following round-about deployment:

1)  invoke jspc to generate .java files for all .jsps
2)  modify each resulting .java file to have the
following first line:  package org.apache.jsp;
3)  invoke javac to compile the .java into .class
4)  place .class files into same hierarchy as the
original .jsps

if i were using Tomcat 5 like you were i would only
have to do steps 1 and 3 above and i'm done.

the caveat here is that each .jsp is assumed to have a
unique name.  if not, javac will let you know with a
compile-time error, and you will have to compile
multiple times (each time a subset of unique .java
classes that are outputted to its own folder, then
place every .class file back into respective hierarchy
after all compilation is done).  this is what i'm
seeking to avoid doing.

anyhow, i appreciate your help, but i'm not sure if
it's applicable to my situation.  the jspc compiler
i'm using will automatically take the jsp's location
into account and compute the corresponding package
suffix.


--- Jason Palmatier [EMAIL PROTECTED] wrote:
 Hi Woodchuck,
 
 I just fought the exact same thing for two weeks and
 this is what I discovered:
 
 If you want to precompile all the JSPs with a
 package
 name other than org.apache.jsp you have to use the
 -p
 option and give it a new package name.  This doesn't
 really work, as you may have already discovered,
 especially if you want the subdirectories the JSPs
 exist under to be included in the package name.  To
 get the sub-dirs included I wrote a script to find
 all
 the JSPs under my app's root dir then walked through
 the list and submitted a jspc compile for each of
 the
 JSPs in the list.  I computed the package name based
 on the sub-directory the JSP was found in.  Here's
 the
 main loop I used for my script:
 
 # Begin Code -
 
 ALL_JSP_FILES=`find ${WEBAPP_ROOT_DIR}/${PRODUCT}/*
 -name '*.jsp'`
 for i in ${ALL_JSP_FILES}
 do
echo Compiling $i
 
JSP_FILE=${i##*/}
#echo JSP_FILE = $JSP_FILE
   
# JSP_DIR is just an intermediate directory that
# doesn't need to be passed on to the next 
# script (i.e. doesn't need to be exported).
JSP_DIR=${i%/*}
#echo JSP_DIR = $JSP_DIR
 
PRODUCT_SUB_DIR=${JSP_DIR#*/${PRODUCT}}
#echo PRODUCT_SUB_DIR = $PRODUCT_SUB_DIR
  
# We have to source this script in order 
# for the exported variables to still be
# valid. (i.e. put the . in front of it)
 
. compile_single_jsp.sh
 
 done 
 
 # End Code 
 
 The compile_single_jsp.sh converts the
 PRODUCT_SUB_DIR
 variable to a dotted package name suffix using sed:
 
 PACKAGE_SUFFIX=`echo $PRODUCT_SUB_DIR | sed -e
 's/\//./g'`
 
 and then calls jspc.sh to do the actual compile:
 
 jspc.sh \
 -v4 \
 -l \
 -compile \
 -d

${TOMCAT_ROOT_DIR}/webapps/${PRODUCT}/WEB-INF/classes
 \
 -p com.mycompany${PACKAGE_SUFFIX} \
 -webinc

${TOMCAT_ROOT_DIR}/webapps/${PRODUCT}${PRODUCT_SUB_DIR}/${JSP_FILE}.xml
 \

${TOMCAT_ROOT_DIR}/webapps/${PRODUCT}${PRODUCT_SUB_DIR}/${JSP_FILE}
 
 I run this from the /bin directory in my tomcat
 root. 
 The downside to this is that you then have to merge
 all of the individual web.xml fragments produced by
 each compile into the existing web.xml (or a brand
 new
 one you create).  I wrote another script and then a
 C++ program to do this.
 
 The only way around this is to use Tomcat 5.x to do
 the compile.  It will automatically compute the
 package name with subdirs though I still had to
 submit
 each by hand to get it to compile beyond my root
 directory (I'm still looking into this).  Of course
 you can't run these compiled JSPs under anything but
 Tomcat 5.x so it's kind of useless if you are stuck
 back at 4.x.  I had to move to 5.x because of a bug
 in
 the 4.x jspc compiler that produced 0 length .java
 files on an compile error but didn't tell you what
 the
 error was.  So currently I use jspc from Tomcat
 5.0.25
 but still merge all the xml fragments after the
 compiles complete.  It sucks, but the code is
 already
 written so I'm sticking with it until I have time to
 find another way.
 
 Hope that helps,
 Jason
 
 --- Woodchuck [EMAIL PROTECTED] wrote:
  hi,
  
  when i pre-compile my jsps, i found that Tomcat
 only
  likes them when they are compiled with the package
  org.apache.jsp.
  
  if i change the generated *_jsp.java files (before
  compiling) to a different package that is anything
  but
  org.apache.jsp, Tomcat fails to load them when I
  try
  to access the page.
  
  Tomcat (4.1.x) seems to have hard