aspose file tools*
The moose likes JSP and the fly likes Help me please, this is for my graduation. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Help me please, this is for my graduation." Watch "Help me please, this is for my graduation." New topic
Author

Help me please, this is for my graduation.

jurgen hallez
Greenhorn

Joined: May 08, 2004
Posts: 6
(This message follows another message of Jurge Hallez.)
Hello,
Thanks for the replies. Hello to the one in Antwerp ! I live in Merksem.
The problem is that I don't know much about java and jsp programming, and that my program should be ready this thursday.
I am almost sure that the code is 99 % right. THe only question I have is whether the method to count for the average of the salaries is correct. In de code, this method is called bereken() (translated into english calculate()). The error I get is in the deloytool of the SDK J2EE 1.4. When I try to save the file, it says sax error, premature end of file. Then the application closes and I can not reopen the application.
Another error I got with another aplication is the following. I get this errot when I try to run the appliaction in the browser.
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:132)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)

note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server-PE-8.0 logs.

--------------------------------------------------------------------------------
Sun-Java-System/Application-Server-PE-8.0
----------------------------------------------------------------------------
Thanks for all your time !! I really hope I can finish this.
THANKS !!
[ May 10, 2004: Message edited by: jurgen hallez ]
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
SAX errors in deployment are errors related to your deployment descriptors, not your Java source files (though it is possible that the deployment descriptor is correct but the Java file doesn't properly reflect it).


42
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

jurgen, please do not open multiple topics for the same question. Rather continue the discussion in the same topic until resoultion. .
Because the issue is now being discussed in this topic, I have closed your first so that multiple redundant conversations do not take place.
thanks,
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gert Cuppens
Ranch Hand

Joined: Jul 13, 2003
Posts: 87
Jurgen, the solution for one of your errors is already given in this message
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.
So check for the tools.jar file to see whether it is in the common/lib directory of Tomcat.
If you have other questions, you can send me a personal message using the button of the enveloppe. And you can send them in Dutch.
But remember : I can only look at your questions after working hours (say after 19OO). But I suppose that won't be too much of a problem since we're living in the same time zone.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help me please, this is for my graduation.