Re: JasperException: Unable to compile class for JSP

2005-10-04 Thread Tim Funk

Put it in a package ... http://jakarta.apache.org/tomcat/faq/classnotfound.html

-Tim

Goo GGooo wrote:


On 10/4/05, Wendy Smoak wrote:


From: Goo GGooo [EMAIL PROTECTED]


An error occurred at line: 1 in the jsp file: /name.jsp
Generated servlet error:
UserData cannot be resolved or is not a type
===

Files webapps/tut/name.jsp and
webapps/tut/WEB-INF/classes/UserData.java are attached.


Try putting UserData in a package.



That works, cool! What's the reason for that? Can I make it running
without packages? (just interested, not that I'm unhappy with having
it in a package :-)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JasperException: Unable to compile class for JSP

2005-10-03 Thread Goo GGooo
Hi all,

I've got Tomcat 5.5.9 running on SUSE Linux 9.2, followed tutorial at
http://www.coreservlets.com/Apache-Tomcat-Tutorial/ and got it up and
running, can see the Tomcat mainpage and run all bundled examples.
However when I try a trivial example with HTML forms Tomcat barfs:

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

An error occurred at line: 1 in the jsp file: /name.jsp
Generated servlet error:
UserData cannot be resolved or is not a type
===

Files webapps/tut/name.jsp and
webapps/tut/WEB-INF/classes/UserData.java are attached. Of course I've
got UserData.java compiled into .class at the same directory and
everything is readable for Tomcat.

What can be a reason for this error? Do I need to configure something
to let Tomcat know about this class?

I'm sorry for this newbie question - I'm sure it's something trivial
but I have experience with neither Tomcat nor JSP/servlets and am
basically stuck.

Thanks!

Goo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: JasperException: Unable to compile class for JSP

2005-10-03 Thread Goo GGooo
On 10/4/05, Wendy Smoak wrote:
 From: Goo GGooo [EMAIL PROTECTED]

  An error occurred at line: 1 in the jsp file: /name.jsp
  Generated servlet error:
  UserData cannot be resolved or is not a type
  ===
 
  Files webapps/tut/name.jsp and
  webapps/tut/WEB-INF/classes/UserData.java are attached.

 Try putting UserData in a package.

That works, cool! What's the reason for that? Can I make it running
without packages? (just interested, not that I'm unhappy with having
it in a package :-)

Thanks

Goo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unable to compile class for JSP

2005-01-11 Thread Dave Kennedy
Hi,
 
This web page displays correctly
http://www.dksy.net:8080/examples/jsp/num/numguess.jsp

but all of the other examples on this page display the error below:
http://www.dksy.net:8080/examples/jsp/index.html
 
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
.
 
Any help would be greatly appreciated


RE: Unable to compile class for JSP

2005-01-11 Thread Dave Kennedy
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

2005-01-11 Thread Dave Kennedy
--- Nested Exception ---
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)
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)

-Original Message-
From: Dave Kennedy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 11, 2005 3:25 PM
To: tomcat-user@jakarta.apache.org
Subject: Unable to compile class for JSP

Hi,
 
This web page displays correctly
http

Unable to compile class for JSP

2004-09-30 Thread A Leg
Hi
I had some pb my my projects jsps. I am obliged to precompile them.
I tried to get the same problem with a small appli.
I write a very simple jsp :
html
body
%java.util.Date d = new java.util.Date();%
Todays date is %= d.getDate()%  hello!
/body
/html
When I start tomcat everythings seems ok,
When I launch the page I have the same problem :
*an exception*
org.apache.jasper.JasperException: Unable to compile class for JSP
*root cause*
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
Full error page below.
Any help appreciated
Best regards
Andre
 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
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:513)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:258)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:205)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:263)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
*root cause*
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
java.lang.ClassLoader.checkCerts(ClassLoader.java:599)
java.lang.ClassLoader.defineClass(ClassLoader.java:532)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
java.net.URLClassLoader.access$100(URLClassLoader.java:55)
java.net.URLClassLoader$1.run(URLClassLoader.java:194)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:187)

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:473)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:810)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:709)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:141)
org.apache.tools.ant.Project.init(Project.java:274)
org.apache.jasper.compiler.Compiler.getProject(Compiler.java:114)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:416)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:397)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:258)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:205)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:263)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
*note* _The full stack trace of the root cause is available in the 
Tomcat logs._


 Sun-Java-System/Web-Services-Pack-1.4



Re: Unable to compile class for JSP

2004-09-30 Thread QM
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

2004-09-30 Thread A Leg
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]


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

2004-07-16 Thread Vladimer Shioshvili

I am trying to set up Tomcat 5.0.27 for my coworker. I mean we already 
installed jdk 1.4.2 and tomcat 5.0.27. Examples jsp pages work fine, but 
when trying to view the jsp pages in the application i put in (Mondrian) i 
get the org.apache.jasper.JasperException: Unable to compile class for JSP 
error. I installed tomcat 5.0.27 on my machine and the whole shebang works 
fine.

I am looking for leads...
Thanks in advance,
Vlad
Stack trace looks like this:
org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JasperException: Unable to compile class for JSP at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) 
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) 
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) 
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) 
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) 
at 
com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:108) 
at 
com.tonbeller.wcf.controller.RequestSynchronizer.handleRequest(RequestSynchronizer.java:99) 
at 
com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:134) 
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
 at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) 
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) 
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) 
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 
at java.lang.Thread.run(Unknown Source)



Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

Unable to compile class for JSP

2004-06-09 Thread java only
Hi all,
 
I am unable to compile JSP files,it gives me the following exception
 

org.apache.jasper.JasperException: Unable to compile class for JSPNo Java compiler was 
found to compile the generated source for the JSP. This can usually be solved by 
copying manually $JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of 
the Tomcat server, followed by a Tomcat restart. If using an alternate Java compiler, 
please check its installation and access path.  at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83) 
  at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)  
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406) at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)   at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)   at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)  
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274) 
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

 

 

I have even copied the tools.jar from my $JAVA_HOME/lib to $CATALINA_HOME/common/lib , 
but still it gives me the same error.Earlier default javac compiler was used,and 
everything was running fine.since changing my compiler to jspc in /conf/web.xml (so as 
to precompile my jsp files and save the memory leak),I am encountering this problem.

Any input would be sincerely appreciated.

Thanks,

javaonlyjava

 

 



-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

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

2004-05-21 Thread aiye4686


Hi, and thanks for reading this query - it isn't (at least to me) anything
to do with putting tools.jar into web-inf/lib, or anywhere else, for that
matter.

Here is the problem:

 2004-05-22 02:25:00 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar
from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat
restart.
If using an alternate Java compiler, please check its installation and
access path.

at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
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(ApplicationFilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:536)

Here is what has been happening:

I am doing a thesis involving using tomcat+hibernate+mysql to create a
web-site that auto-marks web applications.

Using Tomcat ver. 5.

Until yesterday I could fire up tomcat, run my code, make changes to .jsp
and .java files and, without restarting tomcat, see the changes. Yes,
tools.jar, and in fact ALL the necessary jar files for rinning my app are
in the right place. The application has been running smoothly for about 2
months now.

Today I began to use ant (in a java file - by importing
org.apache.tools.ant.*) to deploy .war files in a particular directory
when I wanted to.
To do so appeared to require the use of a manager setting, so I made on up,
and added it to TOMCAT_HOME\conf\tomcat-users.xml. Here is the entry:

  user username=andrew password=iyer roles=manager/

Which was put with the other entries.

NOW when I went to the website 1.jsp in TOMCAT_HOME\webapps\thesis
(contents as follows) I got the above org.apache.jasper.JasperException:
Unable to compile class for JSP error.

1.jsp:
%@ page language=java contentType = text/html

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

2004-05-21 Thread aiye4686

Heh, just in case anyone is ever as stupid as me in teh future:

I realised that I had put catalina-ant.jar into my TOMCAT_HOME\common\lib
directory, as well as my WEB-INF\lib directory... I have no idea why I did
that, but blame youthful stupidity.

Somehow, having catalina-ant.jar in the common\lib directory really messes
with tool.jar - why I don't know.

Anyway, removing the catalina-ant.jar from the conf\lib dir solves
everything!

Cheers
Andrew


Quoting [EMAIL PROTECTED]:

 Hi, and thanks for reading this query - it isn't (at least to me)
 anything
 to do with putting tools.jar into web-inf/lib, or anywhere else, for that
 matter.

 Here is the problem:

  2004-05-22 02:25:00 StandardWrapperValve[jsp]: Servlet.service() for
 servlet jsp threw exception
 org.apache.jasper.JasperException: Unable to compile class for JSP

 No Java compiler was found to compile the generated source for the JSP.
 This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar
 from the JDK
 to the common/lib directory of the Tomcat server, followed by a Tomcat
 restart.
 If using an alternate Java compiler, please check its installation and
 access path.

at
 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
at
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
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(ApplicationFilterChain.java:284)
at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
at
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578)
at
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
at
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)
at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:536)

 Here is what has been happening:

 I am doing a thesis involving using tomcat+hibernate+mysql to create a
 web-site that auto-marks web applications.

 Using Tomcat ver. 5.

 Until yesterday I could fire up tomcat, run my code, make changes to .jsp
 and .java files and, without restarting tomcat, see the changes. Yes,
 tools.jar, and in fact ALL the necessary jar files for rinning my app are
 in the right place. The application has been running smoothly for about 2
 months now.

 Today I began to use ant (in a java file - by importing

Re: unable to compile class for JSP

2004-05-14 Thread Chris Purcell
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]



unable to compile class for JSP

2004-05-12 Thread Chris Purcell
Tomcat 4.1.30
Apache 2.0.46
Red Hat Enterprise Linux ES 3.0

I'm having a problem getting Tomcat to work on Red Hat ES 3.0.   The
examples that come with Tomcat are failing with 500 Internal Server
Errors...



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

An error occurred at line: 11 in the jsp file: /examples/jsp/num/numguess.jsp

Generated servlet error:
[javac] Compiling 1 source file

/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;
   ^
/usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.net/_/examples/jsp/num/numguess_jsp.java:44:
package num does not exist
  num.NumberGuessBean numguess = null;



Does anyone have any idea what could be causing this error?   Please let
me know if you need more information on the problem.

Thanks for the help,
Chris



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: unable to compile class for JSP

2004-05-12 Thread QM
: 
/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

2004-05-12 Thread Mike Curwen
[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

2004-05-12 Thread Mike Curwen
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

2004-05-12 Thread Chris Purcell
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

2004-05-12 Thread Chris Purcell
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

2004-05-12 Thread QM
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: Tomcat 5.0.19 deploying war through manager give Unable to compile class for JSP exception

2004-05-04 Thread Owen Fellows
Hi,

Tomcat is running on Redhat Linux and i start it manually also I'm using jdk 1.4.2.

Has anyone else got any ideas why this might be happening?
It also runs very slowly after the redeploy of the war?
Are there any problems with commons-loggins versions and classloading in Tomcat 5.0.19, do need to use a particular version.

Thanks for any help,
Owen
On Fri, 30 Apr 2004 09:28:15 -0500, Jacob Kjome [EMAIL PROTECTED] wrote:

I bet you are running this on Windows as a service.  I'm not sure what settings
are provided for the service upon install of Tomcat using the .exe file because
I never use it.  I always just unzip the package and run the service.bat to
install the service.  Of course, the service.bat that comes with Tomcat doesn't
add tools.jar to the classpath.  Here's a modified service.bat that does
(renamed to service.txt to avoid being removed by email servers).
Jake

Quoting Owen Fellows [EMAIL PROTECTED]:

Hi,

In the Manager I

- I undeploy and existing war.
- Then redeploy a new war but in the same context path.
   I use a xml file contaning the context and the war location.
   The war is extracted and the manager interface tells me that it is
deployed and running (the logs seem to indicated it gets deployed twice as i
see the debug information from my application scrolls past twice).
In the host all the following are set to true
- Auto Deploy:
- Deploy On Startup:
- Deploy XML:
- Unpack WARs:
In the web app itself the following are true (others false).
- Cookies:
- Cross Context:
- Reloadable:
- Use Naming:
When i got to the app sometimes it compiles the jsps and runs really slow and
some time i get this error.
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

No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from
the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat
restart.
If using an alternate Java compiler, please check its installation and access
path.

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
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)
com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181)
com.pokemonkiller.hibernate.HibernateFilter.doFilter(HibernateFilter.java:77)
note The full stack trace of the root cause is available in the Tomcat logs.
Apache Tomcat/5.0.19
Can anyone help or give me some clues to why this happens.
After a restart the app is fine, (but that kind of defeats the point of hot
deploying).
Thanks,
Owen
-
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]


Unable to compile class for JSP

2004-04-04 Thread Linda Smith

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:559)
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
   
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:553)
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
   
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]



