Error: "The type java.io.Writer cannot be resolved.&quo

Need help? Post your questions here.

Moderator: moderators

Error: "The type java.io.Writer cannot be resolved.&quo

Postby FlyingSaucrDude » Tue Sep 18, 2007 6:05 am

Hi everybody,

So I got tomcat/subsonic working on my windows box just fine...linux (FC7) though, seems to be a whole different story. After wrestling with stuff for a while, I finally got tomcat to start, but now whenever I go to http://localhost:8080/subsonic, I get the following 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:

An error occurred at line: 1 in the jsp file: /WEB-INF/jsp/login.jsp
The type java.io.Writer cannot be resolved. It is indirectly referenced from required .class files
1: <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%>
2:
3: <html><head>
4: <%@ include file="head.jsp" %>


An error occurred at line: 1 in the jsp file: /WEB-INF/jsp/login.jsp
The method write(String) is undefined for the type JspWriter
1: <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%>
2:
3: <html><head>
4: <%@ include file="head.jsp" %>


This error message goes on for a while, repeating things like the second message about various lines in files in subsonic. I truncated it here for brevity.

Now, it sounds to me like somehow tomcat isn't finding the standard java libraries correctly, but for the life of me I don't know how to fix this. Does anyone have any ideas?

Thanks!

- The FSD

P.S. I'm happy to post more details, logs, etc., if it will help someone diagnose my problem -- just tell me what to post.
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby FlyingSaucrDude » Tue Sep 18, 2007 5:01 pm

I just wanted to add some info:

Tomcat Version: 5.5.23
Subsonic Version: 3.1
OS: Fedora Core 7
Kernel version: 2.6.22.5-76.fc7
JVM version (as reported by the Tomcat manager app): 1.5.0

I have tried:
* Restarting Tomcat
* Reinstalling subsonic
* Looking for errors in the subsonic logs (I didn't see any)
* Looking for errors in the Tomcat logs (I didn't see any relevant to subsonic, but I don't know exactly what I'm looking for)
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby FlyingSaucrDude » Fri Sep 21, 2007 6:36 am

Any help? Anybody? :(
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby FlyingSaucrDude » Sun Sep 23, 2007 5:09 pm

Well, if anybody's curious, the solution was to upgrade to Java 6.0. The package manager for FC7 used Java 5.0 by default for some reason, so I just had to follow the download instructions from the Java website and make sure that the Tomcat configuration knew where the installation of Java 6.0 was.
FlyingSaucrDude
 
Posts: 20
Joined: Fri Aug 24, 2007 5:34 am

Postby matthew » Sun Sep 23, 2007 6:33 pm

Glad to hear you got it figured out.
matthew
 
Posts: 59
Joined: Thu Jan 25, 2007 9:59 pm
Location: USA - Glendora, Californina


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests