DO NOT REPLY [Bug 42849] - If mod_jk cannot resolve host name of single worker, all workers are destroyed

2007-07-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42849


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |




--- Additional Comments From [EMAIL PROTECTED]  2007-07-15 02:26 ---
I think the point here is that startup isn't aborted (the log excerpt doesn't
show this).
What happens is that after the workers are shut down, Apache startup continues,
leaving mod_jk in an inconsistent state.
A request for a URI that should map to a worker then enters mod_jk, goes through
the URI -> Worker mapping process, and then fails to find the worker identified.

So what is happening is precisely the situation that we're trying to avoid -
starting Apache with a broken configuration.

This is with Apache 2.0.52 on CentOS 4, so it's a pretty standard setup.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 42849] - If mod_jk cannot resolve host name of single worker, all workers are destroyed

2007-07-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42849





--- Additional Comments From [EMAIL PROTECTED]  2007-07-15 02:57 ---
Yes, we should treat that the same way as misconfiguration or
entering invalid directives, because it actually is and refusing
to load the mod_jk in that case.
BTW the Httpd itself won't start if you provide an invalid IP address
or a port already occupied for example, so disabling mod_jk or even entire
httpd is legitimate thing to do.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 42849] - If mod_jk cannot resolve host name of single worker, all workers are destroyed

2007-07-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42849





--- Additional Comments From [EMAIL PROTECTED]  2007-07-15 03:12 ---
After a second thought, mod_jk still needs to load.
The error.log entry and probably console output should be enough.
It should behave in the same way as for example configuring
the wrong path wor the Directory or WirtualHost root.
Log that and continue. Httpd will return 404 in that resource is requested.

So I think we are fine with what we have right now.
The worker(entire balancer) is disabled as well as his mappings.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 42895] - Jasper unable to find system jar's.

2007-07-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42895





