DO NOT REPLY [Bug 39527] New: - add more HTTP Header info (e.g. RANGE) as request attributes

2006-05-09 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=39527

   Summary: add more HTTP Header info (e.g. RANGE) as request
attributes
   Product: Tomcat 5
   Version: 5.5.14
  Platform: Other
OS/Version: other
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Connector:HTTP
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Background: my SSL site needs to proxy a few pages (all with a relative URL
prefix such as /static) coming from a CMS on a different machine.

Solution:
use web.xml's 404
/pageNotFound404.do
and in there, if the requestURI starts with "/static", use commons.httpclient to
retrieve the page (and do some caching irrelevant for this RFE)

Issue:
- This works fine for almost any content, except for pdf or flash animations
- it even works for pdf is the line-mode browser lynx is used
- it appears that acrobat's pdf plugin doesn't entirely download a page, but
grabs parts of the file at a time.
Unfortunately, the HttpServletRequest the application programmer gets access to
doesn't expose the corresponding attributes.

Suggestion:
---
Similarly to adding security extra info to the HttpServletRequest such as 
javax.servlet.request.cipher_suite=TLS_DHE_RSA_WITH_AES_128_CBC_SHA
also add such RANGE/chunk values in request attributes to the request before
passing the control on to the error page/action.

After all, tomcat appears to know how to deal with those for the static elements
in its war file as per org.apache.catalina.servlets.DefaultServlet.parseRange.

see also Bug 38214

-- 
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 Logo

2006-05-09 Thread Mladen Turk

Javier Iglesias wrote:

Hi there,

sorry to disturb with such a silly question:

where can I find the Apache Tomcat logo in vector
format (svg, eps, pdf, ai, ...)?



It's still in Jakarta repository:
http://cvs.apache.org/viewcvs.cgi/jakarta/site/xdocs/images/logos/tomcat.eps?rev=126640&view=log

Good point! It should go to our svn thought.

Regards,
Mladen.


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



Re: Tomcat Logo

2006-05-09 Thread Mladen Turk

Javier Iglesias wrote:

Thanks Mladen,

 > Good point! It should go to our svn thought.

I cleaned up the file, added the colors
according to tomcat.apache.org, converted to svg.



It would be nice to have colored .eps.
My Photoshop does not support .svg :)

Regards,
Mladen.


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



Re: Tomcat Logo

2006-05-09 Thread Remy Maucherat

Mladen Turk wrote:

It would be nice to have colored .eps.
My Photoshop does not support .svg :)


Bleh. I would recommend using Gimp (and svg) instead, and I think it's a 
great contribution from Javier.


Rémy

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



Re: Tomcat Logo

2006-05-09 Thread Javier Iglesias

It would be nice to have colored .eps.


There it goes. Anything else? ; )



My Photoshop does not support .svg :)


Time to upgrade your toolbox:

-> http://www.inkscape.org/


  --j

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

Re: Tomcat Logo

2006-05-09 Thread Mladen Turk

Remy Maucherat wrote:

Mladen Turk wrote:

It would be nice to have colored .eps.
My Photoshop does not support .svg :)


Bleh. I would recommend using Gimp (and svg) instead, and I think it's a 
great contribution from Javier.


Right, The GIMP rulez ... removing Photoshop :)
Of course, thanks Javier for updating the artwork!

Regards,
Mladen.

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



Re: Tomcat Logo

2006-05-09 Thread Henri Gomez

Great tool, I didn't know it, but it's right now on my bookmarks and laptop :)

2006/5/9, Javier Iglesias <[EMAIL PROTECTED]>:

> It would be nice to have colored .eps.

There it goes. Anything else? ; )


> My Photoshop does not support .svg :)

Time to upgrade your toolbox:

-> http://www.inkscape.org/


   --j



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




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



DO NOT REPLY [Bug 39527] - add more HTTP Header info (e.g. RANGE) as request attributes

2006-05-09 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=39527





--- Additional Comments From [EMAIL PROTECTED]  2006-05-09 11:13 ---
Errr ... forgive what might be possibly a stupid question, but is there any 
reason you don't just map your error servlet to /static/* ? Why use the error 
servlet ? Seems kinda backwards.

