Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: Oracle Type 4 Driver

Schwartz, David (CHR)

2003-06-04

Replies:

here's my web.xml...

<web-app>
 <servlet>
   <servlet-name>HelloWorld</servlet-name>
   <servlet-class>HelloWorld</servlet-class>
 </servlet>

 <servlet-mapping>
   <servlet-name>HelloWorld</servlet-name>
   <url-pattern>/HelloWorld</url-pattern>
 </servlet-mapping>
 
 <taglib>
   <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
   <taglib-location>/WEB-INF/c.tld</taglib-location>
 </taglib>

 <taglib>
   <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
   <taglib-location>/WEB-INF/sql.tld</taglib-location>
 </taglib>

</web-app>



here's my index.jsp...

<!doctype html public "-//w3c//dtd html 4.0 transitional//en"
"http://www.w3.org/TR/REC-html40/strict.dtd">

<%@(protected)" %>

<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>jsp test<%= application.getServerInfo() %></title>
 

<body>

<!-- Body -->
<table border = "1" >
 <tr><td align="left" valign="top" >JSP test with TomCat in the
myfirst folder structure.<br>
     <p class="code">Test class code tag.
   </td>
 </tr> </td>

  </tr>
</table>

</body>
</html>


This line....

<%@(protected)" %>

gives me this error....


type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
  [javac] Since fork is true, ignoring compiler setting.
  [javac] Compiling 1 source file
  [javac] Since fork is true, ignoring compiler setting.
  [javac] C:\tomcat\work\Standalone\localhost\myfirst\index_jsp.java:42:
illegal character: \64
  [javac] @taglib prefix="c" uri="http://java.sun.com/jstl/core"
  [javac] ^
  [javac] 1 error



 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
 at
org.apache.jasper.compiler.ErrorDispatcher.javacError (ErrorDispatcher.java:2
93)
 at
org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:353)
 at org.apache.jasper.compiler.Compiler.compile (Compiler.java:370)
 at
org.apache.jasper.JspCompilationContext.compile (JspCompilationContext.java:4
73)
 at
org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:1
90)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:480)
 at
org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:480)
 at
org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:480)
 at
org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:480)
 at
org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:995)
 at
org.apache.coyote.tomcat4.CoyoteAdapter.service (CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:594)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
 at java.lang.Thread.run (Thread.java:536)



-----Original Message-----
From: Jason Bainbridge [mailto:jason@(protected)]
Sent: Thursday, May 29, 2003 2:56 PM
To: Tomcat Users List
Subject: Re: Oracle Type 4 Driver


On Fri, 30 May 2003 02:47, Schwartz, David (CHR) wrote:
> David,
> i have it as the last element, after all others.
> Any other ideas? I'd love to get it up!

Are they within the webapp tag, so before the closing </webapp> ?

Regards,
--
Jason Bainbridge
KDE Web Team - http://kde.org
webmaster@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.