Re: [Vote] (was Re: Top Level Project? Time for Top Level Lists?)

2005-09-13 Thread Ian Darwin



Bugs
 [X]  forward to [EMAIL PROTECTED]
 [ ]  forward to [EMAIL PROTECTED]

Commits
  [X]  forward to [EMAIL PROTECTED]
  [ ]  forward to [EMAIL PROTECTED]





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



Re: error launching catalina.sh

2005-08-25 Thread Ian Darwin

Hugo Osorio wrote:


Hello everybody

i am running Version: Apache Tomcat/5.0.29 on FreeBSD

i have been working with apache forrest, but i haven't do anything to Tomcat 
configuration


all of a sudden i've got this message, and catalina.sh begins to start, but 
it launch error messages, i cannot see anything at localhost:8080



this is the message, any help?: thank you

zulu# ./catalina.sh run 
[1] 1530
zulu# Using CATALINA_BASE: /usr/local/jakarta-tomcat5.0
Using CATALINA_HOME: /usr/local/jakarta-tomcat5.0
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat5.0/temp
Using JAVA_HOME: /usr/local/jdk1.4.2
Aug 25, 2005 4:48:03 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 458 column 9: The element type Context 
must be terminated by the matching end-tag /Context.
org.xml.sax.SAXParseException: The element type Context must be terminated 
by the matching end-tag /Context.
 

This is not a developer's question. We did NOT change anything on your 
site to all of a sudden make it stop working. Read the part of the 
error mesage that is quoted above and you will be able to solve the 
problem yourself.  If you still can't get it, please try the user's list.


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



Re: I can't access the tomcat managment console

2005-07-15 Thread Ian Darwin
   I just installed tomcat 5.5.9. However, I can't
   login
   in to the manager functionality even if I set the
   the
   tomcate-users.xml right. The error message is :
   
   HTTP Status 403 - Access to the requested resource
   has
   been denied

That message contradicts your assertion that you set the
tomcat-users.xml correctly. The filename is wrong in
your text, and you didn't give a complete description of
your problem. Please take your question to the tomcat-users
mailing list or try using a good search engine to find how
others have resolved their errors.

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



Re: Binding a servlet with a name to global context?

2005-06-16 Thread Ian Darwin

Jaran Nilsen wrote:


Hello, I am creating a servlet which I want to be registered by a
name, like JNDI, so that other applications running in Tomcat can look
up this servlet and call methods directly on it in addition to
accessing it via HTTP requests.
 


I don't think that's wise, and it probably violates the spec and/or can't
be made to work. What, for example, do you expect to happen when
one of those other apps calls a method that (directly or indirectly) invokes
getServletContext()?  Where are the other applications going to get
the HttpServletRequest and HttpServletResponse objects? A servlet is 
designed
to run in a given environment - a servlet container. If you want general 
RPC, why

not just use RMI?

Or was your statement ambiguous and you just want other apps to look up the
URL in JNDI, then invoke it via HTTP (e.g., via a java.net.URL object).


I have no problems registering it in the Context where the application
is running, but I would like to register it outside of this context,
more globally, so that the other applications can look it up. I try to
register it in the java:comp/env and java:comp contexts but I get the
message that The Context is read only.
 



See the docs for setting up Factories, as is done for JDBC and Mail Session
objects.

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



Re: What to do now

2005-05-28 Thread Ian Darwin
On Sat, May 28, 2005 at 04:43:45PM +0200, Remy Maucherat wrote:
 
 I'm assuming that we'll need to do a new 'ci' on all of what once was 
 jakarta-tomcat*, but did jakarta-servletapi* and jakarta-watchdog* 
 follow us?

Does it make more sense to ci all over again, or to move or copy the
existing repository and thereby preserve the history? (As well as being
a lot faster).  If it's move or copy, move is also faster :-) and
prevents ppl from getting out from the stale repo...

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



Re: Tomcat Connectors!! Help needed!!

2005-04-07 Thread Ian Darwin
Do not use as many exclamation marks than words.
Do not have as many words in your disclaimer as your query.
Your technical question is addressed below...
Sharma, Meenakshi wrote:
Hello Everybody,
I'm developing an application which is a java servlet, deployed on tomcat
5.5
Now, I want my application to take raw data from the client through
sockets,  for that it has to make a socket connection and listen that
port for data.
I've heard that we can create Connectors in Tomcat, which can listen
to any protocol type of request i.e. Http, Telnet or any of
application protocol.
In my case I need a Connector which can listen to a socket for raw
data type requests...
 

Writing your own connector is probably a big undertaking, and not for 
the faint of heart.

Why not just write a standalone server, if you're not using HTTP?
Or, even simpler, why not have the client use POST and read the body as an
input stream in the servlet? This does allow you to send raw data from a
client to a Servlet.  Consult any good book on Servlet Programming for how
to do it.  This way you get all the benefits of Tomcat without having to 
rewrite it.

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


Re: [PATCH] virtual_hosting.txt

2002-10-31 Thread Ian Darwin
Robert, thank you for sending this document!

I'd just like to clarify the copyright on this document before reformatting it into 
our XML tags:
Do we have permission to include the virtual hosting with tomcat and apache
document that you submitted to Bill Barker, into the Tomcat distribution, and to
place it under the standard Apache Software Foundation License? You will be
credited as the original author, of course.

Thanks very much!

Ian Darwin
[EMAIL PROTECTED]

On October 31, 2002 02:06 am, Bill Barker wrote:
 I'm pretty busy just at the moment, so I'm forwarding this to the list.  I
 does a pretty good job of addressing a lot of the newbie questions that
 come up over and over on tomcat-user.

 - Original Message -
 From: Robert L Sowders [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 30, 2002 1:03 AM
 Subject: virtual_hosting.txt

  as promised


--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




Re: Using JIKES?

2002-10-30 Thread Ian Darwin
 I am wanting to run JIKES as the JSP compiler so I have changed out the
 parameters in the config files and followed the directions in the
 documentation.  I still have a sneaking suspicion that JIKES is not
 compiling my JSP files.  I believe that I should be seeing the jikes.exe
 appear as a process in the task manager console, but I am not.

 Is there a better way that I can check to see if JIKES is compiling my
 JSP's?  Has anyone else had problems converting from ANT to JIKES?

It won't show in task mgr since it only runs for a bit of a second.

Put in a JSP with a syntax error, and look at the message formats.
Jikes errors look different from javac.

--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




Re: JSP Compile Errors

2002-10-27 Thread Ian Darwin
 I need to make sure that these Java libraries are included when my JSP's
 are compiled:

 java.io.*
 java.util.*

 I am migrating from another application server that added these to my JSP's
 and now will have the daunting task of manually importing these on every
 JSP that we have.

1) What kind of app server would import those for you? You need to file a big, loud
bug report, cuz that violates the spec! Only java.lang is imported for free in Java.

2) Write a Shell or Perl script, or a Java program, or use vi. How many JSPs are you 
talking about anyway?



--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




Re: [VOTE] tomcat-commiters list

2002-10-15 Thread Ian Darwin

  The list will be closed to commiters only. The main purpose
  will be discussions of security and other special issues.
  This should avoid [Cc] threads.
 
  The main target should be active commiters - so it should
  start empty.
 
  This is a majority vote.
 
  [X ] I agree with the proposal
  [ ] I don't agree with the proposal


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




Re: Form Based Authentication, getting login and password

2002-10-11 Thread Ian Darwin

On October 11, 2002 01:18 pm, Craig R. McClanahan wrote:
 To implement anything like that, you'd need to modify Tomcat's
 authenticator classes (and, of course, become container dependent).

Or, use servlet-managed security, that is, break down and write your own
authentication. Not for the faint of heart, but not terribly involved - the devil
is in the details.

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




Re: [Proposal] Security Audit

2002-10-09 Thread Ian Darwin

 I'm looking to do a Security Audit on the current Tomcat 5.0 codebase. I
 would like to collect as more as information as where you think I should
 look at (code, security hole, etc.). I'm planning to do the audit using
 the default SecurityManager. Rigth now, I have started looking at:

