Re: tomcat 4.1.12 with apache

2002-10-14 Thread Sven Köhler

 mod_jk is available for use with Tomcat 4.x.  In fact, many subscribers to
 this list are using that very configuration.
 
 There are many HOW-TO's listed about how to integrate Apache and Tomcat
 3.x/4.x using mod_jk.  A quick browse through the archives of this list
 archive will provide proof of this.
 
 mod_webapp is no longer current and should not be used.  Again, reading the
 list archive will prove this as well.

i found mod_jk2 v2.0.1 but i get confused when reading the docs.
the docs talk about mod_jk and mod_jk2 - are these just 2 names for the 
same module?

the docs:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/doc/




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




mime-types

2002-10-14 Thread Günter Kukies

Hi,

I want tomcat to serve Exel(.xsl) and Snapshot (snp) files. I added the following 
mime-mapping to the global web.xml in .../conf/web.xml.
But no Application is starting automaticaly at the client site. It seams that the 
mime-type is text/plain. 

If the same files where served from an Apache HTTP-Server everything works fine. 
 
mime-mapping
extensionsnp/extension
mime-typeapplication/octet-stream/mime-type
  /mime-mapping
 mime-mapping
extensionxls/extension
mime-typeapplication/vnd.ms-excel/mime-type
  /mime-mapping  



Thanks 
Günter Kukies



Unable to compile JSP

2002-10-14 Thread Shanniew

I have already set the JAVA_HOME, CATALINA_HOME.
 \webapps\myjsp\WEB_INF\classes
 \webapps\myjsp\WEB_INF\lib (the dir where I put the .jar by third
party)

However I faced this problem:

HTTP Status 500 -


type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP


Do I need to change the ..\Tomcat\bin\setclasspath.bin to include
\webapps\myjsp\WEB_INF\classes or \webapps\myjsp\WEB_INF\lib.

Am really confused.


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




tomcat auto shutdown problem....

2002-10-14 Thread Nitin

hi all,
sorry to repost the same question but nobuddy responded
that's why this repeat.
anybody knows what the foll. errror msg in tomcat means?
this msg was logged in the error.log file in the bin folder of tomcat.
i'm using tomcat 3.3.

JNI panic: native code passed a wrong class to a static method
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getMethods(Class.java:717)
at org.apache.tomcat.util.qlog.Logger.printThrowable(Unknown Source)
at org.apache.tomcat.util.qlog.Logger.throwableToString(Unknown Source)
at org.apache.tomcat.modules.generators.ExceptionHandler.doService(Unknown 
Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.modules.generators.ErrorHandler.handleErrorImpl(Unknown 
Source)
at org.apache.tomcat.modules.generators.ErrorHandler.handleError(Unknown 
Source)
at org.apache.tomcat.core.ContextManager.handleError(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown 
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
Source)
at java.lang.Thread.run(Thread.java:479)


anybuddy knows any other forum/mailing list
for tomcat, pl. tell me so that i can put up the query there
also
thanx  regards
Nitin




RequestDispatcher

2002-10-14 Thread Roland Carlsson

Hi!
I got a problem with the RequestDispatcher. I'm trying to make a simple framwork to 
include jsp-pages as components into a template-jsp. But I doesn't get the pages 
nested the way I'd like it. Could anyone please explain why the RequestDispatcher puts 
page2 before page1 instead of inside page1.

Thanks in advance
Roland Carlsson


Setup:
Apache 1.3.22
Tomcat 4
Windows Nt4 sp5

Example and source:

Imagine these two jsp-files.

-- page one---

test1
%
Machine m = Machine.getInstance();
m.sub(request, response, 1);
%
test1 end

- page two 

test2
test2 end

-- resultpage ---

test2
test2 end
test1
test1 end

 what I expeced 

test1
test2
test2 end
test1 end

- Source of Machine.sub() -

  public void sub(HttpServletRequest request, HttpServletResponse response, int i){
try{
// Get a database connection
// FixMe: get from a pool
Class.forName(oracle.jdbc.driver.OracleDriver);
StringBuffer sb = new StringBuffer();
sb.append(jdbc:oracle:thin:);
sb.append();
sb.append(/);
sb.append();
sb.append(:::);
sb.append();
Connection conn = DriverManager.getConnection(sb.toString());
  
  // Get a Component from the request
  Component oldComp = (Component) request.getAttribute(_komponent);
  // Get Children from the component
  java.util.ArrayList al=  oldComp.getChildren(conn);
  // Get the Component we want for this request
  Component newComp = (Component) oldComp.getChildren(conn).get(i);
  // Populate the child
  newComp.sql_select(conn);
  // Set the child into the request so it will be parent for sub-components
  request.setAttribute(_komponent, newComp);
  // Include a sub-component into the page
  request.getRequestDispatcher(newComp.getUrl()).include(request, response);
  // Restore state 
  request.setAttribute(_komponent, oldComp);
  // Release db
  conn.close();
}catch(Exception e){
  e.printStackTrace();
}finally{
  
}
  }


Is Apache Httpd required

2002-10-14 Thread Narendra

Hello All,
My Application has only 1 static page and around 15 images and 5 java-script
files...All the rest are servlets and JSP's...
Do I need to integrate Apache Http and Tomcat ???
I feel there is no need..as the static content is very less..
I also feel that if I don't integrate Apache and Tomcat, then there will be a
performance boost because there would be
no IPC ( Interprocess Communication) between Apache and Tomcat ...

So what should be done ?...Are there any other problems for running Tomcat
without Apache webserver ?

Regards,
naren

---
An embrace should fill the heart as well as the arms..

*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com



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




Re: Defining methods in JSP pages

2002-10-14 Thread Martin Jacobson

Craig R. McClanahan wrote:

 The biggest problem with the general approach you suggest is that you are
 mixing Java logic into your pages, which means you need a Java programmer
 to maintain them.  A much better strategy is to use a
 model-view-controller (MVC) style architecture that has back-end business
 logic setting up the dynamic things your page needs in request attributes
 or session attributes, and then forward to the page (which can use things
 like jsp:getProperty to grab them.  An example of a framework for MVC
 style development is Struts http://jakarta.apache.org/struts.
 
 An additional benefit of banishing scriptlets from your pages is that the
 JSP page compiler can generate better code, as well as handling bigger and
 more complex pages.  The general trend in modern JSP development is away
 from scriptlets.
 


Another solution (which I use) is to not use JSPs at all - just servlets 
with the Velocity template engine http://jakarta.apache.org/velocity. 
Velocity allows a very clean separation between the business logic and 
the presentation. No weird syntax, no Java in the HTML to confuse Web 
designers, no run-time translation/compilation.

Martin



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




(Urgent) Help with Tomcat 3.3 performance

2002-10-14 Thread Rajesh B

Hi all,
We have a web application running in Solaris 8, Tomcat 3.3 ( 3
tomcats are load balanced with ajp12 connector) , apache 1.3.2. The box has
got 4 CPUs and 4 GB of RAM. We are testing the application using LoadRunner.
For lower number of users, the hits/sec are good. But as we increase the
users hitting the webserver, the hits/sec decreases. 
We have checked some parameters in TCP/IP like
tcp_time_wait_interval, tcp_conn_req_max_q etc. Network is not a problem as
of now. We have got a 100 Mbps link. And there are no packet collisions. Has
anyone faced this kind of problem. Can anyone help us on this. Any help
would be of great help. Thankx in advance.


regards
Rajesh



Re: Tomcat v4.1.12 with jk1, not jk2(not yet, at least)

2002-10-14 Thread Raj Saini

Pae Choi wrote:
 First of all, my appologies if this question has been asked before.
 
 I have not been able to keep up with TOMCAT progress lately. But I
 have been using it up to 4.0.x so I can be considered as a newbie to
 v4.1.x.
 
 I have been using a combination, Apache/HTTP(S)d + mod_jk v1.1.0 +
 Tomcat v4.0.3 till now. And I have some time to explore the v4.1.12,
 but like to ask some questions to who have been explore it before.
 
 Q1: Is Tocmat v4.1.12 still support jk or I should say jk1 now
   compare to new jk2?

Yes, it is well supported. Rather, it is supported better then JK2.
 
 Q2: If so, can it be configured same as TOMCAT v4.0.x?
 

Yes, it can be. Configuring 4.0.x and 4.1.xx should be simmilar.

 Any suggestions and comments on this are welcome and will be
 appreciated. Thank you.

Welecome,

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



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




RE: JK2 URI not correctly mapped for multiple virtual hosts in httpd.conf

2002-10-14 Thread gabriele . garuglieri

Sorry, i just realized that html files are cut out from mail, so i include
here the complete set of files as a zip file.

(See attached file: jk2uri-problem.zip)

Regards,  Gabriele.


jk2uri-problem.zip
Description: Zip archive

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


Re: tomcat auto shutdown problem....

2002-10-14 Thread Nitin

i'm using jdk1.3.
any incompatibility with tomcat 3.3.
thanx for y'r response raj.
nitin
- Original Message -
From: Raj Saini [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 14, 2002 1:57 PM
Subject: Re: tomcat auto shutdown problem


 Please check the compatability of your JVM and tomcat. You are using
 very old version of tomcat. Which JRE version are you using?

 Raj
 Nitin wrote:
  hi all,
  sorry to repost the same question but nobuddy responded
  that's why this repeat.
  anybody knows what the foll. errror msg in tomcat means?
  this msg was logged in the error.log file in the bin folder of tomcat.
  i'm using tomcat 3.3.
 
  JNI panic: native code passed a wrong class to a static method
  at java.lang.Class.getMethods0(Native Method)
  at java.lang.Class.getMethods(Class.java:717)
  at org.apache.tomcat.util.qlog.Logger.printThrowable(Unknown
  Source)
  at org.apache.tomcat.util.qlog.Logger.throwableToString(Unknown
  Source)
  at
  org.apache.tomcat.modules.generators.ExceptionHandler.doService(Unknown
  Source)
  at org.apache.tomcat.core.Handler.invoke(Unknown Source)
  at org.apache.tomcat.core.Handler.service(Unknown Source)
  at
  org.apache.tomcat.modules.generators.ErrorHandler.handleErrorImpl(Unknow
  n Source)
  at
  org.apache.tomcat.modules.generators.ErrorHandler.handleError(Unknown
  Source)
  at org.apache.tomcat.core.ContextManager.handleError(Unknown
  Source)
  at org.apache.tomcat.core.ContextManager.internalService(Unknown
  Source)
  at org.apache.tomcat.core.ContextManager.service(Unknown Source)
  at
  org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unkn
  own Source)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown
  Source)
  at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
  Source)
  at java.lang.Thread.run(Thread.java:479)
 
 
  anybuddy knows any other forum/mailing list
  for tomcat, pl. tell me so that i can put up the query there
  also
  thanx  regards
  Nitin
 
 



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


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




Re: Running a servlet automatically

2002-10-14 Thread Graham King

  Ravindra,

  You probably want to extend TimerTask rather than Servlet. Take a look at 
java.util.TimerTask and 
java.util.Timer.

  Graham.

Ravindra K. Bhat wrote:
 Hi
 I have a servlet which updates a table when the system time is 4:00 PM.  I
 need it to run everyday @ 4:00 PM..how do I do set it up so that it runs
 automatically?
 
 Thanks
 Ravi  
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Connection Pooling

2002-10-14 Thread Mehdi . Nejad

Greets all,

Im using oracle 9i, and Tomcat 4.0.4, and i want to get the connection
pooling working.  I have followed the example set out here (the part under
oracle 8i heading):

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html#Oracle%208i%20with%20OCI%20client

that example is for 8i, but anyway,  the failure occurs when the code tries
to do the lookup on  the jdni, so i guess the datasource is not being
registered properly.

The top few lines of my exception are :

javax.naming.NamingException: Cannot create resource instance
  at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:167)
  at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
  at org.apache.jsp.test$jsp._jspService(test$jsp.java:65)

Any suggestions welcome.

Thanks in advance,

Mehdi





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




Authentification LDAP multiple entries

2002-10-14 Thread hans albers

Authentification with JNDI-Realm works fine,
but what to do if there are multiple entries
with the same cn in the Directory?

in my server.xml there's
userBase=ou=first,o=company
userSearch=(cn={0})
userSubtree=true

What to do if there are the entries
  cn=Peter Webbers,ou=help,ou=first,o=company
  cn=Peter Webbers,ou=water,ou=first,o=company
other than changing the cn's???
(I mustn't change them)

Thanks in advace

Hans



_
Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: 
http://messenger.msn.de


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




Using filters to authenticate users...

2002-10-14 Thread Johann Uhrmann

Hi,

what do You think about the following idea?
Is it possible at all:

I am looking for a way to build web applications that can
be used by logging in from a user/password HTML-form.

To do this, I would like to use the standard API which
would save me reimplementing the JDBC-Realm and Single-SignOn
features which already come with tomcat.

Is it possible to write a filter, which simply checks 

- the login name
Should be simple (request.getRemoteUser())

- in case there is no login name, the filter should read the
  parameters username and password...

- if there are values for this parameters, get an instance of
  org.apache.catalina.Realm and pass on the values to the 
  authenticate method.
  Now, check if request.getRemoteUser() still returns null...

That should be simple except of getting the proper instance of
org.apache.catalina.Realm. Does someone know how to do that?

Thank You,

Hans






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




RE: JK2 URI not correctly mapped for multiple virtual hosts in httpd.conf

2002-10-14 Thread Mladen Turk

One question.
Do you have Host name=iv00 ... In the server.xml?

Also,
Why are you setting all those load balancers and groups?
Try using pragmatic approach. 
Use the httpd.conf.noworkers2 and comment all the JkUriSet group 
Use the single connection without any lb and groups.


 The following three files instead shows the situation when 
 the uri's are mapped with JkSet and JkUriSet within 
 httpd.conf. (See attached file: httpd.conf.noworkers2)(See 
 attached file: jkstatus.noworkers2.htm)(See attached file: 
 workers2.properties.min.nouri) As you can see in jkstatus 
 output, there's no mention of the uri for host iv00 ant 
 there's no way to have the relative worker to be called.


There is (look at the uri runtime info).
 
 I home this is enough for you to undestand the problem.
 
 Best regards,  Gabriele.
 



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




RE: Unable to compile JSP

2002-10-14 Thread jon wingfield

is WEB_INF a typo? it needs to be WEB-INF

-Original Message-
From: Shanniew [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 08:04
To: [EMAIL PROTECTED]
Subject: Unable to compile JSP


I have already set the JAVA_HOME, CATALINA_HOME.
 \webapps\myjsp\WEB_INF\classes
 \webapps\myjsp\WEB_INF\lib (the dir where I put the .jar by third
party)

However I faced this problem:

HTTP Status 500 -


type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP


Do I need to change the ..\Tomcat\bin\setclasspath.bin to include
\webapps\myjsp\WEB_INF\classes or \webapps\myjsp\WEB_INF\lib.

Am really confused.


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



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




RE: Unable to compile JSP

2002-10-14 Thread Rahul Sood

Yes Web-inf is a typo

 [EMAIL PROTECTED] 10/14/02 11:34am 
is WEB_INF a typo? it needs to be WEB-INF

-Original Message-
From: Shanniew [mailto:[EMAIL PROTECTED]] 
Sent: 14 October 2002 08:04
To: [EMAIL PROTECTED] 
Subject: Unable to compile JSP


I have already set the JAVA_HOME, CATALINA_HOME.
 \webapps\myjsp\WEB_INF\classes
 \webapps\myjsp\WEB_INF\lib (the dir where I put the .jar by third
party)

However I faced this problem:

HTTP Status 500 -


type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP


Do I need to change the ..\Tomcat\bin\setclasspath.bin to include
\webapps\myjsp\WEB_INF\classes or \webapps\myjsp\WEB_INF\lib.

Am really confused.


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



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



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




Some problems with Tomcat/Warp/Apache

2002-10-14 Thread Frédérik Bilhaut

Hi !

I'm experiencing some problems deploying a site with Apache 1.3.14 
connected to Tomcat 4.0.5 using Warp :

1) When my webapp is deployed as a .war file, some JSPs are recompiled 
at every request, resulting (of course ;) in very bad performances. This 
only happens with some JSPs (but always the same ones), and I really 
can't see what distinguishes them from other ones, that are correctly 
compiled once. I noted that the war file was extracted in the work 
directory as expected, and that generated servlet classes were correctly 
stored in the same place. When deploying the same webapp in a folder, 
everything works well (ie JSPs are compiled only once).

2) Much, much more annoying : I sometime receive (apparently randomly) 
the following error messages from the warp module :

WebApp : Error 500 (File: pr_warp.c Line 369)
Communitcation interrupted

I noticed that this tends to appear more often when tomcats has to 
compile the requested JSP, or opens a new session (sometimes, 
suppressing cookies for my webapp makes this error appear again). But 
this is not exclusive, since the problem may in fact appear anytime.

I'd really appreciate some help about these problems...

Thanks a lot !

PS : some more info about my configuration: I use JDK 1.4 ; Apache and 
Tomcat are running on two separate machines ; The Apache server runs 
wery well otherwise, and has been successfully serving several other 
sites (using PHP) for a while ; Each site is separated using virtual 
hosts, and   my Webapp is just one of them.

Best regards,
-- 
F. Bilhaut
[EMAIL PROTECTED]



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




Identical static final variables

2002-10-14 Thread Michael Turley

Hi,

I was trying to take a short cut debugging an
application on Jetspeed by copying that applications
files to an alternate renamed directory and changing
some of the static final constants to reflect my
impromptu test environment. 