RE: Unable to compile class for JSP

2004-04-04 Thread Schalk
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

2004-04-04 Thread Linda Smith
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

2004-04-04 Thread Schalk
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]



JasperException: Unable to compile class for JSP, root cause: FileNotFoundException

2004-03-19 Thread Martin Morawetz
Hello!

  Problem: I don't get Tomcat to compile my jsps.

  I have the problem just with new Jsps (so path and file in the
  work-directory don't exist yet)
  I also just have the problem with tomcat running as daemon.

  The daemon and the normal tomcat-application both are running as
  user nobody.
  My first thought was, that it has something to do with the
  permissions, so I set the owner of work-directory, jars, classes
  and jsps to user nobody, desperately set the rights to 777, but
  it didn't help.


The browser-window shows:

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:558)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
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: 
/opt/jakarta-tomcat-5.0.18/work/Catalina/192.168.1.211/_/org/apache/jsp/jsp/all/main/logoff_jsp.java
	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:552)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
	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)





The catalina.out says:

java.io.FileNotFoundException: 
/opt/jakarta-tomcat-5.0.18/work/Catalina/192.168.1.211/_/org/apache/jsp/jsp/all/main/logoff_jsp.java
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:70)
at 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
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(ApplicationFilterChain.java:284)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615

Unable to compile class for JSP

2003-12-15 Thread Marc Dugger
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(JspCompilationContext.java:5
58)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.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(Application
FilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:742)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:630)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:542)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.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(InsertTag.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_jsp.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(JspServletWrapper.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]



RE: Unable to compile class for JSP [SOLUTION]

2003-12-15 Thread Marc Dugger
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]



Unable to compile class for JSP

2003-12-08 Thread Marc Dugger
I've recently upgraded from 4.1.29 to 5.0.16 and Jasper appears to be
(inconsistently) unable to rename temporary class files.  One moment, a JSP
will compile cleanly and, after a very simple page modification, the same
JSP will cause this exception:

2003-12-08 12:29:30,527 [http8080-Processor25] ERROR
org.apache.struts.taglib.tiles.InsertTag - ServletException in
'/property/edit/title.jsp': tmpFile.rena
meTo(classFile) failed
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.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)
  ...yada x 3...

Thanks in advance for any insight.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2003-11-20 Thread Derek Mahar
Did you put your class in package?  Unless you put your classes (even
those in a jar file) in a package, Tomcat assumes a default package of
org.apache.jsp.  If you did not put your class in that package, Tomcat
won't find it.  See
http://marc.theaimsgroup.com/?l=tomcat-userm=102997632829655w=2.

Derek

-Original Message-
From: Luis Estevens [mailto:[EMAIL PROTECTED] 
Sent: November 20, 2003 12:44 PM
To: '[EMAIL PROTECTED]'
Subject: org.apache.jasper.JasperException: Unable to compile class for
JSP


Hello

 

I have Windows2000 Server, IIS5, jdk 1.4 and Tomcat 4112

 

After sucesuffly installed TomCat and tested it through
http://localhost/examples/servlet/HelloWorldExample
http://localhost/examples/servlet/HelloWorldExample  i tried to put
some jsp witch calls a bean to work

 

Unfortunally i get an org.apache.jasper.JasperException: Unable to
compile class for JSP

 

I created a jsp file named time.jsp and put it into a directory named
bigjava into webapp. The Timebeanclass witch is invoked in time.jsp
and i put into a jar file with the corrected classpath is placed into
the classes file, witch also contains the Timebeanclass.java

 

I already search google and found lots of people with the same problems,
but nothing applies to me

 

Got any clue?

 

Thanks in advance

 

Luis Estevens

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2003-11-20 Thread Derek Mahar
Also see http://jakarta.apache.org/tomcat/faq/classnotfound.html.

Derek

-Original Message-
From: Luis Estevens [mailto:[EMAIL PROTECTED] 
Sent: November 20, 2003 12:44 PM
To: '[EMAIL PROTECTED]'
Subject: org.apache.jasper.JasperException: Unable to compile class for
JSP


Hello

 

I have Windows2000 Server, IIS5, jdk 1.4 and Tomcat 4112

 

After sucesuffly installed TomCat and tested it through
http://localhost/examples/servlet/HelloWorldExample
http://localhost/examples/servlet/HelloWorldExample  i tried to put
some jsp witch calls a bean to work

 

Unfortunally i get an org.apache.jasper.JasperException: Unable to
compile class for JSP

 

I created a jsp file named time.jsp and put it into a directory named
bigjava into webapp. The Timebeanclass witch is invoked in time.jsp
and i put into a jar file with the corrected classpath is placed into
the classes file, witch also contains the Timebeanclass.java

 

I already search google and found lots of people with the same problems,
but nothing applies to me

 

Got any clue?

 

Thanks in advance

 

Luis Estevens

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unable to compile class for JSP?

2003-10-17 Thread Richardson, Robert
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



RE: Unable to compile class for JSP?

2003-10-17 Thread mike jackson
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?

2003-10-17 Thread Shapira, Yoav

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?

2003-10-17 Thread Richardson, Robert

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?

2003-10-17 Thread Hart, Justin
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?

2003-10-17 Thread mike jackson
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?

2003-10-17 Thread Ted Weatherly
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]


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

2003-10-15 Thread Manu . Garg

Hi guys!

I am getting following error while trying to run a jsp page in Tomcat 4.1
and JDK 1.4.

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

Generated servlet error:
[javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.27/work/Standalone/localhost/test/intra_esolve/jsp/userMenu_jsp.java:7:

'.' expected
import DbConnection;
   ^
/usr/local/jakarta-tomcat-4.1.27/work/Standalone/localhost/test/intra_esolve/jsp/userMenu_jsp.java:8:

'.' expected
import Global;
 ^
Note:
/usr/local/jakarta-tomcat-4.1.27/work/Standalone/localhost/test/intra_esolve/jsp/userMenu_jsp.java

uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
2 errors


 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
 at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
 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:473)
 .and lots more...

This page runs fine with Tomcat 3.2.4 and jdk 1.4. I have to port this page
to Tomcat 4.1 with jdk 1.4.

Here is a snapshot of jsp page listing:

%@ page language=java %
%@ page import = DbConnection %
%@ page import = Global %
%@ page import = java.lang.* %
%@ page import = java.util.* %
%@ page import = java.sql.* %
%@ page import = javax.servlet.http.HttpSession %
...

Location of DbConnection.class and Global.class is /test/WEB-INF/classes.

Please help me if anybody knows the reason.

Thanks,
Manu


  ____

*

DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity
 indicated in this message and for the exclusive use of the said addressed individual 
or entity indicated in this message 
(or responsible for delivery of the message to such person) and may contain legally 
privileged and confidential information 
belonging to Tata Consultancy Services. It must not be printed, read, copied, 
disclosed, forwarded, distributed or used 
(in whatsoever manner) by any person other than the addressee. Unauthorized use, 
disclosure or copying is strictly prohibited
 and may constitute unlawful act and can possibly attract legal action, civil and/or 
criminal. The contents of this message 
need not necessarily reflect or endorse the views of TATA Consultancy Services on any 
subject matter. Any action taken 
or omitted to be taken based on this message is entirely at your risk and neither the 
originator of this message nor 
Tata Consultancy Services takes any responsibility or liability towards the same. 
Opinions, conclusions and any other 
information contained in this message that do not relate to the official business of 
Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. 
If you have received this message in error, you should destroy this message and may 
please notify the sender by e-mail. Thank you.

*
.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

2003-10-15 Thread Tim Funk
See the faq  http://jakarta.apache.org/tomcat/faq/classnotfound.html

-Tim

[EMAIL PROTECTED] wrote:

Hi guys!

I am getting following error while trying to run a jsp page in Tomcat 4.1
and JDK 1.4.
An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file
/usr/local/jakarta-tomcat-4.1.27/work/Standalone/localhost/test/intra_esolve/jsp/userMenu_jsp.java:7:

'.' expected
import DbConnection;
   ^
/usr/local/jakarta-tomcat-4.1.27/work/Standalone/localhost/test/intra_esolve/jsp/userMenu_jsp.java:8:
'.' expected
import Global;
 ^
Note:
/usr/local/jakarta-tomcat-4.1.27/work/Standalone/localhost/test/intra_esolve/jsp/userMenu_jsp.java
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

2003-10-13 Thread Ilja
anyone?

On Sun, 12 Oct 2003 15:35:25 +0200, Ilja [EMAIL PROTECTED]
said:
 In tried installing opencms (www.opencms.org), but got the following
 error when running on Tomcat 5.0.7:
 
 I think this is a Tomcat 5.0.x related problem, since according to the
 developers it runs fine on a Tomcat 4.2.x version. They don't know where
 lies the problem..
 
 The root-cause:
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
   at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:752)
   at 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:640)
   at 
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:552)
   at 
 com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180)
   at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
   at 
 com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:268)
   at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
   at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
   at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
   at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:254)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
   at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
   at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:489)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
   at java.lang.Thread.run(Thread.java:554)
 
 The index.jsp:
 
 %@ page session=false %
 %@ taglib prefix=cms uri=http://www.opencms.org/taglib/cms; %
 cms:include property=template suffix=.jsp element=head /
 
 h1Congratulations!/h1
 
 h3If you're seeing this page via a web browser, it means you've setup
 OpenCms successfully./h3
 
 
 pYour installed OpenCms version is: cms:info
 property=opencms.version /br
 span class=smallRunning on 
 cms:info property=java.vm.vendor / 
 cms:info property=java.vm.name / 
 cms:info property=java.vm.version / 
 cms:info property=java.vm.info / with
 cms:info property=os.name / 
 cms:info property=os.version / 
 (cms:info property=os.arch /)/span/p
 
 
 pAs you may have guessed by now, this is the default

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

