Apache1.3.27 - tomcat4.1.12 - Mysql 3.23.43 ERROR

2002-12-16 Thread Laxmikanth M.S.
Hi all,
I am using apache with tomcat along with mysql database
apache and tomcat is in one Linux Machine and mydal database is in separate
machine
I am using mm.mysql-2.0.9 Driver to connect.the driver is in machine1
where apache tomcat is installed
when i connect to the database during the get connection line is exeuted
error arises in the database ...the error is hownbelow...can anyone help
me in this regardthanks in advance
Laxmikanth


--
ERROR
bin/safe_mysqld: line 273: 20449 Segmentation fault  $NOHUP_NICENESS
$ledir/$MYSQLD $defaults --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR
$USER_OPTION --pid-file=$pid_file --skip-locking $err_log 21

Number of processes running now: 0
021216 14:42:05  mysqld restarted
021216 14:42:05  mysqld ended


--
*
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*

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




Re: AccessControlException/introspection

2002-12-16 Thread Bertrand Fontaine
Thank you for the reply, Jean-François. It appears that the tomcat.policy 
file is actually generated in Tomcat 3.2.3/Cobalt (!). I have added the 
config information in tomcat.policy.master instead of tomcat.policy. After 
having restarted Tomcat, the appropriate tomcat.policy file has been 
generated what solves my problem.

Regards,

Bertrand

From: Jeanfrancois Arcand [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: AccessControlException/introspection
Date: Sun, 15 Dec 2002 21:21:19 -0500

Hi,

even if I'm not an expert with Tomcat 3.2.3, can you post the entire stack 
trace (so I will be able to locate the problem inside the Tomcat code).

-- Jeanfrancois

Bertrand Fontaine wrote:

Hello,

I am getting the following stack trace:

java.security.AccessControlException: access denied 
(java.lang.RuntimePermission accessDeclaredMembers)
...

I have added the following to tomcat.policy in the hope to sort out the 
problem due to the use of introspection by one of the libraries used by a 
servlet I wrote:

grant {
   permission java.lang.RuntimePermission accessDeclaredMembers;
};

Even after restarting Tomcat, I still have the stack trace. I am running 
Tomcat 3.2.3 with a JRE 1.3.1 on a SUN Cobalt Raq4 server.

Any idea? Thank you,

Bertrand






_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
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 your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Kurt Heston
Hello,

I'm having issues with using a custom classloader in Tomcat 3.3.1.  I have a
need to load servlets from a runtime-determined classpath.  The solution
worked fine in 3.2.x.  Here's what I think the problem is (let me know where
my understanding is flawed):

I'm pretty confident any custom classloader that tries to load servlets is
doomed on newer versions of Tomcat.  By this I mean, TC4x and TC5x won't
work either as they employ a similar classpath paradigm as that of TC3.3x.

It seems that the classloader alchemy the Jakarta people are doing to allow
web application classpaths to be independent of each other and that used by
the core Tomcat components is going to prevent me from instantiating a
servlet via a runtime-determined classpath.  A JVM process will only allow a
single instance of any class type within its process space.  Every JVM
process has a SystemClassLoader that manages loading the core java stuff,
like the String class.  Any other classLoader in the process space that
tries to load a String.class object after the SystemClassLoader has done so
will throw a NoClassDefFoundException or some other instantiation error.

What's nice about the SystemClassLoader is that any other ClassLoader in the
process can check with it to see whether it's created a certain class before
trying to do so, and use the one it has.  A ClassLoader can also do this if
it is chained with other class loaders.  It needs only traverse the chain
via the getParent() method and query each for the class in question.  The
problem with Tomcat creating its own class loaders is that my custom class
loader has no way of knowing what classes they've loaded nor can I use any
of those instances.  So, when I try to create my servlet object, its super
class, HttpServlet is also instantiated and pow, the JVM dumps a stack trace
claiming it can't find resources.

(sample Stack trace)
---
Attempting to load class: java.lang.NoClassDefFoundError

Class name: java.lang.NoClassDefFoundError
2002-12-15 23:51:07 - Ctx() : Exception in R(  + /servlet/MyServlet +
null) - java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find bundle for base name
javax.servlet.http.LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
07)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:678)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:541)
at javax.servlet.http.HttpServlet.clinit(HttpServlet.java)
---

I'm guessing this is a nonsense error because the ResourceBundle it's
looking for is in the same jar that HttpServlet is in.  So, it's definitely
on the classpath.

Anyway, what else might I try to remedy this?

Thanks.


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




Warp or Coyotte ? I'm so bad in my choice....

2002-12-16 Thread Jean-Luc BEAUDET
Hi all !

Using Apache 1.3.26 + Tomcat 4.0.2 Final Rel on SOLARIS.

I decided to test My Apache with Tomcat 4.1.12.

Actually i use mod_webapp for the WARP Connector.

As i wanted to have some tests with Load Balancing and sessions 
tracking, i'm trying  Tomcat 4.1.12.

I had a look at the JTC doc:

mod_jk2 Current developpements. Enabled by default in 4.1; works in 4.0. 
mod_jk2 supports in-process JVM and load balancing. See Coyote JK 2 
http://petrus.fr.kodak.com:8080/tomcat-docs/config/jk2.html

mod_webapp Not for Win32; no in-process nor load balancing; works in 
4.x. Use APR http://apr.apache.org/ . Supported Apache-2.0 and 
Apache-1.3). See Webapp 
http://petrus.fr.kodak.com:8080/tomcat-docs/config/webapp.html

So, the question. What is actually the best and strongest solution for 
what i'd like to do ?

Any comments, links, welcome .

TIA.

Regards JLB :O)



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



Re: Sharing Session data between two instances?

2002-12-16 Thread Luiz Ricardo
Hi,

take o look at:

http://www.onjava.com/lpt/a/2422
http://www2.theserverside.com/resources/article.jsp?l=Tomcat

Luiz Ricardo
- Original Message -
From: Prashanth Pushpagiri [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, December 15, 2002 4:57 PM
Subject: Sharing Session data between two instances?


 Hi

 I am trying to setup tomcat 4.1.12 on two servers so
 that an incoming request can be handled by either one
 of the servers. What I would like to do is share
 session details between the two instances. Is this
 possible?

 Thanks
 Prashanth

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.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: Warp or Coyotte ? I'm so bad in my choice....

2002-12-16 Thread Ralph Einfeldt
As the development of mod_wepp has been stopped,
I would recommend mod_jk or mod_jk2.

There are also other drwaback like warp is serving all
files for a webapp through tomcat wheras mod_jk can
be configured to just pass requests with specific
pre- or postfixes to tomcat.

 -Original Message-
 From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 11:44 AM
 To: tomcat-user
 Subject: Warp or Coyotte ? I'm so bad in my choice
 
 Actually i use mod_webapp for the WARP Connector.
 
 mod_jk2 Current developpements. Enabled by default in 4.1; works in 4.0. 
 mod_jk2 supports in-process JVM and load balancing. See Coyote JK 2 
 http://petrus.fr.kodak.com:8080/tomcat-docs/config/jk2.html
 
 So, the question. What is actually the best and strongest 
 solution for what i'd like to do ?
 

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




DB2 JDBC

2002-12-16 Thread Sherif D Mohamad
I need to make JSP files on tomcat to connect to a DB2 database.
I installed the DB2 client for Linux, but I have problems, how can I
configure it to work with JSP files ? where is the JDBC ?


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




How to restart Tomca's service from a Web app?

2002-12-16 Thread Luca Ventura
Hello everybody!

I have installed IIS as Web Server and Tomcat 4.1.16 LE as plug-in of IIS to
mangage Servlet/JSP pages
(using isapi filter JK2 isapi_redirector.dll). I would like to know is
there is some way to re-start Tomcat's
service using some web application  acessible  from the Internet (it can be
based on asp/jsp pages or servlets)
to avoid to use the Services Panel of Windows 2000 Advanced Server. In
fact it can happen I can not access remotely to the server machine where
Tomcat is installed: so when I need I would like to be able to re-start
Tomcat using some web application. Is it possible?

Thanks everybody in advance!

   Luca



tomcat + svg + context

2002-12-16 Thread cyril vidal
Hi,

I would like to know two things:
1°)First, is it possible for a servlet to produce directly SVG picture on the screen?
I've tried to write the following code for the PrintWriter:
PrintWriter out = res.getWriter();

res.setContentType(image/svg-xml; charset=iso-8859-1);

But it doesn't seem to work.



2°)For the moment, I've written a new file svg, like this, via JAXP:

Source input = new DOMSource(doc);

idTransform.transform(input,new StreamResult(out));

idTransform.transform(input,new StreamResult(new 
FileOutputStream(c:/tomcat/webapps/tuto/WEB-INF/classes/sortie.svg)));

But I've indicated an absolute adress for the file. I know it's possible to indicate 
juste a reltive URL, relative to the web application.

I've looked in the Servlet.API, and it seems to be done via the object ServletContext 
returned by rhe method getServletContext() of ServletConfig.

But I don't know exactly how it works.

I would be very grateful for any assistance.

Th anks in advance,

CYril.

___

Cyril Vidal
Email: [EMAIL PROTECTED]
Web: http://www.planetexml.com



Re: DB2 JDBC

2002-12-16 Thread Fabio Mengue
Hello,

DB2 JDBC library files are usually in

db2_user_dir/sqllib/java12

The file name is db2java.zip. You can copy it to

tomcat_install_dir/common/lib

Change its name to db2java.jar or something with .jar extension, so 
Tomcat will be aware of it.

I had to do other things to DB2 work. I added the line

JAVA_OPTS=-Djava.library.path=/db2_user_dir/sqllib/java12/

To tomcat_install_dir/bin/setclasspath.sh, and copied db2profile to 
tomcat_install_dir/bin, changing its name to

setenv.sh

After that, DB2 worked :)

Good luck,

Fabio.


Sherif D Mohamad wrote:

I need to make JSP files on tomcat to connect to a DB2 database.
I installed the DB2 client for Linux, but I have problems, how can I
configure it to work with JSP files ? where is the JDBC ?


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


 


--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
Quem se mata de trabalhar merece mesmo morrer. - Millor



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




Servlet Context Issues

2002-12-16 Thread Sam Prochazka
Hi,

I'm using Tomcat 4.1.16.

I'm using a cross context to access resources between two different web
apps. My server.xml is set as follows:

Host name=localhost debug=0
appBase=c:/webapps
unpackWARs=true


Context path= docBase=webapp1 debug=0 crossContext=true/
Context path=/webapp2 docBase=c:/webapps/webapp2 debug=0
crossContext=true/
/Host

And my JSP in webapp1 is as follows:

%
ServletContext thatctx= application.getContext(/webapp2);
RequestDispatcher rdpt=thatctx.getRequestDispatcher(/index.jsp);
rdpt.forward(request, response);
%

I keep getting the following error:

The requested resource (/index.jsp) is not available.

What worries me is that this works with static pages. ie. index.htm will
load correctly.

Why is this not working? I've read some bug postings that suggest that this
may be a bug in the class loader. How can I resolve this?

Thanks,

Sam P.




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




Re: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Jacob Kjome

The classloader behavior for webapps is specified in the servlet spec to be 
exactly opposite that of the normal Java2 classloading behavior.  So, 
classes in the WebappClassLoader will *not* as the parent to load classes 
for it unless it can't find the class to load there first.  That's one 
thing to remember.  The other thing is that parent classloaders can't see 
their children, but children can see their parents.  If you have a class in 
a parent classloader which is trying to load classes or other resources in 
the child classloader, you will have problemsunless you use the thread 
context classloader.  If you use Class.forName(String) you are asking for 
trouble.  The other version of Class.forName() which takes 3 parameters is 
your ticket out of this situation since you can pass it the thread context 
classloader to load the resource.

Anyway, I'm pretty sure you will be able to do what you are attempting to 
do, but without sample code, no one can help you.

Jake

At 12:59 AM 12/16/2002 -0800, you wrote:
Hello,

I'm having issues with using a custom classloader in Tomcat 3.3.1.  I have a
need to load servlets from a runtime-determined classpath.  The solution
worked fine in 3.2.x.  Here's what I think the problem is (let me know where
my understanding is flawed):

I'm pretty confident any custom classloader that tries to load servlets is
doomed on newer versions of Tomcat.  By this I mean, TC4x and TC5x won't
work either as they employ a similar classpath paradigm as that of TC3.3x.

It seems that the classloader alchemy the Jakarta people are doing to allow
web application classpaths to be independent of each other and that used by
the core Tomcat components is going to prevent me from instantiating a
servlet via a runtime-determined classpath.  A JVM process will only allow a
single instance of any class type within its process space.  Every JVM
process has a SystemClassLoader that manages loading the core java stuff,
like the String class.  Any other classLoader in the process space that
tries to load a String.class object after the SystemClassLoader has done so
will throw a NoClassDefFoundException or some other instantiation error.

What's nice about the SystemClassLoader is that any other ClassLoader in the
process can check with it to see whether it's created a certain class before
trying to do so, and use the one it has.  A ClassLoader can also do this if
it is chained with other class loaders.  It needs only traverse the chain
via the getParent() method and query each for the class in question.  The
problem with Tomcat creating its own class loaders is that my custom class
loader has no way of knowing what classes they've loaded nor can I use any
of those instances.  So, when I try to create my servlet object, its super
class, HttpServlet is also instantiated and pow, the JVM dumps a stack trace
claiming it can't find resources.

(sample Stack trace)
---
Attempting to load class: java.lang.NoClassDefFoundError

Class name: java.lang.NoClassDefFoundError
2002-12-15 23:51:07 - Ctx() : Exception in R(  + /servlet/MyServlet +
null) - java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find bundle for base name
javax.servlet.http.LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
07)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:678)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:541)
at javax.servlet.http.HttpServlet.clinit(HttpServlet.java)
---

I'm guessing this is a nonsense error because the ResourceBundle it's
looking for is in the same jar that HttpServlet is in.  So, it's definitely
on the classpath.

Anyway, what else might I try to remedy this?

Thanks.


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



RE: byte serving PDFs

2002-12-16 Thread Wagoner, Mark
There is really nothing special about serving a PDF document other than
setting the correct MIME type.  If you are using Tomcat to serve static PDF
files, just make sure the file extension is .PDF and the browser should
recognize it properly.  If you are dynamically generating the PDF and
sending it back as a byte stream, just set the Content Type header to
application/pdf and send the data back through the output stream.  You
will have to do this with a servlet as a JSP page tries to treat everything
as text.

-Original Message-
From: Elizabeth Fisher [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 1:01 PM
To: Tomcat Users List
Subject: byte serving PDFs


Does Tomcat support byte serving of PDFs?

-Elizabeth

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




Antwort: RE: byte serving PDFs

2002-12-16 Thread Dietmar . Mueller

Yes, this is enough. But becouse a bug in InternetExplorer you have to set
the contentLength.

You can see some samples under: http://www.lowagie.com/iText/

There is also an explain from some bugs with PlugIn in
http://www.lowagie.com/iText/faq.html

regards Dietmar






Wagoner, Mark [EMAIL PROTECTED] am 16.12.2002 14:05:45

Bitte antworten an Tomcat Users List [EMAIL PROTECTED]

An:'Tomcat Users List' [EMAIL PROTECTED]
Kopie:
Thema: RE: byte serving PDFs


There is really nothing special about serving a PDF document other than
setting the correct MIME type.  If you are using Tomcat to serve static PDF
files, just make sure the file extension is .PDF and the browser should
recognize it properly.  If you are dynamically generating the PDF and
sending it back as a byte stream, just set the Content Type header to
application/pdf and send the data back through the output stream.  You
will have to do this with a servlet as a JSP page tries to treat everything
as text.

-Original Message-
From: Elizabeth Fisher [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 1:01 PM
To: Tomcat Users List
Subject: byte serving PDFs


Does Tomcat support byte serving of PDFs?

-Elizabeth

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




Antwort: Antwort: RE: byte serving PDFs

2002-12-16 Thread Dietmar . Mueller

Sorry for my stupid englisch.

Yes it is possible to send(create) pdf via tomcat.

-- set the mime/type
-- setContentLength

Dietmar





[EMAIL PROTECTED] am 16.12.2002 14:18:22

Bitte antworten an Tomcat Users List [EMAIL PROTECTED]

An:Tomcat Users List [EMAIL PROTECTED]
Kopie:
Thema: Antwort: RE: byte serving PDFs



Yes, this is enough. But becouse a bug in InternetExplorer you have to set
the contentLength.

You can see some samples under: http://www.lowagie.com/iText/

There is also an explain from some bugs with PlugIn in
http://www.lowagie.com/iText/faq.html

regards Dietmar






Wagoner, Mark [EMAIL PROTECTED] am 16.12.2002 14:05:45

Bitte antworten an Tomcat Users List [EMAIL PROTECTED]

An:'Tomcat Users List' [EMAIL PROTECTED]
Kopie:
Thema: RE: byte serving PDFs


There is really nothing special about serving a PDF document other than
setting the correct MIME type.  If you are using Tomcat to serve static PDF
files, just make sure the file extension is .PDF and the browser should
recognize it properly.  If you are dynamically generating the PDF and
sending it back as a byte stream, just set the Content Type header to
application/pdf and send the data back through the output stream.  You
will have to do this with a servlet as a JSP page tries to treat everything
as text.

-Original Message-
From: Elizabeth Fisher [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 1:01 PM
To: Tomcat Users List
Subject: byte serving PDFs


Does Tomcat support byte serving of PDFs?

-Elizabeth

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








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




RE: [OT] Apache-Tomcat mod_jk

2002-12-16 Thread Turner, John

It's alpha.

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.17-alpha/

John


 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 9:35 AM
 To: 'Tomcat Users List'
 Subject: RE: [OT] Apache-Tomcat mod_jk
 
 
 Do you know where I could get Tomcat 4.1.17 release?
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.
 
 
 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, December 12, 2002 5:56 PM
 To: Tomcat Users List
 Subject: RE: [OT] Apache-Tomcat mod_jk
 
 
 I would recommend using a different version of Tomcat than 
 4.1.12.  4.1.12
 seems to have a few bugs that have been fixed by the 4.1.17 
 release.  If you
 are using a connector (coyote), versions prior to 4.1.17 had 
 a bug with the
 coyote connector.
 
 Hope you can save you some of the time I just spent figuring 
 these things
 out over the past week or so.
 
 
 
 -Original Message-
 From: Mike W-M [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 12, 2002 4:22 PM
 To: Tomcat Users List
 Subject: Re: [OT] Apache-Tomcat mod_jk
 
 
 Denise,
 
 In application scenarios like this (and particularly because 
 you seem to
 have multiple systems on the go) the thing that you need to 
 consider is
 itransactions/i. You need to consider what happens if 
 there's a failure
 at any stage in the process, the aim being to ensure that 
 there's no way you
 can:
 i) charge the customer when it looks like you haven't
 ii) charge them but fail to keep a record of it
 iii) not charge them but make it look like you have...
 iv) etc.
 Across multiple systems this can be difficult!  (Particularly 
 if there are
 flat-files involved - it's a lot easier to do if you're only using
 (transactional) databases.)
 Of course it's not actually necessary to work-around all the potential
 problems if the business are prepared to take the risk
 
 Apologies if you knew all that already!
 
 Mike.
 
 
 
 
 - Original Message -
 From: Denise Mangano [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, December 12, 2002 9:41 PM
 Subject: RE: Apache-Tomcat mod_jk
 
 
 Well I took the novice route and started all over again.  I got Tomcat
 4.1.12  itself back up and running, but without mod_jk 
 installed.  I haven't
 had a chance to get back to trying again today, but I will 
 tomorrow.  If I
 run into the same problems, I will post my entire server.xml file, and
 hopefully all you nice people will find something that my 
 untrained eyes
 cant.
 
 Maybe a little background on my project will help determine 
 exactly what it
 is that I need.  I have a site running on Apache 1.3.27 
 (mostly HTML, some
 XML) on RedHat 7.3.  This site, through a connector, is 
 pulling information
 from a UNIX system.  That part works fine.  I get to the last 
 screen, where
 the connection to UNIX is broken, but not before I am passed 
 a transaction
 number.  I then direct the user to an HTML form, where I 
 collect all their
 credit card information.  This is the point I am at now.  
 What I need to do
 from here is collect the info and transmit it to the payment processor
 through an API call, which I will either use servlet or JSP.  
 Then I will
 display an updated page that varies depending on what the 
 response is from
 the payment processor.  All this over a secure connection of 
 course (which
 from what I understand will be another battle).  I then have 
 to send the
 info I receive back to the UNIX system to be updated.  (If 
 anyone has any
 experience in a similar situation or any input regarding this 
 project it is
 definitely welcome).
 
 Hope the background paints a clearer picture...  Will post 
 tomorrow when I
 try to set up mod_jk again.
 
 Thanks!
 
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.
 
 
 
 --
 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]
 

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




