No Fun Trying to Install Subsonic

Need help? Post your questions here.

Moderator: moderators

No Fun Trying to Install Subsonic

Postby zephyr325 » Wed Dec 03, 2008 2:28 am

Hello, all.

I'm a newbie in the Tomcat arena, but pretty familiar with linux/web stuff other than that. I'm running Fedora 8 with Tomcat 5.5 installed on it via the regular OS install - I didn't realize it was already on there.

Anyway, I've done the following to try to get this running:

1) Copied the subsonic.war file to my /var/lib/tomcat5/webapps directory
2) Created a /var/subsonic directory and chown'ed it to be tomcat
3) Restarted the tomcat service

Doing so created a /var/lib/tomcat5/webapps/subsonic directory with lots of files in it. But when I go to my http://myip.com:8080/subsonic weblink, I get literally hundreds of errors that look like this:

Code: Select all
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:
JSP FileName:null
Java FileName:/usr/share/tomcat5/work/Catalina/localhost/subsonic//org/apache/jsp/WEB_002dINF/jsp/login_jsp.java


An error occurred at line: 1 in the generated java file
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
JSP FileName:null
Java FileName:/usr/share/tomcat5/work/Catalina/localhost/subsonic//org/apache/jsp/WEB_002dINF/jsp/login_jsp.java


An error occurred at line: 1 in the generated java file
The type java.util.List cannot be resolved. It is indirectly referenced from required .class files
JSP FileName:null
Java FileName:/usr/share/tomcat5/work/Catalina/localhost/subsonic//org/apache/jsp/WEB_002dINF/jsp/login_jsp.java


An error occurred at line: 1 in the generated java file
The type java.lang.Throwable cannot be resolved. It is indirectly referenced from required .class files
JSP FileName:null
Java FileName:/usr/share/tomcat5/work/Catalina/localhost/subsonic//org/apache/jsp/WEB_002dINF/jsp/login_jsp.java


An error occurred at line: 1 in the generated java file
The type java.util.Enumeration cannot be resolved. It is indirectly referenced from required .class files
JSP FileName:null
Java FileName:/usr/share/tomcat5/work/Catalina/localhost/subsonic//org/apache/jsp/WEB_002dINF/jsp/login_jsp.java


An error occurred at line: 1 in the generated java file
The type java.lang.Boolean cannot be resolved. It is indirectly referenced from required .class files
JSP FileName:null
Java FileName:/usr/share/tomcat5/work/Catalina/localhost/subsonic//org/apache/jsp/WEB_002dINF/jsp/login_jsp.java


Any thoughts about what I need to be looking at? This is my Tomcat learning experience. :)
zephyr325
 
Posts: 3
Joined: Wed Dec 03, 2008 2:22 am

Postby zephyr325 » Wed Dec 03, 2008 2:45 pm

I'm imagining this has something to do with my Tomcat / java setup - does anyone have any suggestions of a simple app I can put in there to test if my server is working, or what some troubleshooting steps would be?

Thanks...
zephyr325
 
Posts: 3
Joined: Wed Dec 03, 2008 2:22 am

AARGH...

Postby zephyr325 » Wed Dec 03, 2008 7:23 pm

OK, I really want to try this program out. :)

I've found out that Fedora 8 (what I'm running) doesn't use Sun's Java, so I have installed and configured Sun's Java to run using this page: http://www.my-guides.net/en/content/vie ... /#sun_java

I verified that's running using the "java -version" command:
Code: Select all
[root@Zion subsonic]# java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
[root@Zion subsonic]#


Now that's running (or so I thought), and I've moved away from Tomcat for right now to simplify things and use the Jetty version of Subsonic.

When I run the ./configure.sh, though, I get this error:

Code: Select all
[root@Zion subsonic]# ./subsonic.sh
Exception in thread "main" java.lang.NoClassDefFoundError:  -Dsubsonic.contextPath=.
   at gnu.java.lang.MainThread.run(libgcj.so.8rh)
Caused by: java.lang.ClassNotFoundException:  -Dsubsonic.contextPath=. not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.8rh)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.8rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
   at gnu.java.lang.MainThread.run(libgcj.so.8rh)


Since I'm still seeing libgcj in there, it looks like the Sun java isn't working still.

Has anyone gotten subsonic working on a Fedora machine?
zephyr325
 
Posts: 3
Joined: Wed Dec 03, 2008 2:22 am

Postby jigsaw » Sun Dec 07, 2008 12:45 pm

I am running Subsonic 3.5 on a Fedora Core release 6 ( Zod ) with Apache Tomcat/6.0.13 and java 1.5.0_11.
I did not install the Fedora Java as I have experienced from my work that we must always use Sun's Java :P

I just put the war in the TOMCAT_HOME/webapps-folder and restarted tomcat. Worked like a charm at once ( I've been using Subsonic since 3.1-beta1 and just upgraded through each release )

I am not familiar with Jetty though, so no help from me there.. But considering Tomcat runs as tomcat you might want to verify that "java -version" gives the correct output as the tomcat-user as well..
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 21 guests