2003-10-12 Thread Ilja
In tried installing opencms (www.opencms.org), but got the following
error when running on Tomcat 5.0.7:

I think this is a Tomcat 5.0.x related problem, since according to the
developers it runs fine on a Tomcat 4.2.x version. They don't know where
lies the problem..

The root-cause:

org.apache.jasper.JasperException: Unable to compile class for JSP
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:752)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:640)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:552)
at 
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180)
at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
at 
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:268)
at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:254)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:489)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
at java.lang.Thread.run(Thread.java:554)

The index.jsp:

%@ page session=false %
%@ taglib prefix=cms uri=http://www.opencms.org/taglib/cms; %
cms:include property=template suffix=.jsp element=head /

h1Congratulations!/h1

h3If you're seeing this page via a web browser, it means you've setup
OpenCms successfully./h3


pYour installed OpenCms version is: cms:info
property=opencms.version /br
span class=smallRunning on 
cms:info property=java.vm.vendor / 
cms:info property=java.vm.name / 
cms:info property=java.vm.version / 
cms:info property=java.vm.info / with
cms:info property=os.name / 
cms:info property=os.version / 
(cms:info property=os.arch /)/span/p


pAs you may have guessed by now, this is the default OpenCms home page. 
It can inot/i be found on the local file system ;-) but in the
OpenCms

RE: Unable to compile class for JSP

2003-09-05 Thread Schalk
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
::
org.apache.coyote.http11

RE: Unable to compile class for JSP

2003-09-05 Thread John Corrigan
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

2003-09-05 Thread Dave Stoker
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]



Unable to compile class for JSP

2003-09-04 Thread Dave Stoker
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(DefaultErrorHandler.java:130)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
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:473)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)




Apache Tomcat/4.1.27

Re: org.apache.jasper.JasperException: Unable to compile class for JSP errorsafter switching from Tomcat 4.1.18LE to 4.1.27

2003-09-02 Thread Joe_Rattz
Ok, I tried jdk1.4.2_01, but it does not fix the problem.  So, I backed up 
to jdk1.4.1_03 which does not have an issue like the one below.

Thanks everyone.




[EMAIL PROTECTED] 
08/29/2003 05:48 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]
cc

Subject
Re: org.apache.jasper.JasperException: Unable to compile class for JSP 
errors after switching from Tomcat 4.1.18LE to 4.1.27






Ooops, ok I had one other 'significant' change that I failed to mention. I 

had also upgraded to jdk1.4.2 from 1.4.1_03.  I thought in my testing I 
had eliminated that possibility, but I was wrong.  It looks like there is 
a bug in jdk1.4.2 that is causing my problem.  I am basing that on the 
following message:

http://forum.java.sun.com/thread.jsp?forum=136thread=429766tstart=0trange=15


His usage is different than mine, but it looks like the ultimate problem 
and cause were the same, the compiler could not compile classes containing 

inner classes in some circumstances.  So, I uninstalled Tomcat 4.1.27, 
changed my JAVA_HOME back to jdk 1.4.1_03 and reinstalled Tomcat 4.1.27 
and everything is working fine again.

