WAR file malformed

306 views
Skip to first unread message

mardo

unread,
Jan 18, 2011, 3:41:28 PM1/18/11
to play-framework
Hi,
When y deploy my playapp to a WAR file

$ play war myapp -o mydeploy --zip

and I depoy it to tomcat, it doesent work, it gives me an HTTP
404(resource is not available), none of my applications nor any
playframework samples, are working either.

My Environment is:

play-1.1
Apache Tomcat/6.0.29
Mac OSX 10.5.8
Python 2.6.6
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-9M3263)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

Any help will be appreciated!

Mardo Del Cid.

Steve Chaloner

unread,
Jan 19, 2011, 3:27:35 AM1/19/11
to play-framework
Is there anything in the tomcat logs?

mardo

unread,
Jan 19, 2011, 3:52:20 PM1/19/11
to play-framework
Sure, there are some errors...

SEVERE: Exception sending context initialized event to listener
instance of class play.server.ServletWrapper
java.lang.UnsupportedClassVersionError: Bad version number in .class
file

-------

SEVERE: Exception sending context destroyed event to listener instance
of class play.server.ServletWrapper
java.lang.NullPointerException
at play.jobs.JobsPlugin.onApplicationStop(JobsPlugin.java:187)
at play.Play.stop(Play.java:458)

-------

SEVERE: Error configuring application listener of class
play.server.ServletWrapper
java.lang.ClassNotFoundException: play.server.ServletWrapper
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1645)


full trace:
http://paste.pocoo.org/show/323474/


any ideas??
Thank you very much,

Mardo.

Olivier Refalo

unread,
Jan 19, 2011, 4:18:00 PM1/19/11
to play-fr...@googlegroups.com
That's a mismatch between the compiler level and the jvm java level.
Most likely you are compiling in java 6 and running in java 5

mardo

unread,
Jan 19, 2011, 4:50:07 PM1/19/11
to play-framework
RESOLVED
Thank you very much guys!,

Changed "CurrentJDK" symbolic link to point to java 6
Reply all
Reply to author
Forward
0 new messages