Problems with JSP and body background tag
Hey all, I've finally gotten apache 2 and tomcat 5 up and running together (with mod_jk) on linux. I've made a simple jsp page before and when the two weren't linked tomcat served it up nicely with the body background=url tag working just fine. Now that tomcat is linked to apache the background attrib doesn't function anymore; bgcolor etc works fine. Any idea what might be causing this? Thanks in advance. Raul _ Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with JSP and body background tag
Are you using a relative URL for the image? Try an absolute URL; if that works, then the base path isn't what you think it is. Use an html base element to set it appropriately. If an absolute URL also doesn't work, try loading that image URL directly into the browser. If that works, then you've got a real mystery; if it doesn't, then either the image isn't where you think it is, or the mapping from URLs to directories isn't what you think it is. Investigate accordingly. -Original Message- From: Raul Dookhoo [mailto:[EMAIL PROTECTED] Sent: Thu 9/18/2003 10:33 PM To: [EMAIL PROTECTED] Cc: Subject: Problems with JSP and body background tag Hey all, I've finally gotten apache 2 and tomcat 5 up and running together (with mod_jk) on linux. I've made a simple jsp page before and when the two weren't linked tomcat served it up nicely with the body background=url tag working just fine. Now that tomcat is linked to apache the background attrib doesn't function anymore; bgcolor etc works fine. Any idea what might be causing this? Thanks in advance. Raul _ Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems runing jsp examples which come with Tomcat3.2.2
Dear all, I have installed Tomcat3.2.2 on a Solaris 8 system with jdk1.3. I can run all the servlet examples, but I get java.lang.NoSuchMethodError exception when I try to run any of the jsp examples. The followings is what I get when I try to run 'date.jsp'. I would appreciate any suggestions that you may have. When I start Tomcat it tells me that the class path is: Using classpath: /usr/local/jakarta-tomcat-3.2.2/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.2/lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.2/lib/ jaxp.jar:/usr/local/jakarta-tomcat-3.2.2/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.2/lib/servlet.jar:/usr/local/jakarta-tomc at-3.2.2/lib/test:/usr/local/jakarta-tomcat-3.2.2/lib/webserver.jar:/usr/local/jdk1.3/lib/tools.jar:/usr/local/jdk1.3 All the paths are valid. The exception I get when trying to run date.jsp: 2001-06-22 05:39:40 - Ctx( /examples ): JasperException: R( /examples + /jsp/dates/date.jsp + null) Cannot read file: /jsp/dates/date.jsp 2001-06-22 05:39:40 - Ctx( /examples ): Exception in: R( /examples + /jsp/dates/date.jsp + null) - java.lang.NoSuchMethodError at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1160) at org.apache.tomcat.core.Handler.service(Handler.java:312) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:479) --- The corresponding messages in the jasper.log is: 2001-06-22 05:39:40 - JspEngine -- /jsp/dates/date.jsp 2001-06-22 05:39:40 -ServletPath: /jsp/dates/date.jsp 2001-06-22 05:39:40 - PathInfo: null 2001-06-22 05:39:40 - RealPath: /usr/local/jakarta-tomcat-3.2.2/webapps/examples/jsp/dates/date.jsp 2001-06-22 05:39:40 - RequestURI: /examples/jsp/dates/date.jsp 2001-06-22 05:39:40 -QueryString: null 2001-06-22 05:39:40 - Request Params: 2001-06-22 05:39:40 - Classpath according to the Servlet Engine is: /usr/local/jakarta-tomcat-3.2.2/webapps/examples/WEB-INF /classes 2001-06-22 05:39:40 - JspReader: Exception parsing file /jsp/dates/date.jsp - java.lang.NoSuchMethodError at org.apache.jasper.JspEngineContext.getResourceAsStream(JspEngineContext.java:348) at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:211) at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java:164) at org.apache.jasper.compiler.JspReader.init(JspReader.java:282) at org.apache.jasper.compiler.JspReader.createJspReader(JspReader.java:288) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:159) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:479) - Thanks Ali
problems with jsp
Hi, I've just installed tomcat 3.2.1 with apache 1.3.12, windows 98. I checked my installation with the examples supplied with tomcat. Concerning servlets, it works but when I try with a .jsp I always get the following message in the browser: Error: 500 Location: /test/realPath.jspInternal Servlet Error:org.apache.jasper.JasperException: Unable to compile class for JSPjsp-javac: invalid flag: -encoding use: jsp-javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-d dir] file.java... at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484)And in the DOS window of tomcat I get:2001-04-10 06:07:00 - Ctx( /test ): JasperException: R( /test + /realPath.jsp +null) Unable to compile class for JSPjsp-javac: invalid flag: -encodinguse: jsp-javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-d dir] file.java...I can't understand this message because -encoding is a correct option of javacCould someone help meMany thanks,Pascal
Out of Stack Space Problems Compiling JSP
Hey, We're running into a problem here where our JSP doesn't compile because of a stack space issue (see below). Any ideas what the underlying problem might be and how to fix it? Thanks, DM org.apache.jasper.JasperException: Unable to compile class for JSPThe compiler has run out of stack space. Consider using the "- J-oss" command line option to increase the memory allocated for the Java stack. at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException. (ServletException.java:107) at org.apache.jasper.JasperException. (JasperException.java:73) at org.apache.jasper.compiler.Compiler.compile(Compiled Code) at org.apache.jasper.runtime.JspServlet.loadJSP (JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecess ary(JspServlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service (JspServlet.java:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile (JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest (Compiled Code) at org.apache.tomcat.core.RequestDispatcherImpl.forward (RequestDispatcherImpl.java:163) at com.xxx.framework.HttpEvent.forward(HttpEvent.java:63) at com.xxx.listeners.StaticListener.executeEvent (StaticListener.java:82) at com.xxx.framework.HttpEventSwitch.executeEvent (HttpEventSwitch.java:10) at com.xxx.framework.xxx.doService(xxx.java:96) at com.xxx.framework.xxx.doGet(xxx.java:39) at javax.servlet.http.HttpServlet.service(Compiled Code) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest (Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest (ServletWrapper.java:597) at org.apache.tomcat.servlets.InvokerServlet.service (InvokerServlet.java:257) at javax.servlet.http.HttpServlet.service(Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest (Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnect ion(Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run (Compiled Code) at java.lang.Thread.run(Compiled Code)