Although their goals and technology are different (an OS written in C),
I believe anyone interested in helping might learn a lot by looking at OpenBSD (a 
free UNIX-like OS whose entire code base has been subjected to a careful (and
ongoing!) security audit). They have some papers online;
go to www.openbsd.org and look at press.html (which has links to various
papers). Look for auditing.

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




Re: [5.0] [VOTE] Remove deprecated and unsupported components

2002-10-09 Thread Ian Darwin

 ballot
 [X ] Remove deprecated org.apache.catalina.connector components from the
 j-t-catalina module
 [ ] Leave them in
 /ballot

As long as it won't break builds of 4.1 :-)

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




Re: [VOTE] [5.0] Milestones

2002-09-30 Thread Ian Darwin

  Now that the first stable releases of Tomcat 4.1 are out (and according
  to reports, of good overall quality), it could be appropriate to start
  releasing 5.0.x milestones.
  It should be pointed out that 5.0.x is still far from being feature
  complete (esp the configuration code needs to be unified if possible,
  and some optimizations are needed), so the milestones should be
  considered alpha or pre alpha until further notice.
 
  ballot
  [ ] +1 Yes, start releasing milestones
  [ ] -1 No, because:

+1


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




Re: [VOTE] [4.0.5] [4.1.12] Security releases

2002-09-24 Thread Ian Darwin

On September 23, 2002 10:04 am, Remy Maucherat wrote:
 A security vulnerability which affects all releases of Tomcat 4.x has
 been discovered.

 It is proposed that new Tomcat 4.0.x and 4.1.x releases are made, at
 which time the exploit will be publicized. The security advisory will
 also include an easy workaround to protect existing Tomcat
 installations, so upgrading is not a necessity.

 Tomcat 4.0.5 release
 

 Tomcat 4.0.5 is virtually indentical to 4.0.4, with the exception of:
 - a bugfix to URL parsing
 - the security fix

 ballot
 +1 [X ] Yes, I approve this release
 -1 [ ] No, because:

 /ballot

 Tomcat 4.1.12 Stable release
 

 Tomcat 4.1.12 includes all the changes made to Tomcat 4.1.10 since its
 release. Tomcat 4.1.11, on which the release is based, has recieved
 positive feedback so far. The list of changes is available in the
 release notes.
 It is proposed that it recieves a Stable rating. The existing 4.1.10
 release will be retired.

 ballot
 +1 [X ] Yes, I approve this release
 -1 [ ] No, because:

 /ballot

 The proposed binaries for 4.0.5 and 4.1.12 are available at:
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.5/
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/

 4.0.5 was packaged on my new computer (which I have been using for all
 the 4.1.x releases), and may contain unwanted changes over 4.0.4. Please
 let me know if there are problems.

 Remy


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




Duplicate bugs and bugzilla form

2002-09-20 Thread Ian Darwin


 --- Additional Comments From [EMAIL PROTECTED]  2002-09-20 07:03 ---
 *** Bug 12839 has been marked as a duplicate of this bug. ***

Seem to be a fair number of duplicates lately.
Can whoever maintains our bugzilla please make the wording stronger on the 
bugzilla page (query.cgi), to check for already-filed bugs before creating a new one?
Not just on the Bug Guidance page, because we know they won't read that :-)

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




Re: [ADDON] Jk2 uriMap using pcre (someone willing to check)

2002-09-18 Thread Ian Darwin

  The reason for using pcre was simple (?). It is well tested library, and
  our uri mapping code is basically tries to be something like that on the
  lower scale, not to mention the  increased power.

It's too bad there's not a C mapping into jakarta-oro, so we could use our own
instead of depending on something with such a curious blend of license terms :-)



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




Re: 4.1.10 tarball is borked.

2002-09-18 Thread Ian Darwin

On September 17, 2002 09:20 pm, Jon Scott Stevens wrote:
  Er, you mean perhaps that BSD tar doesn't yet support the
  non-standard GNU extensions?

 Like being able to support simple things like directory paths longer than
 255 characters? If it isn't a standard, it should be!

