Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (687)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  war files and WebSphere [Solved]  (Read 2105 times)
0 Members and 1 Guest are viewing this topic.
Offline Regenuluz
« Posted 2013-06-12 05:40:26 »

Hey guys,

So I'm currently writing a school project that's all about writing a "bank app" on one of IBM mainframes. However, my .class files aren't imported into the WAR file, when I export the project in Eclipse, and when I add the class files manually, then I get funny exceptions.

So does anyone know anything about deploying web apps on WebSphere? (My jsp files run without any trouble. Just the .class files that doesn't work.

The funny exception:
Exception thrown by application class '$' 
  SRVE0202E: Servlet [test.TestMuffin]: test.TestMuffin was found, but is corrupted: SRVE0227E: Check that the class resides in the proper package directory. SRVE0228E: Check that the classname has been defined in the server using the proper case and fully qualified package. SRVE0229E: Check that the class was transferred to the filesystem using a binary transfer mode. SRVE0230E: Check that the class was compiled using the proper case (as defined in the class definition). SRVE0231E: Check that the class file was not renamed after it was compiled.

I have no idea of how it should've gotten corrupted. And for the rest of the "check blabla" it seems to not be the case.
Offline gimbal

JGO Knight

Medals: 26

« Reply #1 - Posted 2013-06-12 07:23:03 »

Well check the server and what is deployed there, especially the servlet class file. Is in the right package inside WEB-INF/classes? What is the filesize? Is it perhaps 0-bytes in size?

Note that I would first try to get your war deployed on simple and reliable Tomcat 7 first for which you can find a giant pile of tutorials and articles. Once you get that working, all you need to do is figure out the Websphere specifics which will generally boil down to setting up a proper datasource and such. That will probably require eating through a boring book and visiting the dodgy IBM forums, you'd have more luck getting online help if you were using Glassfish or JBoss.
Offline Regenuluz
« Reply #2 - Posted 2013-06-12 07:44:39 »

It's working on localhost, through Glassfish. Smiley

And when I extract the war file I've generated, the class file is in the correct path and does have a size that's not 0b. Tongue
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Regenuluz
« Reply #3 - Posted 2013-06-12 08:08:11 »

Problem solved. Turned out that I needed to compile for Java 1.5, instead of Java 1.6 or 1.7.

Thanks for the help though! Smiley
Offline gimbal

JGO Knight

Medals: 26

« Reply #4 - Posted 2013-06-12 12:28:45 »

Problem solved. Turned out that I needed to compile for Java 1.5, instead of Java 1.6 or 1.7.

Thanks for the help though! Smiley

Argh, what an unhelpful error message! At least the standard Java runtime moans about incompatible class versions in stead of spewing a word like "corrupt".
Offline sproingie

JGO Kernel

Medals: 202

« Reply #5 - Posted 2013-06-12 15:48:45 »

Running on the IBM JVM I'm guessing.  Yeah, welcome to IBM software. 

This paragraph intentionally left blank.

At least they have regular error codes though, something Sun never bothered with (Oracle's stuff does, but they're stuck with Sun's legacy).
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Dwinin (73 views)
2015-11-07 13:29:08

Rems19 (81 views)
2015-10-31 01:36:56

Rems19 (78 views)
2015-10-31 01:32:37

williamwoles (107 views)
2015-10-23 10:42:59

williamwoles (93 views)
2015-10-23 10:42:45

Jervac_ (111 views)
2015-10-18 23:29:12

DarkCart (135 views)
2015-10-16 00:58:11

KaiHH (118 views)
2015-10-11 14:10:14

KaiHH (157 views)
2015-10-11 13:26:18

BurntPizza (172 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!