RE: a sure way to work with tomcat under windows NT/2000/XP

2002-12-23 Thread Kingsley Omon-Edo
Hi Jake,

I have effected the modifications as and everything is perfect.  

I can now see the Apache Tomcat service running.  

Thanks for the help.  

I was wondering though what the JASPER_HOME environment variable is
meant to do, as the only thing Tomcat cares about is the CALINA_HOME
environment variable.

Just being curious...

Kingsley Omon-Edo,
Developer,
MTech Communications Ltd


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 3:17 PM
To: Tomcat Users List
Subject: RE: a sure way to work with tomcat under windows NT/2000/XP


You should set up your variables under System instead of User because if

you run Tomcat as a service, the User variables will not be read.  Also,

Tomcat doesn't care about the system classpath.  J2EE_HOME is fine to
set 
if you need that for something else.  Tomcat doesn't need it.  Also, 
TOMCAT_HOME is for Tomcat-3.x.x and below.  CATALINA_HOME is the only 
variable that Tomcat-4.x.x cares about other than JAVA_HOME.

Jake

At 12:42 PM 12/23/2002 +0100, you wrote:
>Hello Jason,
>
>My name is Kinsley and I am new to Tomcat.  I have successfully
>installed the Jakarta Tomcat on Windows 2000 Advanced Server. It seems
>to be OK for now as I have not done so much with it.
>
>I noticed that there are some differences between your procedures and
>the one I followed.  They are as follows:
>1. I had installed j2sdk1.4.1, and then I also installed the
>j2sdkee1.3.1 setting class path to j2sdkee1.3.1.jar
>2. I installed the Tomcat and set the following variables, JAVA_HOME,
>J2EE_HOME, TOMCAT_HOME, CATALINA_HOME.
>
>But I did all of these in the User Variables for Administrator and not
>in the System Variables section as your suggested below.
>
>I eventually hit the Tomcat home page which makes me think all is well.
>
>I ran some of the examples, and they went well.
>
>I am about to proceed to install the Watchdog.  But I need to know if
>the installation I have done has any fundamental error in it that may
>lead to problems later.
>
>Please revert.
>
>
>Kingsley Omon-Edo,
>Developer,
>MTech Communications Ltd
>
>
>-Original Message-
>From: Jason Pyeron [mailto:[EMAIL PROTECTED]]
>Sent: Monday, December 23, 2002 11:59 AM
>To: Tomcat Users List
>Subject: a sure way to work with tomcat under windows NT/2000/XP
>
>this seems to be a recurring theme here:
>
>these steps I give out to my clients, if they are followed without
>variation then tomcat will run happilly.
>
>Downloads:
>
>1: download jdk 1.4.1_01 from
>http://java.sun.com/webapps/download/Display?BundleId=7150
>2: download tomcat 4.1.12 from
>http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/v4.1.12/bi
n
>/jakarta-tomcat-4.1.12.exe
>3: download ant 1.5.1 from
>http://ftp.epix.net/apache/dist/ant/binaries/jakarta-ant-1.5.1-bin.tar.
g
>z
>
>PreInstall:
>
>4: browse to http://windowsupdate.microsoft.com/
>4a: install all required patches
>4b: Reboot the machine if instructed.
>4c: Repeat step 4 until there are no more reboots required, or software
> installed.
>
>5: open control pannel, open system, choose environment variables.
>5a: find SYSTEM VARIABLES
>5b: set variable JAVA_HOME to value: c:\j2sdk1.4.1_01
>5c: set variable CATALINA_HOME to value: C:\Program Files\Apache
>Group\Tomcat 4.1
>5d: set variable JASPER_HOME to value: C:\Program Files\Apache
>Group\Tomcat 4.1
>5e: set variable tomcat_home to value: C:\Program Files\Apache
>Group\Tomcat 4.1
>5f: edit variable Path and prepend to value:
>C:\j2sdk1.4.1_01\bin;C:\Program Files\jakarta-ant-1.5.1\bin;
>
>
>
>Installs and tests:
>
>5: install JDK
>5a: click [next] button
>5b: aggree to license
>5c: verify: Destination folder should read "C:\j2sdk1.4.1_01"
>5d: click [next] button
>5e: verify: all boxes should be checked
>5f: click [next] button
>5g: verify: Microsoft Internet Explorer box should be checked
>5h: click [next] button
>
>6: Start->Run cmd.exe
>6a: at the shell propmt type and press enter:java -version
>6b: verify java executes and reports:
>
>  java version "1.4.1_01"
>  Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
>  Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
>
>6c: at the shell prompt type and press enter: echo public class
>test{public static void main(String[] args){System.out.println("Hello
>World!");}} > test.java
>6d: at the shell prompt type and press enter: javac test.java
>6e: at the shell prompt type and press enter: java test
>6f: verify java executes and reports:
>
>  Hello World!
>
>7: install tomcat
>7a: verify an alert box pops up stating: Using Java Development Kit
>found in c:\j2sdk1.4.1_01
>7b: click [OK] button
>7c: click [I Agree] button
>7d: select all boxes [Full (w/Source Code)]
>7e: click [Install] button
>7f: choose defaults for port/user/password [8080,Admin,""]
>7g: click [Next] button
>7h: click [close] nutton
>
>8: test tomcat:
>8a: verify Apache Tomcat 4.1 service is started [control panel ->
>Administrative t

SSLPeerUnverifiedException?

2002-12-23 Thread Jason Pyeron


does any one have a clue about this exception I found in the standard out?

i get this exception ever time i fetch a document via ssl.

Dec 24, 2002 1:44:36 AM org.apache.coyote.http11.Http11Processor action
WARNING: Exception getting SSL attributes
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at 
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA6275)
at 
org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.java:118)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543)
at org.apache.coyote.Response.action(Response.java:216)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:314)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)

excerpt from server.xml:






 




some links I found, but have not helped, by googling around:

http://forum.java.sun.com/thread.jsp?thread=159440&forum=2&message=993653
http://www-106.ibm.com/developerworks/java/library/j-customssl/?dwzone=java
http://wp.netscape.com/eng/ssl3/



-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner & Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.






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




Tomcat-User Archives?

2002-12-23 Thread Jason Pyeron

Is there a current archive site?

I have not been able to find it.

Page http://jakarta.apache.org/site/mail2.html has instructed our company 
to take initiative. We will allocate resources on our systems for a public 
archive. Does anyone have experince in setting up these things?


-jason pyeron


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner & Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.





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




Re: ssl redirection? in tomcat

2002-12-23 Thread Jason Pyeron