-- 
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 Logo

2006-05-09 Thread Yoav Shapira

Cool stuff.  Thanks Javier ;)

Did you just sit up one day and ask yourself why this was missing, or
did you need the logo for some other use?

Yoav

On 5/9/06, Henri Gomez <[EMAIL PROTECTED]> wrote:

Great tool, I didn't know it, but it's right now on my bookmarks and laptop :)

2006/5/9, Javier Iglesias <[EMAIL PROTECTED]>:
> > It would be nice to have colored .eps.
>
> There it goes. Anything else? ; )
>
>
> > My Photoshop does not support .svg :)
>
> Time to upgrade your toolbox:
>
> -> http://www.inkscape.org/
>
>
>--j
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
[EMAIL PROTECTED] / www.yoavshapira.com

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



DO NOT REPLY [Bug 39527] - add more HTTP Header info (e.g. RANGE) as request attributes

2006-05-09 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=39527





--- Additional Comments From [EMAIL PROTECTED]  2006-05-09 11:18 ---
To clarify, I mean take the code that you now have mapped to error code 404, 
and mount it as a normal servlet at /static/*. You would have access to all 
the request attributes you need without being forced to return an error code 
that isn't appropriate (ie a 404 that has data) - probably the cause of your 
pdf problems.


-- 
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 Logo

2006-05-09 Thread Javier Iglesias

> Did you just sit up one day and ask yourself why this was missing, or
> did you need the logo for some other use?

You know, I just added two patches of color to the existing logo
and saved it to svg... not much to be proud of! But it's good to
contribute, though : )

I needed the logo for a web/standalone project to be started soon
[here comes a shameless ad for the project: http://gospel.sf.net/ ].

best wishes,

  --j

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



Re: Tomcat Logo

2006-05-09 Thread Ian Darwin

Remy Maucherat wrote:

Mladen Turk wrote:

It would be nice to have colored .eps.
My Photoshop does not support .svg :)


Bleh. I would recommend using Gimp (and svg) instead, and I think it's a 
great contribution from Javier.


+1 :-)

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



Deployement of war and context.xml files

2006-05-09 Thread Henri Gomez

Hi to all,

While playing with TC 5.5.17 and refactoring my apps to use it, I saw
a strange and show stopper behaviour.

I create a webapp, named myapp.war.

This application need some specific configuration to tailor it from
one customer to another.

I created a context file :

$CATALINA_HOME/conf/Catalina/localhost/myapp.xml

While Tomcat is running if I remove $CATALINA_HOME/webapps/myapp.war
and deployed webapp  $CATALINA_HOME/webapps/myapp/ directory, the
context file is deleted by Tomcat.

No more luck with host-manager :

To deploy an updated webapp I should :

Undeploy the old webapp, http://mysys/manager/html/undeploy?path=/myapp

When I do that, the context file,
$CATALINA_HOME/conf/Catalina/localhost/myapp.xml , is removed.

When deploying the new WAR, the .war is copied to webapps directory
and expanded, but the context is lost and not recreated or restored
from the previous copy.

Questions :

- Could we make the undeploy strategy keep the old context file in
$CATALINA_HOME/conf/Catalina/localhost, may be renamed and restore it
when application is redeployed ?

- Alternativly, could we prevent Tomcat to remvoe the context file
when undeploying the webapp ?


Regards

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



DO NOT REPLY [Bug 39530] New: - Tomcat 5.5.17 generates incorrect code with trimSpaces turned on.

2006-05-09 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=39530

   Summary: Tomcat 5.5.17 generates incorrect code with trimSpaces
turned on.
   Product: Tomcat 5
   Version: 5.5.17
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Tomcat 5.5.17 generates incorrect results with trimSpaces turned on.

TEST.JSP
==
<%
String onClickCmd  = "onclick=\"" + "dummyOnclick" + "\"";
String onKeydownCmd= "onkeydown=\"if (event.keyCode==13) {" +
"dummyOnkeydown()" + "}\"";
String tabIndexAttr= "tabindex=\"0\"";
String tClass  = "InfWizardStep_Active";

%>

<%=onClickCmd%>
onmouseover="dummyOnmouseover()"
/>



When precompiling with org.apache.jasper.JspC and trimSpaces="true" the
following Java is generated:


Generated Java with trimSpaces
===
String onClickCmd  = "onclick=\"" + "dummyOnclick" + "\"";
String onKeydownCmd= "onkeydown=\"if (event.keyCode==13) {" +
"dummyOnkeydown()" + "}\"";
String tabIndexAttr= "tabindex=\"0\"";
String tClass  = "InfWizardStep_Active";


  out.write("\r\n");
} catch (Throwable t) {
  if (!(t instanceof SkipPageException)){
out = _jsp

 
This generates the following incorrect fragment:

Generated HTML with trimSpaces. Note that there is no space between "0" and 
onclick






This code works when trimSpaces is not enabled, following are the results
without trimSpaces.

When precompiling with org.apache.jasper.JspC and trimSpaces="false" the
following Java is generated
Generated Java without trimSpaces
==
String onClickCmd  = "onclick=\"" + "dummyOnclick" + "\"";
String onKeydownCmd= "onkeydown=\"if (event.keyCode==13) {" +
"dummyOnkeydown()" + "}\"";
String tabIndexAttr= "tabindex=\"0\"";
String tClass  = "InfWizardStep_Active";


  out.write("\r\n");
  out.write("\r\n");


Generated HTML without trimSpaces
===


-- 
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: r405436 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java

2006-05-09 Thread remm
Author: remm
Date: Tue May  9 07:02:01 2006
New Revision: 405436

URL: http://svn.apache.org/viewcvs?rev=405436&view=rev
Log:
- Pass the ignore annotation flag to Jasper.

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java
URL: 
http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java?rev=405436&r1=405435&r2=405436&view=diff
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java Tue 
May  9 07:02:01 2006
@@ -4235,6 +4235,14 @@
 // Binding thread
 oldCCL = bindThread();
 
+// Set annotation processing parameter for Jasper (unfortunately, since
+// this can be configured in many places and not just in 
/WEB-INF/web.xml,
+// there are not many solutions)
+if (ignoreAnnotations) {
+Wrapper jspServlet = (Wrapper) 
findChild(Constants.JSP_SERVLET_NAME);
+
jspServlet.addInitParameter("org.apache.jasper.IGNORE_ANNOTATIONS", "true");
+}
+
 try {
 
 // Create context attributes that will be required



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



svn commit: r405437 - in /tomcat/tc6.0.x/trunk/java/org/apache/jasper: EmbeddedServletOptions.java JspC.java Options.java compiler/Generator.java runtime/TagHandlerPool.java

2006-05-09 Thread remm
Author: remm
Date: Tue May  9 07:05:23 2006
New Revision: 405437

URL: http://svn.apache.org/viewcvs?rev=405437&view=rev
Log:
- Use the ignore annotation flag.
- It needs recompilation in case the value is changed. It could do without, but 
would need 
  additional code in the generated servlets (a field, read a servlet context 
param), so 
  it would generally be (even) more intrusive :(

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/jasper/EmbeddedServletOptions.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/Options.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/runtime/TagHandlerPool.java

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/jasper/EmbeddedServletOptions.java
URL: 
http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/org/apache/jasper/EmbeddedServletOptions.java?rev=405437&r1=405436&r2=405437&view=diff
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/EmbeddedServletOptions.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/EmbeddedServletOptions.java Tue 
May  9 07:05:23 2006
@@ -174,6 +174,11 @@
  */
 private boolean xpoweredBy;
 
