DO NOT REPLY [Bug 40133] New: - udnefined context name results in NullPointerException

2006-07-28 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=40133

   Summary: udnefined context name results in NullPointerException
   Product: Tomcat 5
   Version: 5.5.17
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P4
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


If Context attribute name is not set, Cataline won't start and crashes with:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3801)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3985)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
... 6 more

I'm not sure whether this check should be in StandardContext.java
resourcesStart() or whether the check should happen before resourcesStart() is
called.

-- 
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: svn commit: r426355 - /tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/connector/CoyoteAdapter.java

2006-07-28 Thread Remy Maucherat

[EMAIL PROTECTED] wrote:

Author: markt
Date: Thu Jul 27 18:32:57 2006
New Revision: 426355

URL: http://svn.apache.org/viewvc?rev=426355&view=rev
Log:
Remove code to complete the back port in the previous commit.


Ooops.

Rémy

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



How to run EJB in Tomcat itself ?

2006-07-28 Thread chanchal bera








Hi All,

I came to know that Tomcat 5.5.17 itself is now
supporting to run EJB, but not sure! No such proper information is available in
the Tomcat Site. If possible, can any body give information about how to run
EJB in Tomcat itself, not integrating with any EJB container?

 

 



 

Thanks & Regards,

 








Chanchal Bera | Programmer,
J2EE/rCash

tel
91.20.25609000 x 238 | fax 91.20.25651914 | mobile +919860248984
Yardi Software India Pvt Ltd. | Second Floor, Sigma House, Senapati Bapat Road | Pune,
MS 411016, India 
[EMAIL PROTECTED] | www.yardi.com

United States | Canada | Europe
| Asia-Pacific

NOTICE: This email message, including any attachments, may
contain information that is confidential and/or proprietary. If you are not an
intended recipient, please be advised that any review, use, reproduction or
distribution of this message is prohibited. If you have received this message
in error, please completely destroy all electronic and hard copies, and contact
the sender at or [EMAIL PROTECTED].



 








DO NOT REPLY [Bug 40135] New: - error-page and exception-type is not working properly

2006-07-28 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=40135

   Summary: error-page and exception-type is not working properly
   Product: Tomcat 5
   Version: 5.5.17
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Servlet & JSP API
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


1. Create a new web app.

2. Register a error-page in a 2.4 web.xml:

java.sql.SQLException
/error.jsp


3. Create error.jsp:
<%@ page isErrorPage="true" %>

error


4. Create a page that generates an error:
<%
java.sql.DriverManager.getConnection("");
%>

5. Start the server

6. You get the default error page instead of error.jsp

Misc: it seems like tomcat is not unwrapping ServletException's coming from the
jsp (and maybe servlets) as it supposed 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]



svn commit: r426537 - in /tomcat/tc6.0.x/trunk: ./ java/javax/el/ java/javax/servlet/jsp/ java/javax/servlet/jsp/el/ java/javax/servlet/jsp/tagext/ java/org/apache/jasper/compiler/ java/org/apache/jas

2006-07-28 Thread remm
Author: remm
Date: Fri Jul 28 06:57:53 2006
New Revision: 426537

URL: http://svn.apache.org/viewvc?rev=426537&view=rev
Log:
- JSP 2.1 API fixes.

Modified:
tomcat/tc6.0.x/trunk/   (props changed)
tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java
tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java
tomcat/tc6.0.x/trunk/java/javax/el/CompositeELResolver.java
tomcat/tc6.0.x/trunk/java/javax/el/ELContextListener.java
tomcat/tc6.0.x/trunk/java/javax/el/ELResolver.java
tomcat/tc6.0.x/trunk/java/javax/el/ListELResolver.java
tomcat/tc6.0.x/trunk/java/javax/el/MapELResolver.java
tomcat/tc6.0.x/trunk/java/javax/servlet/jsp/JspContext.java
tomcat/tc6.0.x/trunk/java/javax/servlet/jsp/el/ImplicitObjectELResolver.java

tomcat/tc6.0.x/trunk/java/javax/servlet/jsp/el/ScopedAttributeELResolver.java
tomcat/tc6.0.x/trunk/java/javax/servlet/jsp/tagext/SimpleTagSupport.java
tomcat/tc6.0.x/trunk/java/javax/servlet/jsp/tagext/TagData.java
tomcat/tc6.0.x/trunk/java/javax/servlet/jsp/tagext/TagLibraryInfo.java
tomcat/tc6.0.x/trunk/java/javax/servlet/jsp/tagext/TagLibraryValidator.java
tomcat/tc6.0.x/trunk/java/javax/servlet/jsp/tagext/TagSupport.java

tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/ImplicitTagLibraryInfo.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/Parser.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/runtime/JspContextWrapper.java
tomcat/tc6.0.x/trunk/java/org/apache/jasper/runtime/PageContextImpl.java

Propchange: tomcat/tc6.0.x/trunk/
--
--- svn:ignore (added)
+++ svn:ignore Fri Jul 28 06:57:53 2006
@@ -0,0 +1,2 @@
+output
+.settings