I compiled my new constants file and used the Tomcat
manager application to install my application.
Unfortunately, the new test application is using the
same   static final definitions as the original
application. I have tried recompiling the test file
and reloading the test application but the problem
persists.

Is there a possible namespace issue?

Regards,  

=
Mr. Michael Turley
Gracious winner, Generous lover, All round great guy.
http://www.intheshowerwithmike.com/

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




Coyote Logging Error

2002-10-14 Thread Niket Anand

Hello,
I have successfully integrated Apache2.0.4(WIN2000) with
JBoss-2.4.7_Tomcat-4.0.4 with the help of mod_jk2.dll.
While running the Jboss server with catalina it is running properly but
showing some error in console mentioned at the end.
I think CoyoteRequest class is not able to assign Request object and giving
NullPointerException
I have put

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=10
 bufferSize=2048 connectionTimeout=2 debug=0 enableLookups=true
 maxProcessors=75 minProcessors=5 port=8081
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
 proxyPort=0 redirectPort=8443 scheme=http secure=false
 tcpNoDelay=true useURIValidationHack=false 
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory/
/Connector

in Catalina_Home/conf/server.xml and JBoss_Home/conf/catalina/jboss.jcml

Please help me as I have to track this error out asap.

[17:29:56,609,STDERR] Logging Error: Unknown error writing event.
[17:29:56,609,STDERR] java.lang.NullPointerException
[17:29:56,609,STDERR]  at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getRequestURI(CoyoteRequestFac
ade.java:350)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at
org.apache.cocoon.environment.http.HttpRequest.getRequestURI(HttpRequest.jav
a:144)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at
org.apache.cocoon.util.log.CocoonLogFormatter.getURI(CocoonLogFormatter.java
:155)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at
org.apache.cocoon.util.log.CocoonLogFormatter.formatPatternRun(CocoonLogForm
atter.java:102)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at
org.apache.cocoon.util.log.ExtensiblePatternFormatter.format(ExtensiblePatte
rnFormatter.java:334)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at
org.apache.log.output.AbstractOutputTarget.format(AbstractOutputTarget.java:
133)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at
org.apache.log.output.AbstractOutputTarget.doProcessEvent(AbstractOutputTarg
et.java:92)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at
org.apache.log.output.AbstractTarget.processEvent(AbstractTarget.java:70)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at org.apache.log.Logger.output(Logger.java:559)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at org.apache.log.Logger.output(Logger.java:538)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at org.apache.log.Logger.debug(Logger.java:110)
[17:29:56,609,STDERR]
[17:29:56,609,STDERR]  at
org.apache.cocoon.servlet.CocoonServlet.getEnvironment(CocoonServlet.java:75
7)
[17:29:56,625,STDERR]
[17:29:56,625,STDERR]  at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:633)
[17:29:56,625,STDERR]
[17:29:56,625,STDERR]  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[17:29:56,625,STDERR]
[17:29:56,625,STDERR]  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
[17:29:56,625,STDERR]
[17:29:56,625,STDERR]  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
[17:29:56,625,STDERR]
[17:29:56,625,STDERR]  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)

Thanks
Niket



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




Strange behaviour in XP (minimize to garbagecollect)

2002-10-14 Thread Reynir Hübner

Hi, 
I've deployed some webapps in tomcat running windows XP.
The thing is, I startup tomcat with some params in a command window, it runs for a 
while and takes up some memory, as it should, (but still maybe a little bit too much) 
so I increased the memory available for the java process. 

When I look at the Task Manager, I can see how much memory the javaprocess is taking. 
It seems to always increase, it never releases memory so before the computer goes out 
of memory it's up to 800mbs (takes few days), to release the memory I have to MINIMIZE 
the window, the java process starts taking something like 2-5 mbs. So it seems to me 
(at first sight) that the garbage collection is triggered by minimizing the window, 
and that is the only way of getting it to run.


Has anyone had or seen similar behaviour ? What's the fix ?, how does it run if it's 
being run as a service ?

Thanx, 
-reynir

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




Re: Identical static final variables

2002-10-14 Thread Frank Mau

You have to recompile all java files (where the new constants are 
used!), not only the file including the constants.

Frank

Michael Turley wrote:

Hi,

I was trying to take a short cut debugging an
application on Jetspeed by copying that applications
files to an alternate renamed directory and changing
some of the static final constants to reflect my
impromptu test environment. 

I compiled my new constants file and used the Tomcat
manager application to install my application.
Unfortunately, the new test application is using the
same   static final definitions as the original
application. I have tried recompiling the test file
and reloading the test application but the problem
persists.

Is there a possible namespace issue?

Regards,  

=
Mr. Michael Turley
Gracious winner, Generous lover, All round great guy.
http://www.intheshowerwithmike.com/

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




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




Re: Identical static final variables

2002-10-14 Thread Michael Turley

Even though my constants file is an interface
implemented by the relevant java classes? Should have
thought of that! Thanks.

--- Frank Mau [EMAIL PROTECTED] wrote:  You have to
recompile all java files (where the new
 constants are 
 used!), not only the file including the constants.
 
 Frank
 
 Michael Turley wrote:
 
 Hi,
 
 I was trying to take a short cut debugging an
 application on Jetspeed by copying that
 applications
 files to an alternate renamed directory and
 changing
 some of the static final constants to reflect my
 impromptu test environment. 
 
 I compiled my new constants file and used the
 Tomcat
 manager application to install my application.
 Unfortunately, the new test application is using
 the
 same   static final definitions as the original
 application. I have tried recompiling the test file
 and reloading the test application but the problem
 persists.
 
 Is there a possible namespace issue?
 
 Regards,  
 
 =
 Mr. Michael Turley
 Gracious winner, Generous lover, All round great
 guy.
 http://www.intheshowerwithmike.com/
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

=
Mr. Michael Turley
Gracious winner, Generous lover, All round great guy.
http://www.intheshowerwithmike.com/

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




using the -J-mxnumber command line option

2002-10-14 Thread Bart Vels


I get the message:

org.apache.jasper.JasperException: Unable to compile class for JSPThe
compiler has run out of memory.  Consider using the -J-mxnumber command
line option to increase the maximum heap size

Can someone tell me step-by-step how to invoke the above mentioned command
line option, I'm a beginner!?

regards,
Bart



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




AW: Identical static final variables

2002-10-14 Thread Ralph Einfeldt

static final variables can be inlined through 
the compiler, so if you change the value,
the inlined values won't get changed without 
recompilation.

 -Ursprüngliche Nachricht-
 Von: Michael Turley [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 14. Oktober 2002 13:47
 An: Tomcat Users List
 Betreff: Re: Identical static final variables
 
 
 Even though my constants file is an interface
 implemented by the relevant java classes? Should have
 thought of that! Thanks.
 

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




Re: RequestDispatcher

2002-10-14 Thread Roland Carlsson

Hi again!
It seems like the problem is related to buffers since it resolved itself
when I added a out.flush() before calling the sub-page.

I don't know if this qualify as a bug? It sure is annoying that data can
come out in a different order than the pagelayout would indicate.

Regards
Roland Carlsson

- Original Message -
From: Roland Carlsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 14, 2002 9:48 AM
Subject: RequestDispatcher


Hi!
I got a problem with the RequestDispatcher. I'm trying to make a simple
framwork to include jsp-pages as components into a template-jsp. But I
doesn't get the pages nested the way I'd like it. Could anyone please
explain why the RequestDispatcher puts page2 before page1 instead of inside
page1.

Thanks in advance
Roland Carlsson


Setup:
Apache 1.3.22
Tomcat 4
Windows Nt4 sp5

Example and source:

Imagine these two jsp-files.

-- page one---

test1
%
Machine m = Machine.getInstance();
m.sub(request, response, 1);
%
test1 end

- page two 

test2
test2 end

-- resultpage ---

test2
test2 end
test1
test1 end

 what I expeced 

test1
test2
test2 end
test1 end

- Source of Machine.sub() -

  public void sub(HttpServletRequest request, HttpServletResponse response,
int i){
try{
// Get a database connection
// FixMe: get from a pool
Class.forName(oracle.jdbc.driver.OracleDriver);
StringBuffer sb = new StringBuffer();
sb.append(jdbc:oracle:thin:);
sb.append();
sb.append(/);
sb.append();
sb.append(@:::);
sb.append();
Connection conn = DriverManager.getConnection(sb.toString());

  // Get a Component from the request
  Component oldComp = (Component) request.getAttribute(_komponent);
  // Get Children from the component
  java.util.ArrayList al=  oldComp.getChildren(conn);
  // Get the Component we want for this request
  Component newComp = (Component) oldComp.getChildren(conn).get(i);
  // Populate the child
  newComp.sql_select(conn);
  // Set the child into the request so it will be parent for
sub-components
  request.setAttribute(_komponent, newComp);
  // Include a sub-component into the page
  request.getRequestDispatcher(newComp.getUrl()).include(request,
response);
  // Restore state
  request.setAttribute(_komponent, oldComp);
  // Release db
  conn.close();
}catch(Exception e){
  e.printStackTrace();
}finally{

}
  }


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




Urgent help ( tomcat dies at restart time)

2002-10-14 Thread Rajesh . Bhabaraju



 When I stop and restart tomcat ( ./catalina.sh stop,  ./catalina.sh start)
 Tomcat starts up as required, but after few mins it goes down.
 
 however if I start with run mode  ( ./catalina.sh run) it works properly
 as required.
 
 I test the process by checking
 
 ps -ef|grep java and top statistics
 
 I am currently using tomcat as stand-alone server with ssl-mode. 
 
 Solaris 2.8
 Tomcat 4.0.4
 Java 1.4.01
  
 Can some please help me, this is happening in DEV, TEST and PRODUCTION
 machines.
 
 Rajesh Bhabaraju (RAJ)
 Office of Technology Services
 Phone: 502-564-6949 X 281
 [EMAIL PROTECTED]
 

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




[Jk2] Can't run mod_jk2 against Apache 2.0.41+

2002-10-14 Thread Tom Palmer

Hi,

  I'm having a problem running mod_jk2 with anything greater than Apache
2.0.40. I can build mod_jk2 against the later versions of Apache2 (e.g.
2.0.43) but if I then try and run apache I get the following error reported:

httpd: module ../../server/apache2/mod_jk2.c is not compatible with this
version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.

  (this is reported from 2.0.43). I've tried using the 2.0.1 release and a
recent CVS checkout and have had the same error regardless.

  FYI I'm building on solaris 8 with gcc 3.2. jk/native2/apache2/Makefile.in
has been patched to pass in -DBSD_COMP in order for it to build correctly
under solaris. It has also been patched to link against apr-0 instead of
apr. configure is run with the following args: --with-apxs2=path to apache2
apxs --with-java-home=/usr/j2se.

  I'm guessing that this is somehow related to the solaris build as there
are binaries for mod_jk2 against 2.0.43 under linux. Has anyone else had
this problem or have any idea how to fix it?

  Thanks,

  Tom

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




RE: Using filters to authenticate users...

2002-10-14 Thread Cox, Charlie

is there a reason not to use the form-based auth that's built in?

Charlie

 -Original Message-
 From: Johann Uhrmann [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 6:32 AM
 To: Tomcat Users List
 Subject: Using filters to authenticate users...
 
 
 Hi,
 
 what do You think about the following idea?
 Is it possible at all:
 
 I am looking for a way to build web applications that can
 be used by logging in from a user/password HTML-form.
 
 To do this, I would like to use the standard API which
 would save me reimplementing the JDBC-Realm and Single-SignOn
 features which already come with tomcat.
 
 Is it possible to write a filter, which simply checks 
 
 - the login name
   Should be simple (request.getRemoteUser())
 
 - in case there is no login name, the filter should read the
   parameters username and password...
 
 - if there are values for this parameters, get an instance of
   org.apache.catalina.Realm and pass on the values to the 
   authenticate method.
   Now, check if request.getRemoteUser() still returns null...
 
 That should be simple except of getting the proper instance of
 org.apache.catalina.Realm. Does someone know how to do that?
 
 Thank You,
 
 Hans
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




AW: Using filters to authenticate users...

2002-10-14 Thread Ralph Einfeldt

There is a frequent desire to enable a login, before 
accessing a protected page. 

 -Ursprüngliche Nachricht-
 Von: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 14. Oktober 2002 14:56
 An: 'Tomcat Users List'
 Betreff: RE: Using filters to authenticate users...
 
 
 is there a reason not to use the form-based auth that's built in?
 
 Charlie
 
  -Original Message-
  From: Johann Uhrmann [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 14, 2002 6:32 AM
  To: Tomcat Users List
  Subject: Using filters to authenticate users...
  
  
  Hi,
  
  what do You think about the following idea?
  Is it possible at all:
  
  I am looking for a way to build web applications that can
  be used by logging in from a user/password HTML-form.
  
  To do this, I would like to use the standard API which
  would save me reimplementing the JDBC-Realm and Single-SignOn
  features which already come with tomcat.
  
  Is it possible to write a filter, which simply checks 
  
  - the login name
  Should be simple (request.getRemoteUser())
  
  - in case there is no login name, the filter should read the
parameters username and password...
  
  - if there are values for this parameters, get an instance of
org.apache.catalina.Realm and pass on the values to the 
authenticate method.
Now, check if request.getRemoteUser() still returns null...
  
  That should be simple except of getting the proper instance of
  org.apache.catalina.Realm. Does someone know how to do that?
  
  Thank You,
  
  Hans
  
  
  
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



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




SSL used to work, now doesn't!

2002-10-14 Thread Martin Jacobson

Hi,

I'm running 4.0.4b3  4.1.12 on Mac OS X 10.1.5. I had SSL working 
correctly, but now, suddenly, it doesn't any more :-(

I suspect that there is something wrong external to tomcat, but this is 
the stack trace I get:

[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 80
java.io.IOException: Cannot recover key
 at 
org.apache.tomcat.util.net.JSSESocketFactory.initProxy(JSSESocketFactory.java:231)
 at 
org.apache.tomcat.util.net.JSSESocketFactory.createSocket(JSSESocketFactory.java:127)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:263)
 at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
 at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1002)
 at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
 at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:509)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
[ERROR] Http11Protocol - -Error initializing endpoint 
java.io.IOException: Cannot recover key
Catalina.start: LifecycleException:  Protocol handler initialization 
failed: java.io.IOException: Cannot recover key
LifecycleException:  Protocol handler initialization failed: 
java.io.IOException: Cannot recover key
 at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1004)
 at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
 at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:509)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.stop: LifecycleException:  This server has not yet been started

I looked at the source of JSSESocketFactory, and the exception is being 
thrown from a rather big try{} block, and ALL exceptions are re-thrown 
as IOException, so it's difficult for me to identify where the problem 
might be.

