Re: Session tracking problem with Tomcat 4.0.3, Apache 2.0.39 andmod_proxy

2002-07-15 Thread Liam Morley

Unfortunately I think you might need to run multiple instances of Tomcat 
in that case:( As you can't give multiple webapps a cookie with a / 
path. If you find any other solutions, however, please let me know:)

Liam Morley

Rick Mills wrote:

Hi

Thanks for that, it was exactly what was happening!

Moving the context for the bodypainting WAR file to root, and changing the
proxy pass to map http://www.bodypainting.co.uk/ to http://localhost:8000/
has fixed the problem, and my session tracking now works as expected.

I now need to work out a way of having more than one webapp using Apache
virtual hosting where two or more domains both get mapped to / under Tomcat
and get different webapps delivered. I'm running the Tomcat 4.0.3 which
comes bundled with JBoss 3.0.0, so will probably have quite a challenge!

Thanks for your help.

Kind regards
Rick Mills

  

Rick,

I'm pretty sure that this is the same issue that I've experienced.
First, try mapping to /bodypainting/ instead of /. See if you get a
cookie there. Then, if you have a browser that allows you to inspect
session cookies (mozilla is good for this), check the path of your
session cookie. You should find that it's /bodypainting. The problem
is that the cookie path is determined by Tomcat, not by Apache, and
Tomcat gives every webapp a cookie with the path of the webapp as tomcat
would determine it; so since Tomcat thinks the path is /bodypainting,
the cookie path doesn't change just because you're using mod_proxy. So
when you go to visit the page at /, the cookie is ignored because it
doesn't have the right path.

The only way I can think of to solve your issue so far is to solve the
path issue with Tomcat- you need to map your webapp to
'http://localhost:8000/' instead of
'http://localhost:8000/bodypainting/'. There are two ways I can think of
to do this:

   1. move your 'bodypainting' webapp into the ROOT webapp.
   2. Uncomment and change the docBase path in server.xml: Context
  path= docBase=bodypainting debug=0/

That should do the trick, hopefully. Let me know how that works for you.
Best of luck!

Liam Morley





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



  



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




Re: Session tracking problem with Tomcat 4.0.3, Apache 2.0.39 andmod_proxy

2002-07-14 Thread Liam Morley

Rick,

I'm pretty sure that this is the same issue that I've experienced. 
First, try mapping to /bodypainting/ instead of /. See if you get a 
cookie there. Then, if you have a browser that allows you to inspect 
session cookies (mozilla is good for this), check the path of your 
session cookie. You should find that it's /bodypainting. The problem 
is that the cookie path is determined by Tomcat, not by Apache, and 
Tomcat gives every webapp a cookie with the path of the webapp as tomcat 
would determine it; so since Tomcat thinks the path is /bodypainting, 
the cookie path doesn't change just because you're using mod_proxy. So 
when you go to visit the page at /, the cookie is ignored because it 
doesn't have the right path.

The only way I can think of to solve your issue so far is to solve the 
path issue with Tomcat- you need to map your webapp to 
'http://localhost:8000/' instead of 
'http://localhost:8000/bodypainting/'. There are two ways I can think of 
to do this:

   1. move your 'bodypainting' webapp into the ROOT webapp.
   2. Uncomment and change the docBase path in server.xml: Context
  path= docBase=bodypainting debug=0/

That should do the trick, hopefully. Let me know how that works for you. 
Best of luck!

Liam Morley



Rick Mills wrote:

Hi

I am experiencing a problem with session tracking when using Apache 2.0.39's
mod_proxy module to connect to my Tomcat 4.0.3 instance.

I have a servlet which checks to see if a session exists, and if not,
creates a new session.

When testing on a standalone instance of Tomcat, all works as expected. I
start up a browser session to my site, and the servlet creates a new
session; this session persists for subsequent requests to my site.

However, when going via Apache to Tomcat over mod_proxy, my servlet is not
recognising that I have already set up a session on subsequent calls to
Tomcat, and is creating a new session each time.

The Virtual Host configuration in Apache's httpd.conf to set up the proxy
connection to Tomcat is as follows:

Virtual Host *
ServerNamewww.bodypainting.co.uk
ProxyPass/ http://localhost:8000/bodypainting/
ProxyPassReverse / http://localhost:8000/bodypainting/
/VirtualHost

The entry in my Tomcat server.xml for handling the proxy connection is as
follows:

Connector className=org.apache.catalina.connector.http.HttpConnector
port=8000 minProcessors=3 maxProcessors=75
proxyName=localhost:8000 proxyPort=80/

Just wondered if anyone else had experienced anything similar, or if anyone
has any ideas.

Incidentally, I've already experimented with using mod_jk and mod_webapp to
connect Apache to Tomcat, but found that mod_proxy was by far the simplest
method, especially given that all content from my site will be served up by
Tomcat, and I don't need any static pages served up by Apache.

Kind regards
Rick Mills



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



  



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




Re: Port 8080

2002-07-10 Thread Liam Morley

Bryan,
The link Eddie included will more than likely help fix your problem. 
However, I would highly recommend the AJP (mod_jk) connector over the 
WARP (mod_webapp) connector... it seems more mature, and also supports 
load balancing (a useful thing if you still want to use Apache, which it 
seems that you do).

Liam Morley


