roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo <paole...@gmail.com>
Subject Bad version number in .class file during deploy
Date Sun, 06 Jul 2008 11:11:28 GMT
Hi! Im new to roller!

I tried to deploy it today but i got a strange exception as below.

What i did is:
- used my tomcat5.5 running installation (which has some web app on)

- created a "roller" db on my postgres8.2 server and a roller user and
granted ALL to USER roller for db roller

- configured the roller-custom.properties in tomcat5.5/common/classes/
as follow:

# cat ../common/classes/roller-custom.properties
installation.type=auto
database.configurationType=jdbc
database.jdbc.driverClass=org.postgresql.Driver
database.jdbc.connectionURL=jdbc:postgresql://localhost:5432/roller
database.jdbc.username=roller
database.jdbc.password=xxxxxxxxx
mail.configurationType=properties
mail.hostname=localhost

- put postgresql jdbc drivers along with mail.jar and activation.jar
in common/lib/

- packed the webapp/roller directory into roller.war and copied into
tomcat5.5/webapps


the log is like:

INFO  2008-07-06 12:56:04,791 DatabaseProvider:successMessage -
SUCCESS: Got parameters. Using configuration type JDBC_PROPERTIES
INFO  2008-07-06 12:56:04,820 DatabaseProvider:successMessage - --
Using JDBC driver class: org.postgresql.Driver
INFO  2008-07-06 12:56:04,840 DatabaseProvider:successMessage - --
Using JDBC connection URL: jdbc:postgresql://localhost:5432/roller
INFO  2008-07-06 12:56:04,841 DatabaseProvider:successMessage - --
Using JDBC username: roller
INFO  2008-07-06 12:56:04,842 DatabaseProvider:successMessage - --
Using JDBC password: [hidden]
ERROR 2008-07-06 12:56:04,853 StandardContext:listenerStart -
Exception sending context initialized event to listener instance of
class org.apache.roller.weblogger.ui.core.RollerContext
java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.apache.roller.weblogger.business.DatabaseProvider.<init>(DatabaseProvider.java:106)
        at org.apache.roller.weblogger.business.startup.WebloggerStartup.prepare(WebloggerStartup.java:171)
        at org.apache.roller.weblogger.ui.core.RollerContext.contextInitialized(RollerContext.java:138)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
        at java.lang.Thread.run(Thread.java:595)
ERROR 2008-07-06 12:56:05,166 StandardContext:listenerStop - Exception
sending context destroyed event to listener instance of class
org.apache.roller.weblogger.ui.core.RollerContext
java.lang.IllegalStateException: Roller Weblogger has not been bootstrapped yet
        at org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
        at org.apache.roller.weblogger.ui.core.RollerContext.contextDestroyed(RollerContext.java:215)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805)
        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4364)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4246)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
        at java.lang.Thread.run(Thread.java:595)

Mime
View raw message