+/**
+ * Should annotations be ignored?
+ */
+private boolean ignoreAnnotations = false;
+
 public String getProperty(String name ) {
 return settings.getProperty( name );
 }
@@ -245,6 +250,13 @@
 }
 
 /**
+ * Should annotations on tags be ignored?
+ */
+public boolean getIgnoreAnnotations() {
+return ignoreAnnotations;
+}
+
+/**
  * Is the generation of SMAP info for JSR45 debuggin suppressed?
  */
 public boolean isSmapSuppressed() {
@@ -384,6 +396,11 @@
 String validating=config.getInitParameter( "validating");
 if( "false".equals( validating )) ParserUtils.validating=false;
 
+String annotations = 
config.getInitParameter("org.apache.jasper.IGNORE_ANNOTATIONS");
+if ("true".equals(annotations)) {
+ignoreAnnotations = true;
+}
+
 String keepgen = config.getInitParameter("keepgenerated");
 if (keepgen != null) {
 if (keepgen.equalsIgnoreCase("true")) {

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java
URL: 
http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java?rev=405437&r1=405436&r2=405437&view=diff
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/JspC.java Tue May  9 07:05:23 
2006
@@ -159,6 +159,7 @@
 private boolean smapSuppressed = true;
 private boolean smapDumped = false;
 private boolean caching = true;
+private boolean ignoreAnnotations = false;
 private Map cache = new HashMap();
 
 private String compiler = null;
@@ -588,6 +589,20 @@
  */
 public void setCompilerSourceVM(String vm) {
 compilerSourceVM = vm;
+}
+
+/**
+ * Should annotations on tags be ignored?
+ */
+public boolean getIgnoreAnnotations() {
+return ignoreAnnotations;
+}
+
+/**
+ * Should annotations on tags be ignored?
+ */
+public void setIgnoreAnnotations(boolean ignoreAnnotations) {
+this.ignoreAnnotations = ignoreAnnotations;
 }
 
 public TldLocationsCache getTldLocationsCache() {

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/Options.java
URL: 
http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/org/apache/jasper/Options.java?rev=405437&r1=405436&r2=405437&view=diff
==
--- tomcat/tc6.0.x/trunk/java/org/apache/jasper/Options.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/jasper/Options.java Tue May  9 
07:05:23 2006
@@ -92,6 +92,11 @@
 public boolean getTrimSpaces();
 
 /**
+ * Should annotations on tags be ignored?
+ */
+public boolean getIgnoreAnnotations();
+
+/**
  * Class ID for use in the plugin tag when the browser is IE. 
  */
 public String getIeClassId();

Modified: tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java
URL: 
http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Generator.java?rev=405437&r1=405436&r2=405437&view=diff
==
--- 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 Tue May 
 9 07:05:23 2006
@@ -2143,9 +2143,11 @@
 out.print("new ");
 out.print(tagHandlerClassName);
 out.println("();");
-
out.printin("org.apache.jasper.runtime.A

Fwd: NPE running Embedded Tomcat 5.5.17

2006-05-09 Thread J T Hsiao

-- Forwarded message --
From: J T Hsiao <[EMAIL PROTECTED]>
Date: May 9, 2006 2:46 PM
Subject: NPE running Embedded Tomcat 5.5.17
To: dev@tomcat.apache.org

Hi,

I ran into a NPE when I tried to run Embedded Tomcat 5.5.17 with
the ant build.  I looked into RealmBase.java at 1329 and found the following
code; the NPE happens because the container is null.

This problem seems to be an Embedded Tomcat specific problem (or the ant
script) as I do not see this problem with regular Tomcat.
Should container be created before we hit this point?  Any one has ideas
before I investigate further?

Thanks,
Eric

---

 public void init() {
  this.containerLog = container.getLogger();
 if( initialized && container != null ) return;

 initialized=true;
 if( container== null ) {
 ObjectName parent=null;
   // Register with the parent
 try {
   if( host == null ) {
 // global
 parent=new ObjectName(domain +":type=Engine");
 } else if( path==null ) {
 parent=new ObjectName(domain +
 ":type=Host,host=3D3D" + host);
 } else {
 parent=3D3Dnew ObjectName(domain
+":j2eeType=3D3DWebModule,name=3D3D//" +
   host + path);
 }
 if( mserver.isRegistered(parent ))  {
 if(log.isDebugEnabled())
 log.debug("Register with " + parent);
 mserver.setAttribute(parent, new Attribute("realm",
this));
 }
 } catch (Exception e) {
 log.error ("Parent not available yet: " + parent);
 }


---=
=3D
---=
=3D
---=
=3D
---

uildfile: build.xml

init:

jmx-console-ri:

jmx-console-mx4j:

jmx-console:

run:
[jmx-service] May 9, 2006 11:29:32 AM
org.apache.commons.modeler.ant.MLETTask execute
[jmx-service] INFO: Setting attribute Catalina:type=3D3DServer port
[jmx-service] May 9, 2006 11:29:33 AM
org.apache.commons.modeler.ant.MLETTask execute
[jmx-service] INFO: Setting attribute Catalina:type=3D3DService name
[jmx-service] May 9, 2006 11:29:33 AM
org.apache.commons.modeler.ant.MLETTask execute
[jmx-service] INFO: Setting attribute Catalina:type=3D3DEngine name
[jmx-service] May 9, 2006 11:29:33 AM
org.apache.commons.modeler.ant.MLETTask execute
[jmx-service] INFO: Setting attribute Catalina:type=3D3DEngine baseDir
[jmx-service] May 9, 2006 11:29:33 AM
org.apache.commons.modeler.ant.MLETTask execute
[jmx-service] INFO: Setting attribute Catalina:type=3D3DEngine defaultHost
[jmx-service] May 9, 2006 11:29:33 AM
org.apache.commons.modeler.ant.MLETTask execute
[jmx-service] INFO: Setting attribute Catalina:type=3D3DRealm pathname
[jmx-service] May 9, 2006 11:29:33 AM
org.apache.commons.modeler.ant.MLETTask execute
[jmx-service] INFO: Setting attribute Catalina:type=3D3DConnector,port=3D3D=
9080=3D
port
[jmx-service] May 9, 2006 11:29:33 AM
org.apache.commons.modeler.ant.MLETTask execute
[jmx-service] INFO: Setting attribute Catalina:type=3D3DHost,host=3D3Dlocal=
host=3D
name
[jmx-service] May 9, 2006 11:29:33 AM
org.apache.commons.modeler.ant.MLETTask execute
[jmx-service] INFO: Setting attribute Catalina:type=3D3DHost,host=3D3Dlocal=
host
appBase
[jmx-service] May 9, 2006 11:29:33 AM
org.apache.commons.modeler.BaseModelMBean invoke
[jmx-service] SEVERE: Exception invoking method init
[jmx-service] java.lang.NullPointerException
[jmx-service] at org.apache.catalina.realm.RealmBase.init(RealmBase.jav=
=3D
- Show quoted text -
a
- Show quoted text -
:1329)
[jmx-service] at jrockit.reflect.VirtualNativeMethodInvoker.invoke (
Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
[jmx-service] at java.lang.reflect.Method.invoke(Ljava.lang.Object;[
Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
[jmx-service] at org.apache.commons.modeler.BaseModelMBean.invoke(
BaseModelMBean.java:503)
[jmx-service] at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(
DynamicMetaDataImpl.java:213)
[jmx-service] at com.sun.jmx.mbeanserver.MetaDataImpl.invoke (
MetaDataImpl.java:220)
[jmx-service] at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(
DefaultMBeanServerInterceptor.java:815)
[jmx-service] at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke (
JmxMBeanServer.java:784)
[jmx-service] at org.apache.commons.modeler.Registry.invoke(
Registry.java:397)
[jmx-service] at org.apache.commons.modeler.ant.ServiceTask.execute(
ServiceTask.java:123)
[jmx-service] at org.apache.tools.ant.UnknownElement.execute(
UnknownElement.java:275)
[jmx-service] at org.apache.tools.ant.Task.perform(Task.java:364)
[jmx-service] at org.apache.tools.ant.Target.e

svn commit: r405573 - in /tomcat/container/tc5.5.x/modules/groupcom: VERSION src/share/org/apache/catalina/tribes/ByteMessage.java src/share/org/apache/catalina/tribes/Member.java src/share/org/apache

2006-05-09 Thread fhanik
Author: fhanik
Date: Tue May  9 17:32:11 2006
New Revision: 405573

URL: http://svn.apache.org/viewcvs?rev=405573&view=rev
Log:
Removed getMemberProperties, the payload makes this obsolete

Modified:
tomcat/container/tc5.5.x/modules/groupcom/VERSION

tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/ByteMessage.java

tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/Member.java

tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java

Modified: tomcat/container/tc5.5.x/modules/groupcom/VERSION
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/VERSION?rev=405573&r1=405572&r2=405573&view=diff
==
--- tomcat/container/tc5.5.x/modules/groupcom/VERSION (original)
+++ tomcat/container/tc5.5.x/modules/groupcom/VERSION Tue May  9 17:32:11 2006
@@ -1,3 +1,5 @@
+0.9.2.2
+  - removed getMemberProperties from the membership interface
 0.9.2.1
  - remove domain from membership
  - documentation updates

Modified: 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/ByteMessage.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/ByteMessage.java?rev=405573&r1=405572&r2=405573&view=diff
==
--- 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/ByteMessage.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/ByteMessage.java
 Tue May  9 17:32:11 2006
@@ -45,6 +45,7 @@
  */
 private byte[] message;
 
+
 /**
  * Creates an empty byte message
  * Constructor also for deserialization

Modified: 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/Member.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/Member.java?rev=405573&r1=405572&r2=405573&view=diff
==
--- 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/Member.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/Member.java
 Tue May  9 17:32:11 2006
@@ -39,12 +39,6 @@
 public static final byte[] SHUTDOWN_PAYLOAD = new byte[] {66, 65, 66, 89, 
45, 65, 76, 69, 88};
 
 /**
- * Return implementation specific properties about this cluster node.
- * @return a hashmap of specific properties, implementation specific
- */
-public java.util.HashMap getMemberProperties();
-
-/**
  * Returns the name of this node, should be unique within the group.
  */
 public String getName();

Modified: 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java?rev=405573&r1=405572&r2=405573&view=diff
==
--- 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/MemberImpl.java
 Tue May  9 17:32:11 2006
@@ -125,21 +125,6 @@
 }
 
 /**
- *
- * @return a Hashmap containing the following properties:
- * 1. tcpListenPort - the port this member listens to for messages - 
string
- * 2. tcpListenHost - the host address of this member - string
- * 3. memberName- the name of this member - string
- */
-public java.util.HashMap getMemberProperties() {
-java.util.HashMap map = new java.util.HashMap(2);
-map.put(MemberImpl.TCP_LISTEN_HOST,this.host);
-map.put(MemberImpl.TCP_LISTEN_PORT,String.valueOf(this.port));
-map.put(MemberImpl.MEMBER_NAME,getName());
-return map;
-}
-
-/**
  * Increment the message count.
  */
 protected void inc() {



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



StandardContext.init(), MapperListener.init()

2006-05-09 Thread Costin Manolache

Hi,

I'm trying to understand the 2 methods - is there any particular reason for
getting the info via JMX instead of just
calling the methods ? Would it be safe to use the direct calls ?

For example, in StandardContext we get 'configClass' attribute from the
parent - my understanding was that
parent of a SC is allways a Host, so getConfigClass() would work as well.
I'm trying to find out what (justified)
direct uses of JMX we have, in addition to the register/unregister and
notify that we do via modeler.



Costin


DO NOT REPLY [Bug 39540] New: - Connectors Documentation Suggestion

2006-05-09 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=39540

   Summary: Connectors Documentation Suggestion
   Product: Tomcat 5
   Version: 5.5.9
  Platform: Other
OS/Version: other
Status: NEW
  Severity: enhancement
  Priority: P5
 Component: Webapps:Documentation
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


As with the release of Apache 2.2.2 (on Windows as well), I suggest that
mod_ajp_proxy be included in the valid list of connectors. (and perhaps
deprecating the use of mod_jk on the newer versions)

It makes configuration of AJP13 support very easy on httpd:



ProxyRequests On
ProxyPass /tomcatmanual ajp://localhost:8009/tomcat-docs



-- 
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 39527] - add more HTTP Header info (e.g. RANGE) as request attributes

2006-05-09 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=39527


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2006-05-10 04:49 ---
thx that even fixed it for .swt files.

-- 
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]