Tuesday I am going to try the new jdk1.4.2_01 and see if the bug still 
exists in it.  I'll post back afterwards with an update.

Thanks.




[EMAIL PROTECTED] 
08/29/2003 02:28 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
org.apache.jasper.JasperException: Unable to compile class for JSP 
errors after switching from Tomcat 4.1.18LE to 4.1.27






I have some code that worked fine with Tomcat 4.1.18LE but now that I have 


upgraded to 4.1.27, I am getting the problems below.  Anyone know what is 
going on?  Thanks.



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

An error occurred at line: 4 in the jsp file: 
/forward/order_inquiry_results.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:90: 


cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
  sfbeans.OrderHdrBean$ResultBean ResultBean_item = null;
 ^



An error occurred at line: 4 in the jsp file: 
/forward/order_inquiry_results.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:92: 


cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
pageContext.getAttribute(ResultBean_item, PageContext.REQUEST_SCOPE);
  ^



An error occurred at line: 4 in the jsp file: 
/forward/order_inquiry_results.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:95: 


cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
sfbeans.OrderHdrBean$ResultBean);
  ^
3 errors


at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
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:473)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at gpcjde.Context.forward(Context.java:65)
at gpcjde.OrderInquiryContext.process(OrderInquiryContext.java:32)
at gpcjde.Context.process(Context.java:40)
at gpcjde.Environment.process(Environment.java:77)
at gpcjde.ControllerServlet.doPost(ControllerServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853

org.apache.jasper.JasperException: Unable to compile class for JSP errorsafter switching from Tomcat 4.1.18LE to 4.1.27

2003-08-29 Thread Joe_Rattz
I have some code that worked fine with Tomcat 4.1.18LE but now that I have 
upgraded to 4.1.27, I am getting the problems below.  Anyone know what is 
going on?  Thanks.



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

An error occurred at line: 4 in the jsp file: 
/forward/order_inquiry_results.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:90: 
cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
  sfbeans.OrderHdrBean$ResultBean ResultBean_item = null;
 ^



An error occurred at line: 4 in the jsp file: 
/forward/order_inquiry_results.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:92: 
cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
pageContext.getAttribute(ResultBean_item, PageContext.REQUEST_SCOPE);
  ^



An error occurred at line: 4 in the jsp file: 
/forward/order_inquiry_results.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:95: 
cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
sfbeans.OrderHdrBean$ResultBean);
  ^
3 errors


at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
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:473)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at gpcjde.Context.forward(Context.java:65)
at gpcjde.OrderInquiryContext.process(OrderInquiryContext.java:32)
at gpcjde.Context.process(Context.java:40)
at gpcjde.Environment.process(Environment.java:77)
at gpcjde.ControllerServlet.doPost(ControllerServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172

Re: org.apache.jasper.JasperException: Unable to compile class for JSP errorsafter switching from Tomcat 4.1.18LE to 4.1.27

2003-08-29 Thread Joe_Rattz
Ooops, ok I had one other 'significant' change that I failed to mention. I 
had also upgraded to jdk1.4.2 from 1.4.1_03.  I thought in my testing I 
had eliminated that possibility, but I was wrong.  It looks like there is 
a bug in jdk1.4.2 that is causing my problem.  I am basing that on the 
following message:

http://forum.java.sun.com/thread.jsp?forum=136thread=429766tstart=0trange=15

His usage is different than mine, but it looks like the ultimate problem 
and cause were the same, the compiler could not compile classes containing 
inner classes in some circumstances.  So, I uninstalled Tomcat 4.1.27, 
changed my JAVA_HOME back to jdk 1.4.1_03 and reinstalled Tomcat 4.1.27 
and everything is working fine again.

Tuesday I am going to try the new jdk1.4.2_01 and see if the bug still 
exists in it.  I'll post back afterwards with an update.

Thanks.




[EMAIL PROTECTED] 
08/29/2003 02:28 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
org.apache.jasper.JasperException: Unable to compile class for JSP 
errors after switching from Tomcat 4.1.18LE to 4.1.27






I have some code that worked fine with Tomcat 4.1.18LE but now that I have 

upgraded to 4.1.27, I am getting the problems below.  Anyone know what is 
going on?  Thanks.



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

An error occurred at line: 4 in the jsp file: 
/forward/order_inquiry_results.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:90: 

cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
  sfbeans.OrderHdrBean$ResultBean ResultBean_item = null;
 ^



An error occurred at line: 4 in the jsp file: 
/forward/order_inquiry_results.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:92: 

cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
pageContext.getAttribute(ResultBean_item, PageContext.REQUEST_SCOPE);
  ^



An error occurred at line: 4 in the jsp file: 
/forward/order_inquiry_results.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:95: 

cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
sfbeans.OrderHdrBean$ResultBean);
  ^
3 errors


at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
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:473)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at gpcjde.Context.forward(Context.java:65)
at gpcjde.OrderInquiryContext.process(OrderInquiryContext.java:32)
at gpcjde.Context.process(Context.java:40)
at gpcjde.Environment.process(Environment.java:77)
at gpcjde.ControllerServlet.doPost(ControllerServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java

Unable to compile class for JSP error in Tomcat 5.0.7

2003-08-14 Thread John Cavacas
Hi,

This is my first time trying Tomcat 5.0.7, i'm already familiar with tomcat 4.

I tried to run a simple JSP, then the Struts struts-blank.war application, 
and i keep getting this error:

org.apache.jasper.JasperException: Unable to compile class for JSP
..snip..
java.lang.IllegalArgumentException: -1

org.apache.jasper.compiler.SmapStratum$LineInfo.setOutputLineIncrement(SmapStratum.java:124)
...snip..
I've looked in bugzilla for a bug report, but didn't find anything related 
to this.

I just recently upgraded to JDK 1.4.2, but I'm not experiencing any 
problems with any other Java related application.

Any help or insight would be appreciated.

Thanks,
John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


unable to compile class for JSP Upgrade 4.0 to 4.1

2003-08-14 Thread Susanne Munker
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]



Re: unable to compile class for JSP Upgrade 4.0 to 4.1

2003-08-14 Thread Jesús Antonio Sánchez A.
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

2003-08-14 Thread Susanne Munker
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

2003-08-11 Thread John Turner
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

2003-08-10 Thread Jesús Antonio Sánchez A.
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

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

2003-03-29 Thread Andre Carrier
Hi,

