Tomcat Manager Application

2006-11-01 Thread Kevin Jackson

Hi all,

I'm trying to resolve a problem I have using the manager application
to deploy a war file.

The problem is that the time it takes to upload the war file is very
long and the website is offline for the time it takes to not only
undeploy the old application and deploy the new application, but the
file transfer too.

Basically what I need is for the application to allow me to deploy an
application remotely, but to copy the war over *before* undeploying
the old application.

First is this possible directly in the manager? (I'm using it through
Cargo, and the Cargo developers say that what I want is impossible
given the current manager implementation).

If it isn't possible (which I suspect), would you be interested in a
patch to the manager application that  provided this 'transfer before
deploy' functionality?

Thanks,
Kev

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



svn commit: r469842 - /tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java

2006-11-01 Thread remm
Author: remm
Date: Wed Nov  1 02:04:21 2006
New Revision: 469842

URL: http://svn.apache.org/viewvc?view=rev&rev=469842
Log:
- Always call jspInit (some work in always done there, now).

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java?view=diff&rev=469842&r1=469841&r2=469842
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java Wed Nov 
 1 02:04:21 2006
@@ -391,8 +391,7 @@
 if (isPoolingEnabled) {
 for (int i = 0; i < tagHandlerPoolNames.size(); i++) {
 out.printin(tagHandlerPoolNames.elementAt(i));
-out
-.print(" = 
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(");
+out.print(" = 
org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(");
 if (ctxt.isTagFile()) {
 out.print("config");
 } else {
@@ -562,8 +561,7 @@
 out.print(servletClassName);
 out.print(" extends ");
 out.println(pageInfo.getExtends());
-out
-.printin("implements 
org.apache.jasper.runtime.JspSourceDependent");
+out.printin("implements 
org.apache.jasper.runtime.JspSourceDependent");
 if (!pageInfo.isThreadSafe()) {
 out.println(",");
 out.printin(" SingleThreadModel");
@@ -589,8 +587,7 @@
 // Now the service method
 out.printin("public void ");
 out.print(serviceMethodName);
-out
-.println("(HttpServletRequest request, HttpServletResponse 
response)");
+out.println("(HttpServletRequest request, HttpServletResponse 
response)");
 out.println("throws java.io.IOException, ServletException {");
 
 out.pushIndent();
@@ -604,12 +601,10 @@
 out.printil("HttpSession session = null;");
 
 if (pageInfo.isErrorPage()) {
-out
-.printil("Throwable exception = 
org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);");
+out.printil("Throwable exception = 
org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);");
 out.printil("if (exception != null) {");
 out.pushIndent();
-out
-
.printil("response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);");
+
out.printil("response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);");
 out.popIndent();
 out.printil("}");
 }
@@ -3428,12 +3423,10 @@
 out.printin("public final class ");
 out.println(className);
 out.printil("extends javax.servlet.jsp.tagext.SimpleTagSupport");
-out
-.printin("implements 
org.apache.jasper.runtime.JspSourceDependent");
+out.printin("implements 
org.apache.jasper.runtime.JspSourceDependent");
 if (tagInfo.hasDynamicAttributes()) {
 out.println(",");
-out
-.printin("   
javax.servlet.jsp.tagext.DynamicAttributes");
+out.printin("   
javax.servlet.jsp.tagext.DynamicAttributes");
 }
 out.println(" {");
 out.println();
@@ -3442,7 +3435,6 @@
 /*
  * Class body begins here
  */
-
 generateDeclarations(tag);
 
 // Static initializations here
@@ -3468,8 +3460,7 @@
 genPreambleMethods();
 
 // Now the doTag() method
-out
-.printil("public void doTag() throws JspException, 
java.io.IOException {");
+out.printil("public void doTag() throws JspException, 
java.io.IOException {");
 
 if (ctxt.isPrototypeMode()) {
 out.printil("}");
@@ -3485,23 +3476,18 @@
  * implicit object in tag files. Declare _jspx_page_context, so we can
  * share the code generator with JSPs.
  */
-out
-.printil("PageContext _jspx_page_context = 
(PageContext)jspContext;");
-
+out.printil("PageContext _jspx_page_context = 
(PageContext)jspContext;");
+
 // Declare implicit objects.
 out.printil("HttpServletRequest request = "
 + "(HttpServletRequest) _jspx_page_context.getRequest();");
 out.printil("HttpServletResponse response = "
 + "(HttpServletResponse) _jspx_page_context.getResponse();");
 out.printil("HttpSession session = _jspx_page_context.getSession();");
-out
-.printil("ServletContext application = 
_jspx_page_context.getServletContext();");
- 

svn commit: r469855 - /tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java

2006-11-01 Thread remm
Author: remm
Date: Wed Nov  1 02:59:20 2006
New Revision: 469855

URL: http://svn.apache.org/viewvc?view=rev&rev=469855
Log:
- For tag files, also put attributes in the wrapped jspContext.

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java?view=diff&rev=469855&r1=469854&r2=469855
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java Wed Nov 
 1 02:59:20 2006
@@ -3559,8 +3559,7 @@
 throws JasperException {
 
 if (tagInfo.hasDynamicAttributes()) {
-out
-.printil("private java.util.HashMap _jspx_dynamic_attrs = 
new java.util.HashMap();");
+out.printil("private java.util.HashMap _jspx_dynamic_attrs = new 
java.util.HashMap();");
 }
 
 // Declare attributes
@@ -3619,6 +3618,14 @@
 out.print(" = ");
 out.print(attrInfos[i].getName());
 out.println(";");
+if (ctxt.isTagFile()) {
+// Tag files should also set jspContext attributes
+out.printin("jspContext.setAttribute(\"");
+out.print(attrInfos[i].getName());
+out.print("\", ");
+out.print(attrInfos[i].getName());
+out.println(");");
+}
 out.popIndent();
 out.printil("}");
 out.println();



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



DO NOT REPLY [Bug 40860] New: - Tomcat loses request parameters

2006-11-01 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=40860

   Summary: Tomcat loses request parameters
   Product: Tomcat 5
   Version: 5.5.9
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: critical
  Priority: P2
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Hi,

I’m having a problem with parameters loses in tomcat. It’s an intermittent
problem. That occurs when I do some ajax’s request and then I do one or more
form submissions. 

I put the tomcat in debug mode and  I observed the class CoyoteAdapter – the
method service(). There exists a request variable (CoyoteRequest type) that has
a protected variable requestParametersParsed that is a flag to parse or not
parse the parameters of a post or get. In the end of the method exists a
‘finally’ clause that force the request variable to do a recycle. The recycle
forces the requestParametersParsed variable to change to false. Then in the next
utilization of the class the parameters will be parsed again. 

The problem that I’ve found is in some situations (as described at the start)
the requestParametersParsed variable is true and the parameters are not parsed. 

The consequence of this is that in my servlet when I ask request.getParameter(…)
and it returns null but in my query string or in my post data has the parameter.
The prove of that is when I ask request.getQueryString() and it returns a not
empty string with my parameter.

Ex:

request.getQueryString() = servlet?param=x
request.getParameter(‘param’) = null


See a pierce of the method service of CoyoteAdapter:
 
public void service(Request req, Response res)
throws Exception {

…
try {

// Parse and set Catalina and configuration specific
// request parameters
if ( postParseRequest(req, request, res, response) ) {
// Calling the container
connector.getContainer().invoke(request, response);
}

…
} finally {
// Recycle the wrapper request and response
request.recycle();
response.recycle();
}

}

At line “if postParseRequest(…” the request. requestParametersParsed must be
false but in some situations it is true!

I cant find the cause of the problem but I found the problem. To resolve my
problem I put a request.recycle(); before the line to force the
requestParametersParsed  variable to false.
I don’t want to have a tomcat modified by me. Its not good. 

See the post
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200601.mbox/[EMAIL 
PROTECTED]
He is having the same problem.

Thanks

Thiago

-- 
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: r469890 - in /tomcat/tc6.0.x/trunk/java/org/apache/jasper: compiler/TagFileProcessor.java resources/LocalStrings.properties

2006-11-01 Thread remm
Author: remm
Date: Wed Nov  1 04:42:53 2006
New Revision: 469890

URL: http://svn.apache.org/viewvc?view=rev&rev=469890
Log:
- Check for some of the errors.

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java

tomcat/tc6.0.x/trunk/java/org/apache/jasper/resources/LocalStrings.properties

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java?view=diff&rev=469890&r1=469889&r2=469890
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java 
Wed Nov  1 04:42:53 2006
@@ -201,7 +201,9 @@
 }
 String deferredValueType = 
n.getAttributeValue("deferredValueType");
 if (deferredValueType != null) {
-deferredValue = true;
+if (!deferredValue) {
+err.jspError(n, 
"jsp.error.deferredvaluetypewithoutdeferredvalue");
+}
 } else if (deferredValue) {
 deferredValueType = "java.lang.Object";
 } else {
@@ -218,11 +220,17 @@
 String deferredMethodSignature = n
 .getAttributeValue("deferredMethodSignature");
 if (deferredMethodSignature != null) {
-deferredMethod = true;
+if (!deferredMethod) {
+err.jspError(n, 
"jsp.error.deferredmethodsignaturewithoutdeferredmethod");
+}
 } else if (deferredMethod) {
 deferredMethodSignature = "void methodname()";
 }
 
+if (deferredMethod && deferredValue) {
+err.jspError(n, "jsp.error.deferredmethodandvalue");
+}
+
 String attrName = n.getAttributeValue("name");
 boolean required = JspUtil.booleanValue(n
 .getAttributeValue("required"));

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/jasper/resources/LocalStrings.properties
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/resources/LocalStrings.properties?view=diff&rev=469890&r1=469889&r2=469890
==
--- 
tomcat/tc6.0.x/trunk/java/org/apache/jasper/resources/LocalStrings.properties 
(original)
+++ 
tomcat/tc6.0.x/trunk/java/org/apache/jasper/resources/LocalStrings.properties 
Wed Nov  1 04:42:53 2006
@@ -325,6 +325,9 @@
 jsp.error.attribute.noquote=quote symbol expected
 jsp.error.attribute.unterminated=attribute for {0} is not properly terminated
 jsp.error.missing.tagInfo=TagInfo object for {0} is missing from TLD
+jsp.error.deferredmethodsignaturewithoutdeferredmethod=Cannot specify a method 
signature if 'deferredMethod' is not 'true'
+jsp.error.deferredvaluetypewithoutdeferredvalue=Cannot specify a value type if 
'deferredValue' is not 'true'
+jsp.error.deferredmethodandvalue='deferredValue' and 'deferredMethod' cannot 
be both 'true'
 jsp.error.fragmentwithtype=Cannot specify both 'fragment' and 'type' 
attributes.  If 'fragment' is present, 'type' is fixed as 
'javax.servlet.jsp.tagext.JspFragment'
 jsp.error.fragmentwithrtexprvalue=Cannot specify both 'fragment' and 
'rtexprvalue' attributes.  If 'fragment' is present, 'rtexprvalue' is fixed as 
'true'
 jsp.error.fragmentWithDeclareOrScope=Both 'fragment' and 'declare' or 'scope' 
attributes specified in variable directive



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



svn commit: r469893 - /tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java

2006-11-01 Thread remm
Author: remm
Date: Wed Nov  1 04:56:33 2006
New Revision: 469893

URL: http://svn.apache.org/viewvc?view=rev&rev=469893
Log:
- Fix woops.

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java?view=diff&rev=469893&r1=469892&r2=469893
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java 
Wed Nov  1 04:56:33 2006
@@ -195,14 +195,18 @@
 // JSP 2.1 Table JSP.8-3
 // handle deferredValue and deferredValueType
 boolean deferredValue = false;
+boolean deferredValueSpecified = false;
 String deferredValueString = n.getAttributeValue("deferredValue");
 if (deferredValueString != null) {
+deferredValueSpecified = true;
 deferredValue = JspUtil.booleanValue(deferredValueString);
 }
 String deferredValueType = 
n.getAttributeValue("deferredValueType");
 if (deferredValueType != null) {
-if (!deferredValue) {
+if (deferredValueSpecified && !deferredValue) {
 err.jspError(n, 
"jsp.error.deferredvaluetypewithoutdeferredvalue");
+} else {
+deferredValue = true;
 }
 } else if (deferredValue) {
 deferredValueType = "java.lang.Object";
@@ -213,15 +217,19 @@
 // JSP 2.1 Table JSP.8-3
 // handle deferredMethod and deferredMethodSignature
 boolean deferredMethod = false;
+boolean deferredMethodSpecified = false;
 String deferredMethodString = 
n.getAttributeValue("deferredMethod");
 if (deferredMethodString != null) {
+deferredMethodSpecified = true;
 deferredMethod = JspUtil.booleanValue(deferredMethodString);
 }
 String deferredMethodSignature = n
 .getAttributeValue("deferredMethodSignature");
 if (deferredMethodSignature != null) {
-if (!deferredMethod) {
+if (deferredMethodSpecified && !deferredMethod) {
 err.jspError(n, 
"jsp.error.deferredmethodsignaturewithoutdeferredmethod");
+} else {
+deferredMethod = true;
 }
 } else if (deferredMethod) {
 deferredMethodSignature = "void methodname()";



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



DO NOT REPLY [Bug 40797] - Library problems

2006-11-01 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=40797





--- Additional Comments From [EMAIL PROTECTED]  2006-11-01 05:01 ---
Created an attachment (id=19063)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19063&action=view)
Simple JSP file that reproduces 0x1b problem

The bug is not stable, you should click F5 in a browser several times to
reproduce it.

-- 
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 40860] - Tomcat loses request parameters

2006-11-01 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=40860


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2006-11-01 05:20 ---
I suppose the logical conclusion would be to look why the flag is false, rather
than resort to hacking. Most likely you are seeing concurrent access to the
request object.

-- 
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 40797] - Library problems

2006-11-01 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=40797





--- Additional Comments From [EMAIL PROTECTED]  2006-11-01 05:43 ---
One more thing: to reproduce error with file.jsp (attached above) you should
download apache standard tag libraries jar (standard.jar) and put it in the
WEB-INF\lib. Bug will not appear if you remove reference to tag library from 
jsp.

-- 
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 40860] - Tomcat loses request parameters

2006-11-01 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=40860





--- Additional Comments From [EMAIL PROTECTED]  2006-11-01 06:42 ---
(In reply to comment #1)
> I suppose the logical conclusion would be to look why the flag is false, 
> rather
> than resort to hacking. Most likely you are seeing concurrent access to the
> request object.

But i´m an user and not a developer. As an user i cant do nothing to resolve the
problem. As i observe, the recycle must set to false! There is a finally clause
that force the recycle! I supose that or the recycle may throw an exception or
an other process is accessing the request object.

-- 
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 40860] - Tomcat loses request parameters

2006-11-01 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=40860


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |




-- 
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: r470216 - in /tomcat/tc6.0.x/trunk/java/org/apache/jasper: compiler/ runtime/ xmlparser/

2006-11-01 Thread remm
Author: remm
Date: Wed Nov  1 19:50:14 2006
New Revision: 470216

URL: http://svn.apache.org/viewvc?view=rev&rev=470216
Log:
- i18n handling fixes (according to what the spec authors think is what should 
be done, at least).

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Node.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Parser.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/ParserController.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Validator.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/runtime/PageContextImpl.java

tomcat/tc6.0.x/trunk/java/org/apache/jasper/xmlparser/XMLEncodingDetector.java

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java?view=diff&rev=470216&r1=470215&r2=470216
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java 
Wed Nov  1 19:50:14 2006
@@ -143,7 +143,8 @@
 boolean directivesOnly,
 String pageEnc,
 String jspConfigPageEnc,
-boolean isEncodingSpecifiedInProlog)
+boolean isEncodingSpecifiedInProlog,
+boolean isBomPresent)
 throws JasperException {
 
 JspDocumentParser jspDocParser =
@@ -158,6 +159,7 @@
 dummyRoot.setJspConfigPageEncoding(jspConfigPageEnc);
 dummyRoot.setIsEncodingSpecifiedInProlog(
 isEncodingSpecifiedInProlog);
+dummyRoot.setIsBomPresent(isBomPresent);
 jspDocParser.current = dummyRoot;
 if (parent == null) {
 jspDocParser.addInclude(

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Node.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Node.java?view=diff&rev=470216&r1=470215&r2=470216
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Node.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Node.java Wed Nov  1 
19:50:14 2006
@@ -464,6 +464,12 @@
 private boolean isEncodingSpecifiedInProlog;
 
 /*
+ * Indicates whether an encoding has been explicitly specified in the
+ * page's bom.
+ */
+private boolean isBomPresent;
+
+/*
  * Constructor.
  */
 Root(Mark start, Node parent, boolean isXmlSyntax) {
@@ -525,6 +531,14 @@
 
 public boolean isEncodingSpecifiedInProlog() {
 return isEncodingSpecifiedInProlog;
+}
+
+public void setIsBomPresent(boolean isBom) {
+isBomPresent = isBom;
+}
+
+public boolean isBomPresent() {
+return isBomPresent;
 }
 
 /**

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Parser.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Parser.java?view=diff&rev=470216&r1=470215&r2=470216
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Parser.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Parser.java Wed Nov  1 
19:50:14 2006
@@ -108,7 +108,7 @@
 public static Node.Nodes parse(ParserController pc, JspReader reader,
 Node parent, boolean isTagFile, boolean directivesOnly,
 URL jarFileUrl, String pageEnc, String jspConfigPageEnc,
-boolean isDefaultPageEncoding) throws JasperException {
+boolean isDefaultPageEncoding, boolean isBomPresent) throws 
JasperException {
 
 Parser parser = new Parser(pc, reader, isTagFile, directivesOnly,
 jarFileUrl);
@@ -117,6 +117,7 @@
 root.setPageEncoding(pageEnc);
 root.setJspConfigPageEncoding(jspConfigPageEnc);
 root.setIsDefaultPageEncoding(isDefaultPageEncoding);
+root.setIsBomPresent(isBomPresent);
 
 if (directivesOnly) {
 parser.parseTagFileDirectives(root);

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/ParserController.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/ParserController.java?view=diff&rev=470216&r1=470215&r2=470216
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/ParserController.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/ParserController.java 
Wed Nov  1 19:50:14 2006
@@ -61,6 +61,7 @@
 private Stack baseDirStack = new Stack();
 
 pr

Windows Services & Locale/Robot

2006-11-01 Thread maxt

Hi

I am using Windows XP, Tomcat 5.5.17, JRE 1.5.0_08.

When using a shortcut with the following Target Properties:
"C:\Program Files\Java\jdk1.5.0_08\bin\java.exe" -jar -Duser.dir="C:\Program
Files\BMJ\Tomcat" "C:\Program Files\BMJ\Tomcat\bin\bootstrap.jar" start

my localization files work, and the use of the Robot class works.

When using Windows Services, neither work. No errors are reported.

In the Services I am using a Classpath command:
C:\Program Files\BMJ\Tomcat\bin\bootstrap.jar
and Java Options:
-Dcatalina.base=C:\Program Files\BMJ\Tomcat
-Dcatalina.home=C:\Program Files\BMJ\Tomcat
-Djava.endorsed.dirs=C:\Program Files\BMJ\Tomcat\common\endorsed

How can I use a Windows Service to read the ResourceBundle localization
files and for the Robot to work?

Thanks 
-- 
View this message in context: 
http://www.nabble.com/Windows-Services---Locale-Robot-tf2558023.html#a7128502
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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