--- Additional Comments From [EMAIL PROTECTED]  2007-07-15 05:45 ---
(In reply to comment #0)
> Using gij (GNU libgcj).
> -Tomcat displays an error with any/every JSP page. Unable to resolve even 
> native
> types like java.lang.String.
> -Checked $CATALINA_HOME/common/lib which contains all of the neccessary jar's
> (using [] naming).
> -Manually compiled JSP in $CATALINA_HOME/work/.../jsp and compiles find. 
> Tomcat
> works as expected with manually created .class files.
> -Added symbolic links to WEB-INF/lib directory for rt.jar, servlet.jar, 
> jsp.jar,
> jasper5-runtime.jar and Tomcat works as expected though war file is
> understandably large.
> -Tomcat/Jasper is not able to locate the jar's in the common/lib directory for
> unknown reasons.

(In reply to comment #1)
> This is an issue with your Java vendor, not an issue with Tomcat.  You should 
> report it to your Java vendor.

My first statement is incorrect, my system is using ecj, the Eclipse java 
compiler.

I'm not sure how you can say this is an issue with the java vender, since I was
able to compile the JSP using the same binaries Jasper is using. (I'm assuming
that's $JAVA_HOME/bin/javac, but I tested with /usr/bin/javac, and with other
versions of javac on my system. They all compile fine (when supplied with the
correct classpath). The compiler does however give me the exact same errors I
get through the webpage when supplied with no classpath.

Its obvious the compiler is not getting the proper (any) classpath from Jasper.
Is there a way of having Jasper report the classpath that its using for JSP
compilation?

I doubt you've looked into this very thoroughly. I'd be very interested to know
how you came to that conclusion.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: Tomcat supporting PHP

2007-07-15 Thread Yoav Shapira

Hey,

On 7/14/07, Bill Barker <[EMAIL PROTECTED]> wrote:


"Joe Nathan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I think if Tomcat also supports PHP scripts, it could be wonderful!.

Google is your friend :) http://www.google.com/search?q=php+servlet.

I don't think that there is much interest in hosting a PHP servlet in Tomcat
however.


Bill's right.

I also wrote up (the initial version of)
http://wiki.apache.org/tomcat/UsingPhp a while ago, if you're still
interested in this approach.

Yoav

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



svn commit: r556429 - in /tomcat/container/tc5.5.x/webapps/docs: changelog.xml logging.xml

2007-07-15 Thread rjung
Author: rjung
Date: Sun Jul 15 10:02:07 2007
New Revision: 556429

URL: http://svn.apache.org/viewvc?view=rev&rev=556429
Log:
Correct j.u.l log levels in JULI docs.

Modified:
tomcat/container/tc5.5.x/webapps/docs/changelog.xml
tomcat/container/tc5.5.x/webapps/docs/logging.xml

Modified: tomcat/container/tc5.5.x/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/changelog.xml?view=diff&rev=556429&r1=556428&r2=556429
==
--- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Sun Jul 15 10:02:07 2007
@@ -15,6 +15,13 @@
 
 
 
+  
+
+  
+Correct j.u.l log levels in JULI docs. (rjung)
+  
+
+  
   
 
   

Modified: tomcat/container/tc5.5.x/webapps/docs/logging.xml
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/logging.xml?view=diff&rev=556429&r1=556428&r2=556429
==
--- tomcat/container/tc5.5.x/webapps/docs/logging.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/logging.xml Sun Jul 15 10:02:07 2007
@@ -160,8 +160,8 @@
   
   
 The default logging.properties specifies a ConsoleHandler for routing 
logging to stdout and
-also a FileHandler. A handler's log level threshold can be set using 
SEVERE, CONFIG, INFO, 
-WARN, FINE, FINEST or ALL. The logging.properties shipped with JDK is set 
to INFO. You
+also a FileHandler. A handler's log level threshold can be set using 
SEVERE, WARNING, INFO,
+CONFIG, FINE, FINER, FINEST or ALL. The logging.properties shipped with 
JDK is set to INFO. You
 can also target specific packages to collect logging from and specify a 
level. Here is how
 you would set debugging from Tomcat. You would need to ensure the 
ConsoleHandler's level is also
 set to collect this threshold, so FINEST or ALL should be set. Please 
refer to Sun's java.util.logging



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



svn commit: r556430 - in /tomcat/tc6.0.x/trunk/webapps/docs: changelog.xml logging.xml

2007-07-15 Thread rjung
Author: rjung
Date: Sun Jul 15 10:02:56 2007
New Revision: 556430

URL: http://svn.apache.org/viewvc?view=rev&rev=556430
Log:
Correct j.u.l log levels in JULI docs.

Modified:
tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
tomcat/tc6.0.x/trunk/webapps/docs/logging.xml

Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?view=diff&rev=556430&r1=556429&r2=556430
==
--- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Sun Jul 15 10:02:56 2007
@@ -15,6 +15,13 @@
 
 
 
+  
+
+  
+Correct j.u.l log levels in JULI docs. (rjung)
+  
+
+  
   
 
   

Modified: tomcat/tc6.0.x/trunk/webapps/docs/logging.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/logging.xml?view=diff&rev=556430&r1=556429&r2=556430
==
--- tomcat/tc6.0.x/trunk/webapps/docs/logging.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/logging.xml Sun Jul 15 10:02:56 2007
@@ -171,8 +171,8 @@
   
   
 The default logging.properties specifies a ConsoleHandler for routing 
logging to stdout and
-also a FileHandler. A handler's log level threshold can be set using 
SEVERE, CONFIG, INFO, 
-WARN, FINE, FINEST or ALL. The logging.properties shipped with JDK is set 
to INFO. You
+also a FileHandler. A handler's log level threshold can be set using 
SEVERE, WARNING, INFO,
+CONFIG, FINE, FINER, FINEST or ALL. The logging.properties shipped with 
JDK is set to INFO. You
 can also target specific packages to collect logging from and specify a 
level. Here is how
 you would set debugging from Tomcat. You would need to ensure the 
ConsoleHandler's level is also
 set to collect this threshold, so FINEST or ALL should be set. Please 
refer to Sun's java.util.logging



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



svn commit: r556431 - in /tomcat/trunk/webapps/docs: changelog.xml logging.xml

2007-07-15 Thread rjung
Author: rjung
Date: Sun Jul 15 10:03:25 2007
New Revision: 556431

URL: http://svn.apache.org/viewvc?view=rev&rev=556431
Log:
Correct j.u.l log levels in JULI docs.

Modified:
tomcat/trunk/webapps/docs/changelog.xml
tomcat/trunk/webapps/docs/logging.xml

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?view=diff&rev=556431&r1=556430&r2=556431
==
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Sun Jul 15 10:03:25 2007
@@ -15,6 +15,13 @@
 
 
 
+  
+
+  
+Correct j.u.l log levels in JULI docs. (rjung)
+  
+
+  
   
 
   

Modified: tomcat/trunk/webapps/docs/logging.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/logging.xml?view=diff&rev=556431&r1=556430&r2=556431
==
--- tomcat/trunk/webapps/docs/logging.xml (original)
+++ tomcat/trunk/webapps/docs/logging.xml Sun Jul 15 10:03:25 2007
@@ -171,8 +171,8 @@
   
   
 The default logging.properties specifies a ConsoleHandler for routing 
logging to stdout and
-also a FileHandler. A handler's log level threshold can be set using 
SEVERE, CONFIG, INFO, 
-WARN, FINE, FINEST or ALL. The logging.properties shipped with JDK is set 
to INFO. You
+also a FileHandler. A handler's log level threshold can be set using 
SEVERE, WARNING, INFO,
+CONFIG, FINE, FINER, FINEST or ALL. The logging.properties shipped with 
JDK is set to INFO. You
 can also target specific packages to collect logging from and specify a 
level. Here is how
 you would set debugging from Tomcat. You would need to ensure the 
ConsoleHandler's level is also
 set to collect this threshold, so FINEST or ALL should be set. Please 
refer to Sun's java.util.logging



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



DO NOT REPLY [Bug 42899] New: - Creating a new context via Admin Tool fails when clicking button "commit changes"

2007-07-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42899

   Summary: Creating a new context via Admin Tool fails when
clicking button "commit changes"
   Product: Tomcat 5
   Version: 5.5.23
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hi,

I'm migrating from Tomcat 5.5.0 to the last version offered in
http://tomcat.apache.org, 5.5.23. When I try to create new contexts via Admin
Tool (/admin), I got a "successful" page, but then checking the Catalina logs I
get errors like the following:

org.apache.catalina.storeconfig.StandardContextSF storeWithBackup
GRAVE: Cannot move orignal context output file at
/conf/Catalina/localhost/.xml

And no file is written in the folder as expected. Certainly the file doesn't
exists, because is a new context and that's the name of the file that must be
created. 

I've tried this in Linux (SuSE Linux 9.2 Professional, Ubuntu 7.04) and Windows
XP and with versions 5.5.20 and 5.5.18 with no luck.

I've searched in Google and get the reference to bug 37781, "Permission error
causes malformed server.xml to be saved.". The fix was the following code:

File: StandardContextSF.java

protected void storeWithBackup(StandardContext aContext) throws Exception {
StoreFileMover mover = getConfigFileWriter((Context) aContext);
if (mover != null) {
// Bugzilla 37781 Check to make sure we can write this output file
if ((mover.getConfigOld() == null)
|| (!mover.getConfigOld().isFile())
|| (!mover.getConfigOld().canWrite())) {
log.error("Cannot move orignal context output file at "
+ mover.getConfigOld());
throw new IOException("Context orginal file at "
+ mover.getConfigOld()
+ " is null, not a file or not writable.");
}

Which suggest that if the "old config file" doesn't exist (like in this case),
the whole operation is aborted. If I create the file just before clicking in the
button "commit changes" in the admin page, the file writes successfully and I
get the context created as expected. 

In our case we tried to go back to version 5.5.16 (which is the version prior to
the fix) and in that version this operation works just fine. 

Can you check this behavior? Thanks!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r556449 - /tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml

2007-07-15 Thread markt
Author: markt
Date: Sun Jul 15 13:52:10 2007
New Revision: 556449

URL: http://svn.apache.org/viewvc?view=rev&rev=556449
Log:
Remove references to adding stuff to server.xml and cross-reference the context 
docs instead.

Modified:
tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml

Modified: 
tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml?view=diff&rev=556449&r1=556448&r2=556449
==
--- tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml 
(original)
+++ tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml 
Sun Jul 15 13:52:10 2007
@@ -192,15 +192,10 @@
 
 
 
-2. server.xml configuration
+2. Context configuration
 Configure the JNDI DataSource in Tomcat by adding a declaration for your
-resource to $CATALINA_HOME/conf/server.xml.
-Add this in between the  tag of the examples
-context and the  tag closing the localhost 
definition.
-If there is no such tag, you can add one as illustrated in the 
-Context and
-Host configuration references, and repeated 
below
-for your convenience.
+resource to your Context.
+For example:
 
 
 
@@ -407,12 +399,10 @@
 not visible to other Tomcat applications. This method is less invasive to your
 Tomcat installation.
 
-
+
 
-Create a resource definition file for your application defining the
-datasource. This file must have the same name as your application, so if
-your application deploys as someApp.war, this filename must
-be someApp.xml. This file should look something like the 
following.
+Create a resource definition for your Context.
+The Context element should look something like the following.
 
 
 



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



svn commit: r556451 - /tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml

2007-07-15 Thread markt
Author: markt
Date: Sun Jul 15 13:56:35 2007
New Revision: 556451

URL: http://svn.apache.org/viewvc?view=rev&rev=556451
Log:
Remove line length marker

Modified:
tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml

Modified: 
tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml?view=diff&rev=556451&r1=556450&r2=556451
==
--- tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml 
(original)
+++ tomcat/container/tc5.5.x/webapps/docs/jndi-datasource-examples-howto.xml 
Sun Jul 15 13:56:35 2007
@@ -399,7 +399,7 @@
 not visible to other Tomcat applications. This method is less invasive to your
 Tomcat installation.
 
-
+
 
 Create a resource definition for your Context.
 The Context element should look something like the following.



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



svn commit: r556453 - /tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml

2007-07-15 Thread markt
Author: markt
Date: Sun Jul 15 13:58:12 2007
New Revision: 556453

URL: http://svn.apache.org/viewvc?view=rev&rev=556453
Log:
Remove references to adding stuff to server.xml and cross-reference the context 
docs instead.

Modified:
tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml

Modified: tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml?view=diff&rev=556453&r1=556452&r2=556453
==
--- tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml 
(original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/jndi-datasource-examples-howto.xml Sun 
Jul 15 13:58:12 2007
@@ -42,10 +42,10 @@
 to the wider audience, or if you feel we can improve this section in 
anyway.
 
 
-Please note that JNDI resource configuration has changed somewhat between
-Tomcat 5.0.x and Tomcat 5.5.x.  You will most likely need to modify your 
JNDI
-resource configurations to match the syntax in the example below in order
-to make them work in Tomcat 5.5.x.
+Please note that JNDI resource configuration changed somewhat between
+Tomcat 5.0.x and Tomcat 5.5.x.  You will most likely need to modify older
+JNDI resource configurations to match the syntax in the example below in order
+to make them work in Tomcat 6.x.x.
 
 
 
@@ -192,15 +192,10 @@
 
 
 
-2. server.xml configuration
+2. Context configuration
 Configure the JNDI DataSource in Tomcat by adding a declaration for your
-resource to $CATALINA_HOME/conf/server.xml.
-Add this in between the  tag of the examples
-context and the  tag closing the localhost 
definition.
-If there is no such tag, you can add one as illustrated in the 
-Context and
-Host configuration references, and repeated 
below
-for your convenience.
+resource to your Context.
+For example:
 
 
 
@@ -409,10 +401,8 @@
 
 
 
-Create a resource definition file for your application defining the
-datasource. This file must have the same name as your application, so if
-your application deploys as someApp.war, this filename must
-be someApp.xml. This file should look something like the 
following.
+Create a resource definition for your Context.
+The Context element should look something like the following.
 
 
 



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



Re: Tomcat supporting PHP

2007-07-15 Thread Joe Nathan

I am talking about in-built capability that people do NOT need
to install heaps of cranky-installation software packages!

regards.



Yoav Shapira-2 wrote:
> 
> Hey,
> 
> On 7/14/07, Bill Barker <[EMAIL PROTECTED]> wrote:
>>
>> "Joe Nathan" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>> >
>> > I think if Tomcat also supports PHP scripts, it could be wonderful!.
>>
>> Google is your friend :) http://www.google.com/search?q=php+servlet.
>>
>> I don't think that there is much interest in hosting a PHP servlet in
>> Tomcat
>> however.
> 
> Bill's right.
> 
> I also wrote up (the initial version of)
> http://wiki.apache.org/tomcat/UsingPhp a while ago, if you're still
> interested in this approach.
> 
> Yoav
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-supporting-PHP-tf4080523.html#a11606570
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



svn commit: r556488 - in /tomcat/container/tc5.5.x: catalina/src/share/org/apache/catalina/startup/ContextConfig.java webapps/docs/changelog.xml

2007-07-15 Thread markt
Author: markt
Date: Sun Jul 15 18:55:50 2007
New Revision: 556488

URL: http://svn.apache.org/viewvc?view=rev&rev=556488
Log:
Fix reload problem that only affected ROOT.xml

Modified:

tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ContextConfig.java
tomcat/container/tc5.5.x/webapps/docs/changelog.xml

Modified: 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ContextConfig.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ContextConfig.java?view=diff&rev=556488&r1=556487&r2=556488
==
--- 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ContextConfig.java
 (original)
+++ 
tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ContextConfig.java
 Sun Jul 15 18:55:50 2007
@@ -863,12 +863,12 @@
 file = new File(docBase);
 String origDocBase = docBase ;
  
+String contextPath = context.getPath();
+if (contextPath.equals("")) {
+contextPath = "ROOT";
+}
 if (docBase.toLowerCase().endsWith(".war") && !file.isDirectory() && 
unpackWARs) {
 URL war = new URL("jar:" + (new File(docBase)).toURL() + "!/");
-String contextPath = context.getPath();
-if (contextPath.equals("")) {
-contextPath = "ROOT";
-}
 docBase = ExpandWar.expand(host, war, contextPath);
 file = new File(docBase);
 docBase = file.getCanonicalPath();
@@ -882,7 +882,7 @@
 if (warFile.exists()) {
 if (unpackWARs) {
 URL war = new URL("jar:" + warFile.toURL() + "!/");
-docBase = ExpandWar.expand(host, war, 
context.getPath());
+docBase = ExpandWar.expand(host, war, contextPath);
 file = new File(docBase);
 docBase = file.getCanonicalPath();
 } else {

Modified: tomcat/container/tc5.5.x/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/changelog.xml?view=diff&rev=556488&r1=556487&r2=556488
==
--- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Sun Jul 15 18:55:50 2007
@@ -25,6 +25,11 @@
   
 
   
+Handle special case of ROOT when re-loading webapp after ROOT.xml has
+been modified. In some circumstances the reloaded ROOT webapp had no
+associated resources. (markt)
+  
+  
 Remove invalid attribute "encoding" of MBean MemoryUserDatabase,
 which lead to errors in the manager webapp JMXProxy output. (rjung)
   



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



svn commit: r556489 - in /tomcat/tc6.0.x/trunk: java/org/apache/catalina/startup/ContextConfig.java webapps/docs/changelog.xml

2007-07-15 Thread markt
Author: markt
Date: Sun Jul 15 19:01:01 2007
New Revision: 556489

URL: http://svn.apache.org/viewvc?view=rev&rev=556489
Log:
Fix reload problem that only affected ROOT.xml. Ported from 5.5.x

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java
tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java?view=diff&rev=556489&r1=556488&r2=556489
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/startup/ContextConfig.java 
Sun Jul 15 19:01:01 2007
@@ -881,12 +881,12 @@
 file = new File(docBase);
 String origDocBase = docBase;
 
+String contextPath = context.getPath();
+if (contextPath.equals("")) {
+contextPath = "ROOT";
+}
 if (docBase.toLowerCase().endsWith(".war") && !file.isDirectory() && 
unpackWARs) {
 URL war = new URL("jar:" + (new File(docBase)).toURL() + "!/");
-String contextPath = context.getPath();
-if (contextPath.equals("")) {
-contextPath = "ROOT";
-}
 docBase = ExpandWar.expand(host, war, contextPath);
 file = new File(docBase);
 docBase = file.getCanonicalPath();
@@ -900,7 +900,7 @@
 if (warFile.exists()) {
 if (unpackWARs) {
 URL war = new URL("jar:" + warFile.toURL() + "!/");
-docBase = ExpandWar.expand(host, war, 
context.getPath());
+docBase = ExpandWar.expand(host, war, contextPath);
 file = new File(docBase);
 docBase = file.getCanonicalPath();
 } else {

Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?view=diff&rev=556489&r1=556488&r2=556489
==
--- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Sun Jul 15 19:01:01 2007
@@ -25,6 +25,11 @@
   
 
   
+Handle special case of ROOT when re-loading webapp after ROOT.xml has
+been modified. In some circumstances the reloaded ROOT webapp had no
+associated resources. (markt)
+  
+  
 Remove invalid attribute "encoding" of MBean MemoryUserDatabase,
 which lead to errors in the manager webapp JMXProxy output. (rjung)
   



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



Bug report for Tomcat 3 [2007/07/15]

2007-07-15 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 2350|Ver|Nor|2001-06-27|ServletConfig.getInitParameter() requires url-patt|
| 5331|Ass|Nor|2001-12-09|getPathInfo vs URL normalization  |
| 6027|Inf|Maj|2002-01-25|Tomcat  Automatically shuts down as service   |
| 6488|Ver|Maj|2002-02-15|Error: 304. Apparent bug in default ErrorHandler c|
| 7785|Inf|Blk|2002-04-06|tomcat bug in context reloading   |
| 7863|Inf|Maj|2002-04-09|I have a problem when running Tomcat with IIS |
| 8187|Inf|Cri|2002-04-17|Errors when Tomcat used with MS Access database   |
| 9737|Ver|Nor|2002-06-10|ArrayIndexOutOfBoundsException when sending just p|
|10047|Ass|Cri|2002-06-20|IllegalStateException |
|10406|Ass|Cri|2002-07-02|IllegalStateException |
|11087|Inf|Blk|2002-07-23|IllegalStateException |
|12156|Inf|Cri|2002-08-29|Apache and Tomcat 3.3.1 Interworking problem  |
|16363|Ass|Cri|2003-01-23|Stack Overflow accessing compiled JSP - Tomcat 3.2|
|39250|Inf|Cri|2006-04-07|Tomcat 3.2.1 + JDK 1.4|
+-+---+---+--+--+
| Total   14 bugs   |
+---+

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



Bug report for Tomcat 4 [2007/07/15]

2007-07-15 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 3839|Opn|Enh|2001-09-26|Problem bookmarking login page|
| 4227|Opn|Enh|2001-10-17|Invalid CGI path  |
| 5329|New|Enh|2001-12-08|NT Service exits startup before Tomcat is finished|
| 5795|New|Enh|2002-01-10|Catalina Shutdown relies on localhost causing prob|
| 5829|New|Enh|2002-01-13|StandardManager needs to cope with sessions throwi|
| 5985|New|Enh|2002-01-23|Tomcat should perform a more restrictive validatio|
| 6600|Opn|Enh|2002-02-20|enodeURL adds 'jsession' when 'isRequestedSessionI|
| 6614|New|Enh|2002-02-21|Have Bootstrap and StandardClassLoader use the sam|
| 6671|New|Enh|2002-02-25|Simple custom tag example uses old declaration sty|
| 7043|New|Enh|2002-03-12|database user and password for JDBC Based Store   |
| 7374|New|Enh|2002-03-22|Apache Tomcat/4.0.1 message on standard output|
| 7676|New|Enh|2002-04-02|Allow name property to use match experssions in  without className in server.xml produces N|
|11069|Opn|Enh|2002-07-23|Tomcat not flag error if tld is outside of /WEB-IN|
|11129|New|Enh|2002-07-24|New valve for putting the sessionIDs in the reques|
|11248|New|Enh|2002-07-29|DefaultServlet doesn't send expires header|
|11754|Opn|Enh|2002-08-15|Synchronous shutdown script - shutdown.sh should w|
|12069|New|Enh|2002-08-27|Creation of more HttpSession objects for one previ|
|12428|Opn|Enh|2002-09-09|request.getUserPrincipal(): Misinterpretation of s|
|12658|New|Enh|2002-09-15|a proxy host and port at the  element level |
|12766|New|Enh|2002-09-18|Tomcat should use tld files in /WEB-INF/ over vers|
|13309|Opn|Enh|2002-10-04|Catalina calls System.exit()  |
|13634|New|Enh|2002-10-15|Allowing system properties to be substituted in co|
|13689|Opn|Enh|2002-10-16|Classloader paths for 'Common' classes and librari|
|13731|New|Enh|2002-10-17|Final request, response, session and other variabl|
|13941|New|Enh|2002-10-24|reload is VERY slow   |
|13965|New|Enh|2002-10-25|Catalina.sh correction request for Tru64 Unix |
|14097|New|Enh|2002-10-30|hardcoded registry value for vm lets tomcat servic|
|14416|New|Enh|2002-11-10|blank tag name in TLD cause NullPointerException  |
|14635|New|Enh|2002-11-18|Should be possible not to have -MM-DD in log f|
|14766|New|Enh|2002-11-22|Redirect Vavle|
|14993|New|Enh|2002-12-02|Possible obselete synchronized declaration|
|15115|New|Enh|2002-12-05|correct docs... XML parser *cannot* be overridden |
|15417|Opn|Enh|2002-12-16|Add port for forced compilation of JSP pages  |
|15688|New|Enh|2002-12-27|full-qualified names instead of imports   |
|15941|New|Enh|2003-01-10|Expose rootCause exceptions at deeper levels  |
|16294|New|Enh|2003-01-21|Configurable URL Decoding.|
|16357|New|Enh|2003-01-23|"connection timeout reached"  |
|16531|New|Enh|2003-01-29|Updating already deployed ".war" files in a single|
|16579|New|Enh|2003-01-30|documentation page layout/style breaks wrapping to|
|16596|New|Enh|2003-01-30|option for disabling log rotation |
|17070|New|Enh|2003-02-14|The Catalina Ant tasks do not allow for 'reusable'|
|17146|New|Enh|2003-02-18|Simplify build.xml using 

Bug report for Watchdog [2007/07/15]

2007-07-15 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|  278|Unc|Nor|2000-12-04|Bug in GetParameterValuesTestServlet.java file Bug|
|  279|Unc|Nor|2000-12-04|Logical Error in GetParameterValuesTestServlet Bug|
|  469|Unc|Nor|2001-01-17|in example-taglib.tld "urn" should be "uri" BugRat|
|  470|Unc|Nor|2001-01-17|FAIL positiveForward.jsp and positiveInclude.jsp B|
| 9634|New|Enh|2002-06-05|No tests exist for ServletContext.getResourcePaths|
|10703|New|Enh|2002-07-11|Need to test getRequestURI after RequestDispatcher|
|11336|New|Enh|2002-07-31|Test wrapped path methods with RD.foward()|
|11663|New|Maj|2002-08-13|JSP precompile tests rely on Jasper specific behav|
|11664|New|Maj|2002-08-13|A sweep is needed of all Watchdog 4.0 tag librarie|
|11665|New|Maj|2002-08-13|ServletToJSPErrorPageTest and ServletToServletErro|
|11666|New|Maj|2002-08-13|SetBufferSize_1TestServlet is invalid.|
|14004|New|Maj|2002-10-28|Incorrent behaviour of all attribute-related lifec|
|15504|New|Nor|2002-12-18|JSP positiveGetValues test relies on order preserv|
|24649|New|Nor|2003-11-12|getRemoteHost fails when agent has uppercase chara|
|29398|New|Nor|2004-06-04|Update site and note current status   |
+-+---+---+--+--+
| Total   15 bugs   |
+---+

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



Bug report for Tomcat 5 [2007/07/15]

2007-07-15 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 2500|Opn|Min|2001-07-08|FileNotFoundException from service() unintentional|
|27122|Opn|Enh|2004-02-20|IE plugins cannot access components through Tomcat|
|28039|Opn|Enh|2004-03-30|Cluster Support for SingleSignOn  |
|29160|Ver|Enh|2004-05-23|precompile problem: _jspx_meth_* (javax.servlet.js|
|29494|Inf|Enh|2004-06-10|No way to set PATH when running as a service on Wi|
|29936|Opn|Blk|2004-07-06|XML parser loading problems by container  |
|30241|Ver|Enh|2004-07-21|Enhance build script to use branch argument when c|
|30949|Opn|Nor|2004-08-30|After Failed Include, Request and Response not Unw|
|33262|Inf|Enh|2005-01-27|Service Manager autostart should check for adminis|
|33453|Opn|Enh|2005-02-08|Jasper should recompile JSP files whose datestamps|
|33650|Inf|Enh|2005-02-19|Jasper performance for multiple files processing  |
|33671|Opn|Enh|2005-02-21|Manual Windows service installation with custom na|
|34801|New|Enh|2005-05-08|PATCH: CGIServlet does not terminate child after a|
|34805|Ass|Enh|2005-05-08|warn about invalid security constraint url pattern|
|34868|Ass|Enh|2005-05-11|allow to register a trust store for a session that|
|35054|Inf|Enh|2005-05-25|warn if appBase is not existing as a File or direc|
|35869|Inf|Enh|2005-07-26|Can't run as a service on Windows Server 2003 64-B|
|35941|Opn|Cri|2005-07-30|Wrong remote IP reported when using AJP and APR   |
|36121|Opn|Maj|2005-08-10|Including JSP's changes working directory |
|36133|Inf|Enh|2005-08-10|Support JSS SSL implementation|
|36169|New|Enh|2005-08-12|[PATCH] Enable chunked encoding for requests in II|
|36362|New|Enh|2005-08-25|missing check for Java reserved keywords in tag fi|
|36540|Inf|Enh|2005-09-07|pooled cluster replication does not seem ensure sy|
|36569|Inf|Enh|2005-09-09|Redirects produce illegal URL's   |
|36837|Inf|Enh|2005-09-28|Looking for ProxyHandler implementation of Http re|
|36922|Inf|Enh|2005-10-04|setup.sh file mis-advertised and missing  |
|36923|New|Nor|2005-10-05|Deactivated EL expressions are not parsed for jsp |
|37018|Ass|Enh|2005-10-11|Document how to use tomcat-SSL with a pkcs11 token|
|37072|Ass|Nor|2005-10-13|Encoding mismatch in error condition  |
|37084|Opn|   |2005-10-14|JspC from ant fails on JSPs that use custom taglib|
|37326|Ass|Nor|2005-11-01|No error reported when  has non-exist|
|37334|Inf|Enh|2005-11-02|Realm digest property not aligned with the adminis|
|37449|Opn|Enh|2005-11-10|Two UserDatabaseRealm break manager user  |
|37485|Inf|Enh|2005-11-14|I'd like to run init SQL after JDBC Connection cre|
|37498|Inf|Nor|2005-11-14|[PATCH] NPE in org.apache.catalina.core.ContainerB|
|37515|Inf|Nor|2005-11-15|smap not generated by JspC when used from Ant for |
|37627|Opn|Nor|2005-11-24|Slow and incomplete dynamic content generation aft|
|37785|Inf|Nor|2005-12-05|Changing startup type via Tomcat Monitor does not |
|37794|Opn|Nor|2005-12-05|getParameter() fails on POST with transfer-encodin|
|37797|Inf|Maj|2005-12-05|Configure Tomcat utility truncates classpath to 96|
|37822|Opn|Nor|2005-12-07|WebappClassLoader interfering with Catalina core c|
|37834|Ass|Nor|2005-12-08|compressableMimeTypes not working properly|
|37847|Ass|Enh|2005-12-09|Allow User To Optionally Specify Catalina Output F|
|37869|Opn|Nor|2005-12-12|Cannot obtain client certificate with SSL / client|
|37918|Inf|Nor|2005-12-15|EL cannot find valid getter from object when using|
|37984|New|Nor|2005-12-21|JNDIRealm.java not able to handle MD5 password|
|38001|Inf|Nor|2005-12-22|TruncatedClassFile when loadind applets   |
|38046|Ass|   |2005-12-27|apache-tomcat-5.5.14-deployer doesn't work (Illega|
|38131|New|Enh|2006-01-05|WatchedResource does not work if app is outside "w|
|38216|Inf|Enh|2006-01-10|Extend Jmxproxy to allow call of MBean Operations |
|38268|Inf|Enh|2006-01-13|User friendly: Need submit button on adding/deleti|
|38290|Inf|Nor|2006-