Eddie Bush wrote:

 http://www.codesta.com/knowledge/technical/tomcat_warp_apache/index.jsp

 Check that out.

 Bryan Zimmer wrote:

 Greetings,

 I am running Tomcat version 4.0.4 with Apache 1.3.26.

 Before I installed version 4.0.4, I had no trouble accessing my tomcat
 applications, by saying, for example:

 mozilla http://my.server.name/examples

 This would bring up the $CATALINA_HOME/webapps/examples application
 directory, from which I could choose JSP examples or servlets. I 
 could also
 do the same with my self-written JSP's, which resided in the directory
 $CATALINA_HOME/webapps/baz-jsp.

 In that case I could say:

 netscape http://my.server.name/baz-jsp

 and get to the index.html of that directory.

 Now, and perhaps I've installed correctly because this was supposed 
 to work
 before, and didn't:

 mozilla (or netscape or whatever) http://my.server.name:8080/baz-jsp
 (or http://my.server.name:8080/examples)

 My question is, how can I get regular port 80 access so the client 
 doesn't
 need to specify port 8080 and tomcat is integrated seamlessly with 
 Apache?

 Is it something simple, like jus adjusting the port number in 
 server.xml? I
 have had some many configuration trials I haven't even tried this. I 
 don't
 want to mess up Tomcat-Apache.

 Can anyone tell me how to do this? Any advice much appreciated.

 I am running with mod_webapp.so, by the way.

 Thanks,

 Bryan A. Zimmer
 [EMAIL PROTECTED]



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






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






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




Re: apache2.0.39 + tomcat4.1.x + mod_jk2.so

2002-06-30 Thread Liam Morley

Brian,
then it seems you're running jk1, not jk2 then, the same connector as in 
previous versions of tomcat.

Liam Morley

Brian Millett wrote:

On Sun, 2002-06-30 at 17:11, Luminous Heart wrote:
  

Do I understand that mod_jk version 1 works with
tomcat4.1 and apache2.0.x? 



Here is my stuff for tomcat 4.1.6, apache 2.0.39, redhat 7.2

server.xml: (comment out the jk2 stuff)

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
!-- 
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
--

!-- Define an AJP 1.3 Connector on port 8009 --

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


Then in the apache httpd.conf I include this mod_jk.conf file:
IfModule mod_jk.c
###
# Apache Coyote JK Configuration File  
###

JkWorkersFile /opt/apache/conf/workers.properties
JkLogFile /opt/apache/logs/mod_jk.log
JkLogLevel debug

Alias /examples /opt/jakarta-tomcat/webapps/examples
Directory /opt/jakarta-tomcat/webapps/examples
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
/Directory
JkMount /examples ajp13
JkMount /examples/* ajp13

Alias /struts-example /opt/jakarta-tomcat/webapps/struts-example
Directory /opt/jakarta-tomcat/webapps/struts-example
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
/Directory
JkMount /struts-example ajp13
JkMount /struts-example/* ajp13

Alias /struts-documentation
/opt/jakarta-tomcat/webapps/struts-documentation
Directory /opt/jakarta-tomcat/webapps/struts-documentation
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
/Directory
JkMount /struts-documentation ajp13
JkMount /struts-documentation/* ajp13

Alias /struts-exercise-taglib
/opt/jakarta-tomcat/webapps/struts-exercise-taglib
Directory /opt/jakarta-tomcat/webapps/struts-exercise-taglib
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
/Directory
JkMount /struts-exercise-taglib ajp13
JkMount /struts-exercise-taglib/* ajp13

Alias /cocoon /opt/jakarta-tomcat/webapps/cocoon
Directory /opt/jakarta-tomcat/webapps/cocoon
Options Indexes MultiViews All
AllowOverride FileInfo AuthConfig Limit
Limit GET POST
   Order deny,allow
   Deny from all
   Allow from 192.168.250.
/Limit
/Directory
JkMount /cocoon ajp13
JkMount /cocoon/* ajp13

/IfModule


  




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




Re: apache2.0.39 + tomcat4.1.x + mod_jk2.so

2002-06-29 Thread Liam Morley

I've temporarily given up on trying to configure mod_jk2 as my last post 
on the issue came up without a response. (I'm secretly hoping that the 
person developing jk2 is listening and is currently looking through the 
logs I posted seeing if anything looks familiar.. other than that, I'm 
sticking with mod_jk v1 for production and getting ready to see if 4.1.6 
is the answer to my prayers tomorrow.)

Liam Morley

Luminous Heart wrote:

Was anyone able to get this combination to work on
Linux? I am having lots of problems compiling
especially mod_jk2.

If anyone can share their configuration, or suggest a
mini HowTo, I would appreciate that.

Regards.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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



  




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




Re: The best website database!

2002-06-29 Thread Liam Morley

I've only witnessed one occasion where someone else was able to do 
something pretty cool with Access, but it was sufficient enough for 
Access to earn a bit of respect from me.

I think many Tomcat users use MySQL and PostgresSQL due to the fact that 
they've got an open-source (as well as free) solution. At least I do; I 
can't afford Oracle, nor do I need it.

Will,
I use MySQL, and I'm happy with the MySQL Front free gui interface for 
it, however I don't think it's /quite/ what you're looking for. You 
don't design queries in MySQL (or in other apps I've seen) the same 
hands-off way you can in Access. Be this a blessing or a curse, I 
couldn't tell you. MySQL Front's website http://www.mysqlfront.de has 
some screenshots, check them out and see if they're helpful at all.

Liam Morley

Clay Graham wrote:

well I have never heard any of my friends say MSACCESS is good for anything. 

most small tomcat sites that I know use MySql or postgresSQL, most big ones use 
Oracle 8i/9i

clay

-Original Message-
From:  Will Hartung [SMTP:[EMAIL PROTECTED]]
Sent:  Friday, June 28, 2002 6:10 PM
To:Tomcat Users List
Subject:   Re: The best website database!

- Original Message -
From: [EMAIL PROTECTED]
  

Hi All

I currently use MS ACCESS as my backend to my website and other developers


in
  

the forum have advised this is not a good choice and I am aware of this


but I
  

was forced to use it as all data comes to me in MS ACCESS from database


admin
  

that supply the data for the website. I want to know what is the best
database to use for a website?



It Depends

Now that that is out of the way...

  

features I am looking for are:

1- An excellent GUI (Very important) front like MS ACCESS where I can


quickly
  

design queries, tables and so on. I normally design all the queries in MS
ACCESS and then I just write the single line command SELECT QUERY1


rather
  

than writing the full query in a javabean or jsp page by hand as this


saves
  

me alot of time.



Ideally, you will, in time, wean yourself of this reliance, as most
databases do not have a GUI. In the long term it's better to have a more
intimate relathionship with SQL, minimally for performance reasons. But, it
seems pretty clear you haven't reached that threshold yet.

However, all is not completely lost.

One of the Neat Things(tm) about MS ACCESS is not so much that it has a
built-in database based on Microsofts Jet Engine, but that it can act as a
central access point for, technically, any number of ODBC compliant
databases. So, you can theoretically still use ACCESS as your primary
database, but have all of the tables be linked from the true database host.

This will certainly cost you performance, and the queries you devise may not
work quite like they do in native ACCESS, but it will be close. Particularly
if you are sticking close to the most basic of SQL functionality, and not
relying on a lot of the higher level functions provided within ACCESS.

If you're using mostly Pure SQL, then ACCESS is simply a data broker, and
yet another layer between your app and your DB.

As long as the contention and locking facilities are being used in the
native backend, versus within ACCESS, you should gain quite a bit of
reliablity over pure ACCESS as well. I'm not totally sure if this is the
case, but it probably is, again for basic SQL statements.

The goal is to use ACCESS simply as an interface into your new database, and
have it broker your SQL statements to and from the database, with hopefully
as little intervention as possible. Your SELECT QUERY1 will still work,
however, but beware that ACCESS will potentially happily suck in all of the
data from the new DB, churn on it, and then spit it back out to you.
Depending on the query, this can be expensive and isn't what you want. If
you like the simplicity of SELECT QUERY1 from ACCESS, I would suggest that
you perhaps use ACCESS to develop your basic queries, and then use the
actual SQL generated to turn them into VIEWS on the host DB, so the SQL in
your Java becomes SELECT * FROM VIEW1.

Again, it's almost always better to use the literal SQL rather than VIEWs,
etc. ESPECIALLY if you're joining them together. SELECT * FROM VIEW1, VIEW2
WHERE ... CAN be very expensive. It all depends.

But, when you data or activity gets big enough to actually notice the
performance dogging, this kind of stuff tends to float to the top pretty
quick, so when you need to fix it, you'll find it. These kinds of things
work great with 10 rows in the tables, and die horribly with 1 rows.

You WILL have issue with BLOBs of any kind, however.

Of course, if you continue to receive data from your admin in ACCESS format,
you will need a way to convert that data into the new back end. Ideally,
this to can be automated from ACCESS as well: INSERT INTO NewBackEndTable
SELECT * FROM OriginalACCESSTable.

So, the point being, that even if you go to a new

Re: Does this log file from jk_mod show any problems?

2002-06-29 Thread Liam Morley

Mark,
are you using jk1 or jk2? what version of tomcat are you using? if 
you're using jk2 on tomcat 4.1.3, it looks like you're getting much 
further in jk than I am.

Liam Morley

Mark Hutchinson wrote:

 I am getting a 404 error on a virtual host. This is what I am getting 
 for jk_mod logs:

 [Fri Jun 28 15:36:35 2002]  [jk_uri_worker_map.c (447)]: Into 
 jk_uri_worker_map_t::map_uri_to_worker
 [Fri Jun 28 15:36:35 2002]  [jk_uri_worker_map.c (464)]: Attempting to 
 map URI '/english/signup/splash.jsp'
 [Fri Jun 28 15:36:35 2002]  [jk_uri_worker_map.c (529)]: 
 jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - 
 *.jsp
 [Fri Jun 28 15:36:35 2002]  [jk_worker.c (132)]: Into 
 wc_get_worker_for_name ajp13
 [Fri Jun 28 15:36:35 2002]  [jk_worker.c (136)]: 
 wc_get_worker_for_name, done  found a worker
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (1352)]: Into 
 jk_worker_t::get_endpoint
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (1075)]: Into 
 jk_endpoint_t::service
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (280)]: Into 
 ajp_marshal_into_msgb
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (413)]: 
 ajp_marshal_into_msgb - Done
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (612)]: sending to ajp13 
 #483
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (853)]: ajp_send_request 
 2: request body to send 0 - request body to resend 0
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (698)]: received from 
 ajp13 #31
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (461)]: 
 ajp_unmarshal_response: status = 404
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (466)]: 
 ajp_unmarshal_response: Number of headers is = 1
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (506)]: 
 ajp_unmarshal_response: Header[0] [Content-Type] = [text/html]
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (698)]: received from 
 ajp13 #655
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (698)]: received from 
 ajp13 #2
 [Fri Jun 28 15:36:35 2002]  [jk_ajp_common.c (1307)]: Into 
 jk_endpoint_t::done



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


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






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




Re: What does this error mean loading mod_jk module?

2002-06-29 Thread Liam Morley

Rick,
I found that a big tricky as well. It took a little guesswork, but the 
name of the module has been changed- instead of jk_module, it should 
be named jk2_module. If you make that change in your httpd.conf, you 
should be all set.

Liam Morley

Rick Mann wrote:

 When I start Apache, I get this:

 Can't locate API module structure `jk_module' in file 
 /usr/local/apache2/modules/mod_jk2.so: 
 /usr/local/apache2/lib/libapr.so.0: undefined symbol: jk_module


 I'm not very familiar with DLLs on linux, so I don't really know how 
 to go about solving this problem. RH 7.2, Apache 2.0.39, Tomcat 4.0.4, 
 I built the connector from source, copied mod_jk2.so to the apache2 
 modules directory.

 Thanks for any help

 --Rick


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






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




Re: Need help with Tomcat on Apache on Windows 2000

2002-06-29 Thread Liam Morley

Joey,
yes, if you want to connect apache and tomcat you'll want to leave them 
on their respective ports. What exactly was your include statement? What 
are you trying to include? What connector are you using, or have you set 
up a connector as of yet?

Liam Morley

Joey Kovacs wrote:

 OK, well I have Apache on port 80
 and Tomcat running on 8080

 im just wondering if I should leave them on those ports Because I want 
 to interconnect them


 From: Steve R. Burrus [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Need help with Tomcat on Apache on Windows 2000
 Date: Sat, 29 Jun 2002 14:32:46 -0500

 Joey, this is Steve Burrus, and I believe that this is the FIRST time 
 that I have
 bothered to try/attempt to electronically reach u!! (Incidentally, 
 you spell it
 e-v-e-r-y-t-h-i-n-g, not the way that you did!) Listen, in direct 
 response to
 your query to the group, I wold first try port 80, then if that 
 doesn't work, try
 port 8080, if that doesn't work, try . But, if that still doesn't 
 work for
 you, then give up and start to pray that someone else in the tomcat 
 users
 newsgroup would know what the correct is!! :)
 
***
 


 Joey Kovacs wrote:

  I get a the requested operation failed 
 
  as soon as I add in the Include statement.
 
  My computer just dosent like that
 
  what ports should everyhting be on?
 
  _
  Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]


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





 j03b0x3r


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


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






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




Re: Need help with Tomcat on Apache on Windows 2000

2002-06-29 Thread Liam Morley

Joey,
Jakarta Ant is actually a java compiler of sorts, not a connector.. but 
from that website, it looks like you're trying to use mod_jk. I didn't 
see your Include line in your httpd.conf file. The syntax for it is 
something like this:

Include C:/tomcat4/conf/auto/mod_jk.conf

what are the contents of your C:\tomcat4\conf\auto\mod_jk.conf file? And 
do you have a mod_jk.dll file in your apache\modules directory? Is there 
anything in your error log, which is in your apache\logs\error.log file?

Sometime in the future, you might want to think about upgrading Apache 
to the latest version http://www.apache.org/dist/httpd/. There was a 
security hole mentioned for the 2.0.36 release which has been patched in 
2.0.39.

Liam Morley

Joey Kovacs wrote:

 Thank you Liam
 My connector I believe in ANT

 I am using Tomcat 4  Apache 2
 Java SDK 1.3  - this is supposed to be my JKD??

 I got everything from this site

 http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml

 there is an Apache section near the bottom

 my path to  C:\tomcat4\conf\auto\mod_jk.conf

 But isnt this supposed to change everytime Tocat starts,
 im not sure it does,
 so Yeah,  everytime I add a Include statement,
 I get an error. and I cant even start the apache service?
 is this strange?

 here is my  httpd.conf file


 From: Liam Morley [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Need help with Tomcat on Apache on Windows 2000
 Date: Sat, 29 Jun 2002 16:11:30 -0400

 Joey,
 yes, if you want to connect apache and tomcat you'll want to leave 
 them on their respective ports. What exactly was your include 
 statement? What are you trying to include? What connector are you 
 using, or have you set up a connector as of yet?

 Liam Morley

 Joey Kovacs wrote:

 OK, well I have Apache on port 80
 and Tomcat running on 8080

 im just wondering if I should leave them on those ports Because I 
 want to interconnect them


 From: Steve R. Burrus [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Need help with Tomcat on Apache on Windows 2000
 Date: Sat, 29 Jun 2002 14:32:46 -0500

 Joey, this is Steve Burrus, and I believe that this is the FIRST 
 time that I have
 bothered to try/attempt to electronically reach u!! (Incidentally, 
 you spell it
 e-v-e-r-y-t-h-i-n-g, not the way that you did!) Listen, in direct 
 response to
 your query to the group, I wold first try port 80, then if that 
 doesn't work, try
 port 8080, if that doesn't work, try . But, if that still 
 doesn't work for
 you, then give up and start to pray that someone else in the tomcat 
 users
 newsgroup would know what the correct is!! :)
 
***
 



 Joey Kovacs wrote:

  I get a the requested operation failed 
 
  as soon as I add in the Include statement.
 
  My computer just dosent like that
 
  what ports should everyhting be on?
 
  _
  Send and receive Hotmail on your mobile device: 
 http://mobile.msn.com
 
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]


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






 j03b0x3r


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


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






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





 j03b0x3r


 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com
 #
 # Based upon the NCSA server configuration files originally by Rob 
 McCool.
 #
 # This is the main Apache server configuration file.  It contains the
 # configuration directives that give the server its instructions.
 # See URL:http://httpd.apache.org/docs-2.0/ for detailed information 
 about
 # the directives.
 #
 # Do NOT simply read the instructions in here without understanding
 # what they do.  They're here only as hints or reminders.  If you are 
 unsure
 # consult the online docs. You have been warned.
 #
 # The configuration directives are grouped into three basic sections:
 #  1. Directives that control the operation of the Apache server 
 process as a
 # whole (the 'global environment').
 #  2. Directives that define the parameters of the 'main' or 'default' 
 server,
 # which responds to requests that aren't handled by a virtual host.
 # These directives also provide default values for the settings

Re: ZipException: Access is denied

2002-06-27 Thread Liam Morley

Cynthia,
I was experiencing that exception on the latest JDK from Sun (j2se 
1.4.0_01) which I just downloaded yesterday. This is in Windows XP Pro; 
the user that's executing Tomcat (at the moment) does not have 
Administrator rights. My path is C:\Apache\jakarta\tomcat4.1.3-beta\ (no 
spaces). Specifically, I saw this exception when tomcat tried expanding 
a WAR file.

Liam Morley

Cynthia Jeness wrote:

Roger,

We see a similar problem with the latest IBM JDK 1.3.1 for OS/2.  We have
assumed that it is a JDK problem because a version of the JDK just 1 month older
does not produce this problem.   We had been programming on Tomcat  since
December, 2001 and the problem first appeared a month ago when we got a fix
from IBM.

We have never seen the problem on Sun's JDK for Linux.  We would like to report
the problem to IBM since it only occurs on the IBM JDK; however, this is no
longer possible for us under OIS/2.  So, try using a different vendor's JDK to
see if that solves your problem.   If it is an IBM JDK problem, then perhaps you
can report it as a problem under Windows which I am sure gets more attention
than OS/2.

Cynthia Jeness

Roger Adema wrote:

  

I've tried putting Tomcat into c:\tomcat-4.0 (changing %CATALINA_HOME% of
course) and there's no change in behavior.  Also, I have no directory names
with .jar.

Looking at the exception again, it seems to indicate that a native method
is involved.  Do I need a zip.exe/unzip.exe or any other native zip support
on my system for this to work?

java.util.zip.ZipException: Access is denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:127)
at java.util.jar.JarFile.init(JarFile.java:138)



Another good one (which will result in a permission denied message) is
if you unpack a jar file into a directory with a .jar extension eg...

%TOMCAT_HOME%/lib/xerces.jar/org...

TomCat will choke on it as it can't unpack the directory that it
believes is a file.


  

Andy Eastham wrote:


Roger,

Try putting tomcat in a path with no spaces, eg c:\apache_tomcat_4.0

As for classpath, any jars under tomcat\webapps\app_name\WEB_INF\lib


(your


webapps private classesd)or tomcat\common\lib (classes shared between
webapps, usually db drivers etc) will be automatically included in the
classpath.

All the best,

Andy




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




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



  




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




Re: Mailing List Load.... Forum???

2002-06-27 Thread Liam Morley

Milt,
I'm probably coming into this a bit late in the game (and a bit 
uninvolved at that).. but I wound up at 
http://nagoya.apache.org/jive/index.jsp at one point in time, and that 
to me looks very much like a Tomcat forum. What am I missing?

Liam Morley

Milt Epstein wrote:

On Thu, 27 Jun 2002, Hanks Mei wrote:

  

Hi,

  Well ofcourse I know that the mailing list is heavily loaded, but
it is going beyond my control...

Can we have forum kind of mechanism instead, so that the users can
log in to the net wherein queries/replies can be placed.

 This is my request. I feel that this approach will help the tomcat
users a lot.

Any other solutions are welcome...

It is tooo... much for my mail client and net connection
to handle, so I am signing off.

Will look forward for the tomcat forum... ;-)



I think there are a number of reasons why this won't be turned into a
web forum, including some historical ones.  However, with web archives
of mailing lists, including this one, there essentially is a web forum
version already (especially since this list doesn't require you to be
a subscribe in order to post, so you can continue to post questions
via email).

Here are a couple of pages that talk about jakarta-related mailing
lists and archives:

http://jakarta.apache.org/site/mail.html
http://jakarta.apache.org/site/mail2.html

I've found

http://marc.theaimsgroup.com/

to be a good archive.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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



  




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




Re: Age old question...

2002-06-27 Thread Liam Morley

I'm not sure if this is /exactly/ the same as your problem, but 
hopefully it helps. When I first started worrying about using connectors 
and mod_rewrite etc., I had a problem with mod_webapp (which I was using 
at the time) getting called before mod_rewrite. I was told on an apache 
forum that apache httpd loads modules from the bottom up, so the 
LoadModule command for mod_rewrite has to be below mod_webapp. That way, 
you can have the URL rewritten by mod_rewrite first in order for 
mod_webapp to understand it.

For reference's sake, here's the url for the question posted:
http://www.tek-tips.com/viewthread.cfm?SQID=171381SPID=65page=1CFID=72231716CFTOKEN=10718455

Liam Morley

August Detlefsen wrote:

--- Milt Epstein [EMAIL PROTECTED] wrote:
  

On 26 Jun 2002, Keith Pemberton wrote:

Well, I'm not sure mod_jk will be any different.  And is this any
more
than a minor aesthetic issue?



Not when most of your users can barely type one / , much less two! 


  

FWIW, here's something a bit weird, I tried this on a machine where I
have web_app and tomcat 4.0.3 set up, the first time I tried
/examples, I got a 404 Not Found error.  Then I tried /examples/ and
it worked, I got the directory listing of that directory.  Then I
tried /examples again, and it kept working, adding the trailing /
itself!  When I try it to tomcat standalone, it works both ways.



Did your browser add the trailing slash or did the server? 

I have tried to find a solution for this using mod_rewrite, but webapp
is overriding all of my rewites. If anyone has a solution I would
really like to know!

-August



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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



  




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




Re: TC 4.1.3: JK2 connector dies?

2002-06-27 Thread Liam Morley

  I'm not sure if the port is my problem or not (and if everything is 
using the same port, would it matter which one it was?), but as far as 
the port goes, I get the following two lines in my jk2.properties.save 
document:

port=8019
channelSocket.port=8009

Port = 8019 regardless of what's in jk2.properties, workers2.properties, 
or server.xml (channelSocket.port is equal to whatever's in 
jk2.properties, I think). have I have no idea where port=8019 is 
coming from, as I searched for any document under Apache (both httpd and 
tomcat) that contains the string '8019'; the search came up with 
nothing. I'd be curious to know where it came from.. I plan on 
downloading the connectors source soon and looking into that when I have 
time.

Other than that, I have a few jk2 log questions I'd like to iron out.

why is this an error: [error] workerEnv.init() create default worker 
lb:lb It has an info or debug sound to it, unless creating a worker 
is a bad thing. this shows up every time tomcat starts up, located in 
between a few notices. Are other people getting this as well? I'm also 
getting a LOT of [warn]s that look like info or debug messages. For example:
[warn] config.setConfig():  process uriMap:
[warn] config: set uriMap: / info / 63e7b0 / uriMap:.info = Maps the 
requests.
Of course I can set the log level higher to avoid these messages, but 
what am I supposed to be warned about?
After I make a request to http://localhost/my_webapp/, I get the 
following errors and warns:
[error] ajp13.service() error sending, reconnect 
channel.socket:localhost:8019 -1 9 Bad file descriptor
[warn] workerEnv.callbacks() channel.socket:localhost:8019
[error] msgAjp.receive(): Bad signature 00
[warn] BAD MESSAGE:  pos=4 len=4 max=8300
[error] channelSocket.receive(): Bad header
[error] workerEnv.processCallbacks() Error reading reply
[error] ajp13.service() ajpGetReply unrecoverable error 21000
[warn] ajp13.service() done ajp13:localhost:8019
[warn] endpoint.close() ajp13:localhost:8019
[warn] ajp13.done() close endpoint ajp13:localhost:8019 error_state 0
[warn] ajp13.done() return to pool ajp13:localhost:8019
[error] lb.service() worker failed ajp13:localhost:8019
[error] lb.service() unrecoverable error...
[error] mod_jk.handler() Error connecting to tomcat 21000

It would be nice to know where the bad message or bad file 
descriptor is.. I suppose that's another thing I'll have to go 
searching for in the source code?

I've also been wondering about the following line in stderr.log:
INFO: APR not loaded, disabling jni components: java.io.IOException: no 
jkjni in java.library.path
That sounds bad. I searched the mailing list for prior questions 
involving this, but didn't see any answers.

Let me know if I should post my jk2.properties or workers2.properties 
file if it will help.

Thanks all for your time,
Liam Morley


Ignacio J. Ortega wrote:

De: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Enviado el: 27 de junio de 2002 20:23



  

default.  If you comment all the stuff out in jk2.properties, Tomcat
just generates a jk2.properties.save which has the following for me:



Good, my statments continue correct.. just checked what is on the dist
package for 4.1.3, below is pasted, if you do *nothing* i think the port
is 8019, if you comment it may be it's saved.. i really dont know..

8--- jk2.properties

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Override the default port for the socketChannel
channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
shm.file=${jkHome}/work/jk2.shm

apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
8--- jk2.properties




Saludos ,
Ignacio J. Ortega


  

-Mensaje original-
Para: Tomcat Users List
Asunto: Re[2]: TC 4.1.3: JK2 connector dies? cant get isapi_redirector
to t alkto tomcat


Hello Ignacio,

I don't think yours statement that jk2.properties is on port 8019 by

#AUTOMATICALLY GENERATED
#Tue Jun 25 11:09:03 CDT 2002
maxThreads=75
port=8009
soTimeout=2
jkHome=C\:\\Progra~1\\Apache~1\\Jakarta\\tomcat-4.1.3
tcpNoDelay=true
timeout=2
secure=false
backlog=10

I think it generated all that based on what was defined in the Coyote
jk2 connector.

Jake

Thursday, June 27, 2002, 12:19:38 PM, you wrote:



De: Mark Prins [mailto:[EMAIL PROTECTED]]
Enviado el: 27 de junio de 2002 16:38


I'm not sure I understand, but in my server.xml the connector 
is specified
as listening to 8009, so how's that?


IJO Please post the log you get when starting tomcat just to 
be sure..

IJO What i say is that by default the Coyote/JK2 ajp13 port 
is 8019 no 8009,
IJO regarles of what is on server.xml, because jk2 uses 
jk2.propeties in
IJO addition

Re: TC 4.1.3: JK2 connector dies?

2002-06-27 Thread Liam Morley

  Ignacio,
thanks for the response. glad to be testing:)

No idea where comens from this port=8019.., get 4.1.6 ( from CVS or wait
until Remy packages it ) it may be solves this and much of the other
problems..

thanks, I'll try that when the package comes out.

Of course I can set the log level higher to avoid these messages, but 
what am I supposed to be warned about?


nothing? ;)

good to know:)

Wel you have problems connecting to 8019 port, in the stderr.log says
what port you are using actually..

for what I posted in the last email, everything (I think) was set up to 
use port 8019. stderr.log and stdout.log are attached. I tried running 
in console, and I got a lot more messages that way- I don't remember how 
to set log level on stderr/out.log, so I'm including an attachment of 
the output as well. When running in console, one thing that I noticed 
was this:
[Thu Jun 27 20:57:39 2002] (error ) [jk_config_file.c (261)]  
config.update(): Can't find config file 
${serverRoot}/conf/workers2.properties
[Thu Jun 27 20:57:39 2002] ( info ) [jk_config.c (246)]  
config.setAttribute() Error setting config: file 
${serverRoot}/conf/workers2.properties
[Thu Jun 27 20:57:39 2002] (error ) [jk_logger_file.c (171)]  
Initializing log file stderr
[Thu Jun 27 20:57:39 2002] (error ) [jk_shm.c (333)]  shm.init(): No file
[Thu Jun 27 20:57:39 2002] ( info ) [jk_workerEnv.c (403)]  
workerEnv.init() ok ${serverRoot}/conf/workers2.properties
how is serverRoot specified, and where is it asked for? (I tried 
removing it from workers2.properties, and I still got that message.) I 
tried setting it in both workers2.properties and jk2.properties, neither 
had an effect. Should I be getting a message that says workerEnv.init() 
ok ...workers2.properties if config.setAttribute() just had an error 
setting workers2.properties? Also, no matter where I put jk2.shm, I get 
the message shm.init(): No file.

You need to put jkjni.dll in your path..

Ah, I see. I had jkjni.dll in my APACHE_HOME/modules/ directory.. after 
moving it into my WINDOWS directory (along with libapr.dll and 
libaprutil.dll), I'm not seeing that message anymore, so that looks all 
set. Are there any other dlls that should be in my path instead of in my 
modules folder?

Thanks again for the help.
Liam Morley


Jun 27, 2002 8:51:14 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Loading registry information
Jun 27, 2002 8:51:14 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Creating new Registry instance
Jun 27, 2002 8:51:14 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Creating MBeanServer
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Attribute port: 8080
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Attribute maxThreads: 75
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Attribute backlog: 10
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Attribute tcpNoDelay: true
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Attribute soTimeout: 2
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Attribute timeout: 2
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Attribute secure: false
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Initializing Coyote HTTP/1.1 on port 8080
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Starting Jk2, base dir= C:\Apache\tomcat4.1.3-beta 
conf=C:\Apache\tomcat4.1.3-beta\conf\jk2.properties
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: JK: listening on tcp port 8019
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Component not found, creating it channel.jni:jni
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: No file, disabling unix channel
Jun 27, 2002 8:51:16 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Jk running ID=0 ... init time=220 ms
Jun 27, 2002 8:51:35 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Starting Coyote HTTP/1.1 on port 8080


Bootstrap: Create Catalina server
XXX native so C:/Apache/httpd/modules/mod_jk2.dll
Bootstrap: Starting service
Starting service Tomcat-Standalone
Apache Tomcat/4.1.3-LE-jdk14
Server 1.6 is running
Press [Ctrl]+[C] to abort
Bootstrap: Service started
Bootstrap: Stopping service
Stopping service Tomcat-Standalone
Bootstrap: Service stopped


Jun 27, 2002 8:57:38 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Loading registry information
Jun 27, 2002 8:57:38 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Creating new Registry instance
Jun 27, 2002 8:57:38 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Creating MBeanServer
Jun 27, 2002 8:57:39 PM org.apache.commons.logging.impl.Jdk14Logger info
INFO: Attribute port: 8080

Re: cgi perl script and tomcat...

2002-06-27 Thread Liam Morley

Tomcat does, but it's not turned on by default. You want to look in your 
$CATALINA_HOME/conf/web.xml; search for the word CGI, and you should 
come upon the section you're looking for.

Liam Morley


Hoang C. Truong wrote:

Hi everyone,
Does tomcat support cgi perl?  How do I configure and
how do I kick off the cgi script from my web browser?

Thanks,

-Hoang

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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



  




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




Re: cgi perl script and tomcat...

2002-06-27 Thread Liam Morley

yep:) it's stored on your hard drive wherever you have cgiPathPrefix set 
to... and you access it within your browser wherever you have the cgi 
servlet-mapping set to.

Liam Morley

Hoang C. Truong wrote:

I got it.  I just need to put it in the root of my
webapp and access it as
http://localhost:8080/testcgi/cgi-bin/hello.cgi

Thanks,

-Hoang


--- Hoang C. Truong [EMAIL PROTECTED]
wrote:
  

Thanks Liam for your quick respond,
Yes,  I saw the section you mentioned and
uncommented
it.  
Now I would like to create webapp testcgi that has
hello.cgi script in it.  How would I do that in term
of  what directory do I need to create?  And how
would
I access hello.cgi from a browser?
Thanks for your help.

-Hoang


--- Liam Morley [EMAIL PROTECTED] wrote:


Tomcat does, but it's not turned on by default.
  

You


want to look in your 
$CATALINA_HOME/conf/web.xml; search for the word
CGI, and you should 
come upon the section you're looking for.

Liam Morley


Hoang C. Truong wrote:

  

Hi everyone,
Does tomcat support cgi perl?  How do I configure


and
  

how do I kick off the cgi script from my web


browser?
  

Thanks,

-Hoang



__
  

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:  


mailto:[EMAIL PROTECTED]


For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  


 




--
To unsubscribe, e-mail:  

  

mailto:[EMAIL PROTECTED]


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

  

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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





__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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



  




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




Re: Tomcat 3.x failures

2002-06-27 Thread Liam Morley

Gregory,
some one just had this issue on this list with Debian Woody yesterday. 
It turned out that the JDK did have something to do with it. Here's the 
link to that thread, you should be able to get all the info you need there.

http://marc.theaimsgroup.com/?l=tomcat-userm=102509954005272w=2

Best of luck,
Liam Morley

Gregory Guthrie wrote:

 I tried to install tomcat4,
 It installs fine, but then complains that it can't find an appropriate 
 JDK, and indeed the Debian page reports that it needs J2SDK, which is 
 not available (for Debian)?

 To even get Apache to then start (after installing Tomcat4), I had to 
 remove the tomcat-auto include from httpd.conf (Tomcat no longer seems 
 to generate this on startup..?) . Now I have parts of Tomcat3, Tomcat4 
 (not working, missing J2SDK), and Apache which now won't connect to 
 either.

 What is the proper upgrade path, or can I solve my tomcat 3 problems 
 and revert to it?

 -- Do I need to apt-get remove tomcat before installing tomcat4?

 -- Is the mod_jk connection with Apache changed?  (the httpd.conf 
 items noted above)

 -- Is there a source of instructions for this that I should be reading!?

 ( I hope this is not too Debian specific for this list..)

 I have a Tomcat 3.2B6 install on Linux (Debian 2.2), w/ Apache .
 
  The server seems to work fine, but the log files constantly report the
  errors below, about each 4 seconds. after a day or so log files
  of hundreds
  of MB are common.

 Did you install the deb from the main Debian archive? I experianced 
 this a
 few months ago and solved it by installing the tomcat4 package.


 There ought to be a bug in the debian bug tracker that ought to describe
 this.

 
 Gregory Guthrie
 [EMAIL PROTECTED] (641)472-1125Fax: -1103
 


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






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




Re: Tomcat 3.x failures

2002-06-27 Thread Liam Morley

I noticed that:) but if you look at the rest of the thread, he ended up 
solving it by upgrading his jdk through Blackdown.. It sounded from the 
tone of the thread that he had found a deb package, so check to make 
sure one exists.

Liam Morley

Gregory Guthrie wrote:

 At 12:11 AM 06/28/2002 -0400, Liam Morley wrote:

 Gregory,
 some one just had this issue on this list with Debian Woody 
 yesterday. It turned out that the JDK did have something to do with 
 it. Here's the link to that thread, you should be able to get all the 
 info you need there.

 http://marc.theaimsgroup.com/?l=tomcat-userm=102509954005272w=2


 -- Oops, circular reference!
 This was someone seeing an old post of mine, on the same problem, and 
 asking for my solution!

 At that time, I fiddled some, re-arranged some things the install 
 broke, waited a week or so and the errors disappeared. I never solved 
 it. Now they reappear...

 Greg



 Best of luck,
 Liam Morley

 Gregory Guthrie wrote:

 I tried to install tomcat4,
 It installs fine, but then complains that it can't find an 
 appropriate JDK, and indeed the Debian page reports that it needs 
 J2SDK, which is not available (for Debian)?

 To even get Apache to then start (after installing Tomcat4), I had 
 to remove the tomcat-auto include from httpd.conf (Tomcat no longer 
 seems to generate this on startup..?) . Now I have parts of Tomcat3, 
 Tomcat4 (not working, missing J2SDK), and Apache which now won't 
 connect to either.

 What is the proper upgrade path, or can I solve my tomcat 3 problems 
 and revert to it?

 -- Do I need to apt-get remove tomcat before installing tomcat4?

 -- Is the mod_jk connection with Apache changed?  (the httpd.conf 
 items noted above)

 -- Is there a source of instructions for this that I should be 
 reading!?

 ( I hope this is not too Debian specific for this list..)

 I have a Tomcat 3.2B6 install on Linux (Debian 2.2), w/ Apache .
 
  The server seems to work fine, but the log files constantly 
 report the
  errors below, about each 4 seconds. after a day or so log files
  of hundreds
  of MB are common.

 Did you install the deb from the main Debian archive? I experianced 
 this a
 few months ago and solved it by installing the tomcat4 package.



 There ought to be a bug in the debian bug tracker that ought to 
 describe
 this.

 
 Gregory Guthrie
 [EMAIL PROTECTED] (641)472-1125Fax: -1103
 


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





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


 
 Dr. Gregory Guthrie
 [EMAIL PROTECTED] (641)472-1125Fax: -1103
Computer Science Department
School of Computing and Information Science
Maharishi University of Management
   (Maharishi International University 1971-1995)
 http://www.mum.edu/cs_dept
 




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




Re: TO ALL NEWBIES:advice from a semi-newbie

2002-06-27 Thread Liam Morley

This is probably great advice for a newbie, although I can't say for 
sure as I haven't checked the Web Services pack out yet and couldn't 
evaluate it. To clarify, jdk1.3.1 does work with tomcat 4.x (or at least 
it does so far), however I'm not sure if you need jdk1.4 for the web 
services pack. I'm curious as to whether most people go with tomcat as 
part of a bundled package (either with Sun Forte or with Sun Web 
Services Dev Pack), or if they get it seperately from Apache Jakarta. 
I've always gone for getting it seperately, because I know what version 
I'm getting, I'm not worried about it being scaled down or having a 
different configuration system, and I know how to upgrade. But I 
certainly can see the advantages of a bundled system for somebody who's 
learning. Does anybody use a bundled system elsewhere as well?

Liam Morley

Clay Graham wrote:

Hi newbies!

I am writing this because I went through some pain installing tomcat, I 
think anyone would if they weren't already pretty familliar with what is 
going on..

I want to give just a little advice from someone who just went through it 
all...

1. Install JSDK 1.4 from sun, nothing other version will do
http://java.sun.com/j2se/1.4/download.html

2. Install Java Web Services Developer Pack (Java WSDP)
http://java.sun.com/webservices/downloads/webservicespack.html

This has a killer installer and will install tomcat4 for you real nice and 
neatIt also has just about everything you need to know about this 
incredible server application revolution...

3. Install the Java Web Services Developer Pack Tutorial
http://java.sun.com/webservices/downloads/webservicestutorial.html

This is the best way for a newbie who just doesn't get the details of the 
very cool jakarta project.

you will be running tomcat within 30 minutes.

I HOPE I HELPED YOU!

clay




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



  




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




Re: problem with manager app

2002-06-25 Thread Liam Morley

I don't think the manager reload command reloads from the .war file. 
Instead it reloads from the directory which has been extracted from the 
.war file. Have you tried reloading after making changes to the directory?

Liam Morley

Cory Casler wrote:

I am trying to use the reload command in the manager app to reload an
application when a change has been made, so that I don't have to restart
the server every time I make a change to a servlet.  The reload command
does not work.  Is it possible to reload a .war file with restarting the
server?

Cory Casler
IHETS WebDev


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



  




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




Re: appache could not be started

2002-06-25 Thread Liam Morley

Was there anything in the logs, or were they empty? Do you have a log 
set up for mod_jk, and did that have any info?

Liam Morley

Hao Ding wrote:

Hi,

I tried connect Tomcat4.0.3 with Apache1.3.26 using mod_jk.so. I included 
mod_jk.conf file at the end of httpd.conf
 
I then tested apache configure

$ apachectl configtest

the syntas is ok, but when I started the appache

$ apachectl start

I got a message httpd could not be started
Can anyone explain what the problem is and how to solve it?

Thanks a lot!
Hao



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



  




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




Re: tomcat to run perl cgis?

2002-06-24 Thread Liam Morley

Scott,
Have you looked in your $CATALINA_HOME/conf/web.xml for more info about 
running cgi scripts in Tomcat? That might be all you need; I haven't 
tested this out, but it looks pretty straight forward...

best of luck,
Liam Morley

Scott Purcell wrote:

Hello,
I have Tomcat 4.0.3 running on my NT box. I do mostly servlet work, but I have the 
need to run a Perl CGI for a web project. I have put some .pl files and .cgi files 
into the docroot, but they do not execute properly. Is there a way to allow Perl to 
run with Tomcat? Could someone advise me of a path I could take to get them to run?

Thanks,
Scott


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




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




Re: example mod_jk2 configuration for Apache 2.0.39

2002-06-24 Thread Liam Morley

Rory,
thank you very much; that'll get me started. I'm guessing you're running 
with Tomcat4.1; I'm trying this with Tomcat 4.0.4. With JK1, there was a 
Listener you could plug in to your $CATALINA_HOME/conf/server.xml 
(Listener className=org.apache.ajp.tomcat4.config.ApacheConfig.../). 
Does that still exist? Are there any changes to the server.xml and 
web.xml that you can point out (for example, the mod_jk2 version of 
Connector className=org.apache.ajp.tomcat4.Ajp13Connector .../?)

Thanks once again, this is a big help.
Liam Morley

Douglas, Rory wrote:

 Hi there

 I haven't set-up anything really complex but the following setup 
 should work. I haven't got around to trying load-balancing, if anyone 
 does that and gets it working, please share!

 ---
 in HTTPD.CONF (in Apache2\conf)
 ---
   LoadModule jk2_module modules/mod_jk2.dll

 -
 in JK2.PROPERTIES (in Tomcat4.1\conf)
 -
 I just commented out everything. Note that if you are using an AJP 
 connector with port other than the default of 8009 you should specify 
 here (where it says channelSocket.port). If you comment everything out 
 JK seems to default to 8009 (and then 8010, 8011 and so on if you have 
 more than one connector).  If you want need specific ports for 
 multiple connectors then specify channelSocket.port multiple times e.g

   channelSocket.port=8014
   channelSocket.port=8018

 if you have two AJP connectors specified in server.xml with port 
 numbers 8014 and 8018.

 --
 in WORKERS2.PROPERTIES
 --

 I just copied this file from tomcat4.1\jtc-src\jk\conf into 
 Apache2\conf and edited it a bit. The really important bits seem to be:

   [channel.socket:localhost:8009]
   info=Ajp13 forwarding over socket
   debug=20
   tomcatId=Tomcat-Standalone

 that actually sets up a worker. I understand that you can specify

   group=someGroupName

 and create groups of workers for load-balancing. I also believe that 
 every worker created without specfiying a group is in the default 
 group (I think it is lb).

 To map contexts use [uri:] blocks like so:

   [uri:/test]
   info=Test context mapping
   debug=20
   context=/test

 Again, here you can specify which workers serve that context by 
 specifying group=groupName

 It's a good idea to keep these parts around too:

   [status:]
   info=Status worker, displays runtime informations

   [uri:/jkstatus/*]
   info=Display status information and checks the config file for changes.
   group=status:

 you can then hit http://yourapacheserver/jkstatus and get a loads of 
 jk info that might help you catch config errors

 There are some docs in tomcat4.1\jtc-src\jk\doc\jk2 that might help 
 (but they're not great).

 Hope this is useful to someone
 cheers
 Rory

 -Original Message
 From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 24, 2002 11:08 AM
 To: Tomcat Users List
 Subject: Re: mod_jk2 binary available here


 Hello Rory,

 Actually, a working version of mod_jk2.dll has already been provided
 by Apache here:

 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32/ 


 However, the real issue now is how does one configure all this?  Rory,
 you would be providing a super service to a lot of people if you would
 provide a minimal configuration of mod_jk2 with *all* files involved.

 thanks,

 Jake

 Monday, June 24, 2002, 10:01:13 AM, you wrote:

 DR Hello all

 DR I have a working binary of mod_jk2.dll (working with Apache 2.0.39 
 on Win2k
 DR Server) if anyone would like to try it out. No guarantees though!

 DR You can get it here -- http://www.mycgiserver.com/~worrel 
 http://www.mycgiserver.com/%7Eworrel

 DR cheers

 DR Rory Douglas
 DR Sun Chemical Corporation
 DR (201) 224-4600 x133
 DR [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



 -- 
 Best regards,
  Jacobmailto:[EMAIL PROTECTED]


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



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




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




the full scoop on mod_jk2 Apache 2.0.39 on Win32

2002-06-23 Thread Liam Morley

Ok. Like many people, I've been having problems getting the whole story 
concerning mod_jk. If anybody can put all the pieces together in one 
location, that'd be great (or if somebody already has, and I'm missing 
it, it'd be great if somebody could tell me where to look).

Here's what I know. I can grab a dll from 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32/, 
and throw that in my httpd/modules directory. I can load that module 
from within httpd.conf with a LoadModule jk2_module 
modules/mod_jk2.dll directive (though I don't know if typing 
'jk_module' vs. 'jk2_module' is documented too well; the only place 
google can find a reference to jk2_module is in the archives of the 
tomcat-dev list, which isn't a good sign).

After that, it really starts to get hazy. Here are some questions.

   1. What's the relationship between
  
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32/mod_jk2.dll
  and
  
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1.0-rc2/tomcat-jk2.jar?
  Do I need tomcat-jk2.jar? If so, why isn't it in the
  connectors/jk2 directory? If not, why is it named
  tomcat-jk2.jar? After looking around for coyote, I find that
  it's now an official Jakarta connector project, as well as the
  default connector for tomcat 4.1. How does Coyote co-exist with
  jk2? Are they not both connectors?
   2. What's the relationship between mod_jk and the AJP connector found
  on
  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html?
  That seems like mod_jk v1... but is there anything that still
  applies, and if so, how can I tell what that might be? I used to
  use the following code:
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig... /
  in my CATALINA_HOME/conf/server.xml file. The ApacheConfig class
  is mentioned on the AJP page; can I still use this class? Or do I
  have to use a different class for jk2? If so, what class? Where
  would this class be if I already had it, and where might I find it
  if I don't?
   3. Where inside the vast number of source files found at
  http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/jk/native2/
  (the recommended location for more information, noted on the
  nightly builds page) can I find information that might help me out
  in setting jk2 up? I'm not a tomcat developer, I'm not acquainted
  with the project, nor do I want to be; I just want to configure
  mod_jk for the latest official release of Apache httpd.
   4. When using mod_jk v1, I used to have the directive JkWorkersFile
  %CATALINA_HOME%/conf/jk/workers.properties within my httpd.conf.
  Either that, or I could include another document (jk.conf) that
  would contain that statement. I'm getting a message from Apache
  that says Invalid command 'JkWorkersFile', so I'm guessing I
  have to find a replacement for that statement. I've heard a lot of
  talk about this, but could somebody please tell me how
  workers.properties is found? I've heard that jk2 looks for a
  document called workers2.properties by default, and if it doesn't
  find that document, it complains.. but where does it look for it,
  and how do you tell it where to look? Is that taken care of in the
  Listener part of server.xml? In addition to finding the JkWorkers
  file, I also need to find the current calls for JkMount,
  JkLogFile, and JkLogLevel, in case those have changed. (Or, if
  those are auto-generated by a new java class, that's great too.)

I apologize for the length and somewhat frustrated tone of this email.. 
I sincerely appreciate any help that someone is able to give me.

Liam Morley


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




Re: set content type to text/pdf

2002-06-21 Thread Liam Morley

right. Mozilla and other such browsers listen to the mime type, but IE 
(living in a microsoft world where everything is done via file 
extensions) is famous for relying on the extension rather than the mime 
type.

Liam Morley

Dennis van den Berg wrote:

Hi,

I think when you make the request go to Tiparire.pdf it should open in your browser.
It somehow also has something to do with the extension.

Dennis.



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




Re: AW: set content type to text/pdf

2002-06-21 Thread Liam Morley

I'm sure there's a better way, but in case there's not, there's always 
mod_rewrite. You could rewrite the url so that /(*).pdf goes to /$1.

Liam Morley


Alex wrote:

Hello Ralph,

  I can't point my browser to a location that ends with .pdf,
  because i have to point it to my servlet, for ex:
  document.location.href=/servlet/Tiparire
  Is there any trick to do this ?

  Alex.
  

Friday, June 21, 2002, 10:44:00 AM, you wrote:

RE MS IE has sometimes his own opinion what to open and 
RE ignores the content type.

RE The safest way to convince IE to open PDF is to set the 
RE content type to load the file from a url that has the 
RE extension .pdf.

RE Additional hint:
RE   Make shure that your servlet supports Byte range
RE   requests (HTTP 1.1). The acrobat reader sometimes 
RE   uses this. (Have a look at the source for the 
RE   servlet that implements the fileserving for tomcat)

  

-Ursprüngliche Nachricht-
Von: Alex [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. Juni 2002 09:37
An: [EMAIL PROTECTED]
Betreff: set content type to text/pdf

What can i do so my browser automatically opens the pdf 
content generated
by the servlet ?
Thanks in advance...
  


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



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



  




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




Re: AW: AW: set content type to text/pdf

2002-06-21 Thread Liam Morley

You might need to declare the servlet from within a servlet element like 
this as well:

|servlet-mapping
  servlet-nameTiparire/servlet-name
  url-patternTiparire.pdf/url-pattern
/servlet-mapping
servlet
  servlet-nameTiparire/servlet-name
  servlet-classTiparire/servlet-class
/servlet
|
servlet-class is actually the fully qualified class name (with package 
name etc), just in case it's part of a package.

Liam Morley

Alex wrote:

Hello Ralph,

  I've modified web.xml from ROOT\WEB-INF, and i've added
  something like this:
servlet-mapping
servlet-nameTiparire/servlet-name
url-patternTiparire.pdf/url-pattern
/servlet-mapping
  My servlet is called Tiparire.class and is located into
  ROOT\WEB-INF\classes
  But, when i start tomcat, it says:
   ERROR reading java.io.ByteArrayInputStream@4e280c
   At Line 11 /web-app/servlet-mapping/
  What is wrong ?

  Alex.

Friday, June 21, 2002, 11:01:10 AM, you wrote:

RE It's possible to configure tomcat to let you request
RE /servlet/Tiparire/text.pdf and to get /servlet/Tiparire
RE executed. I haven't tried by now to do something like 
RE that so can't give you much more help.

RE Maybe something like this should do the trick:

RE servlet-mapping
RE   servlet-nameTiparire/servlet-name
RE   url-pattern*.pdf/url-pattern
RE /servlet-mapping



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



  




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




to upgrade: uninstall previous, or install over?

2002-06-19 Thread Liam Morley

as for me, I'm running Tomcat/4.0.4-b3 on Windows XP Pro.

I'm wondering if people installing Tomcat have traditionally uninstalled 
their old version, or have they installed new versions without 
uninstalling, overwriting the current install?

Thanks.
Liam Morley


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




Re: [offtopic] IDE for Tomcat?

2002-06-14 Thread Liam Morley

I've been a bit wary of Forte due to the whole bundling of Tomcat thing. 
Which version of Tomcat 4 is it? Is it a full version? Does it work with 
JDK1.4? And does it interfere at all with a standard installation of 
Tomcat 4?

Thank you,
Liam Morley

[EMAIL PROTECTED] wrote:

I'm using Forte 4, which is now called Sun ONE Studio 4. I'm liking the new
version a lot. It has better integration with Tomcat now. Plus, it has
Tomcat 4. Functionality and response wise it seem to of improved. I've been
using Forte, and now Sun ONE Studio 4, for about six months or so to
develop servlets.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813



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



  




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




mod_jk 2 jar file

2002-05-07 Thread Liam Morley

I'm looking for a jar file that has the mod_jk 2 connector. I know it's
bundled in the Tomcat 3 release, but I don't want to download the whole
thing just to get a few class files:( Can anybody point me to a quick
location where I can grab the class files? I'd prefer not to build them
from source, but I will if there's no other solution...

Thanks,
Liam Morley


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




JSESSIONID disappearing when doing special mod_rewite commands?

2002-04-24 Thread Liam Morley

Sorry to repost, but as I sent this a few days ago and haven't received a
response (and this is somewhat of a high priority to me at the moment),
I'm sending this again. Thank you for understanding.

By the way, I'm using Tomcat 4.0.1 and Apache 1.3 on a Windows XP machine.

After looking through the Apache documentation on mod_rewrite and
mod_proxy, I have tried the following:
RewriteRule ^/cocoon/(.*)$ http://localhost:8080/cocoon/$1 [P,L]
ProxyPassReverse  /cocoon/ http://localhost:8080/cocoon/

That was successful. When I tried shortening this a bit to the following,
tomcat session IDs stopped getting through:
RewriteRule ^/(.*)$ http://localhost:8080/cocoon/myapp/$1 [P,L]
ProxyPassReverse  / http://localhost:8080/cocoon/myapp/

'cocoon' being a webapp (xml.apache.org/cocoon/) and 'myapp' being a
subproject of that.

What am I missing? I've also added the following, although I don't believe
it has anything to do with my problem:
RewriteRule /(static)|(icon)/.* - [L]

For reference, here are the original request parameters being sent:

PARAM: 'cookie' VALUES: '[JSESSIONID=A897E11152D430961782D5C9D9E67211;
CMSUSER=mMsjah1coqlTGONdauaj1HrXi%2Fi2nT0lSZBixdwP%2BwQ%3D]'
PARAM: 'connection' VALUES: '[Keep-Alive]'
PARAM: 'accept-encoding' VALUES: '[gzip, deflate]'
PARAM: 'referer' VALUES: '[http://localhost/cocoon/cms/info/mission.html]'
PARAM: 'accept' VALUES: '[image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*]'
PARAM: 'accept-language' VALUES: '[en-us]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; Q312461)]'
PARAM: 'host' VALUES: '[localhost]'

And here are the parameters when shortening the URL with mod_rewrite:

PARAM: 'cookie' VALUES:
'[CMSUSER=mMsjah1coqlTGONdauaj1HrXi%2Fi2nT0lSZBixdwP%2BwQ%3D]'
PARAM: 'connection' VALUES: '[Keep-Alive]'
PARAM: 'accept-encoding' VALUES: '[gzip, deflate]'
PARAM: 'referer' VALUES: '[http://localhost/cms/news/news_story_1.html]'
PARAM: 'accept' VALUES: '[*/*]'
PARAM: 'accept-language' VALUES: '[en-us]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; Q312461)]'
PARAM: 'host' VALUES: '[localhost]'

Clearly the tomcat session is gone. Any help would be GREATLY appreciated,
as I'm not sure what else to do.

Liam Morley


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JSESSIONID disappearing when doing special mod_rewite commands?

2002-04-21 Thread Liam Morley

After looking through the Apache documentation on mod_rewrite and
mod_proxy, I have tried the following:
RewriteRule ^/cocoon/(.*)$ http://localhost:8080/cocoon/$1 [P,L]
ProxyPassReverse  /cocoon/ http://localhost:8080/cocoon/

That was successful. When I tried shortening this a bit to the following,
tomcat session IDs stopped getting through:
RewriteRule ^/(.*)$ http://localhost:8080/cocoon/myapp/$1 [P,L]
ProxyPassReverse  / http://localhost:8080/cocoon/myapp/

'cocoon' being a webapp (xml.apache.org/cocoon/) and 'myapp' being a
subproject of that.

What am I missing? I've also added the following, although I don't believe
it has anything to do with my problem:
RewriteRule /(static)|(icon)/.* - [L]

For reference, here are the original request parameters being sent:

PARAM: 'cookie' VALUES: '[JSESSIONID=A897E11152D430961782D5C9D9E67211;
CMSUSER=mMsjah1coqlTGONdauaj1HrXi%2Fi2nT0lSZBixdwP%2BwQ%3D]'
PARAM: 'connection' VALUES: '[Keep-Alive]'
PARAM: 'accept-encoding' VALUES: '[gzip, deflate]'
PARAM: 'referer' VALUES: '[http://localhost/cocoon/cms/info/mission.html]'
PARAM: 'accept' VALUES: '[image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*]'
PARAM: 'accept-language' VALUES: '[en-us]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; Q312461)]'
PARAM: 'host' VALUES: '[localhost]'

