You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "x. kevin zhu" <zx...@yahoo.com> on 2000/02/10 22:54:16 UTC

jsp example colors broken on today's CVS

My configuration:

NT4 SP6a,
JDK 1.2.2,
Netscape 4.6,
Update CVS in 14:00 GMT-5

JSP example, colors, both jaspar and apache 1.3.11,
The error message:

Error: 500

Internal Servlet Error:

org.apache.jasper.compiler.ParseException:
D:\jsp\colors\colrs.jsp(55,3) Nothing after the :
        at
org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:745)
        at
org.apache.jasper.compiler.Parser.parse(Parser.java:1027)
        at
org.apache.jasper.compiler.Parser.parse(Parser.java:1002)
        at
org.apache.jasper.compiler.Parser.parse(Parser.java:998)
        at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:173)
        at
org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:144)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:156)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:263)
        at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:368)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:521)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:342)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:376)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:147)
        at
org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:323)
        at java.lang.Thread.run(Thread.java:479)
===================================================

Re: jsp example colors broken on today's CVS

Posted by Danno Ferrin <sh...@earthlink.net>.
Ok, we just need to allow an unregistered prefix to not break things. 
The parser is trying to look up the taglib with a prefix http and the
tag name, but before it goes and looks it checks to make sure that the
tag is not there.  WE need to move the code to check the action name
after the tag prefix is a known registered value.

good catch.

--Danno


"x. kevin zhu" wrote:
> 
> My configuration:
> 
> NT4 SP6a,
> JDK 1.2.2,
> Netscape 4.6,
> Update CVS in 14:00 GMT-5
> 
> JSP example, colors, both jaspar and apache 1.3.11,
> The error message:
> 
> Error: 500
> 
> Internal Servlet Error:
> 
> org.apache.jasper.compiler.ParseException:
> D:\jsp\colors\colrs.jsp(55,3) Nothing after the :
>         at
> org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:745)
>         at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1027)
>         at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1002)
>         at
> org.apache.jasper.compiler.Parser.parse(Parser.java:998)
>         at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:173)
>         at
> org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
>         at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:144)
>         at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:156)
>         at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:263)
>         at
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:368)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>         at
> org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:521)
>         at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:342)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:376)
>         at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:147)
>         at
> org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:323)
>         at java.lang.Thread.run(Thread.java:479)
> ===================================================
> 
> >From the source, colrs.jsp (56):
>  * <http://www.apache.org/>.
> 
> just delete the first '<', everything works again ;-)
> 
> Regards,
> 
> kevin
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

Does tomcat work with SSL?

Posted by John Pettit <jp...@logictier.com>.
Sorry for the basic question, but I am trying to get tomcat (3.1) running
with apche 1.3.9 with SSL. If I go straight to tomcat at
http://myserver:8080/blah, I receive header information. If I go to
https://myserver/blah, and print out the values of the headers ... there
aren't any.

The jsp file I'm using is below. It successfully sets a cookie, but all all
the request headers are always empty:
<%@ page import="javax.servlet.http.*, java.util.*" %>
<%
        Cookie c1 = new Cookie("xzzMyCookie2" , "baz76");
        c1.setMaxAge(1900);
        c1.setPath("/");
        c1.setSecure(true);
        response.addCookie(c1);
%>
<html>
<body>
Cookies in:<%= request.getHeader("cookie") %><br>
Cookies in:<%= request.getCookies() %><br>
Many cookies?<br>
<%
        Cookie[] cookies = request.getCookies();
        for (int i=0; i < cookies.length; i++)
        {
                out.write(cookies[i].getName());
        }
        out.write("<p>Now, the headers...<br>");
        for (Enumeration e=request.getHeaderNames(); e.hasMoreElements(); )
        {
                String theHeader = (String) e.nextElement();
                out.write(theHeader + "=" + request.getHeader(theHeader) +
"<br>");
        }
%>
Tried to set a cookie!
</body></html>



Thanks for any help.
John