Err, I think you mean  100, up to 255 chars.  The Posix standard supports this too,
but in a different way (of course). GNU claims they were there first, but I know POSIX
used to have stuff in committee for a long time, so it's hard to know who was really
first. In the article you point out:

 Interesting history on the issue...

 http://www.gnu.org/manual/tar/html_node/tar_117.html#SEC112

They admit that they aren't POSIX conformant, and claim that they will be, and will
do it in a different way than GNUtar does at present. Do you know if this article
is up to date? Well I guess it must be, it's on gnu.org.  

Obviously it would be good if all tars could read each others' archives.

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




Re: 4.1.10 tarball is borked.

2002-09-17 Thread Ian Darwin

On Mon, Sep 16, 2002 at 07:22:43PM -0700, Jon Scott Stevens wrote:
 
 Pier, you need to use GNU tar. *BSD* tar sucks balls.

Er, you mean perhaps that BSD tar doesn't yet support the 
non-standard GNU extensions? 

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




Re: SSL Port for Tomcat

2002-09-06 Thread Ian Darwin

On September 6, 2002 05:57 am, [EMAIL PROTECTED] wrote:
 How can [I] configure TomCat to accept HTTP and HTTPS traffic at the same
 port (80)? Is it necessary that it should be in two different ports?

[This level of discussion belongs on tomcat-users, not here].

Think of a port number as similar to a telephone extension number within
a company. What happens if two people answer the same phone line
at the same time? They both say Hello, [Robin,Joe] at the same time.
Chaos, babel, ensues. Similarly, only one thread - either
an HTTP connector **OR** an HTTPS connector can answer and read
from a given port number. Not both.

There is, however, a facility for Tomcat to send a redirect from the HTTP
port to the HTTPS port; see the comments about the redirect attribute
in the distributed server.xml

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




Re: VOTE: Restoring Tomcat examples: Which workspace? NEW?

2002-08-20 Thread Ian Darwin

On August 20, 2002 11:42 am, you wrote:
 The examples are portable and independent of Tomcat, so I want them to
 go into jakarta-servletapi-5. I posted some time ago about that, and I
 was planning to do it.

Maybe a separate cvs repo? jakarta-servlet-examples?

Before I started getting involved I never bothered to download
the servlet-api download because I knew the container would
provide something I could compile against. Maybe they would
not be as visible if packaged inside servlet-api?

At the very least it should be built as a separate self-contained 
examples.war file that can just be auto-deployed in any compliant container.

Ian

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




Re: HttpSession and CTRL-N / File new window

2002-08-12 Thread Ian Darwin

On August 12, 2002 08:32 am, you wrote:
 And how do I force all the users of my application to do this?

Use Netscape :-)  And please move usage questions to [EMAIL PROTECTED]

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




Re: how to do auto update/reload of a class?

2002-07-29 Thread Ian Darwin

On July 28, 2002 10:32 pm, you wrote:
 Does anyone know, how to do auto update of classes
 into the JVM? I
 tried to write my own custom class loader, and loaded
 all the classes
 through it, however if I put new updated class, it
 won't reload the
 class again. Have anyone tried this before? Help is
 very much
 appreciated.

This better asked on an advanced-java list; not tomcat specific.

For all the cleverness of Java's dynamic loading mechanism (ClassLoader,
Class.forName, newInstance(), etc.), there is no published API for unloading or 
reloading. 
They just didn't think of it in time, perhaps.

What I think Tomcat and others do is basically to manage the class loader for each 
Context
(which has to be separate from the CL for each other Context for configuration
and security reasons anyway) in such a way that you can delete
it (un-reference it) and assign a new one and reload the classes
for the given Context.

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




Re: ResourceLink does not work inside DefaultContext

2002-07-18 Thread Ian Darwin

This is a tomcat-users question, not a tomcat-dev question.

On July 18, 2002 05:25 am, [EMAIL PROTECTED] wrote:
 I have set up a global JDBC resource in the GlobalNamingResources
 section.

 I have a number of virtual hosts and have found that if the ResourceLink
 is added inside Context the resource is available. However, if it is
 added inside DefaultContext it is not.

 Not being an expert could someone please confirm this is a bug?