http -> https solved:


 
  
  /securedir
  /securedir/
  /securedir/*
  /securedir/**
 
 
  CONFIDENTIAL
 



any ideas on https -> http?

-jason pyeron

On Tue, 24 Dec 2002, Jason Pyeron wrote:


given 

http://server/context/securedir/foo.html 

needs to redirect to 

https://server/context/securedir/foo.html


and 

https://server/context/nosslhere/bar.html

to

http://server/context/nosslhere/bar.html


cant seem to find any docs on this subject.



-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner & Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




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




ssl redirection? in tomcat

2002-12-23 Thread Jason Pyeron

given 

http://server/context/securedir/foo.html 

needs to redirect to 

https://server/context/securedir/foo.html


and 

https://server/context/nosslhere/bar.html

to

http://server/context/nosslhere/bar.html


cant seem to find any docs on this subject.

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner & Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




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




context loaded twice

2002-12-23 Thread Mohan Radhakrishnan
Hi,

 

An empty path like the above causes the context to load twice. My
'contextnotifier' is called twice. 

 

  But this loads it only once.


 I am sure I am missing the concept here. Any help ?

Thanks,
Mohan

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




Re: Servlet API: how to obtain the roles list ?

2002-12-23 Thread Craig R. McClanahan


On Tue, 24 Dec 2002, Pierre-Laurent Ribault wrote:

> Date: Tue, 24 Dec 2002 10:48:44 +0900
> From: Pierre-Laurent Ribault <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Servlet API: how to obtain the roles list ?
>
> Hi,
>
> I want to obtain the list of the roles defined in the system from inside
>  my servlet. I know where the roles are defined, and that I can check
> the user name and isUserInRole from the HttpServletRequest class, but I
> could not find out a method to list the existing users or roles. Is
> there such a method in the servlet API ?

At best, you'll be able to identify the security roles that *this* web
application is interested in, by parsing the "/WEB-INF/web.xml" resource
yourself, looking for  elements.

It is perfectly reasonable to utilize authentication and authorization
schemes (in a servlet container) that are not capable of enumerating all
valid users or all valid roles.  Therefore, there is no portable servlet
API to access such information.

>
> Pierre-Laurent Ribault
> [EMAIL PROTECTED]

Craig McClanahan



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




RE: ssl configuration in tomcat please help!!!

2002-12-23 Thread Galbayar Dorjgotov
fill keystore file attribute

-Original Message-
From: Davendra Kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 24, 2002 10:40 AM
To: [EMAIL PROTECTED]
Subject: ssl configuration in tomcat please help!!!


hi everyone... i hope anyone can help me in this problem
i 've installed Apache Tomcat 4.1.12LE
and j2sdk1.4.1 .Yesterday i tried configuring SSL in tomcat for my login
page.
so i followed the steps provided in the documentation. the documentation
said choose JSSE an installed extension by copying all three JAR files
(jcert.jar, jnet.jar, and jsse.jar) into your JAVA_HOME\jre\lib\ext
directory but i could only find the jsse.jar file so i copyied jsse.jar file
to JAVA_HOME\jre\lib\ext after that i did the keytool configuration from
C:\j2sdk1.4.1  during keytool process i created my own password. after that
i removed the comments in the server.xml like shown below,
and added the keystore password with my own..password


  

i restarted tomcat and typed https://localhost:8443/  and it displayed The
page cannot be displayed.. so my question is where did i go wrong and what
should i do next...








_
MSN 8 with e-mail virus protection service: 3 months FREE*.
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&S
U=
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_eliminatevi
ruses_3mf


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: tomcat + ssi for servlets

2002-12-23 Thread Sagara Wijetunga
Hello

>From where did u find  tag?...:) and how do u
know it works on Tomcat/SSI? 

Pls, read the
http://httpd.apache.org/docs/howto/ssi.html#basicssidirectives.

One way is:



Sagara

--- Jubair Hasan <[EMAIL PROTECTED]> wrote:
> Hello
> Im having trouble getting Tomcat to run servlets
> within .shtml files.
> I did as instucted below (shown on
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html)
> 
> Rename
> $CATALINA_BASE/server/lib/servlets-ssi.renametojar
> to $CATALINA_BASE/server/lib/servlets-ssi.jar.
> Remove the XML comments from around the SSI servlet
> and servlet-mapping configuration in
> $CATALINA_BASE/conf/web.xml.
> 
> This does not work.
> 
> in my shtml file I used 
> 
>  CODEBASE=http://localhost:8080/examples/servlet >
> 
> 
> I placed my serlvet class in the same directory as
> the servlet class used as examples by tomcat when
> you install it.
> I tried diffrent variations of the servlet tag. ie:
>  codebase=http://localhost:8080/examples/> 
> 
> can you help??
> 
> Regards and thank in advance
> 
> Jubair 
> 
> 
> 
>
-
> 
> You can find us at www.bacs.co.uk 
> 
>
*
> This communication is confidential and intended for 
> the exclusive use of the addressee only. You should 
> not disclose its contents to any other person.
> If you are not the intended recipient please notify 
> the sender named above immediately.
> 
> BACS Limited, registered in England, No 1023742, 
> 3 De Havilland Road, Edgware, Middlesex, HA8 5QA
>
*
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


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

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




ssl configuration in tomcat please help!!!

2002-12-23 Thread Davendra Kumar
hi everyone... i hope anyone can help me in this problem
i 've installed Apache Tomcat 4.1.12LE
and j2sdk1.4.1 .Yesterday i tried configuring SSL in tomcat for my login 
page.
so i followed the steps provided in the documentation. the documentation 
said choose JSSE an installed extension by copying all three JAR files 
(jcert.jar, jnet.jar, and jsse.jar) into your JAVA_HOME\jre\lib\ext 
directory but i could only find the jsse.jar file so i copyied jsse.jar file 
to JAVA_HOME\jre\lib\ext after that i did the keytool configuration from 
C:\j2sdk1.4.1  during keytool process i created my own password. after that 
i removed the comments in the server.xml like shown below,
and added the keystore password with my own..password


  port="8443" minProcessors="5" maxProcessors="75"
  enableLookups="true"
	   acceptCount="10" debug="0" scheme="https" secure="true"
  useURIValidationHack="false">
 
  clientAuth="false" protocol="TLS" keystorePass="mypassword" 
/>

i restarted tomcat and typed https://localhost:8443/  and it displayed The 
page cannot be displayed.. so my question is where did i go wrong and what 
should i do next...








_
MSN 8 with e-mail virus protection service: 3 months FREE*. 
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_eliminateviruses_3mf


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



ssl configuration in tomcat please help!!!

2002-12-23 Thread Davendra Kumar
hi everyone... i hope anyone can help me in this problem
i 've installed Apache Tomcat 4.1.12LE
and j2sdk1.4.1 .Yesterday i tried configuring SSL in tomcat for my login 
page.
so i followed the steps provided in the documentation. the documentation 
said choose JSSE an installed extension by copying all three JAR files 
(jcert.jar, jnet.jar, and jsse.jar) into your JAVA_HOME\jre\lib\ext 
directory but i could only find the jsse.jar file so i copyied jsse.jar file 
to JAVA_HOME\jre\lib\ext after that i did the keytool configuration from 
C:\j2sdk1.4.1  during keytool process i created my own password. after that 
i removed the comments in the server.xml like shown below,
and added the keystore password with my own..password


  port="8443" minProcessors="5" maxProcessors="75"
  enableLookups="true"
	   acceptCount="10" debug="0" scheme="https" secure="true"
  useURIValidationHack="false">
 
  clientAuth="false" protocol="TLS" keystorePass="mypassword" 
/>

i restarted tomcat and typed https://localhost:8443/  and it displayed The 
page cannot be displayed.. so my question is where did i go wrong and what 
should i do next...








_
The new MSN 8: smart spam protection and 3 months FREE*. 
http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_smartspamprotection_3mf


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



ssl configuration in tomcat please help!!!

2002-12-23 Thread Davendra Kumar
hi everyone... i hope anyone can help me in this problem
i 've installed Apache Tomcat 4.1.12LE
and j2sdk1.4.1 .Yesterday i tried configuring SSL in tomcat for my login 
page.
so i followed the steps provided in the documentation. the documentation 
said choose JSSE an installed extension by copying all three JAR files 
(jcert.jar, jnet.jar, and jsse.jar) into your JAVA_HOME\jre\lib\ext 
directory but i could only find the jsse.jar file so i copyied jsse.jar file 
to JAVA_HOME\jre\lib\ext after that i did the keytool configuration from 
C:\j2sdk1.4.1  during keytool process i created my own password. after that 
i removed the comments in the server.xml like shown below,
and added the keystore password with my own..password


  port="8443" minProcessors="5" maxProcessors="75"
  enableLookups="true"
	   acceptCount="10" debug="0" scheme="https" secure="true"
  useURIValidationHack="false">
 
  clientAuth="false" protocol="TLS" keystorePass="mypassword" 
/>

i restarted tomcat and typed https://localhost:8443/  and it displayed The 
page cannot be displayed.. so my question is where did i go wrong and what 
should i do next...








_
MSN 8: advanced junk mail protection and 3 months FREE*. 
http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_advancedjmf_3mf


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



Servlet API: how to obtain the roles list ?

2002-12-23 Thread Pierre-Laurent Ribault
Hi,

I want to obtain the list of the roles defined in the system from inside
 my servlet. I know where the roles are defined, and that I can check
the user name and isUserInRole from the HttpServletRequest class, but I
could not find out a method to list the existing users or roles. Is
there such a method in the servlet API ?

Pierre-Laurent Ribault
[EMAIL PROTECTED]










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




Re: why can't tomcat 4.1.17 can't find javamail?

2002-12-23 Thread Joseph Shraibman
My bean is in classes.

Cox, Charlie wrote:

is your bean in WEB-INF/classes(or lib) or in the same directory as
mail.jar?

did you review the classloading document to make sure your classses/libs are
in the correct places?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Charlie



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




Re: FW: Incomplete shutdown of the java processes in Linux

2002-12-23 Thread Jeff Tulley
So, I've seen this with some of our(Novell's) web applications.  What
happened with us is that a web application spawned off some sort of
utility thread, or daemon thread, without calling 
(thread).setDaemon(true);

>From the javadoc for java.lang.Thread.setDaemon:
"Marks this thread as either a daemon thread or a user thread. The Java
Virtual Machine exits when the only threads running are all daemon
threads"

With this one line fix everywhere such a thread existed, Tomcat shut
down completely with the stop command.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 12/23/02 3:49:36 PM >>>
On the Linux box we use for testing, we have a Tomcat 4.1.12 instance
that
controls two custom webapps and a manager app.  The Tomcat process
starts up
fine when I use startup.sh, generating some 35 "java ... start"
processes in
my ps list.  However, when I attempt to stop the Tomcat process with
shutdown.sh, about 10 of the java processes do not die, particularly
the
parent process.  I must find the parent process and kill it
specifically to
completely stop the Tomcat.

 

The 10 processes are identified as running when I look for them with ps
-r.
I can run startup.sh again while they remain on the ps list and a new
Tomcat
instance is started.  Unhappily, if I do this too often, I use up all
the
processes on the box.

 

We have a second Tomcat 4.1.12 instance on the same Linux box that
responds
to shutdown.sh perfectly.

 

Has anybody an idea of why this is happening and how I can fix it
before we
move the application into production?

 

Thanks.

Athens Group
Experience. Technology. Results.
---

John McNeill
Athens Group Inc.
5608 Parkcrest Dr., Ste. 200
Austin, TX 78731

Voice: 512.345.0600, ext. 135
Fax: 512.345.4088
Email: [EMAIL PROTECTED]
 
Web:   http://www.athensgroup.com 

 


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




RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Milt Epstein
On Mon, 23 Dec 2002, PELOQUIN,JEFFREY (HP-Boise,ex1) wrote:

> I am guessing you had it working at some point in the past but
> tomcat and apache did not get both get restarted in the right order,
> Tomcat must be fully up before you start apache

I haven't found this to be true -- that is, that Tomcat must be fully
started before Apache is started.  For example, I can restart
(i.e. stop then start) Tomcat, leaving Apache up the whole time, and
things work fine.

> A restart scenario we use since tomcat does not always shutdown nicely on
> HP-UX:
> stop apache
> stop tomcat
>
> execute ps -ef | grep java  to check to make sure Tomcat trully does stop
>
> start tomcat
> wait 30 to 60 sec and/or confirm using your 8080 port that Tomcat is started
> start apache
>
> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 10:42 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_jk - won't execute jsp or servlets
>
>
> Jeff,
>
> Wow, this is very strange.  You got me curious as well, and I did change it
> back to "0" (mind you I was very scared to) .  Oddly enough, everything
> still works.  I even tried executing some of the examples that I hadn't
> accessed yet to make sure it wasn't working from classes that were built
> previously, and it still works like a charm.  If it wasn't the connection
> timeout setting then I haven't a clue what would have made it start
> working
>
> Denise Mangano
> Help Desk Analyst
> Complus Data Innovations, Inc.
>
>
> -Original Message-
> From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 12:24 PM
> To: 'Tomcat Users List'
> Subject: RE: Mod_jk - won't execute jsp or servlets
>
>
> Denise,
>
> Since this week I was scheduled to update our HP-UX apache to latest version
> which does include mod_jk support, I did the install this morning.  My
> installation with tomcat 4.1.18 does work with the default
> connectionTimeout="0".
>
> I would be interested to know if you change it back to 0, if it will still
> works.
>
> Jeff
>
>
>
> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 10:19 AM
> To: 'Tomcat Users List'
> Subject: RES: Mod_jk - won't execute jsp or servlets
>
>
> I don't know what else to say But YAY! :-P
>
> Milt - it looks like the timeout was what was doing it.  Weird thing is - I
> didn't edit that.  Unless I did something by mistake that is the way that it
> was shipped!!  Everything is working great!! I can access all static pages
> as well as execute all servlets and JSP.   I better knock on wood and pray
> nothing goes wrong to make it stop working ;)
>
> Thank you SO MUCH to everyone for all of your help!! I definitely would have
> been pulling my hair out from the roots if it weren't for this list!!
>
> Jerry - where do you stand with your set up?  Since we have the same set up
> would you like me to send you my files now that it is working for me??
>
> Denise Mangano
>
>
> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:55 AM
> To: Tomcat Users List
> Subject: RE: Mod_jk - won't execute jsp or servlets
>
>
> On Mon, 23 Dec 2002, Denise Mangano wrote:
>
> > Tomcat is up and running - I can view and execute examples by using
> > :8080.
>
> OK, that means Tomcat standalone is working (as controlled by the Coyote
> Http Connector onport 8080)
>
> > If the port that Tomcat is listening on is set by
> > workers.properties, then that would be port 8009.  Where Apache is
> > expecting it to listen on I am not sure.
>
> Actually, you've got it backwards.  workers.properties is part of the Apache
> config, and indicates where Apache is expecting to find the (Tomcat side of
> the) Ajp connector.  server.xml is part of the Tomcat config, and tells
> Tomcat where it should listen for Ajp (and other protocols).
>
> >   The email I sent was correct
> > - the uncommented ports are those that were listed.  The only
> > difference between the two is the connection Timeout settings... ( I
> > posted the correct server.xml file - the second email contains the
> > correct one).
>
> I responded to that email -- and in fact the connection timeout was the only
> thing that looked odd to me.  So that might be what's causing the problem.
>
>
> > -Original Message-
> > From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 23, 2002 11:27 AM
> > To: Tomcat Users List
> > Subject: Re: Mod_jk - won't execute jsp or servlets
> >
> >
> > On Mon, 23 Dec 2002, Denise Mangano wrote:
> >
> > > Thanks to all your help, I've gotten over some bumps.  As it stands
> > > I can access any static pages in the Tomcat directory without having
> > > to type port 8080 ( i.e. I can access
> > > http://localhost/examples/servlets/index.html.  However, whenever I
> > > try to execute a servlet o

RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Milt Epstein
On Mon, 23 Dec 2002, Denise Mangano wrote:

> Jeff,
>
> Wow, this is very strange.  You got me curious as well, and I did
> change it back to "0" (mind you I was very scared to) .  Oddly

Did you restart Tomcat after making this change?  Changes in
server.xml won't take effect until Tomcat is restarted.  (Likewise for
changes in httpd.conf and workers.properties, they won't take effect
until Apache is restarted.)

If you did, are you sure you were restarting things after all changes
previously?  Perhaps it was just the act of restarting things that got
things working in the first place.

> enough, everything still works.  I even tried executing some of the
> examples that I hadn't accessed yet to make sure it wasn't working
> from classes that were built previously, and it still works like a
> charm.  If it wasn't the connection timeout setting then I haven't a
> clue what would have made it start working
>
> Denise Mangano
> Help Desk Analyst
> Complus Data Innovations, Inc.
>
>
> -Original Message-
> From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 12:24 PM
> To: 'Tomcat Users List'
> Subject: RE: Mod_jk - won't execute jsp or servlets
>
>
> Denise,
>
> Since this week I was scheduled to update our HP-UX apache to latest version
> which does include mod_jk support, I did the install this morning.  My
> installation with tomcat 4.1.18 does work with the default
> connectionTimeout="0".
>
> I would be interested to know if you change it back to 0, if it will still
> works.
>
> Jeff
>
>
>
> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 10:19 AM
> To: 'Tomcat Users List'
> Subject: RES: Mod_jk - won't execute jsp or servlets
>
>
> I don't know what else to say But YAY! :-P
>
> Milt - it looks like the timeout was what was doing it.  Weird thing is - I
> didn't edit that.  Unless I did something by mistake that is the way that it
> was shipped!!  Everything is working great!! I can access all static pages
> as well as execute all servlets and JSP.   I better knock on wood and pray
> nothing goes wrong to make it stop working ;)
>
> Thank you SO MUCH to everyone for all of your help!! I definitely would have
> been pulling my hair out from the roots if it weren't for this list!!
>
> Jerry - where do you stand with your set up?  Since we have the same set up
> would you like me to send you my files now that it is working for me??
>
> Denise Mangano
>
>
> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:55 AM
> To: Tomcat Users List
> Subject: RE: Mod_jk - won't execute jsp or servlets
>
>
> On Mon, 23 Dec 2002, Denise Mangano wrote:
>
> > Tomcat is up and running - I can view and execute examples by using
> > :8080.
>
> OK, that means Tomcat standalone is working (as controlled by the Coyote
> Http Connector onport 8080)
>
> > If the port that Tomcat is listening on is set by
> > workers.properties, then that would be port 8009.  Where Apache is
> > expecting it to listen on I am not sure.
>
> Actually, you've got it backwards.  workers.properties is part of the Apache
> config, and indicates where Apache is expecting to find the (Tomcat side of
> the) Ajp connector.  server.xml is part of the Tomcat config, and tells
> Tomcat where it should listen for Ajp (and other protocols).
>
> >   The email I sent was correct
> > - the uncommented ports are those that were listed.  The only
> > difference between the two is the connection Timeout settings... ( I
> > posted the correct server.xml file - the second email contains the
> > correct one).
>
> I responded to that email -- and in fact the connection timeout was the only
> thing that looked odd to me.  So that might be what's causing the problem.
>
>
> > -Original Message-
> > From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 23, 2002 11:27 AM
> > To: Tomcat Users List
> > Subject: Re: Mod_jk - won't execute jsp or servlets
> >
> >
> > On Mon, 23 Dec 2002, Denise Mangano wrote:
> >
> > > Thanks to all your help, I've gotten over some bumps.  As it stands
> > > I can access any static pages in the Tomcat directory without having
> > > to type port 8080 ( i.e. I can access
> > > http://localhost/examples/servlets/index.html.  However, whenever I
> > > try to execute a servlet or JSP it hangs indefinitely.  The only
> > > errors appear in my mod_jk.log file:
> > >
> > [ ... ]
> > > [Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket,
> > > connect() failed errno = 110 [Mon Dec 23 09:52:47 2002]
> > > [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is
> > > probably not started or is listenning on the wrong port. Failed
> > > errno = 110
> > [ ... ]
> >
> > This seems to be the telling message.  So is Tomcat started and
> > running? And what port is it listening on?  Mor

FW: Incomplete shutdown of the java processes in Linux

2002-12-23 Thread McNeill, John
On the Linux box we use for testing, we have a Tomcat 4.1.12 instance that
controls two custom webapps and a manager app.  The Tomcat process starts up
fine when I use startup.sh, generating some 35 "java ... start" processes in
my ps list.  However, when I attempt to stop the Tomcat process with
shutdown.sh, about 10 of the java processes do not die, particularly the
parent process.  I must find the parent process and kill it specifically to
completely stop the Tomcat.

 

The 10 processes are identified as running when I look for them with ps -r.
I can run startup.sh again while they remain on the ps list and a new Tomcat
instance is started.  Unhappily, if I do this too often, I use up all the
processes on the box.

 

We have a second Tomcat 4.1.12 instance on the same Linux box that responds
to shutdown.sh perfectly.

 

Has anybody an idea of why this is happening and how I can fix it before we
move the application into production?

 

Thanks.

Athens Group
Experience. Technology. Results.
---

John McNeill
Athens Group Inc.
5608 Parkcrest Dr., Ste. 200
Austin, TX 78731

Voice: 512.345.0600, ext. 135
Fax: 512.345.4088
Email: [EMAIL PROTECTED]  
Web:   http://www.athensgroup.com

 




Re: Urgent - Issue with Tomcat/mod_jk?

2002-12-23 Thread Ben Ricker
I had suspected that in the problem earlier in the day (the part of the
email I posted at the end if the last email you replied to). However,
what did not make sense was the connection pool woth the database also
going up.

If I understand the stuff below, after 85 concurrent connections (max
connections + accept count) I would start getting the "Out of
Processors" error. However, I cannot see how this would cause the
DATABASE connection pool to grow as large as it did (we usually handle
50k connections a business day with 5 pooled connections; during the
earlier problem, the database connections went to *30*, our maximum).

Additionally, why would we contine to get the following error:

2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:479)
 
without seeing the "Out of Processor" msgs? 

I may be looking at two independent problems: one a scalability issue
with the ajp13 processors (which are at the ddefault setting, btw) and
some other issue I am in the dark about.

Anyway, these questions are rhetorical. Thanks for the reply and do not
feel obliged to answer back. I need to start putting pressure on the
developers to help me out here.

Thanks again,

Ben Ricker

On Mon, 2002-12-23 at 16:07, Mark Eggers wrote:
> Ben,
> 
> Disclaimer:
> 
> I'm not a Tomcat developer, but I do use it to develop
> software and integrate applications.
> 
> In $CATALINA_HOME/conf/server.xml you should see an
> entry similar to the following:
> 
> 
>   className="org.apache.ajp.tomcat4.Ajp13Connector"
>  port="8009"
>  minProcessors="5"
>  maxProcessors="75"
>  acceptCount="10" debug="0"/>
> 
> I'm using 4.1.18, so your entry may be a bit
> different.  It looks like from your error messages
> that you may be running out of processors.
> 
> The following information is taken from Tomcat's
> 4.1.18 documentation.  If you have the documentation
> installed somewhere, the URL is:
> 
> http://localhost/tomcat-docs/config/jk.html
> 
> acceptCount:
> 
> The maximum queue length for incoming connection
> requests when all possible request processing threads
> are in use. Any requests received when the queue is
> full will be refused. The default value is 10.
> 
> maxProcessors:
> 
> The maximum number of request processing threads to be
> created by this Connector, which therefore determines
> the maximum number of simultaneous requests that can
> be handled. If not specified, this attribute is set to
> 20.
> 
> NOTE:For Apache 1.3 on Unix there is a 1 to 1 mapping
> between httpd processes and Ajp13Processors. You must
> configure maxProcessors to be greater than or equal to
> the maximum number of httpd processes your Apache web
> server spawns.
> 
> minProcessors:
> 
> The number of request processing threads that will be
> created when this Connector is first started. This
> attribute should be set to a value smaller than that
> set for maxProcessors. The default value is 5.
> 
> I hope this gets you started on a productive path.
> 
> /mde/
> 
> just my two cents . . . .
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: DataSource error (DBCP)

2002-12-23 Thread Nicholas Orr
Did you import javax.sql.*; ?? DataSource is part of the J2EE package.  Just
an extension to the normal java.sql package

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 24 December 2002 2:20 AM
To: Tomcat Users List
Subject: Re: DataSource error (DBCP)



sorry for replicating the same query!!! anyone can help

TIA

bringing attention to my old problem like i'm unable to compile DBTest.java
(i compiled the same in another machine where oracle 9i is running, and
copied to the machine where tomcat is running :))

I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
---


 

sunil.kumar@imasst

elecom.com   To: "Tomcat Users List"
<[EMAIL PROTECTED]>  
 cc:

12/23/2002 02:53 Subject: Re: DataSource
error (DBCP)  
PM

Please respond to

"Tomcat Users

List"

 

 






that's cool!!! worked.

bringing attention to my old problem like i'm unable to compile DBTest.java
(i compiled the same in another machine where oracle 9i is running, and
copied to the machine where tomcat is running :))

I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
---



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






--
To unsubscribe, e-mail:

For additional commands, e-mail:



**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.
For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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




RE: Object Pooling

2002-12-23 Thread Craig R. McClanahan


On Mon, 23 Dec 2002, Tim Moore wrote:

> Date: Mon, 23 Dec 2002 17:07:49 -0500
> From: Tim Moore <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Object Pooling
>
> > -Original Message-
> > From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 23, 2002 4:11 PM
> > To: Tomcat Users List
> > Subject: RE: Object Pooling
> >
> >
> >   Yes... I guess I didn't know the difference between caching
> > and pooling.
> >   Anyway, if now I got the idea, I should use a cache for the
> > second case, ok. There is a good opensource implementation around?
>
> Well, first I'd ask whether the custom implementation you said you already have is 
>up to the task.  If you already have something that works, why replace it?
>
> If you do need to replace it, then the choice of what to replace it with will be 
>largely determined by what you need from it.  You can use EJBs as a database cache, 
>or one of the many object-relational mapping tools like Jakarta OJB.  Really, it's 
>hard to pick one tool that would work for all situations, and this is starting to get 
>a little off-topic for this list.  It's probably worth taking a look at OJB as a 
>starting point (http://jakarta.apache.org/ojb/objectcache.html).
>
> >   And in the first case, as my objects are not "thread safe"
> > maybe I should use a pool, shouldn't I? Or maybe the effort
> > doesn't pay?
>
> It's going to depend greatly on what happens when these objects are
> instantiated.  If they do something very expensive every time (load a
> file, make a DB query, etc) and it would be possible to do that
> initialization just once, rather than once per request, then pooling
> might be helpful.  If you're just creating a new object and not doing
> anything resource-intensive, then pooling probably won't gain you much.
> As with any optimization, it's best to actually measure performance
> before changing anything to make sure there's really a bottleneck, and
> then measure again after changing (if you decide to do so) to make sure
> you're really improving it.
>

More generally, I would first try to determine whether the object creation
/ GC overhead is really significant to your app's overall performance
before investing too much time in worrying how to pool it.  Using a 1.4 or
later JDK, plus turning on incremental garbage collection, seems to make
the overhead of per-request object creations to be pretty much irrelevant
for lots of web apps.

If you determine that you do need pooling, you should consider
commons-pool from Jakarta.  That's what Tomcat already uses inside the
database connection pooling code, and commons-pool.jar is already included
with Tomcat, so you don't even need to go grab it.

Online documentation is available at:

  http://jakarta.apache.org/commons/pool/

Craig McClanahan


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




Re: Object Pooling

2002-12-23 Thread Joe Tomcat
On Mon, 2002-12-23 at 11:52, Felipe Schnack wrote:
>  My application have two types of objects that are constantly created
> and destroyed. I believe that they could be pooled in some way (maybe
> using commons pooling package. These types are:
>  1- Objects that handle user interaction. Basically they are the objects
> that actually implement tasks that would be otherwise done using
> servlets. In pratice, JSPs send data to them (like html form data) and
> they process it and return the results to the browser. These ones i'm
> not sure (yet) if I should pool. I'm not familiar with Struts, I would
> like to know how it does that. Someone can give me some tips?
>  2- These I strongly believe I should cache, and I'm already caching
> them, but with an solution designed by myself. I have some database
> tables that stores user permissions for the application. Basically,
> there are two tables that stores an module ID and who can access it (by
> user id, user profession, etc). I was thinking about loading all of them
> in memory at system startup and update them from time to time (or using
> Observable interfaces)? 

I don't fully understand how your application is structured, but here
are my general thoughts on pooling and caching of objects.

Way back in Java 1.0, creating objects was expensive, so people had the
idea of having pools of pre-created objects ready to go, which could be
reinitialized with new data.  Reinitializing an object was a big
performance win over constructing a new object.  Times have changed
since then.  For ordinary objects, creating new objects from scratch is
very very fast.  I read somewhere that an ordinary PII machine can
create something like a million small ordinary objects per second, and
can GC them at the same rate.  There is absolutely no reason to pool
these types of objects.  There are, however, objects which are still
expensive to create and should be pooled.  The obvious examples are
database connections, threads, and possibly (possibly) direct buffers. 
But outside of those areas, don't pool objects.

One big reason to not pool objects is for correctness and security.  If
you are using pooled objects, you have to do lots of checking at every
step to see if the object is properly initialized, and to make sure it
contains no left-over data.  What if the object represents a user
session, and somehow users were able to get into other users' sessions
because an old object got reused without proper reinitialization?  That
could be a big problem.  We moved from C++ to Java to avoid having to
worry about storage management bugs like that.

It is best to make objects immutable.  This means that after the object
is constructed, no externally visible changes to the object can ever
occur for the lifetime of the object.  Immutable objects are much safer
and more correct.  This may be counter-intuitive, but immutable objects
can also lead to better program performance because their internal data
structure can be shared.  This also helps on debugging.  The object is
in a valid state AT ALL TIMES in its existence.  Making all the instance
members of an object private final really helps catch a lot of bugs at
compile time.

Caching, on the other hand, is a totally different.  Caching objects is
definitely a good way to go, especially in web applications where
objects often have to be used several times in one page output, and they
often come from some kind of "expensive" persistent storage like a db. 
Go ahead and cache.  Put your cache in the servelt context, for
instance.  Again, make the objects in your cache immutable if possible. 
This has many advantages, including correctness, performance and thread
safety.



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




RE: Object Pooling

2002-12-23 Thread Tim Moore
> -Original Message-
> From: Felipe Schnack [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 4:11 PM
> To: Tomcat Users List
> Subject: RE: Object Pooling
> 
> 
>   Yes... I guess I didn't know the difference between caching 
> and pooling.
>   Anyway, if now I got the idea, I should use a cache for the 
> second case, ok. There is a good opensource implementation around?

Well, first I'd ask whether the custom implementation you said you already have is up 
to the task.  If you already have something that works, why replace it?

If you do need to replace it, then the choice of what to replace it with will be 
largely determined by what you need from it.  You can use EJBs as a database cache, or 
one of the many object-relational mapping tools like Jakarta OJB.  Really, it's hard 
to pick one tool that would work for all situations, and this is starting to get a 
little off-topic for this list.  It's probably worth taking a look at OJB as a 
starting point (http://jakarta.apache.org/ojb/objectcache.html).

>   And in the first case, as my objects are not "thread safe" 
> maybe I should use a pool, shouldn't I? Or maybe the effort 
> doesn't pay?

It's going to depend greatly on what happens when these objects are instantiated.  If 
they do something very expensive every time (load a file, make a DB query, etc) and it 
would be possible to do that initialization just once, rather than once per request, 
then pooling might be helpful.  If you're just creating a new object and not doing 
anything resource-intensive, then pooling probably won't gain you much.  As with any 
optimization, it's best to actually measure performance before changing anything to 
make sure there's really a bottleneck, and then measure again after changing (if you 
decide to do so) to make sure you're really improving it.

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


> 
> On Mon, 2002-12-23 at 18:52, Tim Moore wrote:
> > 
> > > -Original Message-
> > > From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, December 23, 2002 2:52 PM
> > > To: Tomcat Users List
> > > Subject: Re: Object Pooling
> > > 
> > > 
> > >   I'm rewriting this reply, maybe I wasn't clear enough :-)
> > > 
> > >  My application have two types of objects that are constantly
> > > created and destroyed. I believe that they could be pooled in 
> > > some way (maybe using commons pooling package. These types are:
> > >  1- Objects that handle user interaction. Basically they are 
> > > the objects that actually implement tasks that would be 
> > > otherwise done using servlets. In pratice, JSPs send data to 
> > > them (like html form data) and they process it and return the 
> > > results to the browser. These ones i'm not sure (yet) if I 
> > > should pool. I'm not familiar with Struts, I would like to 
> > > know how it does that. Someone can give me some tips?
> > 
> > If you're talking about Struts actions, they're not pooled, 
> exactly.  
> > One instance of each action is created on demand and cached 
> > indefinitely.  Actions need to be written so that a single instance 
> > can be used by multiple threads simultaneously.  That way, you can 
> > just instantiate it once and no pooling is necessary.
> > 
> > >  2- These I strongly believe I should cache, and I'm already
> > > caching them, but with an solution designed by myself. I have 
> > > some database tables that stores user permissions for the 
> > > application. Basically, there are two tables that stores an 
> > > module ID and who can access it (by user id, user profession, 
> > > etc). I was thinking about loading all of them in memory at 
> > > system startup and update them from time to time (or using 
> > > Observable interfaces)? 
> > 
> > There's a difference between caching and pooling.  It 
> sounds more like 
> > you're talking about using caches (e.g., storing instances 
> that hold 
> > copies of external data) which is often a good idea.  Pools 
> are stores 
> > of unused instances that client code can "borrow" an 
> instance from for 
> > some period of time, and then return the instance when it's done.
> > 
> > It sounds like caching may be a good idea in this case, 
> especially if 
> > you don't expect the data to change much and all changes 
> will be going 
> > through the cached objects.  If some other program may be writing 
> > updates directly to the database, however, you'll need to 
> worry about 
> > your cached data going out of date.
> > 
> > --
> > Tim Moore / Blackboard Inc. / Software Engineer
> > 1899 L Street, NW / 5th Floor / Washington, DC 20036
> > Phone 202-463-4860 ext. 258 / Fax 202-463-4863
> > 
> > 
> > >  What do you think about it?
> > > 
> > > >You may want to pursue object pooling, but the prevailing
> > > conventional
> > > >wisdom is that it's not really necessary. Object Pooling is 
> > > >impor

Re: Urgent - Issue with Tomcat/mod_jk?

2002-12-23 Thread Mark Eggers
Ben,

Disclaimer:

I'm not a Tomcat developer, but I do use it to develop
software and integrate applications.

In $CATALINA_HOME/conf/server.xml you should see an
entry similar to the following:




I'm using 4.1.18, so your entry may be a bit
different.  It looks like from your error messages
that you may be running out of processors.

The following information is taken from Tomcat's
4.1.18 documentation.  If you have the documentation
installed somewhere, the URL is:

http://localhost/tomcat-docs/config/jk.html

acceptCount:

The maximum queue length for incoming connection
requests when all possible request processing threads
are in use. Any requests received when the queue is
full will be refused. The default value is 10.

maxProcessors:

The maximum number of request processing threads to be
created by this Connector, which therefore determines
the maximum number of simultaneous requests that can
be handled. If not specified, this attribute is set to
20.

NOTE:For Apache 1.3 on Unix there is a 1 to 1 mapping
between httpd processes and Ajp13Processors. You must
configure maxProcessors to be greater than or equal to
the maximum number of httpd processes your Apache web
server spawns.

minProcessors:

The number of request processing threads that will be
created when this Connector is first started. This
attribute should be set to a value smaller than that
set for maxProcessors. The default value is 5.

I hope this gets you started on a productive path.

/mde/

just my two cents . . . .

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

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




access denied

2002-12-23 Thread sunil . kumar
hi all,

i tried this code.. the below mentioned error is coming  pl help

javax.naming.Context ctx = new javax.naming.InitialContext();
if(ctx == null )
System.out.println("Context is null");
else {
javax.sql.DataSource ds1 = (javax.sql.DataSource)ctx.lookup
("java:comp/env/TestDB");

if (ds1 != null) {
java.sql.Connection conn = ds1.getConnection();
-

org.apache.jasper.JasperException: java.sql.SQLException: Invalid
authorization specification: Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES)
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)

   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)


T I A

best regards
sunil


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




Urgent - Issue with Tomcat/mod_jk?

2002-12-23 Thread Ben Ricker
I posted a message earlier which has not received any replies so I will
try another tact. The earlier mail is posted below this one.

I have a production issue that has arisen in a setup of two Apache
1.3.27/Redhat 7.3 servers load-balanced across 4 Tomcat 4.0.6/Sun
Solaris servers. Tomcat is running with Sun's 1.3 JVM.

We have gotten a lot of the following errors in the "engine" log for
Tomcat:

2002-12-23 15:21:56 Ajp13Processor[12009][16] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:479)

We have also gotten calls from customers saying they are getting hanging
screens in our application. We see no anomolies on out database,
although earlier we did.

Can anyone tell me what the error above is saying? Is it not able to
write to the mod_jk? It looks like it is failing in some sort of closing
routine (org.apache.ajp.tomcat4.Ajp13Response.finishResponse). Could
this be a protocol issue?

I am getting heat from my bosses on this one and I need to say
SOMETHING! Please help if you can give me any clues or suggest
possibilities.

Thanks,

Ben Ricker


-Earlier Post-
We saw a strange production issue this morning that seems to be related
to Apache/mod_jk but I wanted to see if anyone can shed some lght on it.

First, the environment:

2 Redhat 7.3 Linux server talking to 2 Sun Solaris 8 Tomcat 4.0.6
servers. Each server has 2 separate Tomcat instances for a total of 4.
The Java uses Oracles JDBC drivers (not through Tomcat, but through a
custom connection pool) to talk to an Oracle DB runnin on AIX 4.x.

The first symptom was a huge spike in DB usage due to the creation of
around 35 pooled connections to the database, This led us to think
something happened on the database side, but it seems that the pool only
grew on one of the Tomcat instances; the other instances showed the
default pool size. The Oracle database did not show any locked tables or
huge, hanging queries. 

The only problems I see in logs are related to mod_jk and Tomcat.

First in the Tomcat engine log,I see:

2002-12-23 09:07:14 Ajp13Connector[12009] No processor available, rejecting this 
connection

There are hundreds of these messages. Then I start seeing this message
in the engine log:

2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:479)

About a minute after, in the mod_jk logs, I see:

[Mon Dec 23 09:08:29 2002]  [jk_ajp_common.c (679)]: ajp_connection_tcp_get_message: 
Error - jk_tcp_socket_recvfull failed
[Mon Dec 23 09:08:29 2002]  [jk_ajp_common.c (1041)]: Error reading reply
[Mon Dec 23 09:08:29 2002]  [jk_ajp_common.c (1178)]: In jk_endpoint_t::service, 
ajp_get_reply failed in send loop 0

This goes on for about 20 seconds before I see a huge number of the
following:

[Mon Dec 23 09:08:49 2002]  [jk_ajp_common.c (961)]: Error ajp_process_callback - 
write failed

I am at a loss at what might cause this. Could it be related to
soemthing in Tomcat? What exactly does this sequence of events tell me?

Any light one can shed would be greatly appreciated.

Ben Ricker

-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: Object Pooling

2002-12-23 Thread Felipe Schnack
  Yes... I guess I didn't know the difference between caching and
pooling.
  Anyway, if now I got the idea, I should use a cache for the second
case, ok. There is a good opensource implementation around?
  And in the first case, as my objects are not "thread safe" maybe I
should use a pool, shouldn't I? Or maybe the effort doesn't pay?

On Mon, 2002-12-23 at 18:52, Tim Moore wrote:
> 
> > -Original Message-
> > From: Felipe Schnack [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, December 23, 2002 2:52 PM
> > To: Tomcat Users List
> > Subject: Re: Object Pooling
> > 
> > 
> >   I'm rewriting this reply, maybe I wasn't clear enough :-)
> > 
> >  My application have two types of objects that are constantly 
> > created and destroyed. I believe that they could be pooled in 
> > some way (maybe using commons pooling package. These types are:
> >  1- Objects that handle user interaction. Basically they are 
> > the objects that actually implement tasks that would be 
> > otherwise done using servlets. In pratice, JSPs send data to 
> > them (like html form data) and they process it and return the 
> > results to the browser. These ones i'm not sure (yet) if I 
> > should pool. I'm not familiar with Struts, I would like to 
> > know how it does that. Someone can give me some tips?
> 
> If you're talking about Struts actions, they're not pooled, exactly.  One instance 
>of each action is created on demand and cached indefinitely.  Actions need to be 
>written so that a single instance can be used by multiple threads simultaneously.  
>That way, you can just instantiate it once and no pooling is necessary.
> 
> >  2- These I strongly believe I should cache, and I'm already 
> > caching them, but with an solution designed by myself. I have 
> > some database tables that stores user permissions for the 
> > application. Basically, there are two tables that stores an 
> > module ID and who can access it (by user id, user profession, 
> > etc). I was thinking about loading all of them in memory at 
> > system startup and update them from time to time (or using 
> > Observable interfaces)? 
> 
> There's a difference between caching and pooling.  It sounds more like you're 
>talking about using caches (e.g., storing instances that hold copies of external 
>data) which is often a good idea.  Pools are stores of unused instances that client 
>code can "borrow" an instance from for some period of time, and then return the 
>instance when it's done.
> 
> It sounds like caching may be a good idea in this case, especially if you don't 
>expect the data to change much and all changes will be going through the cached 
>objects.  If some other program may be writing updates directly to the database, 
>however, you'll need to worry about your cached data going out of date.
> 
> -- 
> Tim Moore / Blackboard Inc. / Software Engineer
> 1899 L Street, NW / 5th Floor / Washington, DC 20036
> Phone 202-463-4860 ext. 258 / Fax 202-463-4863
> 
> 
> >  What do you think about it?
> > 
> > >You may want to pursue object pooling, but the prevailing 
> > conventional 
> > >wisdom is that it's not really necessary. Object Pooling is important
> > for
> > >objects that are particularly expensive to create (due to internal
> > object
> > >requirements, like connecting to external resources) and is 
> > not really 
> > >appropriate simply for  "lots" of standard generic Java objects.
> > >
> > >While instantiating an object certainly has some cost, creating and
> > tossing
> > >them away is not overly expensive.
> > >
> > >Now, perhaps you've done some testing and found these particular
> > objects to
> > >be problematic, but it seems to me to be a toss up between simply
> > creating
> > >new objects versus using an object pool. Any object pool is 
> > necessarily 
> > >going to at least have synchronization issues tied to it which may in
> > the
> > >end cost more overall than creating and disposing of the objects.
> > >
> > >Modern GCs are pretty good about tossing away temporary objects.
> > >
> > >Now, if you're perhaps doing some things in a tight loop, then maybe
> > simply
> > >a judicious use of the objects would be better. Say, rather 
> > than using
> > a
> > >generic object pool, simply creating the few necessary instances for
> > your
> > >loop before hand and reusing them explicity within the loop 
> > rather than 
> > >constantly creating new ones.
> > 
> > -- 
> > 
> > Felipe Schnack
> > Analista de Sistemas
> > [EMAIL PROTECTED]
> > Cel.: (51)91287530
> > Linux Counter #281893
> > 
> > Centro Universitário Ritter dos Reis 
> > http://www.ritterdosreis.br > [EMAIL PROTECTED]
> > 
> > Fone/Fax.: (51)32303341
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
-- 

Felipe Schnack

RE: virtual host problems...

2002-12-23 Thread Nick Stuart
Thanks for the info, I had checked on this earlier as I came across this
post in the archives, but all the directories were already set up with
the correct permissions. What I needed was the info supplied in the
other response to my question.
Thanks for your time though, its greatly appreciated.

-Nick

On Mon, 2002-12-23 at 13:41, Denise Mangano wrote:
> Are you getting a Forbidden message from Apache server?  I ran into that
> problem as well, and Bill Barker was kind enough to respond.  This was his
> post:
> 
> "You need 775 (or at least 5 on the last digit).  Apache requires "x"
> permissions (which, for a directory means "list" rather than "execute" on
> *nix systems) on the directories.  Apache will do a tree-walk from '/' to
> your directory incase you have any '.htaccess' files installed".
> 
> What I did to correct the problem was change the tomcat directory to owner
> and group rwx and other to rx.  I recursively changed permissions so that
> all subdirectories and files would have 775 permissions and that removed the
> access denied problem. 
> 
> On a side note, I wonder if you can get away with just the tomcat directory
> itself, and then recursively change the webapps directory to have those
> permissions but I am thinking if the work directory doesn't have the
> same permissions you may have trouble accessing the compiled servlets and
> jsp's? (someone else would be able to answer that guess better than I)
> 
> HTH
> 
> Denise Mangano
> Help Desk Analyst
> Complus Data Innovations, Inc.
> 
> 
> -Original Message-
> From: Nick Stuart [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 1:27 PM
> To: Tomcat Users List
> Subject: virtual host problems...
> 
> 
> Ok, I have tomcat and apache running together nicely but am having a problem
> getting the virtual hosting for it to work. Right now when I go to:
> 
> ServerName vort112
> Alias /examples "/usr/local/tomcat/webapps/examples"
>
> 
>Options Indexes FollowSymLinks
>DirectoryIndex index.html index.htm index.jsp 
> 
> 
> # Deny direct access to WEB-INF and META-INF
> #
> 
>AllowOverride None
>deny from all
> 
> 
> 
>   AllowOverride None
> deny from all
> 
> 
> JkMount /examples/jsp/security/protected/j_security_check  worker1
> JkMount /examples/snoop  worker1
> JkMount /examples/servlet/*  worker1
> JkMount /examples/CompressionTest  worker1
> JkMount /examples/*.jsp  worker1
> JkMount /examples/servletToJsp  worker1
> JkMount /examples/SendMailServlet  worker1
> 
> /jsp/
> it re-directs me to
> http:///examples/jsp/
> which I dont really want.
> Now when I had the following for virtual hosting..
> 
> ServerName vort112
> Alias /examples "/usr/local/tomcat/webapps/examples"
>
> 
>Options Indexes FollowSymLinks
>DirectoryIndex index.html index.htm index.jsp 
> 
> 
> # Deny direct access to WEB-INF and META-INF
> #
> 
>AllowOverride None
>deny from all
> 
> 
> 
>   AllowOverride None
> deny from all
> 
> 
> JkMount /examples/jsp/security/protected/j_security_check  worker1
> JkMount /examples/snoop  worker1
> JkMount /examples/servlet/*  worker1
> JkMount /examples/CompressionTest  worker1
> JkMount /examples/*.jsp  worker1
> JkMount /examples/servletToJsp  worker1
> JkMount /examples/SendMailServlet  worker1
> 
> I have some odd behavior. What happens is that i can still go to:
> http:///examples and it will display the contents of it in the
> tomcat format, but when I got to: http:///examples/jsp/ it gives an
> access denied error, even if I just try to go to a normal html page inside
> that directory. Not sure what to change, I basically copied what was
> generated in the mod_jk.conf-auto file by tomcat, but didn't want to use it
> because I don't need/want all the other directories in there. I've look
> through the archives and couldn't find any thing that resembled this
> problem, so any advice would be greatly appreciated.
> 
> Thanks for your time!
-- 

-Nick Stuart

USM Computer Science Major
Visit us at http://csforum.newtsplace.com
(run with LAMP)

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




RE: Object Pooling

2002-12-23 Thread Tim Moore

> -Original Message-
> From: Felipe Schnack [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 2:52 PM
> To: Tomcat Users List
> Subject: Re: Object Pooling
> 
> 
>   I'm rewriting this reply, maybe I wasn't clear enough :-)
> 
>  My application have two types of objects that are constantly 
> created and destroyed. I believe that they could be pooled in 
> some way (maybe using commons pooling package. These types are:
>  1- Objects that handle user interaction. Basically they are 
> the objects that actually implement tasks that would be 
> otherwise done using servlets. In pratice, JSPs send data to 
> them (like html form data) and they process it and return the 
> results to the browser. These ones i'm not sure (yet) if I 
> should pool. I'm not familiar with Struts, I would like to 
> know how it does that. Someone can give me some tips?

If you're talking about Struts actions, they're not pooled, exactly.  One instance of 
each action is created on demand and cached indefinitely.  Actions need to be written 
so that a single instance can be used by multiple threads simultaneously.  That way, 
you can just instantiate it once and no pooling is necessary.

>  2- These I strongly believe I should cache, and I'm already 
> caching them, but with an solution designed by myself. I have 
> some database tables that stores user permissions for the 
> application. Basically, there are two tables that stores an 
> module ID and who can access it (by user id, user profession, 
> etc). I was thinking about loading all of them in memory at 
> system startup and update them from time to time (or using 
> Observable interfaces)? 

There's a difference between caching and pooling.  It sounds more like you're talking 
about using caches (e.g., storing instances that hold copies of external data) which 
is often a good idea.  Pools are stores of unused instances that client code can 
"borrow" an instance from for some period of time, and then return the instance when 
it's done.

It sounds like caching may be a good idea in this case, especially if you don't expect 
the data to change much and all changes will be going through the cached objects.  If 
some other program may be writing updates directly to the database, however, you'll 
need to worry about your cached data going out of date.

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


>  What do you think about it?
> 
> >You may want to pursue object pooling, but the prevailing 
> conventional 
> >wisdom is that it's not really necessary. Object Pooling is important
> for
> >objects that are particularly expensive to create (due to internal
> object
> >requirements, like connecting to external resources) and is 
> not really 
> >appropriate simply for  "lots" of standard generic Java objects.
> >
> >While instantiating an object certainly has some cost, creating and
> tossing
> >them away is not overly expensive.
> >
> >Now, perhaps you've done some testing and found these particular
> objects to
> >be problematic, but it seems to me to be a toss up between simply
> creating
> >new objects versus using an object pool. Any object pool is 
> necessarily 
> >going to at least have synchronization issues tied to it which may in
> the
> >end cost more overall than creating and disposing of the objects.
> >
> >Modern GCs are pretty good about tossing away temporary objects.
> >
> >Now, if you're perhaps doing some things in a tight loop, then maybe
> simply
> >a judicious use of the objects would be better. Say, rather 
> than using
> a
> >generic object pool, simply creating the few necessary instances for
> your
> >loop before hand and reusing them explicity within the loop 
> rather than 
> >constantly creating new ones.
> 
> -- 
> 
> Felipe Schnack
> Analista de Sistemas
> [EMAIL PROTECTED]
> Cel.: (51)91287530
> Linux Counter #281893
> 
> Centro Universitário Ritter dos Reis 
> http://www.ritterdosreis.br > [EMAIL PROTECTED]
> 
> Fone/Fax.: (51)32303341
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




Re: request / suggestion

2002-12-23 Thread Craig R. McClanahan


On Mon, 23 Dec 2002, Jason Pyeron wrote:

> Date: Mon, 23 Dec 2002 15:35:03 -0500 (EST)
> From: Jason Pyeron <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: request / suggestion
>
> As I have a big screen...
> And I dont like to filter my messages...
>
> I guess it could be done in procmail. I will work on it and post my
> solution for those who would like it.

Procmail would work.  So do the filters in any reasonable email reader.
My default practice is to filter each mailling list into a separate folder
that I can then peruse when I'm interested in that particular area.

>
> this will just leave the Outlook users on there own?

Why?  Outlook has filters as well.  (Not that I'd ever incur the security
risks of running Outlook on *my* computer ...).

>
> can the list server be configured per user?

Nope.  Even if the software would allow it, nobody would want to afford
the extra hardware it would take to send almost 2400 individualized copies
of every TOMCAT-USER posting, versus one copy to 2400 destinations.

>
> -jp
>

Craig


> On Mon, 23 Dec 2002, James C. McMaster (Jim) wrote:
>
> I disagree...Please *DO NOT* mangle Subject to include any extra garbage.
> Screen real-estate is valuable, and there are other ways to filter messages.
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -   -
> - Jason Pyeron   http://www.pyerotechnics.com   -
> - Owner & Lead  Pyerotechnics Development, Inc. -
> - +1 410 808 6646 (c)   500 West University Parkway #1S -
> - +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
> -   -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information. If you
> have received it in error, purge the message from your system and
> notify the sender immediately.  Any other use of the email by you
> is prohibited.
>
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




Re: request / suggestion

2002-12-23 Thread Jason Pyeron
As I have a big screen...
And I dont like to filter my messages...

I guess it could be done in procmail. I will work on it and post my 
solution for those who would like it.

this will just leave the Outlook users on there own?

can the list server be configured per user?

-jp

On Mon, 23 Dec 2002, James C. McMaster (Jim) wrote:

I disagree...Please *DO NOT* mangle Subject to include any extra garbage.  
Screen real-estate is valuable, and there are other ways to filter messages.


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner & Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.





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




Re: request / suggestion

2002-12-23 Thread Craig R. McClanahan


In message <[EMAIL PROTECTED]>, Jason 
Pyeron said:

> please have the list server put the list name in the subject, example:

I'm opposed to this idea.  It's already possible to filter on the "To" or
"Cc"  addresses, so adding something like this to enable filtering on the
"Subject" is redundant.

Craig



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




Re: request / suggestion

2002-12-23 Thread James C. McMaster (Jim)
I disagree...Please *DO NOT* mangle Subject to include any extra garbage.  
Screen real-estate is valuable, and there are other ways to filter messages.
-- 
Jim McMaster
mailto:[EMAIL PROTECTED]


In message <[EMAIL PROTECTED]>, 
Jas
on Pyeron said:
> please have the list server put the list name in the subject, example:
> 



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




RE:[OT] Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
I am running Tomcat 4.1.17.  Funny you mention that because I still see
something about jk2.properties in my catalina.out - I had asked what the
significance of it was a while back, but I don't believe it was answered (I
could be wrong and could have just missed it).  

This is what shows in my catalina.out log everytime I start Tomcat.
Although everything seems to be working fine, I don't understand why the
mention of jk2.properties when I am not using it...

Dec 23, 2002 3:06:23 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Dec 23, 2002 3:06:23 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Dec 23, 2002 3:06:24 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Dec 23, 2002 3:06:25 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.17
Dec 23, 2002 3:06:30 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 23, 2002 3:06:30 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Dec 23, 2002 3:06:30 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/46
config=/usr/local/jakarta-tomcat-4.1.17/conf/jk2.properties


Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Jeff Tulley [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 12:49 PM
To: [EMAIL PROTECTED]
Subject: RE: Mod_jk - won't execute jsp or servlets


Denise,
   What version of Tomcat are you using?  One thing to remember is that the
CoyoteConnector JkHandler in Tomcat 4.1.(7?) up to about 4.1.14 looked into
jk2.properties file for its configuration, ignoring the port value specified
in server.xml.  Then what it did was assume you wanted some particular port
value (I thought it was 8009, it may be different), and if that port was in
use it would go to the next one.  This shifting port value was a royal pain,
and this setup also wasn't conducive to using multiple Tomcat instances.
  So, in about version 4.1.14, Costin changed the JkHandler to honor the
values set in server.xml.  

Maybe your problem is that sometimes the java-side Coyote connector WAS
listening on 8009, sometimes it wasn't.  I would move to a later release
(4.1.18?) and try again, since in that version what you have in server.xml
will work, and you just need to ensure it is in sync with what mod_jk is
looking at (workers.properties typically), and that the worker name in that
same file is in sync with the JkMount statements. 
Every time I've gotten all of the "ducks in a row" like this I've gotten it
to work.  (On NetWare and Windows, at least).


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 12/23/02 10:41:50 AM >>>
Jeff,

Wow, this is very strange.  You got me curious as well, and I did change it
back to "0" (mind you I was very scared to) .  Oddly enough, everything
still works.  I even tried executing some of the examples that I hadn't
accessed yet to make sure it wasn't working from classes that were built
previously, and it still works like a charm.  If it wasn't the connection
timeout setting then I haven't a clue what would have made it start
working

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]]

Sent: Monday, December 23, 2002 12:24 PM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Denise,

Since this week I was scheduled to update our HP-UX apache to latest version
which does include mod_jk support, I did the install this morning.  My
installation with tomcat 4.1.18 does work with the default
connectionTimeout="0".

I would be interested to know if you change it back to 0, if it will still
works.  

Jeff



-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 10:19 AM
To: 'Tomcat Users List'
Subject: RES: Mod_jk - won't execute jsp or servlets


I don't know what else to say But YAY! :-P

Milt - it looks like the timeout was what was doing it.  Weird thing is
- I
didn't edit that.  Unless I did something by mistake that is the way that it
was shipped!!  Everything is working great!! I can access all static pages
as well as execute all servlets and JSP.   I better knock on wood and
pray
nothing goes wrong to make it stop working ;)

Thank you SO MUCH to everyone for all of your help!! I definitely would have
been pulling my hair out from the roots if it weren't for this list!!

Jerry - where do you stand with your set up?  Since we have the same set up
would you like me to send you my files now that it is working for me??

Denise Mangano


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sen

Re: Sealing Violation due to inclusion of LifeCycle?

2002-12-23 Thread Craig R. McClanahan


On Mon, 23 Dec 2002, Tomcat User wrote:

> Date: Mon, 23 Dec 2002 13:11:05 -0700
> From: Tomcat User <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Sealing Violation due to inclusion of LifeCycle?
>
> >
> > The fundamental documentation on how class loaders work in Tomcat is:
> >
> >   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
> >
> > If you look at the directory structure of a standard Tomcat distribution,
> > you'll see that the org.apache.catalina.* classes (from catalina.jar) are
> > loaded into the Catalina class loader, which is not visible to webapps.
> > Therefore, any classes you write that need these APIs must also be stored
> > in the Catalina class loader (putting them in the Common class loader
> > won't help you, because they still wouldn't be able to see the base
> > classes).
> >
> > The configuration option Tomcat supports for this is the "privileged"
> > attribute on a  element, which makes the the webapp's parent
> > class loader be the Catalina loader instead of the Shared loader.  This is
> > the technique used by the admin and manager webapps that are shipped with
> > Tomcat.
> >
> > WARNING:  Use of this technique gives your webapp access to ***all*** of
> > the internal objects of the servlet container, and is therefore very
> > dangerous unless you are absolutely sure that your webapp cannot be abused
> > by malicious users.
> >
> >
> > Craig
> >
> >
>
> I didn't know about the privileged attribute at all.  That could come in
> handy, but also dangerous.
>
> It appears (from the class loaders documentation) that objects from the
> shared class loader aren't available to the catalina loader as well, while
> objects created by the common loader are.  When you make a context
> privileged, does that mean that it can still load a jar from the common
> loader, yet still have the visibility from the catalina, (instead of the
> external shared) loader?
>

Yes, classes loaded from the Common class loader can still be loaded from
a privileged webapp.  However, a class loaded from the Common class loader
cannot depend on a class loaded from the Catalina class loader -- for
example, you cannot put a subclass of org.apache.catalina.realm.RealmBase
in the common class loader.  That's because Java does not support links
from a ClassLoader to its children -- only to its parent.

> So basically if I make a context privileged, and still have objects in the
> shared loader, they won't be visible to the context.  BUT - if I put
> everything in the common loader, and make the context privileged, I should
> be fine...

Almost ... see the issue raised above.

> - but possible open to security attacks depending on what I put
> in there?

It's definitely possible to have security attacks.  What that should do is
cause you to re-examine whether your webapp itself really needs to update
the internal object instances, or just the underlying data.

For example, if JDBCRealm was sufficient to meet your needs but you wanted
to support dynamically adding new users, it would be straightforward to
simply write a non-privileged webapp that updated the same tables you told
JDBCRealm to use -- any new user that is added that way becomes
immediately allowed to log on.  It's not clear from your problem
description why you needed to extend RealmBase in the first place, but it
is worth considering whether a strategy like this would help you.

>
> BTW - I want to thank you for doing this Craig.  I have enjoyed using Tomcat
> and Struts for MVC models while studying at my local university...
>
> Randy
>

Craig


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




Re: Urgently Required

2002-12-23 Thread Gary Gwin
Kural,

The role should already be configured in web.xml by the application 
deployer. If the user registers himself with a given role, then the user 
and that role need to be added to the user repository. If you are using 
tomcat-users.xml, then you need to add the user and role to that file. 
It's easier in this case to use the JdbcRealm and an SQL database. When 
the user self-registers, you can simply add the new user and role(s) to 
database tables.

Gary

kural mani elango wrote:

Dear sir/madam,



 I am working in JSP with tomcat,In my project i have
user roles (BuyerAdmin,Buyer,Shipper...) now i want to display
pages according to the user and i have an Page for registration
for
user,if the user register him as role(say Buyer) it must be add to
the
web.xml,Pls reply me how can do this I want this very urgently

thankyou





 NIIT supports World Computer Literacy Day on 2nd December.
 Enroll for NIIT SWIFT Jyoti till 2nd December for only Rs. 749
 and get free Indian Languages Office software worth Rs. 2500.
 For details contact your nearest NIIT centre, SWIFT Point
 or click here http://swift.rediff.com/


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



--

Gary Gwin
CEO and Founder
Cafesoft
858.455.1800 x205
http://www.cafesoft.com

*
*   *
*   The Cafesoft Access Management System, Cams, is security*
*   software that provides single sign-on authentication and*
*   centralized access control for Apache, Tomcat, and custom   *
*   resources.  *
*   *
*



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




[ot] request / suggestion

2002-12-23 Thread Jason Pyeron
please have the list server put the list name in the subject, example:

 [Tomcat-User] SSL Mode
 Re: [Tomcat-User] SSL Mode


-jason pyeron


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner & Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.








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




Re: Sealing Violation due to inclusion of LifeCycle?

2002-12-23 Thread Tomcat User
>
> The fundamental documentation on how class loaders work in Tomcat is:
>
>   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
>
> If you look at the directory structure of a standard Tomcat distribution,
> you'll see that the org.apache.catalina.* classes (from catalina.jar) are
> loaded into the Catalina class loader, which is not visible to webapps.
> Therefore, any classes you write that need these APIs must also be stored
> in the Catalina class loader (putting them in the Common class loader
> won't help you, because they still wouldn't be able to see the base
> classes).
>
> The configuration option Tomcat supports for this is the "privileged"
> attribute on a  element, which makes the the webapp's parent
> class loader be the Catalina loader instead of the Shared loader.  This is
> the technique used by the admin and manager webapps that are shipped with
> Tomcat.
>
> WARNING:  Use of this technique gives your webapp access to ***all*** of
> the internal objects of the servlet container, and is therefore very
> dangerous unless you are absolutely sure that your webapp cannot be abused
> by malicious users.
>
>
> Craig
>
>

I didn't know about the privileged attribute at all.  That could come in
handy, but also dangerous.

It appears (from the class loaders documentation) that objects from the
shared class loader aren't available to the catalina loader as well, while
objects created by the common loader are.  When you make a context
privileged, does that mean that it can still load a jar from the common
loader, yet still have the visibility from the catalina, (instead of the
external shared) loader?

So basically if I make a context privileged, and still have objects in the
shared loader, they won't be visible to the context.  BUT - if I put
everything in the common loader, and make the context privileged, I should
be fine... - but possible open to security attacks depending on what I put
in there?

BTW - I want to thank you for doing this Craig.  I have enjoyed using Tomcat
and Struts for MVC models while studying at my local university...

Randy


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




Tomcat Standalone SSL and client certificates?

2002-12-23 Thread Jason Pyeron
oh I got a good one here all, 

in tomcat-docs/ssl-howto.html under section Introduction to SSL, I quote:

In certain cases, the server may also request a Certificate from your web 
browser, asking for proof that you are who you claim to be. This is known 
as "Client Authentication," although in practice this is used more for 
business-to-business (B2B) transactions than with individual users. Most 
SSL-enabled web servers do not request Client Authentication.


can tomcat do  Client Authentication?
if so how, as i need to doit?

-Jason Pyeron

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner & Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.





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




jk2 reconfiguration blues

2002-12-23 Thread Mark Gastel



Hi All,
 
I am attempting to dynamically disable a jk2 worker by updating the workers2.properties file and hitting the /jkstatus url.  
It seems to be re-reading the configuration file (it detects the 
change) yet the status of the workers never change.  Has anyone had any 
success with this?  I have attached my jk2 log and jkstatus 
screen.
 
I am using tomcat 
connectors 4.1.18 with apache 2.0.43.  
 
Thanks!
Mark
 
ps if I disable a worker and restart apache, the worker 
shows up as disabled
 
[Mon Dec 23 11:44:00 2002] [notice] Apache configured -- resuming normal operations
[Mon Dec 23 11:44:01 2002] [notice] jk2_init() Found child 26317 in scoreboard slot 0
[Mon Dec 23 11:44:01 2002] [notice] workerEnv.init() ok 
/usr/local/apache2/conf/workers2.properties
[Mon Dec 23 11:44:01 2002] [error] mod_jk child init 1 0
[Mon Dec 23 11:44:01 2002] [notice] jk2_init() Found child 26318 in scoreboard slot 1
[Mon Dec 23 11:44:01 2002] [notice] workerEnv.init() ok 
/usr/local/apache2/conf/workers2.properties
[Mon Dec 23 11:45:08 2002] [notice] cfg.update() Updating config 
/usr/local/apache2/conf/workers2.properties 1040672329 1040672704
[Mon Dec 23 11:45:08 2002] [notice] config.setConfig():  Reading properties 
/usr/local/apache2/conf/workers2.properties 11



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


Re: Object Pooling

2002-12-23 Thread Felipe Schnack
  I'm rewriting this reply, maybe I wasn't clear enough :-)

 My application have two types of objects that are constantly created
and destroyed. I believe that they could be pooled in some way (maybe
using commons pooling package. These types are:
 1- Objects that handle user interaction. Basically they are the objects
that actually implement tasks that would be otherwise done using
servlets. In pratice, JSPs send data to them (like html form data) and
they process it and return the results to the browser. These ones i'm
not sure (yet) if I should pool. I'm not familiar with Struts, I would
like to know how it does that. Someone can give me some tips?
 2- These I strongly believe I should cache, and I'm already caching
them, but with an solution designed by myself. I have some database
tables that stores user permissions for the application. Basically,
there are two tables that stores an module ID and who can access it (by
user id, user profession, etc). I was thinking about loading all of them
in memory at system startup and update them from time to time (or using
Observable interfaces)? 
 What do you think about it?

>You may want to pursue object pooling, but the prevailing conventional
>wisdom is that it's not really necessary. Object Pooling is important
for
>objects that are particularly expensive to create (due to internal
object
>requirements, like connecting to external resources) and is not really
>appropriate simply for  "lots" of standard generic Java objects.
>
>While instantiating an object certainly has some cost, creating and
tossing
>them away is not overly expensive.
>
>Now, perhaps you've done some testing and found these particular
objects to
>be problematic, but it seems to me to be a toss up between simply
creating
>new objects versus using an object pool. Any object pool is necessarily
>going to at least have synchronization issues tied to it which may in
the
>end cost more overall than creating and disposing of the objects.
>
>Modern GCs are pretty good about tossing away temporary objects.
>
>Now, if you're perhaps doing some things in a tight loop, then maybe
simply
>a judicious use of the objects would be better. Say, rather than using
a
>generic object pool, simply creating the few necessary instances for
your
>loop before hand and reusing them explicity within the loop rather than
>constantly creating new ones.

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341


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




RE: virtual host problems...

2002-12-23 Thread Nick Stuart
It appears that this did the trick. I figured it was something like this
but wasn't sure what to look at. I didn't see this in the mod_jk.conf
file that was generated so I didn't think it needed it, but apparently
it does!
Thanks a lot for the info.

-Nick

On Mon, 2002-12-23 at 13:38, PELOQUIN,JEFFREY (HP-Boise,ex1) wrote:
> Nick,
> 
> you may need something like 
> 
> 
>Options Indexes FollowSymLinks
>DirectoryIndex index.html index.htm index.jsp 
> Order allow,deny
> Allow from all
> 
> 
> in order tell apache that people our allow into this directory path, it may
> need to go after you location tags as I do not remember if apache stops at
> the first match or chooses the most restrictive
> 
> Jeff
> 
> -Original Message-
> From: Nick Stuart [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:27 AM
> To: Tomcat Users List
> Subject: virtual host problems...
> 
> 
> Ok, I have tomcat and apache running together nicely but am having a
> problem getting the virtual hosting for it to work.
> Right now when I go to:
> 
> ServerName vort112
> Alias /examples "/usr/local/tomcat/webapps/examples"
>
> 
>Options Indexes FollowSymLinks
>DirectoryIndex index.html index.htm index.jsp 
> 
> 
> # Deny direct access to WEB-INF and META-INF
> #
> 
>AllowOverride None
>deny from all
> 
> 
> 
>   AllowOverride None
> deny from all
> 
> 
> JkMount /examples/jsp/security/protected/j_security_check  worker1
> JkMount /examples/snoop  worker1
> JkMount /examples/servlet/*  worker1
> JkMount /examples/CompressionTest  worker1
> JkMount /examples/*.jsp  worker1
> JkMount /examples/servletToJsp  worker1
> JkMount /examples/SendMailServlet  worker1
> 
> /jsp/
> it re-directs me to
> http:///examples/jsp/
> which I dont really want.
> Now when I had the following for virtual hosting..
> 
> ServerName vort112
> Alias /examples "/usr/local/tomcat/webapps/examples"
>
> 
>Options Indexes FollowSymLinks
>DirectoryIndex index.html index.htm index.jsp 
> 
> 
> # Deny direct access to WEB-INF and META-INF
> #
> 
>AllowOverride None
>deny from all
> 
> 
> 
>   AllowOverride None
> deny from all
> 
> 
> JkMount /examples/jsp/security/protected/j_security_check  worker1
> JkMount /examples/snoop  worker1
> JkMount /examples/servlet/*  worker1
> JkMount /examples/CompressionTest  worker1
> JkMount /examples/*.jsp  worker1
> JkMount /examples/servletToJsp  worker1
> JkMount /examples/SendMailServlet  worker1
> 
> I have some odd behavior. What happens is that i can still go to:
> http:///examples
> and it will display the contents of it in the tomcat format, but when I
> got to:
> http:///examples/jsp/
> it gives an access denied error, even if I just try to go to a normal
> html page inside that directory.
> Not sure what to change, I basically copied what was generated in the
> mod_jk.conf-auto file by tomcat, but didn't want to use it because I
> don't need/want all the other directories in there.
> I've look through the archives and couldn't find any thing that
> resembled this problem, so any advice would be greatly appreciated.
> 
> Thanks for your time!
-- 

-Nick Stuart

USM Computer Science Major
Visit us at http://csforum.newtsplace.com
(run with LAMP)

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




unwanted output of sql

2002-12-23 Thread Adam Nowalsky
hi, all.  running tomcat 4.1.12 on a windows xp machine.  sometimes when i
run a query and the resultset contains 0 rows, tomcat will return the
contents of my executed sql statement to the browser, including any other
jsp in the page.  if it matters, i am using the dbtags library for my
connection and results output.  sometimes reloading the page a couple of
times helps.  if i change the underlying database (mysql) to cause the query
to return records, then the sql output often goes away.  as anyone else
experienced similar behavior?  i couldn't seem to find anything in the bug
database, but that's not saying it isn't there!

thanks for any help!


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




Tomcat and Jboss

2002-12-23 Thread Edu
I don't know if this is about Tomcat, Jboss, or something else.

I created a EJB pack and deployed at the server (Jboss). Made a java program
client to test
it and all is Ok. But when I try to use a jsp page to use the service, I get
a
java.lang.ClassCastException message.
I can get the context , the reference , but when I try to
get a reference to the bean's Home interface the error happens.
This is the line with the problem:


ServiceHome1 home =(ServiceHome1) PortableRemoteObject.narrow (ref,
ServiceHome1.class);

the same line runs ok at a java program at the same machine.

I use Tomcat/Jboss and the Jboss libs are in %CATALINA_HOME%/commom/lib

The classe ServiceHome1 is in:
%CATALINA_HOME%/webapps/myApp/WEB-INF/classes/ejb1/

In a  JSP ( %CATALINA_HOME%/webapps/myApp/page.jsp  )  I use:

<%@ page import="ejb1.Service1"%>
<%@ page import="ejb1.ServiceHome1"%>

also the file service1.jar is in %CATALINA_HOME%/common/lib

Any help?



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




Re[2]: a sure way to work with tomcat under windows NT/2000/XP (sorrymisread)

2002-12-23 Thread Jason Pyeron

sorry, misread the post (skippied over the first reply) .
On Mon, 23 Dec 2002, Jacob Kjome wrote:

Hello Jason,

Monday, December 23, 2002, 12:44:02 PM, you wrote:

JP> this list is designed to be 'fool proof'? not efficient.

Huh?  What are you saying herewhat is your point???

Jake


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


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron   http://www.pyerotechnics.com   -
- Owner & Lead  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)   500 West University Parkway #1S -
- +1 410 467 2266 (f)   Baltimore, Maryland  21210-3253 -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




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




Re[2]: a sure way to work with tomcat under windows NT/2000/XP

2002-12-23 Thread Jacob Kjome
Hello Jason,

Monday, December 23, 2002, 12:44:02 PM, you wrote:

JP> this list is designed to be 'fool proof'? not efficient.

Huh?  What are you saying herewhat is your point???

Jake


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




Re: Sealing Violation due to inclusion of LifeCycle?

2002-12-23 Thread Craig R. McClanahan


On Mon, 23 Dec 2002, Randy Secrist wrote:

> Date: Mon, 23 Dec 2002 11:25:51 -0700
> From: Randy Secrist <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Sealing Violation due to inclusion of LifeCycle?
>
> I have been building classes inherited from the
> org.apache.catalina.realmbase package, and have been struggling with
> where to put them.  One of the reason's I have been doing this is to
> expose TC's realm implementation within my web applications.  The best
> solution I have found so far is to just drop the apache classes I need
> for my webapps into a .jar in the common/lib directory.
>
> I have been getting most of the functionality I want, but once I
> override the stop() method of RealmBase, I start getting a sealing
> violation due to the inclusion of LifeCycle, and LifeCycleException when
> tomcat starts up.  I can see that once my hack gets deeper and deeper
> into TC code, I will windup with class loader issues, which I would like
> to avoid.
>
> Mostly, I am wondering (hoping)  if there is a way to expose my custom
> user database (defined within GlobalNamingResource) within my webapps
> without having to worry so much about class loader issues, as I often
> find down in development that certian apache classes are not exposed
> within the class loader my web apps are using.  I am hoping that the
> same class I can play with inside my applications, would be the same
> singleton instance that tomcat uses when it starts - but I haven't found
> an easy way to expose this.  Does this violate some sort of MVC ideology?
>

The fundamental documentation on how class loaders work in Tomcat is:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

If you look at the directory structure of a standard Tomcat distribution,
you'll see that the org.apache.catalina.* classes (from catalina.jar) are
loaded into the Catalina class loader, which is not visible to webapps.
Therefore, any classes you write that need these APIs must also be stored
in the Catalina class loader (putting them in the Common class loader
won't help you, because they still wouldn't be able to see the base
classes).

The configuration option Tomcat supports for this is the "privileged"
attribute on a  element, which makes the the webapp's parent
class loader be the Catalina loader instead of the Shared loader.  This is
the technique used by the admin and manager webapps that are shipped with
Tomcat.

WARNING:  Use of this technique gives your webapp access to ***all*** of
the internal objects of the servlet container, and is therefore very
dangerous unless you are absolutely sure that your webapp cannot be abused
by malicious users.

> Randy
>

Craig


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




RE: a sure way to work with tomcat under windows NT/2000/XP

2002-12-23 Thread Jason Pyeron
On Mon, 23 Dec 2002, Jacob Kjome wrote:

:
:You should set up your variables under System instead of User because if 

they are

:you run Tomcat as a service, the User variables will not be read.  Also, 
:Tomcat doesn't care about the system classpath.  J2EE_HOME is fine to set 
:if you need that for something else.  Tomcat doesn't need it.  Also, 
:TOMCAT_HOME is for Tomcat-3.x.x and below.  CATALINA_HOME is the only 

this list is designed to be 'fool proof'? not efficient.

:variable that Tomcat-4.x.x cares about other than JAVA_HOME.
:
:Jake
:
:At 12:42 PM 12/23/2002 +0100, you wrote:
:>Hello Jason,
:>
:>My name is Kinsley and I am new to Tomcat.  I have successfully
:>installed the Jakarta Tomcat on Windows 2000 Advanced Server. It seems
:>to be OK for now as I have not done so much with it.
:>
:>I noticed that there are some differences between your procedures and
:>the one I followed.  They are as follows:
:>1. I had installed j2sdk1.4.1, and then I also installed the
:>j2sdkee1.3.1 setting class path to j2sdkee1.3.1.jar
:>2. I installed the Tomcat and set the following variables, JAVA_HOME,
:>J2EE_HOME, TOMCAT_HOME, CATALINA_HOME.
:>
:>But I did all of these in the User Variables for Administrator and not
:>in the System Variables section as your suggested below.
:>
:>I eventually hit the Tomcat home page which makes me think all is well.
:>
:>I ran some of the examples, and they went well.
:>
:>I am about to proceed to install the Watchdog.  But I need to know if
:>the installation I have done has any fundamental error in it that may
:>lead to problems later.
:>
:>Please revert.
:>
:>
:>Kingsley Omon-Edo,
:>Developer,
:>MTech Communications Ltd
:>
:>
:>-Original Message-
:>From: Jason Pyeron [mailto:[EMAIL PROTECTED]]
:>Sent: Monday, December 23, 2002 11:59 AM
:>To: Tomcat Users List
:>Subject: a sure way to work with tomcat under windows NT/2000/XP
:>
:>this seems to be a recurring theme here:
:>
:>these steps I give out to my clients, if they are followed without
:>variation then tomcat will run happilly.
:>
:>Downloads:
:>
:>1: download jdk 1.4.1_01 from
:>http://java.sun.com/webapps/download/Display?BundleId=7150
:>2: download tomcat 4.1.12 from
:>http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/v4.1.12/bin
:>/jakarta-tomcat-4.1.12.exe
:>3: download ant 1.5.1 from
:>http://ftp.epix.net/apache/dist/ant/binaries/jakarta-ant-1.5.1-bin.tar.g
:>z
:>
:>PreInstall:
:>
:>4: browse to http://windowsupdate.microsoft.com/
:>4a: install all required patches
:>4b: Reboot the machine if instructed.
:>4c: Repeat step 4 until there are no more reboots required, or software
:> installed.
:>
:>5: open control pannel, open system, choose environment variables.
:>5a: find SYSTEM VARIABLES
:>5b: set variable JAVA_HOME to value: c:\j2sdk1.4.1_01
:>5c: set variable CATALINA_HOME to value: C:\Program Files\Apache
:>Group\Tomcat 4.1
:>5d: set variable JASPER_HOME to value: C:\Program Files\Apache
:>Group\Tomcat 4.1
:>5e: set variable tomcat_home to value: C:\Program Files\Apache
:>Group\Tomcat 4.1
:>5f: edit variable Path and prepend to value:
:>C:\j2sdk1.4.1_01\bin;C:\Program Files\jakarta-ant-1.5.1\bin;
:>
:>
:>
:>Installs and tests:
:>
:>5: install JDK
:>5a: click [next] button
:>5b: aggree to license
:>5c: verify: Destination folder should read "C:\j2sdk1.4.1_01"
:>5d: click [next] button
:>5e: verify: all boxes should be checked
:>5f: click [next] button
:>5g: verify: Microsoft Internet Explorer box should be checked
:>5h: click [next] button
:>
:>6: Start->Run cmd.exe
:>6a: at the shell propmt type and press enter:java -version
:>6b: verify java executes and reports:
:>
:>  java version "1.4.1_01"
:>  Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
:>  Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
:>
:>6c: at the shell prompt type and press enter: echo public class
:>test{public static void main(String[] args){System.out.println("Hello
:>World!");}} > test.java
:>6d: at the shell prompt type and press enter: javac test.java
:>6e: at the shell prompt type and press enter: java test
:>6f: verify java executes and reports:
:>
:>  Hello World!
:>
:>7: install tomcat
:>7a: verify an alert box pops up stating: Using Java Development Kit
:>found in c:\j2sdk1.4.1_01
:>7b: click [OK] button
:>7c: click [I Agree] button
:>7d: select all boxes [Full (w/Source Code)]
:>7e: click [Install] button
:>7f: choose defaults for port/user/password [8080,Admin,""]
:>7g: click [Next] button
:>7h: click [close] nutton
:>
:>8: test tomcat:
:>8a: verify Apache Tomcat 4.1 service is started [control panel ->
:>Administrative tools -> Services]
:>8b: browse to http://127.0.0.1:8080
:>
:>9: install ant
:>9a: open jakarta-ant-1.5.1.tar.gz with WinZip or your favorite archive
:>utility
:>9b: extract to c:\Program Files
:>
:>10: test ant
:>10a: Start->Run cmd.exe
:>10b: at the shell propmt type and press enter:ant -version
:>10c: verify ant executes and reports:
:>
:>  Apache Ant ver

RE: virtual host problems...

2002-12-23 Thread Denise Mangano
Are you getting a Forbidden message from Apache server?  I ran into that
problem as well, and Bill Barker was kind enough to respond.  This was his
post:

"You need 775 (or at least 5 on the last digit).  Apache requires "x"
permissions (which, for a directory means "list" rather than "execute" on
*nix systems) on the directories.  Apache will do a tree-walk from '/' to
your directory incase you have any '.htaccess' files installed".

What I did to correct the problem was change the tomcat directory to owner
and group rwx and other to rx.  I recursively changed permissions so that
all subdirectories and files would have 775 permissions and that removed the
access denied problem. 

On a side note, I wonder if you can get away with just the tomcat directory
itself, and then recursively change the webapps directory to have those
permissions but I am thinking if the work directory doesn't have the
same permissions you may have trouble accessing the compiled servlets and
jsp's? (someone else would be able to answer that guess better than I)

HTH

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Nick Stuart [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 1:27 PM
To: Tomcat Users List
Subject: virtual host problems...


Ok, I have tomcat and apache running together nicely but am having a problem
getting the virtual hosting for it to work. Right now when I go to:

ServerName vort112
Alias /examples "/usr/local/tomcat/webapps/examples"
   

   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp 


# Deny direct access to WEB-INF and META-INF
#

   AllowOverride None
   deny from all



AllowOverride None
deny from all


JkMount /examples/jsp/security/protected/j_security_check  worker1
JkMount /examples/snoop  worker1
JkMount /examples/servlet/*  worker1
JkMount /examples/CompressionTest  worker1
JkMount /examples/*.jsp  worker1
JkMount /examples/servletToJsp  worker1
JkMount /examples/SendMailServlet  worker1

/jsp/
it re-directs me to
http:///examples/jsp/
which I dont really want.
Now when I had the following for virtual hosting..

ServerName vort112
Alias /examples "/usr/local/tomcat/webapps/examples"
   

   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp 


# Deny direct access to WEB-INF and META-INF
#

   AllowOverride None
   deny from all



AllowOverride None
deny from all


JkMount /examples/jsp/security/protected/j_security_check  worker1
JkMount /examples/snoop  worker1
JkMount /examples/servlet/*  worker1
JkMount /examples/CompressionTest  worker1
JkMount /examples/*.jsp  worker1
JkMount /examples/servletToJsp  worker1
JkMount /examples/SendMailServlet  worker1

I have some odd behavior. What happens is that i can still go to:
http:///examples and it will display the contents of it in the
tomcat format, but when I got to: http:///examples/jsp/ it gives an
access denied error, even if I just try to go to a normal html page inside
that directory. Not sure what to change, I basically copied what was
generated in the mod_jk.conf-auto file by tomcat, but didn't want to use it
because I don't need/want all the other directories in there. I've look
through the archives and couldn't find any thing that resembled this
problem, so any advice would be greatly appreciated.

Thanks for your time!
-- 

-Nick Stuart

USM Computer Science Major
Visit us at http://csforum.newtsplace.com
(run with LAMP)

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: virtual host problems...

2002-12-23 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
Nick,

you may need something like 


   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp 
Order allow,deny
Allow from all


in order tell apache that people our allow into this directory path, it may
need to go after you location tags as I do not remember if apache stops at
the first match or chooses the most restrictive

Jeff

-Original Message-
From: Nick Stuart [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 11:27 AM
To: Tomcat Users List
Subject: virtual host problems...


Ok, I have tomcat and apache running together nicely but am having a
problem getting the virtual hosting for it to work.
Right now when I go to:

ServerName vort112
Alias /examples "/usr/local/tomcat/webapps/examples"
   

   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp 


# Deny direct access to WEB-INF and META-INF
#

   AllowOverride None
   deny from all



AllowOverride None
deny from all


JkMount /examples/jsp/security/protected/j_security_check  worker1
JkMount /examples/snoop  worker1
JkMount /examples/servlet/*  worker1
JkMount /examples/CompressionTest  worker1
JkMount /examples/*.jsp  worker1
JkMount /examples/servletToJsp  worker1
JkMount /examples/SendMailServlet  worker1

/jsp/
it re-directs me to
http:///examples/jsp/
which I dont really want.
Now when I had the following for virtual hosting..

ServerName vort112
Alias /examples "/usr/local/tomcat/webapps/examples"
   

   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp 


# Deny direct access to WEB-INF and META-INF
#

   AllowOverride None
   deny from all



AllowOverride None
deny from all


JkMount /examples/jsp/security/protected/j_security_check  worker1
JkMount /examples/snoop  worker1
JkMount /examples/servlet/*  worker1
JkMount /examples/CompressionTest  worker1
JkMount /examples/*.jsp  worker1
JkMount /examples/servletToJsp  worker1
JkMount /examples/SendMailServlet  worker1

I have some odd behavior. What happens is that i can still go to:
http:///examples
and it will display the contents of it in the tomcat format, but when I
got to:
http:///examples/jsp/
it gives an access denied error, even if I just try to go to a normal
html page inside that directory.
Not sure what to change, I basically copied what was generated in the
mod_jk.conf-auto file by tomcat, but didn't want to use it because I
don't need/want all the other directories in there.
I've look through the archives and couldn't find any thing that
resembled this problem, so any advice would be greatly appreciated.

Thanks for your time!
-- 

-Nick Stuart

USM Computer Science Major
Visit us at http://csforum.newtsplace.com
(run with LAMP)

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: javax.sql.datasource

2002-12-23 Thread Craig R. McClanahan
On Mon, 23 Dec 2002 [EMAIL PROTECTED] wrote:

> Date: Mon, 23 Dec 2002 16:58:18 +
> From: [EMAIL PROTECTED]
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: javax.sql.datasource
>
> hi all,
>
> where i can find out javax.sql.datasource (in which .jar file)
>

$CATALINA_HOME/common/lib/jdbc2_0-stdext.jar

> TIA
>
> best regards
> sunil
>

Craig


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




Re: Web app specific Listener (was Re: Listener Element in Context:class not found Exception)

2002-12-23 Thread Craig R. McClanahan


On Mon, 23 Dec 2002, Tobias Dittrich wrote:

> Date: Mon, 23 Dec 2002 09:59:08 +0100
> From: Tobias Dittrich <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Web app specific Listener (was Re: Listener Element in Context:
> class not found Exception)
>
> Hi,
>
> thanks for the answer, now I think I know where I got wrong. Listener
> elements are tomcat server extensions rather than web app elements. But this
> leads to my next question: how can I define web app sepcific listeners?
> My goal is to have some application wide global jobs like reading
> configuration etc. done when the application is brought up and do some
> cleanup when it stops. And the object created by this process should be
> accessable through the servlet context. I tried to find something like this
> in the docs but so far I haven't been successfull - maybe anyone can give me
> a hint under what topic to look?
>

Implement a javax.servlet.ServletContextListener in your webapp, and the
contextInitialized() method will be the place to do your startup
initialization stuff (including storing things in servlet context
attributes).  Likewise, the contextDestroyed() method can be used to clean
things up when the app is shut down.

Declare it in your web.xml file like this:

  
com.mycompany.mypackage.MyListener
  

Because the order of elements in web.xml must match the order required by
the DTD, this element should go after any filters and before any
servlets.

> Many thanks in advance
> Tobi

Craig


>
>
> - Original Message -
> From: "Bill Barker" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, December 21, 2002 7:58 AM
> Subject: Re: Listener Element in Context: class not found Exception
>
>
> >
> > <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hello there,
> > >
> > > I have a problem with the  element inside a  element
> > >
> > > in the server.xml configuration file. I always get a ClassNotFound
> > > Exception for the class I specify in the attribute className when I
> > > try to start catalina.
> > >
> > > I defined a Listener like this:
> > >
> > >  > >unpackWARs="true" autoDeploy="true">
> > >  [..]
> > >   
> > > 
> > >   
> > >  [..]
> > > 
> > >
> > > The corresponding com.mypackage.ListenerClass resides inside it's web
> > > application directory webapps/myapp/WEB-INF/classes. Now when I try to
> >
> > And that would be your problem ;-).  A Catalina Listener class can't be
> > web-app specific.  You will need to move your class file to
> > $CATALINA_HOME/server/classes.
> >
> > >
> > > start the server I get a ClassNotFoundException for
> > > com.mypackage.ListenerClass ...
> > >
> > > Now where do I have to put the classes so catalina can find them or is
> > >
> > > there a configuration file where I can point to this class? Supporting
> > > a classpath doesn't help as catalina is setting it's own classpath.
> > >
> > > Any hints would be appreciated
> > > Tobi
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




virtual host problems...

2002-12-23 Thread Nick Stuart
Ok, I have tomcat and apache running together nicely but am having a
problem getting the virtual hosting for it to work.
Right now when I go to:

ServerName vort112
Alias /examples "/usr/local/tomcat/webapps/examples"
   

   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp 


# Deny direct access to WEB-INF and META-INF
#

   AllowOverride None
   deny from all



AllowOverride None
deny from all


JkMount /examples/jsp/security/protected/j_security_check  worker1
JkMount /examples/snoop  worker1
JkMount /examples/servlet/*  worker1
JkMount /examples/CompressionTest  worker1
JkMount /examples/*.jsp  worker1
JkMount /examples/servletToJsp  worker1
JkMount /examples/SendMailServlet  worker1

/jsp/
it re-directs me to
http:///examples/jsp/
which I dont really want.
Now when I had the following for virtual hosting..

ServerName vort112
Alias /examples "/usr/local/tomcat/webapps/examples"
   

   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp 


# Deny direct access to WEB-INF and META-INF
#

   AllowOverride None
   deny from all



AllowOverride None
deny from all


JkMount /examples/jsp/security/protected/j_security_check  worker1
JkMount /examples/snoop  worker1
JkMount /examples/servlet/*  worker1
JkMount /examples/CompressionTest  worker1
JkMount /examples/*.jsp  worker1
JkMount /examples/servletToJsp  worker1
JkMount /examples/SendMailServlet  worker1

I have some odd behavior. What happens is that i can still go to:
http:///examples
and it will display the contents of it in the tomcat format, but when I
got to:
http:///examples/jsp/
it gives an access denied error, even if I just try to go to a normal
html page inside that directory.
Not sure what to change, I basically copied what was generated in the
mod_jk.conf-auto file by tomcat, but didn't want to use it because I
don't need/want all the other directories in there.
I've look through the archives and couldn't find any thing that
resembled this problem, so any advice would be greatly appreciated.

Thanks for your time!
-- 

-Nick Stuart

USM Computer Science Major
Visit us at http://csforum.newtsplace.com
(run with LAMP)

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




Re: How to configure JNDI resource with connection pool?

2002-12-23 Thread Craig R. McClanahan


On Mon, 23 Dec 2002, Andrew Guts wrote:

> Date: Mon, 23 Dec 2002 10:55:16 +0200
> From: Andrew Guts <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: How to configure JNDI resource with connection pool?
>
> Hi all,
>
> I want to use pooled data source with my application. I guess a
> "factory" parameter for the resource shoud be provided. Which one from
> the class hierarchy? By the way where can I find detailed documentation,
> describing Tomcat classes, including javadocs?
>
> Thank you for support.
>
> Andrew
>
> P.S. Tomcat4.1.18, JayBird 1.0 RC2
>

Tomcat has a default resource factory for JDBC data sources
(org.apache.commons.dbcp.BasicDataSourceFactory for Tomcat 4.1.x), so you
don't need to specify this.  What you do need to do is read the docs on
JNDI resources, which are included in the "tomcat-docs" webapp as part of
your Tomcat install, or online:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

Craig


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




Sealing Violation due to inclusion of LifeCycle?

2002-12-23 Thread Randy Secrist
I have been building classes inherited from the 
org.apache.catalina.realmbase package, and have been struggling with 
where to put them.  One of the reason's I have been doing this is to 
expose TC's realm implementation within my web applications.  The best 
solution I have found so far is to just drop the apache classes I need 
for my webapps into a .jar in the common/lib directory.

I have been getting most of the functionality I want, but once I 
override the stop() method of RealmBase, I start getting a sealing 
violation due to the inclusion of LifeCycle, and LifeCycleException when 
tomcat starts up.  I can see that once my hack gets deeper and deeper 
into TC code, I will windup with class loader issues, which I would like 
to avoid.

Mostly, I am wondering (hoping)  if there is a way to expose my custom 
user database (defined within GlobalNamingResource) within my webapps 
without having to worry so much about class loader issues, as I often 
find down in development that certian apache classes are not exposed 
within the class loader my web apps are using.  I am hoping that the 
same class I can play with inside my applications, would be the same 
singleton instance that tomcat uses when it starts - but I haven't found 
an easy way to expose this.  Does this violate some sort of MVC ideology?

Randy


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



Reading property files from a package hierarchy in Tomcat4.1.12

2002-12-23 Thread Shrotriya, Sumit

Hi All,
 
  I am trying to read a property file from a package hierarchy.
i.e. I have a service(that I don't have much control over) that reads a
property file 
for a location such as com/sample/property/some.prop
  This worked fine when I was using Tomcat 3.3 but does not work with
Tomcat4.1.12.Any ideas why??
and how should I go about solving the problem??

Regards,
Sumit 
  

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




RE: RES: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
Jerry,

I did not user mod_jk.conf.  Instead I removed the Include statement and
placed the directives inside httpd.conf itself.  I went ahead and attached
my files, but it looks like you have a couple of sets to compare to
already...  In my httpd.conf I did not place everything just at the bottom -
I have it distributed the directives throughout to keep everything organized
- I commented where I entered the directives...

Thanks again to everyone for their help!

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Jerry Ford [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 12:34 PM
To: Tomcat Users List
Subject: Re: RES: Mod_jk - won't execute jsp or servlets


Denise:

Yes, please :)

I am still in the sinking boat.---Apache works fine by itself, Tomcat 
works fine by itself (example servlets all work, as well as my own 
HelloWorld), but Apache->Tomcat through mod_jk does not work.  At the 
moment, I can't even display the HTML pages in the examples.  That seems 
to come and go depending on what is in the config files, not sure what 
caused it to break this time.

I have printed Drew's example files and will compare them to my own, and 
I will look at the timeout value---I see in my server.xml there is *no* 
timeout specified at all.

And, yes, I would like very much to see your final config files now that 
you have a working setup.

Thanks.

Jerry

Denise Mangano wrote:

>I don't know what else to say But YAY! :-P
>
>Milt - it looks like the timeout was what was doing it.  Weird thing is
>- I didn't edit that.  Unless I did something by mistake that is the 
>way that it was shipped!!  Everything is working great!! I can access all
static pages
>as well as execute all servlets and JSP.   I better knock on wood and pray
>nothing goes wrong to make it stop working ;)
>
>Thank you SO MUCH to everyone for all of your help!! I definitely would
>have been pulling my hair out from the roots if it weren't for this 
>list!!
>
>Jerry - where do you stand with your set up?  Since we have the same
>set up would you like me to send you my files now that it is working 
>for me??
>
>Denise Mangano
>
>
>-Original Message-
>From: Milt Epstein [mailto:[EMAIL PROTECTED]]
>Sent: Monday, December 23, 2002 11:55 AM
>To: Tomcat Users List
>Subject: RE: Mod_jk - won't execute jsp or servlets
>
>
>On Mon, 23 Dec 2002, Denise Mangano wrote:
>
>  
>
>>Tomcat is up and running - I can view and execute examples by using 
>>:8080.
>>
>>
>
>OK, that means Tomcat standalone is working (as controlled by the
>Coyote Http Connector onport 8080)
>
>  
>
>>If the port that Tomcat is listening on is set by 
>>workers.properties, then that would be port 8009.  Where Apache is 
>>expecting it to listen on I am not sure.
>>
>>
>
>Actually, you've got it backwards.  workers.properties is part of the
>Apache config, and indicates where Apache is expecting to find the 
>(Tomcat side of
>the) Ajp connector.  server.xml is part of the Tomcat config, and tells
>Tomcat where it should listen for Ajp (and other protocols).
>
>  
>
>>  The email I sent was correct
>>- the uncommented ports are those that were listed.  The only
>>difference between the two is the connection Timeout settings... ( I 
>>posted the correct server.xml file - the second email contains the 
>>correct one).
>>
>>
>
>I responded to that email -- and in fact the connection timeout was the
>only thing that looked odd to me.  So that might be what's causing the 
>problem.
>
>
>  
>
>>-Original Message-
>>From: Milt Epstein [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, December 23, 2002 11:27 AM
>>To: Tomcat Users List
>>Subject: Re: Mod_jk - won't execute jsp or servlets
>>
>>
>>On Mon, 23 Dec 2002, Denise Mangano wrote:
>>
>>
>>
>>>Thanks to all your help, I've gotten over some bumps.  As it stands I 
>>>can access any static pages in the Tomcat directory without having to 
>>>type port 8080 ( i.e. I can access 
>>>http://localhost/examples/servlets/index.html.  However, whenever I 
>>>try to execute a servlet or JSP it hangs indefinitely.  The only 
>>>errors appear in my mod_jk.log file:
>>>
>>>  
>>>
>>[ ... ]
>>
>>
>>>[Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket,
>>>connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] 
>>>[jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is 
>>>probably not started or is listenning on the wrong port. Failed errno 
>>>= 110
>>>  
>>>
>>[ ... ]
>>
>>This seems to be the telling message.  So is Tomcat started and 
>>running? And what port is it listening on?  More completely, what port 
>>is Apache expecting it to listen on and what port is it set to listen 
>>on?  The former is set in workers.properties.  The latter is set in 
>>server.xml, particularly in the Connector tag for the Ajp connector 
>>(because it may be listening on different ports for different th

RE: Robert Sowder's howto for JK2 in Windows

2002-12-23 Thread Rafael Fernandez
Thank you! In just 5 minutes I got mod Jk2 running and I didn't had to
go through all that hassle that other people go through!

 

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 1:30 AM
To: Tomcat Users List
Subject: Re: Robert Sowder's howto for JK2 in Windows

 


My ftp server has been turned off courtesy of new US Gov regulations. 
I'll also include instructions for JBoss, the authors name is one the
doc. 






Re: with the URL Re: Tags

2002-12-23 Thread Lindomar
Ok, thanks for all the messages!!

Lindomar.


- Original Message -
From: "Paul Campbell" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 15:55
Subject: with the URL Re: Tags


> Venha para a VilaBOL!
> O melhor lugar para você construir seu site. Fácil e grátis!
> http://vila.bol.com.br
> http://pdf.coreservlets.com/
>
> At 09:31 AM 12/23/2002 -0800, you wrote:
> >This book has good examples and explanations.
> >See Chapter 14
> >
> >At 12:08 PM 12/23/2002 -0200, you wrote:
> >>I don't know if this question is off-topic...but...
> >>I'm looking for a simple example of tag in jsp, for example "hello
World, today is ..."
> >>But i can't find this, i found complex examles that works fine, but i
don't understand yet, so i need get a simple example for understand the
behavior this kind of solution.
> >>
> >>Thanks in advanced.
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




with the URL Re: Tags

2002-12-23 Thread Paul Campbell
http://pdf.coreservlets.com/

At 09:31 AM 12/23/2002 -0800, you wrote:
>This book has good examples and explanations.
>See Chapter 14
>
>At 12:08 PM 12/23/2002 -0200, you wrote:
>>I don't know if this question is off-topic...but...
>>I'm looking for a simple example of tag in jsp, for example "hello World, today is 
>..."
>>But i can't find this, i found complex examles that works fine, but i don't 
>understand yet, so i need get a simple example for understand the behavior this kind 
>of solution.
>>
>>Thanks in advanced.
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


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




RE: [OT] Mod_jk - won't execute jsp or servlets

2002-12-23 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
My own experience is that if apache comes up before tomcat, you will have an
80% or greater chance of failure and need to do a manual restart of both
tomcat and apache.

On the flip side, if you have apache and tomcat up and running nicely and do
a tomcat restart, I need to restart apache 10% to 15% of the time.

An apache restart without a tomcat restart appears to result in a 5% or less
failure rate.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:50 AM
To: 'Tomcat Users List'
Subject: RE: [OT] Mod_jk - won't execute jsp or servlets


That is definitely a possibility. On average I waited about 10 seconds or
so.  I usually do ps -ef to make sure tomcat is running, but don't try to
pull it up in the browser to see if it really is running.  I will keep this
checklist for the future.  

Curious though.  Apache is in my startup - Tomcat is not (YET).  Will this
cause problems if I boot up then start Tomcat?  Is it better to remove httpd
from startup so I can be sure to start tomcat first?

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 12:43 PM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


I am guessing you had it working at some point in the past but tomcat and
apache did not get both get restarted in the right order, Tomcat must be
fully up before you start apache

A restart scenario we use since tomcat does not always shutdown nicely on
HP-UX:
stop apache
stop tomcat

execute ps -ef | grep java  to check to make sure Tomcat trully does stop

start tomcat
wait 30 to 60 sec and/or confirm using your 8080 port that Tomcat is started
start apache

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:42 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Jeff,

Wow, this is very strange.  You got me curious as well, and I did change it
back to "0" (mind you I was very scared to) .  Oddly enough, everything
still works.  I even tried executing some of the examples that I hadn't
accessed yet to make sure it wasn't working from classes that were built
previously, and it still works like a charm.  If it wasn't the connection
timeout setting then I haven't a clue what would have made it start
working

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 12:24 PM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Denise,

Since this week I was scheduled to update our HP-UX apache to latest version
which does include mod_jk support, I did the install this morning.  My
installation with tomcat 4.1.18 does work with the default
connectionTimeout="0".

I would be interested to know if you change it back to 0, if it will still
works.  

Jeff



-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:19 AM
To: 'Tomcat Users List'
Subject: RES: Mod_jk - won't execute jsp or servlets


I don't know what else to say But YAY! :-P

Milt - it looks like the timeout was what was doing it.  Weird thing is - I
didn't edit that.  Unless I did something by mistake that is the way that it
was shipped!!  Everything is working great!! I can access all static pages
as well as execute all servlets and JSP.   I better knock on wood and pray
nothing goes wrong to make it stop working ;)

Thank you SO MUCH to everyone for all of your help!! I definitely would have
been pulling my hair out from the roots if it weren't for this list!!

Jerry - where do you stand with your set up?  Since we have the same set up
would you like me to send you my files now that it is working for me??

Denise Mangano


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:55 AM
To: Tomcat Users List
Subject: RE: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

> Tomcat is up and running - I can view and execute examples by using
> :8080.

OK, that means Tomcat standalone is working (as controlled by the Coyote
Http Connector onport 8080)

> If the port that Tomcat is listening on is set by
> workers.properties, then that would be port 8009.  Where Apache is 
> expecting it to listen on I am not sure.

Actually, you've got it backwards.  workers.properties is part of the Apache
config, and indicates where Apache is expecting to find the (Tomcat side of
the) Ajp connector.  server.xml is part of the Tomcat config, and tells
Tomcat where it should listen for Ajp (and other protocols).

>   The email I sent was correct
> - the uncommented ports are those that were listed.  The o

RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Jeff Tulley
Denise,
   What version of Tomcat are you using?  One thing to remember is that
the CoyoteConnector JkHandler in Tomcat 4.1.(7?) up to about 4.1.14
looked into jk2.properties file for its configuration, ignoring the port
value specified in server.xml.  Then what it did was assume you wanted
some particular port value (I thought it was 8009, it may be different),
and if that port was in use it would go to the next one.  This shifting
port value was a royal pain, and this setup also wasn't conducive to
using multiple Tomcat instances.
  So, in about version 4.1.14, Costin changed the JkHandler to honor
the values set in server.xml.  

Maybe your problem is that sometimes the java-side Coyote connector WAS
listening on 8009, sometimes it wasn't.  I would move to a later release
(4.1.18?) and try again, since in that version what you have in
server.xml will work, and you just need to ensure it is in sync with
what mod_jk is looking at (workers.properties typically), and that the
worker name in that same file is in sync with the JkMount statements. 
Every time I've gotten all of the "ducks in a row" like this I've gotten
it to work.  (On NetWare and Windows, at least).


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 12/23/02 10:41:50 AM >>>
Jeff,

Wow, this is very strange.  You got me curious as well, and I did
change it
back to "0" (mind you I was very scared to) .  Oddly enough,
everything
still works.  I even tried executing some of the examples that I
hadn't
accessed yet to make sure it wasn't working from classes that were
built
previously, and it still works like a charm.  If it wasn't the
connection
timeout setting then I haven't a clue what would have made it start
working

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]]

Sent: Monday, December 23, 2002 12:24 PM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Denise,

Since this week I was scheduled to update our HP-UX apache to latest
version
which does include mod_jk support, I did the install this morning.  My
installation with tomcat 4.1.18 does work with the default
connectionTimeout="0".

I would be interested to know if you change it back to 0, if it will
still
works.  

Jeff



-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 10:19 AM
To: 'Tomcat Users List'
Subject: RES: Mod_jk - won't execute jsp or servlets


I don't know what else to say But YAY! :-P

Milt - it looks like the timeout was what was doing it.  Weird thing is
- I
didn't edit that.  Unless I did something by mistake that is the way
that it
was shipped!!  Everything is working great!! I can access all static
pages
as well as execute all servlets and JSP.   I better knock on wood and
pray
nothing goes wrong to make it stop working ;)

Thank you SO MUCH to everyone for all of your help!! I definitely would
have
been pulling my hair out from the roots if it weren't for this list!!

Jerry - where do you stand with your set up?  Since we have the same
set up
would you like me to send you my files now that it is working for me??

Denise Mangano


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:55 AM
To: Tomcat Users List
Subject: RE: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

> Tomcat is up and running - I can view and execute examples by using 
> :8080.

OK, that means Tomcat standalone is working (as controlled by the
Coyote
Http Connector onport 8080)

> If the port that Tomcat is listening on is set by 
> workers.properties, then that would be port 8009.  Where Apache is 
> expecting it to listen on I am not sure.

Actually, you've got it backwards.  workers.properties is part of the
Apache
config, and indicates where Apache is expecting to find the (Tomcat
side of
the) Ajp connector.  server.xml is part of the Tomcat config, and
tells
Tomcat where it should listen for Ajp (and other protocols).

>   The email I sent was
correct
> - the uncommented ports are those that were listed.  The only
> difference between the two is the connection Timeout settings... ( I

> posted the correct server.xml file - the second email contains the 
> correct one).

I responded to that email -- and in fact the connection timeout was the
only
thing that looked odd to me.  So that might be what's causing the
problem.


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 23, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: Mod_jk - won't execute jsp or servlets
>
>
> On Mon, 23 Dec 2002, Denise Mangano wrote:
>
> > Thanks to all your help, I've gotten over some bumps.  As it stands

> > I 

RE: RES: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
Jerry here are extracts of what I just used, I use 17080 instead of 8009

make sure that the ps is properly defined in the workers.properties
for NT ps=\

server.xml




workers.properties is attached

http.conf

# Load mod_jk
#
LoadModule jk_module modules/mod_jk.so

# Configure mod_jk
#
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info

JkMount /examples/* ajp13




Jeff


-Original Message-
From: Jerry Ford [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:34 AM
To: Tomcat Users List
Subject: Re: RES: Mod_jk - won't execute jsp or servlets


Denise:

Yes, please :)

I am still in the sinking boat.---Apache works fine by itself, Tomcat 
works fine by itself (example servlets all work, as well as my own 
HelloWorld), but Apache->Tomcat through mod_jk does not work.  At the 
moment, I can't even display the HTML pages in the examples.  That seems 
to come and go depending on what is in the config files, not sure what 
caused it to break this time.

I have printed Drew's example files and will compare them to my own, and 
I will look at the timeout value---I see in my server.xml there is *no* 
timeout specified at all.

And, yes, I would like very much to see your final config files now that 
you have a working setup.

Thanks.

Jerry

Denise Mangano wrote:

>I don't know what else to say But YAY! :-P
>
>Milt - it looks like the timeout was what was doing it.  Weird thing is - I
>didn't edit that.  Unless I did something by mistake that is the way that
it
>was shipped!!  Everything is working great!! I can access all static pages
>as well as execute all servlets and JSP.   I better knock on wood and pray
>nothing goes wrong to make it stop working ;)
>
>Thank you SO MUCH to everyone for all of your help!! I definitely would
have
>been pulling my hair out from the roots if it weren't for this list!!
>
>Jerry - where do you stand with your set up?  Since we have the same set up
>would you like me to send you my files now that it is working for me??
>
>Denise Mangano
>
>
>-Original Message-
>From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
>Sent: Monday, December 23, 2002 11:55 AM
>To: Tomcat Users List
>Subject: RE: Mod_jk - won't execute jsp or servlets
>
>
>On Mon, 23 Dec 2002, Denise Mangano wrote:
>
>  
>
>>Tomcat is up and running - I can view and execute examples by using 
>>:8080.
>>
>>
>
>OK, that means Tomcat standalone is working (as controlled by the Coyote
>Http Connector onport 8080)
>
>  
>
>>If the port that Tomcat is listening on is set by 
>>workers.properties, then that would be port 8009.  Where Apache is 
>>expecting it to listen on I am not sure.
>>
>>
>
>Actually, you've got it backwards.  workers.properties is part of the
Apache
>config, and indicates where Apache is expecting to find the (Tomcat side of
>the) Ajp connector.  server.xml is part of the Tomcat config, and tells
>Tomcat where it should listen for Ajp (and other protocols).
>
>  
>
>>  The email I sent was correct 
>>- the uncommented ports are those that were listed.  The only 
>>difference between the two is the connection Timeout settings... ( I 
>>posted the correct server.xml file - the second email contains the 
>>correct one).
>>
>>
>
>I responded to that email -- and in fact the connection timeout was the
only
>thing that looked odd to me.  So that might be what's causing the problem.
>
>
>  
>
>>-Original Message-
>>From: Milt Epstein [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, December 23, 2002 11:27 AM
>>To: Tomcat Users List
>>Subject: Re: Mod_jk - won't execute jsp or servlets
>>
>>
>>On Mon, 23 Dec 2002, Denise Mangano wrote:
>>
>>
>>
>>>Thanks to all your help, I've gotten over some bumps.  As it stands 
>>>I can access any static pages in the Tomcat directory without having 
>>>to type port 8080 ( i.e. I can access 
>>>http://localhost/examples/servlets/index.html.  However, whenever I 
>>>try to execute a servlet or JSP it hangs indefinitely.  The only 
>>>errors appear in my mod_jk.log file:
>>>
>>>  
>>>
>>[ ... ]
>>
>>
>>>[Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket,
>>>connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] 
>>>[jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is 
>>>probably not started or is listenning on the wrong port. Failed 
>>>errno = 110
>>>  
>>>
>>[ ... ]
>>
>>This seems to be the telling message.  So is Tomcat started and 
>>running? And what port is it listening on?  More completely, what port 
>>is Apache expecting it to listen on and what port is it set to listen 
>>on?  The former is set in workers.properties.  The latter is set in 
>>server.xml, particularly in the Connector tag for the Ajp connector 
>>(because it may be listening on different ports for different things, 
>>here we only care about Ajp).  The default for that is 8009.  It's 
>>probably be

RE: [OT] Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
That is definitely a possibility. On average I waited about 10 seconds or
so.  I usually do ps -ef to make sure tomcat is running, but don't try to
pull it up in the browser to see if it really is running.  I will keep this
checklist for the future.  

Curious though.  Apache is in my startup - Tomcat is not (YET).  Will this
cause problems if I boot up then start Tomcat?  Is it better to remove httpd
from startup so I can be sure to start tomcat first?

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 12:43 PM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


I am guessing you had it working at some point in the past but tomcat and
apache did not get both get restarted in the right order, Tomcat must be
fully up before you start apache

A restart scenario we use since tomcat does not always shutdown nicely on
HP-UX:
stop apache
stop tomcat

execute ps -ef | grep java  to check to make sure Tomcat trully does stop

start tomcat
wait 30 to 60 sec and/or confirm using your 8080 port that Tomcat is started
start apache

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:42 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Jeff,

Wow, this is very strange.  You got me curious as well, and I did change it
back to "0" (mind you I was very scared to) .  Oddly enough, everything
still works.  I even tried executing some of the examples that I hadn't
accessed yet to make sure it wasn't working from classes that were built
previously, and it still works like a charm.  If it wasn't the connection
timeout setting then I haven't a clue what would have made it start
working

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 12:24 PM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Denise,

Since this week I was scheduled to update our HP-UX apache to latest version
which does include mod_jk support, I did the install this morning.  My
installation with tomcat 4.1.18 does work with the default
connectionTimeout="0".

I would be interested to know if you change it back to 0, if it will still
works.  

Jeff



-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:19 AM
To: 'Tomcat Users List'
Subject: RES: Mod_jk - won't execute jsp or servlets


I don't know what else to say But YAY! :-P

Milt - it looks like the timeout was what was doing it.  Weird thing is - I
didn't edit that.  Unless I did something by mistake that is the way that it
was shipped!!  Everything is working great!! I can access all static pages
as well as execute all servlets and JSP.   I better knock on wood and pray
nothing goes wrong to make it stop working ;)

Thank you SO MUCH to everyone for all of your help!! I definitely would have
been pulling my hair out from the roots if it weren't for this list!!

Jerry - where do you stand with your set up?  Since we have the same set up
would you like me to send you my files now that it is working for me??

Denise Mangano


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:55 AM
To: Tomcat Users List
Subject: RE: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

> Tomcat is up and running - I can view and execute examples by using
> :8080.

OK, that means Tomcat standalone is working (as controlled by the Coyote
Http Connector onport 8080)

> If the port that Tomcat is listening on is set by
> workers.properties, then that would be port 8009.  Where Apache is 
> expecting it to listen on I am not sure.

Actually, you've got it backwards.  workers.properties is part of the Apache
config, and indicates where Apache is expecting to find the (Tomcat side of
the) Ajp connector.  server.xml is part of the Tomcat config, and tells
Tomcat where it should listen for Ajp (and other protocols).

>   The email I sent was correct
> - the uncommented ports are those that were listed.  The only 
> difference between the two is the connection Timeout settings... ( I 
> posted the correct server.xml file - the second email contains the 
> correct one).

I responded to that email -- and in fact the connection timeout was the only
thing that looked odd to me.  So that might be what's causing the problem.


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: Mod_jk - won't execute jsp or servlets
>
>
> On Mon, 23 Dec 2002, Denise Mangano wrote:
>
> > Thanks to all your help, I've gotte

RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
I am guessing you had it working at some point in the past but tomcat and
apache did
not get both get restarted in the right order, Tomcat must be fully up
before you start apache

A restart scenario we use since tomcat does not always shutdown nicely on
HP-UX:
stop apache
stop tomcat

execute ps -ef | grep java  to check to make sure Tomcat trully does stop

start tomcat
wait 30 to 60 sec and/or confirm using your 8080 port that Tomcat is started
start apache

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:42 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Jeff,

Wow, this is very strange.  You got me curious as well, and I did change it
back to "0" (mind you I was very scared to) .  Oddly enough, everything
still works.  I even tried executing some of the examples that I hadn't
accessed yet to make sure it wasn't working from classes that were built
previously, and it still works like a charm.  If it wasn't the connection
timeout setting then I haven't a clue what would have made it start
working

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 12:24 PM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Denise,

Since this week I was scheduled to update our HP-UX apache to latest version
which does include mod_jk support, I did the install this morning.  My
installation with tomcat 4.1.18 does work with the default
connectionTimeout="0".

I would be interested to know if you change it back to 0, if it will still
works.  

Jeff



-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:19 AM
To: 'Tomcat Users List'
Subject: RES: Mod_jk - won't execute jsp or servlets


I don't know what else to say But YAY! :-P

Milt - it looks like the timeout was what was doing it.  Weird thing is - I
didn't edit that.  Unless I did something by mistake that is the way that it
was shipped!!  Everything is working great!! I can access all static pages
as well as execute all servlets and JSP.   I better knock on wood and pray
nothing goes wrong to make it stop working ;)

Thank you SO MUCH to everyone for all of your help!! I definitely would have
been pulling my hair out from the roots if it weren't for this list!!

Jerry - where do you stand with your set up?  Since we have the same set up
would you like me to send you my files now that it is working for me??

Denise Mangano


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:55 AM
To: Tomcat Users List
Subject: RE: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

> Tomcat is up and running - I can view and execute examples by using 
> :8080.

OK, that means Tomcat standalone is working (as controlled by the Coyote
Http Connector onport 8080)

> If the port that Tomcat is listening on is set by 
> workers.properties, then that would be port 8009.  Where Apache is 
> expecting it to listen on I am not sure.

Actually, you've got it backwards.  workers.properties is part of the Apache
config, and indicates where Apache is expecting to find the (Tomcat side of
the) Ajp connector.  server.xml is part of the Tomcat config, and tells
Tomcat where it should listen for Ajp (and other protocols).

>   The email I sent was correct
> - the uncommented ports are those that were listed.  The only
> difference between the two is the connection Timeout settings... ( I 
> posted the correct server.xml file - the second email contains the 
> correct one).

I responded to that email -- and in fact the connection timeout was the only
thing that looked odd to me.  So that might be what's causing the problem.


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: Mod_jk - won't execute jsp or servlets
>
>
> On Mon, 23 Dec 2002, Denise Mangano wrote:
>
> > Thanks to all your help, I've gotten over some bumps.  As it stands 
> > I can access any static pages in the Tomcat directory without having 
> > to type port 8080 ( i.e. I can access 
> > http://localhost/examples/servlets/index.html.  However, whenever I 
> > try to execute a servlet or JSP it hangs indefinitely.  The only 
> > errors appear in my mod_jk.log file:
> >
> [ ... ]
> > [Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket,
> > connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] 
> > [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is 
> > probably not started or is listenning on the wrong port. Failed 
> > errno = 110
> [ ... ]
>
> This seems to be the telling message.  So is Tomcat started and 
> running? And what port is it li

RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
Jeff,

Wow, this is very strange.  You got me curious as well, and I did change it
back to "0" (mind you I was very scared to) .  Oddly enough, everything
still works.  I even tried executing some of the examples that I hadn't
accessed yet to make sure it wasn't working from classes that were built
previously, and it still works like a charm.  If it wasn't the connection
timeout setting then I haven't a clue what would have made it start
working

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 12:24 PM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Denise,

Since this week I was scheduled to update our HP-UX apache to latest version
which does include mod_jk support, I did the install this morning.  My
installation with tomcat 4.1.18 does work with the default
connectionTimeout="0".

I would be interested to know if you change it back to 0, if it will still
works.  

Jeff



-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:19 AM
To: 'Tomcat Users List'
Subject: RES: Mod_jk - won't execute jsp or servlets


I don't know what else to say But YAY! :-P

Milt - it looks like the timeout was what was doing it.  Weird thing is - I
didn't edit that.  Unless I did something by mistake that is the way that it
was shipped!!  Everything is working great!! I can access all static pages
as well as execute all servlets and JSP.   I better knock on wood and pray
nothing goes wrong to make it stop working ;)

Thank you SO MUCH to everyone for all of your help!! I definitely would have
been pulling my hair out from the roots if it weren't for this list!!

Jerry - where do you stand with your set up?  Since we have the same set up
would you like me to send you my files now that it is working for me??

Denise Mangano


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:55 AM
To: Tomcat Users List
Subject: RE: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

> Tomcat is up and running - I can view and execute examples by using 
> :8080.

OK, that means Tomcat standalone is working (as controlled by the Coyote
Http Connector onport 8080)

> If the port that Tomcat is listening on is set by 
> workers.properties, then that would be port 8009.  Where Apache is 
> expecting it to listen on I am not sure.

Actually, you've got it backwards.  workers.properties is part of the Apache
config, and indicates where Apache is expecting to find the (Tomcat side of
the) Ajp connector.  server.xml is part of the Tomcat config, and tells
Tomcat where it should listen for Ajp (and other protocols).

>   The email I sent was correct
> - the uncommented ports are those that were listed.  The only
> difference between the two is the connection Timeout settings... ( I 
> posted the correct server.xml file - the second email contains the 
> correct one).

I responded to that email -- and in fact the connection timeout was the only
thing that looked odd to me.  So that might be what's causing the problem.


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: Mod_jk - won't execute jsp or servlets
>
>
> On Mon, 23 Dec 2002, Denise Mangano wrote:
>
> > Thanks to all your help, I've gotten over some bumps.  As it stands 
> > I can access any static pages in the Tomcat directory without having 
> > to type port 8080 ( i.e. I can access 
> > http://localhost/examples/servlets/index.html.  However, whenever I 
> > try to execute a servlet or JSP it hangs indefinitely.  The only 
> > errors appear in my mod_jk.log file:
> >
> [ ... ]
> > [Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket,
> > connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] 
> > [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is 
> > probably not started or is listenning on the wrong port. Failed 
> > errno = 110
> [ ... ]
>
> This seems to be the telling message.  So is Tomcat started and 
> running? And what port is it listening on?  More completely, what port 
> is Apache expecting it to listen on and what port is it set to listen 
> on?  The former is set in workers.properties.  The latter is set in 
> server.xml, particularly in the Connector tag for the Ajp connector 
> (because it may be listening on different ports for different things, 
> here we only care about Ajp).  The default for that is 8009.  It's 
> probably best you post both of those files (i.e. workers.properties 
> and server.xml) so we can see for sure what you have there.
>
> You say that Tomcat is listening on port 8080, but that is the default 
> port for Tomcat's Http Connector (i.e. Tomcat stan

RE: install vs. deploy

2002-12-23 Thread Zabel, Ian
>
>todir="${build.home}/META-INF"/>
>
>and now it's ok.  However, since Ant creates META-INF
>directory automatically (and even puts MANIFEST.MF
>into it) I wonder if what I did is unnecessary and
>whether there's some property or attribute(which I
>failed to find in Ant documentation) that results in
>automatic context.xml inclusion in WAR file.


As far as I know, there is not a parameter on the WAR ant task that takes
the context.xml, so your assumption of copying the context.xml into that dir
is fine.

But, there is a nested  tag for the WAR task that I think is more
suited to your task.

Here's an example from my build.xml:



   
   ...




The docs from http://jakarta.apache.org/ant/manual/CoreTasks/war.html state:

metainf
The nested metainf element specifies a FileSet. All files included in this
fileset will end up in the META-INF directory of the war file. If this
fileset includes a file named MANIFEST.MF, the file is ignored and you will
get a warning.



Re: RES: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Jerry Ford
Denise:

Yes, please :)

I am still in the sinking boat.---Apache works fine by itself, Tomcat 
works fine by itself (example servlets all work, as well as my own 
HelloWorld), but Apache->Tomcat through mod_jk does not work.  At the 
moment, I can't even display the HTML pages in the examples.  That seems 
to come and go depending on what is in the config files, not sure what 
caused it to break this time.

I have printed Drew's example files and will compare them to my own, and 
I will look at the timeout value---I see in my server.xml there is *no* 
timeout specified at all.

And, yes, I would like very much to see your final config files now that 
you have a working setup.

Thanks.

Jerry

Denise Mangano wrote:

I don't know what else to say But YAY! :-P

Milt - it looks like the timeout was what was doing it.  Weird thing is - I
didn't edit that.  Unless I did something by mistake that is the way that it
was shipped!!  Everything is working great!! I can access all static pages
as well as execute all servlets and JSP.   I better knock on wood and pray
nothing goes wrong to make it stop working ;)

Thank you SO MUCH to everyone for all of your help!! I definitely would have
been pulling my hair out from the roots if it weren't for this list!!

Jerry - where do you stand with your set up?  Since we have the same set up
would you like me to send you my files now that it is working for me??

Denise Mangano


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:55 AM
To: Tomcat Users List
Subject: RE: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

 

Tomcat is up and running - I can view and execute examples by using 
:8080.
   


OK, that means Tomcat standalone is working (as controlled by the Coyote
Http Connector onport 8080)

 

   If the port that Tomcat is listening on is set by 
workers.properties, then that would be port 8009.  Where Apache is 
expecting it to listen on I am not sure.
   


Actually, you've got it backwards.  workers.properties is part of the Apache
config, and indicates where Apache is expecting to find the (Tomcat side of
the) Ajp connector.  server.xml is part of the Tomcat config, and tells
Tomcat where it should listen for Ajp (and other protocols).

 

 The email I sent was correct 
- the uncommented ports are those that were listed.  The only 
difference between the two is the connection Timeout settings... ( I 
posted the correct server.xml file - the second email contains the 
correct one).
   


I responded to that email -- and in fact the connection timeout was the only
thing that looked odd to me.  So that might be what's causing the problem.


 

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 11:27 AM
To: Tomcat Users List
Subject: Re: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

   

Thanks to all your help, I've gotten over some bumps.  As it stands 
I can access any static pages in the Tomcat directory without having 
to type port 8080 ( i.e. I can access 
http://localhost/examples/servlets/index.html.  However, whenever I 
try to execute a servlet or JSP it hangs indefinitely.  The only 
errors appear in my mod_jk.log file:

 

[ ... ]
   

[Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket,
connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] 
[jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is 
probably not started or is listenning on the wrong port. Failed 
errno = 110
 

[ ... ]

This seems to be the telling message.  So is Tomcat started and 
running? And what port is it listening on?  More completely, what port 
is Apache expecting it to listen on and what port is it set to listen 
on?  The former is set in workers.properties.  The latter is set in 
server.xml, particularly in the Connector tag for the Ajp connector 
(because it may be listening on different ports for different things, 
here we only care about Ajp).  The default for that is 8009.  It's 
probably best you post both of those files (i.e. workers.properties 
and server.xml) so we can see for sure what you have there.

You say that Tomcat is listening on port 8080, but that is the default 
port for Tomcat's Http Connector (i.e. Tomcat standalone).  So I 
suspect that is not the relevant info here.

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: 

For additional commands, e-mail: 


--
To unsubscribe, e-mail:
   


 

For additional commands, e-mail: 


   


Milt Epstein
Research Programmer
Integration and Software Engineering (ISE

Re: Tags

2002-12-23 Thread Matt Harris
What book?  

Paul Campbell wrote:
> 
> This book has good examples and explanations.
> See Chapter 14
> 
> At 12:08 PM 12/23/2002 -0200, you wrote:
> >I don't know if this question is off-topic...but...
> >I'm looking for a simple example of tag in jsp, for example "hello World, today is 
>..."
> >But i can't find this, i found complex examles that works fine, but i don't 
>understand yet, so i need get a simple example for understand the behavior this kind 
>of solution.
> >
> >Thanks in advanced.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-- 
/*
 *
 * Matt Harris - Senior UNIX Systems Engineer
 * Smithsonian Institution, OCIO
 *
 */

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