RE: virtual hosting on tomcat

2002-12-16 Thread Turner, John

Not true.  Tomcat virtual hosting can be done, you simply setup a Host
element in server.xml for each virtual host.

Tomcat server.xml Host element = Apache VirtualHost (roughly speaking)

John


 -Original Message-
 From: Stephen Riek [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 6:02 AM
 To: Tomcat Users List
 Subject: Re: virtual hosting on tomcat
 
 
 
 I think you can't do virtual hosting on Tomcat standalone.
 You need Apache in front of it. 
 See the following which may help,
 http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html?page=1
  
  Sherif D Mohamad [EMAIL PROTECTED] wrote:I am trying 
 to add a virtual host on tomcat, I added this lines to
 server.xml file:
 
 appBase=/home/username/webapps/ROOT unpackWARs=true
 mysite.mydom.net
 directory=logs prefix=menanet.net. suffix=.log
 timestamp=true/
 
 
 
 
 and copied all $CATALINE_HOME/webapps to 
 /home/username/webapps , I can get
 the default index.jsp of tomcat, but when I click on manager 
 application it
 says status 404, not available , so how can I install an 
 application on the
 new site ? or how can I run the manager on the new site, is 
 there other
 things that I need to copy other than $CATALINE_HOME/webapps ?
 
 
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 
 -
 With Yahoo! Mail you can get a bigger mailbox -- choose a 
 size that fits your needs
 

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




RE: Apache connector-localhost only

2002-12-16 Thread Turner, John

Sounds like there is no Apache VirtualHost container for whatever IP or
hostname you want to use.

/usr/local/apache2/htdocs/ would be the default DocumentRoot for an Apache
server...this tells me there is no VirtualHost defined for the name or IP
you are using, because Apache is defaulting to it's global configuration
since it can't make a match.

John


 -Original Message-
 From: Daryl Lee [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 7:44 AM
 To: Tomcat User List
 Subject: Apache connector-localhost only
 
 
 I cannot get my Apache-Tomcat mod_jk connector to work for 
 anything other
 than localhost.  Apache 2.0.43, Tomcat 4.1.12, Linux (Redhat 
 8.0).  Trying
 to run http://localhost/examples/HelloWorldExample works, but if
 localhost is replaced with either an IP address or a valid 
 hostname, the
 error_log reports file does not exist: 
 /usr/local/apache2/htdocs/examples.
 
 I've inspected mod_jk.config, and it looks sane.  I have ServerAlias
 directives for the VirtualHost in it.  I have also turned 
 UseCanonicalName
 on in Apache (in a desperate attempt to try anything that 
 sounded remotely
 like it might have an effect).
 -- 
 Daryl Lee
 Marietta, GA
 
 --
 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: DB2 JDBC

2002-12-16 Thread Sherif D Mohamad
Thanks for your help,
I have done what you said, but I am running tomcat4 on Linux,
I do not have tomcat_install_dir/bin/setclasspath.sh
in tomcat_install_dir/bin I have : bootstrap.jar  commons-daemon.jar
tomcat-jni.jar

so I added JAVA_OPTS=-Djava.library.path=/db2_user_dir/sqllib/java12/ to
tomcat_install_dir/conf/tomcat4.conf
I am not sure if that it right or wrong, will test and see, if you find I
need something else pls advise.

Thank you.
Sherif


- Original Message -
From: Fabio Mengue [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 4:08 AM
Subject: Re: DB2 JDBC


 Hello,

 DB2 JDBC library files are usually in

 db2_user_dir/sqllib/java12

 The file name is db2java.zip. You can copy it to

 tomcat_install_dir/common/lib

 Change its name to db2java.jar or something with .jar extension, so
 Tomcat will be aware of it.

 I had to do other things to DB2 work. I added the line

 JAVA_OPTS=-Djava.library.path=/db2_user_dir/sqllib/java12/

 To tomcat_install_dir/bin/setclasspath.sh, and copied db2profile to
 tomcat_install_dir/bin, changing its name to

 setenv.sh

 After that, DB2 worked :)

 Good luck,

 Fabio.


 Sherif D Mohamad wrote:

 I need to make JSP files on tomcat to connect to a DB2 database.
 I installed the DB2 client for Linux, but I have problems, how can I
 configure it to work with JSP files ? where is the JDBC ?
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 
 

 --
 Fabio Mengue - Centro de Computacao - Unicamp
 [EMAIL PROTECTED]   [EMAIL PROTECTED]
 Quem se mata de trabalhar merece mesmo morrer. - Millor



 --
 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.0.1 on Solaris 8, Sunfire 280r

2002-12-16 Thread Turner, John

I have 4.1.12 on Solaris 8 (420R) running for my developers, it does not
exhibit this behavior.  Are you required to use 4.0.1?  That's kind of old.

John


 -Original Message-
 From: David McGough [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 11:56 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4.0.1 on Solaris 8, Sunfire 280r
 
 
 Hello,
  
 I have Tomcat 4.0.1 running on a Solaris 2.8, Sunfire 280r.  
 I can start
 tomcat successfully.  However, when I logout of my telnet 
 session it dies
 immediately.  I have tried to place nohup in the catalina.sh 
 and on the
 startup.sh command but that does not seem to help the 
 problem.  I can start
 it with cron and it will stay running but this is not 
 convenient for our
 developers who need to stop and start it multiple times a 
 day.  Any insight
 you can provide would be greatly appreciated.  
  
 Regards,
  
 Dave
  
  
 

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




RE: Directory Listing in Tomcat 4.1.12

2002-12-16 Thread Turner, John

Yes.  Symbolic linking is disabled by default in 4.1.12.  Check the release
notes, search the list archives for allowLinking.  I believe it's broken
in .12 and .13, you might need to go to .14 to get it working 100%, or down
to 4.0.5/6.

John


 -Original Message-
 From: Venkateshwar Bommineni [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 12:52 PM
 To: [EMAIL PROTECTED]
 Subject: Directory Listing in Tomcat 4.1.12
 
 
 Hello All,
  I would like to use default tomcat directory listing functionality in
 one of my application. And it works fine when I set the docBase to the
 directory which i would like to see as listing. But that directory
 consists of some symbolic links to the files which are outside of that
 directory. And those also have same OS permissions.
  But tomcat unable to show those symbolic links. Is there any
 attribute/flag needs to be set or thats the defined behaviour for
 tomcat. Anybody have workaround for this?
  Also is it possible to configure default directory listing 
 pagesm like
 instead of showing GMT based timestamps for files, I would like to
 display them in my own timestamp formats?
 
  thanks in advance..
 --Venkat
 
 --
 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: jsps and servlets don't work

2002-12-16 Thread Turner, John

You need JkMounts for every URL you intend to send to Tomcat.  Most people
use the default wildcards:

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

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 1:10 PM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: jsps and servlets don't work
 
 
 I have from my auto generated file:
 d1.selectacast.net:/examples 
 
 
 # Static files
 Alias /examples 
 /local/jakarta-tomcat-4.1.12-LE-jdk14/webapps/examples
 
 Directory 
 /local/jakarta-tomcat-4.1.12-LE-jdk14/webapps/examples
 Options Indexes FollowSymLinks
 /Directory
 
 
 # Deny direct access to WEB-INF and META-INF
 #
 Location /examples/WEB-INF/*
 AllowOverride None
 deny from all
 /Location
 
 Location /examples/META-INF/*
 AllowOverride None
 deny from all
 /Location
 
 JkMount /examples/jsp/security/protected/j_security_check  ajp13
 
 ... So I have to add more JkMounts for each app?
 
 On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote:
 
  Check to make sure that you have your mime types all working
  
  Location /examples
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  /Location
  
  In ${CATALINA_HOME}/conf there should be (or at least there 
 used to be) 
  a file that you can just include in apache that defines 
 these types of 
  declarations. I forget whether it was called mod_jk-auto or 
 something 
  to that effect.
  
  The bottom line is check to make sure that you have JkMount and 
  JkWorkersFile defined. You can also have JkLogLevel for debugging 
  purposes and JkLogFile (?). Most of this is from memory so 
 not sure if 
  that's what its called.. but hopefully should give you an idea.
  
  Hope that helps
  
  Jan-Michael
  
  
  - Original Message -
  From: Joseph Shraibman [EMAIL PROTECTED]
  Date: Thursday, December 12, 2002 6:09 pm
  Subject: jsps and servlets don't work
  
   I finally got apache to connect to tomcat using mod_jk, but jsps 
   and servlets don't work. 
   Going to a jsp just shows the source. Is having the web.xml in my 
   conf directory enough, 
   or do I have to include in some other config file?
   
   To see what is happening:
   http://d1.selectacast.net:8000/examples/jsp/
   
   
   --
   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]

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




RE: Antwort: Antwort: RE: byte serving PDFs

2002-12-16 Thread Cox, Charlie
it is possible to serve an existing pdf with tomcat by using the steps below
- plus your URL must end in pdf for IE to show it properly.(this is an IE
feature) 

i.e. http://myserver/mydir/my.pdf or http://myserver/mydir/myfile?x=pdf

If you want to create a pdf within tomcat, you need an external library such
as Apache FOP or iText

Charlie

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 8:23 AM
 To: Tomcat Users List
 Subject: Antwort: Antwort: RE: byte serving PDFs
 
 
 
 Sorry for my stupid englisch.
 
 Yes it is possible to send(create) pdf via tomcat.
 
 -- set the mime/type
 -- setContentLength
 
 Dietmar
 
 
 
 
 
 [EMAIL PROTECTED] am 16.12.2002 14:18:22
 
 Bitte antworten an Tomcat Users List 
 [EMAIL PROTECTED]
 
 An:Tomcat Users List [EMAIL PROTECTED]
 Kopie:
 Thema: Antwort: RE: byte serving PDFs
 
 
 
 Yes, this is enough. But becouse a bug in InternetExplorer 
 you have to set
 the contentLength.
 
 You can see some samples under: http://www.lowagie.com/iText/
 
 There is also an explain from some bugs with PlugIn in
 http://www.lowagie.com/iText/faq.html
 
 regards Dietmar
 
 
 
 
 
 
 Wagoner, Mark [EMAIL PROTECTED] am 16.12.2002 14:05:45
 
 Bitte antworten an Tomcat Users List 
 [EMAIL PROTECTED]
 
 An:'Tomcat Users List' [EMAIL PROTECTED]
 Kopie:
 Thema: RE: byte serving PDFs
 
 
 There is really nothing special about serving a PDF document 
 other than
 setting the correct MIME type.  If you are using Tomcat to 
 serve static PDF
 files, just make sure the file extension is .PDF and the 
 browser should
 recognize it properly.  If you are dynamically generating the PDF and
 sending it back as a byte stream, just set the Content Type header to
 application/pdf and send the data back through the output 
 stream.  You
 will have to do this with a servlet as a JSP page tries to 
 treat everything
 as text.
 
 -Original Message-
 From: Elizabeth Fisher [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 1:01 PM
 To: Tomcat Users List
 Subject: byte serving PDFs
 
 
 Does Tomcat support byte serving of PDFs?
 
 -Elizabeth
 
 --
 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]
 
 
 
 
 
 
 
 
 --
 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: Mod_jk Try #2 - error can't find apache

2002-12-16 Thread Turner, John

In my experience, the apxs in /usr/sbin is the wrong one to use.  Can you
contact the person who installed your Apache?  Apxs should be there.

I've never had a problem building the connectors using
--with-apxs=/some/path/to/apache/bin/apxs for configure.  Then again, I
build my Apache from source.

John

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 1:16 PM
 To: 'Tomcat Users List'
 Subject: RE: Mod_jk Try #2 - error can't find apache
 
 
 First line of apxs is #! /usr/bin/perl  that location is 
 correct for perl.
 There is alos a perl5.6.1.  Should I try this one instead?
 
 Thanks.
 
 Denise 
 
 
 -Original Message-
 From: Jan-Michael Ong [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, December 13, 2002 12:58 PM
 To: Tomcat Users List; 'Tomcat Users List'
 Subject: Re: Mod_jk Try #2 - error can't find apache
 
 
 apxs requires perl to be available check the first line of apxs
 
 head -1 /usr/sbin/apxs
 
 It should say something like
 
 #!/usr/local/bin/perl or something along those lines
 
 check the availability of your perl install
 
 ls -l /usr/local/bin/perl
 
 if it says not found do a find for perl and replace that 
 line with the 
 location of the found perl.
 
 cd /
 find . -name 'perl' -print 
 
 Hope that helps.
 
 Jan-Michael
 
 
 
 At 12:39 PM 12/13/2002 -0500, Denise Mangano wrote:
 Ok.  So its time to give this another try.  For try #2 I 
 decided to try 
 to build mod_jk according to the HOW-TO.  I'm running into a snag.  
 When I run configure it is looking for a path to apxs.  My Apache 
 1.3.27 web server is up and running, I can view my website.  Tomcat 
 4.1.12 itself was running (before I shut it down to do this).  I 
 searched my entire server, and the only place I found apxs was in 
 usr/sbin.  So this is the path that I used for ./configure 
 --with-apxs=/usr/sbin/apxs --with-java=${JAVA_HOME}. This is what 
 happens:
 
 everything prior to this checked out OK.
 checking for grep... /bin/grep
 checking for echo... /bin/echo
 checking for sed... /bin/sed
 checking for cp... /bin/cp
 checking for mkdir... /bin/mkdir
 checking for libtool... /usr/bin/libtool
 no apxs given
 checking for target platform... unix
 no apache given
 configure: error: Cannot find the WebServer
 
 Any ideas?  Thanks :)
 
 Denise
 
 --
 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]

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




RE: Bind tomcat 4.1.12 to a particular IP address without using Apache?

2002-12-16 Thread Turner, John

Yes, this can be done.  

John


 -Original Message-
 From: crc [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 1:23 PM
 To: Tomcat Users List
 Subject: Bind tomcat 4.1.12 to a particular IP address without using
 Apache?
 
 
 I would like to know if it would be possible to bind tomcat 
 4.1.12  to a 
 particular IP address without using Apache? Possibly a setting in 
 server.xml?
 Reason being, the server which tomcat is installed has multiple IPs 
 which other services are using.
 
 Please help.
 
 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: Apache-Tomcat HOWTO

2002-12-16 Thread Rasputin
* Turner, John [EMAIL PROTECTED] [1214 14:14]:
 
 NOTE: the ./configure method assumes you have a sane build environment:
 libtool, GNU make, autoconf, m4 
 
 a) cd to CONNECTOR_HOME/jk/native. 
 
 b) check README and README.configure. 
 
 c) run buildconf.sh: ./buildconf.sh. This will create a file called
 configure in CONNECTOR_HOME/jk/native. 
 
 d) run configure: ./configure --with-apxs=/some/path/to/apache/bin/apxs
 --with-java-home=${JAVA_HOME} 
 
 e) run make: make 

I got this far from CVS, then had to manually copy mod_jk.so from
./.libs/ in that directory into place for Apache2 to load it.
It seems fairly happy though, so that's not a problem.

But unless I'm mistaken, this is a mod_jk connector.
I was hoping for JK2 (since I see warnings that JK is deprecated) -
I was following the docs linked from the 4.1 connector reference, are
they for Jk (rather than jk2)?

I tried to build from the native2 directory, but this seems to require a
local JDK - that's no go for me, NetBSD on sparc doesn't have a 1.2 JVM :(

Am I missing something, or does JK2 need a local JVM to work? If so, why?

-- 
Rasputin :: Jack of All Trades - Master of Nuns

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




RE: Mod_jk Try #2 - error can't find apache

2002-12-16 Thread Denise Mangano
John,

Managed to get through the build, but yet again ran into some problems.  My
Apache site  no longer worked and I was getting critical error message that
indicated more than one instance of httpd running.  I uninstalled mod_jk 
Tomcat, yet again the problem persisted - and I couldn't even stop the httpd
service.  Finally after shutting down my server for the night and letting it
sit, when I booted back up this morning, my Apache site is working fine
again.

In the interim while I develop my JSP I will just leave as is calling with
port 8080.  Need to finish that asap, so mod_jk will have to get put on the
back burner for now.  Thanks again for all your (and everyone else's) help.
I'm sure you will be hearing again from me soon ;-)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 8:37 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk Try #2 - error can't find apache



In my experience, the apxs in /usr/sbin is the wrong one to use.  Can you
contact the person who installed your Apache?  Apxs should be there.

I've never had a problem building the connectors using
--with-apxs=/some/path/to/apache/bin/apxs for configure.  Then again, I
build my Apache from source.

John

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 1:16 PM
 To: 'Tomcat Users List'
 Subject: RE: Mod_jk Try #2 - error can't find apache
 
 
 First line of apxs is #! /usr/bin/perl  that location is
 correct for perl.
 There is alos a perl5.6.1.  Should I try this one instead?
 
 Thanks.
 
 Denise
 
 
 -Original Message-
 From: Jan-Michael Ong [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 12:58 PM
 To: Tomcat Users List; 'Tomcat Users List'
 Subject: Re: Mod_jk Try #2 - error can't find apache
 
 
 apxs requires perl to be available check the first line of apxs
 
 head -1 /usr/sbin/apxs
 
 It should say something like
 
 #!/usr/local/bin/perl or something along those lines
 
 check the availability of your perl install
 
 ls -l /usr/local/bin/perl
 
 if it says not found do a find for perl and replace that
 line with the 
 location of the found perl.
 
 cd /
 find . -name 'perl' -print 
 
 Hope that helps.
 
 Jan-Michael
 
 
 
 At 12:39 PM 12/13/2002 -0500, Denise Mangano wrote:
 Ok.  So its time to give this another try.  For try #2 I
 decided to try
 to build mod_jk according to the HOW-TO.  I'm running into a snag.
 When I run configure it is looking for a path to apxs.  My Apache 
 1.3.27 web server is up and running, I can view my website.  Tomcat 
 4.1.12 itself was running (before I shut it down to do this).  I 
 searched my entire server, and the only place I found apxs was in 
 usr/sbin.  So this is the path that I used for ./configure 
 --with-apxs=/usr/sbin/apxs --with-java=${JAVA_HOME}. This is what 
 happens:
 
 everything prior to this checked out OK.
 checking for grep... /bin/grep
 checking for echo... /bin/echo
 checking for sed... /bin/sed
 checking for cp... /bin/cp
 checking for mkdir... /bin/mkdir
 checking for libtool... /usr/bin/libtool
 no apxs given
 checking for target platform... unix
 no apache given
 configure: error: Cannot find the WebServer
 
 Any ideas?  Thanks :)
 
 Denise
 
 --
 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]

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




HTML Manager Application FAIL - Invalid application URL was specified

2002-12-16 Thread Jon Eaves
Hi all,

First, the preamble:

Tomcat 4.1.12, Windows 2k.

I've searched the archives to no avail.
I've had a million monkeys typing in URLs without success.
I've even read the documentation, but that didn't help.

Can anybody tell me the magic combination that I need to type
into either the Config URL or the WAR URL ?
(Can somebody confirm that Config URL = context.xml URL ?)
WAR works for a foo.war and an unpacked foo.war so I guess
that's the only choice left.

I suspect the HTML Manager App is broken because after it
whines at me (or my monkeys) for what was typed in I can edit
the URL in the browser and generate a line that is valid and
actually install my web application.

Here's how I can make it work...

1. Path: /hello
   Config URL: [ empty ]
   WAR URL: file:c:\devel\jon\hello\build

Results in :
FAIL - Encountered exception java.net.MalformedURLException: no protocol:

2. Edit the browser URL and remove the installConfig=
Results in :
OK - Installed application at context path /hello

So, broken, or is there some magic that I'm missing.

Please hurry, my monkeys are getting tired and I suspect they
will faint from hunger before getting the right combination. ;-)

Cheers,
	-- jon

--
Jon Eaves [EMAIL PROTECTED]
http://www.eaves.org/jon/


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




Session timeout

2002-12-16 Thread Lindomar
Hi everybody!

How can i create a process exactly after session  timeout or user invalidate the 
session?
Is it possible? I think yes, but i didn't find how do it yet...

Can anybody give me any idea ?

Thanks in advanced.




RE: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-16 Thread Turner, John

They do have these.  The URLs are regularly posted on this list, and the
URLs are readily available on the Jakarta site:

JK:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1
/

JK2: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/

John


 -Original Message-
 From: response [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, December 14, 2002 1:44 AM
 To: Tomcat Users List
 Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3
 
 
 Hello.
 
 I wish the Tomcat/Apache team would come up with precompiled binaries 
 for Linux and, if possible, rpms. The problem of compiling the source 
 for binaries is too much work for the average user.
 
 Thank-you for your time.
 
 Sean.
 

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




RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r

2002-12-16 Thread Matthew Ritenburg
Unfortunately, yes.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 8:31 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r



I have 4.1.12 on Solaris 8 (420R) running for my developers, it does not exhibit this 
behavior.  Are you required to use 4.0.1?  That's kind of old.

John



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




RE: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-16 Thread Turner, John

I feel bad that you are having this much difficulty.  If you want to
describe what parts of my HOWTO you've followed and which parts you haven't,
or which parts are causing you grief, I will do my best to help.  The
process works exactly as stated in my HOWTO, I have independent confirmation
of this and have done it on both Solaris and Linux, so I'm not sure what
else I can put in there to help out, but I am willing to try.

I will upload a binary for 2.0.43 and 4.1.12 later today, compiled from a
fresh download.  If that's not the version you need, please let me know.

John


 -Original Message-
 From: Jerry Ford [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 9:53 PM
 To: Tomcat Users List
 Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3
 
 
 No, wait, that's not true...I did get the right one (or as close as I 
 could come, the connector cell in the matrix says Tomcate 
 4.0x).  I got 
 confused because I'm not at the Linux box right now, I checked his 
 website from my Win2000 machine and the Solaris link was the one that 
 showed the last visit.  I must have clicked it from this 
 computer, even 
 though I didn't download it---not only for Solaris, but also 
 wrong Apache.
 
 Jerry
 
 Jerry Ford wrote:
 
  Denise:
 
  I have Red Hat 7.1. 
  I didn't have a problem unzipping it; but when I tried to 
 compile, it 
  failed the first time, then compiled, but when I run the configure 
  script, it fails consistently.
 
  Now that I'm responding to you, I went back to John's 
 how-to page to 
  check my facts and I think see where I went wrong...I may 
 have grabbed 
  a Solaris file, which would explain why it wouldn't build 
 on Linux.  
  It's the only 4.1.12 tomcat version in his connector 
 matrix, so I took 
  it not seeing it was for the wrong system. 
  When it failed to install, I went back and got the binary 
 instead.  I 
  see he has a 4.1.10 version for Linux; maybe I'll try that. 
  Or maybe 
  not, if I can get the binary to work.  I don't really feel 
 a need to 
  build it, just want to get it working.
 
  :)
 
  Jerry
 
  Denise Mangano wrote:
 
  Jerry,
 
  I know you have same version of Apache and Tomcat I do.  By any 
  chance are
  you running RedHat Linux 7.2 / 7.3?  I ran into same problem with
  encountering error during configure, and just downloaded 
 the binary.  
  That
  is the binary that I downloaded, but when I try to gunzip 
 it tells me 
  the
  file is not in gzip format.  Did you have a similar problem?
 
  Denise
 
  -Original Message-
  From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Friday, 
  December 13, 2002 1:17 PM
  To: Tomcat Users List
  Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3
 
 
  John:
 
  I took your advice from yesterday, replaced mod_webapp.so with 
  mod_jk.so and now jsps and servlets don't work.
 
  They worked fine under mod_webapp, including my own 
 HelloWorld app in 
  addition to the Tomcat examples. Now they don't work, 
 although I am 
  able to get to the HTML pages using, for example, 
  http://localhost/examples/servlets.  But the servlets and jsp 
  examples themselves all generate an Apache port 80 internal server 
  error.
 
  I followed the instructions on your howto page, (except that the 
  configure script fails---I have been able to build apache, tomcat, 
  ant, and mod_webapp on my system, but mod_jk fails, so I 
 just grabbed 
  your posted binary.)
 
  I added the listener statements to server.xml.
 
  mod_jk.conf shows  Location  entries for each of the 
 webapps, and 
  there is a JkMount entry for the servlets (including my HelloWorld 
  entry).
 
  mod_jk.log is empty.
 
  What more do I need to do?
 
  Thanks, Jerry
 
  Turner, John wrote:
 
   
 
  Mod_webapp is deprecated, and has some fairly serious limitations.
 
  JK/JK2 is the better choice if you are concerned with 
 future growth.
 
  If you're having problems, perhaps my HOWTOs will help:
 
  http://www.johnturner.com/howto
 
  John
 
  -Original Message-
  From: Jerry Ford [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 11, 2002 3:15 PM
  To: Tomcat Users List
  Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3
 
  Denise:
 
  I have just got my Apache 1.3.27/Tomcat 4.1.12 connection to work.
 
  Answers to your questions are yes, and yes.  You need a connector
  between them, and mod_jk.so is one such connector.
 
  However, I had a devil of a time locating any connector on the
  apache.org website, and I never was able to make mod_jk work (I 
  tried using the version that did work with my Tomcat 3.2 
  installation, but it did not work with 4.1 and I was not able to 
  locate mod_jk---any version---on the apache website in order to 
  rebuild).
 
  I ended up using mod_webapp.so, which is another connector.
 
  It's located in the 
 jakarta-tomcat-connectors-4.1.12-src.tar.gz, which
  you can download from 
  
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4
 .1.12/src/ 
  (the 

RE: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-16 Thread Turner, John

It will take some time, but I will install Apache 1.3.27 on a test box later
today and compile mod_jk and upload it to my site.

John


 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 1:54 PM
 To: 'Tomcat Users List'
 Subject: RE: Connecting Tomcat 4.1.12 with Apache 1.3
 
 
 Jerry,
 
 I know you have same version of Apache and Tomcat I do.  By 
 any chance are
 you running RedHat Linux 7.2 / 7.3?  I ran into same problem with
 encountering error during configure, and just downloaded the 
 binary.  That
 is the binary that I downloaded, but when I try to gunzip it 
 tells me the
 file is not in gzip format.  Did you have a similar problem?
 
 Denise 
 
 
 -Original Message-
 From: Jerry Ford [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, December 13, 2002 1:17 PM
 To: Tomcat Users List
 Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3
 
 
 John:
 
 I took your advice from yesterday, replaced mod_webapp.so 
 with mod_jk.so 
 and now jsps and servlets don't work.
 
 They worked fine under mod_webapp, including my own HelloWorld app in 
 addition to the Tomcat examples. Now they don't work, 
 although I am able 
 to get to the HTML pages using, for example, 
 http://localhost/examples/servlets.  But the servlets and jsp 
 examples 
 themselves all generate an Apache port 80 internal server error.
 
  I followed the instructions on your howto page, (except that the 
 configure script fails---I have been able to build apache, 
 tomcat, ant, 
 and mod_webapp on my system, but mod_jk fails, so I just grabbed your 
 posted binary.)
 
 I added the listener statements to server.xml.
 
 mod_jk.conf shows  Location  entries for each of the webapps, and 
 there is a JkMount entry for the servlets (including my 
 HelloWorld entry).
 
 mod_jk.log is empty.
 
 What more do I need to do?
 
 Thanks, Jerry
 
 Turner, John wrote:
 
 Mod_webapp is deprecated, and has some fairly serious limitations.
 
 JK/JK2 is the better choice if you are concerned with future growth.
 
 If you're having problems, perhaps my HOWTOs will help:
 
 http://www.johnturner.com/howto
 
 John
 
 -Original Message-
 From: Jerry Ford [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 11, 2002 3:15 PM
 To: Tomcat Users List
 Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3
 
 Denise:
 
 I have just got my Apache 1.3.27/Tomcat 4.1.12 connection to work.
 
 Answers to your questions are yes, and yes.  You need a connector
 between them, and mod_jk.so is one such connector.
 
 However, I had a devil of a time locating any connector on the
 apache.org website, and I never was able to make mod_jk work 
 (I tried 
 using the version that did work with my Tomcat 3.2 
 installation, but it 
 did not work with 4.1 and I was not able to locate mod_jk---any 
 version---on the apache website in order to rebuild).
 
 I ended up using mod_webapp.so, which is another connector.
 
 It's located in the 
 jakarta-tomcat-connectors-4.1.12-src.tar.gz, which
 you can download from 
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v
 4.1.12/src/ 
 (the same directory as tomcat itself).
 
 When you unpack it, look for README.txt in the webapp directory. It 
 will
 tell you how to build the connector from CVS.  Follow the 
 directions in 
 the readme.  They're clear, straightforward, and the build 
 process was 
 smooth and routine, for me at least.  
 
 Jerry
 
  
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/
 v4.1.12/sr
 c/jak
 arta-tomcat-connectors-4.1.12-src.tar.gz
 
 
 
 Denise Mangano wrote:
 
   
 
 Hi all,
 
 I am fairly new to using Apache / Tomcat. I currently have 
 my website 
 set
 
 
 up
   
 
 in Apache, running in the /var/html directory. I have 
 installed Tomcat 
 because I have a form page (HTML) that I want to run a 
 servlet with to 
 process a credit card payment with an outside payment processor. I 
 have
 
 
 seen
   
 
 some instances that people have stated I have to do some special 
 configuration in order to use both Apache and Tomcat 
 together. Is this 
 so? If so, then are there any good resources for this?
 
 Perhaps using JSP for the form will be better because I 
 want a custom 
 page to display depending on what error message will come back from 
 the payment engine.  If that is the case then wouldn't I need the 
 connection between Apache and Tomcat? (the images I will 
 need for the 
 JSP page is stored in apache web directory as well).  Is this the 
 mod_jk plug in? (I am running RedHat Linux 7.3)
 
 Thanks in advance!
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.
 
 
 --
 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]
 
 ---
 Incoming mail is certified Virus Free.
 

RE: Help: Errors in catalina.out

2002-12-16 Thread Shapira, Yoav
Howdy,
Assuming you don't have too many web.xml files, why don't you simply go
through yours (not tomcat's: tomcat's admin, manager, and other web.xml
files are spec compliant) and verify the XML?  Alternatively, comment
out all the pieces, restart the server, make sure there are no errors.
Then comment in pieces one by one, restarting the server each time,
until you get an error.

Or use a program like XML Spy to verify your web.xml against the DTD.
The deployment descriptor DTD is available in the servlet.jar
distribution.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rob Cartier [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 11:50 PM
To: [EMAIL PROTECTED]
Subject: Help: Errors in catalina.out

I am running 4.1.12 but am seeing errors at startup.
They say severe but all my applications seem to work ok
I am also unable to tell which web.xml is causing the errors
it would appear there are 2 differnet ones involved.
any ideas would be heplful. I turned debug up to a 1 on
my application logs but see no errors there.
I wonder if the admin or manager web.xml files
are causing me grief. ;(

Thanks in advance

--Rob

Error 1:

Dec 13, 2002 11:18:01 PM org.apache.commons.modeler.Registry
loadRegistry
INFO: Loading registry information
Dec 13, 2002 11:18:02 PM org.apache.commons.modeler.Registry
getRegistry
INFO: Creating new Registry instance
Dec 13, 2002 11:18:03 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Dec 13, 2002 11:18:06 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1
Dec 13, 2002 11:18:07 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 106 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-
param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-
mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-
ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb
-
loca
l-ref*).
org.xml.sax.SAXParseException: The content of element type web-app
must
match
(icon?,display-name?,description?,distributable?,context-
param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-
mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-
ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb
-
loca
l-ref*).
   at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn
own
Source)
...

Error 2:
Dec 13, 2002 11:18:10 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 57 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-
param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-
mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-
ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb
-
loca
l-ref*).
org.xml.sax.SAXParseException: The content of element type web-app
must
match
(icon?,display-name?,description?,distributable?,context-
param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-
mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-
ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb
-
loca
l-ref*).



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


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




RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r

2002-12-16 Thread Turner, John

Just curious, may I ask why?  The security fixes alone should be enough to
justify upgrading to any managers, etc.

John


 -Original Message-
 From: Matthew Ritenburg [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 8:53 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r
 
 
 Unfortunately, yes.
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, December 16, 2002 8:31 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r
 
 
 
 I have 4.1.12 on Solaris 8 (420R) running for my developers, 
 it does not exhibit this behavior.  Are you required to use 
 4.0.1?  That's kind of old.
 
 John
 
 
 
 --
 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: Mod_jk Try #2 - error can't find apache

2002-12-16 Thread Turner, John

No problem, glad to help.

John


 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 8:52 AM
 To: 'Tomcat Users List'
 Subject: RE: Mod_jk Try #2 - error can't find apache
 
 
 John,
 
 Managed to get through the build, but yet again ran into some 
 problems.  My
 Apache site  no longer worked and I was getting critical 
 error message that
 indicated more than one instance of httpd running.  I 
 uninstalled mod_jk 
 Tomcat, yet again the problem persisted - and I couldn't even 
 stop the httpd
 service.  Finally after shutting down my server for the night 
 and letting it
 sit, when I booted back up this morning, my Apache site is 
 working fine
 again.
 
 In the interim while I develop my JSP I will just leave as is 
 calling with
 port 8080.  Need to finish that asap, so mod_jk will have to 
 get put on the
 back burner for now.  Thanks again for all your (and everyone 
 else's) help.
 I'm sure you will be hearing again from me soon ;-)
 
 Denise Mangano
 Help Desk Analyst
 Complus Data Innovations, Inc.
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, December 16, 2002 8:37 AM
 To: 'Tomcat Users List'
 Subject: RE: Mod_jk Try #2 - error can't find apache
 
 
 
 In my experience, the apxs in /usr/sbin is the wrong one to 
 use.  Can you
 contact the person who installed your Apache?  Apxs should be there.
 
 I've never had a problem building the connectors using
 --with-apxs=/some/path/to/apache/bin/apxs for configure.  
 Then again, I
 build my Apache from source.
 
 John
 
  -Original Message-
  From: Denise Mangano [mailto:[EMAIL PROTECTED]]
  Sent: Friday, December 13, 2002 1:16 PM
  To: 'Tomcat Users List'
  Subject: RE: Mod_jk Try #2 - error can't find apache
  
  
  First line of apxs is #! /usr/bin/perl  that location is
  correct for perl.
  There is alos a perl5.6.1.  Should I try this one instead?
  
  Thanks.
  
  Denise
  
  
  -Original Message-
  From: Jan-Michael Ong [mailto:[EMAIL PROTECTED]]
  Sent: Friday, December 13, 2002 12:58 PM
  To: Tomcat Users List; 'Tomcat Users List'
  Subject: Re: Mod_jk Try #2 - error can't find apache
  
  
  apxs requires perl to be available check the first line of apxs
  
  head -1 /usr/sbin/apxs
  
  It should say something like
  
  #!/usr/local/bin/perl or something along those lines
  
  check the availability of your perl install
  
  ls -l /usr/local/bin/perl
  
  if it says not found do a find for perl and replace that
  line with the 
  location of the found perl.
  
  cd /
  find . -name 'perl' -print 
  
  Hope that helps.
  
  Jan-Michael
  
  
  
  At 12:39 PM 12/13/2002 -0500, Denise Mangano wrote:
  Ok.  So its time to give this another try.  For try #2 I
  decided to try
  to build mod_jk according to the HOW-TO.  I'm running into a snag.
  When I run configure it is looking for a path to apxs.  My Apache 
  1.3.27 web server is up and running, I can view my 
 website.  Tomcat 
  4.1.12 itself was running (before I shut it down to do this).  I 
  searched my entire server, and the only place I found apxs was in 
  usr/sbin.  So this is the path that I used for ./configure 
  --with-apxs=/usr/sbin/apxs --with-java=${JAVA_HOME}. This is what 
  happens:
  
  everything prior to this checked out OK.
  checking for grep... /bin/grep
  checking for echo... /bin/echo
  checking for sed... /bin/sed
  checking for cp... /bin/cp
  checking for mkdir... /bin/mkdir
  checking for libtool... /usr/bin/libtool
  no apxs given
  checking for target platform... unix
  no apache given
  configure: error: Cannot find the WebServer
  
  Any ideas?  Thanks :)
  
  Denise
  
  --
  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]
 
 --
 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]




error in one servlet with the

2002-12-16 Thread Dionisio Ruiz de Zarate
i i write in one servlet this:
String whereIs = ((ServletContext)request).getRealPath(/);
in tomcat appears this error, can any body help me? thanks

ERROR:

type Exception report
message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

java.lang.ClassCastException
at utils.filtroSessiones.doBeforeProcessing(filtroSessiones.java:49)
at utils.filtroSessiones.doFilter(filtroSessiones.java:135)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)





Apache Tomcat/4.1.12



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




RE: Apache-Tomcat HOWTO

2002-12-16 Thread Turner, John

Not sure what JK2 needs to work, I don't use it.  You should be able to
build it from the same source package as JK.  I was able to do so on my Red
Hat test box, but it took quite a bit of hacking around.

JK isn't really deprecated, the dev team is just pursuing JK2.  In my
opinion, JK is quite stable and JK2 is not ready for prime time, though
that is my personal preference.  

John

 -Original Message-
 From: Rasputin [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 8:40 AM
 To: Tomcat Users List
 Subject: Re: Apache-Tomcat HOWTO
 
 
 * Turner, John [EMAIL PROTECTED] [1214 14:14]:
  
  NOTE: the ./configure method assumes you have a sane build 
 environment:
  libtool, GNU make, autoconf, m4 
  
  a) cd to CONNECTOR_HOME/jk/native. 
  
  b) check README and README.configure. 
  
  c) run buildconf.sh: ./buildconf.sh. This will create a file called
  configure in CONNECTOR_HOME/jk/native. 
  
  d) run configure: ./configure 
 --with-apxs=/some/path/to/apache/bin/apxs
  --with-java-home=${JAVA_HOME} 
  
  e) run make: make 
 
 I got this far from CVS, then had to manually copy mod_jk.so from
 ./.libs/ in that directory into place for Apache2 to load it.
 It seems fairly happy though, so that's not a problem.
 
 But unless I'm mistaken, this is a mod_jk connector.
 I was hoping for JK2 (since I see warnings that JK is deprecated) -
 I was following the docs linked from the 4.1 connector reference, are
 they for Jk (rather than jk2)?
 
 I tried to build from the native2 directory, but this seems 
 to require a
 local JDK - that's no go for me, NetBSD on sparc doesn't have 
 a 1.2 JVM :(
 
 Am I missing something, or does JK2 need a local JVM to work? 
 If so, why?
 
 -- 
 Rasputin :: Jack of All Trades - Master of Nuns
 
 --
 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: Warp or Coyotte ? I'm so bad in my choice....

2002-12-16 Thread Turner, John

In my opinion, JK.  Definitely not WARP.

John

 -Original Message-
 From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 5:44 AM
 To: tomcat-user
 Subject: Warp or Coyotte ? I'm so bad in my choice
 
 
 Hi all !
 
 Using Apache 1.3.26 + Tomcat 4.0.2 Final Rel on SOLARIS.
 
 I decided to test My Apache with Tomcat 4.1.12.
 
 Actually i use mod_webapp for the WARP Connector.
 
 As i wanted to have some tests with Load Balancing and sessions 
 tracking, i'm trying  Tomcat 4.1.12.
 
 I had a look at the JTC doc:
 
 mod_jk2 Current developpements. Enabled by default in 4.1; 
 works in 4.0. 
 mod_jk2 supports in-process JVM and load balancing. See Coyote JK 2 
 http://petrus.fr.kodak.com:8080/tomcat-docs/config/jk2.html
 
 mod_webapp Not for Win32; no in-process nor load balancing; works in 
 4.x. Use APR http://apr.apache.org/ . Supported Apache-2.0 and 
 Apache-1.3). See Webapp 
 http://petrus.fr.kodak.com:8080/tomcat-docs/config/webapp.html
 
 So, the question. What is actually the best and strongest 
 solution for 
 what i'd like to do ?
 
 Any comments, links, welcome .
 
 TIA.
 
 Regards JLB :O)
 
 
 
 --
 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: Two inhibiting problems in developement with tomcat 4

2002-12-16 Thread Turner, John

RTFM

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

reloadable=true

John


 -Original Message-
 From: Lukas Österreicher [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 15, 2002 7:18 AM
 To: Tomcat Users List
 Subject: Re: Two inhibiting problems in developement with tomcat 4
 
 
 
  I don't know for sure about your first problem since I 
 haven't played
  with auto load extensivly since tomcat 3x.  I believe 
 however that there
  is a switch somewhere in server.xml...
  
  As for your other problem:
  If you compile your classes without the debugging 
 information, the JVM
  can't tell you what line number exceptions are thrown.  The 
 only reason
  I can think of that TC 4.1.12 wouldn't show you the line 
 numbers would
  be because either your classes, or the classes TC uses were compiled
  without debugging options.  Obviously, this is done to 
 increase runtime
  speed.
  
  Randy
 
 Maybe I can find that switch somewhere.
 
 As to the other problem I'm still wondering. I have the 
 standard binary
 distribution of tc 4.1.12 and all other sources in the 
 exception do show
 line numbers, only my own don't.
 Will you believe me it's tomcat itself somehow if I copy those classes
 used on tomcat 3 which do show line numbers to my tomcat 4 install and
 there suddenly they aren't shown?
 Maybe theres some configuration about this too.
 
 Lukas
 
 --
 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: error in one servlet with the

2002-12-16 Thread Shapira, Yoav
Howdy,

i i write in one servlet this:
String whereIs = ((ServletContext)request).getRealPath(/);
in tomcat appears this error, can any body help me? Thanks

What are you trying to do? ;)

A request is not a context.  So what you're doing is an invalid cast and
the JVM correctly throws an exception at runtime.

Assuming the above code is in a servlet, you can just do:
String whereIs = getServletContext().getRealPath(/);
To get the real (file) path to the docBase of your webapp.  As the
code suggests, this path is request-independent.

Note that this wouldn't work if you're running from a packed .war
archive.

Yoav Shapira
Millennium ChemInformatics

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




RE: Connection pooling with sql server

2002-12-16 Thread Turner, John

Not sure what you mean by jdbc driver from datadirect but if you mean the
free JDBC driver from Microsoft, we were never able to get it to support
pooling after several weeks of trying.

We ended up purchasing a license to a third-party driver.  Benefits were
actual pooling, and on top of that, support for CachedRowSet which was a key
feature we needed for our apps.

John

 -Original Message-
 From: Ashruf Hussain [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 15, 2002 9:44 PM
 To: [EMAIL PROTECTED]
 Subject: Connection pooling with sql server
 
 
 Hi all,
 
 I am new user of tomcat 4.1, using jdbc driver from 
 datadirect to connect to
 sqlserver database. 
 I am able to get normal individual connections without pooling. 
 Now, I want to get connections from connection pool. 
 I tried with all my efforts (followed pooling documentation) to get
 connection pooling done with sql server, but tomcat hangs up 
 at start up.
 
 Anybody who has done it all, pls help.
 
 Thanks in advance,
 
 Ashruf
 
 ---
 Regards, 
 Mohammed Ashruf Hussain
 Software Engineer.
 Virtusa, Corp. (formerly erunway)
 Work 040 23414200 ext(303)
 www.virtusa.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]




Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
Hi,

I'm almost getting Apache and Tomcat to work together.  I had some errors 
previously that have already been corrected. I'm now able to start both 
Tomcat and Apache with no errors, but I still can`t get the apache virtual 
hosts to redirect to Tomcat.

The only error message I get is the following in mod_jk.log

[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL 
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, 
NULL parameters

any hints??
thanks.
gunther.

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



Re: error in one servlet with the

2002-12-16 Thread Dionisio Ruiz de Zarate
i am trying to load, to get , the real path in the disk (/home/user/)
i y make: String whereIs = getServletContext().getRealPath(/);

appears this error:
 utils/filtroSessiones.java [50:1] cannot resolve symbol
symbol  : method getServletContext  ()
location: class utils.filtroSessiones
String whereIs=getServletContext().getRealPath(/);
^
1 error

Can you help me?
thanks


- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 3:05 PM
Subject: RE: error in one servlet with the


Howdy,

i i write in one servlet this:
String whereIs = ((ServletContext)request).getRealPath(/);
in tomcat appears this error, can any body help me? Thanks

What are you trying to do? ;)

A request is not a context.  So what you're doing is an invalid cast and
the JVM correctly throws an exception at runtime.

Assuming the above code is in a servlet, you can just do:
String whereIs = getServletContext().getRealPath(/);
To get the real (file) path to the docBase of your webapp.  As the
code suggests, this path is request-independent.

Note that this wouldn't work if you're running from a packed .war
archive.

Yoav Shapira
Millennium ChemInformatics

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




DataBase connection pooling.

2002-12-16 Thread Andoni
Hello,

Do you all write your own connection pooling code or is there some open
source software to do this?

Also has anybody gotten deployment of .war files to work with
unpackWARs=false?

Thanks,

Andoni.


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




RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r

2002-12-16 Thread Matthew Ritenburg
It was bundled with a vendor application and comes with tech support.  The vendor is 
only supporting the version they shipped on the CD.  I understand your arguments 
completely.  Unfortunately, the vendor is a little slow on QA testing and validation 
for their product.

Matt


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 8:57 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.1 on Solaris 8, Sunfire 280r



Just curious, may I ask why?  The security fixes alone should be enough to justify 
upgrading to any managers, etc.

John



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




Re: DataBase connection pooling.

2002-12-16 Thread echambe1

Andoni:

Tomcat 4.1.x uses the Database Connection Pool from the Apache Commons
Project.
by default, meaning it is also shipped with it.

This is what I have been using and have not come across any problems that
effect
the web applications I develop.

Thanks,
Ej





Andoni [EMAIL PROTECTED] on 12/16/2002 08:14:07 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:DataBase connection pooling.


Hello,

Do you all write your own connection pooling code or is there some open
source software to do this?

Also has anybody gotten deployment of .war files to work with
unpackWARs=false?

Thanks,

Andoni.


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









**
Confidentiality Notice: This email message, including any attachments, 
contains or may contain confidential information intended only for the 
addressee. If you are not an intended recipient of this message, be 
advised that any reading, dissemination, forwarding, printing, copying
or other use of this message or its attachments is strictly prohibited. If
you have received this message in error, please notify the sender 
immediately by reply message and delete this email message and any
attachments from your system.  
**


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




RE: error in one servlet with the

2002-12-16 Thread Shapira, Yoav
Howdy,

i y make: String whereIs = getServletContext().getRealPath(/);

appears this error:
 utils/filtroSessiones.java [50:1] cannot resolve symbol
symbol  : method getServletContext  ()
location: class utils.filtroSessiones
String whereIs=getServletContext().getRealPath(/);


The servlet context is only accessible within servlets (and filters,
etc.).  It's not going to be accessible within your utils class unless
you pass a reference to it.

Perhaps you could post your complete use-case: why are you trying to get
the real path, when you need it, what you need it for.  

If the directory you want contains configuration information, or it's a
destination for log files, etc, you could pass it as a context-param.
For example, add the following to your web.xml:
context-param
  param-namemyDirectory/param-name
  param-value/home/user/param-value
/context-param

Then in your servlets, 
String myDirectory =
getServletContext().getInitParameter(myDirectory);

This is probably better than using getRealPath().

Alternatively, if you need to read from this directory, consider using
getResource() or getResourceAsStream() (which are also in the servlet
context class).

Yoav Shapira
Millennium ChemInformatics

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




jdbc with oracle

2002-12-16 Thread puneet sachar
hi guys...

i have installed Oracle 9i on my Pc having window 2000
professional edition 

i used to login like..
hr/tiger...
i don't put the tsn name..

1)-can anyone tell me..why..why it works without the
tsn name

2) also i'm not able to make a simple..connection to
the database..

can anyone tell me the code...or send me the code...

i'm ...waiting...

thanx ...

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Context Mapping

2002-12-16 Thread Mark Lenz

No, I haven't.  Do I need to define a servlet-mapping for a context with
only JSP's? (Yes, I know they're really servlets.)

Mark Lenz
(920) 832-3523
[EMAIL PROTECTED]

 
  Jeanfrancois Arcand
  [EMAIL PROTECTED] To:Tomcat Users List 
[EMAIL PROTECTED] 
cc:  
  12/13/2002 12:01 AM   Subject:Re: Context  
  Please respond to Tomcat Users   Mapping  
  List  
 





This output occurs when Tomcat try to match element defined under
servlet-mapping in the web.xml. How have you defined the
servlet-mapping element?

-- Jeanfrancois

Mark Lenz wrote:

I have Tomcat installed and have started to write some JSP's.  I looked at
my logs today and saw this everytime I accessed a JSP:

2002-12-12 14:02:20 StandardContext[/czis]: Mapping contextPath='/czis'
with requestURI='/czis/index.jsp' and relativeURI='/index.jsp'
2002-12-12 14:02:20 StandardContext[/czis]:   Trying exact match
2002-12-12 14:02:20 StandardContext[/czis]:   Trying prefix match
2002-12-12 14:02:20 StandardContext[/czis]:   Trying extension match
2002-12-12 14:02:20 StandardContext[/czis]:  Mapped to servlet 'jsp' with
servlet path '/index.jsp' and path info 'null' and update=true

I have a context like this:
Context path=/czis docBase=czis debug=3 swallowOutput=true

Shouldn't it match the context instead of the extension?  Or am I being
paranoid and Tomcat is doing exactly what it should?


Mark Lenz
(920) 832-3523
[EMAIL PROTECTED]
The information contained in this electronic mail message is confidential
information and intended only for the use of the individual or entity
named
above, and may be privileged. If the reader of this messages is not the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If
you have received this transmission in error, please contact the sender
immediately, delete this material from your computer and destroy all
related paper media. Please note that the documents transmitted are not
intended to be binding until a hard copy has been manually signed by all
parties.
Thank you.



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




The information contained in this electronic mail message is confidential
information and intended only for the use of the individual or entity named
above, and may be privileged. If the reader of this messages is not the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If
you have received this transmission in error, please contact the sender
immediately, delete this material from your computer and destroy all
related paper media. Please note that the documents transmitted are not
intended to be binding until a hard copy has been manually signed by all
parties.
Thank you.



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




RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Turner, John

ps -ef |grep httpd 

That will show you exactly what is running.  On RH 7.3, if only one Apache
is running, you should see something that looks like this when you run that
command:

root 30931 1  0 10:42 ?00:00:00 /usr/local/apache2/bin/httpd
-k
nobody   30932 30931  0 10:42 ?00:00:00 /usr/local/apache2/bin/httpd
-k
nobody   30933 30931  0 10:42 ?00:00:00 /usr/local/apache2/bin/httpd
-k
nobody   30934 30931  0 10:42 ?00:00:00 /usr/local/apache2/bin/httpd
-k
nobody   30935 30931  0 10:42 ?00:00:00 /usr/local/apache2/bin/httpd
-k
nobody   30936 30931  0 10:42 ?00:00:00 /usr/local/apache2/bin/httpd
-k

That's one Apache: the root process so it can bind to port 80, and the
others are children used to serve actual requests.

If you see that BEFORE you start up your own Apache, that means that 1)
someone else has started an Apache, or 2) Apache is set to start on startup.

I don't know your current production environment, but I like to keep
everything manual until I know the whole system works, then I set Apache and
Tomcat up to start automatically on boot.  That way, during testing, you
know for sure what is started and what isn't.

HTH

John

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 15, 2002 7:09 PM
 To: 'Tomcat Users List '
 Subject: RE: Almost there...Updated Apach-Tomcat with mod_jk .. please
 he lp!
 
 
 Sorry, meant to respond to that before... I am not under 
 Solaris, I am using
 Redhat 7.3.  I rebooted the server, and now it shows one instance of
 httpd... I still cannot pull up my site, but I think I may 
 know why, but
 won't be able to check until I get into the office in the morning.
 
 Thanks to you and everyone else for their help.  This is 
 truly turning out
 to be a great learning experience.  I'm sure I will be 
 writing again soon,
 when I try this whole mod_jk stuff again :)
 
 -Original Message-
 From: Rafael Angarita
 To: Tomcat Users List
 Sent: 12/15/2002 6:54 PM
 Subject: Re: Almost there...Updated Apach-Tomcat with mod_jk  
 .. please he
 lp!
 
  I ran ps -A which listed all processes.  httpd (apache) was 
 not one of
 them.
  I am assuming PID means Port ID(?), and neither 443 nor 80 was
 listed...
  This is all very strange and I am starting to sense that I will have
 to
  reinstall Apache...
 
 PID is process id.
 Denise, if you are under Solaris try lsof (I'm not sure if the
 sources
 are available to compile it under another platform)
 
 Run:
 # lsof -i -n -C | grep 443
 it should returns the process that is using the port 443
 (use -C option if you are under Solaris 5.8)
 
 
 
 --
 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: Connector

2002-12-16 Thread Turner, John

The CoyoteConnector is enabled by default in Tomcat 4.1.12.  The
CoyoteConnector handles multiple protocols, including JK, JK2, and HTTP.  It
depends on what you send it, and what port its listening on.

John


 -Original Message-
 From: response [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, December 14, 2002 10:49 AM
 To: Tomcat Users List
 Subject: Connector
 
 
 Hello.
 
 Is the following true for Tomcat 4.1?
 
 mod_jk2 ajp1.3/ajp1.4 CoyoteConnector+JkCoyoteHandler Current 
 developpements. Enabled by default in 4.1; works in 4.0. mod_jk2 
 supports in-process JVM and load balancing. See Coyote JK 2 
 http://192.168.1.3:8080/tomcat-docs/config/jk2.html
 
  
 Thank-you for your time.
 
 Sean.
 
 
 
 
 
 

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




DBCP difficulties and Mysql!!

2002-12-16 Thread Colic, Alex
Hi,

I have transferred a web app to use mysql and the built in dbcp pooling
available in Tomcat 4.12. I am getting a lot of dbcp errors. If I check my
log file the two errors are:


org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Communication
failure during handshake. Is there a server running on 127.0.0.1:3306?

and

java.sql.SQLException: DBCP could not obtain an idle db
connection, pool exhausted

I have the parameters of my pool connection below. In my finally block of
the try statement where I access the connection via JNDI I close all the
recordsets, statements and connection. I am getting these errors with a load
of about 5 users. Even though the error says that it can't find the mysql
server I can connect to it manually.

Any help in figuring out what is going on is appreciated.

Thanks

Alex

parameter 
namemaxActive/name 
value100/value
/parameter 

parameter 
namemaxIdle/name 
value30/value 
/parameter

parameter
namemaxWait/name
value1/value
/parameter
 
parameter
nameusername/name
valueusername/value
/parameter 

parameter
namepassword/name
valuepassword/value
/parameter 

parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
/parameter 

parameter
nameurl/name
aluejdbc:mysql://localhost:3306/crlca??autoReconnect=true/value
/parameter 

parameter
  namelogAbandoned/name
   valuetrue/value
/parameter
   
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter
 


This e-mail may be privileged and/or confidential, and the sender does not waive any 
related rights and obligations. Any distribution, use or copying of this e-mail or the 
information it contains by other than an intended recipient is unauthorized. If you 
received this e-mail in error, please advise me (by return e-mail or otherwise) 
immediately. 

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et 
obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou 
des renseignements qu'il contient par une personne autre que le (les) destinataire(s) 
désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser 
immédiatement, par retour de courriel ou par un autre moyen. 






RE: Tomcat for Enterprise Applications

2002-12-16 Thread Turner, John

You might want to research other open source projects themselves before
attempting to write something from scratch, whether you choose Java or
anything else.  You also (as others have noted) might want to get some
design decisions down before you start choosing a platform...do you REALLY
need EJBs, for example, or is someone just driving that because they think
they're cool?

I don't know what your definition of CRM is, but you might want to
consider something like Interchange (http://www.icdevgroup.org).

You can also consider open source versions of .Net, such as the Mono
Project, which is backed by Ximian: http://www.go-mono.com/

John


 -Original Message-
 From: G. Balandres [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 4:29 AM
 To: Tomcat Users List
 Subject: Tomcat for Enterprise Applications
 
 
 Hi all,
 
 i have currently an dicussion going on about creating 
 a 3/Multi Tier Enterprise Application which will
 have one Webbased Client and one Standalone Client.
 The main aim is the Webbased Client.
 
 The problem is there are some workers which want to
 use .NET and some who want to use J2EE.
 I dont want to start something like a flame war here.
 I just want to find out if we could use the Tomcat 
 server and/or other Open Source Projects to 
 develop our Application because i dont want 
 to go the .NET way.
 The application would be a middle to big size
 CRM system.

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




RE: connecting Apache2.x and tomcat 4.1.x, mod_jk

2002-12-16 Thread Turner, John

You've got something messed up.  Your httpd.conf is calling for the DLL file
on your C drive, yet the error message is citing the E drive.  Are you sure
you don't have multiple Apache servers running somehow?  Did you use an
installer that may have put some hardcoded paths into your registry?

The device attached to the system is not functioning message means you
told me to get something off of a drive that does not exist, in this case,
the E drive.

John


 -Original Message-
 From: cvrajasekhar murthy [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, December 14, 2002 6:39 AM
 To: [EMAIL PROTECTED]
 Subject: connecting Apache2.x and tomcat 4.1.x, mod_jk
 
 
 Hello,
  
  I'm facing with a problem in connecting Apache
  2.0.39
  Tomcat 4.1.x and JBOSS3
  
  MY Configuration:-
  
  Apache 2.0.39
  mod_jk-2.0.43.dll
  Tomcat 4.1.x
  Jboss3
  windows 98
  JDK1.4
  
  I have done the httpd.conf file settings in the
  apache
  as shown below
 
 _
  
  #LoadModule jk_module
  c:\WINDOWS\SYSTEM\mod_jk-2.0.43.dll
  LoadModule jk_module modules/mod_jk-2.0.43.dll
 
 __
  
  PROBLEM :
  
  after I run the apache server I get this error:
  _
  Syntax error on line 175 of
  E:/Apache/Apache2/conf/httpd.conf:
  Cannot load
  E:/Apache/Apache2/modules/mod_jk-2.0.43.dll into
  server: A device attached to the system is not
  functioning.  
  ---
  
  The TOmcatserver is up n running with all the
  necessary changes made for the jk_MODULE.it is
  running
  on port 8080
   
  I have mod_jk.dll and where can i get the
  mod_jk2.dll?
  
  I HUMBLY REQUEST ANY ONE OUT THERE TO PLEASE RESPOND
  TO MY PROBLEM AND KINDLY REQUEST YOU TO GIVE ME A
  SOLUTION.PLEASE DO GIVE ME IF YOU HAVE ANY URLS ON
  THIS SUBJECT.
  
  Thank You,
  
  -bye
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.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: [BUG] AJP connector with specific adress

2002-12-16 Thread Turner, John

This isn't the place for design or feature suggestions.  You want the
tomcat-dev list, not tomcat-user.

John


 -Original Message-
 From: Sven Köhler [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 15, 2002 3:27 PM
 To: [EMAIL PROTECTED]
 Subject: [BUG] AJP connector with specific adress
 
 
  Hi!
  
  using TomCat 4.1.12 i created a new AJP connector listening 
 on port 8009 
  and IP-adress 127.0.0.1 and delted the old Connector that 
 was listening 
  on 0.0.0.0:8009 (BTW: why i can't i simply change it? why 
 must i create 
  a new Connector to enter an IP?)
  
  After restarting Tomcat,  Tomcat doesn't listen on port 
 8009 anymore! 
  and there's no error-message in the logs.
 
 This is wrong.
 Tomcat does start, and it does listen on 8009, but it doesn't bind to 
 the specific IP that is shown in the Administrator.
 It binds to any interface!
 
 It would be nice to be abled to bind the AJP-connector to a 
 specific IP, 
 so i wouldn't need to protect it anymore with a firewall etc.
 
 
 
 
 --
 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: newbie almost connected...

2002-12-16 Thread Turner, John

Post error messages, config file snippets, log file snippets, etc.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 2:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: newbie almost connected...
 
 
 almost
 
 10. Verify examples at http://localhost/examples. On success, 
 apache is working correctly, and JSP and servlet requests are 
 being passed to tomcat.
 
 I can't get the step copmpleted...
 
 I tried localhost and the ip address.  What now?
 
 Thanks,
 Peter
 
 
 
 
 Tref Gare [EMAIL PROTECTED] wrote:
 
 You're on the right track.
 
 Yes you should add the second listener directive (ie:
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=/usr/local/apache2/modules/mod_jk.so /
 
 to server.xml at that location:
 that location in this instance meaning within the HOST element.
 
 And
 What file would I find the Host directive in?
 
 it's still in server.xml.. same area you've just added the Listener
 directive.  Have a look in there and you should be able to locate a
 name parameter.
 
 Ie: in my case it looks like this (where devbox is the name of my
 server).
 
   !-- Define the default virtual host --
   Host name=devbox debug=0 appBase=C:/WWW
unpackWARs=true autoDeploy=true noRoot=false
 
 
 If that is all still too muddy for you, I'll append my full 
 server.xml
 below as I'm using a similar setup (tho on windows not Linux so be
 careful for anything that needs a file path - like appBase 
 in the above
 example).
 
 Server.xml follows
 =
 ===
 
 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --
 
 !-- A Server is a singleton element that represents the 
 entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.
 
  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at 
 this level.
  --
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 
   !-- = ADDITION added for mod_jk support --
 
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/apache_2/Apache2/modules/mod_jk.dll /
 
   !-- = ADDITION ends --
 
 
   !-- Uncomment these entries to enable JMX MBeans support --
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycl
 eListener
 debug=0/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer
 value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
 
   !-- A Service is a collection of one or more Connectors that
 share
a single Container (and therefore the web 
 applications visible
within that Container).  Normally, that Container is 
 an Engine,
but this is not required.
 
Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at 
 this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by which requests are
 received
  and responses are returned.  Each Connector passes 
 requests on
 to the
  associated Container (normally an Engine) for processing.
 
  By default, a non-SSL HTTP/1.1 Connector is 
 established on port
 8080.
  You can also enable an SSL HTTP/1.1 Connector on 
 port 8443 by
  following the instructions below and uncommenting the second
 Connector
  entry.  SSL support requires the following steps 
 (see the SSL
 Config
  HOWTO in the Tomcat 4.0 documentation bundle for 
 more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR
 files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat 
 -keyalg RSA
 (Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
 (Unix)
with a password value of 

Re: DataBase connection pooling.

2002-12-16 Thread Mauro Brändle
I use the connection pool  that comes with Tomcat 4.1.12 to connect my servlets
to an IBM DB2 7.1 database and apart an initial problem in configuring Tomcat all
works fine.
Greetings
Mauro Brändle

Andoni wrote:

 Hello,

 Do you all write your own connection pooling code or is there some open
 source software to do this?

 Also has anybody gotten deployment of .war files to work with
 unpackWARs=false?

 Thanks,

 Andoni.

 --
 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: newbie almost connected...

2002-12-16 Thread Turner, John

What do you mean by cannot browse?  What is the error message?  404?  Is
your Apache DocumentRoot set correctly?

Since you are very new to this, please understand that there is no
requirement that you use Apache + Connector + Tomcat to work with Tomcat.
You can easily work with Tomcat all by itself, and develop JSP and servlets
to your heart's content, all without messing with Apache or anything else
except for Tomcat.

Using Apache and a connector is a scenario that people use for specific
reasons (most of them production-related).  If you are just looking for a
way to start working with JSP and servlets and want to write some apps,
don't worry about Apache, JK, or JK2.  Just use Tomcat all by itself and
have fun.

John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, December 14, 2002 1:21 PM
 To: [EMAIL PROTECTED]
 Subject: RE: newbie almost connected...
 
 
 I'm connectd and http://www.ccc.com:8080 gets me to the 
 tomcat index.jsp page fine
 
 
 ...however I can not browse www.ccc.com ?
 
 What do I need to change if my index.html is located in 
 /opt/mysite/index.html?
 
 
 
 Thanks,
 Peter
 
 
 My bad...I forgot to add the second directive to server.xml...
 
 
 
 
 Tref Gare [EMAIL PROTECTED] wrote:
 
 You're on the right track.
 
 Yes you should add the second listener directive (ie:
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=/usr/local/apache2/modules/mod_jk.so /
 
 to server.xml at that location:
 that location in this instance meaning within the HOST element.
 
 And
 What file would I find the Host directive in?
 
 it's still in server.xml.. same area you've just added the Listener
 directive.  Have a look in there and you should be able to locate a
 name parameter.
 
 Ie: in my case it looks like this (where devbox is the name of my
 server).
 
   !-- Define the default virtual host --
   Host name=devbox debug=0 appBase=C:/WWW
unpackWARs=true autoDeploy=true noRoot=false
 
 
 If that is all still too muddy for you, I'll append my full 
 server.xml
 below as I'm using a similar setup (tho on windows not Linux so be
 careful for anything that needs a file path - like appBase 
 in the above
 example).
 
 Server.xml follows
 
 
 
 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --
 
 !-- A Server is a singleton element that represents the 
 entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.
 
  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at 
 this level.
  --
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 
   !-- = ADDITION added for mod_jk support --
 
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/apache_2/Apache2/modules/mod_jk.dll /
 
   !-- = ADDITION ends --
 
 
   !-- Uncomment these entries to enable JMX MBeans support --
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecyc
 leListener
 debug=0/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer
 value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
 
   !-- A Service is a collection of one or more Connectors that
 share
a single Container (and therefore the web 
 applications visible
within that Container).  Normally, that Container is 
 an Engine,
but this is not required.
 
Note:  A Service is not itself a Container, so 
 you may not
define subcomponents such as Valves or Loggers 
 at this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by which requests are
 received
  and responses are returned.  Each Connector passes 
 requests on
 to the
  associated Container (normally an Engine) for processing.
 
  By default, a non-SSL HTTP/1.1 Connector is 
 established on 

RE: Almost there...Updated Apach-Tomcat with mod_jk

2002-12-16 Thread Turner, John

If you want to post mod_jk.conf, workers.properties, and server.xml, I will
take a look at them.  Assuming, of course, that there are no changes to
httpd.conf except Include /some/path/to/mod_jk.conf.

John


 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 10:37 PM
 To: '[EMAIL PROTECTED]'
 Subject: Almost there...Updated Apach-Tomcat with mod_jk 
 
 
 Here is an update.  I managed to get passed the configure fail I was 
 getting, and got through the build of mod_jk.  I followed 
 everything to 
 the T, and I am back to the almost the same boat that I was in 
 yesterday. 
 
 Before mod_jk setup I could access http://localhost:8080 as well as 
 http://localhost.  Both apache and Tomacat were working fine. 
  Yesterday 
 after mod_jk install Tomcat stopped working.  This time, after second 
 try, I can still access both.  However, even though I 
 installed mod_jk I 
 need to input the :8080.  
 

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




RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John

What are your JkMount statements, and what are the contents of
workers.properties?

John


 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Almost there: Odd error in mod_jk.log
 
 
 Hi,
 
 I'm almost getting Apache and Tomcat to work together.  I had 
 some errors 
 previously that have already been corrected. I'm now able to 
 start both 
 Tomcat and Apache with no errors, but I still can`t get the 
 apache virtual 
 hosts to redirect to Tomcat.
 
 The only error message I get is the following in mod_jk.log
 
 [jk_uri_worker_map.c (335)]: 
 jk_uri_worker_map_t::uri_worker_map_close, NULL 
 parameter
 [jk_uri_worker_map.c (185)]: In 
 jk_uri_worker_map_t::uri_worker_map_free, 
 NULL parameters
 
 any hints??
 thanks.
 gunther.
 
 _
 MSN 8 with e-mail virus protection service: 2 months FREE* 
 http://join.msn.com/?page=features/virus
 
 
 --
 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: Almost there...Updated Apach-Tomcat with mod_jk

2002-12-16 Thread Denise Mangano
Will do when I get back to trying to get this set up, for now need to get
the rest of my pages developed :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 10:03 AM
To: 'Tomcat Users List'
Subject: RE: Almost there...Updated Apach-Tomcat with mod_jk 



If you want to post mod_jk.conf, workers.properties, and server.xml, I will
take a look at them.  Assuming, of course, that there are no changes to
httpd.conf except Include /some/path/to/mod_jk.conf.

John


 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 10:37 PM
 To: '[EMAIL PROTECTED]'
 Subject: Almost there...Updated Apach-Tomcat with mod_jk
 
 
 Here is an update.  I managed to get passed the configure fail I was
 getting, and got through the build of mod_jk.  I followed 
 everything to 
 the T, and I am back to the almost the same boat that I was in 
 yesterday. 
 
 Before mod_jk setup I could access http://localhost:8080 as well as
 http://localhost.  Both apache and Tomacat were working fine. 
  Yesterday 
 after mod_jk install Tomcat stopped working.  This time, after second 
 try, I can still access both.  However, even though I 
 installed mod_jk I 
 need to input the :8080.  
 

--
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: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
Thanks for responding.  I don't think it is an instance variable
problem. Here is the code to reproduce the problem:

public class AServlet extends HttpServlet {
  public void doGet(HttpServletRequest request, HttpServletResponse
reponse)throws ServletException, IOException {

  printWriter pw = reponse.getWriter();
  reponse.setContentType(text/html);
  
  synchronized(System.out)
  {
System.out.println(Query String:  + request.getQueryString());
  System.our.println(Header  : 
+request.getHeader(Test-Header);
  }

  out.println(Done);
}
  
Two different request hit this servlet about 1 sec apart everything is
fine.  It's only when they enter the servlet at the same time.  

I will submit a bug report if know one sees a problem with the above
code.

-cb
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, December 15, 2002 10:22 PM
To: Tomcat Users List
Subject: Re: Simultaneous request from same IP



On Sun, 15 Dec 2002, Chris Bick wrote:

 Date: Sun, 15 Dec 2002 22:05:45 -0500
 From: Chris Bick [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Simultaneous request from same IP

 Hello,
 Has anyone seen two requests from the same IP hitting a
 servlet at approximately the time result in the same query string and
 headers?

 I can reproduce this every time.  Make two requests from one machine
 that hits my servlet at approximately the same time.   Both
 HttpServletRequest objects contain query string and header information
 of the first request in.  If the IPs are different everything works
 properly.


This seems *much* more likely to be a thread-safety problem in your user
code than a bug in Tomcat.  For example, using instance variables in
your
servlet to store per-request state information is pretty much guaranteed
to have difficulties.

The only way to know for sure would be for you to post a bug report
(http://nagoya.apache.org/bugzilla/) with a reproducible test case, so
that Tomcat developers can see what you are seeing.

 Thanks,
 -cb


Craig



--
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: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
Hi John,

Here it goes:

from my httpd.conf:

VirtualHost 141.19.93.41:8080
	ErrorLog logs/virtualhost1.log
	TransferLog logs/VH1access.log

	JkMount /*.* worker_ajp13_1

/VirtualHost

VirtualHost 141.19.93.41:8081
	Errorlog logs/virtualhost2.log
	TransferLog logs/VH2access.log

	JkMount /*.* worker_ajp13_2
/VirtualHost

from my workers.properties:

worker.list=ajp12, worker_ajp13_1, worker_ajp13_2

#ajp12 worker definition
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12

#  First ajp13 port definition ***
worker.worker_ajp13_1.port=11005
worker.worker_ajp13_1.host=localhost
worker.worker_ajp13_1.type=ajp13

#  Second ajp13 port definition ***
worker.worker_ajp13_2.port=11009
worker.worker_ajp13_2.host=localhost
worker.worker_ajp13_2.type=ajp13

when I try to access http://localhost:8080/index.jsp shouldn't it access my 
tomcat directory files?
should I also have virtual hosts defined in Tomcat?

thanks.
gunther


From: Turner, John [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Almost there: Odd error in mod_jk.log
Date: Mon, 16 Dec 2002 10:04:12 -0500


What are your JkMount statements, and what are the contents of
workers.properties?

John


 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Almost there: Odd error in mod_jk.log


 Hi,

 I'm almost getting Apache and Tomcat to work together.  I had
 some errors
 previously that have already been corrected. I'm now able to
 start both
 Tomcat and Apache with no errors, but I still can`t get the
 apache virtual
 hosts to redirect to Tomcat.

 The only error message I get is the following in mod_jk.log

 [jk_uri_worker_map.c (335)]:
 jk_uri_worker_map_t::uri_worker_map_close, NULL
 parameter
 [jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free,
 NULL parameters

 any hints??
 thanks.
 gunther.

 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


 --
 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 your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



accessing servlet 404 error

2002-12-16 Thread Julie Jordan
I'm just starting my first webapp with Tomcat and have placed the files 
classes into
/tomcat_home/simple:

Simple.html, index.class, index.jsp, index.java, Simple.java
classes
WEB-INF

I added the following to Server.xml:

Context path=/simple docBase=simple debug=9 reloadable=true /

When I try to access:
http://servername/simple

I get:

Ctx(/simple) : Status code:404 request:R( /simple + / + nu
ll) msg:null

I'm using:
Apache 1.3.9
JSDK2.0
mod_jk
Tomcat 3.3.1

Any help is greatly appreciated.
Julie


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




RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John

Nope.  As far as I know, mod_jk only supports one *.  *.* is invalid.
If you want to send everything to Tomcat (in which case Apache and mod_jk is
redundant), you would use /*.  

Also, this is just my personal preference, but AFAIK ajp12 serves no
purpose in workers.properties, it just adds clutter.  Also, if you are going
to define two workers for Tomcat, then you need to define a load balancer,
otherwise the first worker will get all of the requests, which makes the
second worker useless.

For info on load-balancing (one Apache, multiple Tomcats), see
http://www.ubeans.com/tomcat

John

 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 10:20 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log
 
 
 Hi John,
 
 Here it goes:
 
 from my httpd.conf:
 
 VirtualHost 141.19.93.41:8080
   ErrorLog logs/virtualhost1.log
   TransferLog logs/VH1access.log
 
   JkMount /*.* worker_ajp13_1
 
 /VirtualHost
 
 VirtualHost 141.19.93.41:8081
   Errorlog logs/virtualhost2.log
   TransferLog logs/VH2access.log
 
   JkMount /*.* worker_ajp13_2
 /VirtualHost
 
 from my workers.properties:
 
 worker.list=ajp12, worker_ajp13_1, worker_ajp13_2
 
 #ajp12 worker definition
 worker.ajp12.port=8007
 worker.ajp12.host=localhost
 worker.ajp12.type=ajp12
 
 #  First ajp13 port definition ***
 worker.worker_ajp13_1.port=11005
 worker.worker_ajp13_1.host=localhost
 worker.worker_ajp13_1.type=ajp13
 
 #  Second ajp13 port definition ***
 worker.worker_ajp13_2.port=11009
 worker.worker_ajp13_2.host=localhost
 worker.worker_ajp13_2.type=ajp13
 
 when I try to access http://localhost:8080/index.jsp 
 shouldn't it access my 
 tomcat directory files?
 should I also have virtual hosts defined in Tomcat?
 
 thanks.
 gunther
 
 
 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log
 Date: Mon, 16 Dec 2002 10:04:12 -0500
 
 
 What are your JkMount statements, and what are the contents of
 workers.properties?
 
 John
 
 
   -Original Message-
   From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
   Sent: Monday, December 16, 2002 9:07 AM
   To: [EMAIL PROTECTED]
   Subject: Almost there: Odd error in mod_jk.log
  
  
   Hi,
  
   I'm almost getting Apache and Tomcat to work together.  I had
   some errors
   previously that have already been corrected. I'm now able to
   start both
   Tomcat and Apache with no errors, but I still can`t get the
   apache virtual
   hosts to redirect to Tomcat.
  
   The only error message I get is the following in mod_jk.log
  
   [jk_uri_worker_map.c (335)]:
   jk_uri_worker_map_t::uri_worker_map_close, NULL
   parameter
   [jk_uri_worker_map.c (185)]: In
   jk_uri_worker_map_t::uri_worker_map_free,
   NULL parameters
  
   any hints??
   thanks.
   gunther.
  
   _
   MSN 8 with e-mail virus protection service: 2 months FREE*
   http://join.msn.com/?page=features/virus
  
  
   --
   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 your PC - get McAfee.com VirusScan Online 
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
 --
 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: Simultaneous request from same IP

2002-12-16 Thread Mike W-M
I might be missing the point!
What exactly is the problem?  I didn't think there was any rule that said
you couldn't have two identical requests running at the same time (as long
as the outputs don't get mixed up).
As I understand it, requests will be differentiated by the fact that they
come from different TCP/IP port-numbers on the client machine.  (Not sure
whether that info is available to your servlet, but I suspect Tomcat will
have to know it.)

Mike.


- Original Message -
From: Chris Bick [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 3:13 PM
Subject: RE: Simultaneous request from same IP


Thanks for responding.  I don't think it is an instance variable
problem. Here is the code to reproduce the problem:

public class AServlet extends HttpServlet {
  public void doGet(HttpServletRequest request, HttpServletResponse
reponse) throws ServletException, IOException {

  printWriter pw = reponse.getWriter();
  reponse.setContentType(text/html);

  synchronized(System.out)
  {
System.out.println(Query String:  + request.getQueryString());
  System.our.println(Header  : 
+request.getHeader(Test-Header);
  }

  out.println(Done);
}

Two different request hit this servlet about 1 sec apart everything is
fine.  It's only when they enter the servlet at the same time.

I will submit a bug report if know one sees a problem with the above
code.

-cb
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 15, 2002 10:22 PM
To: Tomcat Users List
Subject: Re: Simultaneous request from same IP



On Sun, 15 Dec 2002, Chris Bick wrote:

 Date: Sun, 15 Dec 2002 22:05:45 -0500
 From: Chris Bick [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Simultaneous request from same IP

 Hello,
 Has anyone seen two requests from the same IP hitting a
 servlet at approximately the time result in the same query string and
 headers?

 I can reproduce this every time.  Make two requests from one machine
 that hits my servlet at approximately the same time.   Both
 HttpServletRequest objects contain query string and header information
 of the first request in.  If the IPs are different everything works
 properly.


This seems *much* more likely to be a thread-safety problem in your user
code than a bug in Tomcat.  For example, using instance variables in
your
servlet to store per-request state information is pretty much guaranteed
to have difficulties.

The only way to know for sure would be for you to post a bug report
(http://nagoya.apache.org/bugzilla/) with a reproducible test case, so
that Tomcat developers can see what you are seeing.

 Thanks,
 -cb


Craig



--
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: Sharing Session data between two instances?

2002-12-16 Thread Puneet Agarwal
Even I want to do the same and am looking for the answer whether it is possible or not.

I posted same question 2-3 times in last week and have been monitoring this mail list 
but noone has replied.

The much I could  gather is, it is not possible directly, It could be possible if we 
use apache and multiple instances of tomcat. The rest we may have to write our own 
code to achieve this.

Could someone answer this please...!

Regards
Puneet


- Original Message -
From: Prashanth Pushpagiri [EMAIL PROTECTED]
Date: Sun, 15 Dec 2002 10:57:09 -0800 (PST)
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Sharing Session data between two instances?

 Hi
 
 I am trying to setup tomcat 4.1.12 on two servers so
 that an incoming request can be handled by either one
 of the servers. What I would like to do is share
 session details between the two instances. Is this
 possible?
 
 Thanks
 Prashanth
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 

-- 
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife


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




get the real path from one filter.

2002-12-16 Thread Dionisio Ruiz de Zarate
Hello i am using tomcat 4.1.12
i have write one filter and in this filter i want to load the real path from
the application.
i have several virtual domains and each virtual domain has one different
real path (obviously)
i the filter i am using:
String whereIs = this.getServletContext().getRealPath(/);
tha produces this error:
utils/filtroSessiones.java [50:1] cannot resolve symbol
symbol  : method getServletContext  ()
location: class utils.filtroSessiones
String whereIs = this.getServletContext().getRealPath(/);
 ^
1 error

also i am using:
String rutaDisco = ((HttpServletRequest)request).getRealPath(/);
but is deprecated and for this reason i use:
String rutaDisco = ((ServletContext)request).getRealPath(/);
but appears one error (bellow) when i try to load one jsp page
the filter is configured in the web.xml.
in the server.xml this is the configuration, for the virtual host:
Host name=pruebas.domain.com debug=0
appBase=/home/webapps/public/domain unpackWARs=true autoDeploy=true
Loger className=org.apache.catalina.logger.FileLogger directory=logs
prefix=pruebas/
Context path= docBase= reloadable=true/
/Host


Question:
how can i load the realpath in the filter? thanks


ERROR:

HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

java.lang.ClassCastException
at utils.filtroSessiones.doBeforeProcessing(filtroSessiones.java:49)
at utils.filtroSessiones.doFilter(filtroSessiones.java:135)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)





Apache Tomcat/4.1.12



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




RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
:) Thanks for the * hint, just to make sure I'm not getting it all wrong:

What I really wanted to do with this virtual host lines is to have Apache 
forward everything from port 8080 to worker_ajp13_1 and everything from port 
8081 to to worker_ajp13_1.

It seems I'm not getting it done with this configuration.. what am I doing 
wrong? (assuming I corrected the /*.* to /*..)

thanks again.
gunther






From: Turner, John [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Almost there: Odd error in mod_jk.log
Date: Mon, 16 Dec 2002 10:25:45 -0500


Nope.  As far as I know, mod_jk only supports one *.  *.* is invalid.
If you want to send everything to Tomcat (in which case Apache and mod_jk 
is
redundant), you would use /*.

Also, this is just my personal preference, but AFAIK ajp12 serves no
purpose in workers.properties, it just adds clutter.  Also, if you are 
going
to define two workers for Tomcat, then you need to define a load balancer,
otherwise the first worker will get all of the requests, which makes the
second worker useless.

For info on load-balancing (one Apache, multiple Tomcats), see
http://www.ubeans.com/tomcat

John

 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 10:20 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log


 Hi John,

 Here it goes:

 from my httpd.conf:

 VirtualHost 141.19.93.41:8080
 	ErrorLog logs/virtualhost1.log
 	TransferLog logs/VH1access.log

 	JkMount /*.* worker_ajp13_1

 /VirtualHost

 VirtualHost 141.19.93.41:8081
 	Errorlog logs/virtualhost2.log
 	TransferLog logs/VH2access.log

 	JkMount /*.* worker_ajp13_2
 /VirtualHost

 from my workers.properties:

 worker.list=ajp12, worker_ajp13_1, worker_ajp13_2

 #ajp12 worker definition
 worker.ajp12.port=8007
 worker.ajp12.host=localhost
 worker.ajp12.type=ajp12

 #  First ajp13 port definition ***
 worker.worker_ajp13_1.port=11005
 worker.worker_ajp13_1.host=localhost
 worker.worker_ajp13_1.type=ajp13

 #  Second ajp13 port definition ***
 worker.worker_ajp13_2.port=11009
 worker.worker_ajp13_2.host=localhost
 worker.worker_ajp13_2.type=ajp13

 when I try to access http://localhost:8080/index.jsp
 shouldn't it access my
 tomcat directory files?
 should I also have virtual hosts defined in Tomcat?

 thanks.
 gunther


 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log
 Date: Mon, 16 Dec 2002 10:04:12 -0500
 
 
 What are your JkMount statements, and what are the contents of
 workers.properties?
 
 John
 
 
   -Original Message-
   From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
   Sent: Monday, December 16, 2002 9:07 AM
   To: [EMAIL PROTECTED]
   Subject: Almost there: Odd error in mod_jk.log
  
  
   Hi,
  
   I'm almost getting Apache and Tomcat to work together.  I had
   some errors
   previously that have already been corrected. I'm now able to
   start both
   Tomcat and Apache with no errors, but I still can`t get the
   apache virtual
   hosts to redirect to Tomcat.
  
   The only error message I get is the following in mod_jk.log
  
   [jk_uri_worker_map.c (335)]:
   jk_uri_worker_map_t::uri_worker_map_close, NULL
   parameter
   [jk_uri_worker_map.c (185)]: In
   jk_uri_worker_map_t::uri_worker_map_free,
   NULL parameters
  
   any hints??
   thanks.
   gunther.
  
   _
   MSN 8 with e-mail virus protection service: 2 months FREE*
   http://join.msn.com/?page=features/virus
  
  
   --
   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 your PC - get McAfee.com VirusScan Online
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



RE: custom ClassLoader Purgatory in Tomcat 3.3.1

2002-12-16 Thread Kurt Heston
Have a look.  Let me know what you think.
---

import java.io.*;
import java.lang.reflect.Method;
import java.net.*;
import java.util.*;

import javax.servlet.http.*;
import javax.servlet.*;

public class ServletCaller
{
public static void callServlet(
String servletName,
ServletConfig config,
HttpServletRequest req,
HttpServletResponse resp)
throws Exception
{
Class[] doGetArgTypes =
{ HttpServletRequest.class, HttpServletResponse.class };
Class[] initArgType = { ServletConfig.class };
Object[] doGetArgs = { req, resp };
Object[] initArg = { config };

ServletClassLoader ldr = new ServletClassLoader(getParentLoader());
Class clz = ldr.loadClass(servletName, true);
Object servlet = clz.newInstance();  // Blows up here

Method initMethod = clz.getMethod(init,initArgType);
Method doGetMethod = clz.getMethod(doGet,doGetArgTypes);
initMethod.invoke(servlet, initArg);
doGetMethod.invoke(servlet, doGetArgs);
// RequestDispatcher won't work!!!
// Using a custom HttpResponse object to read servlet output
}

public static Class getServletClass(String servletName) throws Exception
{
ServletClassLoader ldr = new ServletClassLoader();
Class clz = ldr.loadClass(servletName);

return clz;
}

private static class ServletClassLoader extends ClassLoader
{

private Hashtable classes = new Hashtable();
private String root;

public ServletClassLoader(ClassLoader parent)
{
super(parent);
String rootDir = System.getProperty(SERVLETDIR);
if (rootDir == null)
throw new IllegalArgumentException(Null root 
directory);
root = rootDir;
}

public ServletClassLoader()
{
super(ClassLoader.getSystemClassLoader());
String rootDir = System.getProperty(SERVLETDIR);
if (rootDir == null)
throw new IllegalArgumentException(Null root 
directory);
root = rootDir;
}

protected Class loadClass(String name, boolean resolve)
throws ClassNotFoundException
{
Class clas = null;
System.out.println(\nAttempting to load class:  + name);

clas = findClass(name);
if (clas != null) {
if (resolve)
resolveClass(clas);
return clas;
}

if (clas == null)
{
try {
byte[] buff = loadClassData(name);
clas = defineClass(name, buff, 0, buff.length);
if (resolve)
resolveClass(clas);

}
catch (IOException e)
{
throw new ClassNotFoundException(
Error reading file:  + name);
}
}
classes.put(name, clas);
return clas;
}

private byte[] loadClassData(String filename) throws IOException
{
File f = new File(root, filename + .class);
int size = (int) f.length();
byte buff[] = new byte[size];
FileInputStream fis = new FileInputStream(f);
DataInputStream dis = new DataInputStream(fis);
dis.readFully(buff);
dis.close();

return buff;
}

protected Class findClass(String name) throws ClassNotFoundException
{
Class clas = (Class) classes.get(name);

System.out.println(\nClass name:  + name);

try
{
if (clas == null)
clas = super.findLoadedClass(name);
if (clas == 

Re: accessing servlet 404 error

2002-12-16 Thread Mehdi . Nejad

just a couple of basics, do the tomcat examples work ?

http://servername

Are you accessing the correct port ? (8080 by default)
http://servername:8080/

Cheers,




   
 
  Julie Jordan   
 
  jjordan@centonliTo:   
[EMAIL PROTECTED]   
  ne.com  cc: 
 
   Subject:  accessing servlet 404 error   
 
  16/12/2002 15:23 
 
  Please respond to
 
  Tomcat Users
 
  List
 
   
 
   
 




I'm just starting my first webapp with Tomcat and have placed the files 
classes into
/tomcat_home/simple:

Simple.html, index.class, index.jsp, index.java, Simple.java
classes
WEB-INF

I added the following to Server.xml:

Context path=/simple docBase=simple debug=9 reloadable=true /

When I try to access:
http://servername/simple

I get:

Ctx(/simple) : Status code:404 request:R( /simple + / + nu
ll) msg:null

I'm using:
Apache 1.3.9
JSDK2.0
mod_jk
Tomcat 3.3.1

Any help is greatly appreciated.
Julie


--
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: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John

I wouldn't even use Apache to do that. 

That said, if you want to use Apache, my guess is you would have to look
into using either something like the Proxy* Apache runtime directives, or
simply put your port numbers into the VirtualHost directives, like this:

VirtualHost www.foo.com:8080
VirtualHost www.bar.com:8081

I'm still not sure I see the benefit of using Apache at all in this
scenario.  If you have requests coming in on ports 8080 and 8081, just setup
Tomcat standalone with 2 HTTP connectors (one on 8080 and one on 8081) and
call it good, especially if you are sending all requests to Tomcat anyway
with /*.  But that's me.  

The HTTP connector on 8080 is already defined in server.xml.

John

 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 10:35 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log
 
 
 :) Thanks for the * hint, just to make sure I'm not getting 
 it all wrong:
 
 What I really wanted to do with this virtual host lines is to 
 have Apache 
 forward everything from port 8080 to worker_ajp13_1 and 
 everything from port 
 8081 to to worker_ajp13_1.
 
 It seems I'm not getting it done with this configuration.. 
 what am I doing 
 wrong? (assuming I corrected the /*.* to /*..)
 
 thanks again.
 gunther
 
 
 
 
 
 
 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log
 Date: Mon, 16 Dec 2002 10:25:45 -0500
 
 
 Nope.  As far as I know, mod_jk only supports one *.  
 *.* is invalid.
 If you want to send everything to Tomcat (in which case 
 Apache and mod_jk 
 is
 redundant), you would use /*.
 
 Also, this is just my personal preference, but AFAIK ajp12 
 serves no
 purpose in workers.properties, it just adds clutter.  Also, 
 if you are 
 going
 to define two workers for Tomcat, then you need to define a 
 load balancer,
 otherwise the first worker will get all of the requests, 
 which makes the
 second worker useless.
 
 For info on load-balancing (one Apache, multiple Tomcats), see
 http://www.ubeans.com/tomcat
 
 John
 
   -Original Message-
   From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
   Sent: Monday, December 16, 2002 10:20 AM
   To: [EMAIL PROTECTED]
   Subject: RE: Almost there: Odd error in mod_jk.log
  
  
   Hi John,
  
   Here it goes:
  
   from my httpd.conf:
  
   VirtualHost 141.19.93.41:8080
 ErrorLog logs/virtualhost1.log
 TransferLog logs/VH1access.log
  
 JkMount /*.* worker_ajp13_1
  
   /VirtualHost
  
   VirtualHost 141.19.93.41:8081
 Errorlog logs/virtualhost2.log
 TransferLog logs/VH2access.log
  
 JkMount /*.* worker_ajp13_2
   /VirtualHost
  
   from my workers.properties:
  
   worker.list=ajp12, worker_ajp13_1, worker_ajp13_2
  
   #ajp12 worker definition
   worker.ajp12.port=8007
   worker.ajp12.host=localhost
   worker.ajp12.type=ajp12
  
   #  First ajp13 port definition ***
   worker.worker_ajp13_1.port=11005
   worker.worker_ajp13_1.host=localhost
   worker.worker_ajp13_1.type=ajp13
  
   #  Second ajp13 port definition ***
   worker.worker_ajp13_2.port=11009
   worker.worker_ajp13_2.host=localhost
   worker.worker_ajp13_2.type=ajp13
  
   when I try to access http://localhost:8080/index.jsp
   shouldn't it access my
   tomcat directory files?
   should I also have virtual hosts defined in Tomcat?
  
   thanks.
   gunther
  
  
   From: Turner, John [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Subject: RE: Almost there: Odd error in mod_jk.log
   Date: Mon, 16 Dec 2002 10:04:12 -0500
   
   
   What are your JkMount statements, and what are the contents of
   workers.properties?
   
   John
   
   
 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Almost there: Odd error in mod_jk.log


 Hi,

 I'm almost getting Apache and Tomcat to work together.  I had
 some errors
 previously that have already been corrected. I'm now able to
 start both
 Tomcat and Apache with no errors, but I still can`t get the
 apache virtual
 hosts to redirect to Tomcat.

 The only error message I get is the following in mod_jk.log

 [jk_uri_worker_map.c (335)]:
 jk_uri_worker_map_t::uri_worker_map_close, NULL
 parameter
 [jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free,
 NULL parameters

 any hints??
 thanks.
 gunther.

 
 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


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

RE: Warp or Coyotte ? I'm so bad in my choice....

2002-12-16 Thread Andrzej Jan Taramina
 In my opinion, JK.  Definitely not WARP.

I would concur with John's recommendation.  JK seems to be more stable, 
more accepted and has more people working on it.  Warp has some fatal bugs 
in it on Windows platforms that make it unuseable, with no intention on the part 
of the developers to fix the bugs.


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




RE: Session timeout

2002-12-16 Thread Michael Echerer
I guess you should have a look into
javax.servlet.http.HttpSessionBindingListener and .HttpSessionEvent to
monitor if a session is created or destroyed.

 -Original Message-
 From: Lindomar [mailto:[EMAIL PROTECTED]] 
 Sent: Montag, 16. Dezember 2002 14:00
 To: Tomcat Users List
 Subject: Session timeout
 
 
 Hi everybody!
 
 How can i create a process exactly after session  timeout or 
 user invalidate the session? Is it possible? I think yes, but 
 i didn't find how do it yet...
 
 Can anybody give me any idea ?
 
 Thanks in advanced.
 
 


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




Re: Sharing Session data between two instances?

2002-12-16 Thread Ben Ricker
Try seaarching the archives. This question has been answered many times
before. You can search them here:

http://mikal.org/interests/java/tomcat/index.jsp

And for an answer to your question, you are looking for in session
replication. See:

http://www2.theserverside.com/resources/article.jsp?l=Tomcat

Ben Ricker

On Mon, 2002-12-16 at 09:32, Puneet Agarwal wrote:
 Even I want to do the same and am looking for the answer whether it is possible or 
not.
 
 I posted same question 2-3 times in last week and have been monitoring this mail 
list but noone has replied.
 
 The much I could  gather is, it is not possible directly, It could be possible if we 
use apache and multiple instances of tomcat. The rest we may have to write our own 
code to achieve this.
 
 Could someone answer this please...!
 
 Regards
 Puneet
 
 
 - Original Message -
 From: Prashanth Pushpagiri [EMAIL PROTECTED]
 Date: Sun, 15 Dec 2002 10:57:09 -0800 (PST)
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Sharing Session data between two instances?
 
  Hi
  
  I am trying to setup tomcat 4.1.12 on two servers so
  that an incoming request can be handled by either one
  of the servers. What I would like to do is share
  session details between the two instances. Is this
  possible?
  
  Thanks
  Prashanth
  
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
  http://mailplus.yahoo.com
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
I have two different requests that hit my servlet from the same IP.
When these two requests hit my servlet a second or more apart the output
reflects the different data in each request(which is correct).  If the
requests hit the servlet at the same time the output for both requests
reflect the data sent in the first request(which is incorrect).

Ex.
Request 1.
Test-Header: Request 1
http://192.168.1.72:8080/myservlet/insert?xxx=

Request 2.
Test-Header: Request 2
http://192.168.1.72:8080/myservlet/insert?xxx=

Hope this helps clear things up.  It is very easy to reproduce.  

Install the servlet in this email on one box(missing some imports)
Write a client that will send different header values each time to the
above servlet.(same header names)
Fire up 2 cmd prompts from another box.
Run the clients one after another.(real fast)

-cb

-Original Message-
From: Mike W-M [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 10:28 AM
To: Tomcat Users List
Subject: Re: Simultaneous request from same IP

I might be missing the point!
What exactly is the problem?  I didn't think there was any rule that
said
you couldn't have two identical requests running at the same time (as
long
as the outputs don't get mixed up).
As I understand it, requests will be differentiated by the fact that
they
come from different TCP/IP port-numbers on the client machine.  (Not
sure
whether that info is available to your servlet, but I suspect Tomcat
will
have to know it.)

Mike.


- Original Message -
From: Chris Bick [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 3:13 PM
Subject: RE: Simultaneous request from same IP


Thanks for responding.  I don't think it is an instance variable
problem. Here is the code to reproduce the problem:

public class AServlet extends HttpServlet {
  public void doGet(HttpServletRequest request, HttpServletResponse
reponse) throws ServletException, IOException {

  printWriter pw = reponse.getWriter();
  reponse.setContentType(text/html);

  synchronized(System.out)
  {
System.out.println(Query String:  + request.getQueryString());
  System.our.println(Header  : 
+request.getHeader(Test-Header);
  }

  out.println(Done);
}

Two different request hit this servlet about 1 sec apart everything is
fine.  It's only when they enter the servlet at the same time.

I will submit a bug report if know one sees a problem with the above
code.

-cb
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 15, 2002 10:22 PM
To: Tomcat Users List
Subject: Re: Simultaneous request from same IP



On Sun, 15 Dec 2002, Chris Bick wrote:

 Date: Sun, 15 Dec 2002 22:05:45 -0500
 From: Chris Bick [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Simultaneous request from same IP

 Hello,
 Has anyone seen two requests from the same IP hitting a
 servlet at approximately the time result in the same query string and
 headers?

 I can reproduce this every time.  Make two requests from one machine
 that hits my servlet at approximately the same time.   Both
 HttpServletRequest objects contain query string and header information
 of the first request in.  If the IPs are different everything works
 properly.


This seems *much* more likely to be a thread-safety problem in your user
code than a bug in Tomcat.  For example, using instance variables in
your
servlet to store per-request state information is pretty much guaranteed
to have difficulties.

The only way to know for sure would be for you to post a bug report
(http://nagoya.apache.org/bugzilla/) with a reproducible test case, so
that Tomcat developers can see what you are seeing.

 Thanks,
 -cb


Craig



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


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




RE: JDBC Datasource problem

2002-12-16 Thread Eddie Liang
Yuva,
   I guess that your database server is Oracle. If that is the case, try to
change  javax.sql.DataSource to 
oracle.jdbc.pool.OracleConnectionCacheImpl in server.xml and web.xml.


Eddie Liang
Database Architect
Phone: 630-810-9669 x253


-Original Message-
From: Chandolu, Yuva [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 14, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: JDBC Datasource problem

Hi,

I am getting org.apache.jasper.JasperException: Cannot create resource
instance when I am trying to get connection from the DBCP pool. the jsp
code I wrote is...

=
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource)envCtx.lookup(jdbc/myoracle);
Connection conn = ds.getConnection();
=

And I have following in my web.xml

=
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  display-nameWelcome to Tomcat/display-name
  description
 Welcome to Tomcat
  /description

resource-ref
descriptionArbinet's Oracle Datasource/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

/web-app
==

And I have following in my server.xml

==
Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource/ 

ResourceParams name=jdbc/myoracle
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@1.1.1.1:1521:testdb/value
  /parameter
  parameter
nameusername/name
valuetest/value
  /parameter
  parameter
namepassword/name
valuetest/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value10/value
  /parameter
  parameter
namemaxWait/name
value-1/value
  /parameter
/ResourceParams
==

I also have downloaded commons DBCP version 1.0 and Pool 1.0 and copied the
zip files to commons/lin folder and renamed to jar files. Tomcat 4.1.12 doc
mentioned that I should also copy commons collection 2.0 jar but when I copy
collections 2.0 jar in commons\lib Tomcat is not starting at all :-(. So I
have kept back the collections.jar in commons\lib that came with
Tomcat.4.1.12.

Please some one help me getting out of the problem. I also tried deleting
javax.sql.* files from classes12.jar (jdbc oracle client stuff, which I have
in commons\lib folder) and no luck.

Thanks in advance.

-Yuva

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




RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
Thanks again John, but the * were there just for testing purposes.  When I 
migrate to production I'll have only the *.jsp directed.

Sorry to insist, but I'm not sure I understood what you meant with the 
virtualhost example... by doing the following, am I not doing the same?

If not, How would apache know,in your example, which connector to look for 
for each port?


VirtualHost 141.19.93.41:8080
	ErrorLog logs/virtualhost1.log
	TransferLog logs/VH1access.log

	JkMount /*.jsp worker_ajp13_1

/VirtualHost

VirtualHost 141.19.93.41:8081
	Errorlog logs/virtualhost2.log
	TransferLog logs/VH2access.log

	JkMount /*.jsp worker_ajp13_2
/VirtualHost


tks,
gunther

From: Turner, John [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Almost there: Odd error in mod_jk.log
Date: Mon, 16 Dec 2002 10:42:38 -0500


I wouldn't even use Apache to do that.

That said, if you want to use Apache, my guess is you would have to look
into using either something like the Proxy* Apache runtime directives, or
simply put your port numbers into the VirtualHost directives, like this:

VirtualHost www.foo.com:8080
VirtualHost www.bar.com:8081

I'm still not sure I see the benefit of using Apache at all in this
scenario.  If you have requests coming in on ports 8080 and 8081, just 
setup
Tomcat standalone with 2 HTTP connectors (one on 8080 and one on 8081) and
call it good, especially if you are sending all requests to Tomcat anyway
with /*.  But that's me.

The HTTP connector on 8080 is already defined in server.xml.

John

 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 10:35 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log


 :) Thanks for the * hint, just to make sure I'm not getting
 it all wrong:

 What I really wanted to do with this virtual host lines is to
 have Apache
 forward everything from port 8080 to worker_ajp13_1 and
 everything from port
 8081 to to worker_ajp13_1.

 It seems I'm not getting it done with this configuration..
 what am I doing
 wrong? (assuming I corrected the /*.* to /*..)

 thanks again.
 gunther






 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log
 Date: Mon, 16 Dec 2002 10:25:45 -0500
 
 
 Nope.  As far as I know, mod_jk only supports one *.
 *.* is invalid.
 If you want to send everything to Tomcat (in which case
 Apache and mod_jk
 is
 redundant), you would use /*.
 
 Also, this is just my personal preference, but AFAIK ajp12
 serves no
 purpose in workers.properties, it just adds clutter.  Also,
 if you are
 going
 to define two workers for Tomcat, then you need to define a
 load balancer,
 otherwise the first worker will get all of the requests,
 which makes the
 second worker useless.
 
 For info on load-balancing (one Apache, multiple Tomcats), see
 http://www.ubeans.com/tomcat
 
 John
 
   -Original Message-
   From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
   Sent: Monday, December 16, 2002 10:20 AM
   To: [EMAIL PROTECTED]
   Subject: RE: Almost there: Odd error in mod_jk.log
  
  
   Hi John,
  
   Here it goes:
  
   from my httpd.conf:
  
   VirtualHost 141.19.93.41:8080
   	ErrorLog logs/virtualhost1.log
   	TransferLog logs/VH1access.log
  
   	JkMount /*.* worker_ajp13_1
  
   /VirtualHost
  
   VirtualHost 141.19.93.41:8081
   	Errorlog logs/virtualhost2.log
   	TransferLog logs/VH2access.log
  
   	JkMount /*.* worker_ajp13_2
   /VirtualHost
  
   from my workers.properties:
  
   worker.list=ajp12, worker_ajp13_1, worker_ajp13_2
  
   #ajp12 worker definition
   worker.ajp12.port=8007
   worker.ajp12.host=localhost
   worker.ajp12.type=ajp12
  
   #  First ajp13 port definition ***
   worker.worker_ajp13_1.port=11005
   worker.worker_ajp13_1.host=localhost
   worker.worker_ajp13_1.type=ajp13
  
   #  Second ajp13 port definition ***
   worker.worker_ajp13_2.port=11009
   worker.worker_ajp13_2.host=localhost
   worker.worker_ajp13_2.type=ajp13
  
   when I try to access http://localhost:8080/index.jsp
   shouldn't it access my
   tomcat directory files?
   should I also have virtual hosts defined in Tomcat?
  
   thanks.
   gunther
  
  
   From: Turner, John [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Subject: RE: Almost there: Odd error in mod_jk.log
   Date: Mon, 16 Dec 2002 10:04:12 -0500
   
   
   What are your JkMount statements, and what are the contents of
   workers.properties?
   
   John
   
   
 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Almost there: Odd error in mod_jk.log


 Hi,

 I'm almost getting Apache and Tomcat to work 

RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John

Sorry, didn't realize you had the config in your earlier messages.  I came
in this morning and there were 300 messages in my tomcat-user box, so I've
been typing furiously trying to catch up. :)

In the config you just posted, everything should work just fine, though I've
never done it that way.  All of my requests come in on port 80.  The trick
isn't the mod_jk config, the trick is getting Apache to separate each
request...after that, the appropriate JkMount should take over.  Putting the
port number on the URL should work.

If it isn't working, I would look at the absence of the ServerName as the
culprit.  Are there Host elements in server.xml that match Apache's virtual
hosts?  If Apache is sending something like 1.2.3.4 to Tomcat, Tomcat
needs to be able to match that up to a Host in server.xml to understand
which Context to serve.

John

 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 11:05 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log
 
 
 Thanks again John, but the * were there just for testing 
 purposes.  When I 
 migrate to production I'll have only the *.jsp directed.
 
 Sorry to insist, but I'm not sure I understood what you meant 
 with the 
 virtualhost example... by doing the following, am I not doing 
 the same?
 
 If not, How would apache know,in your example, which 
 connector to look for 
 for each port?
 
 
 VirtualHost 141.19.93.41:8080
   ErrorLog logs/virtualhost1.log
   TransferLog logs/VH1access.log
 
   JkMount /*.jsp worker_ajp13_1
 
 /VirtualHost
 
 VirtualHost 141.19.93.41:8081
   Errorlog logs/virtualhost2.log
   TransferLog logs/VH2access.log
 
   JkMount /*.jsp worker_ajp13_2
 /VirtualHost
 
 
 tks,
 gunther
 

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




Workaround for login page direct reference

2002-12-16 Thread Ben Jessel
Hi,
I've got a realm set up on Tomcat. It works fine - whenever I go to a
protected page, I am forwarded to the login.jsp page.
However, if I go to the login.jsp page directly and fill in my details I get
Invalid direct reference to form login page. not surprising really as
tomcat would get itself into an endless cycle.

Now what are the strategies for hiding this page, so a hapless user who goes
directly to the login page and enters his details doesn't get this message.
I'd want to forward them onto the index page. Any ideas? Would I explicity
bar the request of the requesting of the login page using my web server?..I
doubt it, as I reckon tht the realm probably uses a sendRedirect(). I guess
that I could check the refering page...hmm dunno...any ideas?

Thanks

-b




Re: Simultaneous request from same IP

2002-12-16 Thread ContestAdmin
It is possible that the two requests are being handled by the same
servlet. The outputs can be confused if the servlet uses any
'global' servlet variables.

Try either synchronizing the methods or have your servlet
implement SingleThreadModel.

-CA

Chris Bick wrote:

 I have two different requests that hit my servlet from the same IP.
 When these two requests hit my servlet a second or more apart the output
 reflects the different data in each request(which is correct).  If the
 requests hit the servlet at the same time the output for both requests
 reflect the data sent in the first request(which is incorrect).

 Ex.
 Request 1.
 Test-Header: Request 1
 http://192.168.1.72:8080/myservlet/insert?xxx=

 Request 2.
 Test-Header: Request 2
 http://192.168.1.72:8080/myservlet/insert?xxx=

 Hope this helps clear things up.  It is very easy to reproduce.

 Install the servlet in this email on one box(missing some imports)
 Write a client that will send different header values each time to the
 above servlet.(same header names)
 Fire up 2 cmd prompts from another box.
 Run the clients one after another.(real fast)

 -cb

 -Original Message-
 From: Mike W-M [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 10:28 AM
 To: Tomcat Users List
 Subject: Re: Simultaneous request from same IP

 I might be missing the point!
 What exactly is the problem?  I didn't think there was any rule that
 said
 you couldn't have two identical requests running at the same time (as
 long
 as the outputs don't get mixed up).
 As I understand it, requests will be differentiated by the fact that
 they
 come from different TCP/IP port-numbers on the client machine.  (Not
 sure
 whether that info is available to your servlet, but I suspect Tomcat
 will
 have to know it.)

 Mike.

 - Original Message -
 From: Chris Bick [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, December 16, 2002 3:13 PM
 Subject: RE: Simultaneous request from same IP

 Thanks for responding.  I don't think it is an instance variable
 problem. Here is the code to reproduce the problem:

 public class AServlet extends HttpServlet {
   public void doGet(HttpServletRequest request, HttpServletResponse
 reponse) throws ServletException, IOException {

   printWriter pw = reponse.getWriter();
   reponse.setContentType(text/html);

   synchronized(System.out)
   {
 System.out.println(Query String:  + request.getQueryString());
   System.our.println(Header  : 
 +request.getHeader(Test-Header);
   }

   out.println(Done);
 }

 Two different request hit this servlet about 1 sec apart everything is
 fine.  It's only when they enter the servlet at the same time.

 I will submit a bug report if know one sees a problem with the above
 code.

 -cb
 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 15, 2002 10:22 PM
 To: Tomcat Users List
 Subject: Re: Simultaneous request from same IP

 On Sun, 15 Dec 2002, Chris Bick wrote:

  Date: Sun, 15 Dec 2002 22:05:45 -0500
  From: Chris Bick [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Simultaneous request from same IP
 
  Hello,
  Has anyone seen two requests from the same IP hitting a
  servlet at approximately the time result in the same query string and
  headers?
 
  I can reproduce this every time.  Make two requests from one machine
  that hits my servlet at approximately the same time.   Both
  HttpServletRequest objects contain query string and header information
  of the first request in.  If the IPs are different everything works
  properly.
 

 This seems *much* more likely to be a thread-safety problem in your user
 code than a bug in Tomcat.  For example, using instance variables in
 your
 servlet to store per-request state information is pretty much guaranteed
 to have difficulties.

 The only way to know for sure would be for you to post a bug report
 (http://nagoya.apache.org/bugzilla/) with a reproducible test case, so
 that Tomcat developers can see what you are seeing.

  Thanks,
  -cb
 

 Craig

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

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




Apache HTTPD 2.0 / Tomcat 4.1 Workflow?

2002-12-16 Thread Johnson, Garrett
I'm curious:

What is the workflow sequence when one has Apache and Tomcat running
together?

Assuming an environment of:
Apache 2.0 (@ port 80)
Tomcat 4.1 (@ port 8080)
mod_jk 1.2 (ajp 1.3)
Win2K Pro

I understand that that Apache is listening at a particular location, (let's
assume for the purposes of this discussion that it's at port 80,) but after
it recieves the HTTP request, where does it send it?  Which lines in the
config of Apache and jk moderate which requests get intercepted and where
they go?

Once it gets sent off, who recieves the request at that point?  Tomcat?  JK?
If it's Tomcat, where does Tomcat recieve it, before or after _IT_ does it's
servlet-mapping directives?  I'm trying to _understand_ the workflow,
since most other cases just involve someone giving just a specific example
that doesn't necessarily cover all arbitrary cases.  What I'd really LOVE to
see is some sort of logical decision diagram, such as:

--  --    
|Apache  |  |JK  |  |Tomcat|  |Apache|
|Decision| --- |Decision| --- |Output| --- |Output|
--  --    

Complete with diamond if-then-else decisions and references to what config
settings moderate each decision.

This is a bit much to ask, but I think if it _could_ be done, it'd be
super-useful, not just to me but to everyone using Apache, Tomcat, and
mod-jk.

Thanks in advance...

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




RE: accessing servlet 404 error

2002-12-16 Thread David Rayroud
Hi,

You must place your files into $TOMCAT_HOME/webapps/simple, and access to
http://servername:8080/simple if your server is configured to work on this
port (see $TOMCAT_HOME/conf/server.xml, section
Service name=Tomcat-Standalone
Connector

className=org.apache.coyote.tomcat4.CoyoteConnector
port=8080
minProcessors=5
maxProcessors=75
enableLookups=true
redirectPort=8443
acceptCount=10
debug=0
connectionTimeout=2
useURIValidationHack=false




-Message d'origine-
De : Julie Jordan [mailto:[EMAIL PROTECTED]]
Envoyé : lundi, 16. décembre 2002 16:23
À : [EMAIL PROTECTED]
Objet : accessing servlet 404 error

I'm just starting my first webapp with Tomcat and have placed the files 
classes into
/tomcat_home/simple:

Simple.html, index.class, index.jsp, index.java, Simple.java
classes
WEB-INF

I added the following to Server.xml:

Context path=/simple docBase=simple debug=9 reloadable=true /

When I try to access:
http://servername/simple

I get:

Ctx(/simple) : Status code:404 request:R( /simple + / + nu
ll) msg:null

I'm using:
Apache 1.3.9
JSDK2.0
mod_jk
Tomcat 3.3.1

Any help is greatly appreciated.
Julie


--
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: accessing servlet 404 error

2002-12-16 Thread Julie Jordan
Tomcat examples aren't executing.  I'll try a reinstall of tomcat.
Thanks!

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 10:38 AM
Subject: Re: accessing servlet 404 error



 just a couple of basics, do the tomcat examples work ?

 http://servername

 Are you accessing the correct port ? (8080 by default)
 http://servername:8080/

 Cheers,





   Julie Jordan
   jjordan@centonliTo:
[EMAIL PROTECTED]
   ne.com  cc:
Subject:  accessing servlet
404 error
   16/12/2002 15:23
   Please respond to
   Tomcat Users
   List






 I'm just starting my first webapp with Tomcat and have placed the files 
 classes into
 /tomcat_home/simple:

 Simple.html, index.class, index.jsp, index.java, Simple.java
 classes
 WEB-INF

 I added the following to Server.xml:

 Context path=/simple docBase=simple debug=9 reloadable=true /

 When I try to access:
 http://servername/simple

 I get:

 Ctx(/simple) : Status code:404 request:R( /simple + / + nu
 ll) msg:null

 I'm using:
 Apache 1.3.9
 JSDK2.0
 mod_jk
 Tomcat 3.3.1

 Any help is greatly appreciated.
 Julie


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




Can't find ${server}/conf/workers2.properties

2002-12-16 Thread Daryl Lee
I had a problem getting mod_jk2 to run that I could only get around by
hardcoding a path in a source file.  I'd like to undo that if I can get
someone to point me the way.

The error was on Tomcat (4.1.12) startup, and it reported that it was
unable to find ${serverRoot}/conf/workers2.properties.  My (rather
distasteful, desperate) solution was to change
jk/native2/common/jk_workerEnv.c where config.file was set and replace the
${serverRoot} portion in with /usr/local/apache2.  I was eventually
able to get the mod_jk2 connector working.

I would clearly love to undo that bit of hardcoding.  Can someone point me
to the error of my ways?
-- 
Daryl Lee
Marietta, GA

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




RE: newbie almost connected...

2002-12-16 Thread Peter
I came across a link on the jakarta website that said Coyote was enabled by default in 
4.1.*, so I undid the changes in your HOWTO and voila, it worked.

Now I can't find the link...if I do I'll post it.

thanks for the response,
Peter
(Red Hat 8.0, Apache 2.0.4, Tomcat 4.1.7)

Turner, John [EMAIL PROTECTED] wrote:


Post error messages, config file snippets, log file snippets, etc.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 13, 2002 2:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: newbie almost connected...
 
 
 almost
 
 10. Verify examples at http://localhost/examples. On success, 
 apache is working correctly, and JSP and servlet requests are 
 being passed to tomcat.
 
 I can't get the step copmpleted...
 
 I tried localhost and the ip address.  What now?
 
 Thanks,
 Peter
 
 
 
 
 Tref Gare [EMAIL PROTECTED] wrote:
 
 You're on the right track.
 
 Yes you should add the second listener directive (ie:
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=/usr/local/apache2/modules/mod_jk.so /
 
 to server.xml at that location:
 that location in this instance meaning within the HOST element.
 
 And
 What file would I find the Host directive in?
 
 it's still in server.xml.. same area you've just added the Listener
 directive.  Have a look in there and you should be able to locate a
 name parameter.
 
 Ie: in my case it looks like this (where devbox is the name of my
 server).
 
   !-- Define the default virtual host --
   Host name=devbox debug=0 appBase=C:/WWW
unpackWARs=true autoDeploy=true noRoot=false
 
 
 If that is all still too muddy for you, I'll append my full 
 server.xml
 below as I'm using a similar setup (tho on windows not Linux so be
 careful for anything that needs a file path - like appBase 
 in the above
 example).
 
 Server.xml follows
 =
 ===
 
 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --
 
 !-- A Server is a singleton element that represents the 
 entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.
 
  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at 
 this level.
  --
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 
   !-- = ADDITION added for mod_jk support --
 
   Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/apache_2/Apache2/modules/mod_jk.dll /
 
   !-- = ADDITION ends --
 
 
   !-- Uncomment these entries to enable JMX MBeans support --
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycl
 eListener
 debug=0/
 
   !-- Global JNDI resources --
   GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer
 value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
 
   !-- A Service is a collection of one or more Connectors that
 share
a single Container (and therefore the web 
 applications visible
within that Container).  Normally, that Container is 
 an Engine,
but this is not required.
 
Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at 
 this level.
--
 
   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone
 
 !-- A Connector represents an endpoint by which requests are
 received
  and responses are returned.  Each Connector passes 
 requests on
 to the
  associated Container (normally an Engine) for processing.
 
  By default, a non-SSL HTTP/1.1 Connector is 
 established on port
 8080.
  You can also enable an SSL HTTP/1.1 Connector on 
 port 8443 by
  following the instructions below and uncommenting the second
 Connector
  entry.  SSL support requires the following steps 
 (see the SSL
 Config
  HOWTO in the Tomcat 4.0 documentation bundle for 
 more detailed
  instructions):
  * Download and 

RE: Can't find ${server}/conf/workers2.properties

2002-12-16 Thread Denise Mangano
Just a thought, but do you think setting an environment variable
serverRoot=/usr/local/apache2 would do the trick?  Or is that something that
is already predefined in Apache...  Just a thought ... Probably a  naïve
one, but a thought just the same :)

Denise


-Original Message-
From: Daryl Lee [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 11:34 AM
To: Tomcat User List
Subject: Can't find ${server}/conf/workers2.properties


I had a problem getting mod_jk2 to run that I could only get around by
hardcoding a path in a source file.  I'd like to undo that if I can get
someone to point me the way.

The error was on Tomcat (4.1.12) startup, and it reported that it was unable
to find ${serverRoot}/conf/workers2.properties.  My (rather distasteful,
desperate) solution was to change jk/native2/common/jk_workerEnv.c where
config.file was set and replace the ${serverRoot} portion in with
/usr/local/apache2.  I was eventually able to get the mod_jk2 connector
working.

I would clearly love to undo that bit of hardcoding.  Can someone point me
to the error of my ways?
-- 
Daryl Lee
Marietta, GA

--
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: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Milt Epstein
On Sun, 15 Dec 2002, Denise Mangano wrote:

 I do have appropriate permissions, as I have been able to stop it before.
 There is no error message being logged when I try to stop it.

 I ran ps -A which listed all processes.  httpd (apache) was not one of them.
 I am assuming PID means Port ID(?), and neither 443 nor 80 was listed...
 This is all very strange and I am starting to sense that I will have to
 reinstall Apache...

PID is Process ID (PPID is Parent Process ID) -- every process has a
unique ID number, that's one way (the main way) to identify them.
FWIW, I use ps -ef myself (the main page says -e is the same as -A,
and -f gives a full listing -- i.e. more info).

And, um, this isn't Windows, if something's not working quite right,
reinstalling it is not the solution :-).  It's a matter of figuring
out the correct configuration and/or the correct way of running
things.

Is Apache running currently?  Does the web server respond?  If so,
there's got to be some apache/httpd process running.  What user is it
running as?  Are you sure you're checking all the processes for all
the users?


 -Original Message-
 From: Milt Epstein
 To: Tomcat Users List
 Sent: 12/15/2002 5:44 PM
 Subject: RE: Almost there...Updated Apach-Tomcat with mod_jk  .. please he
 lp!

 On Sun, 15 Dec 2002, Denise Mangano wrote:

  Sorry, I thought I posted the exact message I was getting. It says
  [Sun Dec 15 00:42:27 2002] [crit] (98)Address already in use:
  make_sock: could not bind to port 443.  I am trying to figure out
  what else is listening to that port but with Tomcat uninstalled
  there shouldn't be any other.  Someone suggested multiple instances
  of Apache running, but I do not know how to check this.  When I try
  to stop the httpd service it fails, and there is no entry in the
  error_log...

 Run ps, from that you'll be able to tell if Apache is already running.
 You might need to check the man page to see what options you need to
 use.  That you can't successfully stop the httpd service (i.e. apache)
 is an indication that that is the problem.  What error message to you
 get when you try to stop it.  Do you have the appropriate permissions
 to do that?


  -Original Message-
  From: micael
  To: Tomcat Users List
  Sent: 12/15/2002 3:59 PM
  Subject: RE: Almost there...Updated Apach-Tomcat with mod_jk  ..
 please he
  lp!
 
 
 
  At 03:38 PM 12/15/2002 -0500, you wrote:
  Jake,
  
  Thanks for supplying me with that info.  I will certainly refer to
 it,
  when
  I set up Tomcat again.  However, first I need to get Apache back up
 and
  running.  I know this is slightly off topic, but can you tell me how
 to
  check what else is trying to access port 443.
 
  Not sure what you meant by trying to access but that would not be
 the
  problem, if you mean that literally.  Rather, the problem is that some
  application is listening at port 443.  You have something that is
  listening
  at port 443 for others to access.  So, you should have a server set to
  listen at 443.
 
 
  Micael
 
  ---
 
  This electronic mail  transmission and any accompanying documents
  contain
  information belonging to the sender which may be confidential and
  legally
  privileged.  This information is intended only for the use of the
  individual or entity to whom this electronic mail transmission was
 sent
  as
  indicated above. If you are not the intended recipient, any
 disclosure,
  copying, distribution, or action taken in reliance on the contents of
  the
  information contained in this transmission is strictly prohibited.  If
  you
  have received this transmission in error, please delete the message.
  Thank
  you
 
 
 
  --
  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]
 

 Milt Epstein
 Research Programmer
 Integration and Software Engineering (ISE)
 Campus Information Technologies and Educational Services (CITES)
 University of Illinois at Urbana-Champaign (UIUC)
 [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]


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: Can't find ${server}/conf/workers2.properties

2002-12-16 Thread Turner, John

If there's no functionality in jk_workerEnv.c to accept a value from a
config file, then you're probably stuck.  There might be a change in the
works to make this configurable, I know that with Ajp13Connector (JK) you
can point to a specific path, but that doesn't look like an option for
CoyoteConnector.

John


 -Original Message-
 From: Daryl Lee [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 11:34 AM
 To: Tomcat User List
 Subject: Can't find ${server}/conf/workers2.properties
 
 
 I had a problem getting mod_jk2 to run that I could only get around by
 hardcoding a path in a source file.  I'd like to undo that if 
 I can get
 someone to point me the way.
 
 The error was on Tomcat (4.1.12) startup, and it reported that it was
 unable to find ${serverRoot}/conf/workers2.properties.  My (rather
 distasteful, desperate) solution was to change
 jk/native2/common/jk_workerEnv.c where config.file was set 
 and replace the
 ${serverRoot} portion in with /usr/local/apache2.  I was 
 eventually
 able to get the mod_jk2 connector working.
 
 I would clearly love to undo that bit of hardcoding.  Can 
 someone point me
 to the error of my ways?
 -- 
 Daryl Lee
 Marietta, GA
 
 --
 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: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Günther Mittermayer
John,

If that's what you mean:

   Host name=141.19.93.41:8080 
  Context path=/
docBase=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat-3.2.1\webapps\ROOT 
/
   /Host

   Host name=141.19.93.41:8081 
  Context path=/
docBase=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat-3.2.1\webapps\ROOT2 
/
   /Host


then yes, I've done it.  I guess I'll have to struggle a little more with 
Apache.

Thanks anyway. :)

gunther




From: Turner, John [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Almost there: Odd error in mod_jk.log
Date: Mon, 16 Dec 2002 11:12:28 -0500


Sorry, didn't realize you had the config in your earlier messages.  I came
in this morning and there were 300 messages in my tomcat-user box, so I've
been typing furiously trying to catch up. :)

In the config you just posted, everything should work just fine, though 
I've
never done it that way.  All of my requests come in on port 80.  The trick
isn't the mod_jk config, the trick is getting Apache to separate each
request...after that, the appropriate JkMount should take over.  Putting 
the
port number on the URL should work.

If it isn't working, I would look at the absence of the ServerName as the
culprit.  Are there Host elements in server.xml that match Apache's virtual
hosts?  If Apache is sending something like 1.2.3.4 to Tomcat, Tomcat
needs to be able to match that up to a Host in server.xml to understand
which Context to serve.

John

 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 11:05 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log


 Thanks again John, but the * were there just for testing
 purposes.  When I
 migrate to production I'll have only the *.jsp directed.

 Sorry to insist, but I'm not sure I understood what you meant
 with the
 virtualhost example... by doing the following, am I not doing
 the same?

 If not, How would apache know,in your example, which
 connector to look for
 for each port?


 VirtualHost 141.19.93.41:8080
 	ErrorLog logs/virtualhost1.log
 	TransferLog logs/VH1access.log

 	JkMount /*.jsp worker_ajp13_1

 /VirtualHost

 VirtualHost 141.19.93.41:8081
 	Errorlog logs/virtualhost2.log
 	TransferLog logs/VH2access.log

 	JkMount /*.jsp worker_ajp13_2
 /VirtualHost


 tks,
 gunther


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


_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



Re: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Milt Epstein
On Sun, 15 Dec 2002, Rafael Angarita wrote:

  I ran ps -A which listed all processes.  httpd (apache) was not one of
 them.
  I am assuming PID means Port ID(?), and neither 443 nor 80 was listed...
  This is all very strange and I am starting to sense that I will have to
  reinstall Apache...

 PID is process id.
 Denise, if you are under Solaris try lsof (I'm not sure if the sources
 are available to compile it under another platform)

Yes, lsof is available for a variety of UNIX platforms.

 Run:
 # lsof -i -n -C | grep 443
 it should returns the process that is using the port 443
 (use -C option if you are under Solaris 5.8)

I can't get this to work for me on my system (AIX).  First of all,
there's no -C option (perhaps because, as you suggest, it's a
Solaris-specific option).  But I think more importantly, it says it's
rejected because of security mode.  apache/httpd is running as
another user, and I'm guessing the sysadmin has things setup so I
can't get that information.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Denise Mangano
Milt,

Thanks for responding.   At first, there was no httpd service listed.  I
honestly haven't a clue exactly what was going on, but I gave up at one
point and shut the server down, let it sit, and booted up when I came in
this morning, and now Apache is fine again.  Very strange...

Denise 


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 16, 2002 11:37 AM
To: Tomcat Users List
Subject: RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he
lp!


On Sun, 15 Dec 2002, Denise Mangano wrote:

 I do have appropriate permissions, as I have been able to stop it 
 before. There is no error message being logged when I try to stop it.

 I ran ps -A which listed all processes.  httpd (apache) was not one of 
 them. I am assuming PID means Port ID(?), and neither 443 nor 80 was 
 listed... This is all very strange and I am starting to sense that I 
 will have to reinstall Apache...

PID is Process ID (PPID is Parent Process ID) -- every process has a unique
ID number, that's one way (the main way) to identify them. FWIW, I use ps
-ef myself (the main page says -e is the same as -A, and -f gives a full
listing -- i.e. more info).

And, um, this isn't Windows, if something's not working quite right,
reinstalling it is not the solution :-).  It's a matter of figuring out the
correct configuration and/or the correct way of running things.

Is Apache running currently?  Does the web server respond?  If so, there's
got to be some apache/httpd process running.  What user is it running as?
Are you sure you're checking all the processes for all the users?


 -Original Message-
 From: Milt Epstein
 To: Tomcat Users List
 Sent: 12/15/2002 5:44 PM
 Subject: RE: Almost there...Updated Apach-Tomcat with mod_jk  .. 
 please he lp!

 On Sun, 15 Dec 2002, Denise Mangano wrote:

  Sorry, I thought I posted the exact message I was getting. It says 
  [Sun Dec 15 00:42:27 2002] [crit] (98)Address already in use:
  make_sock: could not bind to port 443.  I am trying to figure out 
  what else is listening to that port but with Tomcat uninstalled 
  there shouldn't be any other.  Someone suggested multiple instances 
  of Apache running, but I do not know how to check this.  When I try 
  to stop the httpd service it fails, and there is no entry in the 
  error_log...

 Run ps, from that you'll be able to tell if Apache is already running. 
 You might need to check the man page to see what options you need to 
 use.  That you can't successfully stop the httpd service (i.e. apache) 
 is an indication that that is the problem.  What error message to you 
 get when you try to stop it.  Do you have the appropriate permissions 
 to do that?


  -Original Message-
  From: micael
  To: Tomcat Users List
  Sent: 12/15/2002 3:59 PM
  Subject: RE: Almost there...Updated Apach-Tomcat with mod_jk  ..
 please he
  lp!
 
 
 
  At 03:38 PM 12/15/2002 -0500, you wrote:
  Jake,
  
  Thanks for supplying me with that info.  I will certainly refer to
 it,
  when
  I set up Tomcat again.  However, first I need to get Apache back up
 and
  running.  I know this is slightly off topic, but can you tell me 
  how
 to
  check what else is trying to access port 443.
 
  Not sure what you meant by trying to access but that would not be
 the
  problem, if you mean that literally.  Rather, the problem is that 
  some application is listening at port 443.  You have something that 
  is listening at port 443 for others to access.  So, you should have 
  a server set to listen at 443.
 
 
  Micael
 
  ---
 
  This electronic mail  transmission and any accompanying documents 
  contain information belonging to the sender which may be 
  confidential and legally
  privileged.  This information is intended only for the use of the
  individual or entity to whom this electronic mail transmission was
 sent
  as
  indicated above. If you are not the intended recipient, any
 disclosure,
  copying, distribution, or action taken in reliance on the contents 
  of the information contained in this transmission is strictly 
  prohibited.  If you
  have received this transmission in error, please delete the message.
  Thank
  you
 
 
 
  --
  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]
 

 Milt Epstein
 Research Programmer
 Integration and Software Engineering (ISE)
 Campus Information Technologies and Educational Services (CITES) 
 University of Illinois at Urbana-Champaign (UIUC) [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]


Milt Epstein
Research Programmer

RE: Can't find ${server}/conf/workers2.properties

2002-12-16 Thread Ralph Einfeldt
There is a variable ServerRoot in apache. 
I don't know if or how this is exposed to mod_jk.

 -Original Message-
 From: Denise Mangano [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 5:39 PM
 To: 'Tomcat Users List'
 Subject: RE: Can't find ${server}/conf/workers2.properties
 
 
 Just a thought, but do you think setting an environment variable
 serverRoot=/usr/local/apache2 would do the trick?  Or is that 
 something that is already predefined in Apache... 

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




RE: Almost there...Updated Apach-Tomcat with mod_jk .. please he lp!

2002-12-16 Thread Ralph Einfeldt
Typically this information is only available for a 
user with root rights.

 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 5:40 PM
 To: Tomcat Users List
 Subject: Re: Almost there...Updated Apach-Tomcat with mod_jk .. please
 he lp!
 
 But I think more importantly, it says it's rejected because 
 of security mode. apache/httpd is running as another user, 
 and I'm guessing the sysadmin has things setup so I can't get 
 that information.
 

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




RE: Almost there: Odd error in mod_jk.log

2002-12-16 Thread Turner, John

I would take port numbers out of those tags in server.xml, AFAIK Tomcat
doesn't care about them at all.  Tomcat is getting it's requests on the
connector port, it is trying to match name, and my guess is the port number
is not included on the request that it sees.

John


 -Original Message-
 From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 11:39 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log
 
 
 John,
 
 If that's what you mean:
 
 Host name=141.19.93.41:8080 
Context path=/
 docBase=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat
 -3.2.1\webapps\ROOT 
 /
 /Host
 
 Host name=141.19.93.41:8081 
Context path=/
 docBase=C:\Programme\Fogang\Vertmittlungsmodul\jakarta-tomcat
 -3.2.1\webapps\ROOT2 
 /
 /Host
 
 
 then yes, I've done it.  I guess I'll have to struggle a 
 little more with 
 Apache.
 
 Thanks anyway. :)
 
 gunther
 
 
 
 
 From: Turner, John [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Almost there: Odd error in mod_jk.log
 Date: Mon, 16 Dec 2002 11:12:28 -0500
 
 
 Sorry, didn't realize you had the config in your earlier 
 messages.  I came
 in this morning and there were 300 messages in my 
 tomcat-user box, so I've
 been typing furiously trying to catch up. :)
 
 In the config you just posted, everything should work just 
 fine, though 
 I've
 never done it that way.  All of my requests come in on port 
 80.  The trick
 isn't the mod_jk config, the trick is getting Apache to separate each
 request...after that, the appropriate JkMount should take 
 over.  Putting 
 the
 port number on the URL should work.
 
 If it isn't working, I would look at the absence of the 
 ServerName as the
 culprit.  Are there Host elements in server.xml that match 
 Apache's virtual
 hosts?  If Apache is sending something like 1.2.3.4 to 
 Tomcat, Tomcat
 needs to be able to match that up to a Host in server.xml to 
 understand
 which Context to serve.
 
 John
 
   -Original Message-
   From: G|nther Mittermayer [mailto:[EMAIL PROTECTED]]
   Sent: Monday, December 16, 2002 11:05 AM
   To: [EMAIL PROTECTED]
   Subject: RE: Almost there: Odd error in mod_jk.log
  
  
   Thanks again John, but the * were there just for testing
   purposes.  When I
   migrate to production I'll have only the *.jsp directed.
  
   Sorry to insist, but I'm not sure I understood what you meant
   with the
   virtualhost example... by doing the following, am I not doing
   the same?
  
   If not, How would apache know,in your example, which
   connector to look for
   for each port?
  
  
   VirtualHost 141.19.93.41:8080
 ErrorLog logs/virtualhost1.log
 TransferLog logs/VH1access.log
  
 JkMount /*.jsp worker_ajp13_1
  
   /VirtualHost
  
   VirtualHost 141.19.93.41:8081
 Errorlog logs/virtualhost2.log
 TransferLog logs/VH2access.log
  
 JkMount /*.jsp worker_ajp13_2
   /VirtualHost
  
  
   tks,
   gunther
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 _
 Add photos to your messages with MSN 8. Get 2 months FREE*. 
 http://join.msn.com/?page=features/featuredemail
 
 
 --
 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: newbie almost connected...

2002-12-16 Thread Turner, John

Yes, CoyoteConnector is enabled by default for JK/JK2 requests on port 8009
on Tomcat 4.1.12.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 16, 2002 11:33 AM
 To: [EMAIL PROTECTED]
 Subject: RE: newbie almost connected...
 
 
 I came across a link on the jakarta website that said Coyote 
 was enabled by default in 4.1.*, so I undid the changes in 
 your HOWTO and voila, it worked.
 
 Now I can't find the link...if I do I'll post it.
 
 thanks for the response,
 Peter
 (Red Hat 8.0, Apache 2.0.4, Tomcat 4.1.7)
 
 Turner, John [EMAIL PROTECTED] wrote:
 
 
 Post error messages, config file snippets, log file snippets, etc.
 
 John
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Friday, December 13, 2002 2:25 PM
  To: [EMAIL PROTECTED]
  Subject: RE: newbie almost connected...
  
  
  almost
  
  10. Verify examples at http://localhost/examples. On success, 
  apache is working correctly, and JSP and servlet requests are 
  being passed to tomcat.
  
  I can't get the step copmpleted...
  
  I tried localhost and the ip address.  What now?
  
  Thanks,
  Peter
  
  
  
  
  Tref Gare [EMAIL PROTECTED] wrote:
  
  You're on the right track.
  
  Yes you should add the second listener directive (ie:
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true forwardAll=false
  modJk=/usr/local/apache2/modules/mod_jk.so /
  
  to server.xml at that location:
  that location in this instance meaning within the HOST element.
  
  And
  What file would I find the Host directive in?
  
  it's still in server.xml.. same area you've just added 
 the Listener
  directive.  Have a look in there and you should be able 
 to locate a
  name parameter.
  
  Ie: in my case it looks like this (where devbox is the 
 name of my
  server).
  
!-- Define the default virtual host --
Host name=devbox debug=0 appBase=C:/WWW
 unpackWARs=true autoDeploy=true noRoot=false
  
  
  If that is all still too muddy for you, I'll append my full 
  server.xml
  below as I'm using a similar setup (tho on windows not Linux so be
  careful for anything that needs a file path - like appBase 
  in the above
  example).
  
  Server.xml follows
  =
  ===
  
  !-- Example Server Configuration File --
  !-- Note that component elements are nested 
 corresponding to their
   parent-child relationships with each other --
  
  !-- A Server is a singleton element that represents the 
  entire JVM,
   which may contain one or more Service instances.  
 The Server
   listens for a shutdown command on the indicated port.
  
   Note:  A Server is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at 
  this level.
   --
  
  Server port=8005 shutdown=SHUTDOWN debug=0
  
!-- = ADDITION added for mod_jk support --
  
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=c:/apache_2/Apache2/modules/mod_jk.dll /
  
!-- = ADDITION ends --
  
  
!-- Uncomment these entries to enable JMX MBeans support --
Listener
  className=org.apache.catalina.mbeans.ServerLifecycleListener
  debug=0/
Listener
  className=org.apache.catalina.mbeans.GlobalResourcesLifecycl
  eListener
  debug=0/
  
!-- Global JNDI resources --
GlobalNamingResources
  
  !-- Test entry for demonstration purposes --
  Environment name=simpleValue type=java.lang.Integer
  value=30/
  
  !-- Editable user database that can also be used by
   UserDatabaseRealm to authenticate users --
  Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
  /Resource
  ResourceParams name=UserDatabase
parameter
  namefactory/name
  
  valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
  namepathname/name
  valueconf/tomcat-users.xml/value
/parameter
  /ResourceParams
  
/GlobalNamingResources
  
!-- A Service is a collection of one or more 
 Connectors that
  share
 a single Container (and therefore the web 
  applications visible
 within that Container).  Normally, that Container is 
  an Engine,
 but this is not required.
  
 Note:  A Service is not itself a Container, so 
 you may not
 define subcomponents such as Valves or Loggers at 
  this level.
 --
  
!-- Define the Tomcat Stand-Alone Service --
Service name=Tomcat-Standalone
  
  !-- A Connector represents an endpoint by which 
 requests are
  received
   and responses are returned.  Each Connector passes 
  requests on
  to the
   associated Container (normally an 

Linux tomcat startup

2002-12-16 Thread Peter
How can I add tomcat to Services on a Red HAt 8.0 linux system, just like apache?

I know I can add a line to /etc/rc.d/init.d/httpd to start it at bootup, but I'd like 
to have it show up under Services, so I can stop and restart when I need it.

Thanks,
Peter

__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

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




examples/servlet path broken?

2002-12-16 Thread Daryl Lee
I've upgraded to Tomcat 4.1.12, and the servlet examples don't work any
more.  The servlet examples use a path like
.../examples/servlet/HelloWorldExample to access individual servlets.
The only way I could make HelloWorldExample work was to give it the full
monty in examples/WEB-INF/web.xml by defining it as a servlet and 
providing a mapping, a la:

   servlet
servlet-name
HelloWorldExample
/servlet-name
servlet-class
HelloWorldExample
/servlet-class
   /servlet

   servlet-mapping
servlet-name
   HelloWorldExample 
/servlet-name
url-pattern
/HelloWorldExample
/url-pattern
   /servlet-mapping

Is there a more generic solution that would re-enable the usage the
examples expect?
-- 
Daryl Lee
Marietta, GA

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




Startup problems

2002-12-16 Thread Aleksandr Shneyderman

I get the following error on the startup:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.16
Dec 16, 2002 11:52:56 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 5 column 7: White spaces are required
between publicId and systemId.
org.xml.sax.SAXParseException: White spaces are required between publicId
and systemId.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.ja
va:213)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37
5)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:30
5)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1269)
at org.apache.xerces.impl.XMLScanner.scanExternalID(XMLScanner.java:953)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(XMLDocumentSca
nnerImpl.java:486)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLD
ocumentScannerImpl.java:714)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Dec 16, 2002 11:52:57 AM org.apache.coyote.http11.Http11Protocol start

Does anyone have an idea of what is happening?
Thanks,
Alex


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




  1   2   3   >