DefaultContext is poorly named. It does NOT provide a default for all Contexts,
only for Contexts that are auto-deployed.

See the section on Automatic deployment in the config/host.html document.

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




Re: ResourceLink does not work inside DefaultContext

2002-07-18 Thread Ian Darwin

On July 18, 2002 12:11 pm, you wrote:
 I am already using the default standard host that sets autodeploy to true
 by default.

It's not a question of autodeploy=true or not. Everything I know says that
DefaultContext's values only apply to Contexts that are auto-deployed, that is,
placed in webapp (actually the host's appBase) WITHOUT being listed as a Context
in the server.xml

 Also, I have tried adding the resource into DefaultContext directly and
 that works fine - so how would you explain that?

Hmmm, I would find that hard to explain. Next question please. :-)

Do the contexts you want the resource applied to have Context entries
in server.xml?

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




[Patch] webapps/examples/WEB-INF/web.xml

2002-07-17 Thread Ian Darwin

This patch provides an obvious display-name and description
for the nice new HTMLManager and Admin webapps.

Ian

Index: webapps/examples/WEB-INF/web.xml
===
RCS file: /home/cvspublic/jakarta-tomcat-4.0/webapps/examples/WEB-INF/web.xml,v
retrieving revision 1.21
diff -u -r1.21 web.xml
--- webapps/examples/WEB-INF/web.xml	4 Apr 2002 20:30:34 -	1.21
+++ webapps/examples/WEB-INF/web.xml	17 Jul 2002 19:51:58 -
@@ -6,6 +6,13 @@
 
 web-app
 
+	display-nameTomcat Servlet and JSP Examples/display-name
+	description
+		This web-app provides numerous examples of Servlet and 
+		Java Server Pages techniques; source code is included
+		for all examples.
+	/description
+
 !-- Define servlet-mapped and path-mapped example filters --
 filter
 filter-nameServlet Mapped Filter/filter-name


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


[Patch] new file: webapps/tomcat-docs/config/listener.xml

2002-07-17 Thread Ian Darwin

The Listener (o.a.c.LifecycleListener) can be imbedded in various containers.
It is mentioned in the engine.xml, host.xml, context.xml and defaultcontext.xml,
and is actually used in the current conf/server.xml, but there is not a page
about it. This one is a bit sketchy but at least provides some coverage.

Ian


?xml version=1.0?
!DOCTYPE document [
  !ENTITY project SYSTEM project.xml
]
document

  project;

  properties
author email=[EMAIL PROTECTED]Ian F. Darwin/author
titleThe Listener Component/title
  /properties

body


section name=Introduction

  pA strongListener/strong element represents a life cycle listener
  for use within a container; it will be notified of lifecycle events,
  and may be used for management or other purposes./p

/section


section name=Attributes

  subsection name=Common Attributes

  pAll implementations of strongListener/strong
  support the following attributes:/p

  attributes
attribute name=className required=true
  pJava class name of the implementation to use.  This class must
  implement the codeorg.apache.catalina.LifeCycleListener/code 
  interface./p
/attribute
attribute name=debug required=false
  pThe level of debugging output. The value zero means none;
  postitive numbers increase the verbosity./p
/attribute
  /attributes

  /subsection

  subsection name=Standard Implementation

  pThe standard implementation of strongLifeCycleListener/strong is
  provided by two MBean classes:
  strongorg.apache.catalina.mbeans.ServerLifecycleListener/strong
  and
  strongorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener/strong.
  These support the following additional attributes (in addition to the
  common attributes listed above):/p

  attributes/

  /subsection

/section


section name=Nested Components

  pNone./p

/section


section name=Special Features

  pThere are no special features associated with a strongListener/strong.
  /p

/section


/body

/document


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


[Patch] webapps/admin/admin.xml - good place to advertise host limiting

2002-07-12 Thread Ian Darwin

The auto-deploy Context frag here is a good place to advertise host limiting
using the RemoteAddress valve.

Ian


--- webapps/admin/admin.xml.orig	Fri Jul 12 09:30:15 2002
+++ webapps/admin/admin.xml	Fri Jul 12 09:32:36 2002
@@ -10,6 +10,13 @@
 Context path=/admin docBase=../server/webapps/admin
 debug=0 privileged=true
 
+  !-- Uncomment this Valve to limit access to the Admin app to localhost
+   for obvious security reasons. Allow may be a comma-separated list of
+   hosts (or even regular expressions).
+  Valve className=org.apache.catalina.valves.RemoteAddrValve
+allow=127.0.0.1/
+  --
+
   Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_admin_log. suffix=.txt
   timestamp=true/


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


[Patch] jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java

2002-07-09 Thread Ian Darwin

Couldn't figure out why it sometimes called ctxt.getOptions() and other times
used the field options in which it had saved that value in the constructor.
Replaced all calls outside the constructor with the field, and it still works
for the simple cases I tested. Not a lot of overhead saved, but every bit helps.

Also fixed one tab-spaces.

Ian


--- jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java.orig	Tue Jul  9 11:21:21 2002
+++ jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java	Tue Jul  9 11:21:55 2002
@@ -133,7 +133,7 @@
 public Compiler(JspCompilationContext ctxt, JspServletWrapper jsw) {
 this.jsw = jsw;
 this.ctxt = ctxt;
-	this.errDispatcher = new ErrorDispatcher();
+this.errDispatcher = new ErrorDispatcher();
 this.options = ctxt.getOptions();
 }
 