And here are the parameters when shortening the URL with mod_rewrite:

PARAM: 'cookie' VALUES:
'[CMSUSER=mMsjah1coqlTGONdauaj1HrXi%2Fi2nT0lSZBixdwP%2BwQ%3D]'
PARAM: 'connection' VALUES: '[Keep-Alive]'
PARAM: 'accept-encoding' VALUES: '[gzip, deflate]'
PARAM: 'referer' VALUES: '[http://localhost/cms/news/news_story_1.html]'
PARAM: 'accept' VALUES: '[*/*]'
PARAM: 'accept-language' VALUES: '[en-us]'
PARAM: 'user-agent' VALUES: '[Mozilla/4.0 (compatible; MSIE 6.0; Windows
NT 5.1; Q312461)]'
PARAM: 'host' VALUES: '[localhost]'

Clearly the tomcat session is gone. Any help would be GREATLY appreciated,
as I'm not sure what else to do.

Liam Morley


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: How do you change the base URL for your servlets in Tomcat?

2001-08-06 Thread Liam Morley

Lars,
You'll want to look at your server.xml file in the conf/ folder,
specifically towards the bottom (Context /, Special webapps).

---
Liam Morley

light the deep, and bring silence to the world.
light the world, and bring depth to the silence.







problems with dynamic classpath creation

2001-08-02 Thread Liam Morley

I'm on Windows 2000, and I've just installed Cocoon, which requires a
number of jar files to be in the classpath. As I've added them to the
%TOMCAT_HOME%\lib folder, they are now dynamically included in the
classpath. However, I'm having problems with this, as follows:

Including all jars in H:\code\wpigdc-cms\tomcat\lib in your CLASSPATH.
The input line is too long.
The syntax of the command is incorrect.

It seems that the line is too long for Windows to handle. I think the
input line is too long line is a windows error in any case as I can not
find that text in any of the batch files in the bin directory.

Can somebody please tell me either how to fix windows to allow the line to
be longer or how to shorten the line?

Thank you very much...

---
Liam Morley

light the deep, and bring silence to the world.
light the world, and bring depth to the silence.