Re: Tags

2002-12-23 Thread Paul Campbell
This book has good examples and explanations.
See Chapter 14

At 12:08 PM 12/23/2002 -0200, you wrote:
>I don't know if this question is off-topic...but...
>I'm looking for a simple example of tag in jsp, for example "hello World, today is 
>..."
>But i can't find this, i found complex examles that works fine, but i don't 
>understand yet, so i need get a simple example for understand the behavior this kind 
>of solution.
>
>Thanks in advanced.


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




RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
Denise,

Since this week I was scheduled to update our HP-UX apache to latest version
which does include mod_jk support,
I did the install this morning.  My installation with tomcat 4.1.18 does
work with the default connectionTimeout="0".

I would be interested to know if you change it back to 0, if it will still
works.  

Jeff



-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 10:19 AM
To: 'Tomcat Users List'
Subject: RES: Mod_jk - won't execute jsp or servlets


I don't know what else to say But YAY! :-P

Milt - it looks like the timeout was what was doing it.  Weird thing is - I
didn't edit that.  Unless I did something by mistake that is the way that it
was shipped!!  Everything is working great!! I can access all static pages
as well as execute all servlets and JSP.   I better knock on wood and pray
nothing goes wrong to make it stop working ;)

Thank you SO MUCH to everyone for all of your help!! I definitely would have
been pulling my hair out from the roots if it weren't for this list!!