Modified: tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java?rev=426537&r1=426536&r2=426537&view=diff
==
--- tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java (original)
+++ tomcat/tc6.0.x/trunk/java/javax/el/ArrayELResolver.java Fri Jul 28 06:57:53 
2006
@@ -103,7 +103,7 @@
return this.readOnly;
}
 
-   public Iterator getFeatureDescriptors(ELContext context, Object base) {
+   public Iterator getFeatureDescriptors(ELContext 
context, Object base) {
if (base != null && base.getClass().isArray()) {
FeatureDescriptor[] descs = new 
FeatureDescriptor[Array.getLength(base)];
for (int i = 0; i < descs.length; i++) {

Modified: tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java?rev=426537&r1=426536&r2=426537&view=diff
==
--- tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java (original)
+++ tomcat/tc6.0.x/trunk/java/javax/el/BeanELResolver.java Fri Jul 28 06:57:53 
2006
@@ -17,6 +17,7 @@
 package javax.el;
 
 import java.beans.BeanInfo;
+import java.beans.FeatureDescriptor;
 import java.beans.IntrospectionException;
 import java.beans.Introspector;
 import java.beans.PropertyDescriptor;
@@ -129,7 +130,7 @@
|| this.property(context, base, 
property).isReadOnly();
}
 
-   public Iterator getFeatureDescriptors(ELContext context, Object base) {
+   public Iterator getFeatureDescriptors(ELContext 
context, Object base) {
if (context == null) {
throw new NullPointerException();
}
@@ -145,7 +146,7 @@
pds[i].setValue(RESOLVABLE_AT_DESIGN_TIME, 
Boolean.TRUE);
pds[i].setValue(TYPE, pds[i].getPropertyType());
}
-   return Arrays.asList(pds).iterator();
+   return Arrays.asList((FeatureDescriptor[]) 
pds).iterator();
} catch (IntrospectionException e) {
//
}
@@ -165,7 +166,7 @@
return null;
}
 
-   private final static class BeanProperties {
+   protected final static class BeanProperties {
private final Map properties;
 
private final Class type;
@@ -200,7 +201,7 @@
 }
}
 
-   private final static class BeanProperty {
+protected final static class BeanProperty {
private final Class type;
 
private final Class owner;

Modified: tomcat/tc6.0.x/trunk/java/javax/el/CompositeELResolver.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/javax/el/CompositeELResolver.java?rev=426537&r1=426536&r2=426537&view=dif

Re: How to run EJB in Tomcat itself ?

2006-07-28 Thread Yoav Shapira

Chanchal,
No, Tomcat itself does not support EJBs.  Please RTFM at
http://tomcat.apache.org/faq/misc.html#ejb.

Yoav

On 7/28/06, chanchal bera <[EMAIL PROTECTED]> wrote:






Hi All,

I came to know that Tomcat 5.5.17 itself is now supporting to run EJB, but not 
sure! No such proper information is available in the Tomcat Site. If possible, 
can any body give information about how to run EJB in Tomcat itself, not 
integrating with any EJB container?








Thanks & Regards,


  





 Chanchal Bera | Programmer, J2EE/rCash

 tel 91.20.25609000 x 238 | fax 91.20.25651914 | mobile +919860248984
 Yardi Software India Pvt Ltd. | Second Floor, Sigma House, Senapati Bapat Road 
| Pune, MS 411016, India
 [EMAIL PROTECTED] | www.yardi.com

 United States | Canada | Europe | Asia-Pacific

NOTICE: This email message, including any attachments, may contain information 
that is confidential and/or proprietary. If you are not an intended recipient, 
please be advised that any review, use, reproduction or distribution of this 
message is prohibited. If you have received this message in error, please 
completely destroy all electronic and hard copies, and contact the sender at or 
[EMAIL PROTECTED]




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



DO NOT REPLY [Bug 39817] - Include File Failure for Parent|Top Relative References

2006-07-28 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=39817





--- Additional Comments From [EMAIL PROTECTED]  2006-07-28 15:47 ---
(In reply to comment #7)
> *** Bug 40130 has been marked as a duplicate of this bug. ***

Can you please expand on how to alter the Tomcat configuration, as the online 
docs do not explain this?  Changing all of my "include file=" is not an 
option.  I find it strange how a sub-release of Tomcat (5.5.12 to 5.5.17) 
requires not only changes to Tomcat setup, but also changes to my code.

My setup is as follows:

server.xml


ROOT.xml (under Catalina/concept folder)


Code structure

d:\webapps\Concept\catalog (contains jsps)
d:\webapps\Concept\core (contains jsps)
d:\webapps\Concept\WEB-INF (contains compiled classes/libs)

/core/*.jsp are included properly
/catalog/*.jsp are NOT included properly

What is the difference between those 2 folders?

Tomcat Manager shows a "context" for each JSP folder (catalog, core, etc).  
Why is this changed from previous versions?



-- 
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 30762] - destroy method in servlet called before contextDestroyed method in ServletContextListener class.

2006-07-28 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=30762


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |
Version|5.0.27  |5.5.17




--- Additional Comments From [EMAIL PROTECTED]  2006-07-28 17:54 ---
This bug seem to have revived in Tomcat 5.5.16 and currently present in Tomcat
5.5.17.

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