tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Mack <cm...@spcie.de>
Subject RE: Invalid escape character?
Date Fri, 24 Mar 2000 12:00:55 GMT
Hi Darryl

I don't know your JDBC-driver.
But your JDBC URL doesn't look right.
Normally you have
"jdbc:<driverSpecificString>://<host>:<port>/<DBName>?parameter=xxx&para2=yy
yy"

In your JDBC URL is no "://host:port" part.
The parser seems to use "inetdae:MANTRA?database=pubs" as
<driverSpecificString>.

So you should check your JDBC URL syntax.

Tschau
Christian

> -----Original Message-----
> From: Darryl Stoflet [mailto:dstoflet@calweb.com]
> Sent: Friday, March 24, 2000 4:43 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Invalid escape character?
> 
> 
> Resending this cause I didn't get a response the 1st time. 
> 
>        Running Tomcat 3.1 built from source today. The following jsp
> fragment:
> 
> <jsp:setProperty name="dbbean" property="url" 
> value="jdbc:inetdae:MANTRA?database=pubs" />
> 
> is converted to:
> 
> JspRuntimeLibrary.introspecthelper(pageContext.findAttribute("
dbbean"),"url","jdbc:inetdae:MANTRA\?database=pubs",null,null, false);
> 
> during the JSP compilation process. Notice that the '?' is escaped 
> with a singe backslash. This then fails during the compile do to 
> the invalid escape char. The error is below. What can I do so to 
> use characters like ? and * within the value attribute? Or is
> this a bug?
> 
> Has anyone else enountered this? Any help would be appreciated.
> 
> 
> 
> Internal Servlet Error:
> 
> org.apache.jasper.JasperException: Unable to compile class for
> JSPwork\localhost_8080%2Fexamples\_0002fAuthorList_0002ejspAut
> horList_jsp_6.java:95:
> Invalid escape character.
>                 
> JspRuntimeLibrary.introspecthelper(pageContext.findAttribute("
> dbbean"),
> "url","jdbc:inetdae:MANTRA\?database=pubs",null,null, false);
> 
> ^
> 1 error
> 
>         at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:240)
>         at 
> org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:412)
>         at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspServlet.java:147)
>         at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> (JspServlet.java:159)
>         at 
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
> .java:259)
>         at 
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:367)
>         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>         at 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:390)
>         at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:529)
>         at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpConnectionHandler.java:146)
>         at 
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:334)
>         at java.lang.Thread.run(Thread.java:479)
> 
> 
> -- 
> Darryl Stoflet
> 
> --------------------------------------------------------------
> ------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
> 

Mime
View raw message