I did a fresh install of tomcat on a win2000 server. I installed the latest JDK 
(1.4.1) first. I installed tomcat (4.1.24) after. Whenever I access the default 
index.jsp page I get this error. The JSPs of the application that I am building give 
the same error. Whith a previous build of tomcat 4.1.x (I dont remember which exactly) 
on another server I have no problems with exactly the same application. Can anyone 
suggest how to fix this? Must I use a previous version of tomcat? Is this a known 
issue? 

Here is the detailed error message:

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.


at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
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:473)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)


The best to all!
Andre





Unable to compile class for JSP

2003-03-11 Thread alan r
I am suddenly unable to serve any JSP at all. The error is attached. I can see the 
source expansion in C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\myApp\mysubfolder\test_jsp.java but I dont know where to 
look for a listing showing any compile errors.

The environment is Tomcat 4.1.12 within WSAD5 (Eclipse under the covers). Notably, 
this same test works fine using the WTE in WSAD. Also JSP has worked in other projects 
in this same Tomcat/WSAD environment. So the environment and Tomcat are tested and 
sound. The only thing that has changed lately is I moved xercesImpl.jar and 
xmlParserAPIs.jar out of the tomcat endorsed folder and into my webapp (because of 
classloading problems on some xerces extensions in TOPLink). Also I tinkered with the 
JDK setting in WSAD but I have set it back to 1.4.1_01.

alan r

__

org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:507)
...
root cause 

java.lang.ClassNotFoundException: org.apache.jsp.Test_jsp
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:209)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
...

The source of Test.jsp is as follows:

HTML
HEAD
TITLEMy Title/TITLE/head
body hello from test.jsp at %= new java.util.Date() %/body/html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error 500 - Internal servlet error - unable to compile class for jsp

2003-03-10 Thread Sarah Harrison


Hi All,

I am hoping someone might be able to explain the problem I have come across. I am new 
to Tomcat and have just installed
Tomcat4112 on a Windows2000 machine with IIS5 and j2sdk1.4.0. I am trying to run a 
webapp but keep getting the above
error.

I am running Tomcat as an NT service so decide to stop this and start it up from the 
bat file. When running like this I
was able to view the jsp pages without a problem, there was no longer any errors. I 
then shutdown Tomcat and restart the
NT service and then had the ability to see the pages without the error. However any 
page that had not been accessed
while I was running Tomcat from the startup.bat still came up with the compile error.

Why do I need to view each page while running Tomcat from the startup script before 
they can be viewed without the 
unable to compile class for jsp error with the NT service?

Any pointers would be me much appreciated.

Regards

Sarah



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unable to compile class for JSP

2003-02-06 Thread Aaron Bennett
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!





RE: Unable to compile class for JSP

2003-02-06 Thread Filip Hanik
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

2003-02-06 Thread Denise Mangano
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

2003-02-06 Thread Filip Hanik
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

2003-02-06 Thread Denise Mangano
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

2003-02-06 Thread Wilson Snook
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]




Unable to compile class for JSP

2003-01-06 Thread Gary Pollreis
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]




Re: Unable to compile class for JSP

2003-01-06 Thread Paul Campbell
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: URGENT.. org.apache.jasper.JasperException: Unable to compile class for JSP

2002-12-20 Thread runu rathi
Hi Jacob,
  I tried to set environment variables and run the
commands as shown on the link you sent. My
CATALINA_HOME was earlier set to C:\Program
Files\Apache Group\Tomcat 4.1\ and so I made the new
variable as C:\jakarta-tomcat-4.1.12;C:\Program
Files\Apache Group\Tomcat 4.1\ 
On a new window I ran the command and thus the Tomcat
was installed and the C:\ prompt appeared. 
However, in my services list I don't see the
Apache-Catalina service listed.
I shall appreciate any help.
Thanks and Regards,
Runu

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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

2002-12-19 Thread Holger Klawitter

  The same application runs perfectly at another place
 with exactly the same version of Tomcat..

 4.1\work\Standalone\localhost\gradsurvey\jsp\survey\student_survey_jsp.java
:7: '.' expected
 import SurveyBean;
  ^

You probably have different Java VMs on each machine. AFAIK Java 1.4 no longer 
supports import of classes in the root package.

With kind regards / mit freundlichem Gruß
Holger Klawitter
--
Holger Klawitter  http://www.klawitter.de
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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

2002-12-19 Thread runu rathi
Thanks Holger,
  It did work when I changed the JVM. 
Now, I have Tomcat 4.1.12 and JDK1.3.1. I want to run
Tomcat continuously on Win2k even wen I log
off..Please guide me..
Thanks
Runu


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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

2002-12-19 Thread Jacob Kjome

See http://www.mattkelli.com/tech/tomcat/ntservice.htm

Jake

At 09:59 PM 12/19/2002 -0800, you wrote:

Thanks Holger,
  It did work when I changed the JVM.
Now, I have Tomcat 4.1.12 and JDK1.3.1. I want to run
Tomcat continuously on Win2k even wen I log
off..Please guide me..
Thanks
Runu


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



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

2002-12-18 Thread runu rathi
Hi,
 I am having trouble running a simple application
which uses JSP and Beans.
 The error shown is
org.apache.jasper.JasperException: Unable to compile
class for JSP. 
 The same application runs perfectly at another place
with exactly the same version of Tomcat..
Please see below for the exact error messages
obtained.
 I'll appreciate your help
Thankx
Runu

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

An error occurred at line: 2 in the jsp file:
/jsp/survey/student_survey.jsp

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\gradsurvey\jsp\survey\student_survey_jsp.java:7:
'.' expected
import SurveyBean;
 ^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\gradsurvey\jsp\survey\student_survey_jsp.java:44:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
  SurveyBean student = null;
  ^



An error occurred at line: 2 in the jsp file:
/jsp/survey/student_survey.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\gradsurvey\jsp\survey\student_survey_jsp.java:46:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
student = (SurveyBean)
pageContext.getAttribute(student,
PageContext.SESSION_SCOPE);
   ^



An error occurred at line: 2 in the jsp file:
/jsp/survey/student_survey.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\gradsurvey\jsp\survey\student_survey_jsp.java:49:
cannot resolve symbol
symbol  : class SurveyBean  
location: class org.apache.jsp.student_survey_jsp
student = (SurveyBean)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
SurveyBean);
   ^
