Re: Apache mod_jk and Tomcat not working correctly

2008-10-27 Thread Wayne Bragg
I  got it to work almost with some of these changes. In particular the 
JkMount /dwr-examples/* ajp13worker1.

That was the problem.

Now the only thing that is causing a problem are a couple of a policy 
violations. This happened before and I had to delete them.

How do I find which ones they are and where they are?

[Mon Oct 27 00:42:31 2008] [error] [client 127.0.0.1] ModSecurity: Warning. 
Pattern match 
(?:b(?:on(?:(?:mo(?:use(?:o(?:ver|ut)|down|move|up)|ve)|key(?:press|down|up)|c(?:hange|lick)|s(?:elec|ubmi)t|(?:un)?load|dragdrop|resize|focus|blur)bW*?=|abortb)|(?:l(?:owsrcbW*?b(?:(?:java|vb)script|shell)|ivescript)|(?:href|url)bW*?b(?:(?:java|vb)script|shell)|mocha):|typebW*?b(?:textb(?:W*?b(?:j(?:ava)?|ecma)scriptb| 
[vbscript])|applicationbW*?bx-(?:java|vb)scriptb)|s(?:(?:tylebW*=.*bexpressionbW*|ettimeoutbW*?)(|rcbW*?b(?:(?:java|vb)script|shell|http):)|(?:c(?:opyparentfolder|reatetextrange)|get(?:special|parent)folder|background-image:|@import)b|a(?:ctivexobjectb|lertbW*?())|(?:(?:bodyb.*?b(?:backgroun|onloa)d|inputb.*?btypebW*?bimage)b|![CDATA[|script|meta)|.(?:(?:execscrip|addimpor)t|(?:fromcharcod|cooki)e|innerhtml)b) 
at REQUEST_FILENAME. [id 950004] [msg Cross-site Scripting (XSS) Attack] 
[severity CRITICAL] [hostname localhost] [uri /msgboard/js/cookie.js] 
[unique_id [EMAIL PROTECTED]]
[Mon Oct 27 01:06:10 2008] [error] [client 127.0.0.1] ModSecurity: Warning. 
Match of rx 
^(?:application/x-www-form-urlencoded|multipart/form-data|text/xml)$ 
against REQUEST_HEADERS:Content-Type required. [id 960010] [msg Request 
content encoding is not allowed by policy] [severity WARNING] [hostname 
localhost] [uri /dwr-examples/dwr/call/plaincall/Intro.getInsert.dwr] 
[unique_id 7XnhS8CoAWUAAAwciBDz]


Thanks alot for the help, your masters!

- Original Message - 
From: Rainer Jung [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 27, 2008 12:07 AM
Subject: Re: Apache mod_jk and Tomcat not working correctly



Wayne Bragg schrieb:

my setup:
   WinXP Home
   Wed-Dev install of:
   Apache/2.2.3 (Win32)
   Tomcat 5
   PHP 5.2.0


Before proceeding consider taking more recent minor versions, like
2.2.10, PHP 5.2.6 and you didn't tell us your Tomcat version. Your
mod_jk below is 1.2.19, which is *very* outdated, use 1.2.26.


I have mod_jk connector set up the following way according to
instructions:

Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/

Directory /www/tomcat5/webapps/dwr-examples/
 Options Indexes FollowSymLinks


If you don't need those options drop them.


 AllowOverride None
 Order deny,allow
 Deny from all
 Allow from all

 AddType text/html .php .phps
 AddHandler application/x-httpd-php .php
 AddHandler application/x-httpd-php-source .phps
/Directory

mod_jk setup:
   LoadModule jk_module modules/mod_jk.so

IfModule jk_module
JkWorkersFile conf/Suite-extra/workers.properties


We don't know the contents of this file.


JkLogFile logs/mod_jk.log
JkLogLevel warn
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 


You shouldn't nedd a JkLogStampFormat. Only use it, if you think you
need it.


JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories


Delete +ForwardURICompat from the list if you are not sure you need it.


JkRequestLogFormat %w %V %T


You should use logging of mod_jk notes in the access log instead.


   Location /*/WEB-INF/*
# AllowOverride None
 deny from all
/Location

   JkMount /dwr-examples/*.jsp ajp13worker1
   JkMount /dwr-examples/*.jspx ajp13worker1


Your testing URL /dwr-examples/dwr does not match any of those two
rules, so it won't get send to Tomcat.


   JkUnMount /dwr-examples/*.html  ajp13worker1
   JkUnMount /dwr-examples/*.htm  ajp13worker1
   JkUnMount /dwr-examples/*.png  ajp13worker1
   JkUnMount /dwr-examples/*.jpg  ajp13worker1
   JkUnMount /dwr-examples/*.jpeg  ajp13worker1
   JkUnMount /dwr-examples/*.gif  ajp13worker1
   JkUnMount /dwr-examples/*.ico  ajp13worker1
   JkUnMount /dwr-examples/*.php  ajp13worker1


What about

   JkMount /dwr-examples/* ajp13worker1
   JkUnMount /*.html  ajp13worker1
   JkUnMount /*.htm  ajp13worker1
   JkUnMount /*.png  ajp13worker1
   JkUnMount /*.jpg  ajp13worker1
   JkUnMount /*.jpeg  ajp13worker1
   JkUnMount /*.gif  ajp13worker1
   JkUnMount /*.ico  ajp13worker1
   JkUnMount /*.php  ajp13worker1

instead?


/IfModule

Everthing works using port 8080 but I am getting the following error in 
the

error.log in Apache when I use port
80 ie: http://localhost:8080/dwr-examples/ vs
http://localhost/dwr-examples/


[Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4 
configured

[Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev

Re: Apache mod_jk and Tomcat not working correctly

2008-10-27 Thread Wayne Bragg
Your both right. It's fixed and working now. One other thing for reference 
purposes. There are a couple default policies in Apache that cause DWR to 
malfunction. I was able to locate them and commented them out. It may be one 
or both of the following policies.


##SecRule REQUEST_METHOD !^(?:GET|HEAD)$ chain, 
deny,log,status:501,id:960010,severity:4,msg:'Request content encoding is 
not allowed by policy'
##SecRule HTTP_Content-Type 
!^(?:application/x-www-form-urlencoded|multipart/form-data|text/xml)$


and/or

##SecRule REQUEST_METHOD !^(?:GET|HEAD)$ chain, 
deny,log,status:501,id:960010,severity:4,msg:'Request content encoding is 
not allowed by policy'
##SecRule HTTP_Content-Type 
!^(?:application/x-www-form-urlencoded|multipart/form-data|text/xml)$


I didn't check for sure which one is causing the problem with dwr because 
they were both causing errors in my log.


So as far as i am concerned the problem was solved.

Thank you to everyone that help me!

- Original Message - 
From: André Warnier [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 27, 2008 3:20 AM
Subject: Re: Apache mod_jk and Tomcat not working correctly



Hi.
Forget my earlier response, and look at Rainer's.
He spotted what I did not, in your JkMount.
You don't have any JkMount that will match /dwr-examples/dwr, and that
is the problem.
But go back, read Rainer's answer, do the different things that he says
(cleaning up mostly), and read the stuff below if you still do not get it.


the Why :

When Apache gets asked for a URL, and it realises that this URL
corresponds to a directory (not a file), it will :
- try and locate, in that directory, a document that matches one of the
ones indicated in its DirectoryIndex directive.  If it finds one, it
will return it to the browser, and he's done.
- if it doesn't, it will look if he's authorised to create himself a
directory list of files (Options Indexes).  If he is, he will create
such a document, send it back to the browser, and he's done.
- if the above all fails, Apache returns a not found error.
That's a bit simplified, but it's the idea.

What probably happens in your case :
1) You enter the URL http://localhost/dwr-examples/;
2) Apache gets this request, and tries to match /dwr-examples/ with all
your Alias and JkMount directives.
3) It does not find a match with JkMount, but finds a match with your
Alias directive :
Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/
4) So it serves this content itself.  It looks in
/www/tomcat5/webapps/dwr-examples/ to find a DirectoryIndex file
(you did not say what you put there).  Suppose it finds one there,
called index.html. It sends it to the browser and he's done.
5) Now something in this file tells the browser to load the page
http://localhost/dwr-examples/dwr;, so it does.
(I am guessing here, but you should be able to see what happens, in
sequence, in your Apache access log)
6) Apache gets this new request (for /dwr-examples/dwr), and starts
again trying to match it with Alias and JkMount.  It again does not
match any JkMount, but it does match the same Alias as before, so Apache
tries to serve this new request from the directory
/www/tomcat5/webapps/dwr-examples/ (loking for dwr in there).
7) It does not find anything there called dwr, so it returns the error
you are seeing in the log.

By doing what Rainer is recommending :
JkMount /dwr-examples/* workername
and then un-mounting selected parts of that, like
JkUnMount /dwr-examples/*.html workername
...
you avoid the above, because your call to
/dwr-examples/dwr will now match the first JkMount, so it will be
re-directed to Tomcat (and Apache will not try to do it itself), and
Tomcat (presumably) knows what to do with /dwr-examples/dwr.





Wayne Bragg wrote:

Apache is suppose to serve /dwr-examples and /dwr-examples/dwr just not
any jsp or jspx that is called for


Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/
also covers URLs like /dwr-examples/dwr, and so it is Apache trying to
serve it, it is never re-directed to Tomcat by mod_jk, it does not even
get that far.


I kind of get what you are saying and will try


AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1

(I put html?|jog|php .. because I don't remember how to say not .jsp)


but the alias structure I posted is the way I always had it and it
worked, but not before I made some other fixes that I don't remember.

I'm not quite understanding what you want me to try though.
Do you mean get rid of the current Alias code and replace it with

AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1

or use it in addition to it and where exactly should it go?
Prior to the JkMount /dwr-examples/*.jsp ajp13worker1

Forgive me for being so dense but this is new to me!

- Original Message - From: André Warnier [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 6

Apache mod_jk and Tomcat not working correctly

2008-10-26 Thread Wayne Bragg

my setup:
   WinXP Home
   Wed-Dev install of:
   Apache/2.2.3 (Win32)
   Tomcat 5
   PHP 5.2.0

I have mod_jk connector set up the following way according to
instructions:

Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/

Directory /www/tomcat5/webapps/dwr-examples/
 Options Indexes FollowSymLinks
 AllowOverride None
 Order deny,allow
 Deny from all
 Allow from all

 AddType text/html .php .phps
 AddHandler application/x-httpd-php .php
 AddHandler application/x-httpd-php-source .phps
/Directory

mod_jk setup:
   LoadModule jk_module modules/mod_jk.so

IfModule jk_module
JkWorkersFile conf/Suite-extra/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel warn
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T

   Location /*/WEB-INF/*
# AllowOverride None
 deny from all
/Location

   JkMount /dwr-examples/*.jsp ajp13worker1
   JkMount /dwr-examples/*.jspx ajp13worker1
   JkUnMount /dwr-examples/*.html  ajp13worker1
   JkUnMount /dwr-examples/*.htm  ajp13worker1
   JkUnMount /dwr-examples/*.png  ajp13worker1
   JkUnMount /dwr-examples/*.jpg  ajp13worker1
   JkUnMount /dwr-examples/*.jpeg  ajp13worker1
   JkUnMount /dwr-examples/*.gif  ajp13worker1
   JkUnMount /dwr-examples/*.ico  ajp13worker1
   JkUnMount /dwr-examples/*.php  ajp13worker1

/IfModule

Everthing works using port 8080 but I am getting the following error in the
error.log in Apache when I use port
80 ie: http://localhost:8080/dwr-examples/ vs http://localhost/dwr-examples/


[Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4 configured
[Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
configured -- resuming normal operations
[Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
[Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
[Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4 configured
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker threads.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen on
port 443.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen on
port 80.
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/webroot/favicon.ico
[Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/webroot/favicon.ico

Where /DWR is a servlet in Tomcat that works properly under port:8080

When I installed this originally I had the same trouble and through great
effort got it working right. Then I built an elaborate webapp and lost the
drive. The
backup I had was only of the webapp and not the server setup, dumb me!

One of the things I thought I had to do for some reason, maybe not related
to this problem, was remove a security rule or two from either apache or
tomcat because it was causing a problem.
I also am getting this from the stdout_.log and don't know if this is
related.

INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]

Unfortunatly I don't know much if anything about the security rules? Anyone
see anything that is obviously wrong? 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache mod_jk and Tomcat not working correctly

2008-10-26 Thread Wayne Bragg

Confirmed!


- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 5:41 PM
Subject: RE: Apache mod_jk and Tomcat not working correctly



Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
Listen 80

Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.




From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject: Apache mod_jk and Tomcat not working correctly
Date: Sun, 26 Oct 2008 17:17:13 -0500

my setup:
WinXP Home
Wed-Dev install of:
Apache/2.2.3 (Win32)
Tomcat 5
PHP 5.2.0

I have mod_jk connector set up the following way according to
instructions:

Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/

 Directory /www/tomcat5/webapps/dwr-examples/
  Options Indexes FollowSymLinks
  AllowOverride None
  Order deny,allow
  Deny from all
  Allow from all

  AddType text/html .php .phps
  AddHandler application/x-httpd-php .php
  AddHandler application/x-httpd-php-source .phps
 /Directory

mod_jk setup:
LoadModule jk_module modules/mod_jk.so

IfModule jk_module
 JkWorkersFile conf/Suite-extra/workers.properties
 JkLogFile logs/mod_jk.log
 JkLogLevel warn
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T

Location /*/WEB-INF/*
 # AllowOverride None
  deny from all
 /Location

JkMount /dwr-examples/*.jsp ajp13worker1
JkMount /dwr-examples/*.jspx ajp13worker1
JkUnMount /dwr-examples/*.html  ajp13worker1
JkUnMount /dwr-examples/*.htm  ajp13worker1
JkUnMount /dwr-examples/*.png  ajp13worker1
JkUnMount /dwr-examples/*.jpg  ajp13worker1
JkUnMount /dwr-examples/*.jpeg  ajp13worker1
JkUnMount /dwr-examples/*.gif  ajp13worker1
JkUnMount /dwr-examples/*.ico  ajp13worker1
JkUnMount /dwr-examples/*.php  ajp13worker1

/IfModule

Everthing works using port 8080 but I am getting the following error in 
the

error.log in Apache when I use port
80 ie: http://localhost:8080/dwr-examples/ vs 
http://localhost/dwr-examples/



[Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4 
configured

[Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
configured -- resuming normal operations
[Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
[Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
[Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4 
configured

[Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker 
threads.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen 
on

port 443.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen 
on

port 80.
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/webroot/favicon.ico
[Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/webroot/favicon.ico

Where /DWR is a servlet in Tomcat that works properly under port:8080

When I installed this originally I had the same trouble and through great
effort got it working right. Then I built an elaborate webapp and lost the
drive. The
backup I had was only of the webapp and not the server setup, dumb me!

One of the things I thought I had to do for some reason, maybe not related
to this problem, was remove a security rule or two from either apache or
tomcat because it was causing a problem.
I also am getting this from the stdout_.log and don't know if this is
related.

INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News 
/

Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],

Re: Apache mod_jk and Tomcat not working correctly

2008-10-26 Thread Wayne Bragg
I guess I need to add, going through http port 80 works with no errors for 
everything except .jsp to tomcat


- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 5:41 PM
Subject: RE: Apache mod_jk and Tomcat not working correctly



Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
Listen 80

Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.




From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject: Apache mod_jk and Tomcat not working correctly
Date: Sun, 26 Oct 2008 17:17:13 -0500

my setup:
WinXP Home
Wed-Dev install of:
Apache/2.2.3 (Win32)
Tomcat 5
PHP 5.2.0

I have mod_jk connector set up the following way according to
instructions:

Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/

 Directory /www/tomcat5/webapps/dwr-examples/
  Options Indexes FollowSymLinks
  AllowOverride None
  Order deny,allow
  Deny from all
  Allow from all

  AddType text/html .php .phps
  AddHandler application/x-httpd-php .php
  AddHandler application/x-httpd-php-source .phps
 /Directory

mod_jk setup:
LoadModule jk_module modules/mod_jk.so

IfModule jk_module
 JkWorkersFile conf/Suite-extra/workers.properties
 JkLogFile logs/mod_jk.log
 JkLogLevel warn
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T

Location /*/WEB-INF/*
 # AllowOverride None
  deny from all
 /Location

JkMount /dwr-examples/*.jsp ajp13worker1
JkMount /dwr-examples/*.jspx ajp13worker1
JkUnMount /dwr-examples/*.html  ajp13worker1
JkUnMount /dwr-examples/*.htm  ajp13worker1
JkUnMount /dwr-examples/*.png  ajp13worker1
JkUnMount /dwr-examples/*.jpg  ajp13worker1
JkUnMount /dwr-examples/*.jpeg  ajp13worker1
JkUnMount /dwr-examples/*.gif  ajp13worker1
JkUnMount /dwr-examples/*.ico  ajp13worker1
JkUnMount /dwr-examples/*.php  ajp13worker1

/IfModule

Everthing works using port 8080 but I am getting the following error in 
the

error.log in Apache when I use port
80 ie: http://localhost:8080/dwr-examples/ vs 
http://localhost/dwr-examples/



[Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4 
configured

[Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
configured -- resuming normal operations
[Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
[Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
[Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4 
configured

[Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker 
threads.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen 
on

port 443.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen 
on

port 80.
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/webroot/favicon.ico
[Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/webroot/favicon.ico

Where /DWR is a servlet in Tomcat that works properly under port:8080

When I installed this originally I had the same trouble and through great
effort got it working right. Then I built an elaborate webapp and lost the
drive. The
backup I had was only of the webapp and not the server setup, dumb me!

One of the things I thought I had to do for some reason, maybe not related
to this problem, was remove a security rule or two from either apache or
tomcat because it was causing a problem.
I also am getting this from the stdout_.log and don't know if this is
related.

INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News 
/

Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: 

Re: Tomcat Server .pac Script configuration for outgoing connection.

2008-10-26 Thread Wayne Bragg

Can anyone tell me where to find the rule causing this problem?

INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: 
paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]


- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 6:04 PM
Subject: RE: Tomcat Server .pac Script configuration for outgoing 
connection.




I agree this has nothing to do with tomcat
but a misconfiguration by the admin on Proxy Server

if you want a working solution you'll have to bypass the admin's 
configuration and try it with a 'clean' tomcat install


Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.




Date: Sun, 26 Oct 2008 21:12:12 +
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject: Tomcat Server .pac Script configuration for outgoing connection.

All,

Tomcat - 5.0.28, Java - 1.4.2, OS - Windows XP

We have a web application that sets up a local tomcat server with an
application deployed into the client machine. To complete the setup, the
application on Tomcat needs to access the internet from the client
machine and verify with the source system. But the client machine are 
within

a corporate network and needs .pac script to access internet. How can we
configure Tomcat for all its applications to use a pac (proxy Auto
Configuration) script to determine the proxy and access the internet? The
installation currently fails at the point verification.

Please let me know if you need further info.

Any help be much appreciated.

Thanks
Eswar


_
Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008






No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date: 10/26/2008 
9:27 AM



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Server .pac Script configuration for outgoing connection.

2008-10-26 Thread Wayne Bragg

I guess you lost me with

if you want a working solution you'll have to bypass the admin's 
configuration and try it with a 'clean' tomcat install


what will that do for me?

I could get the application to work on tomcat alone with  the native php 
setup on tomcat, but I have not been able to get that to work either. I keep 
getting a tomcat native php error.


- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 6:04 PM
Subject: RE: Tomcat Server .pac Script configuration for outgoing 
connection.




I agree this has nothing to do with tomcat
but a misconfiguration by the admin on Proxy Server

if you want a working solution you'll have to bypass the admin's 
configuration and try it with a 'clean' tomcat install


Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.




Date: Sun, 26 Oct 2008 21:12:12 +
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject: Tomcat Server .pac Script configuration for outgoing connection.

All,

Tomcat - 5.0.28, Java - 1.4.2, OS - Windows XP

We have a web application that sets up a local tomcat server with an
application deployed into the client machine. To complete the setup, the
application on Tomcat needs to access the internet from the client
machine and verify with the source system. But the client machine are 
within

a corporate network and needs .pac script to access internet. How can we
configure Tomcat for all its applications to use a pac (proxy Auto
Configuration) script to determine the proxy and access the internet? The
installation currently fails at the point verification.

Please let me know if you need further info.

Any help be much appreciated.

Thanks
Eswar


_
Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008






No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date: 10/26/2008 
9:27 AM



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache mod_jk and Tomcat not working correctly

2008-10-26 Thread Wayne Bragg
I accidentally hijacked another thread with the following question that 
applies to this thread, SORRY!

I think when I fried my hard drive it also got me!

Can anyone tell me where to find the rule causing this problem?

INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]

Apologies to the hijacked thread!

Thx


- Original Message - 
From: Wayne Bragg [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 5:48 PM
Subject: Re: Apache mod_jk and Tomcat not working correctly



I guess I need to add, going through http port 80 works with no errors for
everything except .jsp to tomcat

- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 5:41 PM
Subject: RE: Apache mod_jk and Tomcat not working correctly



Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
Listen 80

Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and 
Sender

does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission.



From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject: Apache mod_jk and Tomcat not working correctly
Date: Sun, 26 Oct 2008 17:17:13 -0500

my setup:
WinXP Home
Wed-Dev install of:
Apache/2.2.3 (Win32)
Tomcat 5
PHP 5.2.0

I have mod_jk connector set up the following way according to
instructions:

Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/

 Directory /www/tomcat5/webapps/dwr-examples/
  Options Indexes FollowSymLinks
  AllowOverride None
  Order deny,allow
  Deny from all
  Allow from all

  AddType text/html .php .phps
  AddHandler application/x-httpd-php .php
  AddHandler application/x-httpd-php-source .phps
 /Directory

mod_jk setup:
LoadModule jk_module modules/mod_jk.so

IfModule jk_module
 JkWorkersFile conf/Suite-extra/workers.properties
 JkLogFile logs/mod_jk.log
 JkLogLevel warn
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T

Location /*/WEB-INF/*
 # AllowOverride None
  deny from all
 /Location

JkMount /dwr-examples/*.jsp ajp13worker1
JkMount /dwr-examples/*.jspx ajp13worker1
JkUnMount /dwr-examples/*.html  ajp13worker1
JkUnMount /dwr-examples/*.htm  ajp13worker1
JkUnMount /dwr-examples/*.png  ajp13worker1
JkUnMount /dwr-examples/*.jpg  ajp13worker1
JkUnMount /dwr-examples/*.jpeg  ajp13worker1
JkUnMount /dwr-examples/*.gif  ajp13worker1
JkUnMount /dwr-examples/*.ico  ajp13worker1
JkUnMount /dwr-examples/*.php  ajp13worker1

/IfModule

Everthing works using port 8080 but I am getting the following error in
the
error.log in Apache when I use port
80 ie: http://localhost:8080/dwr-examples/ vs
http://localhost/dwr-examples/


[Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
configured
[Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
configured -- resuming normal operations
[Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
[Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
[Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
configured
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
threads.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
on
port 443.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
on
port 80.
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not 
exist:

C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not 
exist:

C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not 
exist:

C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not 
exist:

C:/www/webroot/favicon.ico
[Sun Oct 26 15

Re: Apache mod_jk and Tomcat not working correctly

2008-10-26 Thread Wayne Bragg
Apache is suppose to serve /dwr-examples and /dwr-examples/dwr just not any 
jsp or jspx that is called for



Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/
also covers URLs like /dwr-examples/dwr, and so it is Apache trying to
serve it, it is never re-directed to Tomcat by mod_jk, it does not even
get that far.


I kind of get what you are saying and will try


AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1

(I put html?|jog|php .. because I don't remember how to say not .jsp)


but the alias structure I posted is the way I always had it and it worked, 
but not before I made some other fixes that I don't remember.


I'm not quite understanding what you want me to try though.
Do you mean get rid of the current Alias code and replace it with

AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$ 
/www/tomcat5/webapps/dwr-examples/$1


or use it in addition to it and where exactly should it go?
Prior to the JkMount /dwr-examples/*.jsp ajp13worker1

Forgive me for being so dense but this is new to me!

- Original Message - 
From: André Warnier [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 6:36 PM
Subject: Re: Apache mod_jk and Tomcat not working correctly



I think your Alias at the beginning has more priority than your
JkMount later.
Not that the order in the config file matters, that's not what I mean.
What I mean is :
Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/
also covers URLs like /dwr-examples/dwr, and so it is Apache trying to
serve it, it is never re-directed to Tomcat by mod_jk, it does not even
get that far.
Try maybe (one line)
AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1

(I put html?|jog|php .. because I don't remember how to say not .jsp)


Wayne Bragg wrote:

I guess I need to add, going through http port 80 works with no errors
for everything except .jsp to tomcat

- Original Message - From: Martin Gainty [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, October 26, 2008 5:41 PM
Subject: RE: Apache mod_jk and Tomcat not working correctly



Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
Listen 80

Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission.



From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject: Apache mod_jk and Tomcat not working correctly
Date: Sun, 26 Oct 2008 17:17:13 -0500

my setup:
WinXP Home
Wed-Dev install of:
Apache/2.2.3 (Win32)
Tomcat 5
PHP 5.2.0

I have mod_jk connector set up the following way according to
instructions:

Alias /dwr-examples /www/tomcat5/webapps/dwr-examples/

 Directory /www/tomcat5/webapps/dwr-examples/
  Options Indexes FollowSymLinks
  AllowOverride None
  Order deny,allow
  Deny from all
  Allow from all

  AddType text/html .php .phps
  AddHandler application/x-httpd-php .php
  AddHandler application/x-httpd-php-source .phps
 /Directory

mod_jk setup:
LoadModule jk_module modules/mod_jk.so

IfModule jk_module
 JkWorkersFile conf/Suite-extra/workers.properties
 JkLogFile logs/mod_jk.log
 JkLogLevel warn
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T

Location /*/WEB-INF/*
 # AllowOverride None
  deny from all
 /Location

JkMount /dwr-examples/*.jsp ajp13worker1
JkMount /dwr-examples/*.jspx ajp13worker1
JkUnMount /dwr-examples/*.html  ajp13worker1
JkUnMount /dwr-examples/*.htm  ajp13worker1
JkUnMount /dwr-examples/*.png  ajp13worker1
JkUnMount /dwr-examples/*.jpg  ajp13worker1
JkUnMount /dwr-examples/*.jpeg  ajp13worker1
JkUnMount /dwr-examples/*.gif  ajp13worker1
JkUnMount /dwr-examples/*.ico  ajp13worker1
JkUnMount /dwr-examples/*.php  ajp13worker1

/IfModule

Everthing works using port 8080 but I am getting the following error
in the
error.log in Apache when I use port
80 ie: http://localhost:8080/dwr-examples/ vs
http://localhost/dwr-examples/


[Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
configured
[Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev 
Perl/v5.8.8

configured -- resuming normal operations
[Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
[Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
[Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
configured
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
[Sun Oct 26 15

WARNING: Servlet.service() for servlet php threw exception

2008-10-26 Thread Wayne Bragg
my setup:
WinXP Home
Wed-Dev install of:
Apache/2.2.3 (Win32)
Tomcat 5
PHP 5.2.0

As a work around to another thread, (mod_tk connector), I'm trying to setup 
native php on tomcat. 
I installed all the pieces according to 

http://the-double-0-project.net/blog/?p=126
http://nexus.zteo.com/2008/02/15/how-to-setup-php5-with-tomcat-5/

and get the following error

WARNING: Servlet.service() for servlet php threw exception
java.io.IOException: null
 at net.php.servlet.send(Native Method)
 at net.php.servlet.service(servlet.java:190)
 at net.php.servlet.service(servlet.java:214)

How can I find the cause of this exception or does anyone know what's causing 
it?

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg

Thank you David,

I was suspicious about the .java needing to be compiled and the 
commons-dbcp.jar and commons-pool.jar being unnecessary. What about 
commons-collections-3.2.jar is that necessary or does commons-el.jar have 
what is needed? Commons-el.jar is all that was in there to start with. 
You've given me enough to go on to fix this and make this work. I thank you 
again..


Do you think it's better to allow Tomcat to handle the MySql or have PHP and 
MySql handled by httpd and pass the java related calls on to Tomcat? I just 
finished reading an article that explains how to set it up this second way 
and have to admit it would be better for me in the SHORT run as I have 
pre-existing code that wouldn't require rewriting other than adding NEW java 
code which is the reason I'm doing this in the first place.


Also 97 and Visual J but it doesn't appear to be able to save .class files. 
It looks like it just puts the class code into the .exe at compile time. I 
also installed just installed MS Visual Web Developer Express, do you know 
if this will compile and save a .class file?


Thanks for the help..



- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 7:06 AM
Subject: Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, 
get class compile error.




A few things to consider ...

1) What version of tomcat are you using?  What follows is based on using
version 5.0.x.  The syntax for configuring JDBC resources in 5.5 is a
little different.

2)  mm.mysql 2.0.14 is VERY old.  What version of MySQL Db server are
you using?  You may want to take a look at the MySQL website for an
updated driver .jar file.  I believe the current driver version is
Connector/J 5.0.5

3) The mm.mysql driver file has to be in common/lib.  That's because the
tomcat server itself has to be able to access the driver when setting up
the db pool before your webapp even loads.

4) If using the tomcat internal database pooling, there is no need for
adding commons-dbcp.jar or commons-pool.jar as tomcat has a slightly
refactored version of commons-dbcp already.  The refactoring was only a
package name change to avoid collisions with webapps that use
commons-dbcp directly.  Only add those jars if you have some code of
your own using classes in the packages org.apache.commons.dbcp or
org.apache.commons.pool.

5) The stack trace cited below is in regards to your test jsp file.
Class files need to be compiled before deployment as tomcat doesn't
compile them itself -- it only compiles jsps.  To fix the error below,
compile DbTest.java to DbTest.class and place it in WEB-INF/classes/foo
or in a .jar archive in WEB-INF/lib.

There's a start.  You might also want to review the tomcat docs
regarding JNDI and JDBC resources -- how to configure, etc., ...

--David


Wayne Bragg wrote:


Sorry about the previous premature post.
This is the full question/problem

I am trying to install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test 
app to see if it works.
I'm not sure I have all the correct steps and configuration, in other 
words I don't know what I am doing.. Here is what I know and my setup for 
this test example that I keep getting a class compile error on.


You can probably tell I only have HALF a clue at best? Any ideas what's 
wrong?


This is the error reported by browser -

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

exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg
David, you can ignore the question about how to compile .java into .class. I 
just found out the jdk can do that.



Wayne

- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 7:06 AM
Subject: Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, 
get class compile error.




A few things to consider ...

1) What version of tomcat are you using?  What follows is based on using
version 5.0.x.  The syntax for configuring JDBC resources in 5.5 is a
little different.

2)  mm.mysql 2.0.14 is VERY old.  What version of MySQL Db server are
you using?  You may want to take a look at the MySQL website for an
updated driver .jar file.  I believe the current driver version is
Connector/J 5.0.5

3) The mm.mysql driver file has to be in common/lib.  That's because the
tomcat server itself has to be able to access the driver when setting up
the db pool before your webapp even loads.

4) If using the tomcat internal database pooling, there is no need for
adding commons-dbcp.jar or commons-pool.jar as tomcat has a slightly
refactored version of commons-dbcp already.  The refactoring was only a
package name change to avoid collisions with webapps that use
commons-dbcp directly.  Only add those jars if you have some code of
your own using classes in the packages org.apache.commons.dbcp or
org.apache.commons.pool.

5) The stack trace cited below is in regards to your test jsp file.
Class files need to be compiled before deployment as tomcat doesn't
compile them itself -- it only compiles jsps.  To fix the error below,
compile DbTest.java to DbTest.class and place it in WEB-INF/classes/foo
or in a .jar archive in WEB-INF/lib.

There's a start.  You might also want to review the tomcat docs
regarding JNDI and JDBC resources -- how to configure, etc., ...

--David


Wayne Bragg wrote:


Sorry about the previous premature post.
This is the full question/problem

I am trying to install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test 
app to see if it works.
I'm not sure I have all the correct steps and configuration, in other 
words I don't know what I am doing.. Here is what I know and my setup for 
this test example that I keep getting a class compile error on.


You can probably tell I only have HALF a clue at best? Any ideas what's 
wrong?


This is the error reported by browser -

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

exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

This is the Tomcat log -

Mar 5, 2007 12:13:30 AM org.apache.catalina.core.StandardWrapperValve 
invoke

SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328

Re: Problems connecting

2007-03-05 Thread Wayne Bragg
For what it's worth. I wouldn't be so quick, did he ever say what error page 
he was getting from outside? This happened to me and it was because I wasn't 
handing off the NEW app code to Tomcat from httpd jk connector ie:
JkMount /what-ever-your-app/*.jsp ajp13worker1. Depends on how he set up 
Tomcat. It was an obvious mistake from a newbie.



- Original Message - 
From: Peter Crowther [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 9:03 AM
Subject: RE: Problems connecting



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
The point is when I change localhost with a real ip
62.56.xxx.xxx I cannot
connect to the server, but the nice things is if in my
cellphone I enter
the address http://62.56.xxx.xxx:8080 I got the tipical
welcome page of
Tomcat. So is not the firewall is not the router.. I guess is
something
that I have to set up, but trust me I don't know where...


So:

- You have a NATted network
- From the machine hosting Tomcat, you can connect using localhost
- From the outside world, you can connect using the external IP address
- From inside the NAT, you cannot connect using the external IP address

Is that correct?

If so, this sounds like a common feature with cheap routers - they don't
all route requests for their external IP correctly from within the
NATted subnet.  My old router had this problem.  Buy a better router or
accept that you won't be able to test the application on the external IP
from inside :-).

If any of my assumptions are wrong, tell us - we're going to need more
information about your network to help debug this, I think.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.7/711 - Release Date: 3/5/2007 
9:41 AM




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg

What version of tomcat are you using?  What follows is based on using

version 5.0.x.  The syntax for configuring JDBC resources in 5.5 is a
little different.


Of  course I am using 5.5. Thats' what I get for not providing that to start 
with. So what you gave me below needs to be modified HOW? Because I am now 
getting -



- Original Message - 
From: Wayne Bragg [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 11:46 AM
Subject: Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, 
get class compile error.



David, you can ignore the question about how to compile .java into .class. 
I just found out the jdk can do that.



Wayne

- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 7:06 AM
Subject: Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, 
get class compile error.




A few things to consider ...

1) What version of tomcat are you using?  What follows is based on using
version 5.0.x.  The syntax for configuring JDBC resources in 5.5 is a
little different.

2)  mm.mysql 2.0.14 is VERY old.  What version of MySQL Db server are
you using?  You may want to take a look at the MySQL website for an
updated driver .jar file.  I believe the current driver version is
Connector/J 5.0.5

3) The mm.mysql driver file has to be in common/lib.  That's because the
tomcat server itself has to be able to access the driver when setting up
the db pool before your webapp even loads.

4) If using the tomcat internal database pooling, there is no need for
adding commons-dbcp.jar or commons-pool.jar as tomcat has a slightly
refactored version of commons-dbcp already.  The refactoring was only a
package name change to avoid collisions with webapps that use
commons-dbcp directly.  Only add those jars if you have some code of
your own using classes in the packages org.apache.commons.dbcp or
org.apache.commons.pool.

5) The stack trace cited below is in regards to your test jsp file.
Class files need to be compiled before deployment as tomcat doesn't
compile them itself -- it only compiles jsps.  To fix the error below,
compile DbTest.java to DbTest.class and place it in WEB-INF/classes/foo
or in a .jar archive in WEB-INF/lib.

There's a start.  You might also want to review the tomcat docs
regarding JNDI and JDBC resources -- how to configure, etc., ...

--David


Wayne Bragg wrote:


Sorry about the previous premature post.
This is the full question/problem

I am trying to install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test 
app to see if it works.
I'm not sure I have all the correct steps and configuration, in other 
words I don't know what I am doing.. Here is what I know and my setup for 
this test example that I keep getting a class compile error on.


You can probably tell I only have HALF a clue at best? Any ideas what's 
wrong?


This is the error reported by browser -

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

exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

This is the Tomcat log -

Mar 5, 2007 12:13:30 AM

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg

What version of tomcat are you using?  What follows is based on using

version 5.0.x.  The syntax for configuring JDBC resources in 5.5 is a
little different.


Of  course I am using 5.5. Thats' what I get for not providing that to start
with. So what you gave me below needs to be modified HOW?
Because I am now getting -
Results
Foo Not Connected
Bar -1



Wayne


- Original Message - 
From: Wayne Bragg [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 11:32 AM
Subject: Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, 
get class compile error.




Thank you David,

I was suspicious about the .java needing to be compiled and the 
commons-dbcp.jar and commons-pool.jar being unnecessary. What about 
commons-collections-3.2.jar is that necessary or does commons-el.jar have 
what is needed? Commons-el.jar is all that was in there to start with. 
You've given me enough to go on to fix this and make this work. I thank 
you again..


Do you think it's better to allow Tomcat to handle the MySql or have PHP 
and MySql handled by httpd and pass the java related calls on to Tomcat? I 
just finished reading an article that explains how to set it up this 
second way and have to admit it would be better for me in the SHORT run as 
I have pre-existing code that wouldn't require rewriting other than adding 
NEW java code which is the reason I'm doing this in the first place.


Also 97 and Visual J but it doesn't appear to be able to save .class 
files. It looks like it just puts the class code into the .exe at compile 
time. I also installed just installed MS Visual Web Developer Express, do 
you know if this will compile and save a .class file?


Thanks for the help..



- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 7:06 AM
Subject: Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, 
get class compile error.




A few things to consider ...

1) What version of tomcat are you using?  What follows is based on using
version 5.0.x.  The syntax for configuring JDBC resources in 5.5 is a
little different.

2)  mm.mysql 2.0.14 is VERY old.  What version of MySQL Db server are
you using?  You may want to take a look at the MySQL website for an
updated driver .jar file.  I believe the current driver version is
Connector/J 5.0.5

3) The mm.mysql driver file has to be in common/lib.  That's because the
tomcat server itself has to be able to access the driver when setting up
the db pool before your webapp even loads.

4) If using the tomcat internal database pooling, there is no need for
adding commons-dbcp.jar or commons-pool.jar as tomcat has a slightly
refactored version of commons-dbcp already.  The refactoring was only a
package name change to avoid collisions with webapps that use
commons-dbcp directly.  Only add those jars if you have some code of
your own using classes in the packages org.apache.commons.dbcp or
org.apache.commons.pool.

5) The stack trace cited below is in regards to your test jsp file.
Class files need to be compiled before deployment as tomcat doesn't
compile them itself -- it only compiles jsps.  To fix the error below,
compile DbTest.java to DbTest.class and place it in WEB-INF/classes/foo
or in a .jar archive in WEB-INF/lib.

There's a start.  You might also want to review the tomcat docs
regarding JNDI and JDBC resources -- how to configure, etc., ...

--David


Wayne Bragg wrote:


Sorry about the previous premature post.
This is the full question/problem

I am trying to install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test 
app to see if it works.
I'm not sure I have all the correct steps and configuration, in other 
words I don't know what I am doing.. Here is what I know and my setup for 
this test example that I keep getting a class compile error on.


You can probably tell I only have HALF a clue at best? Any ideas what's 
wrong?


This is the error reported by browser -

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

exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-05 Thread Wayne Bragg

Thank you once again David,

Yes I did upgrade the mysql driver, made the appropriate changes, and now 
it's all working fine!


Is there any reason to have .classpath and .project in the \DBTest\ 
directory? Are they for deploying or a leftover from another platform?


Next step is to tie in PHP the same way.
I'll try configuring it with the docs I've come across, if not you'll see me 
back here.
Unless you know right offhand were some newbie docs can be found for 
configuring the PHP using drivers like the mysql would you? Or have the 
steps handy!


Can't thank you enough for what you have already done!

- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 1:36 PM
Subject: Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, 
get class compile error.




The Resource tag in your context config changes and the
ResourceParams tag is removed as in 

Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource
maxActive=100
maxIdle=30
maxWait=1
username=javauser
password=javadude
driverClassName=org.gjt.mm.mysql.Driver
url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true
removeAbandoned=true
removeAbandonedTimeout=60
logAbandoned=true /

In a side note, if you update your mysql driver, the new class name is
com.mysql.jdbc.Driver and you should remove ?autoReconnect=true from the
database url.

--David

Wayne Bragg wrote:

What version of tomcat are you using?  What follows is based on using

version 5.0.x.  The syntax for configuring JDBC resources in 5.5 is a
little different.


Of  course I am using 5.5. Thats' what I get for not providing that to
start with. So what you gave me below needs to be modified HOW?
Because I am now getting -


- Original Message - From: Wayne Bragg [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 11:46 AM
Subject: Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test
app, get class compile error.



David, you can ignore the question about how to compile .java into
.class. I just found out the jdk can do that.


Wayne

- Original Message - From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 05, 2007 7:06 AM
Subject: Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test
app, get class compile error.



A few things to consider ...

1) What version of tomcat are you using?  What follows is based on
using
version 5.0.x.  The syntax for configuring JDBC resources in 5.5 is a
little different.

2)  mm.mysql 2.0.14 is VERY old.  What version of MySQL Db server are
you using?  You may want to take a look at the MySQL website for an
updated driver .jar file.  I believe the current driver version is
Connector/J 5.0.5

3) The mm.mysql driver file has to be in common/lib.  That's because
the
tomcat server itself has to be able to access the driver when
setting up
the db pool before your webapp even loads.

4) If using the tomcat internal database pooling, there is no need for
adding commons-dbcp.jar or commons-pool.jar as tomcat has a slightly
refactored version of commons-dbcp already.  The refactoring was only a
package name change to avoid collisions with webapps that use
commons-dbcp directly.  Only add those jars if you have some code of
your own using classes in the packages org.apache.commons.dbcp or
org.apache.commons.pool.

5) The stack trace cited below is in regards to your test jsp file.
Class files need to be compiled before deployment as tomcat doesn't
compile them itself -- it only compiles jsps.  To fix the error below,
compile DbTest.java to DbTest.class and place it in WEB-INF/classes/foo
or in a .jar archive in WEB-INF/lib.

There's a start.  You might also want to review the tomcat docs
regarding JNDI and JDBC resources -- how to configure, etc., ...

--David


Wayne Bragg wrote:


Sorry about the previous premature post.
This is the full question/problem

I am trying to install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a
test app to see if it works.
I'm not sure I have all the correct steps and configuration, in
other words I don't know what I am doing.. Here is what I know and
my setup for this test example that I keep getting a class compile
error on.

You can probably tell I only have HALF a clue at best? Any ideas
what's wrong?

This is the error reported by browser -

type Exception report
message
description The server encountered an internal error () that
prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512

Re: DWR using WAN vs LAN

2007-03-04 Thread Wayne Bragg

FYI problem solved,

In case some other newbie has the same problem, I've decided to add this 
message to the list.
I solved my problem of not being able to access the tomcat server functions 
through anything other than localhost:8080.
The problem was a misunderstanding of how the httpd server and tomcat, both 
native server and jk connector, were configured and accessed.
In the default setup of devside.net Web[Developer] Server Suite 1.94, it 
install tomcat native server and  a jk connector through httpd (commonly 
referred to as Apache Server). To connect to tomcat native server you use 
localhost:8080. It appears nothing else will connect to the native server 
the way it is configured. If you want to connect to tomcat from outside 
localhost, even with computer-name you have to go through the jk connector. 
Which means using ip-or-computer-name:80.
The confusion came when doing this gave me a $variable not defined error 
upon the served starting. This was caused by the served and 
served-mapping being in the wrong file or not there at all. I don't know 
where it was I just know when I discoverd it and put it in /conf/web.xml or 
/app-program/WEB-INF/web.xml it all came together. Thanks for all the help 
and suggestions. It contributed to me being able to figure this problem out.


This left me with a question -

Is there any reason other than convenience and amount of apps using it that 
you would want to put a related  jar,  servlet and servlet mapping in 
the local  application  folders over the higher level config and common 
folders?


As far as the

- Original Message - 
From: Wayne Bragg [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, March 03, 2007 10:00 PM
Subject: Re: DWR using WAN vs LAN


After all this, and with a new understanding of how httpd and tomcat work 
together, I was reading the documentation I have on my installation of 
Tomcat, again. It is setup so the native server is on port 8080 and the 
jk connector is through httpd 80 or however you'd say that. All the 
example apps that came with the Tomcat installation work through both the 
native server (8080) and the jk connector (80).


So I installed DWR, using it's defaults, to be able to use the AJAX calls. 
All of DWR's examples only work through the native server 
localhost:8080/dwr/.  If I try to run them using the tk connector 
localhost:80/dwr/ anytime they need to call the supporting jar and class 
files they get the [$variable] is not defined error. Any idea what is 
causing this? Is it something to do with the paths to these supporting 
files?


Also I still can't connect, at all, to the native server through anything 
other than localhost:8080. It's not a network or router issue, they are 
configured correctly. Even my-computer-name:8080 won't connect to the 
native server. Any ideas what's up with that?


I apologize for not asking these questions this way from the start.


- Original Message - 
From: Wayne Bragg [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, March 03, 2007 6:13 PM
Subject: Re: DWR using WAN vs LAN



You may want to limit your question to one topic at a time.


Sorry for any confusion.


Tomcat/Apache/PHP can all work together depending on how
you send up your application. Apache's mod_jk is how you make Apache and
tomcat work together.


 Tomcat is configured to run on 8080 by default
you can change that to 80 by editing the server.xml file. All http 
traffic
that doesn't specify a port automatically go to 80. To access your 
computer

from the Internet you'll need to first open the port on your router or
remove the computer you want to access from the router's DMZ (not
recommended). Make sure you use your actual IP which you can determine 
by

typing what's my IP   on google and following the first link.


I am aware of all this! Thanks for the reply.

All the explanation I have given was to help avoid these unnecessary 
emails, but I guess that didn't work.


I have two topics and I need answers to both. I thought they were related 
but I can now see they are independent from one another. One topic led me 
to the second one or vice versa.


Topic or question 1 -

This is not a router or network question. I know how to configure the 
router and network.
My Tomcat server doesn't recognize any requests that are not coming 
specifically from localhost:8080. Not even from my-computer-name:8080 
which I thought was the same thing.  Is it suppose to do that? If not 
does anyone have a clue as to why it isn't or how to fix it?
If this is not an appropriate question for this list then I guess I need 
the admin to let me know that. I don't see how it's not. But apologies if 
it is.


Topic or question 2 -

Starting with the Devside.net Web[Developer] Server Suite 1.94
standard default installation, does anyone know the steps needed to 
configure HTTPD to handle the PHP and TOMCAT to handle the Java all 
at the same time, from

install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test app, getting class compile error

2007-03-04 Thread Wayne Bragg
I am trying to install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test app to 
see if it works.
I'm not sure I have all the correct steps and configuration, in other words I 
don't know what I am doing.. Here is what I know and my setup for this test 
example that I keep getting a class compile error on.

This is the error reported by browser -

type Exception report
message 
 description The server encountered an internal error () that prevented it from 
fulfilling this request.
exception 
 org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
 org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
 org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

This is the Tomcat log -

Mar 5, 2007 12:13:30 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
 at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
 at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
 at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
 at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Unknown Source)

This is how I setup and config for the DBCP and mm.mysql 2.0.14 (JDBC Driver)

Added to \www\tomcat5\common\lib
commons-pool-1.3.jar

install DBCP and mm.mysql 2.0.14 (JDBC Driver) and test app, get class compile error.

2007-03-04 Thread Wayne Bragg
Sorry about the previous premature post.
This is the full question/problem

I am trying to install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test app to 
see if it works.
I'm not sure I have all the correct steps and configuration, in other words I 
don't know what I am doing.. Here is what I know and my setup for this test 
example that I keep getting a class compile error on.

You can probably tell I only have HALF a clue at best? Any ideas what's wrong?

This is the error reported by browser -

type Exception report
message 
 description The server encountered an internal error () that prevented it from 
fulfilling this request.
exception 
 org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
 org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
 org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

This is the Tomcat log -

Mar 5, 2007 12:13:30 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
An error occurred at line: 7 in the jsp file: /test.jsp
Generated servlet error:
foo.DBTest cannot be resolved to a type
 at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
 at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
 at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
 at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at 

DWR using WAN vs LAN

2007-03-03 Thread Wayne Bragg
Chuck, I can't begin to thank you enough for you reply. I know some of these 
questions are borderline inappropriate for this mailing-list subject but they, 
at least loosely, apply. My newbism is defiantly showing.

First, the idiot I am I didn't realize port 80 was 80 and 8080 was 8080. I 
thought they somehow referred to the same port, du! That explains allot of my 
confusion!

With that said 

What happens if you try http://wan-ip:8080/chat-demo?  Without the port
number, you're sending the URL to something other than Tomcat that's
listening on port 80.

this is where the confusion starts. 

Your telling me to send the URL to 
http://wan-ip:8080/chat-demo; 
but then you say 
you're sending the URL to something other than Tomcat that's listening on port 
80
Here I go getting confused again, what is it 80 or 8080? Or was that just a 
slip on your part? I'm going to assume the latter unless you tell me otherwise.

Either way, I get page not found if I use anything other than 
http://localhost:8080/chat-demo which works perfectly or I can get to it at 
least run the page with  http://wan-ip/chat-demo because I have an Alias 
/chat-demo in Apache config serving on port 80, but that's when I get the 
Chat is not defined error. 

I though maybe my provider was blocking port 8080 so I even tried 
http://localhost:7077/chat-demo which my router is redirecting to 8080. 
That is what I have to do for Apache and that's what I was talking about when I 
said
 A couple of things worth noting. I'm pretty sure my (cable) 
 access provider is blocking 80 so I am forwarding ext. 7075 
ext. =  web browser pointing to port 7075 and 
 to int. 80 with Apache still running on 80.
int = router redirect to port 80.
I was referring to my router redirecting port 7075 to port 80.

So if I am understanding this correctly I am not getting through to the Tomcat 
server from the WAN. I also can't get through to Tomcat using 
http://computer-name:8080/
I can only get through using localhost:8080. I checked XP firewall and have 
7077 port (redirected to 8080) opened. Any idea why I cant get to it?

script type='text/javascript' src='/chat-demo/dwr/engine.js'/script
script type='text/javascript' src='/chat-demo/dwr/interface/Chat.js'/script
script type='text/javascript' src='/chat-demo/dwr/util.js'/script
 Also, where are these files?
They're part of the app, nothing to do with Tomcat itself.

I realize that they are part of the app. This question was because I though 
maybe something to do with the paths to them was causing the error. 
That's because I am not to familiar (yet) with the file/directory structure 
regarding Tomcat apps directory and was able to find
script type='text/javascript' src='/chat-demo/dwr/engine.js'/script
script type='text/javascript' src='/chat-demo/dwr/util.js'/script
but not
script type='text/javascript' src='/chat-demo/dwr/interface/Chat.js'/script
which is why I said
If they are in the dwr.jar file then I am beginning to understand the 
organization
except the  src='/chat-demo/dwr/interface/Chat.js' file isn't in that jar. 
If it is in the chat.class file then I think I am really beginning to 
understand the organization.

If this is correct then it still leads me back to I'm not getting through to 
Tomcat from WAN or for some reason using my computer-name either.

 My Configuration:
 Windows XP Pro
 devside.net Web[Developer] Server Suite 1.94
 standard installation
 ASP,MYSQL,PHP (not cgi) and Tomcat5
 All are working correctly.

If that were really true, would you be asking questions here?

What I meant is they are all working correctly independently so to speak. They 
may even be working perfectly but not configured correctly to allow PHP, MySQL, 
ASP and Java to work on the same page at the same time which is what I am 
ultimately trying to accomplish. 

 Is it your router doing the forwarding?  If so, external users will need to 
append
:7075 to the host name or IP address to get requests delivered to
whatever is listening on port 80.

Yes it's the router doing the forwarding. I
 got that and knew that. Sorry I explained it poorly.

If you mean httpd when you say Apache,
Yes, I realize Apache Org develops both Tomcat and httpd and I was referring to 
httpd when I was saying Apache (which most people do).
Again sorry for the incorrect reference.

 Can you not run Tomcat apps from the WAN? 
Of course you can.  Many sites use Tomcat in all sorts of environments.

That answers that question, thanks.

 What am I missing?

Some basic education on TCP/IP and a little history, I expect.  For many
years, Tomcat was not terribly efficient at delivering static content,
so it was often front-ended with httpd, listening on port 80.  The http
server would be configured to forward servlet and .jip requests to
Tomcat on port 8080, and handle the rest itself.  These days, Tomcat is
quite adequate for handling static content, and httpd merely gets in the
way (unless you want to do other things with it, such as 

Re: DWR using WAN vs LAN

2007-03-03 Thread Wayne Bragg

You may want to limit your question to one topic at a time.


Sorry for any confusion.


Tomcat/Apache/PHP can all work together depending on how
you send up your application. Apache's mod_jk is how you make Apache and
tomcat work together.


 Tomcat is configured to run on 8080 by default

you can change that to 80 by editing the server.xml file. All http traffic
that doesn't specify a port automatically go to 80. To access your 
computer

from the Internet you'll need to first open the port on your router or
remove the computer you want to access from the router's DMZ (not
recommended). Make sure you use your actual IP which you can determine by
typing what's my IP   on google and following the first link.


I am aware of all this! Thanks for the reply.

All the explanation I have given was to help avoid these unnecessary emails, 
but I guess that didn't work.


I have two topics and I need answers to both. I thought they were related 
but I can now see they are independent from one another. One topic led me to 
the second one or vice versa.


Topic or question 1 -

This is not a router or network question. I know how to configure the router 
and network.
My Tomcat server doesn't recognize any requests that are not coming 
specifically from localhost:8080. Not even from my-computer-name:8080 
which I thought was the same thing.  Is it suppose to do that? If not does 
anyone have a clue as to why it isn't or how to fix it?
If this is not an appropriate question for this list then I guess I need the 
admin to let me know that. I don't see how it's not. But apologies if it is.


Topic or question 2 -

Starting with the Devside.net Web[Developer] Server Suite 1.94
standard default installation, does anyone know the steps needed to 
configure HTTPD to handle the PHP and TOMCAT to handle the Java all at 
the same time, from the same page and the same directories? Is so how?



If you create an app that uses both Tomcat(jsp) and
PHP then you'll have to manage two separate sessions, though that 
shouldn't

be terribly difficult to do.


This relates to the second question and is what I need help with. I could 
use the steps necessary to accomplish this. I know the code below is part of 
it.



VirtualHost *:80
 DocumentRoot /www/webapps/ROOT
 SetEnvIf Request_URI \.php no-jk
 SetEnvIf Request_URI \.cgi no-jk
 JkMount /* ajp13worker1
/VirtualHost


try putting quotes around the URI itself, I believe
that's your problem with this rule.  E.g. :
SetEnvIfNoCase Request_URI /*.php no-jk
..also, i may advise you to use the no case rule...

Mike, thank you for your reply. I haven't tried that yet but will work the 
second question as soon as I can get Tomcat to recognize something other 
than localhost. I appreciate it.



I assume you've already been informed, doesn't belong to the mailing list.
If these questions are not appropriate for this list then I guess I need the 
admin to let me know that. I don't see how it's not. But apologies if it is.




- Original Message - 
From: EDMOND KEMOKAI [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, March 03, 2007 4:41 PM
Subject: Re: DWR using WAN vs LAN


I've read
through your post and it is difficult to tell what your real problem is. 
The

networking issue, I assume you've already been informed, doesn't belong to
the mailing list. Tomcat/Apache/PHP can all work together depending on how
you send up your application. Apache's mod_jk is how you make Apache and
tomcat work together.  If you create an app that uses both Tomcat(jsp) and
PHP then you'll have to manage two separate sessions, though that 
shouldn't
be terribly difficult to do. Tomcat is configured to run on 8080 by 
default

you can change that to 80 by editing the server.xml file. All http traffic
that doesn't specify a port automatically go to 80. To access your 
computer

from the Internet you'll need to first open the port on your router or
remove the computer you want to access from the router's DMZ (not
recommended). Make sure you use your actual IP which you can determine by
typing what's my IP   on google and following the first link.

Hope this helps.

On 3/3/07, Wayne Bragg [EMAIL PROTECTED] wrote:


Chuck, I can't begin to thank you enough for you reply. I know some of
these questions are borderline inappropriate for this mailing-list 
subject

but they, at least loosely, apply. My newbism is defiantly showing.

First, the idiot I am I didn't realize port 80 was 80 and 8080 was 8080. 
I
thought they somehow referred to the same port, du! That explains allot 
of

my confusion!

With that said

What happens if you try http://wan-ip:8080/chat-demo?  Without the port
number, you're sending the URL to something other than Tomcat that's
listening on port 80.

this is where the confusion starts.

Your telling me to send the URL to
http://wan-ip:8080/chat-demo;
but then you say
you're sending the URL to something other than Tomcat that's listening

Re: DWR using WAN vs LAN

2007-03-03 Thread Wayne Bragg
After all this, and with a new understanding of how httpd and tomcat work 
together, I was reading the documentation I have on my installation of 
Tomcat, again. It is setup so the native server is on port 8080 and the 
jk connector is through httpd 80 or however you'd say that. All the 
example apps that came with the Tomcat installation work through both the 
native server (8080) and the jk connector (80).


So I installed DWR, using it's defaults, to be able to use the AJAX calls. 
All of DWR's examples only work through the native server 
localhost:8080/dwr/.  If I try to run them using the tk connector 
localhost:80/dwr/ anytime they need to call the supporting jar and class 
files they get the [$variable] is not defined error. Any idea what is 
causing this? Is it something to do with the paths to these supporting 
files?


Also I still can't connect, at all, to the native server through anything 
other than localhost:8080. It's not a network or router issue, they are 
configured correctly. Even my-computer-name:8080 won't connect to the native 
server. Any ideas what's up with that?


I apologize for not asking these questions this way from the start.


- Original Message - 
From: Wayne Bragg [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, March 03, 2007 6:13 PM
Subject: Re: DWR using WAN vs LAN



You may want to limit your question to one topic at a time.


Sorry for any confusion.


Tomcat/Apache/PHP can all work together depending on how
you send up your application. Apache's mod_jk is how you make Apache and
tomcat work together.


 Tomcat is configured to run on 8080 by default
you can change that to 80 by editing the server.xml file. All http 
traffic
that doesn't specify a port automatically go to 80. To access your 
computer

from the Internet you'll need to first open the port on your router or
remove the computer you want to access from the router's DMZ (not
recommended). Make sure you use your actual IP which you can determine by
typing what's my IP   on google and following the first link.


I am aware of all this! Thanks for the reply.

All the explanation I have given was to help avoid these unnecessary 
emails, but I guess that didn't work.


I have two topics and I need answers to both. I thought they were related 
but I can now see they are independent from one another. One topic led me 
to the second one or vice versa.


Topic or question 1 -

This is not a router or network question. I know how to configure the 
router and network.
My Tomcat server doesn't recognize any requests that are not coming 
specifically from localhost:8080. Not even from my-computer-name:8080 
which I thought was the same thing.  Is it suppose to do that? If not does 
anyone have a clue as to why it isn't or how to fix it?
If this is not an appropriate question for this list then I guess I need 
the admin to let me know that. I don't see how it's not. But apologies if 
it is.


Topic or question 2 -

Starting with the Devside.net Web[Developer] Server Suite 1.94
standard default installation, does anyone know the steps needed to 
configure HTTPD to handle the PHP and TOMCAT to handle the Java all at 
the same time, from the same page and the same directories? Is so how?



If you create an app that uses both Tomcat(jsp) and
PHP then you'll have to manage two separate sessions, though that 
shouldn't

be terribly difficult to do.


This relates to the second question and is what I need help with. I could 
use the steps necessary to accomplish this. I know the code below is part 
of it.



VirtualHost *:80
 DocumentRoot /www/webapps/ROOT
 SetEnvIf Request_URI \.php no-jk
 SetEnvIf Request_URI \.cgi no-jk
 JkMount /* ajp13worker1
/VirtualHost


try putting quotes around the URI itself, I believe
that's your problem with this rule.  E.g. :
SetEnvIfNoCase Request_URI /*.php no-jk
..also, i may advise you to use the no case rule...

Mike, thank you for your reply. I haven't tried that yet but will work the 
second question as soon as I can get Tomcat to recognize something other 
than localhost. I appreciate it.



I assume you've already been informed, doesn't belong to the mailing list.
If these questions are not appropriate for this list then I guess I need 
the admin to let me know that. I don't see how it's not. But apologies if 
it is.




- Original Message - 
From: EDMOND KEMOKAI [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, March 03, 2007 4:41 PM
Subject: Re: DWR using WAN vs LAN


I've read
through your post and it is difficult to tell what your real problem is. 
The
networking issue, I assume you've already been informed, doesn't belong 
to
the mailing list. Tomcat/Apache/PHP can all work together depending on 
how

you send up your application. Apache's mod_jk is how you make Apache and
tomcat work together.  If you create an app that uses both Tomcat(jsp) 
and
PHP then you'll have to manage two