Jerry - where do you stand with your set up?  Since we have the same set up
would you like me to send you my files now that it is working for me??

Denise Mangano


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:55 AM
To: Tomcat Users List
Subject: RE: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

> Tomcat is up and running - I can view and execute examples by using 
> :8080.

OK, that means Tomcat standalone is working (as controlled by the Coyote
Http Connector onport 8080)

> If the port that Tomcat is listening on is set by 
> workers.properties, then that would be port 8009.  Where Apache is 
> expecting it to listen on I am not sure.

Actually, you've got it backwards.  workers.properties is part of the Apache
config, and indicates where Apache is expecting to find the (Tomcat side of
the) Ajp connector.  server.xml is part of the Tomcat config, and tells
Tomcat where it should listen for Ajp (and other protocols).

>   The email I sent was correct 
> - the uncommented ports are those that were listed.  The only 
> difference between the two is the connection Timeout settings... ( I 
> posted the correct server.xml file - the second email contains the 
> correct one).

I responded to that email -- and in fact the connection timeout was the only
thing that looked odd to me.  So that might be what's causing the problem.


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: Mod_jk - won't execute jsp or servlets
>
>
> On Mon, 23 Dec 2002, Denise Mangano wrote:
>
> > Thanks to all your help, I've gotten over some bumps.  As it stands 
> > I can access any static pages in the Tomcat directory without having 
> > to type port 8080 ( i.e. I can access 
> > http://localhost/examples/servlets/index.html.  However, whenever I 
> > try to execute a servlet or JSP it hangs indefinitely.  The only 
> > errors appear in my mod_jk.log file:
> >
> [ ... ]
> > [Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket,
> > connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] 
> > [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is 
> > probably not started or is listenning on the wrong port. Failed 
> > errno = 110
> [ ... ]
>
> This seems to be the telling message.  So is Tomcat started and 
> running? And what port is it listening on?  More completely, what port 
> is Apache expecting it to listen on and what port is it set to listen 
> on?  The former is set in workers.properties.  The latter is set in 
> server.xml, particularly in the Connector tag for the Ajp connector 
> (because it may be listening on different ports for different things, 
> here we only care about Ajp).  The default for that is 8009.  It's 
> probably best you post both of those files (i.e. workers.properties 
> and server.xml) so we can see for sure what you have there.
>
> You say that Tomcat is listening on port 8080, but that is the default 
> port for Tomcat's Http Connector (i.e. Tomcat standalone).  So I 
> suspect that is not the relevant info here.
>
> 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: 
> 
> For additional commands, e-mail: 
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail: 
> 
>

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

RES: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
I don't know what else to say But YAY! :-P

Milt - it looks like the timeout was what was doing it.  Weird thing is - I
didn't edit that.  Unless I did something by mistake that is the way that it
was shipped!!  Everything is working great!! I can access all static pages
as well as execute all servlets and JSP.   I better knock on wood and pray
nothing goes wrong to make it stop working ;)

Thank you SO MUCH to everyone for all of your help!! I definitely would have
been pulling my hair out from the roots if it weren't for this list!!

Jerry - where do you stand with your set up?  Since we have the same set up
would you like me to send you my files now that it is working for me??

Denise Mangano


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:55 AM
To: Tomcat Users List
Subject: RE: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

> Tomcat is up and running - I can view and execute examples by using 
> :8080.

OK, that means Tomcat standalone is working (as controlled by the Coyote
Http Connector onport 8080)

> If the port that Tomcat is listening on is set by 
> workers.properties, then that would be port 8009.  Where Apache is 
> expecting it to listen on I am not sure.

Actually, you've got it backwards.  workers.properties is part of the Apache
config, and indicates where Apache is expecting to find the (Tomcat side of
the) Ajp connector.  server.xml is part of the Tomcat config, and tells
Tomcat where it should listen for Ajp (and other protocols).

>   The email I sent was correct 
> - the uncommented ports are those that were listed.  The only 
> difference between the two is the connection Timeout settings... ( I 
> posted the correct server.xml file - the second email contains the 
> correct one).

I responded to that email -- and in fact the connection timeout was the only
thing that looked odd to me.  So that might be what's causing the problem.


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: Mod_jk - won't execute jsp or servlets
>
>
> On Mon, 23 Dec 2002, Denise Mangano wrote:
>
> > Thanks to all your help, I've gotten over some bumps.  As it stands 
> > I can access any static pages in the Tomcat directory without having 
> > to type port 8080 ( i.e. I can access 
> > http://localhost/examples/servlets/index.html.  However, whenever I 
> > try to execute a servlet or JSP it hangs indefinitely.  The only 
> > errors appear in my mod_jk.log file:
> >
> [ ... ]
> > [Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket,
> > connect() failed errno = 110 [Mon Dec 23 09:52:47 2002] 
> > [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is 
> > probably not started or is listenning on the wrong port. Failed 
> > errno = 110
> [ ... ]
>
> This seems to be the telling message.  So is Tomcat started and 
> running? And what port is it listening on?  More completely, what port 
> is Apache expecting it to listen on and what port is it set to listen 
> on?  The former is set in workers.properties.  The latter is set in 
> server.xml, particularly in the Connector tag for the Ajp connector 
> (because it may be listening on different ports for different things, 
> here we only care about Ajp).  The default for that is 8009.  It's 
> probably best you post both of those files (i.e. workers.properties 
> and server.xml) so we can see for sure what you have there.
>
> You say that Tomcat is listening on port 8080, but that is the default 
> port for Tomcat's Http Connector (i.e. Tomcat standalone).  So I 
> suspect that is not the relevant info here.
>
> 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: 
> 
> For additional commands, e-mail: 
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail: 
> 
>

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:

For additional commands, e-mail:


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




javax.sql.datasource

2002-12-23 Thread sunil . kumar
hi all,

where i can find out javax.sql.datasource (in which .jar file)

TIA

best regards
sunil



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




ssl configuration in tomcat

2002-12-23 Thread Davendra Kumar

hi everyone... i hope anyone can help me in this problem
i 've installed Apache Tomcat 4.1.12LE
and j2sdk1.4.1 .Yesterday i tried configuring SSL in tomcat for my login 
page.
so i followed the steps provided in the documentation. the documentation 
said choose

JSSE an installed extension by copying all three JAR files (jcert.jar, 
jnet.jar, and

jsse.jar) into your JAVA_HOME\jre\lib\ext directory but i could only find 
the jsse.jar

file so i copyied jsse.jar file to JAVA_HOME\jre\lib\ext after that i did 
the keytool

configuration from C:\j2sdk1.4.1  during keytool process i created my own 
password.

after that i removed the comments in the server.xml like shown below,
and added the keystore password with my own..password


  port="8443" minProcessors="5" maxProcessors="75"
  enableLookups="true"
	   acceptCount="10" debug="0" scheme="https" secure="true"
  useURIValidationHack="false">
 
  clientAuth="false" protocol="TLS" keystorePass="mypassword" 
/>

i restarted tomcat and typed https://localhost:8443/  and it displayed The 
page cannot

be displayed.. so my question is where did i go wrong and what should i do 
next...







_
Add photos to your e-mail with MSN 8. Get 3 months FREE*. 
http://join.msn.com/?page=features/featuredemail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_addphotos_3mf


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



Re: Tags

2002-12-23 Thread Jacob Kjome
Hello Lindomar,

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

Jake

Monday, December 23, 2002, 8:08:10 AM, you wrote:

L> I don't know if this question is off-topic...but...
L> I'm looking for a simple example of tag in jsp, for example "hello World, today is 
..."
L> But i can't find this, i found complex examles that works fine, but i don't 
understand yet, so i need get a simple example for understand the behavior this kind 
of solution.

L> Thanks in advanced.



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
have you tried using the non-coyote ajp onnector that is provided in the
server.xml?
All the Tomcat Docs say the coyote one is for use with JK2.  While i thought
I have seen on this list that
people use it with JK, you may be in a weird niche.


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 9:53 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


My apologies -  I sent the updated server.xml right after.  

I had actually originally followed John's how-to but couldn't even get to
the static pages in my webapps directory.  So based on someon else's
suggestion, I opted not to use the mod_jk.conf file and instead place
directives directly into my httpd.conf file.  They also suggested the
workers.properties file as I have it. I tried to change host=localhost but
that did not change anything.  It still gets hung up when I try to execute
the servlets and jsp's.

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:28 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


In the attached server.xml, active ajp13 is

-  
   

the one you show below is actually commented out in the file

That said, I would suggest you modify your workers.properties file to
worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost
worker.worker1.port=8009

localhost is the standard domain name for the loopback interface 127.0.0.1,
which is usually the default IP address on which TOMCAT listens if I recall.
For the two mod_jk implementation I have set up on Linux, I have left this
as localhost.  this is also how they show it in the sample file found at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

and on his how to list, John Turner States the following,
http://www.johnturner.com/howto/apache1-tomcat404-howto.html,

5) Create a file in CATALINA_HOME/conf/jk called workers.properties. That
file should look like this: 


# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME 
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.0_01
#
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009

# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=localhost

worker.ajp13.type=ajp13
#
# END workers.properties


He uses ajp13 where you use worker1

Jeff




-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 9:16 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Hello :)

Here is the content of my workers.properties file: worker.list=worker1
worker.worker1.type=ajp13 worker.worker1.host=www.ptpweb.com
worker.worker1.port=8009

In my server.xml file I have left everything as the defaults.  Right now
there are only two connectors that are NOT commented out and those are 
 





Could this be my problem?  I attached my server.xml file just to be sure if
there was anything else to check for...

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 10:36 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


You may have posted this already but I could not find it in among all the
emails over the weekend but could you post/repost your workers.properties
file as well as the connector from your server.xml you setup to accept
JK/ajp1.3 connections

For the workers.properies you need to make sure that you call the worker
thread by the same name you did in the http.conf.  You used worker1 in
http.conf.  However quite often it is called ajp13 in the workers.properties
examples available on the web.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 8:26 AM
To: 'Tomcat Users List'
Subject: Mod_jk - won't execute jsp or servlets


Thanks to all your help, I've gotten over some bumps.  As it stands I can
access any static pages in the Tomcat directory without having to type port
8080 ( i.e. I can access http://localhost/examples/servlets/index.html.
However, whenever I try to execute a servlet or JSP it hangs indefinitely.
The only errors appear in my mod_jk.log file:

[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1827)]:
mod_jk::jk_translate, c

RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Milt Epstein
On Mon, 23 Dec 2002, Denise Mangano wrote:

> Tomcat is up and running - I can view and execute examples by using
> :8080.

OK, that means Tomcat standalone is working (as controlled by the
Coyote Http Connector onport 8080)

> If the port that Tomcat is listening on is set by
> workers.properties, then that would be port 8009.  Where Apache is
> expecting it to listen on I am not sure.

Actually, you've got it backwards.  workers.properties is part of the
Apache config, and indicates where Apache is expecting to find the
(Tomcat side of the) Ajp connector.  server.xml is part of the Tomcat
config, and tells Tomcat where it should listen for Ajp (and other
protocols).

>   The email I sent was
> correct - the uncommented ports are those that were listed.  The
> only difference between the two is the connection Timeout
> settings... ( I posted the correct server.xml file - the second
> email contains the correct one).

I responded to that email -- and in fact the connection timeout was
the only thing that looked odd to me.  So that might be what's causing
the problem.


> -Original Message-
> From: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: Mod_jk - won't execute jsp or servlets
>
>
> On Mon, 23 Dec 2002, Denise Mangano wrote:
>
> > Thanks to all your help, I've gotten over some bumps.  As it stands I
> > can access any static pages in the Tomcat directory without having to
> > type port 8080 ( i.e. I can access
> > http://localhost/examples/servlets/index.html.  However, whenever I
> > try to execute a servlet or JSP it hangs indefinitely.  The only
> > errors appear in my mod_jk.log file:
> >
> [ ... ]
> > [Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket,
> > connect() failed errno = 110 [Mon Dec 23 09:52:47 2002]
> > [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is
> > probably not started or is listenning on the wrong port. Failed errno
> > = 110
> [ ... ]
>
> This seems to be the telling message.  So is Tomcat started and running?
> And what port is it listening on?  More completely, what port is Apache
> expecting it to listen on and what port is it set to listen on?  The former
> is set in workers.properties.  The latter is set in server.xml, particularly
> in the Connector tag for the Ajp connector (because it may be listening on
> different ports for different things, here we only care about Ajp).  The
> default for that is 8009.  It's probably best you post both of those files
> (i.e. workers.properties and server.xml) so we can see for sure what you
> have there.
>
> You say that Tomcat is listening on port 8080, but that is the default port
> for Tomcat's Http Connector (i.e. Tomcat standalone).  So I suspect that is
> not the relevant info here.
>
> 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:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>

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:   
For additional commands, e-mail: 




RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
Drew,

Thanks - I will look at the files and compare. 

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:44 AM
To: Tomcat Users List
Subject: RE: Mod_jk - won't execute jsp or servlets


Denise,

I am basically doing what you are trying to do.  I'm running Apache/SSL with
Tomcat using the mod_jk connector.  Here are my configs.  These are working
on my server which is Solaris but the flavor shouldn't matter.  I hope these
help you get it going.

Regards,

Drew

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Hello :)

Here is the content of my workers.properties file: worker.list=worker1
worker.worker1.type=ajp13 worker.worker1.host=www.ptpweb.com
worker.worker1.port=8009

In my server.xml file I have left everything as the defaults.  Right now
there are only two connectors that are NOT commented out and those are 
 





Could this be my problem?  I attached my server.xml file just to be sure if
there was anything else to check for...

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 10:36 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


You may have posted this already but I could not find it in among all the
emails over the weekend but could you post/repost your workers.properties
file as well as the connector from your server.xml you setup to accept
JK/ajp1.3 connections

For the workers.properies you need to make sure that you call the worker
thread by the same name you did in the http.conf.  You used worker1 in
http.conf.  However quite often it is called ajp13 in the workers.properties
examples available on the web.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 8:26 AM
To: 'Tomcat Users List'
Subject: Mod_jk - won't execute jsp or servlets


Thanks to all your help, I've gotten over some bumps.  As it stands I can
access any static pages in the Tomcat directory without having to type port
8080 ( i.e. I can access http://localhost/examples/servlets/index.html.
However, whenever I try to execute a servlet or JSP it hangs indefinitely.
The only errors appear in my mod_jk.log file:

[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1827)]:
mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec
23 09:49:31 2002]  [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias
child_dir: images [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1876)]:
mod_jk::jk_translate, AutoAlias OK for file:
/usr/local/tomcat/webapps//examples/images/code.gif
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/servlet/HelloWorldExample'
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 ->
/examples/servlet/ [Mon Dec 23 09:49:38 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name worker1 [Mon Dec 23 09:49:38 2002]  [jk_worker.c
(136)]: wc_get_worker_for_name, done  found a worker [Mon Dec 23 09:49:38
2002]  [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Mon Dec 23
09:49:38 2002]  [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Mon
Dec 23 09:49:38 2002]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Mon Dec 23 09:49:38 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done [Mon Dec 23 09:49:38 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:49:38 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11 [Mon Dec 23 09:52:47 2002]  [jk_connect.c (174)]:
jk_open_socket, after connect ret = -1 [Mon Dec 23 09:52:47 2002]
[jk_connect.c (203)]: jk_open_socket, connect() failed errno = 110 [Mon Dec
23 09:52:47 2002]  [jk_ajp_common.c (626)]: Error connecting to tomcat.
Tomcat is probably not started or is listenning on the wrong port. Failed
errno = 110 [Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (874)]: Error
connecting to the Tomcat process. [Mon Dec 23 09:52:47 2002]
[jk_ajp_common.c (1190)]: sending request to tomcat failed in send loop.
err=0 [Mon Dec 23 09:52:47 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11

These are the follo

RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Milt Epstein
> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 11:16 AM
> To: 'Tomcat Users List'
> Subject: RE: Mod_jk - won't execute jsp or servlets
>
> Hello :)
>
> Here is the content of my workers.properties file: worker.list=worker1
> worker.worker1.type=ajp13 worker.worker1.host=www.ptpweb.com
> worker.worker1.port=8009
>
> In my server.xml file I have left everything as the defaults.  Right now
> there are only two connectors that are NOT commented out and those are
>  
> port="8080" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0" connectionTimeout="2"
>useURIValidationHack="false" disableUploadTimeout="true" />
>
> 
> port="8009" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="10" debug="0" connectionTimeout="0"
>useURIValidationHack="false"
>
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
> Could this be my problem?  I attached my server.xml file just to be
> sure if there was anything else to check for...
[ ... ]

These look OK as far as my understanding of these things go (it's the
second Connector tag above that's the relevant one).  There is one
thing odd that might be worthy of investigating, though.  That's
having the connectionTimeout be 0.  Did it come that way, or did you
set it to that yourself?  By my reading of the docs (which are a bit
confusing on this point), that'll cause it to timeout every time; a
setting of -1 is what disables it, if that's what you wanted to do.
Or you could set it to 2 like the Coyote Http Connector above it.
Or leave it blank, which means it would use the default (6).
Anyway, it should be a relatively simple matter to try it with a
different value (restarting Tomcat, of course) and seeing if it makes
a difference.  (You can also try setting the host value to localhost
in workers.properties, as someone else suggested -- that will require
restarting Apache.)

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:   
For additional commands, e-mail: 




RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
My apologies -  I sent the updated server.xml right after.  

I had actually originally followed John's how-to but couldn't even get to
the static pages in my webapps directory.  So based on someon else's
suggestion, I opted not to use the mod_jk.conf file and instead place
directives directly into my httpd.conf file.  They also suggested the
workers.properties file as I have it. I tried to change host=localhost but
that did not change anything.  It still gets hung up when I try to execute
the servlets and jsp's.

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:28 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


In the attached server.xml, active ajp13 is

-  
   

the one you show below is actually commented out in the file

That said, I would suggest you modify your workers.properties file to
worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost
worker.worker1.port=8009

localhost is the standard domain name for the loopback interface 127.0.0.1,
which is usually the default IP address on which TOMCAT listens if I recall.
For the two mod_jk implementation I have set up on Linux, I have left this
as localhost.  this is also how they show it in the sample file found at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

and on his how to list, John Turner States the following,
http://www.johnturner.com/howto/apache1-tomcat404-howto.html,

5) Create a file in CATALINA_HOME/conf/jk called workers.properties. That
file should look like this: 


# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME 
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.0_01
#
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009

# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=localhost

worker.ajp13.type=ajp13
#
# END workers.properties


He uses ajp13 where you use worker1

Jeff




-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 9:16 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Hello :)

Here is the content of my workers.properties file: worker.list=worker1
worker.worker1.type=ajp13 worker.worker1.host=www.ptpweb.com
worker.worker1.port=8009

In my server.xml file I have left everything as the defaults.  Right now
there are only two connectors that are NOT commented out and those are 
 





Could this be my problem?  I attached my server.xml file just to be sure if
there was anything else to check for...

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 10:36 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


You may have posted this already but I could not find it in among all the
emails over the weekend but could you post/repost your workers.properties
file as well as the connector from your server.xml you setup to accept
JK/ajp1.3 connections

For the workers.properies you need to make sure that you call the worker
thread by the same name you did in the http.conf.  You used worker1 in
http.conf.  However quite often it is called ajp13 in the workers.properties
examples available on the web.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 8:26 AM
To: 'Tomcat Users List'
Subject: Mod_jk - won't execute jsp or servlets


Thanks to all your help, I've gotten over some bumps.  As it stands I can
access any static pages in the Tomcat directory without having to type port
8080 ( i.e. I can access http://localhost/examples/servlets/index.html.
However, whenever I try to execute a servlet or JSP it hangs indefinitely.
The only errors appear in my mod_jk.log file:

[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1827)]:
mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec
23 09:49:31 2002]  [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias
child_dir: images [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1876)]:
mod_jk::jk_translate, AutoAlias OK for file:
/usr/local/tomcat/webapps//examples/images/code.gif
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (477)

RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
Tomcat is up and running - I can view and execute examples by using :8080.
If the port that Tomcat is listening on is set by workers.properties, then
that would be port 8009.  Where Apache is expecting it to listen on I am not
sure.  The email I sent was correct - the uncommented ports are those that
were listed.  The only difference between the two is the connection Timeout
settings... ( I posted the correct server.xml file - the second email
contains the correct one).

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:27 AM
To: Tomcat Users List
Subject: Re: Mod_jk - won't execute jsp or servlets


On Mon, 23 Dec 2002, Denise Mangano wrote:

> Thanks to all your help, I've gotten over some bumps.  As it stands I 
> can access any static pages in the Tomcat directory without having to 
> type port 8080 ( i.e. I can access 
> http://localhost/examples/servlets/index.html.  However, whenever I 
> try to execute a servlet or JSP it hangs indefinitely.  The only 
> errors appear in my mod_jk.log file:
>
[ ... ]
> [Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket, 
> connect() failed errno = 110 [Mon Dec 23 09:52:47 2002]  
> [jk_ajp_common.c (626)]: Error connecting to tomcat. Tomcat is 
> probably not started or is listenning on the wrong port. Failed errno 
> = 110
[ ... ]

This seems to be the telling message.  So is Tomcat started and running?
And what port is it listening on?  More completely, what port is Apache
expecting it to listen on and what port is it set to listen on?  The former
is set in workers.properties.  The latter is set in server.xml, particularly
in the Connector tag for the Ajp connector (because it may be listening on
different ports for different things, here we only care about Ajp).  The
default for that is 8009.  It's probably best you post both of those files
(i.e. workers.properties and server.xml) so we can see for sure what you
have there.

You say that Tomcat is listening on port 8080, but that is the default port
for Tomcat's Http Connector (i.e. Tomcat standalone).  So I suspect that is
not the relevant info here.

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:

For additional commands, e-mail:


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




RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Hamilton, Andrew
Denise,

I am basically doing what you are trying to do.  I'm running Apache/SSL with
Tomcat using the mod_jk connector.  Here are my configs.  These are working
on my server which is Solaris but the flavor shouldn't matter.  I hope these
help you get it going.

Regards,

Drew

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Hello :)

Here is the content of my workers.properties file:
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=www.ptpweb.com
worker.worker1.port=8009

In my server.xml file I have left everything as the defaults.  Right now
there are only two connectors that are NOT commented out and those are 
 





Could this be my problem?  I attached my server.xml file just to be sure if
there was anything else to check for...

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 10:36 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


You may have posted this already but I could not find it in among all the
emails over the weekend but could you post/repost your workers.properties
file as well as the connector from your server.xml you setup to accept
JK/ajp1.3 connections

For the workers.properies you need to make sure that you call the worker
thread by the same name you did in the http.conf.  You used worker1 in
http.conf.  However quite often it is called ajp13 in the workers.properties
examples available on the web.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 8:26 AM
To: 'Tomcat Users List'
Subject: Mod_jk - won't execute jsp or servlets


Thanks to all your help, I've gotten over some bumps.  As it stands I can
access any static pages in the Tomcat directory without having to type port
8080 ( i.e. I can access http://localhost/examples/servlets/index.html.
However, whenever I try to execute a servlet or JSP it hangs indefinitely.
The only errors appear in my mod_jk.log file:

[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1827)]:
mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec
23 09:49:31 2002]  [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias
child_dir: images [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1876)]:
mod_jk::jk_translate, AutoAlias OK for file:
/usr/local/tomcat/webapps//examples/images/code.gif
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/servlet/HelloWorldExample'
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 ->
/examples/servlet/ [Mon Dec 23 09:49:38 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name worker1 [Mon Dec 23 09:49:38 2002]  [jk_worker.c
(136)]: wc_get_worker_for_name, done  found a worker [Mon Dec 23 09:49:38
2002]  [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Mon Dec 23
09:49:38 2002]  [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Mon
Dec 23 09:49:38 2002]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Mon Dec 23 09:49:38 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done [Mon Dec 23 09:49:38 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:49:38 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11 [Mon Dec 23 09:52:47 2002]  [jk_connect.c (174)]:
jk_open_socket, after connect ret = -1 [Mon Dec 23 09:52:47 2002]
[jk_connect.c (203)]: jk_open_socket, connect() failed errno = 110 [Mon Dec
23 09:52:47 2002]  [jk_ajp_common.c (626)]: Error connecting to tomcat.
Tomcat is probably not started or is listenning on the wrong port. Failed
errno = 110 [Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (874)]: Error
connecting to the Tomcat process. [Mon Dec 23 09:52:47 2002]
[jk_ajp_common.c (1190)]: sending request to tomcat failed in send loop.
err=0 [Mon Dec 23 09:52:47 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11

These are the following changes I have made to my httpd.conf file - all on
top level: LoadModule jk_module JkWorkersFile
/usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %r %s %T"
Alias /examples /usr/local/tomcat

Re: mod_jk...again

2002-12-23 Thread Jerry Ford
Justin:

My only objective is to get a working copy of mod_jk.

I downloaded a binary from John Turner's how-to page (I cannot find 
binary connectors on the jakarta website---what URL do you have for 
them?) but I have so far been unable to make it work.  I now think it's 
my configuration, not the binary, so being able to compile isn't 
ciritcal.  Error messages I'm seeing in the Apache log suggest that 
mod_jk is getting loaded.  

More important to me is getting it to work, and so far I'm have no success.

Jerry

Justin L. Spies wrote:

Jerry,
I've never tried building mod_jk from source as the files always existed
on the Jakarta website.  Although I don't see it here, are you looking
to perform a "customized" compile?  If not, is there another reason to
compile from source instead of using the binaries?  I've never had any
problems getting mod_jk to work--just DBCP and that was because of a
stupid typo on my part.

Sincerely,
Pantek Incorporated
Justin L. Spies

URI: http://www.pantek.com
Ph   440.519.1802
Fax  440.248.5274
Cell 440.336.3317 

-Original Message-
From: Jerry Ford [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 20, 2002 8:57 PM
To: Tomcat Users List
Subject: mod_jk...again


When I try to build mod_jk from the source contained in 
jakarta-tomcat-connectors-4.1.12-src.tar, the process breaks before it 
gets started.

I am following the instructions on John Turner's how-to page, but when I

run the configure script, it breaks at ltconfig---I get an error message

that says a host type must be specified when the --no-verify flag is
used.  

But running ltconfig --help shows no parameter for specifying host type,

and the command is run from the configure script anyway.  

Can anyone tell me what's going on, and more importantly how do I 
correct it?

Here's the output when I run configure; the path to apxs is correct, and

JAVA_HOME points to a valid Java 1.4 JDK:

[jford@gizmo native]$ ./configure 
--with-apxs=../../../apache_1.3.27/bin/apxs --with-java-home=$JAVA_HOME
checking for a BSD-compatible install... /usr/bin/install -c checking
whether build environment is sane... yes checking whether make sets
$(MAKE)... yes checking for working aclocal... found checking for
working autoconf... found checking for working automake... found
checking for working autoheader... found checking for working
makeinfo... found checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu checking for ranlib...
ranlib checking for gcc... gcc checking for C compiler default output...
a.out checking whether the C compiler works... yes checking whether we
are cross compiling... no checking for suffix of executables... checking
for suffix of object files... o checking whether we are using the GNU C
compiler... yes checking whether gcc accepts -g... yes checking for gcc
option to accept ANSI C... none needed checking for ld used by GCC...
/usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s
works... yes
ltconfig: you must specify a host type if you use `--no-verify' Try
`ltconfig --help' for more information.
configure: error: libtool configure failed
[jford@gizmo native]$



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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



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




Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar

sorry for replicating the same query!!! anyone can help

TIA

bringing attention to my old problem like i'm unable to compile DBTest.java
(i compiled the same in another machine where oracle 9i is running, and
copied to the machine where tomcat is running :))

I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
---


   

sunil.kumar@imasst 

elecom.com   To: "Tomcat Users List" 
<[EMAIL PROTECTED]>  
 cc:   

12/23/2002 02:53 Subject: Re: DataSource error (DBCP)  

PM 

Please respond to  

"Tomcat Users  

List"  

   

   






that's cool!!! worked.

bringing attention to my old problem like i'm unable to compile DBTest.java
(i compiled the same in another machine where oracle 9i is running, and
copied to the machine where tomcat is running :))

I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
---



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






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




RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
In the attached server.xml, active ajp13 is

-  
   

the one you show below is actually commented out in the file

That said, I would suggest you modify your workers.properties file to
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009

localhost is the standard domain name for the loopback interface 127.0.0.1,
which is usually the default IP address on which TOMCAT listens if I recall.
For the two mod_jk implementation I have set up on Linux, I have left this
as localhost.  this is also how they show it in the sample file found at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

and on his how to list, John Turner States the following,
http://www.johnturner.com/howto/apache1-tomcat404-howto.html,

5) Create a file in CATALINA_HOME/conf/jk called workers.properties. That
file should look like this: 


# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME 
workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.0_01
#
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009

# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=localhost

worker.ajp13.type=ajp13
#
# END workers.properties


He uses ajp13 where you use worker1

Jeff




-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 9:16 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Hello :)

Here is the content of my workers.properties file:
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=www.ptpweb.com
worker.worker1.port=8009

In my server.xml file I have left everything as the defaults.  Right now
there are only two connectors that are NOT commented out and those are 
 





Could this be my problem?  I attached my server.xml file just to be sure if
there was anything else to check for...

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 10:36 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


You may have posted this already but I could not find it in among all the
emails over the weekend but could you post/repost your workers.properties
file as well as the connector from your server.xml you setup to accept
JK/ajp1.3 connections

For the workers.properies you need to make sure that you call the worker
thread by the same name you did in the http.conf.  You used worker1 in
http.conf.  However quite often it is called ajp13 in the workers.properties
examples available on the web.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 8:26 AM
To: 'Tomcat Users List'
Subject: Mod_jk - won't execute jsp or servlets


Thanks to all your help, I've gotten over some bumps.  As it stands I can
access any static pages in the Tomcat directory without having to type port
8080 ( i.e. I can access http://localhost/examples/servlets/index.html.
However, whenever I try to execute a servlet or JSP it hangs indefinitely.
The only errors appear in my mod_jk.log file:

[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1827)]:
mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec
23 09:49:31 2002]  [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias
child_dir: images [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1876)]:
mod_jk::jk_translate, AutoAlias OK for file:
/usr/local/tomcat/webapps//examples/images/code.gif
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/servlet/HelloWorldExample'
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 ->
/examples/servlet/ [Mon Dec 23 09:49:38 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name worker1 [Mon Dec 23 09:49:38 2002]  [jk_worker.c
(136)]: wc_get_worker_for_name, done  found a worker [Mon Dec 23 09:49:38
2002]  [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Mon Dec 23
09:49:38 2002]  [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Mon
Dec 23 09:49:38 2002]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Mon Dec 23 09:49:38 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done [Mon Dec 23 09:49:38 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:49

Re: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Milt Epstein
On Mon, 23 Dec 2002, Denise Mangano wrote:

> Thanks to all your help, I've gotten over some bumps.  As it stands
> I can access any static pages in the Tomcat directory without having
> to type port 8080 ( i.e. I can access
> http://localhost/examples/servlets/index.html.  However, whenever I
> try to execute a servlet or JSP it hangs indefinitely.  The only
> errors appear in my mod_jk.log file:
>
[ ... ]
> [Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket, connect()
> failed errno = 110
> [Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (626)]: Error connecting to
> tomcat. Tomcat is probably not started or is listenning on the wrong port.
> Failed errno = 110
[ ... ]

This seems to be the telling message.  So is Tomcat started and
running?  And what port is it listening on?  More completely, what
port is Apache expecting it to listen on and what port is it set to
listen on?  The former is set in workers.properties.  The latter is
set in server.xml, particularly in the Connector tag for the Ajp
connector (because it may be listening on different ports for
different things, here we only care about Ajp).  The default for that
is 8009.  It's probably best you post both of those files
(i.e. workers.properties and server.xml) so we can see for sure what
you have there.

You say that Tomcat is listening on port 8080, but that is the default
port for Tomcat's Http Connector (i.e. Tomcat standalone).  So I
suspect that is not the relevant info here.

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:   
For additional commands, e-mail: 




RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
Sorry - the server.xml file I posted was not the correct current (default)
one - I had made some changes to try to trouble shoot, and sent the wrong
one by mistake..  The one connected to this email - is the correct one.

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 11:16 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


Hello :)

Here is the content of my workers.properties file: worker.list=worker1
worker.worker1.type=ajp13 worker.worker1.host=www.ptpweb.com
worker.worker1.port=8009

In my server.xml file I have left everything as the defaults.  Right now
there are only two connectors that are NOT commented out and those are 
 





Could this be my problem?  I attached my server.xml file just to be sure if
there was anything else to check for...

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 10:36 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


You may have posted this already but I could not find it in among all the
emails over the weekend but could you post/repost your workers.properties
file as well as the connector from your server.xml you setup to accept
JK/ajp1.3 connections

For the workers.properies you need to make sure that you call the worker
thread by the same name you did in the http.conf.  You used worker1 in
http.conf.  However quite often it is called ajp13 in the workers.properties
examples available on the web.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 8:26 AM
To: 'Tomcat Users List'
Subject: Mod_jk - won't execute jsp or servlets


Thanks to all your help, I've gotten over some bumps.  As it stands I can
access any static pages in the Tomcat directory without having to type port
8080 ( i.e. I can access http://localhost/examples/servlets/index.html.
However, whenever I try to execute a servlet or JSP it hangs indefinitely.
The only errors appear in my mod_jk.log file:

[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1827)]:
mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec
23 09:49:31 2002]  [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias
child_dir: images [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1876)]:
mod_jk::jk_translate, AutoAlias OK for file:
/usr/local/tomcat/webapps//examples/images/code.gif
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/servlet/HelloWorldExample'
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 ->
/examples/servlet/ [Mon Dec 23 09:49:38 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name worker1 [Mon Dec 23 09:49:38 2002]  [jk_worker.c
(136)]: wc_get_worker_for_name, done  found a worker [Mon Dec 23 09:49:38
2002]  [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Mon Dec 23
09:49:38 2002]  [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Mon
Dec 23 09:49:38 2002]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Mon Dec 23 09:49:38 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done [Mon Dec 23 09:49:38 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:49:38 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11 [Mon Dec 23 09:52:47 2002]  [jk_connect.c (174)]:
jk_open_socket, after connect ret = -1 [Mon Dec 23 09:52:47 2002]
[jk_connect.c (203)]: jk_open_socket, connect() failed errno = 110 [Mon Dec
23 09:52:47 2002]  [jk_ajp_common.c (626)]: Error connecting to tomcat.
Tomcat is probably not started or is listenning on the wrong port. Failed
errno = 110 [Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (874)]: Error
connecting to the Tomcat process. [Mon Dec 23 09:52:47 2002]
[jk_ajp_common.c (1190)]: sending request to tomcat failed in send loop.
err=0 [Mon Dec 23 09:52:47 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11

These are the following changes I have made to my httpd.conf file - all on
top level: LoadModule jk_module JkWorkersFile
/usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %r %s %T"
Alias /example

Mod_jk/Tomcat issue?

2002-12-23 Thread Ben Ricker
We saw a strange production issue this morning that seems to be related
to Apache/mod_jk but I wanted to see if anyone can shed some lght on it.

First, the environment:

2 Redhat 7.3 Linux server talking to 2 Sun Solaris 8 Tomcat 4.0.6
servers. Each server has 2 separate Tomcat instances for a total of 4.
The Java uses Oracles JDBC drivers (not through Tomcat, but through a
custom connection pool) to talk to an Oracle DB runnin on AIX 4.x.

The first symptom was a huge spike in DB usage due to the creation of
around 35 pooled connections to the database, This led us to think
something happened on the database side, but it seems that the pool only
grew on one of the Tomcat instances; the other instances showed the
default pool size. The Oracle database did not show any locked tables or
huge, hanging queries. 

The only problems I see in logs are related to mod_jk and Tomcat.

First in the Tomcat engine log,I see:

2002-12-23 09:07:14 Ajp13Connector[12009] No processor available, rejecting this 
connection

There are hundreds of these messages. Then I start seeing this message
in the engine log:

2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:479)

About a minute after, in the mod_jk logs, I see:

[Mon Dec 23 09:08:29 2002]  [jk_ajp_common.c (679)]: ajp_connection_tcp_get_message: 
Error - jk_tcp_socket_recvfull failed
[Mon Dec 23 09:08:29 2002]  [jk_ajp_common.c (1041)]: Error reading reply
[Mon Dec 23 09:08:29 2002]  [jk_ajp_common.c (1178)]: In jk_endpoint_t::service, 
ajp_get_reply failed in send loop 0

This goes on for about 20 seconds before I see a huge number of the
following:

[Mon Dec 23 09:08:49 2002]  [jk_ajp_common.c (961)]: Error ajp_process_callback - 
write failed

I am at a loss at what might cause this. Could it be related to
soemthing in Tomcat? What exactly does this sequence of events tell me?

Any light one can shed would be greatly appreciated.

Ben Ricker

-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
Hello :)

Here is the content of my workers.properties file:
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=www.ptpweb.com
worker.worker1.port=8009

In my server.xml file I have left everything as the defaults.  Right now
there are only two connectors that are NOT commented out and those are 
 





Could this be my problem?  I attached my server.xml file just to be sure if
there was anything else to check for...

Thanks.

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 23, 2002 10:36 AM
To: 'Tomcat Users List'
Subject: RE: Mod_jk - won't execute jsp or servlets


You may have posted this already but I could not find it in among all the
emails over the weekend but could you post/repost your workers.properties
file as well as the connector from your server.xml you setup to accept
JK/ajp1.3 connections

For the workers.properies you need to make sure that you call the worker
thread by the same name you did in the http.conf.  You used worker1 in
http.conf.  However quite often it is called ajp13 in the workers.properties
examples available on the web.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 8:26 AM
To: 'Tomcat Users List'
Subject: Mod_jk - won't execute jsp or servlets


Thanks to all your help, I've gotten over some bumps.  As it stands I can
access any static pages in the Tomcat directory without having to type port
8080 ( i.e. I can access http://localhost/examples/servlets/index.html.
However, whenever I try to execute a servlet or JSP it hangs indefinitely.
The only errors appear in my mod_jk.log file:

[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1827)]:
mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec
23 09:49:31 2002]  [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias
child_dir: images [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1876)]:
mod_jk::jk_translate, AutoAlias OK for file:
/usr/local/tomcat/webapps//examples/images/code.gif
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/servlet/HelloWorldExample'
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 ->
/examples/servlet/ [Mon Dec 23 09:49:38 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name worker1 [Mon Dec 23 09:49:38 2002]  [jk_worker.c
(136)]: wc_get_worker_for_name, done  found a worker [Mon Dec 23 09:49:38
2002]  [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Mon Dec 23
09:49:38 2002]  [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Mon
Dec 23 09:49:38 2002]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Mon Dec 23 09:49:38 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done [Mon Dec 23 09:49:38 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:49:38 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11 [Mon Dec 23 09:52:47 2002]  [jk_connect.c (174)]:
jk_open_socket, after connect ret = -1 [Mon Dec 23 09:52:47 2002]
[jk_connect.c (203)]: jk_open_socket, connect() failed errno = 110 [Mon Dec
23 09:52:47 2002]  [jk_ajp_common.c (626)]: Error connecting to tomcat.
Tomcat is probably not started or is listenning on the wrong port. Failed
errno = 110 [Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (874)]: Error
connecting to the Tomcat process. [Mon Dec 23 09:52:47 2002]
[jk_ajp_common.c (1190)]: sending request to tomcat failed in send loop.
err=0 [Mon Dec 23 09:52:47 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11

These are the following changes I have made to my httpd.conf file - all on
top level: LoadModule jk_module JkWorkersFile
/usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %r %s %T"
Alias /examples /usr/local/tomcat/webapps/examples
Alias /tomcat-docs /usr/local/tomcat/webapps/tomcat-docs
  
AllowOverride None
deny from all

 JkAutoAlias /usr/local/tomcat/webapps/
 JkMount /servlet/* worker1
 JkMount /examples/jsp/*.jsp worker1
 JkMount /examples/servlet/* worker1
 JkMount /*.jsp worker1
 JkMount /admin/* worker1
 JkMount /manager/* worker1

Tomcat is set as default to listen to port 8080.  Apache is listening to
port 80 and 443.  Tomcat and Apache are both st

RES: Still can't get JNDI DataSource

2002-12-23 Thread Iran Marcius
Well, I tried to use this configuratio but didn't work (I was expecting
that).

Any other hints?

If helps, I'm trying to get my Datasource inside a context that is
configured inside a virtual host. Does it metter?

iran

-Mensagem original-
De: Iran Marcius [mailto:[EMAIL PROTECTED]] 
Enviada em: sábado, 21 de dezembro de 2002 14:29
Para: 'Tomcat Users List'; [EMAIL PROTECTED]
Assunto: RES: Still can't get JNDI DataSource


I didn't try this yet. In docs I saw that useNaming defaults to true,
but I'll try to set this explicitly in my context configuration.

Thanks for the help.

iran

-Mensagem original-
De: Justin L. Spies [mailto:[EMAIL PROTECTED]] 
Enviada em: sexta-feira, 20 de dezembro de 2002 17:09
Para: 'Tomcat Users List'
Assunto: RE: Still can't get JNDI DataSource


Iran,
Did you try changing 



To 




When I first setup naming, I was trying to use the default context.
What I found is that I had to define
The  value soley for the purpose of the <...
naming="true"> to enable JNDI.


I haven't followed the thread, so perhaps you've already tried this.

Sincerely,
Pantek Incorporated
Justin L. Spies

URI: http://www.pantek.com
Ph   440.519.1802
Fax  440.248.5274
Cell 440.336.3317 


-Original Message-
From: Iran Marcius [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 20, 2002 2:32 PM
To: [EMAIL PROTECTED]
Subject: Still can't get JNDI DataSource


Well, I apologize for the insistence but didn't get any answer that
could help me.

Lets remember: I'm trying to get a DataSource in my webapp which is
configured as a GlobalResource, as the following:

 

factory

org.apache.commons.dbcp.BasicDataSourceFactory


driverClassName
org.postgresql.Driver


url
jdbc:postgresql://localhost/global


validationQuery  
select 1


username
global


password
password



My context is like this:


 

My webapp has the following lines:

Context ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup("java:comp/env/db"); <-- here is
where the exception occurs

The DataSource is there (I saw it in Administration app), and the
ResourceLink is there too.

So what am I missing here?

iran


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




How to find Tomcat port from init()?

2002-12-23 Thread kruger.stephen
Hi all,

Is there any way to know the servlet base url and port number so I can , 
for example,
start a Jini registry from the init() method of HttpServlet, since I 
need this information to calculate the codebase property.
I could have an initialisation parameter in my web.xml file for that 
servlet, but this would only work under a default Tomcat installation.

Anyone know how this information might be accessed? It's seems not 
visible from ServletConfig or ServletContext.

Many thanks.
KS.


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



RE: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
You may have posted this already but I could not find it in among all the
emails over the weekend
but could you post/repost your workers.properties file as well as the
connector from your server.xml you setup
to accept JK/ajp1.3 connections

For the workers.properies you need to make sure that you call the worker
thread by the same name you did in the
http.conf.  You used worker1 in http.conf.  However quite often it is called
ajp13 in the workers.properties examples available on the web.

-Original Message-
From: Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 8:26 AM
To: 'Tomcat Users List'
Subject: Mod_jk - won't execute jsp or servlets


Thanks to all your help, I've gotten over some bumps.  As it stands I can
access any static pages in the Tomcat directory without having to type port
8080 ( i.e. I can access http://localhost/examples/servlets/index.html.
However, whenever I try to execute a servlet or JSP it hangs indefinitely.
The only errors appear in my mod_jk.log file:

[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1827)]:
mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec
23 09:49:31 2002]  [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias
child_dir: images [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1876)]:
mod_jk::jk_translate, AutoAlias OK for file:
/usr/local/tomcat/webapps//examples/images/code.gif
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/servlet/HelloWorldExample'
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 ->
/examples/servlet/ [Mon Dec 23 09:49:38 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name worker1 [Mon Dec 23 09:49:38 2002]  [jk_worker.c
(136)]: wc_get_worker_for_name, done  found a worker [Mon Dec 23 09:49:38
2002]  [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Mon Dec 23
09:49:38 2002]  [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Mon
Dec 23 09:49:38 2002]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Mon Dec 23 09:49:38 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done [Mon Dec 23 09:49:38 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:49:38 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (174)]: jk_open_socket, after
connect ret = -1
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket, connect()
failed errno = 110
[Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (626)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong port.
Failed errno = 110
[Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (874)]: Error connecting to the
Tomcat process.
[Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (1190)]: sending request to
tomcat failed in send loop. err=0
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11

These are the following changes I have made to my httpd.conf file - all on
top level:
LoadModule jk_module JkWorkersFile
/usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %r %s %T"
Alias /examples /usr/local/tomcat/webapps/examples
Alias /tomcat-docs /usr/local/tomcat/webapps/tomcat-docs
  
AllowOverride None
deny from all

 JkAutoAlias /usr/local/tomcat/webapps/
 JkMount /servlet/* worker1
 JkMount /examples/jsp/*.jsp worker1
 JkMount /examples/servlet/* worker1
 JkMount /*.jsp worker1
 JkMount /admin/* worker1
 JkMount /manager/* worker1

Tomcat is set as default to listen to port 8080.  Apache is listening to
port 80 and 443.  Tomcat and Apache are both started with no errors reported
during startup.  Any ideas?  I know Jerry had a similar problem with static
pages being viewed, but unable to execute servlets, but I did not notice any
resolution.

Thanks.
Denise

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




server.xml external includes

2002-12-23 Thread Gery Kahn
I want to create external xml file w/ Host tags inside and
to include it to the Tomcat's server.xml
How to do it?


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




Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Denise Mangano
Thanks to all your help, I've gotten over some bumps.  As it stands I can
access any static pages in the Tomcat directory without having to type port
8080 ( i.e. I can access http://localhost/examples/servlets/index.html.
However, whenever I try to execute a servlet or JSP it hangs indefinitely.
The only errors appear in my mod_jk.log file:

[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:31 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/images/code.gif' [Mon Dec 23 09:49:31 2002]
[jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1827)]:
mod_jk::jk_translate, check alias_dir: /usr/local/tomcat/webapps/ [Mon Dec
23 09:49:31 2002]  [mod_jk.c (1850)]: mod_jk::jk_translate, AutoAlias
child_dir: images [Mon Dec 23 09:49:31 2002]  [mod_jk.c (1876)]:
mod_jk::jk_translate, AutoAlias OK for file:
/usr/local/tomcat/webapps//examples/images/code.gif
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/examples/servlet/HelloWorldExample'
[Mon Dec 23 09:49:38 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 ->
/examples/servlet/ [Mon Dec 23 09:49:38 2002]  [jk_worker.c (132)]: Into
wc_get_worker_for_name worker1 [Mon Dec 23 09:49:38 2002]  [jk_worker.c
(136)]: wc_get_worker_for_name, done  found a worker [Mon Dec 23 09:49:38
2002]  [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint [Mon Dec 23
09:49:38 2002]  [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service [Mon
Dec 23 09:49:38 2002]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Mon Dec 23 09:49:38 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done [Mon Dec 23 09:49:38 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:49:38 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (174)]: jk_open_socket, after
connect ret = -1
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (203)]: jk_open_socket, connect()
failed errno = 110
[Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (626)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong port.
Failed errno = 110
[Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (874)]: Error connecting to the
Tomcat process.
[Mon Dec 23 09:52:47 2002]  [jk_ajp_common.c (1190)]: sending request to
tomcat failed in send loop. err=0
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (158)]: Into jk_open_socket
[Mon Dec 23 09:52:47 2002]  [jk_connect.c (165)]: jk_open_socket, try to
connect socket = 11

These are the following changes I have made to my httpd.conf file - all on
top level:
LoadModule jk_module JkWorkersFile
/usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %r %s %T"
Alias /examples /usr/local/tomcat/webapps/examples
Alias /tomcat-docs /usr/local/tomcat/webapps/tomcat-docs
  
AllowOverride None
deny from all

 JkAutoAlias /usr/local/tomcat/webapps/
 JkMount /servlet/* worker1
 JkMount /examples/jsp/*.jsp worker1
 JkMount /examples/servlet/* worker1
 JkMount /*.jsp worker1
 JkMount /admin/* worker1
 JkMount /manager/* worker1

Tomcat is set as default to listen to port 8080.  Apache is listening to
port 80 and 443.  Tomcat and Apache are both started with no errors reported
during startup.  Any ideas?  I know Jerry had a similar problem with static
pages being viewed, but unable to execute servlets, but I did not notice any
resolution.

Thanks.
Denise

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




Session not persistent - Was AIX JVM Bug?

2002-12-23 Thread Andy Meadows
On two separate boxes running AIX 4.3.3 and Java for AIX 1.3.1 (distributed
by IBM), I have run into a problem where session state is not being
persisted and it would seem that the servlet context is failing too.

My problem exists solely on AIX. Using Tomcat 4.1.x on Windows 2000 and
RedHat Linux 7.3 does not produce this problem (stated below).

A simple log dump indicates that the HttpServletRequest's
getRequestedSessionId is returning null. It's not a client issue however,
because two separate clients on two separate machines behave the same way --
they act properly when connecting to a Windows or Linux box, but
consistently
fail connecting to an AIX box.  Since the requested session id is null,
every request is resulting in a new session (at least that's the perceived
behavior).

I believe this to be a JVM problem as the only difference between all three
of these platforms is the provider of the VM: Sun for Windows and Linux, IBM
for AIX.

Has anyone seen anything like this or know where to go to find information.
IBM's DeveloperWorks site has been absolutely useless to me.

If you need more information, please ask.

Thanks in advance.  I've been stumped on this for a week.
Andy


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




Re: DataSource error (DBCP)

2002-12-23 Thread sunil . kumar

that's cool!!! worked.

bringing attention to my old problem like i'm unable to compile DBTest.java
(i compiled the same in another machine where oracle 9i is running, and
copied to the machine where tomcat is running :))

I tried  to compile DBTest.java and ended up an error

  Type 'Datasource' not found in the declaration of table 'ds'

  "DataSource ds= "
   ^
1 error
---



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




Tags

2002-12-23 Thread Lindomar
I don't know if this question is off-topic...but...
I'm looking for a simple example of tag in jsp, for example "hello World, today is ..."
But i can't find this, i found complex examles that works fine, but i don't understand 
yet, so i need get a simple example for understand the behavior this kind of solution.

Thanks in advanced.



Tomcat 4.1.18 and Acutate Portal

2002-12-23 Thread mmartinez
I am using Tomcat 4.0.6 and Actuate Portal 6.0.
It works file but if I install Tomcal 4.1.xx, it can not compile the
classes.
Does anyone uses Actuate Portal and Tomcal 4.1.xx

Mariano Martinez
Systems Analyst

Fax: (847) 267-8625
Ph: (847) 572-5435


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




tomcat + ssi for servlets

2002-12-23 Thread Jubair Hasan
Hello
Im having trouble getting Tomcat to run servlets within .shtml files.
I did as instucted below (shown on 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html)

Rename $CATALINA_BASE/server/lib/servlets-ssi.renametojar to 
$CATALINA_BASE/server/lib/servlets-ssi.jar.
Remove the XML comments from around the SSI servlet and servlet-mapping configuration 
in $CATALINA_BASE/conf/web.xml.

This does not work.

in my shtml file I used 

http://localhost:8080/examples/servlet > 

I placed my serlvet class in the same directory as the servlet class used as examples 
by tomcat when you install it.
I tried diffrent variations of the servlet tag. ie: http://localhost:8080/examples/> 

can you help??

Regards and thank in advance

Jubair 



-

You can find us at www.bacs.co.uk 

*
This communication is confidential and intended for 
the exclusive use of the addressee only. You should 
not disclose its contents to any other person.
If you are not the intended recipient please notify 
the sender named above immediately.

BACS Limited, registered in England, No 1023742, 
3 De Havilland Road, Edgware, Middlesex, HA8 5QA
*


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




Running tomcat 4.0.4 with j2sdk1.4.1 on redhat 7.3 dual processror gives out of memory error in syslog messages

2002-12-23 Thread Venkat Reddy Valluri

Hi,
  I am sorry, Iam posting  this question again, as I didn't get any response for this 
question 
  I am running tomcat 4.0.4 on redhat 7.3 dual processor machine(2-4-18-3SMP) with 
j2sdk1.4.1 for my web application,
 The problem is after  couple of hours(6 or 7 hours after 7 or more  users hit the 
system), tomcat crashes and I ened up finding "kernel out of memory killing java 
process" in syslog messages(/var/log/messages)
  It is not the problem with java heap size I think
  The same web application is running successfully on tomcat 4.0.4 on redat 7.3 
(2-4-18-3) single cpu machine with j2sdk1.4.0

  Here I didn't understand if multi processor redhat 7.3 matters with j2sdk1.4.1

Any help greatly apprecited

Thks
--Venkat



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




  1   2   >