Stephen,

I'm forwarding your patch to Jetty-Discuss for discussion.

We have a problem here as Jasper is an independent OpenSource project. We have a copy of the source in JBoss cvs to aid with debugging etc, but the intention is to try very hard not to delta from the main project, otherwise management of it becomes much more complicated.

Greg (Jetty maintainer) may have some input, but it may be that you need to submit your patch direct to the Jasper community. Jetty will then refresh from their cvs and JBoss from Jetty's, bringing us all back into sync.

Sorry it can't be simpler.....
 

Greg, would you comment, and if necessary, put Stephen in touch with the relevant guy on Jasper....
 

Cheers,
 
 
 

Jules
 

[EMAIL PROTECTED] wrote:

Patches item #537795, was opened at 2002-04-01 11:47
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=537795&group_id=22866

Category: JBossServer
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen Davidson (northgorky)
Assigned to: Nobody/Anonymous (nobody)
Summary: [JETTY]ClassNaming/Mapping Issue

Initial Comment:
When JSPC is run from ant, jsp files in the context
root have a '.' prepended to their name.  This results
in the classloader looking for files like
".siteMain.class", which does not exist.

Fix:
retrieving revision 1.6
diff -u -r1.6 JspC.java
--- src/main/org/apache/jasper/JspC.java        11 Mar
2002 05:28:56 -0000      1.6
+++ src/main/org/apache/jasper/JspC.java        1 Apr
2002 17:43:24 -0000
@@ -418,7 +418,11 @@

servletout.write("\n\t<servlet>\n\t\t<servlet-name>");
                 servletout.write(thisServletName);

servletout.write("</servlet-name>\n\t\t<servlet-class>");
-                servletout.write(thisServletName);
+                //HACK: Must trim the leading ".","*",
whatever, from the classname. SPD
+                if
(Character.isLetter(thisServletName.charAt(0)) ||
(thisServletName.charAt(0) == '/') )
+                    servletout.write(thisServletName);
+                else
+
servletout.write(thisServletName.substring(1));

servletout.write("</servlet-class>\n\t</servlet>\n");
 
 

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=537795&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to