Page 1 of 1

java.lang.NoClassDefFoundError: net.sourceforge.subsonic.dao

PostPosted: Tue Jun 06, 2006 10:37 pm
by HG
I've the following error :

javax.servlet.ServletException: L'exécution du filtre (Filter) a lancé une exception
net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:33)


cause mère

java.lang.NoClassDefFoundError: net.sourceforge.subsonic.dao.PlayerDao
java.lang.Class.initializeClass(libgcj.so.7)
net.sourceforge.subsonic.service.PlayerService.<init>(PlayerService.java:64)
net.sourceforge.subsonic.service.ServiceFactory.<clinit>(ServiceFactory.java:33)
java.lang.Class.initializeClass(libgcj.so.7)
net.sourceforge.subsonic.filter.SecurityRealmFilter.booleanAuthenticate(SecurityRealmFilter.java:30)
org.securityfilter.realm.SimpleSecurityRealmBase.authenticate(SimpleSecurityRealmBase.java:107)
org.securityfilter.authenticator.BasicAuthenticator.processLogin(BasicAuthenticator.java:123)
org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:138)
net.sourceforge.subsonic.filter.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:33)

Any idea ?

PostPosted: Wed Jun 07, 2006 6:33 am
by sindre_mehus
Hi,

What version of Subsonic and Tomcat are you using? Did this happen after an upgrade of Subsonic, or at first-time install?

Please follow these instructions carefully:
http://subsonic.sourceforge.net/download.html

Regards,
Sindre

PostPosted: Mon Jun 12, 2006 7:27 pm
by HG
At first time install.
I followed instructions ...

PostPosted: Mon Jun 12, 2006 7:54 pm
by sindre_mehus
Hi,

From the stack trace I see that you're running GNU Java (GCJ). Please use Sun Java (http://www.java.com).

-Sindre

PostPosted: Tue Jun 13, 2006 7:29 am
by HG
Thanks, It works.

What a hell to remove gcj from fedora5, there's mismatched dependencies.

Easy fix on RC5

PostPosted: Sat Aug 05, 2006 2:34 am
by zoo
You don't need to remove GCJ from FC5 in order to run tomcat55 under Sun's JVM.

I have an FC5 installation, with tomcat55 installed from JPackage RPM's (installed via yum), plus Sun's JVM,

Just edit the JAVA_HOME field in /etc/tomcat55/tomcat55.conf, and then restart the daemon (service tomcat55 stop; service tomcat55 start).

Seems to work fine now, after the restart, and I still have GCJ installed on my system. No need to even change the /etc/alternatives settinfs.