RE: Unable to compile class for JSP
Server Env: Apache Tomcat 4.1.30 JVM 1.4.2_04-b05 Linux - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile class for JSP
Catalina.out error message: Error running /usr/java/j2sdk1.4.2_04/bin/javac compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeEx ternalCompile(DefaultCompilerAdapter.java:489) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExter nal.java:81) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:976) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:190) 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(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:492) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:242 2) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) 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.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82 8) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58 4) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:683) at java.lang.Thread.run(Thread.java:534) Caused by: java.io.IOException: java.io.IOException: Cannot allocate memory at java.lang.UNIXProcess.init(UNIXProcess.java:143) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute .java:836) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:479) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:490) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeEx ternalCompile(DefaultCompilerAdapter.java:486) ... 41 more ---
Re: Unable to compile class for JSP
On Thu, Sep 30, 2004 at 11:36:40AM +0300, A Leg wrote: : org.apache.jasper.JasperException: Unable to compile class for JSP : java.lang.SecurityException: class org.apache.tools.ant.taskdefs.optional.IContract's signer information does not match signer information of other classes in the same package Sounds like IContract is in a sealed JAR, and somewhere in the classpath there's another copy. Do you have duplicate JARs, between WEB-INF/lib and Tomcat's various lib dirs? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to compile class for JSP
Hi Probably because JWSDP 1.4 force me to use ant of them distrib which is 1.5xx and some others elements I use need 1.6.1 or more. So I have both releases install 1.6.1is in my classpath and jwsdp ant is set in the setenv.sh script. This must generate a conflict. I probably have to swictch to tomcat 5.028 which will enable me tu use ant1.6.1 for everything. (yes ?) I use only jsp and servlets. Do I need to download something more than Tomcat distrib ? Best regards Andre QM wrote: On Thu, Sep 30, 2004 at 11:36:40AM +0300, A Leg wrote: : org.apache.jasper.JasperException: Unable to compile class for JSP : java.lang.SecurityException: class org.apache.tools.ant.taskdefs.optional.IContract's signer information does not match signer information of other classes in the same package Sounds like IContract is in a sealed JAR, and somewhere in the classpath there's another copy. Do you have duplicate JARs, between WEB-INF/lib and Tomcat's various lib dirs? -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to compile class for JSP
QM, thanks for the response but I decided to start from scratch using some notes that I took down the last time I got this working. I've gotten a lot further this time but I'm having a small problem that I'm about to post to the list. Chris : Binary file webapps/examples/WEB-INF/classes/num/NumberGuessBean.class So far, so good. Next step: what are the perms on the class file, and all dirs leading up to it? Is everything accessible to the tomcat user? The short version of this test, substituting within the {}'s as needed: su - {tomcat user} -c file {path to class file} -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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]
Re: unable to compile class for JSP
: /usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.net/_/examples/jsp/num/numguess_jsp.java:7: : package num does not exist : import num.NumberGuessBean; Where is the class file NumberGuessBean, or the JAR file that contains it? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unable to compile class for JSP
[EMAIL PROTECTED]:~$ cd /usr/local/applications/tomcat-4.1.30 [EMAIL PROTECTED]:/usr/local/applications/tomcat-4.1.30$ grep -rn 'num.NumberGuessBean' * Binary file webapps/examples/WEB-INF/classes/num/NumberGuessBean.class matches webapps/examples/jsp/num/numguess.jsp:10:%@ page import = num.NumberGuessBean % webapps/examples/jsp/num/numguess.jsp:12:jsp:useBean id=numguess class=num.NumberGuessBean scope=session/ webapps/examples/jsp/num/numguess.txt:10:%@ page import = num.NumberGuessBean % webapps/examples/jsp/num/numguess.txt:12:jsp:useBean id=numguess class=num.NumberGuessBean scope=session/ [EMAIL PROTECTED]:/usr/local/applications/tomcat-4.1.30$ -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:06 PM To: Tomcat Users List Subject: Re: unable to compile class for JSP : /usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.n et/_/examples/jsp/num/numguess_jsp.java:7: : package num does not exist : import num.NumberGuessBean; Where is the class file NumberGuessBean, or the JAR file that contains it? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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]
RE: unable to compile class for JSP
sorry, I mean to add to that last email, speaking to Chris: This is where you *should* find them. ;) -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:06 PM To: Tomcat Users List Subject: Re: unable to compile class for JSP : /usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.n et/_/examples/jsp/num/numguess_jsp.java:7: : package num does not exist : import num.NumberGuessBean; Where is the class file NumberGuessBean, or the JAR file that contains it? -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to compile class for JSP
I don't really know anything about Java, I'm setting this up to get Citrix NFuse working, which I have done before in the past. This is basically a default installation of Tomcat, the only things I've changed are slight modifications to server.xml, and I created the conf/jk/workers.properties file. I also compiled a new mod_jk.so file and loaded it into Apache. I have a working installation of this on a different server if you want me to check anything on that to compare. That installation was done slightly different. Thanks, Chris : /usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.net/_/examples/jsp/num/numguess_jsp.java:7: : package num does not exist : import num.NumberGuessBean; Where is the class file NumberGuessBean, or the JAR file that contains it? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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]
RE: unable to compile class for JSP
Mike, I have the same exact output as you. Binary file webapps/examples/WEB-INF/classes/num/NumberGuessBean.class matches webapps/examples/jsp/num/numguess.jsp:10:%@ page import = num.NumberGuessBean % webapps/examples/jsp/num/numguess.jsp:12:jsp:useBean id=numguess class=num.NumberGuessBean scope=session/ webapps/examples/jsp/num/numguess.txt:10:%@ page import = num.NumberGuessBean % webapps/examples/jsp/num/numguess.txt:12:jsp:useBean id=numguess class=num.NumberGuessBean scope=session/ Chris [EMAIL PROTECTED]:~$ cd /usr/local/applications/tomcat-4.1.30 [EMAIL PROTECTED]:/usr/local/applications/tomcat-4.1.30$ grep -rn 'num.NumberGuessBean' * Binary file webapps/examples/WEB-INF/classes/num/NumberGuessBean.class matches webapps/examples/jsp/num/numguess.jsp:10:%@ page import = num.NumberGuessBean % webapps/examples/jsp/num/numguess.jsp:12:jsp:useBean id=numguess class=num.NumberGuessBean scope=session/ webapps/examples/jsp/num/numguess.txt:10:%@ page import = num.NumberGuessBean % webapps/examples/jsp/num/numguess.txt:12:jsp:useBean id=numguess class=num.NumberGuessBean scope=session/ [EMAIL PROTECTED]:/usr/local/applications/tomcat-4.1.30$ -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:06 PM To: Tomcat Users List Subject: Re: unable to compile class for JSP : /usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.n et/_/examples/jsp/num/numguess_jsp.java:7: : package num does not exist : import num.NumberGuessBean; Where is the class file NumberGuessBean, or the JAR file that contains it? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to compile class for JSP
On Wed, May 12, 2004 at 03:18:45PM -0400, Chris Purcell wrote: : Binary file webapps/examples/WEB-INF/classes/num/NumberGuessBean.class So far, so good. Next step: what are the perms on the class file, and all dirs leading up to it? Is everything accessible to the tomcat user? The short version of this test, substituting within the {}'s as needed: su - {tomcat user} -c file {path to class file} -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile class for JSP
Maybe you can provide a copy of the JSP? Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.com This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Linda Smith [mailto:[EMAIL PROTECTED] :: Sent: Sunday, April 04, 2004 10:08 PM :: To: [EMAIL PROTECTED] :: Subject: Unable to compile class for JSP :: :: :: I have included at the end of the message the :: exception I get when following the JSP page link :: from the Hello World example provided in the tomcat :: documentation. :: I get a very similar exception when trying to open one :: of my own jsp-s, although the project builds :: successfully.(using ant and ant install) :: Other jsp examples provided with tomcat seem to work :: fine. :: i'm using fedora core 1 (linux) and j2sdk1.4.2_02 :: I have copied tools.jar to :: $catalina_home/common/lib :: I have also restarted tomcat, i've tried different :: browsers, none of these solved the problem. :: :: What have I left out? :: :: Thanks for your time :: :: exception :: :: org.apache.jasper.JasperException: Unable to compile :: class for JSP :: :: org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 59) :: :: org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 91) :: :: org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) :: :: org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) :: :: javax.servlet.http.HttpServlet.service(HttpServlet.java:856) :: :: :: root cause :: :: java.io.FileNotFoundException: :: /home/ralu/jakarta-tomcat-5.0.19/work/Catalina/localhost/tomcat- :: docs/org/apache/jsp/appdev/sample/web/hello_jsp.java :: (No such file or directory) :: java.io.FileOutputStream.open(Native Method) :: :: java.io.FileOutputStream.init(FileOutputStream.java:179) :: :: java.io.FileOutputStream.init(FileOutputStream.java:70) :: :: org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223) :: :: org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) :: :: org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) :: :: org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 53) :: :: org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 91) :: :: org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) :: :: org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) :: :: javax.servlet.http.HttpServlet.service(HttpServlet.java:856) :: :: :: :: __ :: Do you Yahoo!? :: Yahoo! Small Business $15K Web Design Giveaway :: http://promotions.yahoo.com/design_giveaway/ :: :: - :: 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]
RE: Unable to compile class for JSP
note: using Tomcat 5.0.19 my files: Test.jsp htmlbody h2Welcome/H2 BR h1 FORM TYPE=POST ACTION=web_search.SServlet INPUT type=submit name=operation value=search /FORM /H1 /body/html and Search.jsp htmlhead titleSearch page/TITLE body h2Welcome/H2 BR h1 FORM TYPE=POST ACTION=web_server.SServlet INPUT size=30 name=searchString INPUT type=submit name=operation value=Search /FORM jsp:useBean id='agent' type='web_search.Results' scope='request' jsp:setProperty name='agent' property='sa' value='%= request.getParameter(search_agent)%' / jsp:setProperty name='agent' property='searchString' param='searchString' / /jsp:useBean jsp:setProperty name='agent' property='noResults' value='%= request.getParameter(no_results)%' / jsp:setProperty name='agent' property='searchResult' value='%= request.getParameter(search_result)%' / jsp:getProperty name='agent' property='searchResult' / /H1 /body/html the hello.jsp in $catalina_home/webapps/tomcat-docs/appdev/sample/web html head titleSample Application JSP Page/title /head body bgcolor=white table border=0 tr td align=center img src=images/tomcat.gif /td td h1Sample Application JSP Page/h1 This is the output of a JSP page that is part of the Hello, World application. It displays several useful values from the request we are currently processing. /td /tr /table table border=0 border=100% tr th align=rightContext Path:/th td align=left%= request.getContextPath() %/td /tr tr th align=rightPath Information:/th td align=left%= request.getPathInfo() %/td /tr tr th align=rightQuery String:/th td align=left%= request.getQueryString() %/td /tr tr th align=rightRequest Method:/th td align=left%= request.getMethod() %/td /tr tr th align=rightServlet Path:/th td align=left%= request.getServletPath() %/td /tr /table /body /html __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile class for JSP
You need import the bean and classes you intend to use in the JSP, this might solve the problem. Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.com This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Linda Smith [mailto:[EMAIL PROTECTED] :: Sent: Sunday, April 04, 2004 11:06 PM :: To: Tomcat Users List :: Subject: RE: Unable to compile class for JSP :: :: note: using Tomcat 5.0.19 :: :: my files: Test.jsp :: htmlbody :: h2Welcome/H2 :: BR :: h1 :: FORM TYPE=POST ACTION=web_search.SServlet :: INPUT type=submit name=operation value=search :: /FORM :: /H1 :: /body/html :: :: and Search.jsp :: htmlhead :: titleSearch page/TITLE :: body :: h2Welcome/H2 :: BR :: h1 :: FORM TYPE=POST ACTION=web_server.SServlet :: INPUT size=30 name=searchString :: INPUT type=submit name=operation value=Search :: /FORM :: jsp:useBean id='agent' type='web_search.Results' :: scope='request' :: jsp:setProperty name='agent' property='sa' value='%= :: request.getParameter(search_agent)%' / :: jsp:setProperty name='agent' property='searchString' :: param='searchString' / :: /jsp:useBean :: jsp:setProperty name='agent' property='noResults' :: value='%= request.getParameter(no_results)%' / :: jsp:setProperty name='agent' property='searchResult' :: value='%= request.getParameter(search_result)%' / :: jsp:getProperty name='agent' property='searchResult' :: / :: /H1 :: /body/html :: :: :: the hello.jsp in :: $catalina_home/webapps/tomcat-docs/appdev/sample/web :: html :: head :: titleSample Application JSP Page/title :: /head :: body bgcolor=white :: :: table border=0 :: tr :: td align=center :: img src=images/tomcat.gif :: /td :: td :: h1Sample Application JSP Page/h1 :: This is the output of a JSP page that is part of the :: Hello, World :: application. It displays several useful values from :: the request :: we are currently processing. :: /td :: /tr :: /table :: :: table border=0 border=100% :: tr :: th align=rightContext Path:/th :: td align=left%= request.getContextPath() :: %/td :: /tr :: tr :: th align=rightPath Information:/th :: td align=left%= request.getPathInfo() %/td :: /tr :: tr :: th align=rightQuery String:/th :: td align=left%= request.getQueryString() :: %/td :: /tr :: tr :: th align=rightRequest Method:/th :: td align=left%= request.getMethod() %/td :: /tr :: tr :: th align=rightServlet Path:/th :: td align=left%= request.getServletPath() :: %/td :: /tr :: /table :: /body :: /html :: :: :: __ :: Do you Yahoo!? :: Yahoo! Small Business $15K Web Design Giveaway :: http://promotions.yahoo.com/design_giveaway/ :: :: - :: 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]
RE: Unable to compile class for JSP [SOLUTION]
http://www.mail-archive.com/[EMAIL PROTECTED]/msg101489.html -Original Message- From: Marc Dugger [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 6:09 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSP Tomcat 5.0.16 I keep getting this error about every 20 to 25 requests for various pages. Sometimes I can simply send another request and it will compile, and other times it will consistently throw this exception: 2003-12-15 17:31:05,348 [http8080-Processor23] ERROR org.apache.struts.taglib.tiles.InsertTag - ServletException in '/note/edit/deed_of_trust.jsp': tmpFile. renameTo(classFile) failed org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilationCont ext.java:5 58) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap per.java:2 91) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationD ispatcher. java:742) at org.apache.catalina.core.ApplicationDispatcher.doInclude(Applicati onDispatch er.java:630) at org.apache.catalina.core.ApplicationDispatcher.include(Application Dispatcher .java:542) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibr ary.java:1 002) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl. java:626) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:144) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:180) at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:801) at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(In sertTag.ja va:933) at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:503) at org.apache.jsp.lib.template_jsp._jspx_meth_tiles_get_1(template_js p.java:201 ) at org.apache.jsp.lib.template_jsp._jspService(template_jsp.java:123) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap per.java:3 11) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) It appears that Tomcat is unable to rename the .classtmp to .class. Any thoughts? Thanks. - 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]
RE: Unable to compile class for JSP?
Looks to me like it can't find the JSP file that it's trying to compile. Perhaps something is miss-configured? Or the file is an empty file? --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Richardson, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 1:08 PM To: 'Tomcat Users List' Subject: Unable to compile class for JSP? Hi, I am a newbie to tomcat(since yesterday). I am using Apache Tomcat/4.1.27. My DB admin is using Business Object. When he goes to page: server.activision.com:8080/wijsp/viewers/wqy_H/openDocument.jsp he gets the report below. Does anyone know what might have caused this report? Robert 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile class for JSP?
Howdy, Look at the tomcat server log for exceptions. Activision -- I love your stuff ;) Great games. Yoav Shapira Millennium ChemInformatics -Original Message- From: mike jackson [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 5:12 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP? Looks to me like it can't find the JSP file that it's trying to compile. Perhaps something is miss-configured? Or the file is an empty file? --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Richardson, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 1:08 PM To: 'Tomcat Users List' Subject: Unable to compile class for JSP? Hi, I am a newbie to tomcat(since yesterday). I am using Apache Tomcat/4.1.27. My DB admin is using Business Object. When he goes to page: server.activision.com:8080/wijsp/viewers/wqy_H/openDocument.jsp he gets the report below. Does anyone know what might have caused this report? Robert 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile class for JSP?
I looked at my localhost_log.2003-10-17.txt and it showed the exception below: Exception compiling Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory. A find did not anything jdk on my system. We have JAVA_HOME set as /usr/java1.2/bin. Robert -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 2:12 PM To: Tomcat Users List Subject: RE: Unable to compile class for JSP? Howdy, Look at the tomcat server log for exceptions. Activision -- I love your stuff ;) Great games. Yoav Shapira Millennium ChemInformatics -Original Message- From: mike jackson [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 5:12 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP? Looks to me like it can't find the JSP file that it's trying to compile. Perhaps something is miss-configured? Or the file is an empty file? --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Richardson, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 1:08 PM To: 'Tomcat Users List' Subject: Unable to compile class for JSP? Hi, I am a newbie to tomcat(since yesterday). I am using Apache Tomcat/4.1.27. My DB admin is using Business Object. When he goes to page: server.activision.com:8080/wijsp/viewers/wqy_H/openDocument.jsp he gets the report below. Does anyone know what might have caused this report? Robert 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile class for JSP?
Goto java.sun.com and download the latest JDK. -Original Message- From: Richardson, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 5:42 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP? I looked at my localhost_log.2003-10-17.txt and it showed the exception below: Exception compiling Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory. A find did not anything jdk on my system. We have JAVA_HOME set as /usr/java1.2/bin. Robert -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 2:12 PM To: Tomcat Users List Subject: RE: Unable to compile class for JSP? Howdy, Look at the tomcat server log for exceptions. Activision -- I love your stuff ;) Great games. Yoav Shapira Millennium ChemInformatics -Original Message- From: mike jackson [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 5:12 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP? Looks to me like it can't find the JSP file that it's trying to compile. Perhaps something is miss-configured? Or the file is an empty file? --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Richardson, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 1:08 PM To: 'Tomcat Users List' Subject: Unable to compile class for JSP? Hi, I am a newbie to tomcat(since yesterday). I am using Apache Tomcat/4.1.27. My DB admin is using Business Object. When he goes to page: server.activision.com:8080/wijsp/viewers/wqy_H/openDocument.jsp he gets the report below. Does anyone know what might have caused this report? Robert 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
RE: Unable to compile class for JSP?
You're running tomcat with the jre then, you need to run it via the jdk. You might also take this time to upgrade to the latest jdk. --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Richardson, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 1:42 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP? I looked at my localhost_log.2003-10-17.txt and it showed the exception below: Exception compiling Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory. A find did not anything jdk on my system. We have JAVA_HOME set as /usr/java1.2/bin. Robert -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 2:12 PM To: Tomcat Users List Subject: RE: Unable to compile class for JSP? Howdy, Look at the tomcat server log for exceptions. Activision -- I love your stuff ;) Great games. Yoav Shapira Millennium ChemInformatics -Original Message- From: mike jackson [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 5:12 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP? Looks to me like it can't find the JSP file that it's trying to compile. Perhaps something is miss-configured? Or the file is an empty file? --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Richardson, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 1:08 PM To: 'Tomcat Users List' Subject: Unable to compile class for JSP? Hi, I am a newbie to tomcat(since yesterday). I am using Apache Tomcat/4.1.27. My DB admin is using Business Object. When he goes to page: server.activision.com:8080/wijsp/viewers/wqy_H/openDocument.jsp he gets the report below. Does anyone know what might have caused this report? Robert 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
Re: Unable to compile class for JSP?
It is possible to run Tomcat with just the JRE, but it is tricky to set up. You should use the JDK/SDK instead. Also, your JAVA_HOME should be set to /usr/java1.2 not /usr/java1.2/bin -Ted mike jackson wrote: You're running tomcat with the jre then, you need to run it via the jdk. You might also take this time to upgrade to the latest jdk. --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Richardson, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 1:42 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP? I looked at my localhost_log.2003-10-17.txt and it showed the exception below: Exception compiling Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory. A find did not anything jdk on my system. We have JAVA_HOME set as /usr/java1.2/bin. Robert -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 2:12 PM To: Tomcat Users List Subject: RE: Unable to compile class for JSP? Howdy, Look at the tomcat server log for exceptions. Activision -- I love your stuff ;) Great games. Yoav Shapira Millennium ChemInformatics -Original Message- From: mike jackson [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 5:12 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP? Looks to me like it can't find the JSP file that it's trying to compile. Perhaps something is miss-configured? Or the file is an empty file? --mikej -=-- mike jackson [EMAIL PROTECTED] -Original Message- From: Richardson, Robert [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 1:08 PM To: 'Tomcat Users List' Subject: Unable to compile class for JSP? Hi, I am a newbie to tomcat(since yesterday). I am using Apache Tomcat/4.1.27. My DB admin is using Business Object. When he goes to page: server.activision.com:8080/wijsp/viewers/wqy_H/openDocument.jsp he gets the report below. Does anyone know what might have caused this report? Robert 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile class for JSP
Dave What is the request you send to Tomcat, i.e. what is this JSP supposed to accomplish? Kind Regards Schalk Neethling Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za :: -Original Message- :: From: Dave Stoker [mailto:[EMAIL PROTECTED] :: Sent: Friday, September 05, 2003 6:22 AM :: To: [EMAIL PROTECTED] :: Subject: Unable to compile class for JSP :: :: Hi, After reading the archives I see this is not an uncommon error. I've tried a couple :: suggestions (of removing java.exe from the winnt/system32 directory as well as :: changing the JDK version from 1.4.1_03 to 1.4.1_05), but no luck. Any help in :: resolving this issue is greatly appreciated. Dave :: :: :: :: HTTP Status 500 - :: :: :: :: 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] Compiling 1 source file :: :: C:\Tomcat 4.1\work\Standalone\localhost\fst\jsp\heading_jsp.java:57: :: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot :: be applied to (java.lang.Throwable) :: if (pageContext != null) pageContext.handlePageException(t); :: ^ :: 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:1 :: 93) :: 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:1 :: 91) :: 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:2416) :: 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:1 :: 71) :: 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:601) :: at ::
RE: Unable to compile class for JSP
Are you running Tomcat as a service? If so, edit the registry and change the path of the jvm.dll to the one in the server directory of your jsdk installation. -Original Message- From: Dave Stoker [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 9:22 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSP Hi, After reading the archives I see this is not an uncommon error. I've tried a couple suggestions (of removing java.exe from the winnt/system32 directory as well as changing the JDK version from 1.4.1_03 to 1.4.1_05), but no luck. Any help in resolving this issue is greatly appreciated. Dave HTTP Status 500 - 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] Compiling 1 source file C:\Tomcat 4.1\work\Standalone\localhost\fst\jsp\heading_jsp.java:57: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (pageContext != null) pageContext.handlePageException(t); ^ 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:2416) 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:601) 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)
Re: Unable to compile class for JSP
John, Schalk, all, I had copied a servlet jar file from JRun to the Tomcat/shared/lib directory. Once this was removed the JSPs compile! Moral: JRun and Tomcat are very different. Thanks for the replies. Dave Hi, After reading the archives I see this is not an uncommon error. I've tried a couple suggestions (of removing java.exe from the winnt/system32 directory as well as changing the JDK version from 1.4.1_03 to 1.4.1_05), but no luck. Any help in resolving this issue is greatly appreciated. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to compile class for JSP Upgrade 4.0 to 4.1
Are you using ant for your project? I think the reload task of apache using ant is not working the way it should. --- Susanne Munker [EMAIL PROTECTED] wrote: Hello, I´m a newbie here and please excuse my english I have a problem with one application, that works fine under 4.0.6, but with the 4.1 version of Tomcat I get the following error msg --- HTTP Status 500 - 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] /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7: package de.akdb.ok.vorfahrt does not exist [javac] import de.akdb.ok.vorfahrt.*; [javac] ^ [javac] 1 error ~ - My Tomcat Installation (4.1.24) works fine with all examples. Perhaps someone knows about the problem... thank you and kindly regards Susanne Munker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to compile class for JSP Upgrade 4.0 to 4.1
no, I don´t use Ant, but I found some new facts about my problem - there are some .jsp files under webapps/vorfahrt-test/WEB-INF/jsp and the first line in this .jsp files is %@ page language=java import=de.akdb.ok.vorfahrt.*, java.util.* % If I delete this line it works, I think the jar File is not on the right place (the jar files are directly under webapps/vorfahrt-test/WEB-INF/lib) But why it works under 4.0.6??? susanne ---BeginMessage--- Are you using ant for your project? I think the reload task of apache using ant is not working the way it should. --- Susanne Munker [EMAIL PROTECTED] wrote: Hello, I´m a newbie here and please excuse my english I have a problem with one application, that works fine under 4.0.6, but with the 4.1 version of Tomcat I get the following error msg --- HTTP Status 500 - 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] /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7: package de.akdb.ok.vorfahrt does not exist [javac] import de.akdb.ok.vorfahrt.*; [javac] ^ [javac] 1 error ~ - My Tomcat Installation (4.1.24) works fine with all examples. Perhaps someone knows about the problem... thank you and kindly regards Susanne Munker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to compile class for JSP Upgrade 4.0 to 4.1
Hi - This might help: http://jakarta.apache.org/tomcat/faq/misc.html#compile and http://jakarta.apache.org/tomcat/faq/classnotfound.html (especially all of the threads relating to packageless classes) John Susanne Munker wrote: Hello, I´m a newbie here and please excuse my english I have a problem with one application, that works fine under 4.0.6, but with the 4.1 version of Tomcat I get the following error msg --- HTTP Status 500 - 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] /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7: package de.akdb.ok.vorfahrt does not exist [javac] import de.akdb.ok.vorfahrt.*; [javac] ^ [javac] 1 error ~ - My Tomcat Installation (4.1.24) works fine with all examples. Perhaps someone knows about the problem... thank you and kindly regards Susanne Munker - 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]
Re: unable to compile class for JSP Upgrade 4.0 to 4.1
Well, jsp files are not meant to be inside a WEB-INF directory. Try putting those outside of it. You may use some dir structure like this: root_dir/ jsp/ WEB-INF/ lib/ tags/ classes/ Try putting your jsp files in the jsp dir. Hope it works. :) Susanne Munker [EMAIL PROTECTED] wrote: no, I don´t use Ant, but I found some new facts about my problem - there are some .jsp files under webapps/vorfahrt-test/WEB-INF/jsp and the first line in this .jsp files is If I delete this line it works, I think the jar File is not on the right place (the jar files are directly under webapps/vorfahrt-test/WEB-INF/lib) But why it works under 4.0.6??? susanne ATTACHMENT part 2 message/rfc822 Date: Sun, 10 Aug 2003 08:59:43 -0700 (PDT) From: Jesús Antonio Sánchez A. Subject: Re: unable to compile class for JSP Upgrade 4.0 to 4.1 To: Tomcat Users List Are you using ant for your project? I think the reload task of apache using ant is not working the way it should. --- Susanne Munker wrote: Hello, I´m a newbie here and please excuse my english I have a problem with one application, that works fine under 4.0.6, but with the 4.1 version of Tomcat I get the following error msg --- HTTP Status 500 - 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] /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7: package de.akdb.ok.vorfahrt does not exist [javac] import de.akdb.ok.vorfahrt.*; [javac] ^ [javac] 1 error ~ - My Tomcat Installation (4.1.24) works fine with all examples. Perhaps someone knows about the problem... thank you and kindly regards Susanne Munker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - 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] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
RE: Unable to compile class for JSP
starting with JDK 1.4 I believe your bean have to be in a package Filip -Original Message- From: Aaron Bennett [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 12:32 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSP Hi, I've just installed Tomcat 4.18 on my Windows 2KP machine and am having trouble using my java beans in my application. I continually receive the error: Generated servlet error: [javac] Compiling 1 source file C:\Tomcat4\work\Standalone\localhost\myApp\Proc\getuserinfo_jsp.java:332: cannot resolve symbol symbol : class ClientData location: class org.apache.jsp.getuserinfo_jsp ClientData client = null; ^ An error occurred at line: 12 in the jsp file: /Proc/getuserinfo.jsp The code generating the error is: jsp:useBean id=client class=ClientData scope=session/ I've placed my class files in the C:\Tomcat4\shared\classes as-well-as the C:\Tomcat4\webapps\MyApp\WEB-INF\classes directory. can someone tell me why my bean is not being recognized? - any help greatly appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile class for JSP
The common answer I've seen to this, and what worked for me was placing the class in a package. Place the class in C:\Tomcat4\webapps\MyApp\WEB-INF\classes\mypackage\beans In your class file you need the statement: package mypackage.beans; In your JSP page you should have %@ page import=mypackage.beans % HTH Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Aaron Bennett [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 3:32 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSP Hi, I've just installed Tomcat 4.18 on my Windows 2KP machine and am having trouble using my java beans in my application. I continually receive the error: Generated servlet error: [javac] Compiling 1 source file C:\Tomcat4\work\Standalone\localhost\myApp\Proc\getuserinfo_jsp.java:332: cannot resolve symbol symbol : class ClientData location: class org.apache.jsp.getuserinfo_jsp ClientData client = null; ^ An error occurred at line: 12 in the jsp file: /Proc/getuserinfo.jsp The code generating the error is: jsp:useBean id=client class=ClientData scope=session/ I've placed my class files in the C:\Tomcat4\shared\classes as-well-as the C:\Tomcat4\webapps\MyApp\WEB-INF\classes directory. can someone tell me why my bean is not being recognized? - any help greatly appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to compile class for JSP
and int your jsp:useBean id=client class=ClientData scope=session/ tag the class attribute should contain the fully qualified classname. Fiilip -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 12:44 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP The common answer I've seen to this, and what worked for me was placing the class in a package. Place the class in C:\Tomcat4\webapps\MyApp\WEB-INF\classes\mypackage\beans In your class file you need the statement: package mypackage.beans; In your JSP page you should have %@ page import=mypackage.beans % HTH Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Aaron Bennett [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 3:32 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSP Hi, I've just installed Tomcat 4.18 on my Windows 2KP machine and am having trouble using my java beans in my application. I continually receive the error: Generated servlet error: [javac] Compiling 1 source file C:\Tomcat4\work\Standalone\localhost\myApp\Proc\getuserinfo_jsp.java:332: cannot resolve symbol symbol : class ClientData location: class org.apache.jsp.getuserinfo_jsp ClientData client = null; ^ An error occurred at line: 12 in the jsp file: /Proc/getuserinfo.jsp The code generating the error is: jsp:useBean id=client class=ClientData scope=session/ I've placed my class files in the C:\Tomcat4\shared\classes as-well-as the C:\Tomcat4\webapps\MyApp\WEB-INF\classes directory. can someone tell me why my bean is not being recognized? - any help greatly appreciated! - 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]
RE: Unable to compile class for JSP
Oops, thanks - I forgot that :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 3:47 PM To: Tomcat Users List Subject: RE: Unable to compile class for JSP and int your jsp:useBean id=client class=ClientData scope=session/ tag the class attribute should contain the fully qualified classname. Fiilip -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 12:44 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP The common answer I've seen to this, and what worked for me was placing the class in a package. Place the class in C:\Tomcat4\webapps\MyApp\WEB-INF\classes\mypackage\beans In your class file you need the statement: package mypackage.beans; In your JSP page you should have %@ page import=mypackage.beans % HTH Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Aaron Bennett [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 3:32 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSP Hi, I've just installed Tomcat 4.18 on my Windows 2KP machine and am having trouble using my java beans in my application. I continually receive the error: Generated servlet error: [javac] Compiling 1 source file C:\Tomcat4\work\Standalone\localhost\myApp\Proc\getuserinfo_jsp.java:332: cannot resolve symbol symbol : class ClientData location: class org.apache.jsp.getuserinfo_jsp ClientData client = null; ^ An error occurred at line: 12 in the jsp file: /Proc/getuserinfo.jsp The code generating the error is: jsp:useBean id=client class=ClientData scope=session/ I've placed my class files in the C:\Tomcat4\shared\classes as-well-as the C:\Tomcat4\webapps\MyApp\WEB-INF\classes directory. can someone tell me why my bean is not being recognized? - any help greatly appreciated! - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to compile class for JSP
AFAIK if your bean is in a package (and it should be) and you use the jsp:useBean syntax the %@ page import directive is unnecessary. - Original Message - From: Filip Hanik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 8:47 PM Subject: RE: Unable to compile class for JSP and int your jsp:useBean id=client class=ClientData scope=session/ tag the class attribute should contain the fully qualified classname. Fiilip -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 12:44 PM To: 'Tomcat Users List' Subject: RE: Unable to compile class for JSP The common answer I've seen to this, and what worked for me was placing the class in a package. Place the class in C:\Tomcat4\webapps\MyApp\WEB-INF\classes\mypackage\beans In your class file you need the statement: package mypackage.beans; In your JSP page you should have %@ page import=mypackage.beans % HTH Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Aaron Bennett [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 3:32 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSP Hi, I've just installed Tomcat 4.18 on my Windows 2KP machine and am having trouble using my java beans in my application. I continually receive the error: Generated servlet error: [javac] Compiling 1 source file C:\Tomcat4\work\Standalone\localhost\myApp\Proc\getuserinfo_jsp.java:332: cannot resolve symbol symbol : class ClientData location: class org.apache.jsp.getuserinfo_jsp ClientData client = null; ^ An error occurred at line: 12 in the jsp file: /Proc/getuserinfo.jsp The code generating the error is: jsp:useBean id=client class=ClientData scope=session/ I've placed my class files in the C:\Tomcat4\shared\classes as-well-as the C:\Tomcat4\webapps\MyApp\WEB-INF\classes directory. can someone tell me why my bean is not being recognized? - any help greatly appreciated! - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to compile class for JSP
It may be looking for tools.jar. Stick a pointer to it in a CLASSPATH and see what happens. At 06:12 PM 1/6/2003 -0600, you wrote: I have just installed Tomcat 4.1.18 under Windows 2000 (using Java JDK 1.4.0). When I try to run the examples I get org.apache.jasper.JasperException: Unable to compile class for JSP . I have validated that my JAVA_HOME and CATALINA_HOME environment variables are correct. Any/all help would be appreciated. Thanks in advance. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Unable to compile class for JSP in Windows
I posted the error message.. see below. Just because it worked for you, it should work for everyone? Also Tomcat gives out ambigious error message: An error occurred at line: -1 in the jsp file: null Line number -1!? jsp file: null!? It's like Tomcat doesn't know what it's dealing with. I tried both Windows XP and Windows 2000 and I find it very peculiar that I get the same problem with them. Salama salama , what is your problem ?? i have windows xp, and run the stuff using it Salama hussein [EMAIL PROTECTED] wrote:It doesn't matter. Any JSP gives the same error. I tried the examples that come with Tomcat also and same problem. I even tried Windows 2000 and XP and same problem. I going to believe that Tomcat does not work in Windows and wonder how others got it to work. Salama PS: I am a new user and I am not getting any messages from the list. I had to go to the archive. Exactly what did the jsp contain? I mean the code you put in. Post it on the list and let everyone have a look see. Salama hussein wrote: I am getting the error below in Windows 2000 SP2, Tomcat 4.1.12 and JDK1.4 for any JSP program including the examples. I have reinstalled Tomcat different versions and tried JDK1.3 but always same problem. Any ideas? org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Unable to compile class for JSP in Windows
It doesn't matter. Any JSP gives the same error. I tried the examples that come with Tomcat also and same problem. I even tried Windows 2000 and XP and same problem. I going to believe that Tomcat does not work in Windows and wonder how others got it to work. Salama PS: I am a new user and I am not getting any messages from the list. I had to go to the archive. Exactly what did the jsp contain? I mean the code you put in. Post it on the list and let everyone have a look see. Salama hussein wrote: I am getting the error below in Windows 2000 SP2, Tomcat 4.1.12 and JDK1.4 for any JSP program including the examples. I have reinstalled Tomcat different versions and tried JDK1.3 but always same problem. Any ideas? org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null . Salama _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Unable to compile class for JSP in Windows
salama , what is your problem ?? i have windows xp, and run the stuff using it Salama hussein [EMAIL PROTECTED] wrote:It doesn't matter. Any JSP gives the same error. I tried the examples that come with Tomcat also and same problem. I even tried Windows 2000 and XP and same problem. I going to believe that Tomcat does not work in Windows and wonder how others got it to work. Salama PS: I am a new user and I am not getting any messages from the list. I had to go to the archive. Exactly what did the jsp contain? I mean the code you put in. Post it on the list and let everyone have a look see. Salama hussein wrote: I am getting the error below in Windows 2000 SP2, Tomcat 4.1.12 and JDK1.4 for any JSP program including the examples. I have reinstalled Tomcat different versions and tried JDK1.3 but always same problem. Any ideas? org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null . Salama _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- To unsubscribe, e-mail: For additional commands, e-mail: - Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site
Re: Unable to compile class for JSP in Windows
Exactly what did the jsp contain? I mean the code you put in. Post it on the list and let everyone have a look see. Salama hussein wrote: I am getting the error below in Windows 2000 SP2, Tomcat 4.1.12 and JDK1.4 for any JSP program including the examples. I have reinstalled Tomcat different versions and tried JDK1.3 but always same problem. Any ideas? org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null . Salama _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Unable to compile class for JSP
-Original Message- From: Andrew Rodwell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 11:31 AM To: Tomcat Users List Subject: Unable to compile class for JSP Hi, jsp:useBean id='lineB' scope='page' class='fwLine' type=fwLine / when it is run I get the following. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:61: Class org.apache.jsp.fwLine not found. fwLine lineB = null; ^ An error occurred at line: 9 in the jsp file: /fwView.jsp have I missed something on the setup, like in web.xml In JSP % @ page import=fwView % or % @ page import=package.fwView % depending on the package name of fwView. Randy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Unable to compile class for JSP
your JSP page does not find the class in the classpath. you must import it in the beginning of the page. do something like this : %@ page import=fwLine % I think that should work ... hope it helps [EMAIL PROTECTED] -Original Message- From: Andrew Rodwell [mailto:[EMAIL PROTECTED]] Sent: 27. febrúar 2002 16:31 To: Tomcat Users List Subject: Unable to compile class for JSP Hi, I am trying to use a bean in my jsp. jsp:useBean id='lineB' scope='page' class='fwLine' type=fwLine / when it is run I get the following. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:61: Class org.apache.jsp.fwLine not found. fwLine lineB = null; ^ An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:64: Class org.apache.jsp.fwLine not found. lineB= (fwLine) ^ An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:69: Class org.apache.jsp.fwLine not found. lineB = (fwLine) java.beans.Beans.instantiate(this.getClass().getClassLoader(), fwLine); it seems to expect my bean to be in org.apache.jsp. have I missed something on the setup, like in web.xml Thank you for any help. Andrew -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Unable to compile class for JSP
see intermixed Andrew Rodwell [EMAIL PROTECTED] on 02/27/2002 10:30:37 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Unable to compile class for JSP Hi, I am trying to use a bean in my jsp. jsp:useBean id='lineB' scope='page' class='fwLine' type=fwLine / when it is run I get the following. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:61: Class org.apache.jsp.fwLine not found. fwLine lineB = null; ^ An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:64: Class org.apache.jsp.fwLine not found. lineB= (fwLine) ^ An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:69: Class org.apache.jsp.fwLine not found. lineB = (fwLine) java.beans.Beans.instantiate(this.getClass().getClassLoader(), fwLine); it seems to expect my bean to be in org.apache.jsp. You got that right. It's looking in org.apache.jsp package. You need to import the class in your jsp. have I missed something on the setup, like in web.xml Thank you for any help. Andrew -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Unable to compile class for JSP not ClassNotFoundException
Sorry wrong subject -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Unable to compile class for JSP
2/27/02 10:00:37 PM, Andrew Rodwell [EMAIL PROTECTED] wrote: Hi, I am trying to use a bean in my jsp. jsp:useBean id='lineB' scope='page' class='fwLine' type=fwLine / when it is run I get the following. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:61: Class org.apache.jsp.fwLine not found. fwLine lineB = null; ^ An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:64: Class org.apache.jsp.fwLine not found. lineB= (fwLine) ^ An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:69: Class org.apache.jsp.fwLine not found. lineB = (fwLine) java.beans.Beans.instantiate(this.getClass().getClassLoader(), fwLine); it seems to expect my bean to be in org.apache.jsp. have I missed something on the setup, like in web.xml I've not tried this ever, but place your class in a package, and use that package instead. You should then have: jsp:useBean id='lineB' scope='page' class='foo.bar.fwLine' type=fwLine / Also, make sure that you keep this package and the class in your app's WEB-INF/classes folder Thank you for any help. Andrew Sriram _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Unable to compile class for JSP
In fwLine.java (assuming you wrote the class), there needs to be a package line for the class at the top of the file something like: package com.mycompany.myproject.fwLine ; And this has to be reflected in the path under WEB-INF/classes to your fwLine.class file as in: WEB-INF/classes/com/mycompany/myproject/fwLine.class Then compile the class and place the compiled .class file as above. After that, as long as you restart your app and make sure your jsp page imports the class, it should work like a charm. --David PS: It doesn't have to be packaged up in a jar file as long as the directory structure under WEB-INF/classes follows the same standards as a .jar. On Wednesday 27 February 2002 11:30 am, you wrote: Hi, I am trying to use a bean in my jsp. jsp:useBean id='lineB' scope='page' class='fwLine' type=fwLine / when it is run I get the following. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:61: Class org.apache.jsp.fwLine not found. fwLine lineB = null; ^ An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:64: Class org.apache.jsp.fwLine not found. lineB= (fwLine) ^ An error occurred at line: 9 in the jsp file: /fwView.jsp Generated servlet error: C:\tomcat\work\localhost\_\fwView$jsp.java:69: Class org.apache.jsp.fwLine not found. lineB = (fwLine) java.beans.Beans.instantiate(this.getClass().getClassLoader(), fwLine); it seems to expect my bean to be in org.apache.jsp. have I missed something on the setup, like in web.xml Thank you for any help. Andrew -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Unable to compile class for JSP
If you use beans that are not in a Java package, you have to explicitly import them. When your bean is in a package and you use the fully qualified name (strongly recommended), this is not needed. Craig On Fri, 10 Aug 2001, [EMAIL PROTECTED] wrote: BeanTest.jsp Add here: %@ page import=SimpleBean % jsp:useBean id=test class=SimpleBean / jsp:setProperty name=test property=message value=Hello WWW / H1Message: Ijsp:getProperty name=test property=message //I/H1 SimpleBean.java === public class SimpleBean { private String message = No message specified; public String getMessage() { return(message); } public void setMessage(String message) { this.message = message; } } - I've got 'BeanTest.jsp' on 'webapps/ROOT', and 'SimpleBean.java' and 'SimpleBean.class' on 'webapps/ROOT/WEB-INF/classes'. But I get this message: org.apache.jasper.JasperException: Unable to compile class for JSP What am I doing wrong? - This mail was sent through Eoffice: http://www.eoffice.dk
RE: Unable to compile class for JSP
Tried your files in Tomcat 3.3 and Tomcat 3.2.3 as described and they worked fine for me. Please supply more of the error message that gives what the compile error was. Larry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 10, 2001 12:33 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSP BeanTest.jsp jsp:useBean id=test class=SimpleBean / jsp:setProperty name=test property=message value=Hello WWW / H1Message: Ijsp:getProperty name=test property=message //I/H1 SimpleBean.java === public class SimpleBean { private String message = No message specified; public String getMessage() { return(message); } public void setMessage(String message) { this.message = message; } } - I've got 'BeanTest.jsp' on 'webapps/ROOT', and 'SimpleBean.java' and 'SimpleBean.class' on 'webapps/ROOT/WEB-INF/classes'. But I get this message: org.apache.jasper.JasperException: Unable to compile class for JSP What am I doing wrong? - This mail was sent through Eoffice: http://www.eoffice.dk
RE: Unable to compile class for JSP
Hi again, I have fixed this problem. After installation I have removed jaxp.jar and parser.jar because I use j2ee. Then I copy 2jee.jar to tomcats lib - it was my mistake. Tomcat was starting, but I got this exception. So, then I remove 2jee.jar from tomcats lib and put this jar to classpath every things was well. Hope this information helps somebody. -Original Message- From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 1:20 PM To: [EMAIL PROTECTED] Subject: Unable to compile class for JSP Hi All, I have installed Tomcat 3.2.3 and transit my application (it works in tomcat 3.2.1) I got that exception: Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPC:\Softgage\work\localhost_8080\_0002findex_0002ejspindex_jsp_0.java:1: Package com.softgage.jsppattern not found in import. import com.softgage.jsppattern.*; ^ 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java:294) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478) . It looks like compiler can't find my classes, but they are exist in right place. Please, help me, what's wrong??? NetZero Platinum Sign Up Today - Only $9.95 per month! http://my.netzero.net/s/signup?r=platinumrefcd=PT97 NetZero Platinum Sign Up Today - Only $9.95 per month! http://my.netzero.net/s/signup?r=platinumrefcd=PT97