@@ -204,7 +204,7 @@
 	} catch (UnsupportedEncodingException ex) {
 	// Try to get the java encoding from the javaEncoding
 	// init parameter for JspServlet.
-	javaEncoding = ctxt.getOptions().getJavaEncoding();
+	javaEncoding = options.getJavaEncoding();
 	if (javaEncoding != null) {
 		try {
 		osw = new OutputStreamWriter
@@ -276,9 +276,9 @@
 javac.setEncoding(javaEncoding);
 javac.setClasspath(path);
 //javac.setDestdir(new File(options.getScratchDir().getAbsolutePath()));
-javac.setDebug(ctxt.getOptions().getClassDebugInfo());
+javac.setDebug(options.getClassDebugInfo());
 javac.setSrcdir(srcPath);
-javac.setOptimize(! ctxt.getOptions().getClassDebugInfo() );
+javac.setOptimize(! options.getClassDebugInfo() );
 
 // Set the Java compiler to use
 if (options.getCompiler() != null) {


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


[Patch] webapps/tomcat-docs/config/connectors.html minor revision

2002-06-26 Thread Ian Darwin

This patch enhances the wording in a few places, corrects a few spelling and
grammatical issues, etc. - a minor overhaul of J-F's major overhaul of my
minor document :-)

Ian

--- webapps/tomcat-docs/config/connectors.xml.orig	Sun Jun 23 14:03:13 2002
+++ webapps/tomcat-docs/config/connectors.xml	Sun Jun 23 14:08:52 2002
@@ -17,8 +17,9 @@
  
 section name=Introduction
 p
-JTC means Jakarta-Tomcat-Connectors. jakarta-tomcat-connectors is the
-repository of the Tomcat connectors sources.
+JTC stands for Jakarta-Tomcat-Connectors. The name comes from
+jakarta-tomcat-connectors, the
+CVS repository of the Tomcat connectors sources.
 The connectors are released together with Tomcat. For example you can find
 the connectors sources in
 http://jakarta.apache.org/builds/jakarta-tomcat-4.x/release/v4.x.y/src/
@@ -26,17 +27,18 @@
 jakarta-tomcat-connectors-4.x.y-src.tar.gz
 /p
 p
-There are two different types of connectors. Connectors that allow browsers to
-connect directly to the Tomcat and connectors that do it through a Web Server.
+There are two different types of connectors; connectors that allow browsers to
+connect directly to the Tomcat and those connect from a Web Server.
 /p
 p
-The connectors allowing direct connections are in the binary of Tomcat.
+The connectors allowing direct connections are included in the binary of Tomcat.
 They are jar files.
 /p
 p
-The connectors used with a Web Server are made of 2 components. One written
-in Java and the other written in C. The Java part is made of jar files are
-inclosed in the Tomcat binaries. 
+The connectors used with a Web Server are made of 2 components, one written
+in Java and the other written in C. The Java part is made of jar files that are
+enclosed in the Tomcat binaries.  The C part normally needs to be built using
+some native-dependant compilation (e.g., apxs for Apache, Visual C++ for IIS).
 /p
 p
 The binary builds of connectors are available in
@@ -79,7 +81,7 @@
 tr
 	tdmod_jserv/tdtdajp1.2/td
 	tdAjp11/td
-	tdObsolete Read more at 
+	tdObsolete. Read more at 
 a href=http://java.apache.org/jserv/index.html; JServ/a/td
 /tr
 
@@ -94,7 +96,7 @@
 tr
 	tdmod_jk2/tdtdajp1.3/ajp1.4/td
 	tdCoyoteConnector+JkCoyoteHandler/td
-	tdCurrent developpements. Enabled by default in 4.1; works in 4.0.
+	tdCurrent development. Enabled by default in 4.1; works in 4.0.
 	mod_jk2 supports in-process JVM and load balancing.
 See a href=jk2.htmlCoyote JK 2/a
 /td
@@ -113,12 +115,13 @@
 /section
 section name=Why a Tomcat connector with a native Web Server?
 p
-A Web Server can host different applications written using PERL, PHP, C or 
-other language. If one application is written in Java using the Servlet 
-API a connector is need to route the requests from the Web Server to the
-Servlet Engine. In the case a Web Server specific connector is needed.
-Most of the Web Servers allow to load dynamic extentions (DLL). Some of these
-extentions are available in the binary builds of connectors.
+A native Web Server (such as Apache httpd or Microsoft IIS) can host 
+multiple applications written using PERL, PHP, C or 
+other languages on a given platform. If an application is written in Java using the Servlet 
+API, a connector is needed to route the requests from the Web Server to the
+Servlet Engine. In this case a Web Server-specific connector is needed.
+Most of the Web Servers allow loading dynamic extentions (DLL). Some of these
+extensions are available in the binary builds of connectors.
 /p
 
 /section


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


Re: jasper2: @page buffer syntax

2002-06-12 Thread Ian Darwin

On June 11, 2002 10:19 pm, you wrote:
 There are plenty of JSP1.1 pages out there, this will require people to
 rewrite the pages just to add a 'kb' suffix ( which is pretty weird
 by itself, almost everything else uses k, and is redundant - if
 the size can only be specified in kb, there is no reason to require
 the suffix ).

For one thing I don't think a LOT of people actually specify the buffer size
(of course those who DO will jump in to prove me wrong, and those who
don't will remain silent :-)).

For another, memory is getting bigger quickly, and having sizes of things
specified unambiguously - in such a way that it can be understood by
someone who can't quote the spec from memory - is a Good Thing.

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




[PATCH] webapps/{manager,admin}/WEB-INF/web.xml: display-name and description

2002-06-12 Thread Ian Darwin

Now that we can SEE all the contexts' display-names (thanks to Malcolm's
much-improved HTMLServlet), these two webapps should have display-name
elements (so should the examples, but this is a start).



--- webapps/admin/WEB-INF/web.xml.orig	Tue May  7 12:33:44 2002
+++ webapps/admin/WEB-INF/web.xml	Wed Jun 12 20:01:30 2002
@@ -6,6 +6,12 @@
 
 web-app
 
+  display-nameTomcat Administration Application/display-name
+  description
+A full-blown web-based Administration Console
+for the Tomcat Web Server.
+  /description
+
   !-- Action Servlet Configuration --
   servlet
 servlet-nameaction/servlet-name
--- webapps/manager/WEB-INF/web.xml.orig	Wed Jun 12 20:00:07 2002
+++ webapps/manager/WEB-INF/web.xml	Wed Jun 12 20:01:03 2002
@@ -6,6 +6,12 @@
 
 web-app
 
+  display-nameTomcat Manager Application/display-name
+  description
+A simpler web-based application for the Tomcat Web Server;
+	Manager lets you view, load/unload/etc particular web applications.
+  /description
+
   !-- Define the Manager Servlet
Change servlet-class to: org.apache.catalina.servlets.HTMLManagerServlet
to get a Servlet with a more intuitive HTML interface, don't change if you


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


Re: JNDI with a custom factory not working

2002-06-12 Thread Ian Darwin

On June 12, 2002 07:45 am, Arshad Mahmood wrote:
 I am having a problem trying to use a custom factory with JNDI. I get an
 exception froom org.apache.naming.factory.ResourceFactory. I have added
 debug and it appears that my factory parameter is not being picked up
 from the server.xml.

 Can somebody familiar with the naming code point me to the classes I need
 to look at to trace this problem. Alternatively, if somebody can confirm
 that the JNDI-Howto example for a custom beanFactory works correctly in 4.1
 (I have tried it and it doesn't) then I will look at my configuration
 again.

Doesn't work for me either. Inserting a listBindings() call for java:comp/env/bean
reveals nothing bound there.


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




[Patch] tiny past-o in jasper2 Constants.java javadoc

2002-06-07 Thread Ian Darwin

--- jasper2/src/share/org/apache/jasper/Constants.java.orig Fri Jun  7 13:42:00 
2002
+++ jasper2/src/share/org/apache/jasper/Constants.java  Fri Jun  7 13:42:11 2002
@@ -118,7 +118,7 @@
 
 /**
  * FIXME
- * ServletContext attribute for classpath. This is tomcat specific. 
+ * ServletContext attribute for class loader. This is tomcat specific. 
  * Other servlet engines can choose to have this attribute if they 
  * want to have this JSP engine running on them. 
  */

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




patch: NullPointerException in jasper/src/share/org/apache/jasper/compiler/TldLocationsCache.java

2002-06-05 Thread Ian Darwin

After building from today's source, I was getting a nullpointerexception in
jasper/src/share/org/apache/jasper/compiler/TldLocationsCache.java
in method processJars.

While this may be my fault in terms of faulty build or wrong version of some API,
it seems like minimally defensive programming to check this variable for null.
My guess is it might be null if you have a Context that doesn't have a lib
subdirectory under WEB-INF (ie you have WEB-INF/classes but not /lib)?

Index: ./jasper/src/share/org/apache/jasper/compiler/TldLocationsCache.java
===
RCS file: 
/home/cvspublic/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/TldLocationsCache.java,v
retrieving revision 1.10
diff -u -r1.10 TldLocationsCache.java
--- ./jasper/src/share/org/apache/jasper/compiler/TldLocationsCache.java2 Apr 
2002 16:10:39 -   1.10
+++ ./jasper/src/share/org/apache/jasper/compiler/TldLocationsCache.java6 Jun 
+2002 02:05:21 -
@@ -200,6 +200,10 @@
 {
 
 Set libSet = ctxt.getResourcePaths(/WEB-INF/lib);
+if (libSet == null) {
+System.err.println(processJars: ctxt == null);
+return;
+}
 Iterator it = libSet.iterator();
 while (it.hasNext()) {
 String resourcePath = (String) it.next();

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




spelling patch to webapps/tomcat-docs/manager-howto.xml

2002-03-14 Thread Ian Darwin

--- webapps/tomcat-docs/manager-howto.xml.orig  Thu Mar 14 09:15:29 2002
+++ webapps/tomcat-docs/manager-howto.xml   Thu Mar 14 09:15:38 2002
@@ -110,7 +110,7 @@
 which defines the username and password used by this individual to
 log on, and the role names he or she is associated with.  You can
 add the strongmanager/strong role to the comma-delimited
-coderoles/code attriute for one or more existing users, and/or
+coderoles/code attribute for one or more existing users, and/or
 create new users with that assigned role./li
 liemJDBCRealm/em - Your user and role information is stored in
 a database accessed via JDBC.  Add the strongmanager/strong role

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