RE: apache tomcat and ssl

2002-08-09 Thread Ricky Leung

Did you define jk directives in the SSL virtual host section of your apache
config file?  If you want https
to behave exactly like http, but just secure, copy your virtual jk
directives over to the ssl portion.

Also, make sure when you start apache, it doesn't complain about mod_jk
without EAPI support, you
will need that with SSL.

> -Original Message-
> From: Vincent Kerr [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:40 AM
> To: [EMAIL PROTECTED]
> Subject: apache tomcat and ssl
>
>
> I have apache and tomcat working with mod_jk on Windows NT and can
> access my tomcat apps through apache. I have installed ssl support and
> can access apache's htdocs over https. However I cannot access my Tomcat
> webapps over https.
>
> Could someone tell me how to configure apache so that tomcat apps can be
> accessed over https.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: unpacking of WAR

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Paul Phillips wrote:

> Date: Fri, 09 Aug 2002 22:49:00 -0500
> From: Paul Phillips <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: unpacking of WAR
>
> I worked on deploying my first webapp to another server today.  I packaged
> it up as a war, transferred it to the other tomcat server, added the one
> line context element in the server.xml, and restarted.  Nothing - the logs
> said that the webapp that was referenced by the context statement was not
> available or in a readable format.  In fact, the war did not expand into
> the file system.
>
> So, I removed the context element, and restarted.  With the context gone,
> the WAR expanded properly.  Then I added the context back in, and it worked
> fine.
>
> Is this normal?
>

Depends on what you specified for the docBase parameter in the Context
element.  This needs to be the absolute or relative (to
$CATALINA_HOME/webapps) name of the WAR file.

Craig



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Command line jspc throws NPE for page using JSTL

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Kris Schneider wrote:

> Date: Fri, 09 Aug 2002 23:11:48 -0400
> From: Kris Schneider <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Command line jspc throws NPE for page using JSTL
>
> I mucked around with the Jasper source a bit to get some exception info
> dumped:
>
> java.net.MalformedURLException: Path 'WEB-INF/lib/standard.jar' does not
> start with '/'

Have you verified that your application's use of the path to the taglib
URL, in web.xml or in a <%@ taglib %> directive of a JSP page, do not use
this kind of invalid reference?

Craig



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: RMI and TC4.x (Really classloader stuff)

2002-08-09 Thread Greg Trasuk

Hi David:

I'm in the same boat trying to use RMI and/or Jini from Tomcat.  This isn't
a complete answer to your question, as I'm still investigating the issue,
but I'm posting what I know so far in the hope that it might help in your
own solution, and also generate discussion that will guide my exploration.
When all is said and done, if there's interest, I can post a "Catalina-RMI
HOWTO" sort of document.

Although I didn't try to run the test case that you attached to your bug
report, I did take a look at it, and I think I know what's going on.  Here's
what I know so far (most of which you probably know already, but I'm
summarizing for other folks on the list):

When you pass an instance of some Serializable class as an argument to an
RMI call (e.g. passing a command object, as in your test case), the RMI
subsystem will serialize the object with an additional annotation indicating
the locations from which the class's bytecode can be downloaded.  When you
pass an exported object (e.g. a server object or an object that will receive
callbacks from remote objects), the RMI subsystem creates and serializes a
proxy object (otherwise known as the RMI stub object) in place of the actual
object.  In either case, the remote RMI subsystem has to load the class that
is called out in the serialized instance.  It does this by calling the
RMIClassLoader.

The RMIClassLoader object first tries to find the class locally (i.e. in
the default classloader).  If it can't find it locally, it searches in the
list of locations contained in the annotation mentioned above.  If the
required class is available locally, no further headaches are caused, which
may be why some people have had no problems using RMI under Tomcat - they
probably had the serialized classes and/or proxy classes in the standard
classpath/classloader setup.

And there we find our problem.  (At this point you might want to have a
look at the JSP snippet below) The annotation is determined by
RMIClassLoader. According to the "RMI and Object Serialization FAQ" in the
JDK1.31 API docs,

  "If the _Stub class was loaded by an RMIClassLoader, then RMI already
knows which codebase to use for its annotation. If the _Stub class was
loaded from the CLASSPATH, then there is no obvious codebase, and RMI
consults the java.rmi.server.codebase system property to find the codebase.
If the system property is not set, then the stub is marshalled with a null
codebase, which means that it cannot be used unless the client has a
matching copy of the _Stub classfile in the client's CLASSPATH. "

If we're running a standalone application (and I believe also in Tomcat
3.x), we're using the system class loader, which has "no obvious codebase",
so the java.rmi.server.codebase property gets used.  But what's the class
loader used in Tomcat 4.x?  I looked at the source code for Tomcat 4.0.1
(happens to be what I have on hand), and o.a.c.loader.WebAppClassLoader
extends from o.a.c.loader.StandardClassLoader, which extends from
java.net.URLClassLoader, which has a method called getURLs().  The
WebAppClassLoader.getURLs() method returns a list of all the repositories it
will search when trying to load a class on behalf of the web app.  This list
calls out all the jar's in WEB-INF/lib, common/lib, etc.

Having not seen the source for RMIClassLoader, I suspect that the
getClassAnnotation(..) method checks to see if the classloader for the
supplied class is a URLClassLoader, and if so, uses the results of the
getURLs() method call as "an obvious codebase".  This suspicion is supported
by the last part of the JSP, where I create a classloader that extends from
URLClassLoader but overrides getURLs() to return a phony url.  The phony url
shows up as the class's annotation.

So the exact error you quoted in the bug report shows something about a
"protocol missing" MalformedURL exception, which is caused by the fact that
the urls to the repositories contain spaces, since the RMI annotation is
supposed to be a "space-separated list of URL's".  Thus the annotation
doesn't get parsed properly.   This may be a bug in Catalina's class loader
(i.e. should the returned urls have the spaces encoded to '%20'?) or
possibly in the way RMIClassLoader uses the results of getURLs().  But it's
not the problem.

The problem is how to get our codebase into the annotation.  Clearly the
java.rmi.server.codebase property is not used, since the class loader has a
codebase.  But setting a system property doesn't feel right to me anyway,
since in a webapp scenario, we're in a shared JVM, and we shouldn't be
allowed to set system properties that will affect other webapps.  (Aside- we
similarly can't follow the normal practise of setting our own
RMISecurityManager, again since it doesn't play nice with the other webapps.
When I tried it, it seemed to screw-up Tomcat's internals, as well.  We need
to run Tomcat with security enabled, and set the approp

Re: Command line jspc throws NPE for page using JSTL

2002-08-09 Thread Kris Schneider

Hi Dave ;-),

I'm pretty sure it's meant to run standalone. The two "normal" ways I
know of are through the optional jspc Ant task or by running
%CATALINA_HOME%\bin\jspc.bat directly. Neither of those worked for me so
I went digging for some more detail about the failure. There's code in
the constructor of TagLibraryInfoImpl that strips a leading "/" off the
path before handing it off to JspCompilationContext.getResource which,
in turn, hands it off to JspCServletContext.getResource which explicitly
checks to see if the path starts with a "/".

David Kavanagh wrote:
> 
> Kris,
> Did you find the code that refers to that path? Is it assuming that is
> runs inside a webapp container? If so, sound like it might be a bug
> (unless it was never intended to run standalone). I'd bet you could make
> it work by messing with your classpath.
> 
> David
> 
> Kris Schneider wrote:
> 
> >I mucked around with the Jasper source a bit to get some exception info
> >dumped:
> >
> >java.net.MalformedURLException: Path 'WEB-INF/lib/standard.jar' does not
> >start with '/'
> >at
> 
>>org.apache.jasper.servlet.JspCServletContext.getResource(JspCServletContext.java:278)
> >at
> >org.apache.jasper.JspCompilationContext.getResource(JspCompilationContext.java:235)
> >at
> >org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:196)
> >at
> >org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
> >at
> >org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
> >at
> >org.apache.jasper.compiler.Parser.parseElements(Parser.java:790)
> >at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
> >at
> >org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
> >at
> >org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
> >at
> >org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229)
> >at org.apache.jasper.JspC.processFile(JspC.java:553)
> >at org.apache.jasper.JspC.execute(JspC.java:778)
> >at RunJspC.main(RunJspC.java:9)
> >
> >java.lang.NullPointerException
> >at
> >org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:215)
> >at
> >org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
> >at
> >org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
> >at
> >org.apache.jasper.compiler.Parser.parseElements(Parser.java:790)
> >at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
> >at
> >org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
> >at
> >org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
> >at
> >org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229)
> >at org.apache.jasper.JspC.processFile(JspC.java:553)
> >at org.apache.jasper.JspC.execute(JspC.java:778)
> >at RunJspC.main(RunJspC.java:9)
> >
> >org.apache.jasper.JasperException
> >2002-08-09 10:55:36 - ERROR-the file '\index.jsp' generated the
> >following general exception: java.lang.NullPointerException
> >at org.apache.jasper.JspC.processFile(JspC.java:574)
> >at org.apache.jasper.JspC.execute(JspC.java:778)
> >at RunJspC.main(RunJspC.java:9)
> >
> >My RunJspC class just does this:
> >
> >public static void main(String[] args) {
> >try {
> >JspC jspc = new JspC();
> >jspc.setArgs(args);
> >jspc.execute();
> >} catch (JasperException exc) {
> >exc.printStackTrace();
> >}
> >}
> >
> >Kris Schneider wrote:
> >
> >>(Alrighty, this is actually attempt number 3 to get this note posted.
> >>Gotta get more caffeine to the gerbils powering the email server...)
> >>
> >>When I try to use jspc from the command line to compile a JSP page that
> >>uses JSTL (1.0.1), I get a NullPointerException. Here's the setup
> >>(apologies if my email client hoses long lines):
> >>
> >>JAVA_HOME=C:\jdk1.3
> >>CATALINA_HOME=D:\jakarta-tomcat-4.1.8
> >>JASPER_HOME=D:\jakarta-tomcat-4.1.8
> >>
> >>Here's how jspc gets invoked and the resulting error:
> >>
> >>D:\jakarta-tomcat-4.1.8\webapps\jspcTest>%JASPER_HOME%\bin\jspc -v4 -d
> >>WEB-INF\src\jspc -webinc WEB-INF\jspc-web.xml -uriroot . -webapp .
> >>2002-08-09 09:07:44 - ERROR-the file '\index.jsp' generated the
> >>following general exception: java.lang.NullPointerException
> >>error:null
> >>
> >>Here's index.jsp:
> >>
> >><%@ page language="java" %>
> >><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> >>
> >>JSPC Test
> >>Welcome to the JSPC test page
> >>
> >>
> >>Here's web.xml:
> >>
> >>
> >> >>"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> >>"http://java.sun.com/dtd/web-app_2_3.dtd";>
> >>
> >>
> >>index.jsp
> >>
> >>
> >>
> >>The only other components of the app are the JAR files for JSTL that are
> >>install

unpacking of WAR

2002-08-09 Thread Paul Phillips

I worked on deploying my first webapp to another server today.  I packaged 
it up as a war, transferred it to the other tomcat server, added the one 
line context element in the server.xml, and restarted.  Nothing - the logs 
said that the webapp that was referenced by the context statement was not 
available or in a readable format.  In fact, the war did not expand into 
the file system.

So, I removed the context element, and restarted.  With the context gone, 
the WAR expanded properly.  Then I added the context back in, and it worked 
fine.

Is this normal?

Thanks
Paul Phillips

PS - the context element in the server.xml is just there to pass in a 
parameter containing the location of a data directory.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




context problem with webapp connector

2002-08-09 Thread Paul Phillips

Tomcat 4.0.4 + Apache 1.3...

I have setup the mod_webapp connector and it sort of works...

However, I have a context in my tomcat server.xml file that looks like this:





Now, when I access my servlet directly into Tomcat standalone like this:

http://URL:8080/tester/etc -- the parameter is passed to my application 
just fine.

However, when I access my servlet through warp like this:

http://URL/tester/etc -- the parameter doesn't get passed.

I don't know why..

This is a stock Tomcat and Apache setup - the only thing I did was add 
mod_webapp and modify the apache configs according to the documentation.

Other than the parameter passing not working, the webapp connector seems to 
work.
-- that is:

http://URL/examples/etc work fine.

In a blind attempt to make it work, I added a   to the warp connector section near the bottom of 
the Tomcat server.xml.  That didn't seem to help any.

Any ideas?

Thanks
Paul Phillips

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Command line jspc throws NPE for page using JSTL

2002-08-09 Thread David Kavanagh

Kris,
Did you find the code that refers to that path? Is it assuming that is 
runs inside a webapp container? If so, sound like it might be a bug 
(unless it was never intended to run standalone). I'd bet you could make 
it work by messing with your classpath.

David

Kris Schneider wrote:

>I mucked around with the Jasper source a bit to get some exception info
>dumped:
>
>java.net.MalformedURLException: Path 'WEB-INF/lib/standard.jar' does not
>start with '/'
>at
>org.apache.jasper.servlet.JspCServletContext.getResource(JspCServletContext.java:278)
>at
>org.apache.jasper.JspCompilationContext.getResource(JspCompilationContext.java:235)
>at
>org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:196)
>at
>org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
>at
>org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
>at
>org.apache.jasper.compiler.Parser.parseElements(Parser.java:790)
>at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
>at
>org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
>at
>org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
>at
>org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229)
>at org.apache.jasper.JspC.processFile(JspC.java:553)
>at org.apache.jasper.JspC.execute(JspC.java:778)
>at RunJspC.main(RunJspC.java:9)
>
>java.lang.NullPointerException
>at
>org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:215)
>at
>org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
>at
>org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
>at
>org.apache.jasper.compiler.Parser.parseElements(Parser.java:790)
>at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
>at
>org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
>at
>org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
>at
>org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229)
>at org.apache.jasper.JspC.processFile(JspC.java:553)
>at org.apache.jasper.JspC.execute(JspC.java:778)
>at RunJspC.main(RunJspC.java:9)
>
>org.apache.jasper.JasperException
>2002-08-09 10:55:36 - ERROR-the file '\index.jsp' generated the
>following general exception: java.lang.NullPointerException
>at org.apache.jasper.JspC.processFile(JspC.java:574)
>at org.apache.jasper.JspC.execute(JspC.java:778)
>at RunJspC.main(RunJspC.java:9)
>
>My RunJspC class just does this:
>
>public static void main(String[] args) {
>try {
>JspC jspc = new JspC();
>jspc.setArgs(args);
>jspc.execute();
>} catch (JasperException exc) {
>exc.printStackTrace();
>}
>}
>
>Kris Schneider wrote:
>
>>(Alrighty, this is actually attempt number 3 to get this note posted.
>>Gotta get more caffeine to the gerbils powering the email server...)
>>
>>When I try to use jspc from the command line to compile a JSP page that
>>uses JSTL (1.0.1), I get a NullPointerException. Here's the setup
>>(apologies if my email client hoses long lines):
>>
>>JAVA_HOME=C:\jdk1.3
>>CATALINA_HOME=D:\jakarta-tomcat-4.1.8
>>JASPER_HOME=D:\jakarta-tomcat-4.1.8
>>
>>Here's how jspc gets invoked and the resulting error:
>>
>>D:\jakarta-tomcat-4.1.8\webapps\jspcTest>%JASPER_HOME%\bin\jspc -v4 -d
>>WEB-INF\src\jspc -webinc WEB-INF\jspc-web.xml -uriroot . -webapp .
>>2002-08-09 09:07:44 - ERROR-the file '\index.jsp' generated the
>>following general exception: java.lang.NullPointerException
>>error:null
>>
>>Here's index.jsp:
>>
>><%@ page language="java" %>
>><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
>>
>>JSPC Test
>>Welcome to the JSPC test page
>>
>>
>>Here's web.xml:
>>
>>
>>>"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>>
>>
>>index.jsp
>>
>>
>>
>>The only other components of the app are the JAR files for JSTL that are
>>installed in WEB-INF\lib. Everything works fine running as an app under
>>4.1.8. Any ideas about what's going on? Also, does the "v" flag really
>>do anything? I can't seem to get any verbose output no matter what it's
>>set to. Thanks for any help.
>>
>>--
>>Kris Schneider 
>>D.O.Tech   
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>




Re: Command line jspc throws NPE for page using JSTL

2002-08-09 Thread Kris Schneider

I mucked around with the Jasper source a bit to get some exception info
dumped:

java.net.MalformedURLException: Path 'WEB-INF/lib/standard.jar' does not
start with '/'
at
org.apache.jasper.servlet.JspCServletContext.getResource(JspCServletContext.java:278)
at
org.apache.jasper.JspCompilationContext.getResource(JspCompilationContext.java:235)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:196)
at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:790)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229)
at org.apache.jasper.JspC.processFile(JspC.java:553)
at org.apache.jasper.JspC.execute(JspC.java:778)
at RunJspC.main(RunJspC.java:9)

java.lang.NullPointerException
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:215)
at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:790)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229)
at org.apache.jasper.JspC.processFile(JspC.java:553)
at org.apache.jasper.JspC.execute(JspC.java:778)
at RunJspC.main(RunJspC.java:9)

org.apache.jasper.JasperException
2002-08-09 10:55:36 - ERROR-the file '\index.jsp' generated the
following general exception: java.lang.NullPointerException
at org.apache.jasper.JspC.processFile(JspC.java:574)
at org.apache.jasper.JspC.execute(JspC.java:778)
at RunJspC.main(RunJspC.java:9)