4 errors


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
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(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(StandardPipeline.java:643

Re: Unable to compile class for JSP in Windows

2002-11-19 Thread Salama hussein
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: New Tomcat Linux User - Unable to compile class for JSP

2002-11-18 Thread Pedro Salazar
Hi,

It's the tools.jar that exists in j2sdk's lib directory that is missing
on your container's lib path. Some containers have it their lib
directory structure, some don't. My tomcat standalone version
have it, but the tomcat that comes in JBOSS's package (a LE version)
don't have it. So if you put it on your servlet container lib directory
or put it in jdk's jre's ext directory (by default is on \lib and it
isn't in jre\lib\ext) would solve that problem.


regards,
Pedro Salazar.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Unable to compile class for JSP in Windows

2002-11-18 Thread Salama hussein
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

2002-11-18 Thread brtiany swinaa

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


Unable to compile class for JSP in Windows

2002-11-17 Thread Salama hussein

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]



Re: Unable to compile class for JSP in Windows

2002-11-17 Thread Kwok Peng Tuck
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]




New Tomcat Linux User - Unable to compile class for JSP

2002-11-14 Thread Wood, Mike
I have successfully ran Tomcat on Windows and I'm now having problems getting my Redhat
Linux 7.2 install to run.

I can successfully access *.html files (http://host:8080/examples/jsp/index.html).
I cannot get any jsp files to compile (http://host:8080/examples/jsp/num/numguess.jsp 
, http://host:8080/index.jsp ).

When I access a jsp URL, I get the following response:

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

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Unknown Source)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(Unknown Source)
at org.apache.jasper.compiler.Compiler.generateClass(Unknown Source)
at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at org.apache.jasper.JspCompilationContext.compile(Unknown Source)
at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
...
...
...

---
Installation:

I first installed J2RE 1.4.1 from:
j2re-1_4_1_01-linux-i586-rpm.bin
Next, I installed the following Tomcat RPMs:
tomcat4-4.1.12-full.2jpp.noarch.rpm
tomcat4-admin-4.1.12-full.2jpp.noarch.rpm
tomcat4-webapps-4.1.12-full.2jpp.noarch.rpm
I opened /etc/tomcat4/tomcat4.conf and added the line 
JAVA_HOME=/usr/java/j2re1.4.1_01
I executed: /etc/init.d/tomcat4 start
I have not changed any other configuration files.

--

Any ideas on what is wrong?

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: New Tomcat Linux User - Unable to compile class for JSP

2002-11-14 Thread John Trollinger
It looks like jasper can not find javac, you need to install the j2sdk
not the runtime for jsp to work.

 -Original Message-
 From: Wood, Mike [mailto:mwood;api.com] 
 Sent: Thursday, November 14, 2002 3:15 PM
 To: [EMAIL PROTECTED]
 Subject: New Tomcat Linux User - Unable to compile class for JSP
 
 
 I have successfully ran Tomcat on Windows and I'm now having 
 problems getting my Redhat Linux 7.2 install to run.
 
 I can successfully access *.html files 
 (http://host:8080/examples/jsp/index.html).
 I cannot get any jsp files to compile 
 (http://host:8080/examples/jsp/num/numguess.jsp , 
 http://host:8080/index.jsp ).
 
 When I access a jsp URL, I get the following response:
 
 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
 
   at 
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(Unkn
 own Source)
   at 
 org.apache.jasper.compiler.ErrorDispatcher.javacError(Unknown Source)
   at 
 org.apache.jasper.compiler.Compiler.generateClass(Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
   at 
 org.apache.jasper.JspCompilationContext.compile(Unknown Source)
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
   ...
   ...
   ...
   
 ---
 Installation:
 
 I first installed J2RE 1.4.1 from:
   j2re-1_4_1_01-linux-i586-rpm.bin
 Next, I installed the following Tomcat RPMs:
   tomcat4-4.1.12-full.2jpp.noarch.rpm
   tomcat4-admin-4.1.12-full.2jpp.noarch.rpm
   tomcat4-webapps-4.1.12-full.2jpp.noarch.rpm
 I opened /etc/tomcat4/tomcat4.conf and added the line 
 JAVA_HOME=/usr/java/j2re1.4.1_01
 I executed: /etc/init.d/tomcat4 start
 I have not changed any other configuration files.
 
 --
 
 Any ideas on what is wrong?
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:tomcat-user-help;jakarta.apache.org
 


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




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

2002-11-13 Thread Pedro Salazar
I deployed my web application in JBOSS and I got the exception below
when tried to access my root application url mapping. I'm using jdk1.4.1
+ JBOSS 3.0.4+tomcat4.1.12LE. (I already deployed in J2EE 1.3.1 R.I. in
a EAR and it worked fine).

thanks,
Pedro Salazar.

2002-11-13 17:38:29,810 ERROR [org.jboss.web.localhost.Engine]
ErrorDispatcherValve[localhost]: Exception Processing
ErrorPage[exceptionType=java.lang.Exception, location=/errorpage.jsp]
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
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:391)
at
org.apache.catalina.valves.ErrorDispatcherValve.throwable(ErrorDispatcherValve.java:250)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:178)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
at java.lang.Thread.run(Thread.java:536)

-- 
pedro salazar (pt-inovacao) [EMAIL PROTECTED]
key id: D803BC61


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




tomcat 4.1.10 Unable to compile class for JSP

2002-09-23 Thread Yrjö Hirvonen

After upgrading form versiom 4.0.1 to 4.1.40 part of earlier functioning

JSP-files  gives an error while compiling:

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


I am running on Linux Suse 7.3 and Tomcat is installed from binaries.

-George-






--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: JasperException: Unable to compile class for JSP

2002-06-21 Thread Ralph Einfeldt


Your error message sounds as if pageContext.handlePageException() 
is is defined to accept just an Instance of Exception not Throwable.
That could be caused be a jar file that contains an older version
of the jsdk. (servlet.jar, ...) Have a look at your jar files
that are used for your tomcat. (Don't forget {JAVA_HOME}\jre\lib\ext !)

- Which Version of tomcat do you use ?  

 -Ursprüngliche Nachricht-
 Von: Pearsall, Kyle [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 20. Juni 2002 02:00
 An: Tomcat (E-mail)
 Betreff: JasperException: Unable to compile class for JSP
 
 
 Now I get a different problem.  The jsp files can't compile 
 correctly at runtime.  This code works properly on Weblogic 
 5.1.  Do I need to fix something in Tomcat?  Any suggestions?
 
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 D:\TOMCAT\work\Standalone\localhost\dhimaging\jsp\Albums$jsp.j
 ava:689: Incompatible type for method. Explicit cast needed 
 to convert java.lang.Throwable to java.lang.Exception.
   if (pageContext != null)  pageContext.handlePageException(t);
  ^

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JasperException: Unable to compile class for JSP

2002-06-21 Thread Pearsall, Kyle

Thank you for your reply.

I am using Tomcat 4.0.4 with JDK 1.3.1.  They were both clean installs.  Does Tomcat 
4.0.4 have any issues with this JDK?  Should I upgrade to JDK 1.4?

I will look into this further.

Kyle

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 11:50 PM
To: Tomcat Users List
Subject: AW: JasperException: Unable to compile class for JSP



Your error message sounds as if pageContext.handlePageException() 
is is defined to accept just an Instance of Exception not Throwable.
That could be caused be a jar file that contains an older version
of the jsdk. (servlet.jar, ...) Have a look at your jar files
that are used for your tomcat. (Don't forget {JAVA_HOME}\jre\lib\ext !)

- Which Version of tomcat do you use ?  

 -Ursprüngliche Nachricht-
 Von: Pearsall, Kyle [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 20. Juni 2002 02:00
 An: Tomcat (E-mail)
 Betreff: JasperException: Unable to compile class for JSP
 
 
 Now I get a different problem.  The jsp files can't compile 
 correctly at runtime.  This code works properly on Weblogic 
 5.1.  Do I need to fix something in Tomcat?  Any suggestions?
 
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 D:\TOMCAT\work\Standalone\localhost\dhimaging\jsp\Albums$jsp.j
 ava:689: Incompatible type for method. Explicit cast needed 
 to convert java.lang.Throwable to java.lang.Exception.
   if (pageContext != null)  pageContext.handlePageException(t);
  ^

--
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: JasperException: Unable to compile class for JSP

2002-06-20 Thread Pearsall, Kyle

I'm not convinced yet that I've done everything I can with Tomcat yet to get my JSPs 
to work properly.  The error below (and others like it from different JSP pages) don't 
appear in other web servers, such as Weblogic 5.1.  The same JSPs compile properly on 
these other web servers.  I've made no modifications to the code.  I'm sure numerous 
exceptions will appear over many JSP pages on Tomcat as it is now.  What I am 
wondering is whether there may be a way to customize tomcat with a different JSP 
compiler.

I do admit I am a newbie at this...there is alot to Tomcat and JSP I don't understand 
yet.

Your help is most appreciated.

Thank you,

Kyle P.

-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 5:27 PM
To: 'Tomcat Users List'
Subject: RE: JasperException: Unable to compile class for JSP


I think your answer is right in the output:

Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception

instead of:
--
if (pageContext != null) pageContext.handlePageException(t);
--

Try this:
--
if (pageContext != null) pageContext.handlePageException((Exception) t);
--


-Andrew Conrad



-Original Message-
From: Pearsall, Kyle [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 19, 2002 8:00 PM
To: Tomcat (E-mail)
Subject: JasperException: Unable to compile class for JSP

Thank you for the help with Tomcat and SQL server 2000.

Now I get a different problem.  The jsp files can't compile correctly at
runtime.  This code works properly on Weblogic 5.1.  Do I need to fix
something in Tomcat?  Any suggestions?

Thank you,

Kyle P.

org.apache.jasper.JasperException: Unable to compile class for JSP
D:\TOMCAT\work\Standalone\localhost\dhimaging\jsp\Albums$jsp.java:689:
Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error


--
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]




Unable to compile class for JSP

2002-02-27 Thread Andrew Rodwell

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

 



RE: Unable to compile class for JSP

2002-02-27 Thread Randy Layman



 -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

2002-02-27 Thread Reynir Hübner

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

2002-02-27 Thread rsequeira


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

2002-02-27 Thread Andrew Rodwell

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

2002-02-27 Thread Sriram Narayanan



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

2002-02-27 Thread David Smith

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]




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

2002-02-18 Thread john bell

Hi,

Running a web application on Tomcat 3.3 and trying to move to  Tomcat 4.0.2 and now 
get these errors.  

org.apache.jasper.JasperException: Unable to compile class for JSP
C:\ApacheTomcat\jakarta-tomcat-4.0.2\work\localhost\coffee\jsp\control\homecont$jsp.java:8:
 
Class or interface declaration expected.
import javax.servlet.*;
^

C:\ApacheTomcat\jakarta-tomcat-4.0.2\work\localhost\coffee\jsp\control\homecont$jsp.java:14:
 
Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.homecont$jsp not found.
public class homecont$jsp extends HttpJspBase {
 
I guess it it some thing very basic - I have looked.

John.



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

2002-02-18 Thread Randy Layman


Open up the generated Java file, but I believe that you will see
some extra stuff before the imports from something at the top of your JSP
file that shouldn't be there.

Randy


 -Original Message-
 From: john bell [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 18, 2002 3:08 PM
 To: [EMAIL PROTECTED]
 Subject: org.apache.jasper.JasperException: Unable to compile 
 class for
 JSP
 
 
 Hi,
 
 Running a web application on Tomcat 3.3 and trying to move to 
  Tomcat 4.0.2 and now get these errors.  
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 C:\ApacheTomcat\jakarta-tomcat-4.0.2\work\localhost\coffee\jsp
 \control\homecont$jsp.java:8: 
 Class or interface declaration expected.
 import javax.servlet.*;
 ^
 
 C:\ApacheTomcat\jakarta-tomcat-4.0.2\work\localhost\coffee\jsp
 \control\homecont$jsp.java:14: 
 Superclass org.apache.jsp.HttpJspBase of class 
 org.apache.jsp.homecont$jsp not found.
 public class homecont$jsp extends HttpJspBase {
  
 I guess it it some thing very basic - I have looked.
 
 John.
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Unable to compile class for JSP

2001-12-22 Thread Softwareentwicklung Hauschel

Hey all,
does anybody know this Problem ?

Unable to compile class for JSP
C:\WebApplikations\Tomcat4.0\work\localhost\xmlprofile\pub\ueberweisung$jsp.
java:61: Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);


Code of ueberweisung.jsp:

html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head

body bgcolor=#FF text=#00
ueberweisung
/body
/html




Mit freundlichen Grüßen
Fred Robert Hauschel




Unable to compile class for JSP

2001-08-10 Thread [EMAIL PROTECTED]

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

2001-08-10 Thread Craig R. McClanahan

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

2001-08-10 Thread Larry Isaacs

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

2001-08-03 Thread Evgeniy Strokin

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



Unable to compile class for JSP

2001-08-03 Thread Evgeniy Strokin

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



  1   2   >