The server.xml parameters are correct (they didn't change!), and keytool 
can retrieve the certificate. I suspect that the culprit might be a 
security upgrade I recently applied to Mac OS X, but before I post a bug 
report to Apple, I'd like to pinpoint where the problem is, and 
reproduce it in a simple test class, so any help identifying the 
offending method call will be greatly appreciated!

Thanks,

Martin


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




JNDI Datasource is null

2002-10-14 Thread James hughes

Hi there,

I am using Oracle 9i, DBCP and Tomcat 4.1.12.  I am trying to configure a
JNDI datasource that implements connection pooling.  I have been following
the instructions in the JNDI how to, specifically the section for Oracle.

My problem is that the JNDI Datasource is null when I try to get it from the
context.  I cant see any exceptions being thrown anywhere.

Can anyone tell me what I have missed?

My server.xml is as follows (this entry is in the HOST tag, after the
/examples context):

Context className=org.apache.catalina.core.StandardContext 
 cachingAllowed=true 
 charsetMapperClass=org.apache.catalina.util.CharsetMapper

 cookies=true 
 crossContext=true 
 debug=5 docBase=TestDB 
 
mapperClass=org.apache.catalina.core.StandardContextMapper 
 path=/TestDB privileged=false 
 reloadable=true swallowOutput=false 
 useNaming=true 
 wrapperClass=org.apache.catalina.core.StandardWrapper
  Logger className=org.apache.catalina.logger.FileLogger 
  debug=0 directory=logs 
  prefix=localhost_DBTest_log. 
  suffix=.txt timestamp=true verbosity=1/
  Resource auth=container name=jdbc/myoracle scope=Shareable
type=java.sql.DataSource/
  ResourceParams name=jdbc/myoracle
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  nameurl/name
  valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value
/parameter
parameter
  namepassword/name
  valuetiger/value
/parameter
parameter
  namemaxActive/name
  value20/value
/parameter
parameter
  namemaxWait/name
  value10/value
/parameter
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameuser/name
  valuescott/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
  /ResourceParams
/Context


And web.xml is as follows:

  resource-ref
descriptionOracle Datasource example/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref



I have a class as follows:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest 
{
  String foo = Not Connected;
  int bar = -1;

public void init() 
{
try
{
Context ctx = new InitialContext();
if(ctx == null ) 
{
throw new Exception(Boom - No Context);
}

Context envContext  =
(Context)ctx.lookup(java:/comp/env);
DataSource ds =
(DataSource)envContext.lookup(jdbc/myoracle);

if (ds != null)
{
Connection conn = ds.getConnection();

if(conn != null)
{
foo = Got Connection
+conn.toString();
Statement stmt =
conn.createStatement();
ResultSet rst =
stmt.executeQuery(select id, foo, bar from testdata);

if(rst.next())
{
foo = rst.getString(2);
bar = rst.getInt(3);
}

conn.close();
}
}
else
{
System.out.println(DS was null!);
}
}
catch(Exception e)
{
e.printStackTrace();
}
}

public String getFoo() { return foo; }
public int getBar() { return bar;}
}



And finally, a JSP as follows:

html
  head
titleDB Test/title
  /head
  body

  %
foo.DBTest tst = new foo.DBTest();
tst.init();
  %

  h2Results/h2
Foo %= tst.getFoo() %br/
Bar %= tst.getBar() %

  /body
/html


--
To unsubscribe, e-mail:   

RE: tomcat 4.1.12 with apache

2002-10-14 Thread Turner, John


Based on what criteria, exactly?  

John


 -Original Message-
 From: Dionisio Ruiz de Zarate [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, October 13, 2002 6:32 PM
 To: Tomcat Users List
 Subject: Re: tomcat 4.1.12 with apache
 
 
 the best for tomcat 4.1.12 is the mod_webapps
 - Original Message -
 From: Sven Köhler [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, October 13, 2002 11:00 PM
 Subject: tomcat 4.1.12 with apache
 
 
  hi,
 
  i want my apache to use tomcat to serve JSP-pages and Servlets.
  I googled and found mod_jserv, mod_jk and mod_webapp.
 
  I couldn't find out, which one to use with tomcat 4.0 because:
 mod_jserv is bad compared to mod_jk
 mod_jk is only bundled with tomcat 3.0
 
  What does that mean?
  Am i supposed to use mod_jk?
 
  mod_webapp was mentioned on some pages, but i didn't find 
 any source or
  binary releases.
 
  Where's the page in the tomcat 4.x docs, that mentions hot 
 to use tomcat
  with apache?
 
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: tomcat 4.1.12 with apache

2002-10-14 Thread Turner, John


No.  There are 2 distinct modules.  The production-ready module is JK
(mod_jk).  There is a new development effort underway for an improved
connector, that effort is JK2 (mod_jk2).  Mod_jk2 should be considered beta
at this time, though it's apparently usable.  The default connector in
Tomcat 4.1.1x is JK2...to use JK you will want to comment out the JK2
connector and enable the AJP13 connector in server.xml.

John

 -Original Message-
 From: Sven Köhler [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 2:54 AM
 To: [EMAIL PROTECTED]
 Subject: Re: tomcat 4.1.12 with apache
 
 
  mod_jk is available for use with Tomcat 4.x.  In fact, many 
 subscribers to
  this list are using that very configuration.
  
  There are many HOW-TO's listed about how to integrate 
 Apache and Tomcat
  3.x/4.x using mod_jk.  A quick browse through the archives 
 of this list
  archive will provide proof of this.
  
  mod_webapp is no longer current and should not be used.  
 Again, reading the
  list archive will prove this as well.
 
 i found mod_jk2 v2.0.1 but i get confused when reading the docs.
 the docs talk about mod_jk and mod_jk2 - are these just 2 
 names for the 
 same module?
 
 the docs:
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2
 /release/v2.0.1/doc/
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Is Apache Httpd required

2002-10-14 Thread Turner, John


Tomcat alone is fine.  Use Tomcat + Apache only if it suits your purposes.

John

 -Original Message-
 From: Narendra [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 4:03 AM
 To: [EMAIL PROTECTED]
 Subject: Is Apache Httpd required
 
 
 Hello All,
 My Application has only 1 static page and around 15 images 
 and 5 java-script
 files...All the rest are servlets and JSP's...
 Do I need to integrate Apache Http and Tomcat ???
 I feel there is no need..as the static content is very less..
 I also feel that if I don't integrate Apache and Tomcat, then 
 there will be a
 performance boost because there would be
 no IPC ( Interprocess Communication) between Apache and Tomcat ...
 
 So what should be done ?...Are there any other problems for 
 running Tomcat
 without Apache webserver ?
 
 Regards,
 naren
 
 ---
 An embrace should fill the heart as well as the arms..
 
 *
 Disclaimer
 
 This message (including any attachments) contains 
 confidential information intended for a specific 
 individual and purpose, and is protected by law. 
 If you are not the intended recipient, you should 
 delete this message and are hereby notified that 
 any disclosure, copying, or distribution of this
 message, or the taking of any action based on it, 
 is strictly prohibited.
 
 *
 Visit us at http://www.mahindrabt.com
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: servlet with mod_jk

2002-10-14 Thread Turner, John


Are the requests even getting to Tomcat?  What are the contents of your
workers.properties file?  What is in the mod_jk.log?

John


 -Original Message-
 From: John Walstra [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, October 12, 2002 2:03 PM
 To: Tomcat Mailing List
 Subject: servlet with mod_jk
 
 
 I've just written my first servlet. I have no problems access 
 it through 
 Tomcat via port 8080, but can't via Apache and mod_jk. I have 
 no problems 
 with JSPs, but receive a 404 error when i try to access the 
 servlet through 
 Apache. I'm using Tomcat 4.1.12 and Apache 2.0.42, if that is needed.
 
 The error message:
 
 HTTP Status 404 - /servlet/FlashMenu
 
 From my Apache http.conf ( inside Virutal Host ):
 
 JkMount /*.jsp jkw
 JkMount /servlet/* jkw
 
 From my web.xml:
 
 web-app
 
   servlet
 servlet-nameFlashMenuServlet/servlet-name
 servlet-classFlashMenuServlet/servlet-class
   /servlet
   servlet-mapping
 servlet-nameFlashMenuServlet/servlet-name
 url-pattern/servlet/FlashMenu/url-pattern
   /servlet-mapping
 
 What am I missing in my config or what should I look for?
 
 -- 
 John Walstra
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




AW: tomcat 4.1.12 with apache

2002-10-14 Thread Ralph Einfeldt

As understood it, only the mod_jk2 (the c module for apache) 
is beta, but not the JK2Connector (the java module for tomcat)
and that it is possible to use the JK2Connector with mod_jk
and mod_jk2. (I know it's confusing, but that's life (or was 
it hell, I can't remember for shure...))

 -Ursprüngliche Nachricht-
 Von: Turner, John [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 14. Oktober 2002 15:24
 An: 'Tomcat Users List'
 Betreff: RE: tomcat 4.1.12 with apache
 
 No.  There are 2 distinct modules.  The production-ready module is JK
 (mod_jk).  There is a new development effort underway for an improved
 connector, that effort is JK2 (mod_jk2).  Mod_jk2 should be 
 considered beta
 at this time, though it's apparently usable.  The default connector in
 Tomcat 4.1.1x is JK2...to use JK you will want to comment out the JK2
 connector and enable the AJP13 connector in server.xml.
 

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




RE: tomcat 4.1.12 with apache

2002-10-14 Thread Turner, John


Thanks for the clarification.

John

 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 9:31 AM
 To: Tomcat Users List
 Subject: AW: tomcat 4.1.12 with apache
 
 
 As understood it, only the mod_jk2 (the c module for apache) 
 is beta, but not the JK2Connector (the java module for tomcat)
 and that it is possible to use the JK2Connector with mod_jk
 and mod_jk2. (I know it's confusing, but that's life (or was 
 it hell, I can't remember for shure...))
 
  -Ursprüngliche Nachricht-
  Von: Turner, John [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 14. Oktober 2002 15:24
  An: 'Tomcat Users List'
  Betreff: RE: tomcat 4.1.12 with apache
  
  No.  There are 2 distinct modules.  The production-ready 
 module is JK
  (mod_jk).  There is a new development effort underway for 
 an improved
  connector, that effort is JK2 (mod_jk2).  Mod_jk2 should be 
  considered beta
  at this time, though it's apparently usable.  The default 
 connector in
  Tomcat 4.1.1x is JK2...to use JK you will want to comment 
 out the JK2
  connector and enable the AJP13 connector in server.xml.
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: [Jk2] Can't run mod_jk2 against Apache 2.0.41+

2002-10-14 Thread Brzezinski, Paul J

Didn't try this against Apache 2.0.43, but had to make similar mods to 
Makefile.in in jk/native2/server/apache2.  

I'm posting a response because I would like to know what is apr-0?

I've built 2.0.40, jk2 on Solaris using 64-bit gcc 3.1 and cannot get 
the ChannelUnix tomcat connector to work.

Tom Palmer wrote:

Hi,

  I'm having a problem running mod_jk2 with anything greater than Apache
2.0.40. I can build mod_jk2 against the later versions of Apache2 (e.g.
2.0.43) but if I then try and run apache I get the following error reported:

httpd: module ../../server/apache2/mod_jk2.c is not compatible with this
version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.

  (this is reported from 2.0.43). I've tried using the 2.0.1 release and a
recent CVS checkout and have had the same error regardless.

  FYI I'm building on solaris 8 with gcc 3.2. jk/native2/apache2/Makefile.in
has been patched to pass in -DBSD_COMP in order for it to build correctly
under solaris. It has also been patched to link against apr-0 instead of
apr. configure is run with the following args: --with-apxs2=path to apache2
apxs --with-java-home=/usr/j2se.

  I'm guessing that this is somehow related to the solaris build as there
are binaries for mod_jk2 against 2.0.43 under linux. Has anyone else had
this problem or have any idea how to fix it?

  Thanks,

  Tom

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






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




RE: [Jk2] Can't run mod_jk2 against Apache 2.0.41+

2002-10-14 Thread Tom Palmer

Hi,

  The patch for apr-0 is necessary because, for some reason, libapr.so is
actually libapr-0.so in Apache 2.0.43 hence linking against -lapr will fail.

  Regards,

  Tom

 -Original Message-
 From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
 Sent: 14 October 2002 14:41
 To: Tomcat Users List
 Subject: Re: [Jk2] Can't run mod_jk2 against Apache 2.0.41+
 
 
 Didn't try this against Apache 2.0.43, but had to make 
 similar mods to 
 Makefile.in in jk/native2/server/apache2.  
 
 I'm posting a response because I would like to know what is apr-0?
 
 I've built 2.0.40, jk2 on Solaris using 64-bit gcc 3.1 and cannot get 
 the ChannelUnix tomcat connector to work.
 
 Tom Palmer wrote:
 
 Hi,
 
   I'm having a problem running mod_jk2 with anything greater 
 than Apache
 2.0.40. I can build mod_jk2 against the later versions of 
 Apache2 (e.g.
 2.0.43) but if I then try and run apache I get the following 
 error reported:
 
 httpd: module ../../server/apache2/mod_jk2.c is not 
 compatible with this
 version of Apache (found 20020628, need 20020903).
 Please contact the vendor for the correct version.
 
   (this is reported from 2.0.43). I've tried using the 2.0.1 
 release and a
 recent CVS checkout and have had the same error regardless.
 
   FYI I'm building on solaris 8 with gcc 3.2. 
 jk/native2/apache2/Makefile.in
 has been patched to pass in -DBSD_COMP in order for it to 
 build correctly
 under solaris. It has also been patched to link against 
 apr-0 instead of
 apr. configure is run with the following args: 
 --with-apxs2=path to apache2
 apxs --with-java-home=/usr/j2se.
 
   I'm guessing that this is somehow related to the solaris 
 build as there
 are binaries for mod_jk2 against 2.0.43 under linux. Has 
 anyone else had
 this problem or have any idea how to fix it?
 
   Thanks,
 
   Tom
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
   
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: JNDI Datasource is null

2002-10-14 Thread Jacob Kjome


2 things are possible culprits

The syntax for JNDI datasources changed slightly after moving from Tyrex as 
the default provider to DBCP.  Specifically, user should be 
username.  The other thing is the Resource scope=Sharable.  That 
might be right, but I've never used it.  I use Container for that value.

Jake

At 02:07 PM 10/14/2002 +0100, you wrote:
Hi there,

I am using Oracle 9i, DBCP and Tomcat 4.1.12.  I am trying to configure a
JNDI datasource that implements connection pooling.  I have been following
the instructions in the JNDI how to, specifically the section for Oracle.

My problem is that the JNDI Datasource is null when I try to get it from the
context.  I cant see any exceptions being thrown anywhere.

Can anyone tell me what I have missed?

My server.xml is as follows (this entry is in the HOST tag, after the
/examples context):

 Context className=org.apache.catalina.core.StandardContext
  cachingAllowed=true
  charsetMapperClass=org.apache.catalina.util.CharsetMapper

  cookies=true
  crossContext=true
  debug=5 docBase=TestDB

mapperClass=org.apache.catalina.core.StandardContextMapper
  path=/TestDB privileged=false
  reloadable=true swallowOutput=false
  useNaming=true
  wrapperClass=org.apache.catalina.core.StandardWrapper
   Logger className=org.apache.catalina.logger.FileLogger
   debug=0 directory=logs
   prefix=localhost_DBTest_log.
   suffix=.txt timestamp=true verbosity=1/
   Resource auth=container name=jdbc/myoracle scope=Shareable
type=java.sql.DataSource/
   ResourceParams name=jdbc/myoracle
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value
 /parameter
 parameter
   namepassword/name
   valuetiger/value
 /parameter
 parameter
   namemaxActive/name
   value20/value
 /parameter
 parameter
   namemaxWait/name
   value10/value
 /parameter
 parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
   nameuser/name
   valuescott/value
 /parameter
 parameter
   namemaxIdle/name
   value10/value
 /parameter
   /ResourceParams
 /Context


And web.xml is as follows:

   resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/myoracle/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref



I have a class as follows:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest
{
   String foo = Not Connected;
   int bar = -1;

 public void init()
 {
 try
 {
 Context ctx = new InitialContext();
 if(ctx == null )
 {
 throw new Exception(Boom - No Context);
 }

 Context envContext  =
(Context)ctx.lookup(java:/comp/env);
 DataSource ds =
(DataSource)envContext.lookup(jdbc/myoracle);

 if (ds != null)
 {
 Connection conn = ds.getConnection();

 if(conn != null)
 {
 foo = Got Connection
+conn.toString();
 Statement stmt =
conn.createStatement();
 ResultSet rst =
stmt.executeQuery(select id, foo, bar from testdata);

 if(rst.next())
 {
 foo = rst.getString(2);
 bar = rst.getInt(3);
 }

 conn.close();
 }
 }
 else
 {
 System.out.println(DS was null!);
 }
 }
 catch(Exception e)
 {
 e.printStackTrace();
 }
 }

 public String getFoo() { return foo; }
 public int getBar() { return 

RE: Tomcat is supposing a js file is a servlet

2002-10-14 Thread Cox, Charlie

how is it calling this .js file? You can't use RequestDispatcher on js
files. You probably want a script in your serlvet's html output.

Charlie

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 11, 2002 10:59 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat is supposing a js file is a servlet
 
 
 Probably one of my ( Automatically generated ) servlets is calling an 
 external javascript file called gx_help.js. Tomcat is 
 assuming that this 
 file is an servlet and log the error that follows:
 
 
 2002-10-11 09:59:25 
 StandardWrapper[:org.apache.catalina.INVOKER.gx_help.js]: 
 Marking servlet 
 org.apache.catalina.INVOKER.gx_help.js as unavailable
 2002-10-11 09:59:25 invoker: Cannot allocate servlet instance 
 for path 
 /servlet/gx_help.js
 javax.servlet.ServletException: Wrapper cannot find servlet class 
 gx_help.js or a class it depends on
 at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.java:880)
 at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java:658)
 at 
 org.apache.catalina.servlets.InvokerServlet.serveRequest(Invok
 erServlet.java:408)
 at 
 org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServl
 et.java:180)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 (...)
 
 
 Does anyone knows how to make it works?
 
 
 Thanks,
 Leo
 

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




Tomcat/Jasper: jsp page extends=myOwnJspBase

2002-10-14 Thread Thomas Heller

hi all,

i'm developing a little framework for some web applications i am going to
do. I wanted to build my own JspBase Model by creating a abstract class
(similar to HttpJspBase that comes with Jasper) implementing the
javax.servlet.jsp.JspPage interface.

all i wanted to do is to change the class from calling
_jspService(HttpServletRequest, HttpServletResponse)... from the
service(ServletRequest, ServletResponse) method to
_jspService(MyServletRequest, MyServletResponse)

During the processing of the request i'll wrap a custom
HttpServletRequestWrapper, ResponseWrapper over the current request/response
objects.

currently i have a request, response object which are (if i do instanceof)
instances of my wrapper objects in my jsp. Howoever i have to do

MyServletRequest myrequest = (MyServletRequest)request;
MyServletResponse myresponse = (MyServletResponse)response;

in every Jsp to use any methods/object from my wrapped objects. im trying to
do that cause i don't want to use the common way [eg. put every object
into request.setAttribute, instead i wanted to have
request.getSomeInfoMyFrameworkHasForMe()]. All this works if i just cast it
in the jsp _but_ i wonder if there is a way to do it without casting and
just through my JspBase class.

if i try all this now i get

HTTP Status 503 - [javax.servlet.ServletException:
MyJspBase._jspService(LMyRequest;LMyResponse;)V]

from tomcat because he translates the jsp to the wrong
_jspService(Http..., Http...) and not _jspService(My..., My...)

Am I violating any jsp/servlet specs with what im trying to do or am i just
on the wrong way or is it a limitation from tomcat/jasper im running into?
Can i tell him somewhere that the variable request inside _jspService is an
instance of MyRequest not HttpServletRequest?

I hope this was understandable (trying to explain an idea i have in mind is
pretty hard sometimes :) and someone read this far. I really would
appreciate any comments/help on this. Maybe there is another way to do it
and i'm just overlooking it.

thanks in advance,
thomas

PS:
my JspBase class

[--- START: MyJspBase.java ---]

import java.io.IOException;
import javax.servlet.jsp.JspPage;
import javax.servlet.ServletConfig;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.ServletException;

public abstract class MyJspBase implements JspPage
{
 private ServletConfig config;

 public void init(ServletConfig config)
 {
  this.config = config;
 }

 public void destroy()
 {
 }

 public ServletConfig getServletConfig()
 {
  return config;
 }

 public String getServletInfo()
 {
  return info;
 }

 public void service(ServletRequest request, ServletResponse response)
throws ServletException, IOException
 {
// this shouldnt happen .. just for curiosity reasons .. remove soon
if (response instanceof MyServletResponse)
throw new ServletException(eeks, no framework response);
   _jspService((MyServletRequest)request, (MyServletResponse)response);
 }


 public void jspInit()
 {
 }

 public void jspDestroy()
 {
 }

 public abstract void _jspService(MyServletRequest request,
MyServletResponse response) throws java.io.IOException,
javax.servlet.ServletException;
}

[--- END: MyJspBase.java ---]

[--- START: test.jsp ---]

%@ page extends=MyJspBase %
%
  out.print(hmpf this isnt reached);
%

[--- END: test.jsp ---]


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




RE: JNDI Datasource is null

2002-10-14 Thread James hughes

I changed the values, but still the Datasource is null :(

I find it strange that the JNDI name exists with no object - that is, I dont
get a NameNotFoundException.


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 14:53
To: Tomcat Users List
Subject: Re: JNDI Datasource is null



2 things are possible culprits

The syntax for JNDI datasources changed slightly after moving from Tyrex as 
the default provider to DBCP.  Specifically, user should be 
username.  The other thing is the Resource scope=Sharable.  That 
might be right, but I've never used it.  I use Container for that value.

Jake

At 02:07 PM 10/14/2002 +0100, you wrote:
Hi there,

I am using Oracle 9i, DBCP and Tomcat 4.1.12.  I am trying to configure a
JNDI datasource that implements connection pooling.  I have been following
the instructions in the JNDI how to, specifically the section for Oracle.

My problem is that the JNDI Datasource is null when I try to get it from
the
context.  I cant see any exceptions being thrown anywhere.

Can anyone tell me what I have missed?

My server.xml is as follows (this entry is in the HOST tag, after the
/examples context):

 Context className=org.apache.catalina.core.StandardContext
  cachingAllowed=true

charsetMapperClass=org.apache.catalina.util.CharsetMapper

  cookies=true
  crossContext=true
  debug=5 docBase=TestDB

mapperClass=org.apache.catalina.core.StandardContextMapper
  path=/TestDB privileged=false
  reloadable=true swallowOutput=false
  useNaming=true
  wrapperClass=org.apache.catalina.core.StandardWrapper
   Logger className=org.apache.catalina.logger.FileLogger
   debug=0 directory=logs
   prefix=localhost_DBTest_log.
   suffix=.txt timestamp=true verbosity=1/
   Resource auth=container name=jdbc/myoracle
scope=Shareable
type=java.sql.DataSource/
   ResourceParams name=jdbc/myoracle
 parameter
   namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value
 /parameter
 parameter
   namepassword/name
   valuetiger/value
 /parameter
 parameter
   namemaxActive/name
   value20/value
 /parameter
 parameter
   namemaxWait/name
   value10/value
 /parameter
 parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
   nameuser/name
   valuescott/value
 /parameter
 parameter
   namemaxIdle/name
   value10/value
 /parameter
   /ResourceParams
 /Context


And web.xml is as follows:

   resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/myoracle/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref



I have a class as follows:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest
{
   String foo = Not Connected;
   int bar = -1;

 public void init()
 {
 try
 {
 Context ctx = new InitialContext();
 if(ctx == null )
 {
 throw new Exception(Boom - No Context);
 }

 Context envContext  =
(Context)ctx.lookup(java:/comp/env);
 DataSource ds =
(DataSource)envContext.lookup(jdbc/myoracle);

 if (ds != null)
 {
 Connection conn = ds.getConnection();

 if(conn != null)
 {
 foo = Got Connection
+conn.toString();
 Statement stmt =
conn.createStatement();
 ResultSet rst =
stmt.executeQuery(select id, foo, bar from testdata);

 if(rst.next())
 {
 foo = rst.getString(2);
 bar = rst.getInt(3);
 }

 conn.close();
 }
 }
 else
 {
 

RE: JK2 URI not correctly mapped for multiple virtual hosts in httpd.conf

2002-10-14 Thread gabriele . garuglieri

Hi Mladen,
I'll try to answer yor questions.
1- server.xml is the default one with host name=localhost

2- the environmement i'm trying to replicate already works with mod_jk (you
may ask, so why don't you stick there? Well at least in the development env
i like to be on the bleeding edge of technology).
I have a group of developers, each of which has its own tomcat instance, a
couple of beta test environments and some production environments. That's
the reason to all those groups and load balancers, development and testing
and configuration experiments.
I tried to clean up the config i sent but something slipped in, in any case
this does not change the problem.
My sillogism is:  if a config is valid and it's working with mod_jk, then
it has to work, somehow, also with mod_jk2.

3- No there isn't. When the uri's are mapped into httpd.conf and not into
workers2.properties, like the conf files i sent,  there is NO way to call
iv00/*.jsp, beacuse this uri is not mapped anywhere.
If, in httpd.conf, i map as shown virtualhost iv00 then ivdev01,
ivdev01/*.jsp works, iv00/*.jsp DOES NOT WORK (404 Not Found).
If i reverse, in httpd.conf, the order of virtual hosts, ie  ivdev01 THEN
iv00, iv00/*.jsp works and ivdev01/*.jsp DOES NOT WORK (404 Not Found).

In the end when mapping same uri path to different virtual hosts ONLY THE
LAST ONE IN READ ORDER WILL GET CORRECT MAPPING and will be delivered to
the correct tomcat instance.

If you say me that jk2 is not meant for this kind of configurations, i'll
forget everything (with regret because i've got the impression that it's a
bit faster and stabler than jk), and stick with jk. But IMHO this is not a
correct behaviour and for what in my possibilities i wish to cooperate to
solve this.

Best regards,  Gabriele.



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




Re: Tomcat/Jasper: jsp page extends=myOwnJspBase

2002-10-14 Thread Thomas Heller

hi again,

ok i looked into the sources of jasper and obviously it isnt possible what
i'm trying to do.

[snip]
out.printin(public void );
out.print  (serviceMethodName);
out.println((HttpServletRequest request, HttpServletResponse
response));
out.println(throws java.io.IOException, ServletException {);
[snip]

doesnt look very customizable. Anyway .. all i need to change is on line of
code, any jasper dev here that will hate me for doing it? :p

I know i might be destroying my option to move to another servlet container
but i why should the JspPage interface allow me to do that but the container
not?! Plz tell me if i'm violating the spec ... right now i feel its a good
idea what im going to do .. but however .. i'm maybe completly wrong.

bye,
thomas

- Original Message -
From: Thomas Heller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 14, 2002 3:53 PM
Subject: Tomcat/Jasper: jsp page extends=myOwnJspBase


 hi all,

 i'm developing a little framework for some web applications i am going to
 do. I wanted to build my own JspBase Model by creating a abstract class
 (similar to HttpJspBase that comes with Jasper) implementing the
 javax.servlet.jsp.JspPage interface.

 all i wanted to do is to change the class from calling
 _jspService(HttpServletRequest, HttpServletResponse)... from the
 service(ServletRequest, ServletResponse) method to
 _jspService(MyServletRequest, MyServletResponse)

 During the processing of the request i'll wrap a custom
 HttpServletRequestWrapper, ResponseWrapper over the current
request/response
 objects.

 currently i have a request, response object which are (if i do instanceof)
 instances of my wrapper objects in my jsp. Howoever i have to do

 MyServletRequest myrequest = (MyServletRequest)request;
 MyServletResponse myresponse = (MyServletResponse)response;

 in every Jsp to use any methods/object from my wrapped objects. im trying
to
 do that cause i don't want to use the common way [eg. put every object
 into request.setAttribute, instead i wanted to have
 request.getSomeInfoMyFrameworkHasForMe()]. All this works if i just cast
it
 in the jsp _but_ i wonder if there is a way to do it without casting and
 just through my JspBase class.

 if i try all this now i get

 HTTP Status 503 - [javax.servlet.ServletException:
 MyJspBase._jspService(LMyRequest;LMyResponse;)V]

 from tomcat because he translates the jsp to the wrong
 _jspService(Http..., Http...) and not _jspService(My..., My...)

 Am I violating any jsp/servlet specs with what im trying to do or am i
just
 on the wrong way or is it a limitation from tomcat/jasper im running into?
 Can i tell him somewhere that the variable request inside _jspService is
an
 instance of MyRequest not HttpServletRequest?

 I hope this was understandable (trying to explain an idea i have in mind
is
 pretty hard sometimes :) and someone read this far. I really would
 appreciate any comments/help on this. Maybe there is another way to do it
 and i'm just overlooking it.

 thanks in advance,
 thomas


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




Re: Authentification LDAP multiple entries

2002-10-14 Thread Jonathan Eric Miller

Don't use cn, use uid.

Jon

- Original Message -
From: hans albers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 14, 2002 4:09 AM
Subject: Authentification LDAP multiple entries


 Authentification with JNDI-Realm works fine,
 but what to do if there are multiple entries
 with the same cn in the Directory?

 in my server.xml there's
 userBase=ou=first,o=company
 userSearch=(cn={0})
 userSubtree=true

 What to do if there are the entries
   cn=Peter Webbers,ou=help,ou=first,o=company
   cn=Peter Webbers,ou=water,ou=first,o=company
 other than changing the cn's???
 (I mustn't change them)

 Thanks in advace

 Hans



 _
 Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden:
 http://messenger.msn.de


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



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




Re: Running class finalize method when stopping/restarting a WebApp

2002-10-14 Thread JensStutte


There is no way to ensure, that a finalize method is called. It depends on
the JVM's GC implementation and has nothing to do with tomcat. If it's a
servlet, you can override the destroy() method of the servlet class to
close your connections. Or you make a class that implements
HttpSessionBindingListener and put it into the session (depends on your
connection architecture).

Regards,

Jens Stutte



   
 
Oakleaf Admin  
 
Admin@oakleafconsulTo: 
'[EMAIL PROTECTED]'  
tancy.com  [EMAIL PROTECTED]   
 
cc:
 
27/09/2002 15.20Subject: Running class finalize 
method when 
Please respond to   stopping/restarting a WebApp   
 
Tomcat Users List
 
   
 
   
 




Hi,

I have an application scope class that is managing an Oracle connection
cache to my database.

The finalize method of this class is written to terminate all connections
and close the connection cache.

However, when I stop the webapp or restart it (using the manager app) the
finalize of this class is not run everytime (about1 in every 3 times it
does
run), furthermore it seems to me that Tomcat is keeping a reference to the
class as the garbage collector never closes it and Oracle DCD cannot
terminate the connection as it thinks it is still alive.

Can anyone tell me how to ensure the finalize method is run everytime the
webapp is stopped/restarted or if there is any other way of doing the same
thing ?

Thanks in advance, Eddie






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




Re: Unable to compile JSP

2002-10-14 Thread Shanniew

Sorry it was a typo error over here. Indeed I'm refering to WEB-INF.


 is WEB_INF a typo? it needs to be WEB-INF

 -Original Message-
 From: Shanniew [mailto:[EMAIL PROTECTED]]
 Sent: 14 October 2002 08:04
 To: [EMAIL PROTECTED]
 Subject: Unable to compile JSP


 I have already set the JAVA_HOME, CATALINA_HOME.
  \webapps\myjsp\WEB_INF\classes
  \webapps\myjsp\WEB_INF\lib (the dir where I put the .jar by third
 party)

 However I faced this problem:

 HTTP Status 500 -
 --
--
 
 type Exception report
 message
 description The server encountered an internal error () that prevented it
 from fulfilling this request.
 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP


 Do I need to change the ..\Tomcat\bin\setclasspath.bin to include
 \webapps\myjsp\WEB_INF\classes or \webapps\myjsp\WEB_INF\lib.

 Am really confused.



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




WHO knows about it ???

2002-10-14 Thread Jean-Luc BEAUDET

  Hi everybody !

Well i'm actually using Apache 1.3.26 with Tomcat 4.0.2 via the WARP 
1.0.2 Final Release for monthes now and all is runnin' good. - i test it 
on a prod server -

I saw smth really amazing in the mailing list about mod_j2k and 
mod_webapp saying that in the last rel of Tomcat mod_webapp is not to be 
considered any more !

Does it makes sens for someone ???

I'd like so much to get more informations about it since i use to work 
with mod_webapp for quite a long..

As i'm always interrested in new Releases of Apache/Tomcat i would 
appreciate someone to tell the truth about all that stuff.

Best regards.

Jean-Luc BEAUDET - KODAK I.N.R.D -
:O)



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




RE: RE: HELP How to build JK2.2.0.1 on linux

2002-10-14 Thread Ignacio J. Ortega

 From: yoom nguyen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 2:21 AM

 [tomcat@dev1 jk]$ ant jkant
 Buildfile: build.xml
 
 jkant:
 
 BUILD FAILED
 file:/db2/tomcat/jk2201/jk/build.xml:228: 
 srcdir /db2/tomcat/jk2201/jk/jkant/java does not exist

Which sources are you using? if using CVS maybe you need to do a cvs
update -P -d -a, to get all the source dirs, your installation lacks the
jk java part, where is located the jkant code..

Saludos, 
Ignacio J. Ortega 

 -Original Message-
 To: Tomcat Users List
 Subject: Re: RE: HELP How to build JK2.2.0.1 on linux
 
 
 This is what I got back.  
 
 
 Total time: 6 seconds
 
 
 - Original Message -
 From: Ignacio J. Ortega [EMAIL PROTECTED]
 Date: Saturday, October 12, 2002 8:16 pm
 Subject: RE: HELP How to build JK2.2.0.1 on linux
 
   From: yoom nguyen [mailto:[EMAIL PROTECTED]]
   Sent: Saturday, October 12, 2002 9:16 PM
  
   
   ***
   If I run ant under /distribution-from-apaches/jk/native2 
   directory I got
   these errors
   
   1.
   [taskdef] Could not load definitions from resource 
 META-IN It coul
   d not be found.
   
   BUILD FAILED
   file:/db2/tomcat/jk2201/jk/native2/build.xml:276: Could not 
   create task
   or type 
   of type: so.
   
   
  
  
  You need frist to compile the needed task classes for ant, to do 
  it go
  jk dir and issue ant jkant
  
  
  Saludos, 
  Ignacio J. Ortega 
  
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
  [EMAIL PROTECTED]For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


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




Pre compile of jsp

2002-10-14 Thread Ashish Kulkarni

Hi,
when ever i modify a jsp, it is compiled first time
when it is accessed from web, and this process takes a
long time,
if i have to precompile this jsp to use in tomcat4.0.4
so even the first time access will be fast
how can i do it,
can any one provide any info on doing this

Ashish

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




Re: RE: tomcat 4.1.12 with apache

2002-10-14 Thread yoom nguyen

John
If the jk2 is come with  Tomcat 4.1.X.  Would you know if mod-jk.so
come with it.

Thanks, Yoom

- Original Message -
From: Turner, John [EMAIL PROTECTED]
Date: Monday, October 14, 2002 9:24 am
Subject: RE: tomcat 4.1.12 with apache

 
 No.  There are 2 distinct modules.  The production-ready module is JK
 (mod_jk).  There is a new development effort underway for an improved
 connector, that effort is JK2 (mod_jk2).  Mod_jk2 should be 
 considered beta
 at this time, though it's apparently usable.  The default 
 connector in
 Tomcat 4.1.1x is JK2...to use JK you will want to comment out the JK2
 connector and enable the AJP13 connector in server.xml.
 
 John
 
  -Original Message-
  From: Sven Köhler [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 14, 2002 2:54 AM
  To: [EMAIL PROTECTED]
  Subject: Re: tomcat 4.1.12 with apache
  
  
   mod_jk is available for use with Tomcat 4.x.  In fact, many 
  subscribers to
   this list are using that very configuration.
   
   There are many HOW-TO's listed about how to integrate 
  Apache and Tomcat
   3.x/4.x using mod_jk.  A quick browse through the archives 
  of this list
   archive will provide proof of this.
   
   mod_webapp is no longer current and should not be used.  
  Again, reading the
   list archive will prove this as well.
  
  i found mod_jk2 v2.0.1 but i get confused when reading the docs.
  the docs talk about mod_jk and mod_jk2 - are these just 2 
  names for the 
  same module?
  
  the docs:
  http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2
  /release/v2.0.1/doc/
  
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



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




Getting rid of parameters from the 'location:' field

2002-10-14 Thread Srinadh Karumuri

I am using Tocat 3.x with apache 1.3. Recently we added a new webapp and 
all the parameters are getting appended to the URL (in the browser's 
loacation field). This is not good as our clients won't be very happy to 
see this info. (especially the hidden fields' values).

I am using action= in JSP and service(...,...) on the servlet side.
I am using RequestDispatcher.forward(...,...) method in the servlet to 
forward to new URL.

Old webapp doesn't have any problem. U tried to compare new webapp code 
with old one but all in vain. I checked the J2EE docs to trim this info., 
but didn't find anything useful.

Any ideas? Thanks for any help in advance.
-Sri


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




RE: RE: tomcat 4.1.12 with apache

2002-10-14 Thread Turner, John


Here's the deal:  the connectors have TWO SIDES:  Apache side, and Tomcat
side.  The Apache side is written in C and is an Apache module in .so
format.  The Tomcat side is written in Java and is in the form of classes
in a Jar file.

The Tomcat sides of ALL the connectors come with Tomcat.  You turn these
on and off using server.xml.  If you download Tomcat source and try and
build it, you will need to build the Java side of the connectors as well.
If, however, you download the binary install of Tomcat (preferred), the
Tomcat/Java side of the connectors will be there already...no need to build.

The Apache sides of the connectors can either be built or downloaded in
binary format.

So, for any given Tomcat version, you can have any given version of Apache.
In addition, you can have any given version of the connectors.  So you might
have JK 1.2 working with Apache 1.3.26 and Tomcat 4.1.10, or whatever.

John

 -Original Message-
 From: yoom nguyen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 11:02 AM
 To: Tomcat Users List
 Subject: Re: RE: tomcat 4.1.12 with apache
 
 
 John
 If the jk2 is come with  Tomcat 4.1.X.  Would you know if mod-jk.so
 come with it.
 
 Thanks, Yoom
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 Date: Monday, October 14, 2002 9:24 am
 Subject: RE: tomcat 4.1.12 with apache
 
  
  No.  There are 2 distinct modules.  The production-ready 
 module is JK
  (mod_jk).  There is a new development effort underway for 
 an improved
  connector, that effort is JK2 (mod_jk2).  Mod_jk2 should be 
  considered beta
  at this time, though it's apparently usable.  The default 
  connector in
  Tomcat 4.1.1x is JK2...to use JK you will want to comment 
 out the JK2
  connector and enable the AJP13 connector in server.xml.
  
  John
  
   -Original Message-
   From: Sven Köhler [mailto:[EMAIL PROTECTED]]
   Sent: Monday, October 14, 2002 2:54 AM
   To: [EMAIL PROTECTED]
   Subject: Re: tomcat 4.1.12 with apache
   
   
mod_jk is available for use with Tomcat 4.x.  In fact, many 
   subscribers to
this list are using that very configuration.

There are many HOW-TO's listed about how to integrate 
   Apache and Tomcat
3.x/4.x using mod_jk.  A quick browse through the archives 
   of this list
archive will provide proof of this.

mod_webapp is no longer current and should not be used.  
   Again, reading the
list archive will prove this as well.
   
   i found mod_jk2 v2.0.1 but i get confused when reading the docs.
   the docs talk about mod_jk and mod_jk2 - are these just 2 
   names for the 
   same module?
   
   the docs:
   http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2
   /release/v2.0.1/doc/
   
   
   
   
   --
   To unsubscribe, e-mail:   
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: 
   mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
  [EMAIL PROTECTED]For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: how to build jk 2.2.0.1 for Tomcat 4.1.2 and apche 2

2002-10-14 Thread Turner, John


Here you go.  Enjoy.

Redhat Linux 7.2.  Output of `uname -a`: Linux localhost 2.4.7-10 #1 Thu Sep
6 17:27:27 EDT 2001 i686 unknown

ASSUMPTION #1: Apache 2.0.43 is in /usr/local/apache2.  ASSUMPTION #2: sane
GNU build environment (libtool, autoconf, gcc, etc)

1. Download connectors source from here:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/src/

2. unpack; cd to new directory (CONNECTOR_HOME)

3. cd CONNECTOR_HOME/jk/native2

4. chmod 755 buildconf.sh

5. ./buildconf.sh

6.  ./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-java=${JAVA_HOME}

7. make

8. cd CONNECTOR_HOME/jk/build/jk2/apache2

9. copy mod_jk2.so to your apache2 modules directory

10. change httpd.conf as needed.  Stop and start apache.

The Tomcat side of the connectors is included in the Tomcat package.  This
builds the Apache side (.so) only.

John

 -Original Message-
 From: yoom nguyen [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, October 13, 2002 8:33 PM
 To: [EMAIL PROTECTED]
 Subject: how to build jk 2.2.0.1 for Tomcat 4.1.2 and apche 2
 
 
 Does any one able to build jk 2.2.0.1 for tomcat 4.1.2  apache 2 on
 linux?  If yes, please give me some advice on how to build it 
 on linux.
 
 
 Is Tomcat 4.1.2 already come with jk 2 build?
  I found a few file such as $CATALINE_HOME/bin/tomcat-jni.jar
 $CATALINA_HOME/conf/jk2.properties
 $CATALINA_HOME/server/lib/tomcat-jk2.jar
 However, I can not find the mod_jk2.so
 
 I also get this error when I try to build jk2
 
 prepare:
 [mkdir] Created dir: /db2/tomcat/jk2201/jk/build/classes
 [mkdir] Created dir: /db2/tomcat/jk2201/jk/build/classes/META-INF
 [mkdir] Created dir: /db2/tomcat/jk2201/jk/build/lib
 
 BUILD FAILED
 file:/db2/tomcat/jk2201/jk/build.xml:110: Warning: Could not find file
 /db2/tomcat/jk2201/coyote/build/lib/tomcat-coyote.jar to copy.
 
 
 Thanks, ynguyen
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: RE: tomcat 4.1.12 with apache

2002-10-14 Thread yoom nguyen

John

Is that true mod_jk2 come with tomcat 4.1.2?  If that is the case
then I don't need to build JK2 for apache, is this true?
I am using tomcat 4.1.12 and trying to build jk2 and I am still
having problem with  it.  Any sugguest?

Thanks

- Original Message -
From: Turner, John [EMAIL PROTECTED]
Date: Monday, October 14, 2002 9:24 am
Subject: RE: tomcat 4.1.12 with apache

 
 No.  There are 2 distinct modules.  The production-ready module is JK
 (mod_jk).  There is a new development effort underway for an improved
 connector, that effort is JK2 (mod_jk2).  Mod_jk2 should be 
 considered beta
 at this time, though it's apparently usable.  The default 
 connector in
 Tomcat 4.1.1x is JK2...to use JK you will want to comment out the JK2
 connector and enable the AJP13 connector in server.xml.
 
 John
 
  -Original Message-
  From: Sven Köhler [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 14, 2002 2:54 AM
  To: [EMAIL PROTECTED]
  Subject: Re: tomcat 4.1.12 with apache
  
  
   mod_jk is available for use with Tomcat 4.x.  In fact, many 
  subscribers to
   this list are using that very configuration.
   
   There are many HOW-TO's listed about how to integrate 
  Apache and Tomcat
   3.x/4.x using mod_jk.  A quick browse through the archives 
  of this list
   archive will provide proof of this.
   
   mod_webapp is no longer current and should not be used.  
  Again, reading the
   list archive will prove this as well.
  
  i found mod_jk2 v2.0.1 but i get confused when reading the docs.
  the docs talk about mod_jk and mod_jk2 - are these just 2 
  names for the 
  same module?
  
  the docs:
  http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2
  /release/v2.0.1/doc/
  
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



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




Re: RE: RE: tomcat 4.1.12 with apache

2002-10-14 Thread yoom nguyen

John

Thank you for your comments

- Original Message -
From: Turner, John [EMAIL PROTECTED]
Date: Monday, October 14, 2002 11:10 am
Subject: RE: RE: tomcat 4.1.12 with apache

 
 Here's the deal:  the connectors have TWO SIDES:  Apache side, 
 and Tomcat
 side.  The Apache side is written in C and is an Apache module 
 in .so
 format.  The Tomcat side is written in Java and is in the form 
 of classes
 in a Jar file.
 
 The Tomcat sides of ALL the connectors come with Tomcat.  You 
 turn these
 on and off using server.xml.  If you download Tomcat source 
 and try and
 build it, you will need to build the Java side of the connectors 
 as well.
 If, however, you download the binary install of Tomcat 
 (preferred), the
 Tomcat/Java side of the connectors will be there already...no need 
 to build.
 
 The Apache sides of the connectors can either be built or 
 downloaded in
 binary format.
 
 So, for any given Tomcat version, you can have any given version 
 of Apache.
 In addition, you can have any given version of the connectors.  So 
 you might
 have JK 1.2 working with Apache 1.3.26 and Tomcat 4.1.10, or whatever.
 
 John
 
  -Original Message-
  From: yoom nguyen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 14, 2002 11:02 AM
  To: Tomcat Users List
  Subject: Re: RE: tomcat 4.1.12 with apache
  
  
  John
  If the jk2 is come with  Tomcat 4.1.X.  Would you know if mod-jk.so
  come with it.
  
  Thanks, Yoom
  
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  Date: Monday, October 14, 2002 9:24 am
  Subject: RE: tomcat 4.1.12 with apache
  
   
   No.  There are 2 distinct modules.  The production-ready 
  module is JK
   (mod_jk).  There is a new development effort underway for 
  an improved
   connector, that effort is JK2 (mod_jk2).  Mod_jk2 should be 
   considered beta
   at this time, though it's apparently usable.  The default 
   connector in
   Tomcat 4.1.1x is JK2...to use JK you will want to comment 
  out the JK2
   connector and enable the AJP13 connector in server.xml.
   
   John
   
-Original Message-
From: Sven Köhler [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 2:54 AM
To: [EMAIL PROTECTED]
Subject: Re: tomcat 4.1.12 with apache


 mod_jk is available for use with Tomcat 4.x.  In fact, 
 many 
subscribers to
 this list are using that very configuration.
 
 There are many HOW-TO's listed about how to integrate 
Apache and Tomcat
 3.x/4.x using mod_jk.  A quick browse through the archives 
of this list
 archive will provide proof of this.
 
 mod_webapp is no longer current and should not be used.  
Again, reading the
 list archive will prove this as well.

i found mod_jk2 v2.0.1 but i get confused when reading the docs.
the docs talk about mod_jk and mod_jk2 - are these just 2 
names for the 
same module?

the docs:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2
/release/v2.0.1/doc/




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

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



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




RE: RE: tomcat 4.1.12 with apache

2002-10-14 Thread Turner, John


I don't know how to explain it any clearer than this:

1. each connector has 2 parts.  One Java part.  One Apache module part.

2. The Java parts come with Tomcat if you download the binary package.
There is nothing further that you need to do on the Tomcat side, other than
configuring the connector in server.xml to your preference.

3. The Apache modules do not come with Tomcat.  You can either download them
in binary format, or download the source and build them.  Your choice.

I've already replied to your other post on this topic with build
instructions for the mod_jk2.so Apache module on Linux.  I'm not sure what
else you need.

Perhaps if you describe exactly what it is you want to do, there will be a
more concise answer.  If all you are looking for is the Apache module for
one of the connectors, look here:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

John


 -Original Message-
 From: yoom nguyen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 11:12 AM
 To: Tomcat Users List
 Subject: Re: RE: tomcat 4.1.12 with apache
 
 
 John
 
 Is that true mod_jk2 come with tomcat 4.1.2?  If that is the case
 then I don't need to build JK2 for apache, is this true?
 I am using tomcat 4.1.12 and trying to build jk2 and I am still
 having problem with  it.  Any sugguest?
 
 Thanks
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 Date: Monday, October 14, 2002 9:24 am
 Subject: RE: tomcat 4.1.12 with apache
 
  
  No.  There are 2 distinct modules.  The production-ready 
 module is JK
  (mod_jk).  There is a new development effort underway for 
 an improved
  connector, that effort is JK2 (mod_jk2).  Mod_jk2 should be 
  considered beta
  at this time, though it's apparently usable.  The default 
  connector in
  Tomcat 4.1.1x is JK2...to use JK you will want to comment 
 out the JK2
  connector and enable the AJP13 connector in server.xml.
  
  John
  

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




Re: RE: how to build jk 2.2.0.1 for Tomcat 4.1.2 and apche 2

2002-10-14 Thread yoom nguyen

John

Thank you, I will give it a try and report back later on.


- Original Message -
From: Turner, John [EMAIL PROTECTED]
Date: Monday, October 14, 2002 11:10 am
Subject: RE: how to build jk 2.2.0.1  for  Tomcat 4.1.2 and apche 2

 
 Here you go.  Enjoy.
 
 Redhat Linux 7.2.  Output of `uname -a`: Linux localhost 2.4.7-10 
 #1 Thu Sep
 6 17:27:27 EDT 2001 i686 unknown
 
 ASSUMPTION #1: Apache 2.0.43 is in /usr/locaGNU build environment 
 (libtool, autoconf, gcc, etc)
 
 1. Download connectors source from here:
 http://jakarta.apache.org/builds/jakarta-tomcat-
 4.0/release/v4.1.12/src/
 2. unpack; cd to new directory (CONNECTOR_HOME)
 
 3. cd CONNECTOR_HOME/jk/native2
 
 4. chmod 755 buildconf.sh
 
 5. ./buildconf.sh
 
 6.  ./configure --with-apxs2=/usr/loca--with-java=${JAVA_HOME}
 
 7. make
 
 8. cd CONNECTOR_HOME/jk/build/jk
 9. copy mod_jk2.so to your apache2 modules directory
 
 10. change httpd.conf as needed.  Stop and start apache.
 
 The Tomcat side of the connectors is included in the Tomcat 
 package.  This
 builds the Apache side (.so) only.
 
 John
 
  -Original Message-
  From: yoom nguyen [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, October 13, 2002 8:33 PM
  To: [EMAIL PROTECTED]
  Subject: how to build jk 2.2.0.1 for Tomcat 4.1.2 and apche 2
  
  
  Does any one able to build jk 2.2.0.1 for tomcat 4.1.2  apache 
 2 on
  linux?  If yes, please give me some advice on how to build it 
  on linux.
  
  
  Is Tomcat 4.1.2 already come with jk 2 build?
   I found a few file such as $CATALINE_HOME/bin/tomcat-jni.jar
  $CATALINA_HOME/conf/jk2.properties
  $CATALINA_HOME/server/lib/tomcat-jk2.jar
  However, I can not find the mod_jk2.so
  
  I also get this error when I try to build jk2
  
  prepare:
  [mkdir] Created dir: /db2/tomcat/jk2201/jk/build/classes
  [mkdir] Created dir: 
 /db2/tomcat/jk2201/jk/build/classes/META-INF
  [mkdir] Created dir: /db2/tomcat/jk2201/jk/build/lib
  
  BUILD FAILED
  file:/db2/tomcat/jk2201/jk/build.xml:110: Warning: Could not 
 find file
  /db2/tomcat/jk2201/coyote/build/lib/tomcat-coyote.jar to copy.
  
  
  Thanks, ynguyen
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 


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




Re: Getting rid of parameters from the 'location:' field

2002-10-14 Thread Srinadh Karumuri

Sorry!
I had a typo, missed method=... clause for the form in the JSP.

That's funny. I always find my answers after I post it here. :)

-Sri

At 11:04 AM 10/14/2002, Srinadh Karumuri wrote:
I am using Tocat 3.x with apache 1.3. Recently we added a new webapp and 
all the parameters are getting appended to the URL (in the browser's 
loacation field). This is not good as our clients won't be very happy to 
see this info. (especially the hidden fields' values).

I am using action= in JSP and service(...,...) on the servlet side.
I am using RequestDispatcher.forward(...,...) method in the servlet to 
forward to new URL.

Old webapp doesn't have any problem. U tried to compare new webapp code 
with old one but all in vain. I checked the J2EE docs to trim this info., 
but didn't find anything useful.

Any ideas? Thanks for any help in advance.
-Sri


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


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




RE: JNDI Datasource is null

2002-10-14 Thread James hughes

Surely there must be somebody out there who has connection pooling working
with DBCP and Oracle.

Please! :)

-Original Message-
From: James hughes [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 14:55
To: Tomcat Users List
Subject: RE: JNDI Datasource is null


I changed the values, but still the Datasource is null :(

I find it strange that the JNDI name exists with no object - that is, I dont
get a NameNotFoundException.


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: 14 October 2002 14:53
To: Tomcat Users List
Subject: Re: JNDI Datasource is null



2 things are possible culprits

The syntax for JNDI datasources changed slightly after moving from Tyrex as 
the default provider to DBCP.  Specifically, user should be 
username.  The other thing is the Resource scope=Sharable.  That 
might be right, but I've never used it.  I use Container for that value.

Jake

At 02:07 PM 10/14/2002 +0100, you wrote:
Hi there,

I am using Oracle 9i, DBCP and Tomcat 4.1.12.  I am trying to configure a
JNDI datasource that implements connection pooling.  I have been following
the instructions in the JNDI how to, specifically the section for Oracle.

My problem is that the JNDI Datasource is null when I try to get it from
the
context.  I cant see any exceptions being thrown anywhere.

Can anyone tell me what I have missed?

My server.xml is as follows (this entry is in the HOST tag, after the
/examples context):

 Context className=org.apache.catalina.core.StandardContext
  cachingAllowed=true

charsetMapperClass=org.apache.catalina.util.CharsetMapper

  cookies=true
  crossContext=true
  debug=5 docBase=TestDB

mapperClass=org.apache.catalina.core.StandardContextMapper
  path=/TestDB privileged=false
  reloadable=true swallowOutput=false
  useNaming=true
  wrapperClass=org.apache.catalina.core.StandardWrapper
   Logger className=org.apache.catalina.logger.FileLogger
   debug=0 directory=logs
   prefix=localhost_DBTest_log.
   suffix=.txt timestamp=true verbosity=1/
   Resource auth=container name=jdbc/myoracle
scope=Shareable
type=java.sql.DataSource/
   ResourceParams name=jdbc/myoracle
 parameter
   namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value
 /parameter
 parameter
   namepassword/name
   valuetiger/value
 /parameter
 parameter
   namemaxActive/name
   value20/value
 /parameter
 parameter
   namemaxWait/name
   value10/value
 /parameter
 parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
   nameuser/name
   valuescott/value
 /parameter
 parameter
   namemaxIdle/name
   value10/value
 /parameter
   /ResourceParams
 /Context


And web.xml is as follows:

   resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/myoracle/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref



I have a class as follows:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest
{
   String foo = Not Connected;
   int bar = -1;

 public void init()
 {
 try
 {
 Context ctx = new InitialContext();
 if(ctx == null )
 {
 throw new Exception(Boom - No Context);
 }

 Context envContext  =
(Context)ctx.lookup(java:/comp/env);
 DataSource ds =
(DataSource)envContext.lookup(jdbc/myoracle);

 if (ds != null)
 {
 Connection conn = ds.getConnection();

 if(conn != null)
 {
 foo = Got Connection
+conn.toString();
 Statement stmt =
conn.createStatement();
 ResultSet rst =
stmt.executeQuery(select id, foo, bar from testdata);

 if(rst.next())
 {
 foo = rst.getString(2);
 

Tomcat and PHP-servlet?

2002-10-14 Thread Sven Köhler

hi,

in the PHP-docs, a servlet is mentioned, that makes .php pages runnable 
again (somehow by loading PHP into the JavaVM).

How stable can that be?
I worry aout the following:
   PHP could internally produce a segmentation-fault. Does that also 
crash the process(thread?) of the JavaVM? If yes, Tomcat would become 
unstabe.

Is anybody out there, that runs this PHP-servlet ???




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




Re: zip or exe, for windows install

2002-10-14 Thread Frank Liu


On Mon, 14 Oct 2002, Ben Walding wrote:
 The exe installs a Win32 service and a couple of start menu items

speaking of the start menu, I found it wouldn't honor my
setenv.bat. I have some variables defined in the tomcat\bin\setenv.bat,
if I start tomcat by going to the bin directory and running startup,
my variables will be used, but if you start tomcat by clicking the
start menu, the setenv.bat will be ignored. Is that a bug?

Thanks!
Frank


 Frank Liu wrote:

 What's the difference between the ZIP and EXE binary tomcat
 distribution for MS Windows? Can you just unzip it into a directory
 and config it as on Unix box? or do I have to use EXE installer
 for some extra stuff/work?
 
 Thanks!
 Frank
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 




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



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




Re: Tomcat and PHP-servlet?

2002-10-14 Thread Sven Köhler

forget this post ... i now know, that the php-servlet is still 
experimental ...

Sven Köhler wrote:
 hi,
 
 in the PHP-docs, a servlet is mentioned, that makes .php pages runnable 
 again (somehow by loading PHP into the JavaVM).
 
 How stable can that be?
 I worry aout the following:
   PHP could internally produce a segmentation-fault. Does that also 
 crash the process(thread?) of the JavaVM? If yes, Tomcat would become 
 unstabe.
 
 Is anybody out there, that runs this PHP-servlet ???




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




Re: xml parser in 4.0.6 and 4.1.12

2002-10-14 Thread Frank Liu


Yes, I tried to remove those but got other errors.
eg: if I remove xerces.jar from WEB-INF/lib, I got
not found errors for org/apache/xerces/framework/

jar tvf jakarta-tomcat-4.1.12/common/endorsed/xercesImpl.jar | grep framework
doesn't show any matches. but they are in the old xerces.jar that I
removed.

Frank


On Mon, 14 Oct 2002, Jacob Kjome wrote:


 Do you include XML or DOM libraries in your WEB-INF/lib directory?  Remove
 those if you have them there.  XML and DOM libraries *must* be loaded from
 a parent classloader.  Tomcat should be ignoring the ones in WEB-INF/lib,
 but maybe it isn't fully and you are getting collisions.

 Jake

 At 05:10 AM 10/14/2002 +, you wrote:

 Hi all,
 
 I am trying to migrate one application from weblogic to tomcat.
 I was able to get it work in  tomcat 4.0.6 but it fails in tomcat
 4.1.12. The problem seems to lie in the xml parser. the jar files
 in the jakarta-tomcat-4.1.12/common/endorsed seems not compatible
 with the old ones. since the application is a binary only commercial
 product, I won't be able to make changes. Is there a workaround, or
 am I stuck with tomcat 4.0.x?
 
 java.lang.VerifyError: (class: com/xxx/dom/stubs/ApacheXMLStub, method:
 getXMLDocumentFromURL signature: (Ljava/lang/String;)Lorg/w3c/dom/Document;)
 Incompatible object argument for function call
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:140)
 ...
 
 Thanks!
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]



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




RE: Pre compile of jsp

2002-10-14 Thread Sexton, George

Look at the jspc.sh script in the bin directory.

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: 14 October, 2002 8:56 AM
To: Tomcat Users List
Subject: Pre compile of jsp


Hi,
when ever i modify a jsp, it is compiled first time
when it is accessed from web, and this process takes a
long time,
if i have to precompile this jsp to use in tomcat4.0.4
so even the first time access will be fast
how can i do it,
can any one provide any info on doing this

Ashish

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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


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




protect (encrypt) jdbc connection password file

2002-10-14 Thread psalazar

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greetings,

I'm not intend to validate the user on a jdbc realm by using a hash
function but I would like instead protect my user connection password in
clear text inside server.xml configuration file. The reason is simple, I 
cannot (or I should not) trust in my system administrator.

So, how can I override the default behavior of my connection factory of
my jdbc resource in a such way I put a encrypted password in server.xml
file, but it would deciphered just before make the connection in a
internal procedure?  There is any interface to implement or factory to
override?

thanks,
psalazar.

- -- 
pedro salazar (pt-inovacao) [EMAIL PROTECTED]

- -BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBD1AA8URBAD6f+Ttr6Yat6UukbUOl6RYHrdgIFlVXBHnAdJ3eZvWQY6Fx2T0
C0X6Gk5QuX4AAZ8YKTH8W8ICSD0arT04aDcEg28Xivrd645/1OOJikxXqowE89Pu
+5BrFIBCd2npybPn2PEWB/R2iTMCiVsMSw9D+mOkNQ78T8bEXfynL6oiawCgpcGq
MElx0/Yvl24fxe5W5t1rZ9UEAKO7RWyaW03Pc/LE8EGnrlaXRASAT9OOIpiFN6cu
0sBLjEu4a4zshF+pvkPEANUy6x93UdpBR2oq6EqvHzNFpFpe/fFu0sdY2ZdJzSiX
vY2UXiA0hxJZu2mhF3O5A3PHm05Elv9crMj7foTo52uJnyf27IoHUa5giynflJ+P
YiW1A/48ql9BoivKRIPGMyWOjbidkPNShxS6/5qjSd94EzQ+xlv3lxbs6RBok0FT
GMhfH1ThnUHZ6znOxfpI89enkvttBBVxymwnGeEsMPPjseY+96wzCRF0UhjlH0a4
kiTb3lDE2LmiRJGAH7TErLVNe99aGaGnp0yhZpoWBsjFFv/8iLQ7UGVkcm8gU2Fs
YXphciAocHQtaW5vdmFjYW8pIDxwZWRyby1iLXNhbGF6YXJAcHRpbm92YWNhby5w
dD6IXQQTEQIAHQUCPUADxQUJAeEzgAULBwoDBAMVAwIDFgIBAheAAAoJEA4SnjHY
A7xhNwkAninS2GoP9v+zazP2Ww31p4r7WkFVAKCCFBfKkspAw+NZFIabjWTMWRtn
7LkBDQQ9QAPMEAQAneAOhdRIUGho+pDiqOTK0rrEWxySK46KHrIFxdP6ogO841uw
tzkGnESfpetnamTeJwmCnsDeqTu77rjJURVdWLaLss5b6dQjdAtc33bbTKCWzzRH
OFKwtqn35qO60CfuKU0Gw28TwcL7uyzJntIT8B4H8JHCGmsUqh+nYJLWvVcABRED
/jWqY8Nu9dc/nfqX3sRcLlO0KCiMaQYB4W5awBuVTdOiiMtmi2O/3xB+14Aj/0E6
qg/ieQc6plEax8RsFmrSTbUneguTCKdHFuR9TRsvHcWuMJmrSZdsNraM20uMJTcp
AGi3ADPq/DKqxxl6g0Snvq1Cp4mQXB+773kko4sg26UkiEwEGBECAAwFAj1AA8wF
CQHhM4AACgkQDhKeMdgDvGF9GACbBM4QWGbcwfLy/M5MqPsYge19yHQAni2BMH50
wq+B1DsueAoAeOWs7nNH
=E9NO
- -END PGP PUBLIC KEY BLOCK-
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9qvWXDhKeMdgDvGERAhSZAKCCbalhG/uW8WUSYA/1SJJo3EriJQCeP+d8
sTSUqgwM3q8porPBFqhfNos=
=C/RO
-END PGP SIGNATURE-


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




protect (encrypt) jdbc connection password file

2002-10-14 Thread psalazar

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greetings,

I'm not intend to validate the user on a jdbc realm by using a hash
function but I would like instead protect my user connection password in
clear text inside server.xml configuration file. The reason is simple, I 
cannot (or I should not) trust in my system administrator.

So, how can I override the default behavior of my connection factory of
my jdbc resource in a such way I put a encrypted password in server.xml
file, but it would deciphered just before make the connection in a
internal procedure?  There is any interface to implement or factory to
override?

thanks,
psalazar.

- -- 
pedro salazar (pt-inovacao) [EMAIL PROTECTED]

- -BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBD1AA8URBAD6f+Ttr6Yat6UukbUOl6RYHrdgIFlVXBHnAdJ3eZvWQY6Fx2T0
C0X6Gk5QuX4AAZ8YKTH8W8ICSD0arT04aDcEg28Xivrd645/1OOJikxXqowE89Pu
+5BrFIBCd2npybPn2PEWB/R2iTMCiVsMSw9D+mOkNQ78T8bEXfynL6oiawCgpcGq
MElx0/Yvl24fxe5W5t1rZ9UEAKO7RWyaW03Pc/LE8EGnrlaXRASAT9OOIpiFN6cu
0sBLjEu4a4zshF+pvkPEANUy6x93UdpBR2oq6EqvHzNFpFpe/fFu0sdY2ZdJzSiX
vY2UXiA0hxJZu2mhF3O5A3PHm05Elv9crMj7foTo52uJnyf27IoHUa5giynflJ+P
YiW1A/48ql9BoivKRIPGMyWOjbidkPNShxS6/5qjSd94EzQ+xlv3lxbs6RBok0FT
GMhfH1ThnUHZ6znOxfpI89enkvttBBVxymwnGeEsMPPjseY+96wzCRF0UhjlH0a4
kiTb3lDE2LmiRJGAH7TErLVNe99aGaGnp0yhZpoWBsjFFv/8iLQ7UGVkcm8gU2Fs
YXphciAocHQtaW5vdmFjYW8pIDxwZWRyby1iLXNhbGF6YXJAcHRpbm92YWNhby5w
dD6IXQQTEQIAHQUCPUADxQUJAeEzgAULBwoDBAMVAwIDFgIBAheAAAoJEA4SnjHY
A7xhNwkAninS2GoP9v+zazP2Ww31p4r7WkFVAKCCFBfKkspAw+NZFIabjWTMWRtn
7LkBDQQ9QAPMEAQAneAOhdRIUGho+pDiqOTK0rrEWxySK46KHrIFxdP6ogO841uw
tzkGnESfpetnamTeJwmCnsDeqTu77rjJURVdWLaLss5b6dQjdAtc33bbTKCWzzRH
OFKwtqn35qO60CfuKU0Gw28TwcL7uyzJntIT8B4H8JHCGmsUqh+nYJLWvVcABRED
/jWqY8Nu9dc/nfqX3sRcLlO0KCiMaQYB4W5awBuVTdOiiMtmi2O/3xB+14Aj/0E6
qg/ieQc6plEax8RsFmrSTbUneguTCKdHFuR9TRsvHcWuMJmrSZdsNraM20uMJTcp
AGi3ADPq/DKqxxl6g0Snvq1Cp4mQXB+773kko4sg26UkiEwEGBECAAwFAj1AA8wF
CQHhM4AACgkQDhKeMdgDvGF9GACbBM4QWGbcwfLy/M5MqPsYge19yHQAni2BMH50
wq+B1DsueAoAeOWs7nNH
=E9NO
- -END PGP PUBLIC KEY BLOCK-
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9qvWXDhKeMdgDvGERAhSZAKCCbalhG/uW8WUSYA/1SJJo3EriJQCeP+d8
sTSUqgwM3q8porPBFqhfNos=
=C/RO
-END PGP SIGNATURE-


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



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




Re: what does jpp mean in the rpm file names?

2002-10-14 Thread paul miller


I can help you on the rpm's
jaxp_parser_impl is from xerces-j2-2.2.0-1jpp
xml-commons-apis is from xml-commons-apis-1.0-0.b2.1jpp

http://www.jpackage.org/rpm/free/RPMS/
has both of these rpms

--- HAVENS,PETER (HP-Cupertino,ex3) [EMAIL PROTECTED] wrote:
 Can someone tell me what jpp stands for in the RPM files that are available
 for tomcat 4.1.12?
  
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/rpms/
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/rpms/ 
  
 The previous RPM files I was using for tomcat 4.0.3 there was no jpp in the
 file name.
  
 Also, I noticed that the LE version of the RPM files has dependencies on the
 following two items
 -  jaxp_parser_impl
 -  xml-commons-apis
 Can someone tell me the recommended method of satisfying these dependencies?
  
 Thanks in advance.
  
 -Peter
 


=
Paul N Miller
[EMAIL PROTECTED]



__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




RE: Defining methods in JSP pages

2002-10-14 Thread Tim Moore

There's no reason you can't have view helper objects that are plain old
java objects.  You don't need to put all display-related code into JSPs.
If you put all logic (whether business logic or display logic) into
regular Java objects, it makes it easier to debug and unit test it.  I
prefer to make JSPs as simple as possible, and avoid using any kinds of
scriptlets.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Alex Muc [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, October 12, 2002 1:55 AM
 To: [EMAIL PROTECTED]
 Subject: Defining methods in JSP pages
 
 
 Hi,
 
 I've been using JSPs for quite a while now and have been 
 trying to find 
 better ways to do various things.  One of the features of JSPs that I 
 stumbled on a while ago was the ability to define methods in 
 JSPs and to 
 be able to call those methods from within the page using Java 
 Reflection 
 mechanisms.  This works relatively well (see example below), 
 except for 
 the baggage of having to do the reflection work.  Alas, that is the 
 price we pay for a strongly typed language.
 
 What I'm wondering is why more people don't use the 
 declaration syntax 
 as a way to define methods in pages and use those methods to abstract 
 out some of the functionality they need?  My answer would be 
 that it is 
 generally frowned upon (by the MVC crowd) to put logic into 
 the JSP page 
 and to a certain extent I agree.  But, there are times where 
 the logic 
 code is only used to modify the display and in those cases it 
 seems to 
 me like putting that logic into a method within the JSP makes sense. 
  For example, when building the title string of the page you 
 often have 
 to look up or build some sort of descriptive string from the 
 various IDs 
 of the objects that are part of the request/session to the page.  It 
 seems to me that doing this sort of operation is the kind of 
 thing which 
 should be within the JSP page and using methods within the 
 JSP page seem 
 to make even more sense as opposed to scriptlets.  The 
 alternatives are:  
 1) Put the getPageTitle method into the Model object.  If 
 the model is 
 supposed to capture the data of the object then it doesn't seem to me 
 like it should be cluttered with methods relevant to 
 displaying the object.
 2) Put the getPageTitle method into the Controller object.  
 Again, if 
 the controller is the driver of the business logic of the 
 object(s) then 
 it too doesn't seem like the right place for methods relevant to 
 displaying the object.
 
 It seems like using methods in JSP pages is a good idea for certain 
 things.  It also has it's downsides, the main one that I see is that 
 there is no inheritance among JSP pages.  I wonder how hard 
 this would 
 be to add?
 
 Does any one have any comments about why defining methods in 
 JSP pages 
 is a good or bad idea?  I would really appreciate hearing from you.
 
 Thanks for you time.
 Alex.
 
 
 ***
 Example method in a JSP page:
 ***
 
 
 
 
 %@ page language=java import=java.lang.reflect.* %
 %!
 public String getTitle(HttpServletRequest request) {
 String id = request.getParameter(id);   
 return id:  + id;
 }
 %
 %  Class c = this.getClass();
 
 // The types for the method call
 Class [] pTypes = new Class [1];
 Class hsr = 
 Class.forName(javax.servlet.http.HttpServletRequest);
 pTypes[0] = hsr;
 
 // Get the method   
 Method m = c.getMethod(getTitle, pTypes);

 // Build the list of parameters to the method
 Object [] params = new Object [1];
 params[0] = request;
 
 // Invoke the method and get the result
 String result = (String) m.invoke(this, params);
 %   
 Method Result: %= result %
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




Re: RE: RE: tomcat 4.1.12 with apache

2002-10-14 Thread yoom nguyen

John

Thank you.  I did not see your other email. 

Yoom

- Original Message -
From: Turner, John [EMAIL PROTECTED]
Date: Monday, October 14, 2002 11:19 am
Subject: RE: RE: tomcat 4.1.12 with apache

 
 I don't know how to explain it any clearer than this:
 
 1. each connector has 2 parts.  One Java part.  One Apache module 
 part.
 2. The Java parts come with Tomcat if you download the binary package.
 There is nothing further that you need to do on the Tomcat side, 
 other than
 configuring the connector in server.xml to your preference.
 
 3. The Apache modules do not come with Tomcat.  You can either 
 download them
 in binary format, or download the source and build them.  Your choice.
 
 I've already replied to your other post on this topic with build
 instructions for the mod_jk2.so Apache module on Linux.  I'm not 
 sure what
 else you need.
 
 Perhaps if you describe exactly what it is you want to do, there 
 will be a
 more concise answer.  If all you are looking for is the Apache 
 module for
 one of the connectors, look here:
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/
 
 John
 
 
  -Original Message-
  From: yoom nguyen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 14, 2002 11:12 AM
  To: Tomcat Users List
  Subject: Re: RE: tomcat 4.1.12 with apache
  
  
  John
  
  Is that true mod_jk2 come with tomcat 4.1.2?  If that is the case
  then I don't need to build JK2 for apache, is this true?
  I am using tomcat 4.1.12 and trying to build jk2 and I am still
  having problem with  it.  Any sugguest?
  
  Thanks
  
  - Original Message -
  From: Turner, John [EMAIL PROTECTED]
  Date: Monday, October 14, 2002 9:24 am
  Subject: RE: tomcat 4.1.12 with apache
  
   
   No.  There are 2 distinct modules.  The production-ready 
  module is JK
   (mod_jk).  There is a new development effort underway for 
  an improved
   connector, that effort is JK2 (mod_jk2).  Mod_jk2 should be 
   considered beta
   at this time, though it's apparently usable.  The default 
   connector in
   Tomcat 4.1.1x is JK2...to use JK you will want to comment 
  out the JK2
   connector and enable the AJP13 connector in server.xml.
   
   John
   
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 


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




URL-path bug for multobyte characters...

2002-10-14 Thread Sankaranarayanan (Ganesh) Ganapathy

Hi All,

I have some multibyte characters in the URL I send to tomcat4.0.4 installtion .

As reported in this article http://www.javaclue.org/tomcat/patch40b3/dopatch.html - it 
doesnt seem to work with out suggested code changes in tomcat4.0.4.

Is this still a bug that needs to be fixed in tomcat - can tomcat as it is not handle 
multibyte characters in the coming URL?

Can somebody explain?

Thanx,
Ganesh

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




Getting complete stack trace in the console (or log?)

2002-10-14 Thread Wendy Smoak


How do I find the whole stack trace?  Right at the point things get
interesting (in the console) I see something like:

at
edu.asu.vpia.example.ProcessContactAction.saveProspect(ProcessContact
Action.java:128)
... 42 more

I've looked in the /path/to/tomcat/logs directory, but I don't see anything
for my context.  I noticed that there is a localhost_examples_log for today,
which seems to be configured from server.xml.  If possible, I would like to
avoid touching server.xml, but I went ahead and set up a context there, and
did get a log file for my context to appear.  Unfortunately, it doesn't have
the stack trace in it.

If it's not obvious, I haven't done much with logging in Java--
System.out.println has served me well until now. :)

This is Tomcat 4.1.12 on Win 2000.  (I just moved from 3.3.1, so I'm still
finding my way around.)

Thanks,

-- 
Wendy Smoak
http://sourceforge.net/projects/unidbtags 



Connecting Apache with remote Tomcat

2002-10-14 Thread raymond

I have a jk connector that allows our Apache (version 1.3.22) web server on
Linux to forward requests to a tomcat (version 4.0.1) instance running on a
Windows 2000 server. Each time the tomcat server is cycled the Apache
server also requires cycling. I read in the docs that the newer version of
the mod_jk connector overcomes this requirement. I downloaded the latest
version of mod_jk.so for linux and saw no difference. Can you shed some
more light on how to overcome this problem? Does it require jk2 to work
properly?

Thanks for any help you can pass along.

Raymond J. Zeigler
Integrated Support System, Inc.
Clemson, SC




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




Jasper problem

2002-10-14 Thread Avner Lewenstein

I am running tomcat 3.24 on Sun solaris 8 with JDK 1.301
My problem is that tomcat (on this specific machine) keeps compiling jsp
pages for each request. Though no change is done to the jsp pages their
generated servlet java files keep being created with new version for each
request.
Another thing that could give some indication of the problem is that
according to the servlet log, jsp servlet is launched multiple times. Here
is part of the servlet.log:
2000-10-14 18:23:03 - path=/cc :jsp: init
2000-10-14 18:23:08 - path=/cc :CCLogin: init
2000-10-14 18:23:09 - path=/cc :jsp: init
2000-10-14 18:23:15 - path=/cc :jsp: init
2000-10-14 18:23:19 - path=/cc :jsp: init
2000-10-14 18:23:19 - path=/cc :jsp: init
2000-10-14 18:23:21 - path=/cc :jsp: init
2000-10-14 18:23:21 - path=/cc :jsp: init
2000-10-14 18:23:22 - path=/cc :jsp: init
2000-10-14 18:23:22 - path=/cc :jsp: init
2000-10-14 18:23:26 - path=/cc :LoginUser: init
2000-10-14 18:23:27 - path=/cc :jsp: init
2000-10-14 18:23:28 - path=/cc :UserActiveApps: init
2000-10-14 18:23:31 - path=/cc :jsp: init
2000-10-14 18:23:34 - path=/cc :jsp: init
2000-10-14 18:23:36 - path=/cc :jsp: init
2000-10-14 18:23:36 - path=/cc :jsp: init
2000-10-14 18:23:42 - path=/cc :jsp: init
2000-10-14 18:38:12 - path=/cc :jsp: init

If someone encountered such a problem or have any idea for cause and cure I
will be gratefull for any help.

TIA,
 A.

Avner Lewenstein
Interfaces team leader
Cash-U Mobile Technologies LTD
www.Cash-U.com
Tel:  +972-9-8920824
Mobile: +972-55-669322
E-mail: [EMAIL PROTECTED]

 Avner Lewenstein (Business Fax).vcf 



Avner Lewenstein (Business Fax).vcf
Description: Binary data

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


RE: JK2 URI not correctly mapped for multiple virtual hosts in httpd.conf

2002-10-14 Thread Mladen Turk



 -Original Message-
 From: [EMAIL PROTECTED] 
 
 Hi Mladen,
 I'll try to answer yor questions.
 1- server.xml is the default one with host name=localhost


Then, how do you suppose that Tomcat will resolve the Virtiual Host
requests for iv00 when you have only the localhost?

MT.



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




jk/ajp13 not handling a cookie correctly?...it disappears

2002-10-14 Thread Charles Nutter

I am connecting Apache 1.3 to Tomcat via ajp13, mod_jk 1.2. Tomcat's
JSESSIONID cookie seems to be coming back through correctly, but another
cookie sent by a piece of software, TIBCO's PortalBuilder, is not being
propagated back. The cookie TIBCOSessionID is supposed to be set in the
user's browser when they log in. For whatever reason, this cookie is not
making it back through mod_jk and Apache to the browser. I can think of a
couple theories as to why this might be happening:

1. mod_jk or Apache does not like the format of the cookie. It contains
URL-encoded values. However, I assumed cookie values are passed back without
modification.
2. during its hit to Tomcat, perhaps mod_jk hits the Tomcat instance
twice...the first time returns a response with the cookie set, but the
subsequent hit does not pass that cookie across as if it were coming from
the browser. Perhaps during this second hit to Tomcat, PortalBuilder kills
the cookie since the user doesn't appear to be logged in correctly.
3. 

We are using Tomcat to serve static as well as dynamic content, but need
Apache to handle more complex URL rewriting/redirecting, security/isolation,
and load balancing issues. For the most part, requests coming into Apache
should be sent straight through to Tomcat, and responses should be returned
straight back.

Below is the mod_jk.log with log level set to DEBUG. Notice that the
cookie TIBCOSessionID is set initially, but then cleared shortly after.
Why??

- Charlie

[Mon Oct 14 12:03:19 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Oct 14 12:03:19 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/lap/LAPHome'
[Mon Oct 14 12:03:19 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /
[Mon Oct 14 12:03:19 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Mon Oct 14 12:03:19 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (1391)]: Into
jk_worker_t::get_endpoint
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (1435)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 3 seconds
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (1107)]: Into
jk_endpoint_t::service
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #549
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (882)]: ajp_send_request 2:
request body to send 169 - request body to resend 0
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #175
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (727)]: received from ajp13 #3
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #4
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (727)]: received from ajp13 #3
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #4
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (727)]: received from ajp13 #3
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #4
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#140
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (483)]: ajp_unmarshal_response:
status = 200
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (488)]: ajp_unmarshal_response:
Number of headers is = 3
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[0] [Content-Type] = [text/html]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[1] [Content-Length] = [141]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[2] [Set-Cookie] =
[TIBCOSessionID=%22Pzd1KpWGANFhZwo8TBtNKLFIShk%3D%26MTAx%22;Expires=Mon,
14-Oct-2002 19:03:20 GMT;Path=/]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#145
[Mon Oct 14 12:03:20 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Oct 14 12:03:20 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/lap/LAPHome'
[Mon Oct 14 12:03:20 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13 #2
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (1369)]: Into
jk_endpoint_t::done, recycling connection
[Mon Oct 14 12:03:20 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Mon Oct 14 12:03:20 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (1391)]: Into
jk_worker_t::get_endpoint
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (1435)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 1 seconds
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (1107)]: Into
jk_endpoint_t::service
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (295)]: Into

Re: Connecting Apache with remote Tomcat

2002-10-14 Thread Ben Ricker

I run mod_jk 1.2.0 and I do not need to recycle Apache when restarting
Tomcat. I did notice a lag of up to 2 minutes after restarting Tomcat
where Apache will not take requests. I think this is due to Tomcat
restarting itself and classloading. Maybe you do not wait long enough
after restarting Tomcat before you retry a connection?

FYI, I am running two Apache 1.3.27 on Redhat load balancing across 4
Tomcats on two Solaris 8 servers.

Ben Ricker 

On Mon, 2002-10-14 at 13:08, [EMAIL PROTECTED] wrote:
 I have a jk connector that allows our Apache (version 1.3.22) web server on
 Linux to forward requests to a tomcat (version 4.0.1) instance running on a
 Windows 2000 server. Each time the tomcat server is cycled the Apache
 server also requires cycling. I read in the docs that the newer version of
 the mod_jk connector overcomes this requirement. I downloaded the latest
 version of mod_jk.so for linux and saw no difference. Can you shed some
 more light on how to overcome this problem? Does it require jk2 to work
 properly?
 
 Thanks for any help you can pass along.
 
 Raymond J. Zeigler
 Integrated Support System, Inc.
 Clemson, SC
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




TomCat 4.1.12 J2SE 1.4.1 NT Service

2002-10-14 Thread Matt McNichols

Hi --

I saw a lot of docs on setting up TomCat 3.x as an NT service.  Many said
there was a bug when using JDK1.3.1 (the service would close when user
logged out)

I was wondering if there was any info / how-tos on getting TomCat 4.1.12
(with JDK 1.4.1) set up as an NT Service.

Thanks


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




Re: JNDI Datasource is null

2002-10-14 Thread Raj Saini

Hi,

Do you really need the CharacterSetMappers in your context defination? 
Try using the vanila configuration for testing.

Try moving up the DriverClassName element just about the url.

Raj Saini

James hughes wrote:
 Surely there must be somebody out there who has connection pooling working
 with DBCP and Oracle.
 
 Please! :)
 
 -Original Message-
 From: James hughes [mailto:[EMAIL PROTECTED]]
 Sent: 14 October 2002 14:55
 To: Tomcat Users List
 Subject: RE: JNDI Datasource is null
 
 
 I changed the values, but still the Datasource is null :(
 
 I find it strange that the JNDI name exists with no object - that is, I dont
 get a NameNotFoundException.
 
 
 -Original Message-
 From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
 Sent: 14 October 2002 14:53
 To: Tomcat Users List
 Subject: Re: JNDI Datasource is null
 
 
 
 2 things are possible culprits
 
 The syntax for JNDI datasources changed slightly after moving from Tyrex as 
 the default provider to DBCP.  Specifically, user should be 
 username.  The other thing is the Resource scope=Sharable.  That 
 might be right, but I've never used it.  I use Container for that value.
 
 Jake
 
 At 02:07 PM 10/14/2002 +0100, you wrote:
 
Hi there,

I am using Oracle 9i, DBCP and Tomcat 4.1.12.  I am trying to configure a
JNDI datasource that implements connection pooling.  I have been following
the instructions in the JNDI how to, specifically the section for Oracle.

My problem is that the JNDI Datasource is null when I try to get it from
 
 the
 
context.  I cant see any exceptions being thrown anywhere.

Can anyone tell me what I have missed?

My server.xml is as follows (this entry is in the HOST tag, after the
/examples context):

Context className=org.apache.catalina.core.StandardContext
 cachingAllowed=true

 
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 
 cookies=true
 crossContext=true
 debug=5 docBase=TestDB

mapperClass=org.apache.catalina.core.StandardContextMapper
 path=/TestDB privileged=false
 reloadable=true swallowOutput=false
 useNaming=true
 wrapperClass=org.apache.catalina.core.StandardWrapper
  Logger className=org.apache.catalina.logger.FileLogger
  debug=0 directory=logs
  prefix=localhost_DBTest_log.
  suffix=.txt timestamp=true verbosity=1/
  Resource auth=container name=jdbc/myoracle
 
 scope=Shareable
 
type=java.sql.DataSource/
  ResourceParams name=jdbc/myoracle
parameter
  namefactory/name

 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 
/parameter
parameter
  nameurl/name
  valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value
/parameter
parameter
  namepassword/name
  valuetiger/value
/parameter
parameter
  namemaxActive/name
  value20/value
/parameter
parameter
  namemaxWait/name
  value10/value
/parameter
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameuser/name
  valuescott/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
  /ResourceParams
/Context


And web.xml is as follows:

  resource-ref
descriptionOracle Datasource example/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref



I have a class as follows:

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest
{
  String foo = Not Connected;
  int bar = -1;

public void init()
{
try
{
Context ctx = new InitialContext();
if(ctx == null )
{
throw new Exception(Boom - No Context);
}

Context envContext  =
(Context)ctx.lookup(java:/comp/env);
DataSource ds =
(DataSource)envContext.lookup(jdbc/myoracle);

if (ds != null)
{
Connection conn = ds.getConnection();

if(conn != null)
{
foo = Got Connection
+conn.toString();
Statement stmt =
conn.createStatement();
ResultSet rst =
stmt.executeQuery(select id, foo, bar from testdata);

 

RE: jk/ajp13 not handling a cookie correctly?...it disappears

2002-10-14 Thread Charles Nutter

I noticed a couple threads concerning this bug:
10891

...which sounds somewhat similar to the problems I'm currently having. It
is, however, listed as a jk2/apache2/tomcat4 combination rather than my
jk/apache1.3/tomcat4. Anyone know anything more about this bug...if it was
fixed or whether anyone has looked into it?

- Charlie

-Original Message-
From: Charles Nutter [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 1:30 PM
To: Tomcat User Mailing List (E-mail); Apache Users Mailing List
(E-mail)
Subject: jk/ajp13 not handling a cookie correctly?...it disappears


I am connecting Apache 1.3 to Tomcat via ajp13, mod_jk 1.2. Tomcat's
JSESSIONID cookie seems to be coming back through correctly, but another
cookie sent by a piece of software, TIBCO's PortalBuilder, is not being
propagated back. The cookie TIBCOSessionID is supposed to be set in the
user's browser when they log in. For whatever reason, this cookie is not
making it back through mod_jk and Apache to the browser. I can think of a
couple theories as to why this might be happening:

1. mod_jk or Apache does not like the format of the cookie. It contains
URL-encoded values. However, I assumed cookie values are passed back without
modification.
2. during its hit to Tomcat, perhaps mod_jk hits the Tomcat instance
twice...the first time returns a response with the cookie set, but the
subsequent hit does not pass that cookie across as if it were coming from
the browser. Perhaps during this second hit to Tomcat, PortalBuilder kills
the cookie since the user doesn't appear to be logged in correctly.
3. 

We are using Tomcat to serve static as well as dynamic content, but need
Apache to handle more complex URL rewriting/redirecting, security/isolation,
and load balancing issues. For the most part, requests coming into Apache
should be sent straight through to Tomcat, and responses should be returned
straight back.

Below is the mod_jk.log with log level set to DEBUG. Notice that the
cookie TIBCOSessionID is set initially, but then cleared shortly after.
Why??

- Charlie

[Mon Oct 14 12:03:19 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Oct 14 12:03:19 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/lap/LAPHome'
[Mon Oct 14 12:03:19 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /
[Mon Oct 14 12:03:19 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Mon Oct 14 12:03:19 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (1391)]: Into
jk_worker_t::get_endpoint
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (1435)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 3 seconds
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (1107)]: Into
jk_endpoint_t::service
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #549
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (882)]: ajp_send_request 2:
request body to send 169 - request body to resend 0
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #175
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (727)]: received from ajp13 #3
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #4
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (727)]: received from ajp13 #3
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #4
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (727)]: received from ajp13 #3
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #4
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#140
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (483)]: ajp_unmarshal_response:
status = 200
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (488)]: ajp_unmarshal_response:
Number of headers is = 3
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[0] [Content-Type] = [text/html]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[1] [Content-Length] = [141]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[2] [Set-Cookie] =
[TIBCOSessionID=%22Pzd1KpWGANFhZwo8TBtNKLFIShk%3D%26MTAx%22;Expires=Mon,
14-Oct-2002 19:03:20 GMT;Path=/]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#145
[Mon Oct 14 12:03:20 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Oct 14 12:03:20 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/lap/LAPHome'
[Mon Oct 14 12:03:20 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13 #2
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c 

RE: Pre compile of jsp

2002-10-14 Thread Ashish Kulkarni

Hi,
thanx for the answer, is there any documentation
present any where which will explain how to use it???

Ashish
--- Sexton, George [EMAIL PROTECTED] wrote:
 Look at the jspc.sh script in the bin directory.
 
 -Original Message-
 From: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]]
 Sent: 14 October, 2002 8:56 AM
 To: Tomcat Users List
 Subject: Pre compile of jsp
 
 
 Hi,
 when ever i modify a jsp, it is compiled first time
 when it is accessed from web, and this process takes
 a
 long time,
 if i have to precompile this jsp to use in
 tomcat4.0.4
 so even the first time access will be fast
 how can i do it,
 can any one provide any info on doing this
 
 Ashish
 
 __
 Do you Yahoo!?
 Faith Hill - Exclusive Performances, Videos  More
 http://faith.yahoo.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




getRemoteHost returns null

2002-10-14 Thread Will Glass-Husain

Hi,

For some reason, getRemoteHost is returning null.  getRemoteAddr works fine.
I'm running Tomcat 4.0.4 with the AJP 13 connector:

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0
enableLookups=true
/


My understanding is that getRemoteHost should return the IP address if it
can't get the host.  But it seems to be doing neither.

Any ideas?

Thanks, WILL




Installation cook-book or HOW-TO

2002-10-14 Thread Greg Bullough

I've sent messages asking for the list FAQ, but 'none
available yet' comes back in response. At least I
tried...

We're having one heck of a time figuring out how to correctly
install the Tomcat 4.1 (or determining if we should) on Linux, just
to get a taste of JSP in order to decide if we want to give up
on Cold Fusion and go JSP. I have a feeling some things have
changed in the transition from the 3.n's to the 4.n's.

The usual stuff...it almost works, installed from rpms on
RedHat 7.1 with J2SDK 1.4.1...but then doesn't quite.
I know it's a config issue (beyond just JAVA_HOME)
and think it probably has much to do with 'this doesn't
work so hot with that.'

Is there a 'go here, get this, go there get that, set these
variables, and you'll be golden' document squirreled away
somewhere on jakarta.apache.org?

Or should I really be installing some other, earlier,
JSDK and an earlier version of Tomcat in order to
be squarely in the mainstream and to make use of
the contents of the books on Border's bookshelves :-)

I *DO* have a copy of JRun sitting around here, and I
know that will just pop on and go, but that would kind
of defeat the purpose of getting further towards Open
Source Nirvana...

Greg 


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




multiple tomcat instances...

2002-10-14 Thread Raj Mettai

Hi,

I am running multiple tomcat instances with load balancing worker on solaris 8. How 
would you know, when one of the tomcat instances crashes other than doing ps -ef|grep 
tomcat or prstat quite often. Is there any automatic process to find that one of the 
tomcat process crashed.

(I am running tomcat4.1.12 and apache2.0.39 on solaris 8 using jdk1.3.1).

thanks

-Raj



Re: Installation cook-book or HOW-TO

2002-10-14 Thread Larry Meadors

What is the problem you are having?
 
The process should be simple :)
 - install jdk
 - install tomcat
 - set JAVA_HOME
 - set CATALINA_HOME
 - start catalina
 
You may have some rights issues, depending upon who creates the
catalina work folder, and starts catalina.
 
As a former CF-er, you should figure out how to do this, the logging
alone is worth it. ;-)
 
Larry

 [EMAIL PROTECTED] 10/14/02 01:53PM 
I've sent messages asking for the list FAQ, but 'none
available yet' comes back in response. At least I
tried...

We're having one heck of a time figuring out how to correctly
install the Tomcat 4.1 (or determining if we should) on Linux, just
to get a taste of JSP in order to decide if we want to give up
on Cold Fusion and go JSP. I have a feeling some things have
changed in the transition from the 3.n's to the 4.n's.

The usual stuff...it almost works, installed from rpms on
RedHat 7.1 with J2SDK 1.4.1...but then doesn't quite.
I know it's a config issue (beyond just JAVA_HOME)
and think it probably has much to do with 'this doesn't
work so hot with that.'

Is there a 'go here, get this, go there get that, set these
variables, and you'll be golden' document squirreled away
somewhere on jakarta.apache.org?

Or should I really be installing some other, earlier,
JSDK and an earlier version of Tomcat in order to
be squarely in the mainstream and to make use of
the contents of the books on Border's bookshelves :-)

I *DO* have a copy of JRun sitting around here, and I
know that will just pop on and go, but that would kind
of defeat the purpose of getting further towards Open
Source Nirvana...

Greg 




WEB-INF/classes, WEB-INF/lib

2002-10-14 Thread Frank Liu


Is it true that WEB-INF/classes overrides WEB-INF/lib in the classpath?
I have a binary jar file in WEB-INF/lib and need to overwrite on class
in the jar file, can you just put my class in the WEB-INF/classes and
tomcat will take care of it automatically?

Frank



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




static rules for jk/ajp13

2002-10-14 Thread Frank Liu


How do I config httpd.conf so that apache will pass everything
to tomcat except *.gif and *.html/*.htm ?
Basically I want apache to default to pass to tomcat unless otherwise told.
The docs I can find all talks the other way around: default to apache
and only pass to tomcat when you explicitly ask for certain urls.

Frank



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




multiple URLs/certificates

2002-10-14 Thread kathee

Hi,

I am trying to install multiple certs for a tomcat app.  The reason is
simple -- www.domain.com = domain.com -- i.e. cname records.  However,
since the URL is different, they must use different certs, which i have
purchased.  But I can figure out how I can install both certs for the
system.  Any tips?

thanks
Kat

FYI -- after installing the first cert, if i install the second I get:

#keytool -import -alias tomcat -trustcacerts -file cert-2

Enter keystore password:  passwordhere

keytool error: java.lang.Exception: Public keys in reply and keystore
don't match






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




RE: Installation cook-book or HOW-TO

2002-10-14 Thread Turner, John


Ditto what Larry said.

This is my personal preference, but I would skip the RPMs.  The binary
install is 5 steps:

- install JDK
- install Tomcat (using the binary install package, not the RPM, this is as
simple as unpacking it somewhere like /usr/local)
- set JAVA_HOME to JDK location (like /usr/local/j2sdk-1.4 or whatever
- set CATALINA_HOME (CATALINA = Tomcat, set to something like
/usr/local/jakarta-tomcat-4.1.12 or whatever)
- run $CATALINA_HOME/bin/startup.sh

That's really all you need to do.  The RPMS do a few other things, like
create a tomcat user and setup some start on boot scripts, but for eval
purposes, those things aren't needed, and you can easily set things up for
yourself the way you like them once the evaluation is over.  

Once you do the above, you should be able to see the Tomcat examples at
http://localhost:8080/examples.  If your Linux box is a server with no GUI,
localhost may not be the best option, in that case change localhost in
$CATALINA_HOME/conf/server.xml to the FQDN of your choice, and restart
Tomcat.

If you have problems after those 5 steps, post back here and someone will
usually help pretty quickly.  There are all sorts of HOWTOs for doing this,
but most of them deal with integrating Tomcat with Apache, which is way
overkill for what you want to do at the moment.

John

 -Original Message-
 From: Greg Bullough [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 3:53 PM
 To: Tomcat Users List
 Subject: Installation cook-book or HOW-TO
 
 
 I've sent messages asking for the list FAQ, but 'none
 available yet' comes back in response. At least I
 tried...
 

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




Re: Installation cook-book or HOW-TO

2002-10-14 Thread Dave Patton

What specifically is not working?  I will be more than happy to walk you
through the process if you can tell me what happens when you try to
start Tomcat?

Dave Patton

On Mon, 2002-10-14 at 12:53, Greg Bullough wrote:
 I've sent messages asking for the list FAQ, but 'none
 available yet' comes back in response. At least I
 tried...
 
 We're having one heck of a time figuring out how to correctly
 install the Tomcat 4.1 (or determining if we should) on Linux, just
 to get a taste of JSP in order to decide if we want to give up
 on Cold Fusion and go JSP. I have a feeling some things have
 changed in the transition from the 3.n's to the 4.n's.
 
 The usual stuff...it almost works, installed from rpms on
 RedHat 7.1 with J2SDK 1.4.1...but then doesn't quite.
 I know it's a config issue (beyond just JAVA_HOME)
 and think it probably has much to do with 'this doesn't
 work so hot with that.'
 
 Is there a 'go here, get this, go there get that, set these
 variables, and you'll be golden' document squirreled away
 somewhere on jakarta.apache.org?
 
 Or should I really be installing some other, earlier,
 JSDK and an earlier version of Tomcat in order to
 be squarely in the mainstream and to make use of
 the contents of the books on Border's bookshelves :-)
 
 I *DO* have a copy of JRun sitting around here, and I
 know that will just pop on and go, but that would kind
 of defeat the purpose of getting further towards Open
 Source Nirvana...
 
 Greg 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


___
David H. Patton
C.O.S.
[EMAIL PROTECTED]
x4727 - desk
(202) 276-8998 - pcs




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




Re: Installation cook-book or HOW-TO

2002-10-14 Thread Mark Eggers

I find that installing software from a gzip'ed tarball
is easier than using an RPM.  One of the issues that I
have with an RPM is that it can do other 'things' like
creating special users, setting directory permissions,
etc. that are not immediately obvious.

As Larry noted, the process should be simple:

1. install the jdk and set JAVA_HOME to where it's
installed.

2. install Tomcat
   a) gunzip jakarta-tomcat-4.1.12-LE-jdk14.tar.gz
   b) tar xvf jakarta-tomcat-4.1.12-LE-jdk14.tar
   c) optionally rename directory to something 
  reasonable
   d) optionally change ownership to a 'tomcat' user

3. set CATALINA_HOME to where it's installed

4. cd to $CATALINA_HOME/bin and execute:
   catalina start

You should then be able to open up a browser and look
at
http://localhost:8080/
or
http://machine-name:8080/

where machine-name is the host name of your Tomcat
server.

As an aside, some other packages that you might wish
to add on (Cocoon, for example) make use of
TOMCAT_HOME.  Just set TOMCAT_HOME to the same
location as CATALINA_HOME.

/mde/

just my two cents . . . .

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




405 Error

2002-10-14 Thread Michael Finney

Version 3.3.1 of Tomcat.
Redirect via ISAPI filter IIS and Tomcat.

When I POST using a form, I get a 405 Error.  Why? 
This did not happen in 3.2.1 land.  Of course, I may
have missed a config file setting or something.

My web.xml is essentially empty.  The root tag is all
that is there.

Do I need to set the security in some way?

Michael


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




RE: static rules for jk/ajp13

2002-10-14 Thread Turner, John


Since Tomcat only deals with JSP and servlets, this should be all you need:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

What else would Tomcat serve?  

John

 -Original Message-
 From: Frank Liu [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 4:07 PM
 To: [EMAIL PROTECTED]
 Subject: static rules for jk/ajp13
 
 
 
 How do I config httpd.conf so that apache will pass everything
 to tomcat except *.gif and *.html/*.htm ?
 Basically I want apache to default to pass to tomcat unless 
 otherwise told.
 The docs I can find all talks the other way around: default to apache
 and only pass to tomcat when you explicitly ask for certain urls.
 
 Frank
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Installation cook-book or HOW-TO

2002-10-14 Thread Larry Meadors

I would second that No-RPMS comment. Get the zips, it may take a few
minutes longer, but when you are done, you KNOW what was changed,
because YOU changed it.
 
Larry
 
 [EMAIL PROTECTED] 10/14/02 02:16PM 

Ditto what Larry said.

This is my personal preference, but I would skip the RPMs.  The binary
install is 5 steps:

- install JDK
- install Tomcat (using the binary install package, not the RPM, this
is as
simple as unpacking it somewhere like /usr/local)
- set JAVA_HOME to JDK location (like /usr/local/j2sdk-1.4 or whatever
- set CATALINA_HOME (CATALINA = Tomcat, set to something like
/usr/local/jakarta-tomcat-4.1.12 or whatever)
- run $CATALINA_HOME/bin/startup.sh

That's really all you need to do.  The RPMS do a few other things,
like
create a tomcat user and setup some start on boot scripts, but for
eval
purposes, those things aren't needed, and you can easily set things up
for
yourself the way you like them once the evaluation is over.  

Once you do the above, you should be able to see the Tomcat examples
at
http://localhost:8080/examples.  If your Linux box is a server with no
GUI,
localhost may not be the best option, in that case change localhost
in
$CATALINA_HOME/conf/server.xml to the FQDN of your choice, and restart
Tomcat.

If you have problems after those 5 steps, post back here and someone
will
usually help pretty quickly.  There are all sorts of HOWTOs for doing
this,
but most of them deal with integrating Tomcat with Apache, which is
way
overkill for what you want to do at the moment.

John

 -Original Message-
 From: Greg Bullough [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, October 14, 2002 3:53 PM
 To: Tomcat Users List
 Subject: Installation cook-book or HOW-TO
 
 
 I've sent messages asking for the list FAQ, but 'none
 available yet' comes back in response. At least I
 tried...
 

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





RE: static rules for jk/ajp13

2002-10-14 Thread Mark Eggers

If you are running Cocoon or a Cocoon-based
application, you might also want to add the following:

JkMount /cocoon/* ajp13

This will dump everything in the Cocoon directory to
Tomcat which will use the Cocoon webapp to deal with
things.  If you have static files (such as html or
images) then you could put them outside this diretory
tree where your web server will serve them up.

/mde/

just my two cents . . . .

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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




RE: Installation cook-book or HOW-TO

2002-10-14 Thread Greg Bullough

Any recommendations on pairings between
versions/flavors of the JDK and Tomcat?

I think part of what I'm running into is that
I might be mixing and matching badly.

Greg

At 04:16 PM 10/14/02 -0400, Turner, John wrote:

Ditto what Larry said.

This is my personal preference, but I would skip the RPMs.  The binary
install is 5 steps:

- install JDK
- install Tomcat (using the binary install package, not the RPM, this is as
simple as unpacking it somewhere like /usr/local)
- set JAVA_HOME to JDK location (like /usr/local/j2sdk-1.4 or whatever
- set CATALINA_HOME (CATALINA = Tomcat, set to something like
/usr/local/jakarta-tomcat-4.1.12 or whatever)
- run $CATALINA_HOME/bin/startup.sh

That's really all you need to do.  The RPMS do a few other things, like
create a tomcat user and setup some start on boot scripts, but for eval
purposes, those things aren't needed, and you can easily set things up for
yourself the way you like them once the evaluation is over.

Once you do the above, you should be able to see the Tomcat examples at
http://localhost:8080/examples.  If your Linux box is a server with no GUI,
localhost may not be the best option, in that case change localhost in
$CATALINA_HOME/conf/server.xml to the FQDN of your choice, and restart
Tomcat.

If you have problems after those 5 steps, post back here and someone will
usually help pretty quickly.  There are all sorts of HOWTOs for doing this,
but most of them deal with integrating Tomcat with Apache, which is way
overkill for what you want to do at the moment.

John

  -Original Message-
  From: Greg Bullough [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 14, 2002 3:53 PM
  To: Tomcat Users List
  Subject: Installation cook-book or HOW-TO
 
 
  I've sent messages asking for the list FAQ, but 'none
  available yet' comes back in response. At least I
  tried...
 

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


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




RE: Installation cook-book or HOW-TO

2002-10-14 Thread Turner, John


I don't know of any problems.  JDK 1.4 and Tomcat 4.1.12 should work just
fine.  If it doesn't, you could drop back to Tomcat 4.0.6...I know for a
fact that it works with JDK 1.4 on RH 7.2, as that is what I am using.

John


 -Original Message-
 From: Greg Bullough [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 14, 2002 4:38 PM
 To: Tomcat Users List; 'Tomcat Users List'
 Subject: RE: Installation cook-book or HOW-TO
 
 
 Any recommendations on pairings between
 versions/flavors of the JDK and Tomcat?
 
 I think part of what I'm running into is that
 I might be mixing and matching badly.
 
 Greg
 
 At 04:16 PM 10/14/02 -0400, Turner, John wrote:
 
 Ditto what Larry said.
 
 This is my personal preference, but I would skip the RPMs.  
 The binary
 install is 5 steps:
 
 - install JDK
 - install Tomcat (using the binary install package, not the 
 RPM, this is as
 simple as unpacking it somewhere like /usr/local)
 - set JAVA_HOME to JDK location (like /usr/local/j2sdk-1.4 
 or whatever
 - set CATALINA_HOME (CATALINA = Tomcat, set to something like
 /usr/local/jakarta-tomcat-4.1.12 or whatever)
 - run $CATALINA_HOME/bin/startup.sh
 

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




  1   2   >