My RunJspC class just does this:

public static void main(String[] args) {
try {
JspC jspc = new JspC();
jspc.setArgs(args);
jspc.execute();
} catch (JasperException exc) {
exc.printStackTrace();
}
}

Kris Schneider wrote:
> 
> (Alrighty, this is actually attempt number 3 to get this note posted.
> Gotta get more caffeine to the gerbils powering the email server...)
> 
> When I try to use jspc from the command line to compile a JSP page that
> uses JSTL (1.0.1), I get a NullPointerException. Here's the setup
> (apologies if my email client hoses long lines):
> 
> JAVA_HOME=C:\jdk1.3
> CATALINA_HOME=D:\jakarta-tomcat-4.1.8
> JASPER_HOME=D:\jakarta-tomcat-4.1.8
> 
> Here's how jspc gets invoked and the resulting error:
> 
> D:\jakarta-tomcat-4.1.8\webapps\jspcTest>%JASPER_HOME%\bin\jspc -v4 -d
> WEB-INF\src\jspc -webinc WEB-INF\jspc-web.xml -uriroot . -webapp .
> 2002-08-09 09:07:44 - ERROR-the file '\index.jsp' generated the
> following general exception: java.lang.NullPointerException
> error:null
> 
> Here's index.jsp:
> 
> <%@ page language="java" %>
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> 
> JSPC Test
> Welcome to the JSPC test page
> 
> 
> Here's web.xml:
> 
> 
>  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> index.jsp
> 
> 
> 
> The only other components of the app are the JAR files for JSTL that are
> installed in WEB-INF\lib. Everything works fine running as an app under
> 4.1.8. Any ideas about what's going on? Also, does the "v" flag really
> do anything? I can't seem to get any verbose output no matter what it's
> set to. Thanks for any help.
> 
> --
> Kris Schneider 
> D.O.Tech   
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-- 
Kris Schneider 
D.O.Tech   


smime.p7s
Description: S/MIME Cryptographic Signature


Re: help with data insertion on postgresql on tomcat4/apache2

2002-08-09 Thread Paul Yunusov

On Friday 09 August 2002 10:59 pm, sibusiso xolo wrote:
> Greetings,
>
> I  am using tomcat4.04 on SuSE8/postgresql7.2.1   with source compiled jdbc
> driver.
>
> I am able to do SELECTS and other queries   on database tables  (with jsp
> and servlets)   but unable to  do data  UPDATES and INSERTS.. .
>
> Help would be appreciated.
>
> regards
> sibu

Error messages, please.
Paul

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Error Using JSTL1.0.1

2002-08-09 Thread Lee Peik Feng

Hi,
I'm using jdk1.3.1_04, tomcat 4.0.4 on Linux 7.3 and I have link up
apache and tomcat using mod_jk2.

After I upgrade jstl from 1.0 to 1.0.1, I sometimes (not every time,
happen mainly after I update jsp files, clear cache and restart tomcat) get
the below error while trying to browse a jsp page.

I click on a link from a main page and the link is like this
http://mydomain/application/  (by default it will search for index.jsp)

and the browser address bar will return somthing like below
http://mydomain/application;jsessionid=42735B0A5AABE2DC6DA7212272E3CC3E
with a Page not found error.

but things will back to normal after I restart tomcat and clear cache again.
Sometimes, I can just go back to the main page, refresh my browser and
things will back to normal too without restarting tomcat.

I can't figure out what is the cause as it is not happenning all the time.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Command line jspc throws NPE for page using JSTL

2002-08-09 Thread Kris Schneider

(Alrighty, this is actually attempt number 3 to get this note posted.
Gotta get more caffeine to the gerbils powering the email server...)

When I try to use jspc from the command line to compile a JSP page that
uses JSTL (1.0.1), I get a NullPointerException. Here's the setup
(apologies if my email client hoses long lines):

JAVA_HOME=C:\jdk1.3
CATALINA_HOME=D:\jakarta-tomcat-4.1.8
JASPER_HOME=D:\jakarta-tomcat-4.1.8

Here's how jspc gets invoked and the resulting error:

D:\jakarta-tomcat-4.1.8\webapps\jspcTest>%JASPER_HOME%\bin\jspc -v4 -d
WEB-INF\src\jspc -webinc WEB-INF\jspc-web.xml -uriroot . -webapp .
2002-08-09 09:07:44 - ERROR-the file '\index.jsp' generated the
following general exception: java.lang.NullPointerException
error:null

Here's index.jsp:

<%@ page language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

JSPC Test
Welcome to the JSPC test page


Here's web.xml:


http://java.sun.com/dtd/web-app_2_3.dtd";>


index.jsp



The only other components of the app are the JAR files for JSTL that are
installed in WEB-INF\lib. Everything works fine running as an app under
4.1.8. Any ideas about what's going on? Also, does the "v" flag really
do anything? I can't seem to get any verbose output no matter what it's
set to. Thanks for any help.

--
Kris Schneider 
D.O.Tech   

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




help with data insertion on postgresql on tomcat4/apache2

2002-08-09 Thread sibusiso xolo

Greetings,

I  am using tomcat4.04 on SuSE8/postgresql7.2.1   with source compiled jdbc 
driver.

I am able to do SELECTS and other queries   on database tables  (with jsp and 
servlets)   but unable to  do data  UPDATES and INSERTS.. .

Help would be appreciated.

regards
sibu

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Servlet not working

2002-08-09 Thread Paul Yunusov

On Friday 09 August 2002 06:08 pm, Laura Findley wrote:
> I typed in my first example servlet today & cannot seem to get it working.
>
> I made sure all the following were done:
>
> 1) Classpath is set
>   CATALINA_HOME=$CATALINA_HOME:/usr/java/jakarta-tomcat-4.0.4
>   JAVA_HOME=/usr/java/j2sdk1.4.0
>   PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.0/bin
>
> CLASSPATH=$CLASSPATH:/home/lfindle/java:/usr/java/jakarta-tomcat-4.0.4/comm
>o n/lib/servlet.jar:.
>
>   export CATALINA_HOME
>   export JAVA_HOME
>   export PATH
>   export CLASSPATH
>
> 2) Put the servlet in
> /usr/java/usr/java/jakarta-tomcat-4.0.4/webapps/begjsp-ch01/WEB-INF/classes

   ^^^
   is this a typo?

also check catalina.out, the log for your host and the log for your context in 
$CATALINA_HOME/logs


>/ ExampleServlet.java
> Compiled it from there. Shutdown & restarted Tomcat.
>
> I went to http://localhost:8080/begjsp-ch01/servlet/ExampleServlet & get
> 404 Error message.
>
> Does anyone have any suggestions?
>
> Thanks.

Paul

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Changing Servlet directories

2002-08-09 Thread Peter O

How can I change the default servlet directory?

Thanks, 
Peter
 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problems with *

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Todd Kaplinger wrote:

> Date: Fri, 09 Aug 2002 17:43:36 -0400
> From: Todd Kaplinger <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: Problems with *
>
> define a servlet mapping of just "/". this is the default servlet mapping.

That's still not going to work for what the proposed use case was --
because you've just disabled the default file-serving servlet that serves
static content.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problems with *

2002-08-09 Thread Craig R. McClanahan



On 9 Aug 2002, Alexander Wallace wrote:

> Date: 09 Aug 2002 16:46:07 +0100
> From: Alexander Wallace <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Problems with *
>
>
>
> Hi there! New to the list. And to java and tomcat, so please be nice.
>
> I have a problem with a servlet mapping. If i use a url-pattern like
>
> /Hello on a servlet mapping pointing to a
> particular servlet, the servlet get's the request and i can use
> request.getServletPath() to get the URI.
>
> But if I use something like /* or
> *, and it seems that anyghing with an *, the
> servlet get's called, BUT request.getServletPath() is empty!
>

If you use a "/*" mapping, you won't see anything in getServletPath(), but
check out getPathInfo() -- that's defined to give you "everything in the
request URI after the part that matched my servlet."  Because the part
that matched your servlet in this case is a zero-length string, you'll see
all the stuff you want.

> What I want is to actually direct all requests to my webapp to a
> particular servlet to validate priviledges (is this the best way to
> ensure that noone without permission accesses any page?)
>

You will soon find out that a servlet mapping is not what you want here.

Consider the case of a JSP page.  The "*.jsp" pattern is mapped to the JSP
servlet, but a "/*" mapping intercepts those requests, and there's no way
to get from here to there.

Your answer would be to use a Filter instead of a Servlet (requires a
servlet 2.3 container like Tomcat 4 or later).  You can map a Filter to
one or more URL patterns without interfering with which Servlet is
ultimately responsible for processing the request.  A Filter can do things
like inspect the request (or the appropriate session) and do things like
redirect if the user is not logged on (by doing a
RequestDispatcher.forwrd()) or passing the request through in the normal
case.

> Thanks in advance for the help!
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: ant task to query if a particular app is running?

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Jacob Kjome wrote:

> Date: Fri, 9 Aug 2002 16:21:18 -0500
> From: Jacob Kjome <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  Jacob Kjome <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: ant task to query if a particular app is running?
>
> Hi,
>
> I'm wondering if it is possible to use one of the catalina ant manager
> tasks to query for the existence of a single running application.  The
> closest thing to it that I can find is the "List" task.  However, that
> just returns a string list of all running apps.
>

You could always parse the output of task, or use grep to look for the
line with the right context path ...

> What I would like to do is be able to make my "install" target check
> whether an app is already loaded.  If so, instead of just saying
> "already installed" and ending the build, it would run the "reload" target.
> This would save timeor is it possible to catch some error
> condition from the install target and conditionally run the "reload"
> target if the install target returns that error condition?  If so, how
> is that done?
>

Such a facility doesn't exist yet, but would make a nice enhancement.  To
make such a request, the bug tracking system is a good bet:

  http://nagoya.apache.org/bugzilla/

> Note:  I'm sending this mostly Ant question to the Tomcat-user list
> only because people like Craig know more about the manager app and the
> catalina tasks than the Ant people do.

Although it's an Ant-sounding question, the Ant tasks we are talking about
are actually part of Tomcat (nobody on ANT-USER would probably have any
idea what you're talking about), so this is the right place.

Ant lets you plug in your own custom tasks, and we took advantage of that
capability here.

>
> thanks,
>
> Jake
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat4 : specific settings for Context

2002-08-09 Thread Craig R. McClanahan



On 9 Aug 2002, Dominique Deleris wrote:

> Date: 09 Aug 2002 23:00:58 +0200
> From: Dominique Deleris <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: tomcat-user-list <[EMAIL PROTECTED]>
> Subject: Tomcat4 : specific settings for Context
>
> Hello list,
>
> I would like to setup some specific settings per Tomcat
> Context. Debian flavour for Tomcat automatically detects all apps
> deployed in /webapps and sets up all needed
> settings : there is no  entry in server.xml for the
> different applications.
>
> Now I woul like to setup the "reloadable" attribute for a
> specific application in Tomcat : how should I do, since I can not
> find anything related to my application Context in Tomcat config
> files...
>

For any version of Tomcat, you can put your own  entry into
server.xml, even if the application is in webapps -- the standard Tomcat
distribution does this for the "/examples" webapp.

For Tomcat 4.1, you can also locate the  element in a separate
file, and customize it as needed.  If you put this context configuration
file, instead of the directory or WAR, into webapps it will still get
auto-deployed.

> I hope this was clear enough :-)
>
> Regards,
> --
> Dominique Deleris
> http://potatoworld.tuxfamily.org

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




upgrading from v.3.1.1 to v.3.3 ?

2002-08-09 Thread Paul Tomsic

What's involved w/ an upgrade of Tomcat from 3.1.1
to 3.3?

Is this a fairly straight forward task, or is it quite
involved?
We're experiencing some "odd" behaviour from 3.1.1,
and can't help but wonder if it's got something to do
w/ the old version.

Unfortunately, we're in the middle of a crunch
deadline, so if it's as simple as say, swapping out a
jar file or something, that would be great.

Thoughts, or can someone point me to a FAQ on
upgrading like this?

Thanks,

Paul Tomsic


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NetBeans + Tomcat 4.0.4

2002-08-09 Thread Alexander Wallace

Thanks! I'll check it out.

On Fri, 2002-08-09 at 23:01, Larry Meadors wrote:
> Look here:
> 
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30523.html
> 
> Instructions on how to set up tomcat and netbeans with the JPDA
> debugger.
> 
> Larry
> 
> >>> [EMAIL PROTECTED] 08/09/02 15:59 PM >>>
> Does anyone here use NetBeans with tomcat 404?
> 
> I'm using it, and use a small class to start tomcat from netbeans
> (instead of using the internal one that's 3.2), it works great when I
> want to debug servlets. But no JSP works, they all give error 500, even
> the ones in /exaples. But if i start it manually (i can't debug then, or
> is there a way?) the jsps work fine.
> 
> The root couse starts with: java.lang.NoSuchMethodError:
> javax.servlet.ServletResponse.resetBuffer()
> 
> Any clues?
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Servlet to JDBC connection

2002-08-09 Thread Mike Jackson

I don't know for sure, but in my experience the jdbc urls typically 
don't have the path on the disk referenced.  Rather they usually
have the database name listed, or no name (ie default database).  
So I'd check your docs for interbase and make sure that your url
following the slash after the port is correct.

Also, if your database is running on the same machine as the web
server then consider using the loopback address instead of the the
"real" ip address of the server.  Sometimes that'll be more efficient.

--mikej
-=-
mike jackson
[EMAIL PROTECTED] 

> -Original Message-
> From: Peter O [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:07 AM
> To: Tomcat Users List
> Subject: Servlet to JDBC connection
> 
> 
> What's wrong with this string? I can't get this string to connect to
> the database, I'm trying to connect on a RH 7.2 system.
> 
>   protected String dbURL =
> "jdbc:interbase://66.18.29.95:8089/opt/jakarta-tomcat-4.0.4/webapp
> s/ROOT/database/MAIN.GDB";
> 
> The servlet dir is working, there's no error message.
> 
> -Paul
> 
>  
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Servlet not working

2002-08-09 Thread Marinko, Jeff

The code looks alright...

Do the example servlets work? Try putting the .class file in with the
examples and try using it that way.

.class file:  Tomcat/webapps/examples/WEB-INF/classes
URL:  http://localhost:8080/examples/servlet/ExampleServlet (or "HelloWorld"
just to make sure it works).

Hope that helps!

Jeff

-Original Message-
From: Laura Findley [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 3:08 PM
To: Tomcat Users List
Subject: Servlet not working



I typed in my first example servlet today & cannot seem to get it working.

I made sure all the following were done:

1) Classpath is set
CATALINA_HOME=$CATALINA_HOME:/usr/java/jakarta-tomcat-4.0.4
JAVA_HOME=/usr/java/j2sdk1.4.0
PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.0/bin

CLASSPATH=$CLASSPATH:/home/lfindle/java:/usr/java/jakarta-tomcat-4.0.4/commo
n/lib/servlet.jar:.

export CATALINA_HOME
export JAVA_HOME
export PATH
export CLASSPATH

2) Put the servlet in
/usr/java/usr/java/jakarta-tomcat-4.0.4/webapps/begjsp-ch01/WEB-INF/classes/
ExampleServlet.java
Compiled it from there. Shutdown & restarted Tomcat.

I went to http://localhost:8080/begjsp-ch01/servlet/ExampleServlet & get 404
Error message.

Does anyone have any suggestions?

Thanks.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jsp:forward

2002-08-09 Thread Carl

The saga continues.

Downloaded Tomcat 4.0.4.  Couldn't get it to work even with the examples.

Desperate.  Downloaded Tomcat 4.1.8.  Worked with the forward
(jsp/forward/forward.jsp)... a little hope.  Moved my application over...
after a little tinkering with the code, it worked.

The interface with Forte is just a little funky as I can't compile directly
from Forte.  But I can run from Forte and the logs display properly, so it
looks like I am finally able to proceed.

Still the question remains: why wouldn't Tomcat 4.0.1 (the version in the
Forte download work with the  tag construct.

Thanks,

Carl Kabbe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Servlet not working

2002-08-09 Thread Laura Findley


I typed in my first example servlet today & cannot seem to get it working.

I made sure all the following were done:

1) Classpath is set
CATALINA_HOME=$CATALINA_HOME:/usr/java/jakarta-tomcat-4.0.4
JAVA_HOME=/usr/java/j2sdk1.4.0
PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.0/bin

CLASSPATH=$CLASSPATH:/home/lfindle/java:/usr/java/jakarta-tomcat-4.0.4/commo
n/lib/servlet.jar:.

export CATALINA_HOME
export JAVA_HOME
export PATH
export CLASSPATH

2) Put the servlet in
/usr/java/usr/java/jakarta-tomcat-4.0.4/webapps/begjsp-ch01/WEB-INF/classes/
ExampleServlet.java
Compiled it from there. Shutdown & restarted Tomcat.

I went to http://localhost:8080/begjsp-ch01/servlet/ExampleServlet & get 404
Error message.

Does anyone have any suggestions?

Thanks.





import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class ExampleServlet extends HttpServlet {

   public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
  PrintWriter out;
  String title = "Servlet Example";
  response.setContentType("text/html");
  out = response.getWriter();
  out.println("");
  out.println(title);
  out.println("");
  out.println("This is an example servlet.");
  out.println("");
  out.close();
   }

   public void doPost(HttpServletRequest request, HttpServletResponse response)
 throws ServletException, IOException{
  doGet(request, response);

   }


}



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: NetBeans + Tomcat 4.0.4

2002-08-09 Thread Larry Meadors

Look here:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg30523.html

Instructions on how to set up tomcat and netbeans with the JPDA
debugger.

Larry

>>> [EMAIL PROTECTED] 08/09/02 15:59 PM >>>
Does anyone here use NetBeans with tomcat 404?

I'm using it, and use a small class to start tomcat from netbeans
(instead of using the internal one that's 3.2), it works great when I
want to debug servlets. But no JSP works, they all give error 500, even
the ones in /exaples. But if i start it manually (i can't debug then, or
is there a way?) the jsps work fine.

The root couse starts with: java.lang.NoSuchMethodError:
javax.servlet.ServletResponse.resetBuffer()

Any clues?





--
To unsubscribe, e-mail:  

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




NetBeans + Tomcat 4.0.4

2002-08-09 Thread Alexander Wallace

Does anyone here use NetBeans with tomcat 404?

I'm using it, and use a small class to start tomcat from netbeans
(instead of using the internal one that's 3.2), it works great when I
want to debug servlets. But no JSP works, they all give error 500, even
the ones in /exaples. But if i start it manually (i can't debug then, or
is there a way?) the jsps work fine.

The root couse starts with: java.lang.NoSuchMethodError:
javax.servlet.ServletResponse.resetBuffer()

Any clues?





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problems with *

2002-08-09 Thread Todd Kaplinger

define a servlet mapping of just "/". this is the default servlet mapping.  
To get the servlet name use request.getPathInfo(). This will return the info 
after the slash.


>From: Alexander Wallace <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Subject: Problems with *
>Date: 09 Aug 2002 16:46:07 +0100
>
>
>
>Hi there! New to the list. And to java and tomcat, so please be nice.
>
>I have a problem with a servlet mapping. If i use a url-pattern like
>
>/Hello on a servlet mapping pointing to a
>particular servlet, the servlet get's the request and i can use
>request.getServletPath() to get the URI.
>
>But if I use something like /* or
>*, and it seems that anyghing with an *, the
>servlet get's called, BUT request.getServletPath() is empty!
>
>What I want is to actually direct all requests to my webapp to a
>particular servlet to validate priviledges (is this the best way to
>ensure that noone without permission accesses any page?)
>
>Thanks in advance for the help!
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




---
Todd Kaplinger
mailTo:[EMAIL PROTECTED]

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problems with *

2002-08-09 Thread Alexander Wallace



Hi there! New to the list. And to java and tomcat, so please be nice.

I have a problem with a servlet mapping. If i use a url-pattern like

/Hello on a servlet mapping pointing to a
particular servlet, the servlet get's the request and i can use
request.getServletPath() to get the URI.

But if I use something like /* or
*, and it seems that anyghing with an *, the
servlet get's called, BUT request.getServletPath() is empty!

What I want is to actually direct all requests to my webapp to a
particular servlet to validate priviledges (is this the best way to
ensure that noone without permission accesses any page?)

Thanks in advance for the help! 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: 500 error on all JSP pages

2002-08-09 Thread Alison Fish

> 
> Hello all.  I'm new to the list.  I'm getting a "500" error 
> on any JSP I try
> to run.  If I run the servlet examples though, they seem to 
> work fine.

This is the same issue I have been working on all day. I finally got it to
work about an hour ago. (FYI: I am running fresh install of Apache 1.3.22
and Tomcat 3.3.1 on Windows 2000 Pro. Apache is running as a service and
using mod_jk to support Tomcat.) You are 80% home based on your description.

Questions:
- Does your jsp work if you throw it into the examples\jsp folder? 
If it runs in one folder but not another, make sure you have your directory
layout formatted according this deployment guide:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/deployment.html.
- What does the Apache error log say?
- What is your Apache-Tomcat glue (mod_jk, etc)?







Re: tomcat + apache

2002-08-09 Thread steve Burrus

Buenos Tardes, Carlo, this is Estebban Burrus, and I was just wondering 
if u could possibly put your submission in English, as I would love to 
help you, but don't speak Spanish!! Gracias.
*
Carlos wrote:

>hola estoy intentando , en mi linux suse 8, hacer andar el tomcat con el
>apache, es decir que el puerto 80 tambien responda a las peticones jsp y no
>lo consigo.
>para ver las jsp tengo que poenr 8080.
>bien el el httpd.conf de apache tengo:
>LoadModule webapp_module /usr/lib/apache/mod_webapp.so
>WebAppConnection tomcat warp localhost:8008
>WebAppDeploy examples tomcat /examples
>WebAppInfo /webapp-info
># The following line prohibits users from directly accessing WEB-INF
>
>AllowOverride None
>deny from all
>
>
>el documentoRoot de apache esta en /usr/local/httpd/htdocs. Como puedo hacer
>andar en el puerto 80 unas paginas jsp que estan el:
>/usr/local/httpd/htdocs/admin ?
>el documento root de tomcat esta en /opt/jakarta/webapps/ROOT
>
>Me podeis ayudar con esto?
>
>llevo dos semanas con ello y no consigo tirar adelante.
>Me imagino que hay que hacer varias cosas:
>1.- editar el httpd.conf de apache y añadir un conector con un puerto
>2.- editar el server.xml y añadir un contexcto pero por mas que hago pruebas
>no consigo ver el admin.
>
>Me podeis ayudar?
>muchas gracias
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




ant task to query if a particular app is running?

2002-08-09 Thread Jacob Kjome

Hi,

I'm wondering if it is possible to use one of the catalina ant manager
tasks to query for the existence of a single running application.  The
closest thing to it that I can find is the "List" task.  However, that
just returns a string list of all running apps.

What I would like to do is be able to make my "install" target check
whether an app is already loaded.  If so, instead of just saying
"already installed" and ending the build, it would run the "reload" target.
This would save timeor is it possible to catch some error
condition from the install target and conditionally run the "reload"
target if the install target returns that error condition?  If so, how
is that done?

Note:  I'm sending this mostly Ant question to the Tomcat-user list
only because people like Craig know more about the manager app and the
catalina tasks than the Ant people do.

thanks,

Jake


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FW: Re[2]: Apache 2.0.39 and Tomcat 4.1.8 Servlet issue

2002-08-09 Thread Short, Dave

Ignacio,

I was able to create a reproducible test case for you.  It turns out this
seems to be an Apache 2.0.39 issue only...

Anyway, attached are two HTML files (copies of the Jakarta developer's
guide).  The first copy (Apache2TestShort.htm) is roughly 7k in size and
displays without a problem.  The second copy (Apache2TestLong.htm) is
roughly 24k in size and doesn't display correctly.  It gets cut off at 8192
bytes.  I can reproduce this on my laptop (W2K Pro, P3) in both IE 5.5 and
Navigator 4.75.  On my tower (W2K Server, P4), I can reproduce on Navigator
4.79 only and it works in IE 5.5.

Dave


-Original Message-
From: Short, Dave 
Sent: July 24, 2002 3:28 PM
To: 'Tomcat Users List'
Subject: RE: Re[2]: Apache 2.0.39 and Tomcat 4.1.8 Servlet issue


Ignacio,

I can't provide a test case because my servlet is calling a component from
an application server.  The HTML is actually built in the component, within
the application server, and returned to the servlet, web server and
ultimately to the browser.

Basically, some of the HTML pages are around 30-50k in size.

Dave

-Original Message-
From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
Sent: July 24, 2002 1:34 PM
To: 'Tomcat Users List'
Subject: RE: Re[2]: Apache 2.0.39 and Tomcat 4.1.8 Servlet issue


I'm little out if this thread, could anyone give detaails about the test
case, maybe attaching it to an ad hoc bug in bugzilla, thanks

I'll take a look on this, if i can reproduce it..

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Short, Dave [mailto:[EMAIL PROTECTED]]
> Enviado el: 24 de julio de 2002 21:21
> Para: 'Tomcat Users List'
> Asunto: RE: Re[2]: Apache 2.0.39 and Tomcat 4.1.8 Servlet issue
> 
> 
> Perhaps one of the mod_jk2 developers could comment?
> 
> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
> Sent: July 24, 2002 12:15 PM
> To: Tomcat Users List
> Subject: Re[2]: Apache 2.0.39 and Tomcat 4.1.8 Servlet issue
> 
> 
> Hello Dave,
> 
> Yeah, I've noticed the same thing with Mozilla (latest nightly build).
> It think mod_jk2 is doing something wrong with the http headers.  IE
> tends to be really lax in enforcing various specs which is why you
> always hear complaints saying "but it works in IE" thinking it is
> Netscape's fault for not doing it right when, in fact, Netscape is
> doing things propery and IE is just ignoring bad syntax.
> 
> Either way, something is not quite right with mod_jk2 and http1.1
> 
> Jake
> 
> Wednesday, July 24, 2002, 12:11:59 PM, you wrote:
> 
> SD> I'm using mod_jk2...  
> 
> SD> It seems to work somewhat consistently on IE 5.5 and VERY 
> inconsistently
> on
> SD> Netscape 4.7x on my W2K professional laptop.  It works 
> fine with IE 5.5
> on
> SD> my W2K server tower, but not with Navigator 4.7x.  Strange.
> 
> SD> -Original Message-
> SD> From: Chris McCabe [mailto:[EMAIL PROTECTED]]
> SD> Sent: July 24, 2002 10:06 AM
> SD> To: Tomcat Users List
> SD> Subject: Re: Apache 2.0.39 and Tomcat 4.1.8 Servlet issue
> 
> 
> SD> I ran into the same problem, and it appears to be related to the 
> SD> mod_webapp module.  I switched to using mod_jk and it now 
> works.  I 
> SD> could not find any clues to what was causing the problem 
> (exceptions, 
> SD> etc.) and searching the web only turned up others having the same 
> SD> problem with no solution.
> 
> SD> Chris
> 
> SD> Short, Dave wrote:
> 
> >>There is an issue with Apache 2.0.39 and Tomcat 4.1.8 
> (actually this issue
> >>first appeared with Apache 2.0.36 and Tomcat 4.0.x).  It seems, if a
> SD> servlet
> >>returns content (dynamically built HTML for instance) which 
> exceeds 8192
> in
> >>length, the content is truncated at 8192 and a blank page 
> is rendered by
> >>Apache.  Actually, Apache renders what was returned by 
> Tomcat (8192 bytes
> SD> of
> >>the dynamically generated HTML page).  Basically, an 
> incomplete HTML page
> -
> >>hence it is displayed as blank.
> >>
> >>--
> >>To unsubscribe, e-mail:
> SD> 
> >>For additional commands, e-mail:
> SD> 
> >>
> >>
> >>  
> >>
> 
> 
> 
> 
> 
> -- 
> Best regards,
>  Jacobmailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:





Apache2Test.zip
Description: Binary data

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


500 error on all JSP pages

2002-08-09 Thread Kenny G. Dubuisson, Jr.

Hello all.  I'm new to the list.  I'm getting a "500" error on any JSP I try
to run.  If I run the servlet examples though, they seem to work fine.  I
realize that this is like the most common error and I know it's just a
config issue, but darn if I can find it.  Any help would be very appreciated
(bowing down in complete reverence is probable).

FYI:  This is a fresh install of Apache 1.3.26 and Tomcat 3.3.1 on Windows
NT.

Thanks,
Kenny


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JSSE/mod_ssl or wrong mailing list

2002-08-09 Thread AMRAN121

I posted this a couple of days ago and so far I have had no response so  am I 
asking a wrong question in the wrong mailing list does anyone know of a 
better place where my tomcat ssl encryption questions can be asked?

I had been following the recent disscusion of login + ssl which has been very 
useful info for me.

Also does anyone know which is better to use the mod_ssl or JSSE




ORIGINAL MESSAGE

HI

I have just followed the Tomcat SSL HOWTO and I am able to get my 
https://localhost:443/ page. I then right-click on my mouse to get up the 
page properties; 

Protocol:Hyper Text Transfer With Privacy
Type: HTML Document
Connection:Not Encrypted
Address(URL):https://localhost:443/index.html
Size:  2572 bytes


but it says the page is not encrypted why does this happen? should it not 
state some sought of encryption like 128 bit?

I also tried the Apache + mod_ssl HOWTO and I do get an encrypted connection 
which says the following;

Connection:TLS 1.0, RC4 with 128 bit encryption (High); RSA with 1024 bit 

exchange

I have apache 1.3.26 (Linux box) + mod_jk + Tomcat 4.04 (Windows box)

The Tomcat server in my environment handles login forms processes them and 
then puts the user to their homepage. I wish to encrypt this login process. I 

don't think I need to use apache +mod_ssl to do any connection encryption 
because the login form is sent to the Tomcat server.  

I cannot figure out what I am missing? Can anyone help please?

Thanxs in Advance


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat4 : specific settings for Context

2002-08-09 Thread Dominique Deleris

Hello list,

I would like to setup some specific settings per Tomcat
Context. Debian flavour for Tomcat automatically detects all apps
deployed in /webapps and sets up all needed
settings : there is no  entry in server.xml for the
different applications.

Now I woul like to setup the "reloadable" attribute for a
specific application in Tomcat : how should I do, since I can not
find anything related to my application Context in Tomcat config
files...

I hope this was clear enough :-)

Regards,
-- 
Dominique Deleris
http://potatoworld.tuxfamily.org


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JDBC Realm - Can't start TC4.0.4 !!

2002-08-09 Thread khozaima shakir

I am trying to configure JDBCRealm. I can't understand the error, since the 
same username and password was successfully used to access the database 
using servlet-jdbc in my webapp, without configuring JDBCrealm. Can anyone 
please advise?
Thanks,
skhuzema

I have edited server.xml realm as under:

-->> Names of columns same as above in database
(I have installed tomcat on mapped drive on windowsNT)
Error Message on tomcat startup:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Catalina.start: LifecycleException:  Exception opening database connection:  
java.sql.SQLException: Invalid authorization specification: Access denied 
for user:
'skhuzema;[EMAIL PROTECTED]' (Using password: NO)
LifecycleException:  Exception opening database connection:  
java.sql.SQLException: Invalid authorization specification: Access denied 
for user: 'skhuzema;[EMAIL PROTECTED]' (Using password: NO)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.sql.SQLException: Invalid authorization specification: Access denied 
for user: 'skhuzema;[EMAIL PROTECTED]' (Using password: NO)
at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:278)
at org.gjt.mm.mysql.Connection.(Connection.java:230)
at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat, JAXB and SecurityManager

2002-08-09 Thread Extance, Paul

We have had a problem with JAXB under Tomcat 4.0.3, as it couldn't find the
jaxb-rt.jar in the WEB-INF/lib folder. 

We also put it in the %catalina_home%/common/lib, and it still couldn't find
it.
We then put the jar in the %java_home%/jre/lib/ext and then it worked.

We then upgraded to Tomcat 4.0.4 and the problem went away.

So if your getting a 'ClassNotFound' exception this may help.

PaulE

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 7:09 AM
To: Tomcat Users List
Subject: RE: Tomcat, JAXB and SecurityManager


Bonjour! ;)

>If i launch it from a servlet, i failed.

Can you please provide more details?  The stack trace would be helpful.  Any
suspicious or error messages in the tomcat logs?

>One more point, if the same code is run under Tomcat 4.0.1, it work !!!

Then I would look at the release notes for 4.0.3 to see what changes were
made to the security manager between 4.0.1 and 4.0.3 ;)

> Cédric (very despited for two days).

What does very despited mean? 

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Converting HOST to IP an IP to HOST

2002-08-09 Thread Jose Francisco Junior

The case is that I whould not like to do somithing like
 this:

if( "http://machineName1:8080".equals(
 request.getRequestURL() )||
 "http://www.my_system_url:8080".equals(
 request.getRequestURL() ) ||
 "http://200.2001.148.10:8080".equals(
 request.getRequestURL() ) )
showContent1();
else if( "http://machineName2:8080".equals(
 request.getRequestURL() )||
 "http://www.my_system_url_2:8080".equals(
 request.getRequestURL() ) ||
 "http://200.2001.148.11:8080".equals(
 request.getRequestURL() ) )
showContent2();
...and so on...

I whould like to do some like this:

if( "200.2001.148.10".equals(
 request.getRequestURL().toIPAddress() )
 showContent1();
else if( "200.2001.148.11".equals(
 request.getRequestURL()toIPAddress() )
 showContent2();
...and so on...

PS:toIPAddress() is what I am looking for !
Note that in the first case the user can access the system
 in tree different forms.

but forget about it, it is just a whim...

best regards,
Junior





On Fri, 9 Aug 2002 15:21:52 -0400 
"Turner, John" <[EMAIL PROTECTED]> wrote:
>
>Well, so far you've asked two different questions, yet
> they are supposed to
>be the same.
>
>Your first post wanted an IP address from a name,
> getByName() will do that
>for you, assuming by "name" you mean fully-qualified
> internet domain name.  
>
>Now you are saying that the IP address will actually be in
> the URL, in which
>case you don't need to look it up, so it's not clear what
> you are trying to
>do.
>
>If you need to differentiate content based on whether
> someone accesses a
>resource by IP address or name, and there are many
> possible IP addresses,
>then all you have to do is test if the value returned from
> getRequestURI()
>has an IP address in it.  So rather than look for a
> specific IP address, all
>you have to do is look for ANY IP address.  That will tell
> you if someone
>entered the machine name or not.  
>
>If you need something to translate a Microsoft WINS name
> (server name) to an
>IP address, you'll need some sort of Java WINS
> library...check google...my
>guess is the SAMBA group has written one
> (http://www.samba.org) but it may
>not be generally available.
>
>John Turner
>[EMAIL PROTECTED]
>
>-Original Message-
>From: Jose Francisco Junior [mailto:[EMAIL PROTECTED]]
>Sent: Friday, August 09, 2002 2:55 PM
>To: Tomcat Users List
>Subject: Converting HOST to IP an IP to HOST
>
>
>All right, but it does not solve my problem. I did a local
> web system that can be accessed both by IP or HOST.
> Depending on the way the user accessed( by HOST or IP )
> the application I must display different contents. 
>
>I could do this:
>
>if(
>
 request.getRequestURL().toString().equals("192.168.20.10")
> ) 
> out.print("show IP content"); 
>else 
> ou.print("show HOST content");
>
>But the web server has many network devices and the user
> can accesss the system from many other IP and HOSTs.
>
>The InetAddress.getByName() does not work with the machine
> network name only with inet hosts.
>
>Does anybody has any idea ???
>
>
>Thanks in advice,
>Junior
>
>
>
>On Fri, 9 Aug 2002 13:50:59 -0400 
>"Turner, John" <[EMAIL PROTECTED]> wrote:
>>
>>Come on...RTFM:
>>
>>java.net.InetAddress.getByName();
>>
>>Sheesh.
>>
>>John Turner
>>[EMAIL PROTECTED]
>>
>>
>>-Original Message-
>>From: Jose Francisco Junior [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, August 09, 2002 1:44 PM
>>To: Tomcat Users List
>>Subject: Re: Configuration for High TPS
>>
>>
>>Please,
>>
>>I know it is a bit off-topic but I am trying to get a IP
>> address from an URL like this:
>>new URL("http://java.sun.com";); //this is the URL
>>
>>How can I get the IP address from this URL? Any idea ??
>>
>>
>>Thanks in advance,
>>Junior 
>>
>>Don't E-Mail, ZipMail! http://www.zipmail.com/
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>--
>>To unsubscribe, e-mail:
>>   
>>For additional commands, e-mail:
>> 
>>
>
>-
>Prefiro as lágrimas da derrota
>do que a vergonha de não ter lutado... 
>
>Willan Brook
>-
>
>Don't E-Mail, ZipMail! http://www.zipmail.com/
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:
>   
>For additional commands, e-mail:
> 
>

-
Prefiro as lágrimas da derrota
do que a vergonha de não ter lutado... 

Willan Brook
-

Don't E-Mail, ZipMail! http://www.zipmail.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Is it possible to include via a directive snippets into theserver.xml file

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Andrew wrote:

> Date: Fri, 9 Aug 2002 15:26:33 -0400
> From: Andrew <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Is it possible to include via a directive snippets into the
> server.xml file
>
> actually, I don't believe that the name of the xml file has to be the
> context name, but don't quote me on that.

You're correct -- the actual context path name is set from the "path"
attribute of the  element.  But following the convention
certainly reduces the potential for confusion.

>  The important information is
> the context information within the XML file.  From my understanding, you
> just have to use  as your root element, and you can add any
> sub elements necessary.

Yep.

>
> - Andrew

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tomcat + apache

2002-08-09 Thread Carlos

hola estoy intentando , en mi linux suse 8, hacer andar el tomcat con el
apache, es decir que el puerto 80 tambien responda a las peticones jsp y no
lo consigo.
para ver las jsp tengo que poenr 8080.
bien el el httpd.conf de apache tengo:
LoadModule webapp_module /usr/lib/apache/mod_webapp.so
WebAppConnection tomcat warp localhost:8008
WebAppDeploy examples tomcat /examples
WebAppInfo /webapp-info
# The following line prohibits users from directly accessing WEB-INF

AllowOverride None
deny from all


el documentoRoot de apache esta en /usr/local/httpd/htdocs. Como puedo hacer
andar en el puerto 80 unas paginas jsp que estan el:
/usr/local/httpd/htdocs/admin ?
el documento root de tomcat esta en /opt/jakarta/webapps/ROOT

Me podeis ayudar con esto?

llevo dos semanas con ello y no consigo tirar adelante.
Me imagino que hay que hacer varias cosas:
1.- editar el httpd.conf de apache y añadir un conector con un puerto
2.- editar el server.xml y añadir un contexcto pero por mas que hago pruebas
no consigo ver el admin.

Me podeis ayudar?
muchas gracias



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Accessing Mapped Drives

2002-08-09 Thread Jacob Hookom

XP Pro, but I can put 2000 server on it.

| -Original Message-
| From: David Kavanagh [mailto:[EMAIL PROTECTED]]
| Sent: Friday, August 09, 2002 7:34 AM
| To: Tomcat Users List
| Subject: Re: Accessing Mapped Drives
| 
| I saw this problem with a java2 applet running with the plugin The
file
| dialog could not see mapped drives. I only saw it on Win 98. Windows
| 2000 worked fine. What OS are you running?
| 
| David
| 
| Jacob Hookom wrote:
| 
| >What permissions do I need to setup for Tomcat to be able to access
| >shared network drives on win2k?  I'm able to access shares through an
| >IDE of course, but Tomcat returns null for all io calls to these
mapped
| >drives.
| >
| >If anyone has accomplished this or can point me in the right
direction,
| >I would be much obliged :-)
| >
| >Regards,
| >Jacob Hookom
| >Comprehensive Computer Science
| >University of Wisconsin, Eau Claire
| >
| >
| >
| >---
| >Outgoing mail is certified Virus Free.
| >Checked by AVG anti-virus system (http://www.grisoft.com).
| >Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
| >
| >
| >
| >--
| >To unsubscribe, e-mail:   
| >For additional commands, e-mail: 
| >
| 
| 
| 
| --
| To unsubscribe, e-mail:   
| For additional commands, e-mail: 
| 
| ---
| Incoming mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
| 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: using INCLUDE with crossContext

2002-08-09 Thread Andrew

The include directive is relative to the webapp.  This is as specified
in the JSP Spec.  From my understanding, you can use the 
to retrieve files from other contexts.


- Andrew

> -Original Message-
> From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 09, 2002 9:23 AM
> To: [EMAIL PROTECTED]
> Subject: using INCLUDE with crossContext
> 
> 
> I'm trying to use the crossContext feature to include a file 
> that is in a context (that I call /global/) in other contexts...
>  
> /global is is configured in server.xml with 
> crossContext="true", but when I do <%@include 
> file="/global/includes/file.jsp"%>
> it gives me an error message with file not found...
>  
> what is wrong?
>  
> .:| Christian J. Dechery
> .:| FINEP - Depto. de Sistemas
> .:| [EMAIL PROTECTED]
> .:| (21) 2555-0332
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Andrew

actually, I don't believe that the name of the xml file has to be the
context name, but don't quote me on that.  The important information is
the context information within the XML file.  From my understanding, you
just have to use  as your root element, and you can add any
sub elements necessary.

- Andrew

-Original Message-
From: Horn, Rob [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 10:12 AM
To: 'Tomcat Users List'
Subject: RE: Is it possible to include via a directive snippets into the
server.xml file


Thanks Andrew, 
is there a naming convention that must be followed or do you know where
I can get further info on this. 
Cheers 
Rob 
-Original Message- 
From: Andrew [mailto:[EMAIL PROTECTED]] 
Sent: 09 August 2002 14:12 
To: 'Tomcat Users List' 
Subject: RE: Is it possible to include via a directive snippets into the

server.xml file 


in Tomcat 4.1.x you can put XML files containing context information 
into your webapps directory and TC adds them as contexts.  this is how 
the admin and manager apps are added. 
  
  
- Andrew 
-Original Message- 
From: Horn, Rob [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 5:19 AM 
To: '[EMAIL PROTECTED]' 
Subject: Is it possible to include via a directive snippets into the 
server.xml file 



Within our project we have an overlap of responsibility between the 
infrastructure team who are responsible for building the application 
servers and the development team who are responsible for delivering an 
application ready for deployment. 
The overlap centres on server.xml 
The infrastructure guys need to put host specific information into 
server.xml 
The development guys are dependent on a context definition and resources

defined within it. 
My question is therefore ... is it possible to "include" a snippet for 
the context that the development team can maintain into the 
infrastructure maintain server.xml file. 
Cheers 
Rob Horn 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Converting HOST to IP an IP to HOST

2002-08-09 Thread Turner, John


Well, so far you've asked two different questions, yet they are supposed to
be the same.

Your first post wanted an IP address from a name, getByName() will do that
for you, assuming by "name" you mean fully-qualified internet domain name.  

Now you are saying that the IP address will actually be in the URL, in which
case you don't need to look it up, so it's not clear what you are trying to
do.

If you need to differentiate content based on whether someone accesses a
resource by IP address or name, and there are many possible IP addresses,
then all you have to do is test if the value returned from getRequestURI()
has an IP address in it.  So rather than look for a specific IP address, all
you have to do is look for ANY IP address.  That will tell you if someone
entered the machine name or not.  

If you need something to translate a Microsoft WINS name (server name) to an
IP address, you'll need some sort of Java WINS library...check google...my
guess is the SAMBA group has written one (http://www.samba.org) but it may
not be generally available.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Jose Francisco Junior [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 2:55 PM
To: Tomcat Users List
Subject: Converting HOST to IP an IP to HOST


All right, but it does not solve my problem. I did a local
 web system that can be accessed both by IP or HOST.
 Depending on the way the user accessed( by HOST or IP )
 the application I must display different contents. 

I could do this:

if(
 request.getRequestURL().toString().equals("192.168.20.10")
 ) 
 out.print("show IP content"); 
else 
 ou.print("show HOST content");

But the web server has many network devices and the user
 can accesss the system from many other IP and HOSTs.

The InetAddress.getByName() does not work with the machine
 network name only with inet hosts.

Does anybody has any idea ???


Thanks in advice,
Junior



On Fri, 9 Aug 2002 13:50:59 -0400 
"Turner, John" <[EMAIL PROTECTED]> wrote:
>
>Come on...RTFM:
>
>java.net.InetAddress.getByName();
>
>Sheesh.
>
>John Turner
>[EMAIL PROTECTED]
>
>
>-Original Message-
>From: Jose Francisco Junior [mailto:[EMAIL PROTECTED]]
>Sent: Friday, August 09, 2002 1:44 PM
>To: Tomcat Users List
>Subject: Re: Configuration for High TPS
>
>
>Please,
>
>I know it is a bit off-topic but I am trying to get a IP
> address from an URL like this:
>new URL("http://java.sun.com";); //this is the URL
>
>How can I get the IP address from this URL? Any idea ??
>
>
>Thanks in advance,
>Junior 
>
>Don't E-Mail, ZipMail! http://www.zipmail.com/
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:
>   
>For additional commands, e-mail:
> 
>

-
Prefiro as lágrimas da derrota
do que a vergonha de não ter lutado... 

Willan Brook
-

Don't E-Mail, ZipMail! http://www.zipmail.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Precompiling JSPs for Tomcat

2002-08-09 Thread Rossen Raykov

Try something like:



  
  
  
  
  
  
  ...





  
  
  
  
  
  
  
  
  
  




Regards,
Rossen

> -Original Message-
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 2:18 PM
> To: [EMAIL PROTECTED]
> Subject: Precompiling JSPs for Tomcat
> 
> 
> Hi all, 
> 
> I'm having some issues with using Ant's  task (I have a 
> thread going
> on the Ant mailing list), is there any way to manually call 
> the compilation
> for Tomcat's build? Somehow, Tomcat must do it, so I figure 
> there has to be
> a way to kluge something together that does the same thing?
> 
> -- 
> Sean LeBlanc - Nutros.com
> Random fortune/quote:
> The biggest difference between time and space is that you can't reuse
> time.
>   -- Merrick Furst
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

Thanks Mark!  That's some good advice.  I haven't moved on to "tweaking" the
JVM yet, I know there are some options I can use to increase performance,
but I'm not to that point yet.

I'm sticking with the standalone for simplicity.  I'll likely turn this over
to someone else, and the fewer parts, the better.  We examined using Apache
and JServ, and a coworker informed me the installation wasn't that
straightforward.

The logging tip is a good one, thanks!

-Original Message-
From: Mark Annal [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:58 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


We ran some high TPS testing recently using a Sun 220R running Solaris
8. We were running an Apache/Tomcat combination using the mod_webapp
connector.

Just running a dumb simple servlet we were topping out at 165 tps and
80% CPU.

We tried repeating the test using Tomcat standalone trying to figure out
where the bottleneck was. We still topped out at 165 tps despite
everything we tried to tweak. Our CPU was drastically reduced though to
40%.

After running some e-mails through this list, the consensus was that we
needed to tweak with our JVM as this was probably the cause of our
"ceiling". Not the web server configuration and not the horsepower on
the machine. Actually, in standalone mode, we could not drive our CPU
load beyond 40%.

So far, we haven't had a chance to research this further and our
production app is not pushing any limits just yet so its on the back
burner.

By the way, check how much stuff your Tomcat installation is logging.
The default configuration is pretty verbose and this consumes large
amounts of horsepower writing it all to disk. WinNT isn't overly good at
walking and chewing gum and a lot of disk activity can drain resources
pretty quickly.

_

Mark Annal   e-mail: [EMAIL PROTECTED]
TARGUSinfo   phone : (585) 598-7011
255 Woodcliff Drive  fax   : (585) 598-7001
Fairport, NY 14450   web   : www.targusinfo.com
_


-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 2:32 PM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


Have you integrated Tomcat with another webserver for the static
content, assuming you have some.  That would more than likely improve
performance.

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:52 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 1:50 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> Where can I find documentation on the Coyote connector (such
> as the exact
> class name)?
> 
> What is really bothering me (currently), is once I start
> getting connection
> errors, my CPU usage (roughly) doubles, and I get connection 
> errors much
> more easily (as if acceptCount was reduced somehow).  Any ideas on the
> cause/solution for this?
> 
> -Original Message-
> From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:31 AM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> what version of tomcat are you running? In the 4+ versions
> the Coyote HTTP
> connector is supposed to perform better. 
> 
> > -Original Message-
> > From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 09, 2002 12:23 PM
> > To: Tomcat Users List
> > Subject: Configuration for High TPS
> > 
> > 
> > I'm attempting to configure Tomcat for a test environment to
> > handle a high
> > number of transactions per second (TPS) and would like any 
> > advice others may
> > like to contribute.  The machine is a fairly powerful dual 
> > processor machine
> > (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> > where I can
> > specify the TPS and number of requests total to send.
> > 
> > I'm running the following with "ok" results, but I'm
> interested in any
> > suggestions or better explanations of some of the fields:
> > 
> >  > className="org.apache.catalina.connector.http.HttpConnector"
> >port="8080" minProcessors="200" maxProcessors="200"
> >enableLookups="true" redirectPort="8443"
> >acceptCount="2000" debug="0" 
> > connectionTimeout="6"/>
> > 
> > Perhaps my biggest problem is the number of connections
> > Tomcat accepts fills
> > up rather quickly, some of the connections my tool generates 
> > are refused
> > (presumably due to the acceptCount limit being reached, and I 
> > have increased
> > it a

RE: Connection/acceptCount Problem

2002-08-09 Thread Marinko, Jeff

JDK:  1.4 and 1.3.1 (currently 1.4)

OS:  WinNT 4, no service packs on test machine

enableLookups: Maybe slight improvement.  I already stated it could handle
150 TPS with it set to "true".

test tool:  custom program.  I did not write it, only using it.  Not running
IIS, but I'm pretty sure it is not the tool.  Currently "testing" Tomcat
versus some custom C++ code (using the same tool for both), and the
connection problem does not happen with the C++ code.

Like I said before, I'm pretty sure it's Tomcat. Once the problem starts
happening, Tomcat's CPU usage nearly doubles when running relatively low TPS
values (like 40).

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:50 AM
To: Tomcat Users List
Subject: RE: Connection/acceptCount Problem


You really aren't giving enough detail in your messages. You are trying to
treat a complex problem (hundreds of transactions per second) as a simple,
something is wrong with one thing issue. Scaling performance to these levels
is usually a combination of factors. There are rarely magic bullets when it
comes to things like this.

What JDK are you using? Have you tried using different JDKs?

What operating system are you using? You said WinNT in your initial post. Is
that WinNT 4? What service packs have been applied?

You never posted a response as to whether setting enableLookups="false" made
any difference.

What test tool are you using? Are you sure the issue is in Tomcat, and not
in the test tool/station? I assume you have IIS installed. Have you tried
using the same test tool to put 200 connections per second to IIS?

Have you tried scaling your transactions per second upwards and observing
the behavior at different loads?

George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.mhsoftware.com




-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 12:32 PM
To: [EMAIL PROTECTED]
Subject: Connection/acceptCount Problem


I've mentioned this before in my Configuration e-mail, but it appears
important enough for me to mention it again (as there hasn't been a
response, and it is a pretty serious problem IMO).

When I run tests at a high TPS, I might encounter a "can't connect" error
(looks like I've reached the acceptCount limit).  That's fine with me, so I
stop the test and get ready to start another.  When I start the next test (I
usually wait a few seconds, let tomcat's CPU usage drop off), I immediately
start getting "can't connect" errors, which should not be possible in the
amount of time I'm getting them (TPS of 100, acceptCount 1000, that should
be 10 seconds before I should get these errors, right?)

My only "fix" for this problem is to shutdown and restart Tomcat, which is
not really a solution.

Is this a known problem or bug? Possible I misconfigured something?

Jeff


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Mark Annal wrote:

> Date: Fri, 9 Aug 2002 11:58:05 -0700
> From: Mark Annal <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Configuration for High TPS
>
> We ran some high TPS testing recently using a Sun 220R running Solaris
> 8. We were running an Apache/Tomcat combination using the mod_webapp
> connector.
>
> Just running a dumb simple servlet we were topping out at 165 tps and
> 80% CPU.
>
> We tried repeating the test using Tomcat standalone trying to figure out
> where the bottleneck was. We still topped out at 165 tps despite
> everything we tried to tweak. Our CPU was drastically reduced though to
> 40%.
>
> After running some e-mails through this list, the consensus was that we
> needed to tweak with our JVM as this was probably the cause of our
> "ceiling". Not the web server configuration and not the horsepower on
> the machine. Actually, in standalone mode, we could not drive our CPU
> load beyond 40%.
>
> So far, we haven't had a chance to research this further and our
> production app is not pushing any limits just yet so its on the back
> burner.
>
> By the way, check how much stuff your Tomcat installation is logging.
> The default configuration is pretty verbose and this consumes large
> amounts of horsepower writing it all to disk. WinNT isn't overly good at
> walking and chewing gum and a lot of disk activity can drain resources
> pretty quickly.
>

One particular thing you will want to do is kill the access logging that
was turned on by default through 4.0.2 or so -- simply comment out the
 element that defines the AccessLogValve in server.xml it is
enabled.

Craig


> _
>
> Mark Annal   e-mail: [EMAIL PROTECTED]
> TARGUSinfo   phone : (585) 598-7011
> 255 Woodcliff Drive  fax   : (585) 598-7001
> Fairport, NY 14450   web   : www.targusinfo.com
> _
>
>
> -Original Message-
> From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 2:32 PM
> To: Tomcat Users List
> Subject: RE: Configuration for High TPS
>
>
> Have you integrated Tomcat with another webserver for the static
> content, assuming you have some.  That would more than likely improve
> performance.
>
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 09, 2002 12:52 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Configuration for High TPS
> >
> >
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
> >
> > John Turner
> > [EMAIL PROTECTED]
> >
> >
> > -Original Message-
> > From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 09, 2002 1:50 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Configuration for High TPS
> >
> >
> > Where can I find documentation on the Coyote connector (such
> > as the exact
> > class name)?
> >
> > What is really bothering me (currently), is once I start
> > getting connection
> > errors, my CPU usage (roughly) doubles, and I get connection
> > errors much
> > more easily (as if acceptCount was reduced somehow).  Any ideas on the
> > cause/solution for this?
> >
> > -Original Message-
> > From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 09, 2002 10:31 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Configuration for High TPS
> >
> >
> > what version of tomcat are you running? In the 4+ versions
> > the Coyote HTTP
> > connector is supposed to perform better.
> >
> > > -Original Message-
> > > From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, August 09, 2002 12:23 PM
> > > To: Tomcat Users List
> > > Subject: Configuration for High TPS
> > >
> > >
> > > I'm attempting to configure Tomcat for a test environment to
> > > handle a high
> > > number of transactions per second (TPS) and would like any
> > > advice others may
> > > like to contribute.  The machine is a fairly powerful dual
> > > processor machine
> > > (1+ GHz) running WinNT.  I'm using a tool to send requests,
> > > where I can
> > > specify the TPS and number of requests total to send.
> > >
> > > I'm running the following with "ok" results, but I'm
> > interested in any
> > > suggestions or better explanations of some of the fields:
> > >
> > >  > > className="org.apache.catalina.connector.http.HttpConnector"
> > >port="8080" minProcessors="200" maxProcessors="200"
> > >enableLookups="true" redirectPort="8443"
> > >acceptCount="2000" debug="0"
> > > connectionTimeout="6"/>
> > >
> > > Perhaps my biggest problem is the number of connections
> > > Tomcat accepts fills
> > > up rather quickly, some of the connections my tool generates
> > > are refused
> > > (presumably due to the acceptCount

Re: Tomcat 4.1.x JAASRealm Implementation

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, James Krygowski wrote:

> Date: Fri, 9 Aug 2002 14:39:57 -0400
> From: James Krygowski <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Tomcat 4.1.x JAASRealm Implementation
>
> Hey All (Craig particularly)-
>
> Going through the code that exists in 4.1.8, I noticed that in the JAASRealm
> comments, Craig makes mention of using classes implementing the Principal
> interface to represent Users and Roles.  This sounds like a good approach
> given the vagueness surrounding the JAAS implementation once you get into
> implementing it.  In the JAASRealm class, there are setters for configuring
> the JAASRealm with the names of Principal classes that contain Users and
> Roles.  After running a "Find Usages" with IDEA, I wasn't able to find any
> code which references these methods.  So, how does the JAASRealm find out
> what classes contain users vs. roles?  Is there some kind of magic going on
> with the realm config node in server.xml?  I'd like to start using JAAS on
> Tomcat since we currently use JAAS for our JRun servers and converting the
> existing LoginModules won't be too much of a pain.
>

As you've undoubtedly discovered, the JAAS spec doesn't provide any
guidance for figuring out which Principal is which in the Subject that
gets returned.  Looking inside some of the existing implementations (such
as the one that can access an NT domain), this was being done by hard
coded instanceof checks on particular Principal subclasses.

So, to generalize this a little, JAASRealm lets you declare the fully
qualified class names of classes that represent your roles (in the
"roleClasses" property).  You can see it used in the createPrincipal()
method inside JAASRealm, where it is checking the classname of each
returned Principal against the list of class names you provided.  When it
finds a match, it assumes that principal.getName() on that Principal will
return the role name that has been authorized for this user.

The "userClasses" property serves a similar purpose for saying which
classes actually represent the user.

NOTE:  The implementation classes themselves need to be visible to
Catalina's internal class loaders for all of this to work.  The simplest
thing to do is put them in a JAR file in $CATALINA_HOME/server/lib, or as
unpacked classes under $CATALINA_HOME/server/classes.

NOTE:  You won't see any direct references to the setRoleClasses() or
setUserClasses() methods.  The code that parses server.xml (the Digester
module) has magic code (well, it's actually separately available in
commons-beanutils :-) in it that matches up attributes in the XML
elements to the corresponding property setters in the class.  So, you
configure one of these beasts like this:

  

and the setter gets called for you via Java's introspection and
reflection capabilities.

> jk
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Mark Annal

We ran some high TPS testing recently using a Sun 220R running Solaris
8. We were running an Apache/Tomcat combination using the mod_webapp
connector.

Just running a dumb simple servlet we were topping out at 165 tps and
80% CPU.

We tried repeating the test using Tomcat standalone trying to figure out
where the bottleneck was. We still topped out at 165 tps despite
everything we tried to tweak. Our CPU was drastically reduced though to
40%.

After running some e-mails through this list, the consensus was that we
needed to tweak with our JVM as this was probably the cause of our
"ceiling". Not the web server configuration and not the horsepower on
the machine. Actually, in standalone mode, we could not drive our CPU
load beyond 40%.

So far, we haven't had a chance to research this further and our
production app is not pushing any limits just yet so its on the back
burner.

By the way, check how much stuff your Tomcat installation is logging.
The default configuration is pretty verbose and this consumes large
amounts of horsepower writing it all to disk. WinNT isn't overly good at
walking and chewing gum and a lot of disk activity can drain resources
pretty quickly.

_

Mark Annal   e-mail: [EMAIL PROTECTED]
TARGUSinfo   phone : (585) 598-7011
255 Woodcliff Drive  fax   : (585) 598-7001
Fairport, NY 14450   web   : www.targusinfo.com
_


-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 2:32 PM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


Have you integrated Tomcat with another webserver for the static
content, assuming you have some.  That would more than likely improve
performance.

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:52 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 1:50 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> Where can I find documentation on the Coyote connector (such
> as the exact
> class name)?
> 
> What is really bothering me (currently), is once I start
> getting connection
> errors, my CPU usage (roughly) doubles, and I get connection 
> errors much
> more easily (as if acceptCount was reduced somehow).  Any ideas on the
> cause/solution for this?
> 
> -Original Message-
> From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:31 AM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> what version of tomcat are you running? In the 4+ versions
> the Coyote HTTP
> connector is supposed to perform better. 
> 
> > -Original Message-
> > From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 09, 2002 12:23 PM
> > To: Tomcat Users List
> > Subject: Configuration for High TPS
> > 
> > 
> > I'm attempting to configure Tomcat for a test environment to
> > handle a high
> > number of transactions per second (TPS) and would like any 
> > advice others may
> > like to contribute.  The machine is a fairly powerful dual 
> > processor machine
> > (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> > where I can
> > specify the TPS and number of requests total to send.
> > 
> > I'm running the following with "ok" results, but I'm
> interested in any
> > suggestions or better explanations of some of the fields:
> > 
> >  > className="org.apache.catalina.connector.http.HttpConnector"
> >port="8080" minProcessors="200" maxProcessors="200"
> >enableLookups="true" redirectPort="8443"
> >acceptCount="2000" debug="0" 
> > connectionTimeout="6"/>
> > 
> > Perhaps my biggest problem is the number of connections
> > Tomcat accepts fills
> > up rather quickly, some of the connections my tool generates 
> > are refused
> > (presumably due to the acceptCount limit being reached, and I 
> > have increased
> > it a couple times).
> > 
> > Any advice would be appreciated!
> > 
> > Jeff
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> --
> To unsubscribe, e-mail: 
> 
> For additional commands, e-mail: 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail: 
> 
> For additional commands, e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:


Re: java.endorsed.dirs

2002-08-09 Thread Jacob Kjome

Hello Neo,

Well, you can upgrade to Tomcat-4.1.x where they now include a
$CATALINA_HOME/common/endorsed directory.  Or, you can use java's
standard endorsed dir: $JAVA_HOME/jre/lib/endorsed

Not sure how to add your own endorsed directories, though.  Maybe
Tomcat-4.1.x will understand the -Dendorsed.dirs flag since it now
provides the common/endorsed directory where Tomcat-4.0.x didn't.

Jake

Friday, August 09, 2002, 1:07:23 PM, you wrote:

N> How can I configure my custom instance of the Tomcat service to append my
N> endorsed.dir?  I tried adding the flag (-Djava.endorsed.dirs='') to my
N> tomcat service installation script but the value is ignored by tomcat once
N> it starts up.

N> I stumbled across a couple web pages that lead me to believe it is not
N> possible to accomplish this given the current Tomcat classloader
N> implementation.  If that is indeed the case...has this issue been address
N> and what version of Tomcat can I find it in?

N> I'm using Tomcat 4.0.4 on Win32.

N> Thanks in advance,
N> Neo


N> --
N> To unsubscribe, e-mail:   
N> For additional commands, e-mail: 



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Converting HOST to IP an IP to HOST

2002-08-09 Thread Jose Francisco Junior

All right, but it does not solve my problem. I did a local
 web system that can be accessed both by IP or HOST.
 Depending on the way the user accessed( by HOST or IP )
 the application I must display different contents. 

I could do this:

if(
 request.getRequestURL().toString().equals("192.168.20.10")
 ) 
 out.print("show IP content"); 
else 
 ou.print("show HOST content");

But the web server has many network devices and the user
 can accesss the system from many other IP and HOSTs.

The InetAddress.getByName() does not work with the machine
 network name only with inet hosts.

Does anybody has any idea ???


Thanks in advice,
Junior



On Fri, 9 Aug 2002 13:50:59 -0400 
"Turner, John" <[EMAIL PROTECTED]> wrote:
>
>Come on...RTFM:
>
>java.net.InetAddress.getByName();
>
>Sheesh.
>
>John Turner
>[EMAIL PROTECTED]
>
>
>-Original Message-
>From: Jose Francisco Junior [mailto:[EMAIL PROTECTED]]
>Sent: Friday, August 09, 2002 1:44 PM
>To: Tomcat Users List
>Subject: Re: Configuration for High TPS
>
>
>Please,
>
>I know it is a bit off-topic but I am trying to get a IP
> address from an URL like this:
>new URL("http://java.sun.com";); //this is the URL
>
>How can I get the IP address from this URL? Any idea ??
>
>
>Thanks in advance,
>Junior 
>
>Don't E-Mail, ZipMail! http://www.zipmail.com/
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:
>   
>For additional commands, e-mail:
> 
>

-
Prefiro as lágrimas da derrota
do que a vergonha de não ter lutado... 

Willan Brook
-

Don't E-Mail, ZipMail! http://www.zipmail.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Connection/acceptCount Problem

2002-08-09 Thread Sexton, George

You really aren't giving enough detail in your messages. You are trying to
treat a complex problem (hundreds of transactions per second) as a simple,
something is wrong with one thing issue. Scaling performance to these levels
is usually a combination of factors. There are rarely magic bullets when it
comes to things like this.

What JDK are you using? Have you tried using different JDKs?

What operating system are you using? You said WinNT in your initial post. Is
that WinNT 4? What service packs have been applied?

You never posted a response as to whether setting enableLookups="false" made
any difference.

What test tool are you using? Are you sure the issue is in Tomcat, and not
in the test tool/station? I assume you have IIS installed. Have you tried
using the same test tool to put 200 connections per second to IIS?

Have you tried scaling your transactions per second upwards and observing
the behavior at different loads?

George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.mhsoftware.com




-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 12:32 PM
To: [EMAIL PROTECTED]
Subject: Connection/acceptCount Problem


I've mentioned this before in my Configuration e-mail, but it appears
important enough for me to mention it again (as there hasn't been a
response, and it is a pretty serious problem IMO).

When I run tests at a high TPS, I might encounter a "can't connect" error
(looks like I've reached the acceptCount limit).  That's fine with me, so I
stop the test and get ready to start another.  When I start the next test (I
usually wait a few seconds, let tomcat's CPU usage drop off), I immediately
start getting "can't connect" errors, which should not be possible in the
amount of time I'm getting them (TPS of 100, acceptCount 1000, that should
be 10 seconds before I should get these errors, right?)

My only "fix" for this problem is to shutdown and restart Tomcat, which is
not really a solution.

Is this a known problem or bug? Possible I misconfigured something?

Jeff


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 4.1.x JAASRealm Implementation

2002-08-09 Thread James Krygowski

Hey All (Craig particularly)-

Going through the code that exists in 4.1.8, I noticed that in the JAASRealm
comments, Craig makes mention of using classes implementing the Principal
interface to represent Users and Roles.  This sounds like a good approach
given the vagueness surrounding the JAAS implementation once you get into
implementing it.  In the JAASRealm class, there are setters for configuring
the JAASRealm with the names of Principal classes that contain Users and
Roles.  After running a "Find Usages" with IDEA, I wasn't able to find any
code which references these methods.  So, how does the JAASRealm find out
what classes contain users vs. roles?  Is there some kind of magic going on
with the realm config node in server.xml?  I'd like to start using JAAS on
Tomcat since we currently use JAAS for our JRun servers and converting the
existing LoginModules won't be too much of a pain.

jk


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




error building mod_jk

2002-08-09 Thread Aaron

From: Aaron <[EMAIL PROTECTED]>
Date: Fri Aug 9, 2002  1:12:36  PM US/Central
To: [EMAIL PROTECTED]
Subject: error compiling mod_jk

Hi-

I'm trying to build mod_jk on Mac OS X.  The build fails with this at  
the end:

[so] StdErr:
[so] libtool: unrecognized option `-arch_only'
[so] Try `libtool --help' for more information.

BUILD FAILED
file:/usr/local/jakarta-tomcat-connectors/jk/native/build.xml:134: Link  
failed mod_jk

I am using libtool-1.4.2 and I see the -arch_only option in the  
documentation.  Does anyone know how to fix this?

Thanks,

Aaron

[mobile:local/jakarta-tomcat-connectors/jk] mobile# ant native
Buildfile: build.xml

jkant:
 [javac] Compiling 17 source files to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes
  [copy] Copying 1 file to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes/META-INF
   [jar] Building jar:  
/usr/local/jakarta-tomcat-connectors/jk/build/lib/jkant.jar

detect:
  [echo]  jakarta-tomcat-connectors 

report:
  [echo] Tomcat33: ${tomcat33.detect}
  [echo] Tomcat40:  true ../../jakarta-tomcat-4.0.3
  [echo] Tomcat41: true ../../jakarta-tomcat-4.1.8
  [echo] Apache13: ${apache13.detect} ${apache13.home}
  [echo] Apache2: true /usr/local/apache2
  [echo] iPlanet:  ${iplanet.detect} ${iplanet.home}
  [echo] IIS:  ${iis.detect} ${iis.home}
  [echo] Using catalina.home:  ${catalina.home}

native:

init:
  [echo] /var/root
[available] DEPRECATED -  used to override an existing  
property.
[available]   Build file should not reuse the same property name for  
different values.
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk

apache20:
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2
[so] Compiling 19 out of 19
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: missing initializer
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: (near initialization for `jk_cmds[16].func')
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp12_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c:  
In function `ajp_process_callback':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_ajp_common.c:949: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_connect.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_context.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_jni_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_map.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_md5.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_pool.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_sockbuf.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c: In function `map_uri_to_worker':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c:571: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_util.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_worker.c
Linking  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/mod_jk.so
[so] Link failed 1
[so] Command:libtool --mode=link cc -module -avoid-version  
-rpath /usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2 -o  
mod_jk.la  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/apache-2.0/ 
mod_jk.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp12_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14_worker.lo  
/us

RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

I plan to do pre-caching later.  Currently my "first" test run is the
unlucky user, which I'm calling a "cold start" and seeing how well it
performs from a clear cache.

No, I'm running TC stand-alone currently.  Running it with Apache will
improve performance? I'll look into it, but for now I'm running stand-alone.

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:32 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


Have you integrated Tomcat with another webserver for the static content,
assuming you have some.  That would more than likely improve performance.

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:52 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 1:50 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> Where can I find documentation on the Coyote connector (such 
> as the exact
> class name)?
> 
> What is really bothering me (currently), is once I start 
> getting connection
> errors, my CPU usage (roughly) doubles, and I get connection 
> errors much
> more easily (as if acceptCount was reduced somehow).  Any ideas on the
> cause/solution for this?
> 
> -Original Message-
> From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:31 AM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> what version of tomcat are you running? In the 4+ versions 
> the Coyote HTTP
> connector is supposed to perform better. 
> 
> > -Original Message-
> > From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 09, 2002 12:23 PM
> > To: Tomcat Users List
> > Subject: Configuration for High TPS
> > 
> > 
> > I'm attempting to configure Tomcat for a test environment to 
> > handle a high
> > number of transactions per second (TPS) and would like any 
> > advice others may
> > like to contribute.  The machine is a fairly powerful dual 
> > processor machine
> > (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> > where I can
> > specify the TPS and number of requests total to send.
> > 
> > I'm running the following with "ok" results, but I'm 
> interested in any
> > suggestions or better explanations of some of the fields:
> > 
> >  > className="org.apache.catalina.connector.http.HttpConnector"
> >port="8080" minProcessors="200" maxProcessors="200"
> >enableLookups="true" redirectPort="8443"
> >acceptCount="2000" debug="0" 
> > connectionTimeout="6"/>
> > 
> > Perhaps my biggest problem is the number of connections 
> > Tomcat accepts fills
> > up rather quickly, some of the connections my tool generates 
> > are refused
> > (presumably due to the acceptCount limit being reached, and I 
> > have increased
> > it a couple times).
> > 
> > Any advice would be appreciated!
> > 
> > Jeff
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Connection/acceptCount Problem

2002-08-09 Thread Marinko, Jeff

I've mentioned this before in my Configuration e-mail, but it appears
important enough for me to mention it again (as there hasn't been a
response, and it is a pretty serious problem IMO).

When I run tests at a high TPS, I might encounter a "can't connect" error
(looks like I've reached the acceptCount limit).  That's fine with me, so I
stop the test and get ready to start another.  When I start the next test (I
usually wait a few seconds, let tomcat's CPU usage drop off), I immediately
start getting "can't connect" errors, which should not be possible in the
amount of time I'm getting them (TPS of 100, acceptCount 1000, that should
be 10 seconds before I should get these errors, right?)

My only "fix" for this problem is to shutdown and restart Tomcat, which is
not really a solution.

Is this a known problem or bug? Possible I misconfigured something?

Jeff


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Durham David Cntr 805CSS/SCBE

Have you integrated Tomcat with another webserver for the static content, assuming you 
have some.  That would more than likely improve performance.

> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:52 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 1:50 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> Where can I find documentation on the Coyote connector (such 
> as the exact
> class name)?
> 
> What is really bothering me (currently), is once I start 
> getting connection
> errors, my CPU usage (roughly) doubles, and I get connection 
> errors much
> more easily (as if acceptCount was reduced somehow).  Any ideas on the
> cause/solution for this?
> 
> -Original Message-
> From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:31 AM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> what version of tomcat are you running? In the 4+ versions 
> the Coyote HTTP
> connector is supposed to perform better. 
> 
> > -Original Message-
> > From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 09, 2002 12:23 PM
> > To: Tomcat Users List
> > Subject: Configuration for High TPS
> > 
> > 
> > I'm attempting to configure Tomcat for a test environment to 
> > handle a high
> > number of transactions per second (TPS) and would like any 
> > advice others may
> > like to contribute.  The machine is a fairly powerful dual 
> > processor machine
> > (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> > where I can
> > specify the TPS and number of requests total to send.
> > 
> > I'm running the following with "ok" results, but I'm 
> interested in any
> > suggestions or better explanations of some of the fields:
> > 
> >  > className="org.apache.catalina.connector.http.HttpConnector"
> >port="8080" minProcessors="200" maxProcessors="200"
> >enableLookups="true" redirectPort="8443"
> >acceptCount="2000" debug="0" 
> > connectionTimeout="6"/>
> > 
> > Perhaps my biggest problem is the number of connections 
> > Tomcat accepts fills
> > up rather quickly, some of the connections my tool generates 
> > are refused
> > (presumably due to the acceptCount limit being reached, and I 
> > have increased
> > it a couple times).
> > 
> > Any advice would be appreciated!
> > 
> > Jeff
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Durham David Cntr 805CSS/SCBE

You can set up an event listener to cache this data when the context is initialized.  
That's probably better than making the initial unlucky users wait.


> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:43 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> I knew I forgot a detail Running Tomcat 4.0.3 (or 4.0.4, 
> I'll likely
> upgrade to that version soon).
> 
> Quick follow up on this.
> 
> I'm testing a servlet I've written that does some caching, 
> and is very quick
> once it has cached all of its data.  During the first run, I 
> test it going
> 40 TPS (over several thousand requests).  Then I start upping 
> the TPS (same
> set of requests), and I plan to stop at 200 TPS.
> 
> Now here's an intresting problem.  My tool has reported on 
> several runs that
> it cannot connect within only a second or two of starting the 
> tool.  With an
> accept count of over 1000, I find this rather odd as it 
> should take at least
> 5 seconds at 200 TPS to fill an "acceptCount" of 1000 
> (typically the lowest
> I've set acceptCount).  I normally run into can't connect errors early
> during a test run, when my servlet is still caching its data 
> (still working
> on a way to better handle that problem also).



> 
> Any insight would be appreciated.  Thanks!
> 
> Jeff
> 
> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:23 AM
> To: Tomcat Users List
> Subject: Configuration for High TPS
> 
> 
> I'm attempting to configure Tomcat for a test environment to 
> handle a high
> number of transactions per second (TPS) and would like any 
> advice others may
> like to contribute.  The machine is a fairly powerful dual 
> processor machine
> (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> where I can
> specify the TPS and number of requests total to send.
> 
> I'm running the following with "ok" results, but I'm interested in any
> suggestions or better explanations of some of the fields:
> 
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="200" maxProcessors="200"
>enableLookups="true" redirectPort="8443"
>acceptCount="2000" debug="0" 
> connectionTimeout="6"/>
> 
> Perhaps my biggest problem is the number of connections 
> Tomcat accepts fills
> up rather quickly, some of the connections my tool generates 
> are refused
> (presumably due to the acceptCount limit being reached, and I 
> have increased
> it a couple times).
> 
> Any advice would be appreciated!
> 
> Jeff
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Precompiling JSPs for Tomcat

2002-08-09 Thread Sean LeBlanc

Hi all, 

I'm having some issues with using Ant's  task (I have a thread going
on the Ant mailing list), is there any way to manually call the compilation
for Tomcat's build? Somehow, Tomcat must do it, so I figure there has to be
a way to kluge something together that does the same thing?

-- 
Sean LeBlanc - Nutros.com
Random fortune/quote:
The biggest difference between time and space is that you can't reuse
time.
-- Merrick Furst


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




error compiling mod_jk

2002-08-09 Thread Aaron

Hi-

I'm trying to build mod_jk on Mac OS X.  I am using libtool-1.4.2 and I  
see the -arch_only option in the documentation.  Does anyone know how  
to fix this?

Thanks,

Aaron

[mobile:local/jakarta-tomcat-connectors/jk] mobile# ant native
Buildfile: build.xml

jkant:
 [javac] Compiling 17 source files to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes
  [copy] Copying 1 file to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes/META-INF
   [jar] Building jar:  
/usr/local/jakarta-tomcat-connectors/jk/build/lib/jkant.jar

detect:
  [echo]  jakarta-tomcat-connectors 

report:
  [echo] Tomcat33: ${tomcat33.detect}
  [echo] Tomcat40:  true ../../jakarta-tomcat-4.0.3
  [echo] Tomcat41: true ../../jakarta-tomcat-4.1.8
  [echo] Apache13: ${apache13.detect} ${apache13.home}
  [echo] Apache2: true /usr/local/apache2
  [echo] iPlanet:  ${iplanet.detect} ${iplanet.home}
  [echo] IIS:  ${iis.detect} ${iis.home}
  [echo] Using catalina.home:  ${catalina.home}

native:

init:
  [echo] /var/root
[available] DEPRECATED -  used to override an existing  
property.
[available]   Build file should not reuse the same property name for  
different values.
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk

apache20:
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2
[so] Compiling 19 out of 19
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: missing initializer
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: (near initialization for `jk_cmds[16].func')
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp12_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c:  
In function `ajp_process_callback':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_ajp_common.c:949: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_connect.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_context.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_jni_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_map.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_md5.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_pool.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_sockbuf.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c: In function `map_uri_to_worker':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c:571: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_util.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_worker.c
Linking  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/mod_jk.so
[so] Link failed 1
[so] Command:libtool --mode=link cc -module -avoid-version  
-rpath /usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2 -o  
mod_jk.la  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/apache-2.0/ 
mod_jk.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp12_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp_common.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_connect.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_context.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_jni_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_lb_work

RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

It can do at least 150... :-)

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:07 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


Can your DNS server handle 200 reverse lookups per second?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 12:04 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


I was aware of that, but I thought I might want to leave that on for others
using Tomcat.  I'll turn it off for the tests, thanks.

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:01 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


You might want to set enableLookups="false". You realize, that's doing a
reverse DNS lookup for every connection don't you?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 11:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with "ok" results, but I'm interested in any
suggestions or better explanations of some of the fields:



Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Sexton, George

Can your DNS server handle 200 reverse lookups per second?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 12:04 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


I was aware of that, but I thought I might want to leave that on for others
using Tomcat.  I'll turn it off for the tests, thanks.

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:01 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


You might want to set enableLookups="false". You realize, that's doing a
reverse DNS lookup for every connection don't you?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 11:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with "ok" results, but I'm interested in any
suggestions or better explanations of some of the fields:



Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

I was aware of that, but I thought I might want to leave that on for others
using Tomcat.  I'll turn it off for the tests, thanks.

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:01 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


You might want to set enableLookups="false". You realize, that's doing a
reverse DNS lookup for every connection don't you?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 11:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with "ok" results, but I'm interested in any
suggestions or better explanations of some of the fields:



Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Error 500 need help

2002-08-09 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i tried the trick and it didn't work.  i still get the same error message.
it looked more like a java issue to me. have any more suggestions?

what i doing here is building tomcat straight from source and i have the
most recent src version off the jakarta website.  


-Original Message-
From: Carlos Ferreira [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 12:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Error 500 need help



it looks like you have an xml parser conflict ( tomcat's xerces and the
jdk's xml parser ).

either download tomcat4-LE-jdk14 or reorder your xml parser's jar files in
your classpath ( ie put xml-apis.jar, xercesImpl.jar first in your
CLASSPATH). check xerces' documentation for further info.


good look

> ***i'm getting an error i can't solve.
> during the build process i get a message that states this:
> [javadoc]
>
/Jakarta/jakarta-tomcat-4.0.4-src/jasper/src/share/org/apache/jasper/compile
> r/SunJavaCompiler.java:65:package sun.tools.javac does not exist
> import sun.tools.javac.Main;
>  ^
> the build is successful but the jsp examples generate the error below
>
> any one have a solution??  i'm using j2sdk1.4.0_01 on read hat linux
> 7.2. i'm assuming that i get this error because of the message above.
>
>
> Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
> Exception
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
>   at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
> 6)
>   at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:214)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
> .java:475)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
>   at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1027)
>   at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
> )
>   at java.lang.Thread.run(Thread.java:536)
> root cause
> java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:130)
>   at
>
org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
> Parser.java:347)
>   at
>
org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
> )
>   at org.apache.xerces.pars

RE: Configuration for High TPS

2002-08-09 Thread Sexton, George

You might want to set enableLookups="false". You realize, that's doing a
reverse DNS lookup for every connection don't you?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 11:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with "ok" results, but I'm interested in any
suggestions or better explanations of some of the fields:



Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Turner, John


As far as I know, the connectors aren't tied to specific tomcat versions
(separate projects).  If memory serves, that resource is the same resource
that has always been posted under the 4.0 docs.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:57 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


I have been looking through those online docs looking for any configuration
info that might be useful, but I'm using 4.0.3, so I've been reading the 4.0
docs.  It doesn't appear this is available in 4.0 (as it is under the 4.1
docs).

Thanks for the link though!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:52 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS



http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:50 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


Where can I find documentation on the Coyote connector (such as the exact
class name)?

What is really bothering me (currently), is once I start getting connection
errors, my CPU usage (roughly) doubles, and I get connection errors much
more easily (as if acceptCount was reduced somehow).  Any ideas on the
cause/solution for this?

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:23 PM
> To: Tomcat Users List
> Subject: Configuration for High TPS
> 
> 
> I'm attempting to configure Tomcat for a test environment to 
> handle a high
> number of transactions per second (TPS) and would like any 
> advice others may
> like to contribute.  The machine is a fairly powerful dual 
> processor machine
> (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> where I can
> specify the TPS and number of requests total to send.
> 
> I'm running the following with "ok" results, but I'm interested in any
> suggestions or better explanations of some of the fields:
> 
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="200" maxProcessors="200"
>enableLookups="true" redirectPort="8443"
>acceptCount="2000" debug="0" 
> connectionTimeout="6"/>
> 
> Perhaps my biggest problem is the number of connections 
> Tomcat accepts fills
> up rather quickly, some of the connections my tool generates 
> are refused
> (presumably due to the acceptCount limit being reached, and I 
> have increased
> it a couple times).
> 
> Any advice would be appreciated!
> 
> Jeff
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Sullivan, Mark E

I'm pretty sure that you can in fact use it with 4.0.*. You may have to
compile the connector distro in order to get it, but once you have the
necessary classes it should drop in with no problem. 

> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:57 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> I have been looking through those online docs looking for any 
> configuration
> info that might be useful, but I'm using 4.0.3, so I've been 
> reading the 4.0
> docs.  It doesn't appear this is available in 4.0 (as it is 
> under the 4.1
> docs).
> 
> Thanks for the link though!
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:52 AM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
> 
> John Turner
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 1:50 PM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> Where can I find documentation on the Coyote connector (such 
> as the exact
> class name)?
> 
> What is really bothering me (currently), is once I start 
> getting connection
> errors, my CPU usage (roughly) doubles, and I get connection 
> errors much
> more easily (as if acceptCount was reduced somehow).  Any ideas on the
> cause/solution for this?
> 
> -Original Message-
> From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:31 AM
> To: 'Tomcat Users List'
> Subject: RE: Configuration for High TPS
> 
> 
> what version of tomcat are you running? In the 4+ versions 
> the Coyote HTTP
> connector is supposed to perform better. 
> 
> > -Original Message-
> > From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 09, 2002 12:23 PM
> > To: Tomcat Users List
> > Subject: Configuration for High TPS
> > 
> > 
> > I'm attempting to configure Tomcat for a test environment to 
> > handle a high
> > number of transactions per second (TPS) and would like any 
> > advice others may
> > like to contribute.  The machine is a fairly powerful dual 
> > processor machine
> > (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> > where I can
> > specify the TPS and number of requests total to send.
> > 
> > I'm running the following with "ok" results, but I'm 
> interested in any
> > suggestions or better explanations of some of the fields:
> > 
> >  > className="org.apache.catalina.connector.http.HttpConnector"
> >port="8080" minProcessors="200" maxProcessors="200"
> >enableLookups="true" redirectPort="8443"
> >acceptCount="2000" debug="0" 
> > connectionTimeout="6"/>
> > 
> > Perhaps my biggest problem is the number of connections 
> > Tomcat accepts fills
> > up rather quickly, some of the connections my tool generates 
> > are refused
> > (presumably due to the acceptCount limit being reached, and I 
> > have increased
> > it a couple times).
> > 
> > Any advice would be appreciated!
> > 
> > Jeff
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

I have been looking through those online docs looking for any configuration
info that might be useful, but I'm using 4.0.3, so I've been reading the 4.0
docs.  It doesn't appear this is available in 4.0 (as it is under the 4.1
docs).

Thanks for the link though!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:52 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS



http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:50 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


Where can I find documentation on the Coyote connector (such as the exact
class name)?

What is really bothering me (currently), is once I start getting connection
errors, my CPU usage (roughly) doubles, and I get connection errors much
more easily (as if acceptCount was reduced somehow).  Any ideas on the
cause/solution for this?

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:23 PM
> To: Tomcat Users List
> Subject: Configuration for High TPS
> 
> 
> I'm attempting to configure Tomcat for a test environment to 
> handle a high
> number of transactions per second (TPS) and would like any 
> advice others may
> like to contribute.  The machine is a fairly powerful dual 
> processor machine
> (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> where I can
> specify the TPS and number of requests total to send.
> 
> I'm running the following with "ok" results, but I'm interested in any
> suggestions or better explanations of some of the fields:
> 
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="200" maxProcessors="200"
>enableLookups="true" redirectPort="8443"
>acceptCount="2000" debug="0" 
> connectionTimeout="6"/>
> 
> Perhaps my biggest problem is the number of connections 
> Tomcat accepts fills
> up rather quickly, some of the connections my tool generates 
> are refused
> (presumably due to the acceptCount limit being reached, and I 
> have increased
> it a couple times).
> 
> Any advice would be appreciated!
> 
> Jeff
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RequestDispatcher question

2002-08-09 Thread Scott Purcell

Hello,

I am trying to send a (request, response) object to a server that lives at another IP 
(or URL). I have the need to pass parameters that are in the request object, but I 
cannot seem to forward the request to the other servlet. I keep getting a error: 
"java.lang.IllegalArgumentException: Path 
http://xxx.xxx.xxx.xxx/testcode/servlet/allparams does not start with a "/" character 

When I try the same code on my local machine, within the same web app, all works 
great. So I think the coding is good.  So I am trying to figure how to get the request 
object from one box to another? Any ideas?

Thanks,


Test Code:
// from a method here
try {
gotoPage("http://XXX.XXX.X.XXX/testcode/servlet/allparams";, 
request, response);
response.sendRedirect(mm.getSomeURL());
}


private void gotoPage(String address,
  HttpServletRequest request,
  HttpServletResponse response)
throws ServletException, IOException {
RequestDispatcher dispatcher = 
getServletContext().getRequestDispatcher(address);
dispatcher.forward(request, response);

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




java.endorsed.dirs

2002-08-09 Thread Neo

How can I configure my custom instance of the Tomcat service to append my
endorsed.dir?  I tried adding the flag (-Djava.endorsed.dirs='') to my
tomcat service installation script but the value is ignored by tomcat once
it starts up.

I stumbled across a couple web pages that lead me to believe it is not
possible to accomplish this given the current Tomcat classloader
implementation.  If that is indeed the case...has this issue been address
and what version of Tomcat can I find it in?

I'm using Tomcat 4.0.4 on Win32.

Thanks in advance,
Neo


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 





RE: Configuration for High TPS

2002-08-09 Thread Turner, John


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:50 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


Where can I find documentation on the Coyote connector (such as the exact
class name)?

What is really bothering me (currently), is once I start getting connection
errors, my CPU usage (roughly) doubles, and I get connection errors much
more easily (as if acceptCount was reduced somehow).  Any ideas on the
cause/solution for this?

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:23 PM
> To: Tomcat Users List
> Subject: Configuration for High TPS
> 
> 
> I'm attempting to configure Tomcat for a test environment to 
> handle a high
> number of transactions per second (TPS) and would like any 
> advice others may
> like to contribute.  The machine is a fairly powerful dual 
> processor machine
> (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> where I can
> specify the TPS and number of requests total to send.
> 
> I'm running the following with "ok" results, but I'm interested in any
> suggestions or better explanations of some of the fields:
> 
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="200" maxProcessors="200"
>enableLookups="true" redirectPort="8443"
>acceptCount="2000" debug="0" 
> connectionTimeout="6"/>
> 
> Perhaps my biggest problem is the number of connections 
> Tomcat accepts fills
> up rather quickly, some of the connections my tool generates 
> are refused
> (presumably due to the acceptCount limit being reached, and I 
> have increased
> it a couple times).
> 
> Any advice would be appreciated!
> 
> Jeff
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Turner, John


Come on...RTFM:

java.net.InetAddress.getByName();

Sheesh.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Jose Francisco Junior [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:44 PM
To: Tomcat Users List
Subject: Re: Configuration for High TPS


Please,

I know it is a bit off-topic but I am trying to get a IP
 address from an URL like this:
new URL("http://java.sun.com";); //this is the URL

How can I get the IP address from this URL? Any idea ??


Thanks in advance,
Junior 

Don't E-Mail, ZipMail! http://www.zipmail.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

Where can I find documentation on the Coyote connector (such as the exact
class name)?

What is really bothering me (currently), is once I start getting connection
errors, my CPU usage (roughly) doubles, and I get connection errors much
more easily (as if acceptCount was reduced somehow).  Any ideas on the
cause/solution for this?

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:23 PM
> To: Tomcat Users List
> Subject: Configuration for High TPS
> 
> 
> I'm attempting to configure Tomcat for a test environment to 
> handle a high
> number of transactions per second (TPS) and would like any 
> advice others may
> like to contribute.  The machine is a fairly powerful dual 
> processor machine
> (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> where I can
> specify the TPS and number of requests total to send.
> 
> I'm running the following with "ok" results, but I'm interested in any
> suggestions or better explanations of some of the fields:
> 
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="200" maxProcessors="200"
>enableLookups="true" redirectPort="8443"
>acceptCount="2000" debug="0" 
> connectionTimeout="6"/>
> 
> Perhaps my biggest problem is the number of connections 
> Tomcat accepts fills
> up rather quickly, some of the connections my tool generates 
> are refused
> (presumably due to the acceptCount limit being reached, and I 
> have increased
> it a couple times).
> 
> Any advice would be appreciated!
> 
> Jeff
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Configuration for High TPS

2002-08-09 Thread Jose Francisco Junior

Please,

I know it is a bit off-topic but I am trying to get a IP
 address from an URL like this:
new URL("http://java.sun.com";); //this is the URL

How can I get the IP address from this URL? Any idea ??


Thanks in advance,
Junior 

Don't E-Mail, ZipMail! http://www.zipmail.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Error 500 need help

2002-08-09 Thread Carlos Ferreira


it looks like you have an xml parser conflict ( tomcat's xerces and the
jdk's xml parser ).

either download tomcat4-LE-jdk14 or reorder your xml parser's jar files in
your classpath ( ie put xml-apis.jar, xercesImpl.jar first in your
CLASSPATH). check xerces' documentation for further info.


good look

> ***i'm getting an error i can't solve.
> during the build process i get a message that states this:
> [javadoc]
> /Jakarta/jakarta-tomcat-4.0.4-src/jasper/src/share/org/apache/jasper/compile
> r/SunJavaCompiler.java:65:package sun.tools.javac does not exist
> import sun.tools.javac.Main;
>  ^
> the build is successful but the jsp examples generate the error below
>
> any one have a solution??  i'm using j2sdk1.4.0_01 on read hat linux
> 7.2. i'm assuming that i get this error because of the message above.
>
>
> Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
> Exception
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
>   at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
> 6)
>   at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:214)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
> .java:475)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1027)
>   at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
> )
>   at java.lang.Thread.run(Thread.java:536)
> root cause
> java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:130)
>   at
> org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
> Parser.java:347)
>   at
> org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
> )
>   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:151)
>   at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
>   at
> org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
> 1)
>   at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86) at
> org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:201)
>   at
> org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(T

RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

I knew I forgot a detail Running Tomcat 4.0.3 (or 4.0.4, I'll likely
upgrade to that version soon).

Quick follow up on this.

I'm testing a servlet I've written that does some caching, and is very quick
once it has cached all of its data.  During the first run, I test it going
40 TPS (over several thousand requests).  Then I start upping the TPS (same
set of requests), and I plan to stop at 200 TPS.

Now here's an intresting problem.  My tool has reported on several runs that
it cannot connect within only a second or two of starting the tool.  With an
accept count of over 1000, I find this rather odd as it should take at least
5 seconds at 200 TPS to fill an "acceptCount" of 1000 (typically the lowest
I've set acceptCount).  I normally run into can't connect errors early
during a test run, when my servlet is still caching its data (still working
on a way to better handle that problem also).

Any insight would be appreciated.  Thanks!

Jeff

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with "ok" results, but I'm interested in any
suggestions or better explanations of some of the fields:



Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Configuration for High TPS

2002-08-09 Thread Sullivan, Mark E

what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

> -Original Message-
> From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 12:23 PM
> To: Tomcat Users List
> Subject: Configuration for High TPS
> 
> 
> I'm attempting to configure Tomcat for a test environment to 
> handle a high
> number of transactions per second (TPS) and would like any 
> advice others may
> like to contribute.  The machine is a fairly powerful dual 
> processor machine
> (1+ GHz) running WinNT.  I'm using a tool to send requests, 
> where I can
> specify the TPS and number of requests total to send.
> 
> I'm running the following with "ok" results, but I'm interested in any
> suggestions or better explanations of some of the fields:
> 
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" minProcessors="200" maxProcessors="200"
>enableLookups="true" redirectPort="8443"
>acceptCount="2000" debug="0" 
> connectionTimeout="6"/>
> 
> Perhaps my biggest problem is the number of connections 
> Tomcat accepts fills
> up rather quickly, some of the connections my tool generates 
> are refused
> (presumably due to the acceptCount limit being reached, and I 
> have increased
> it a couple times).
> 
> Any advice would be appreciated!
> 
> Jeff
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with "ok" results, but I'm interested in any
suggestions or better explanations of some of the fields:



Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Servlet to JDBC connection

2002-08-09 Thread Peter O

What's wrong with this string? I can't get this string to connect to
the database, I'm trying to connect on a RH 7.2 system.

  protected String dbURL =
"jdbc:interbase://66.18.29.95:8089/opt/jakarta-tomcat-4.0.4/webapps/ROOT/database/MAIN.GDB";

The servlet dir is working, there's no error message.

-Paul

 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: IllegalStateException Current state = FLUSHED

2002-08-09 Thread andrew . cochrane

Hi Michael,

I tried upgrading to jdk 1.4.1 but the problem is still there.  I upgraded
to Tomcat 4.0.3 and this seems to fix the original problem, but now my
logging doesn't seem to work :(  

Thanks for the help,

Andy

-Original Message-
From: Michael LeValle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 9:29 AM
To: Tomcat Users List
Subject: Re: IllegalStateException Current state = FLUSHED


Andy,

I've not run into the same problem, but had some
problems (more GUI related) with sun jdk version 1.4.0.

I upgraded to sun jdk version 1.4.1beta and the problems
disappeared.

I don't know what version you're running, but if its 1.4.0
you may very well benefit from doing the same.

Michael LeValle

[EMAIL PROTECTED] wrote:

>Hi all,
>
>I've seen several posts with this same problem, but no solutions or
replies.
>Hopefully there is an answer out there... 
>
>After upgrading my JDK to 1.4 I'm flooded with IllegalStateExceptions in my
>log file. The exceptions keep coming infinitely until memory is all used up
>and Tomcat crashes.  I'm using Tomcat 3.2.3 and the exceptions only seem to
>start after I load a page before another request has been completed.  The
>log file looks like this:
>
>[EmbeddedTomcatServiceSX] 2002-08-06 14:58:21 - Ctx( /TAAC ):
>IllegalStateException in: R( /TAAC + /jsp/adminTools/ProcessorList.jsp +
>null) Current state = FLUSHED, new state = CODING
>[EmbeddedTomcatServiceSX] 2002-08-06 14:58:21 - Ctx( /TAAC ):
>IllegalStateException in: R( /TAAC + /jsp/adminTools/ProcessorList.jsp +
>null) Current state = FLUSHED, new state = CODING
>
>Does anybody know how to fix this?  Do I need to upgrade to a different
>Tomcat version?
>
>Andy
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>
>
>




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: RE: Problems with class loader

2002-08-09 Thread Cox, Charlie

ok, StandardClassLoader means that the class is trying to be loaded from
\tomcat\lib. If it were being loaded from \web-inf\lib, it would be
WebappClassLoader throwing the error.

>From your stack trace, it looks as if it is loading the Hashtable ok(through
reflection), but it is the contents of the hashtable that can't be loaded.
This would make sense since you put the Hashtable in \tomcat\lib.

How about if you try to put Hashtable in the \web-inf\lib so that the first
reflection call will find it in the current(webapp) classloader, then the
second reflection call(from hashtable) will occur in your webapp's
classloader. Of course being a java class, I'm not sure if it will have
problems being(or can be) loaded multiple times.

Charlie

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 9:07 AM
> To: [EMAIL PROTECTED]
> Subject: RE: RE: Problems with class loader
> 
> 
> see intermixed, too
> 
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Date: Fri, 9 Aug 2002 08:42:05 -0400
> Subject: RE: Problems with class loader
> 
> see intermixed
> 
> >
> > Hello,
> >
> > we have problems with the tomcat class loaders.
> >
> > scenario:
> > Tomcat 4.0.4, jdk1.3
> > 2 Applications
> >
> > App1:webapps/App1/WEB-INF/lib/x.jar
> > App2:webapps/App2/WEB-INF/lib/x.jar (the same .jar-file)
> >
> > x.jar: a.class, b.class, c.class
> >
> > b.class has a Hashtable (com.sun.java.util.collections.Hashtable) as
> > member-variable. (Hashtable is in the directory 
> $CATALINA_HOME/lib/).
> 
> why is hashtable defined in $CATALINA_HOME/lib ? Is there a reason why
> allowing the JVM to provide the java classes is a problem? 
> This shouldn't
> really matter in this case, but could cause problems keeping 
> in sync with
> the current JVM version.
> --> yes, this jar-file doesn't have to defined there but this 
> is not the
> problem
> 
> > In the Hastable are Objects of the c.class.
> >
> > class a in App1 serialize class b and save it in persistence
> > (poet-)classes
> > in directory ($CATALINA_HOME/lib/).
> so, this poet(I'm not familiar with it) is located in 
> $CATALINA_HOME/lib ?
> Is this the class that tries to create an instance of b.class?
> --> no, class a in x.jar tries to create an instance with the
> ObjectInputStream
> 
> If so this is your problem. Classes in the /tomcat/lib or 
> /common/lib can
> *NOT* see classes in the /web-inf/lib directories. Try moving x.jar to
> /tomcat/lib and see if it fixes your problem.
> --> I can`t do it because there are dependances to other 
> classes in the
> application-directory.
> 
> Alternatively you could move poet to each web-inf/lib with 
> x.jar, but they
> need to stay together.
> --> this is also impossible because the poet-classes can only 
> be loaded from
> one class loader.
> 
> jürgen
> 
> Charlie
> 
> > In App2 class a load the serialized class from the
> > persistence classes and
> > deserialize it (--> class b).
> > Then, a ClassNotFoundException (class c) is thrown (see 
> lower). Why???
> >
> > class b and the Hashtable are loaded, but not class c.
> >
> > It is as follows: ?
> > The applicationClassLoader finds the class b and then the
> > StandardClassLoader finds the Hashtable and then (however??) the
> > StandardClassLoader try to load class c. And of course the
> > class loader
> > can't find the class c!
> >
> >
> > thanks
> > jürgen
> >
> >
> >  at
> > org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> > ardClassLoade
> > r.java:1127)
> >  at
> > org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
> > ardClassLoade
> > r.java:992)
> >  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> >  at java.lang.Class.forName0(Native Method)
> >  at java.lang.Class.forName(Class.java:195)
> >  at 
> java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:654)
> >  at
> > java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStre
> > am.java:918)
> >  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
> >  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> >  at 
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
> >  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
> >  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
> >  at
> > 
> com.sun.java.util.collections.Hashtable.readObject(Hashtable.java:773)
> >  at java.lang.reflect.Method.invoke(Native Method)
> >  at
> > java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream
> > .java:2213)
> >  at 
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410)
> >  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
> >  at
> > java.io.ObjectInputStream.inputClassFields(ObjectInputStream.j
> > ava:2262)
> >  at
> > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.
> > java:519)
> >  at 
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
> >  at java.

Re: jsp include question

2002-08-09 Thread Jose Francisco Junior

If you want to redirect the request you have to do it
 before printing any other thing on the page.

Example:

it works:





...

...

it does not work:



...



...
On Fri, 9 Aug 2002 09:38:32 -0700 (PDT)
Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
>Hi
>
>I am developing a web application and came accross
>this problem.
>when in my jsp page i have  runtime
>include and then later in the code when i have
>response.sendRedirect or
>request.getRequestDispatcher() to forward the jsp page
>i get error saying the
>java.lang.IllegalStateException: Response has already
>been committed.
>but when i use <%@ %> compile time include i  dont get
>this error, 
>Can some one explain the why
>Ashish
>
>__
>Do You Yahoo!?
>HotJobs - Search Thousands of New Jobs
>http://www.hotjobs.com
>
>--
>To unsubscribe, e-mail:
>   
>For additional commands, e-mail:
> 
>

-
Prefiro as lágrimas da derrota
do que a vergonha de não ter lutado... 

Willan Brook
-

Don't E-Mail, ZipMail! http://www.zipmail.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jsp include question

2002-08-09 Thread Ashish Kulkarni

Hi

I am developing a web application and came accross
this problem.
when in my jsp page i have  runtime
include and then later in the code when i have
response.sendRedirect or
request.getRequestDispatcher() to forward the jsp page
i get error saying the
java.lang.IllegalStateException: Response has already
been committed.
but when i use <%@ %> compile time include i  dont get
this error, 
Can some one explain the why
Ashish

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jsp:forward revisited

2002-08-09 Thread Carl

Thank all for your responses but I am still in deep doodoo as nothing has
worked.

On the suggestion that the location of the page to be forwarded to was
incorrectly specified, I have tried all combinations of means of specifying
the page and nothing helps, does not change the error.

On the suggestion that I download Tomcat 4.0.3 (I am using Forte 4 with jsdk
1.4), I could not find a place to download Tomcat 4.0.3 but did download
Tomcat 4.0.4.  No help, Tomact 4.0.4 won't even run its own samples as it
fails as follows:

(from the localhost_log)

2002-08-09 10:46:41 WebappLoader[]: Deploying class repositories to work
directory C:\tomcat\Apache Tomcat 4.0\work\Standalone\localhost\_
2002-08-09 10:46:41 StandardManager[]: Seeding random number generator class
java.security.SecureRandom
2002-08-09 10:46:41 StandardManager[]: Seeding of random number generator
has been completed
2002-08-09 10:46:41 ContextConfig[]: Added certificates -> request attribute
Valve
2002-08-09 10:46:41 ContextConfig[]: Configured an authenticator for method
FORM
2002-08-09 10:46:41 ContextListener: contextInitialized()
2002-08-09 10:46:41 SessionListener: contextInitialized()
2002-08-09 10:46:41 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@d10a5c')
2002-08-09 10:46:41 StandardWrapper[:default]: Loading container servlet
default
2002-08-09 10:46:41 default: init
2002-08-09 10:46:41 StandardWrapper[:invoker]: Loading container servlet
invoker
2002-08-09 10:46:41 invoker: init
2002-08-09 10:46:41 StandardWrapper[:jsp]: Marking servlet jsp as
unavailable
2002-08-09 10:46:41 StandardContext[]: Servlet  threw load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89
5)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
 at java.lang.Class.getConstructor0(Class.java:1748)
 at java.lang.Class.newInstance0(Class.java:266)
 at java.lang.Class.newInstance(Class.java:249)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
6)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)

Anyone have any ideas why the Servlet jsp is marked unavailable?

My core problem remains as moving from one jsp page to another using the
construct:



I am trying to bring up an application that has over 400 pages with that
construct on them so you can see that I have a substantial task.  With
Tomcat 4.0.1, included with Forte, I get a null pointer error:

2002-08-08 14:29:45 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
java.lang.NullPointerException
at
org.netbeans.modules.web.monitor.catalina.DispatchListener.instanceEvent(Dis
patchListener.java:65)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.j
ava:342)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:712)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:409)
at org.apache.jsp.forward$jsp._jspService(forward$jsp.java:93)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.netbeans.modules.tomcat.tom

RE: SSL just for a login page

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Drinkwater, GJ (Glen) wrote:

> Date: Fri, 9 Aug 2002 14:51:32 +0100
> From: "Drinkwater, GJ (Glen)" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: SSL just for a login page
>
> Hi
>
> I am not am expert in the security of the web at the moment.
> Could you explain to me why this would open such a big secuirty hole from
> swapping from https to https.
>

Switching from "http" to "https" is not the problem.  Switching back is.

> I was suggesting this because it read this i a 'professional j2ee' book?!!
>
> The problem i have is that i need the username and password to be encrypted
> but i have heard that ssl hits performance quite badly!!  I dont think that
> i could handle filtering, so what do you suggest for the security??
>
> What is the 'norm' for these such problems.
>

On an "http" connection, anyone who has access to the physical network can
snoop packets and see what is going on.  That's why you're trying to
encrypt the username and password in the first place, right?

The problem is that username/password is not the only sensitive
information going back and forth -- the session identifier is also passed
up to the server on each request, either in a cookie or as part of the
URLs.  This is how the server knows that a subsequent request belongs to
the logged-in user.  Anyone who knows the session id can impersonate the
logged on user, and do anything that user is allowed to do.

If you switch back to "http" after logging in, that means the session id
will get transmitted in cleartext (and, no, there's nothing you can do to
encrypt *just* that).  Therefore, any snooper on the network can see this
session id and start submitting their own requests with that session id.
The server thinks that you've already authenticated, so it lets you do
whatever you want.

All the snooper has to do is wait for someone to log on, observe their
next submit to the server, and snarf the session id ...

The bottom line is that using SSL only for the username/password is a
total waste of time from a security perspective.  If you're not going to
encrypt the entire conversation (which includes the session ids), don't
even bother trying -- you will only get the illusion (or should I say,
*delusion*) of being more secure.  In reality, you'd accomplish
nothing useful.

A more general statement of the principle:  once you switch a session from
"http" to "https", you should never again accept a non-https request for
that same session.  Applications that don't obey this rule are hopelessly
insecure, and should be avoided like the plague.

> Thanks Glen.
>

Craig McClanahan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Authentication: Use Tomcat and Apache

2002-08-09 Thread Kevin Andryc

I have an application that currently uses Apache's authentication. In order
for this to work with Tomcat I had to specify it in my server.xml, like so:



I also have another application running under Tomcat that I would like
Tomcat to handle the authentication. Is there a way to have both methods?

Thanks,
Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Horn, Rob wrote:

> Date: Fri, 9 Aug 2002 15:12:22 +0100
> From: "Horn, Rob" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: Is it possible to include via a directive snippets into the
> s erver.xml file
>
> Thanks Andrew,
>
> is there a naming convention that must be followed or do you know where I
> can get further info on this.
>

One approach is to do what Tomcat 4.1 itself does for the admin and
manager webapps -- for a context at path "/foo", create a "foo.xml" file.
If you put that in $CATALINA_HOME/webapps, it will get auto-deployed.

> Cheers
>
> Rob

Craig


>
> -Original Message-
> From: Andrew [mailto:[EMAIL PROTECTED]]
> Sent: 09 August 2002 14:12
> To: 'Tomcat Users List'
> Subject: RE: Is it possible to include via a directive snippets into the
> server.xml file
>
>
> in Tomcat 4.1.x you can put XML files containing context information
> into your webapps directory and TC adds them as contexts.  this is how
> the admin and manager apps are added.
>
>
> - Andrew
>
> -Original Message-
> From: Horn, Rob [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 5:19 AM
> To: '[EMAIL PROTECTED]'
> Subject: Is it possible to include via a directive snippets into the
> server.xml file
>
>
>
> Within our project we have an overlap of responsibility between the
> infrastructure team who are responsible for building the application
> servers and the development team who are responsible for delivering an
> application ready for deployment.
>
> The overlap centres on server.xml
>
> The infrastructure guys need to put host specific information into
> server.xml
>
> The development guys are dependent on a context definition and resources
> defined within it.
>
> My question is therefore ... is it possible to "include" a snippet for
> the context that the development team can maintain into the
> infrastructure maintain server.xml file.
>
> Cheers
>
> Rob Horn
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Is it possible to include via a directive snippets into theserve r.xml file

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Horn, Rob wrote:

> Date: Fri, 9 Aug 2002 10:18:50 +0100
> From: "Horn, Rob" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Is it possible to include via a directive snippets into the
> serve r.xml file
>
> Within our project we have an overlap of responsibility between the
> infrastructure team who are responsible for building the application servers
> and the development team who are responsible for delivering an application
> ready for deployment.
>
> The overlap centres on server.xml
>
> The infrastructure guys need to put host specific information into
> server.xml
>
> The development guys are dependent on a context definition and resources
> defined within it.
>
> My question is therefore ... is it possible to "include" a snippet for the
> context that the development team can maintain into the infrastructure
> maintain server.xml file.
>

XML lets you do stuff like that directly with entities.

In Tomcat 4.1.x, you can also separate out the  element for each
context into a separate "context configuration file" that can be
independently deployed, which would seem a better long term solution.

If all else fails, you can write a simple script that combines all the
stuff you need from file fragments just before invoking the startup.
Sometimes the simple solutions are the best ...

> Cheers
>
> Rob Horn
>

Craig



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: AW: configuring tomcat for 100+ contexts

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, B. Duffee wrote:

> Date: Fri, 9 Aug 2002 11:59:48 +0100 (BST)
> From: B. Duffee <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  B. Duffee <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: Re: AW: configuring tomcat for 100+ contexts
>
> >>student in the servlet.xml.  I would _like_ to be able to say for every
> >> directory that you find a WEB-INF, such as
> >>/var/www/htdocs/$course/$student/WEB-INF
> >>
> >> Would
> >> >>appBase="/var/www/htdocs/" reloadable="true" debug="0"/>
> >> make any sense?
> >
> >I suggest a small perl script that produces the apps-X.xml files in
> >$TOMCAT_HOME/conf .
> >You could create/delete your students and courses and just run it to get the
> >newest working config without
> >touching server.xml. It can clone the webapps directory of each
> >a.o.a.o.a.o  :)
> >Just the restarting would take a while :-))
>
> I was sort of doing that the last time because adding in one person at a time
> (they never make it easy for you) started getting tedious.  I could care less
> about start up times (they're only users, after all ;)  Oh yes, I'm also using
> mod_webapp, if that makes a difference.
>
> I was hoping for an eloquent solution that would recognize that all WEB-INF
> directories beneath htdocs are a tomcat context.
>

Another approach to consider for this kind of use is the "User Home
Directories" capability (requires Tomcat 4).  This makes a URL like
"http://www.myhost.com:8080/~craigmcc/"; refer to the "public_html"
subdirectory of my user home directory (just like the similar feature in
Apache and other web servers).  At startup time, all the users who have
public_html directories accessible to the username Tomcat runs under will
be automatically recognized.

Documentation is on the Host page in the server configuration reference
(http://localhost:8080/tomcat-docs/config/host.html).

> danke,

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Error 500 need help

2002-08-09 Thread Anderson, Richard D ERDC-ITL-MS Contractor

***i'm getting an error i can't solve. 
during the build process i get a message that states this:
[javadoc]
/Jakarta/jakarta-tomcat-4.0.4-src/jasper/src/share/org/apache/jasper/compile
r/SunJavaCompiler.java:65:package sun.tools.javac does not exist
import sun.tools.javac.Main; 
 ^
the build is successful but the jsp examples generate the error below

any one have a solution??  i'm using j2sdk1.4.0_01 on read hat linux 7.2.
i'm assuming that i get this error because of the message above.


Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
Exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
6)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:536)
root cause 
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
Parser.java:347)
at
org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:151)
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:201)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)

RE: SSL just for a login page

2002-08-09 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i'm using j2sdk1.4.0_01 for linux, and you have to set JAVA_HOME in your
PATH.  now i do know that javac automatically sets the classpath to the
location of the tools.jar file located in /lib 

-Original Message-
From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: SSL just for a login page


just downloaded it version 1.7 using it with java 1.4 beta

installation says that you dont need to do anything (already got JAVA_HOME),
when i run it it just pulls up errors??


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: migrating from gnuJSP to tomcat 4/apache 2

2002-08-09 Thread Ralph Einfeldt

As I'm on the same road, here are my thoughts
(I didn't start trying it, that will not be so 
soon as we feel not pressure to do the switch):

If you have just one context (that what we will have)
you can do the following:

  - Keep your htdoc as it is.
  - Define a default context:
)
  - Deny the access of apache to webapps/{context}/WEB-INF
  - Use the JkMount selectively:
JkMount /*.jsp ajp13/ajp14
JkMount /servlet/* ajp13/ajp14

If you want to have more than one context you may have 
to change all references to static or dynamic resources
in the jsp's to contain the context name. (As we don't 
use relative path's I don't know what happens with them)

I don't know if this enough, but it should be the right 
direction.
> -Ursprüngliche Nachricht-
> Von: Steve Prior [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 9. August 2002 17:06
> An: [EMAIL PROTECTED]
> Betreff: migrating from gnuJSP to tomcat 4/apache 2
> 
> 
> I have happily been serving JSP pages from Apache 1.3/jserv/gnuJSP
> for over a year now, and am starting to become motivated to move
> to Apache2/Tomcat.
> 
> With GnuJSP I could have JSP files anywhere I wanted under the htdocs
> directory for Apache and they would be passed to GnuJSP, but all
> other files (html, jpg, shtml, whatever) would still be handled by
> apache.
> 
> I have Tomcat already connected using mod_jk2 to apache2 so that I
> can go to http://localhost/examples/jsp/whatever so it appears to
> be functionioning mostly right.  What I cannot and really want to
> do is to be able to put JSP files anywhere in the apache tree (like I
> used to) and have apache pass them off to tomcat, but handle 
> everything
> else by itself.
> 
> Is this even possible with the new architecture of Tomcat?  I have so
> many JSP pages scattered throughout my site that it seems 
> that if every
> directory that uses JSP pages needs to be handled by tomcat that I
> won't be left with apache handling anything by itself.
> 
> Thanks
> Steve
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: SSL just for a login page

2002-08-09 Thread Durham David Cntr 805CSS/SCBE

post this on the jmeter-user list

> -Original Message-
> From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 10:26 AM
> To: 'Tomcat Users List'
> Subject: RE: SSL just for a login page
> 
> 
> just downloaded it version 1.7 using it with java 1.4 beta
> 
> installation says that you dont need to do anything (already 
> got JAVA_HOME),
> when i run it it just pulls up errors??
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




??? Bug in Tomcat Response Headers ???

2002-08-09 Thread Tony LaPaso

Hello all,

I posted this a few days ago but received no responseIf
someone intimately familiar with Tomcat internals (liek Craig M.)
could comment I'd appreciate it.

I'm not 100% sure about this but I think I found a problem with
the way Tomcat encodes characters. First I'll explain what I
think the problem is and then I'll say why I think it's a
problem. Please keep in mind that I'm not looking for alternative
solutions (i.e., please don't tell me to use UTF-8). I want to
stay focused on the problem. The behavior I'm seeing is not
correct, IMHO.

Assume I have these three lines of code in my doGet():

response.setContentType("text/html;charset=UTF-16");
PrintWriter pw = response.getWriter();
pw.print("Test" +
 "");

The PrintWriter returned from response.getWriter() will encode
all characters as UTF-16. This means that all the response body
(i.e., the HTML) gets encoded as UTF-16 before being sent to the
client. So far, so good.

Here's the problem: The reponse headers generated from the
servlet *ALSO* get encoded as UTF-16, which, I believe is in
violation of the HTTP spec. In reading the HTTP spec, response
headers should be encoded as US-ASCII.

So, it seems that Tomcat (or perhaps the Servlet API
implementation) needs to be modified so that the response headers
are *always* encoded as US-ASCII, regardless of the encoding for
the response body.

Again, please do not offer "ways around" this or ask me why I'm
sending UTF-16 encoded characters. I know UTF-8 can be used but
that's not the point.

Is this a bug or am I buggy?

Thanks,



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: SSL just for a login page

2002-08-09 Thread Drinkwater, GJ (Glen)

just downloaded it version 1.7 using it with java 1.4 beta

installation says that you dont need to do anything (already got JAVA_HOME),
when i run it it just pulls up errors??


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: SSL just for a login page

2002-08-09 Thread Richard Plukker

For stress testing use Apache JMeter.
good luck Richard


Drinkwater, GJ (Glen) wrote:

>Yes, you are probably right, I will have to use ssl.
>
>Does anybody know of some good stress testing free software???
>
>How does this sound.
>
>1)User logs on and username and password send over ssl. password md5 hashed
>and compared against users on a database.
>2)If valid user logs on, if not user sent to error page.
>3) rest of session ssl.
>
>if database compromised, hash value would be no use???
>
>Lastly, how do i enforce that the whole of the web site must be over ssl,
>except the initial welcome page so the user doesn't have to type in port
>numbers
>
>is it something like this in the web.xml file.
>
>  
>   
>   ***
>   /index.html
>   
>   
>   NONE
>   
>
>
>  
>   
>   ***
>   /*  //or will this overwrite the
>index.html
>   
>   /*jsp //should it be like this
>   /data/*
>   /etc/*   //etc
>   GET
>   POST
>   
>   
>   CONFIDENTIAL
>   
> 
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: SSL just for a login page

2002-08-09 Thread Durham David Cntr 805CSS/SCBE

jmeter, available from jakarta.apache.org

> -Original Message-
> From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 9:59 AM
> To: 'Tomcat Users List'
> Subject: RE: SSL just for a login page
> 
> 
> Yes, you are probably right, I will have to use ssl.
> 
> Does anybody know of some good stress testing free software???
> 
> How does this sound.
> 
> 1)User logs on and username and password send over ssl. 
> password md5 hashed
> and compared against users on a database.
> 2)If valid user logs on, if not user sent to error page.
> 3) rest of session ssl.
> 
> if database compromised, hash value would be no use???
> 
> Lastly, how do i enforce that the whole of the web site must 
> be over ssl,
> except the initial welcome page so the user doesn't have to 
> type in port
> numbers
> 
> is it something like this in the web.xml file.
> 
>  
>   
>   ***
>   /index.html
>   
>   
>   NONE
>   
> 
> 
>  
>   
>   ***
>   /*  //or will this 
> overwrite the
> index.html
>   
>   /*jsp //should it be 
> like this
>   /data/*
>   /etc/*   //etc
>   GET
>   POST
>   
>   
>   CONFIDENTIAL
>   
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




migrating from gnuJSP to tomcat 4/apache 2

2002-08-09 Thread Steve Prior

I have happily been serving JSP pages from Apache 1.3/jserv/gnuJSP
for over a year now, and am starting to become motivated to move
to Apache2/Tomcat.

With GnuJSP I could have JSP files anywhere I wanted under the htdocs
directory for Apache and they would be passed to GnuJSP, but all
other files (html, jpg, shtml, whatever) would still be handled by
apache.

I have Tomcat already connected using mod_jk2 to apache2 so that I
can go to http://localhost/examples/jsp/whatever so it appears to
be functionioning mostly right.  What I cannot and really want to
do is to be able to put JSP files anywhere in the apache tree (like I
used to) and have apache pass them off to tomcat, but handle everything
else by itself.

Is this even possible with the new architecture of Tomcat?  I have so
many JSP pages scattered throughout my site that it seems that if every
directory that uses JSP pages needs to be handled by tomcat that I
won't be left with apache handling anything by itself.

Thanks
Steve


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >